]>
Commit | Line | Data |
---|---|---|
d24a34bb | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/misc2.cpp |
d24a34bb RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
d24a34bb RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
d24a34bb RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
d24a34bb | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
d24a34bb RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
d24a34bb RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
d24a34bb RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
d24a34bb 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 *); | |
2d091820 | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
d24a34bb RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
d24a34bb 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> | |
8f17924e RD |
61 | #include <wx/caret.h> |
62 | #include <wx/fontenum.h> | |
f6bcfd97 | 63 | #include <wx/tipdlg.h> |
c368d904 | 64 | #include <wx/process.h> |
4dfaa61e RD |
65 | |
66 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
2cd2fac8 | 67 | #include <wx/joystick.h> |
4662be59 | 68 | #endif |
d24a34bb | 69 | |
4dfaa61e RD |
70 | #if wxUSE_WAVE || defined(__WXMSW__) |
71 | #include <wx/wave.h> | |
72 | #endif | |
73 | ||
5c0282d5 RD |
74 | #include <wx/mimetype.h> |
75 | ||
d24a34bb RD |
76 | |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
3bcd5e1c | 81 | if (!target) { |
d24a34bb | 82 | target = o; |
3bcd5e1c | 83 | } else if (target == Py_None) { |
d24a34bb RD |
84 | Py_DECREF(Py_None); |
85 | target = o; | |
3bcd5e1c | 86 | } else { |
d24a34bb RD |
87 | if (!PyTuple_Check(target)) { |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
3bcd5e1c RD |
92 | o3 = PyTuple_New(1); |
93 | PyTuple_SetItem(o3, 0, o); | |
d24a34bb RD |
94 | |
95 | o2 = target; | |
3bcd5e1c RD |
96 | target = PySequence_Concat(o2, o3); |
97 | Py_DECREF(o2); | |
d24a34bb RD |
98 | Py_DECREF(o3); |
99 | } | |
100 | return target; | |
101 | } | |
102 | ||
7a446686 RD |
103 | #if PYTHON_API_VERSION >= 1009 |
104 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
105 | #else | |
0220cbc1 | 106 | static char* wxStringErrorMsg = "String type required"; |
7a446686 | 107 | #endif |
d24a34bb | 108 | |
b68dc582 RD |
109 | static wxString wxPyEmptyStr(""); |
110 | ||
bc29c5e0 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 | ||
bc29c5e0 RD |
124 | int wxCaret_GetBlinkTime() { |
125 | return wxCaret::GetBlinkTime(); | |
126 | } | |
127 | ||
128 | void wxCaret_SetBlinkTime(int milliseconds) { | |
129 | wxCaret::SetBlinkTime(milliseconds); | |
130 | } | |
4120ef2b 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 | |
4662be59 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> | |
0220cbc1 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); | |
4dfaa61e | 207 | |
059a841c | 208 | |
4dfaa61e 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) { | |
5c0282d5 | 214 | wxPyTState* state = wxPyBeginBlockThreads(); |
4dfaa61e | 215 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
5c0282d5 | 216 | wxPyEndBlockThreads(state); |
4dfaa61e 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; } | |
9d6da64a | 227 | void SetMovementThreshold(int threshold) {} |
4dfaa61e 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 | ||
2c8a649d | 266 | #if !wxUSE_WAVE |
4dfaa61e 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) { | |
059a841c | 272 | wxPyTState* state = wxPyBeginBlockThreads(); |
4dfaa61e | 273 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
059a841c | 274 | wxPyEndBlockThreads(state); |
4dfaa61e RD |
275 | } |
276 | wxWave(int size, const wxByte* data) { | |
059a841c | 277 | wxPyTState* state = wxPyBeginBlockThreads(); |
4dfaa61e | 278 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
059a841c | 279 | wxPyEndBlockThreads(state); |
4dfaa61e 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 | } | |
5c0282d5 RD |
293 | |
294 | #if 0 | |
295 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
296 | ||
297 | #endif | |
93283355 RD |
298 | |
299 | #include <wx/docview.h> | |
bc29c5e0 RD |
300 | #ifdef __cplusplus |
301 | extern "C" { | |
302 | #endif | |
303 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
304 | PyObject * _resultobj; | |
305 | wxString * _result; | |
306 | char * _arg0; | |
307 | char * _arg1 = (char *) NULL; | |
308 | char * _arg2 = (char *) NULL; | |
309 | char * _arg3 = (char *) NULL; | |
310 | char * _arg4 = (char *) "*.*"; | |
311 | int _arg5 = (int ) 0; | |
312 | wxWindow * _arg6 = (wxWindow *) NULL; | |
313 | int _arg7 = (int ) -1; | |
314 | int _arg8 = (int ) -1; | |
315 | PyObject * _argo6 = 0; | |
316 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
317 | ||
318 | self = self; | |
319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8)) | |
320 | return NULL; | |
321 | if (_argo6) { | |
322 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
323 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
325 | return NULL; | |
326 | } | |
327 | } | |
328 | { | |
329 | wxPy_BEGIN_ALLOW_THREADS; | |
330 | _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)); | |
331 | ||
332 | wxPy_END_ALLOW_THREADS; | |
333 | }{ | |
e02c03a4 | 334 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
bc29c5e0 RD |
335 | } |
336 | { | |
337 | delete _result; | |
338 | } | |
339 | return _resultobj; | |
340 | } | |
341 | ||
342 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
343 | PyObject * _resultobj; | |
344 | wxString * _result; | |
345 | wxString * _arg0; | |
346 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
347 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
348 | wxWindow * _arg3 = (wxWindow *) NULL; | |
349 | int _arg4 = (int ) -1; | |
350 | int _arg5 = (int ) -1; | |
351 | bool _arg6 = (bool ) TRUE; | |
352 | PyObject * _obj0 = 0; | |
353 | PyObject * _obj1 = 0; | |
354 | PyObject * _obj2 = 0; | |
355 | PyObject * _argo3 = 0; | |
356 | int tempbool6 = (int) TRUE; | |
357 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
358 | ||
359 | self = self; | |
360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
361 | return NULL; | |
362 | { | |
2cd2fac8 RD |
363 | #if PYTHON_API_VERSION >= 1009 |
364 | char* tmpPtr; int tmpSize; | |
365 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 366 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
367 | return NULL; |
368 | } | |
369 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
370 | return NULL; | |
371 | _arg0 = new wxString(tmpPtr, tmpSize); | |
372 | #else | |
bc29c5e0 RD |
373 | if (!PyString_Check(_obj0)) { |
374 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
375 | return NULL; | |
376 | } | |
2cd2fac8 RD |
377 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
378 | #endif | |
bc29c5e0 RD |
379 | } |
380 | if (_obj1) | |
381 | { | |
2cd2fac8 RD |
382 | #if PYTHON_API_VERSION >= 1009 |
383 | char* tmpPtr; int tmpSize; | |
384 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 385 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
386 | return NULL; |
387 | } | |
388 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
389 | return NULL; | |
390 | _arg1 = new wxString(tmpPtr, tmpSize); | |
391 | #else | |
bc29c5e0 RD |
392 | if (!PyString_Check(_obj1)) { |
393 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
394 | return NULL; | |
395 | } | |
2cd2fac8 RD |
396 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
397 | #endif | |
bc29c5e0 RD |
398 | } |
399 | if (_obj2) | |
400 | { | |
2cd2fac8 RD |
401 | #if PYTHON_API_VERSION >= 1009 |
402 | char* tmpPtr; int tmpSize; | |
403 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 404 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
405 | return NULL; |
406 | } | |
407 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
408 | return NULL; | |
409 | _arg2 = new wxString(tmpPtr, tmpSize); | |
410 | #else | |
bc29c5e0 RD |
411 | if (!PyString_Check(_obj2)) { |
412 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
413 | return NULL; | |
414 | } | |
2cd2fac8 RD |
415 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
416 | #endif | |
bc29c5e0 RD |
417 | } |
418 | if (_argo3) { | |
419 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
420 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
422 | return NULL; | |
423 | } | |
424 | } | |
425 | _arg6 = (bool ) tempbool6; | |
426 | { | |
427 | wxPy_BEGIN_ALLOW_THREADS; | |
428 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); | |
429 | ||
430 | wxPy_END_ALLOW_THREADS; | |
431 | }{ | |
e02c03a4 | 432 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
bc29c5e0 RD |
433 | } |
434 | { | |
435 | if (_obj0) | |
436 | delete _arg0; | |
437 | } | |
438 | { | |
439 | if (_obj1) | |
440 | delete _arg1; | |
441 | } | |
442 | { | |
443 | if (_obj2) | |
444 | delete _arg2; | |
445 | } | |
446 | { | |
447 | delete _result; | |
448 | } | |
449 | return _resultobj; | |
450 | } | |
451 | ||
1b62f00d RD |
452 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
453 | PyObject * _resultobj; | |
454 | wxString * _result; | |
455 | wxString * _arg0; | |
456 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
457 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
458 | wxWindow * _arg3 = (wxWindow *) NULL; | |
459 | PyObject * _obj0 = 0; | |
460 | PyObject * _obj1 = 0; | |
461 | PyObject * _obj2 = 0; | |
462 | PyObject * _argo3 = 0; | |
463 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
464 | ||
465 | self = self; | |
466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
467 | return NULL; | |
468 | { | |
469 | #if PYTHON_API_VERSION >= 1009 | |
470 | char* tmpPtr; int tmpSize; | |
471 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 472 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
473 | return NULL; |
474 | } | |
475 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
476 | return NULL; | |
477 | _arg0 = new wxString(tmpPtr, tmpSize); | |
478 | #else | |
479 | if (!PyString_Check(_obj0)) { | |
480 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
481 | return NULL; | |
482 | } | |
483 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
484 | #endif | |
485 | } | |
486 | if (_obj1) | |
487 | { | |
488 | #if PYTHON_API_VERSION >= 1009 | |
489 | char* tmpPtr; int tmpSize; | |
490 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 491 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
492 | return NULL; |
493 | } | |
494 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
495 | return NULL; | |
496 | _arg1 = new wxString(tmpPtr, tmpSize); | |
497 | #else | |
498 | if (!PyString_Check(_obj1)) { | |
499 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
500 | return NULL; | |
501 | } | |
502 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
503 | #endif | |
504 | } | |
505 | if (_obj2) | |
506 | { | |
507 | #if PYTHON_API_VERSION >= 1009 | |
508 | char* tmpPtr; int tmpSize; | |
509 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 510 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
511 | return NULL; |
512 | } | |
513 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
514 | return NULL; | |
515 | _arg2 = new wxString(tmpPtr, tmpSize); | |
516 | #else | |
517 | if (!PyString_Check(_obj2)) { | |
518 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
519 | return NULL; | |
520 | } | |
521 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
522 | #endif | |
523 | } | |
524 | if (_argo3) { | |
525 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
526 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
528 | return NULL; | |
529 | } | |
530 | } | |
531 | { | |
532 | wxPy_BEGIN_ALLOW_THREADS; | |
533 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); | |
534 | ||
535 | wxPy_END_ALLOW_THREADS; | |
536 | }{ | |
537 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
538 | } | |
539 | { | |
540 | if (_obj0) | |
541 | delete _arg0; | |
542 | } | |
543 | { | |
544 | if (_obj1) | |
545 | delete _arg1; | |
546 | } | |
547 | { | |
548 | if (_obj2) | |
549 | delete _arg2; | |
550 | } | |
551 | { | |
552 | delete _result; | |
553 | } | |
554 | return _resultobj; | |
555 | } | |
556 | ||
bc29c5e0 RD |
557 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
558 | PyObject * _resultobj; | |
559 | wxString * _result; | |
560 | wxString * _arg0; | |
561 | wxString * _arg1; | |
562 | int _arg2; | |
563 | wxString * _arg3; | |
564 | wxWindow * _arg4 = (wxWindow *) NULL; | |
565 | int _arg5 = (int ) -1; | |
566 | int _arg6 = (int ) -1; | |
567 | bool _arg7 = (bool ) TRUE; | |
568 | int _arg8 = (int ) 150; | |
569 | int _arg9 = (int ) 200; | |
570 | PyObject * _obj0 = 0; | |
571 | PyObject * _obj1 = 0; | |
572 | PyObject * _obj3 = 0; | |
573 | PyObject * _argo4 = 0; | |
574 | int tempbool7 = (int) TRUE; | |
e02c03a4 | 575 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
bc29c5e0 RD |
576 | |
577 | self = self; | |
578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
579 | return NULL; | |
580 | { | |
2cd2fac8 RD |
581 | #if PYTHON_API_VERSION >= 1009 |
582 | char* tmpPtr; int tmpSize; | |
583 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 584 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
585 | return NULL; |
586 | } | |
587 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
588 | return NULL; | |
589 | _arg0 = new wxString(tmpPtr, tmpSize); | |
590 | #else | |
bc29c5e0 RD |
591 | if (!PyString_Check(_obj0)) { |
592 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
593 | return NULL; | |
594 | } | |
2cd2fac8 RD |
595 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
596 | #endif | |
bc29c5e0 RD |
597 | } |
598 | { | |
2cd2fac8 RD |
599 | #if PYTHON_API_VERSION >= 1009 |
600 | char* tmpPtr; int tmpSize; | |
601 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 602 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
603 | return NULL; |
604 | } | |
605 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
606 | return NULL; | |
607 | _arg1 = new wxString(tmpPtr, tmpSize); | |
608 | #else | |
bc29c5e0 RD |
609 | if (!PyString_Check(_obj1)) { |
610 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
611 | return NULL; | |
612 | } | |
2cd2fac8 RD |
613 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
614 | #endif | |
bc29c5e0 RD |
615 | } |
616 | if (_obj3) | |
617 | { | |
618 | _arg3 = wxString_LIST_helper(_obj3); | |
619 | if (_arg3 == NULL) { | |
620 | return NULL; | |
621 | } | |
622 | } | |
623 | if (_argo4) { | |
624 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
625 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
627 | return NULL; | |
628 | } | |
629 | } | |
630 | _arg7 = (bool ) tempbool7; | |
631 | { | |
632 | if (_obj3) { | |
633 | _arg2 = PyList_Size(_obj3); | |
634 | } | |
635 | else { | |
636 | _arg2 = 0; | |
637 | } | |
638 | } | |
639 | { | |
640 | wxPy_BEGIN_ALLOW_THREADS; | |
641 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); | |
642 | ||
643 | wxPy_END_ALLOW_THREADS; | |
644 | }{ | |
e02c03a4 | 645 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
bc29c5e0 RD |
646 | } |
647 | { | |
648 | if (_obj0) | |
649 | delete _arg0; | |
650 | } | |
651 | { | |
652 | if (_obj1) | |
653 | delete _arg1; | |
654 | } | |
655 | { | |
656 | delete [] _arg3; | |
657 | } | |
658 | { | |
659 | delete _result; | |
660 | } | |
661 | return _resultobj; | |
662 | } | |
663 | ||
664 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
665 | PyObject * _resultobj; | |
666 | int _result; | |
667 | wxString * _arg0; | |
668 | wxString * _arg1; | |
669 | int _arg2; | |
670 | wxString * _arg3; | |
671 | wxWindow * _arg4 = (wxWindow *) NULL; | |
672 | int _arg5 = (int ) -1; | |
673 | int _arg6 = (int ) -1; | |
674 | bool _arg7 = (bool ) TRUE; | |
675 | int _arg8 = (int ) 150; | |
676 | int _arg9 = (int ) 200; | |
677 | PyObject * _obj0 = 0; | |
678 | PyObject * _obj1 = 0; | |
679 | PyObject * _obj3 = 0; | |
680 | PyObject * _argo4 = 0; | |
681 | int tempbool7 = (int) TRUE; | |
e02c03a4 | 682 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
bc29c5e0 RD |
683 | |
684 | self = self; | |
685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
686 | return NULL; | |
687 | { | |
2cd2fac8 RD |
688 | #if PYTHON_API_VERSION >= 1009 |
689 | char* tmpPtr; int tmpSize; | |
690 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 691 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
692 | return NULL; |
693 | } | |
694 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
695 | return NULL; | |
696 | _arg0 = new wxString(tmpPtr, tmpSize); | |
697 | #else | |
bc29c5e0 RD |
698 | if (!PyString_Check(_obj0)) { |
699 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
700 | return NULL; | |
701 | } | |
2cd2fac8 RD |
702 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
703 | #endif | |
bc29c5e0 RD |
704 | } |
705 | { | |
2cd2fac8 RD |
706 | #if PYTHON_API_VERSION >= 1009 |
707 | char* tmpPtr; int tmpSize; | |
708 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 709 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
710 | return NULL; |
711 | } | |
712 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
713 | return NULL; | |
714 | _arg1 = new wxString(tmpPtr, tmpSize); | |
715 | #else | |
bc29c5e0 RD |
716 | if (!PyString_Check(_obj1)) { |
717 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
718 | return NULL; | |
719 | } | |
2cd2fac8 RD |
720 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
721 | #endif | |
bc29c5e0 RD |
722 | } |
723 | if (_obj3) | |
724 | { | |
725 | _arg3 = wxString_LIST_helper(_obj3); | |
726 | if (_arg3 == NULL) { | |
727 | return NULL; | |
728 | } | |
729 | } | |
730 | if (_argo4) { | |
731 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
732 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
734 | return NULL; | |
735 | } | |
736 | } | |
737 | _arg7 = (bool ) tempbool7; | |
738 | { | |
739 | if (_obj3) { | |
740 | _arg2 = PyList_Size(_obj3); | |
741 | } | |
742 | else { | |
743 | _arg2 = 0; | |
744 | } | |
745 | } | |
746 | { | |
747 | wxPy_BEGIN_ALLOW_THREADS; | |
748 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
749 | ||
750 | wxPy_END_ALLOW_THREADS; | |
751 | } _resultobj = Py_BuildValue("i",_result); | |
752 | { | |
753 | if (_obj0) | |
754 | delete _arg0; | |
755 | } | |
756 | { | |
757 | if (_obj1) | |
758 | delete _arg1; | |
759 | } | |
760 | { | |
761 | delete [] _arg3; | |
762 | } | |
763 | return _resultobj; | |
764 | } | |
765 | ||
766 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
767 | PyObject * _resultobj; | |
768 | int _result; | |
769 | wxString * _arg0; | |
770 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
771 | int _arg2 = (int ) wxOK|wxCENTRE; | |
772 | wxWindow * _arg3 = (wxWindow *) NULL; | |
773 | int _arg4 = (int ) -1; | |
774 | int _arg5 = (int ) -1; | |
775 | PyObject * _obj0 = 0; | |
776 | PyObject * _obj1 = 0; | |
777 | PyObject * _argo3 = 0; | |
778 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
779 | ||
780 | self = self; | |
781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
782 | return NULL; | |
783 | { | |
2cd2fac8 RD |
784 | #if PYTHON_API_VERSION >= 1009 |
785 | char* tmpPtr; int tmpSize; | |
786 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 787 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
788 | return NULL; |
789 | } | |
790 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
791 | return NULL; | |
792 | _arg0 = new wxString(tmpPtr, tmpSize); | |
793 | #else | |
bc29c5e0 RD |
794 | if (!PyString_Check(_obj0)) { |
795 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
796 | return NULL; | |
797 | } | |
2cd2fac8 RD |
798 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
799 | #endif | |
bc29c5e0 RD |
800 | } |
801 | if (_obj1) | |
802 | { | |
2cd2fac8 RD |
803 | #if PYTHON_API_VERSION >= 1009 |
804 | char* tmpPtr; int tmpSize; | |
805 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 806 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
807 | return NULL; |
808 | } | |
809 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
810 | return NULL; | |
811 | _arg1 = new wxString(tmpPtr, tmpSize); | |
812 | #else | |
bc29c5e0 RD |
813 | if (!PyString_Check(_obj1)) { |
814 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
815 | return NULL; | |
816 | } | |
2cd2fac8 RD |
817 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
818 | #endif | |
bc29c5e0 RD |
819 | } |
820 | if (_argo3) { | |
821 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
822 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
824 | return NULL; | |
825 | } | |
826 | } | |
827 | { | |
828 | wxPy_BEGIN_ALLOW_THREADS; | |
829 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
830 | ||
831 | wxPy_END_ALLOW_THREADS; | |
832 | } _resultobj = Py_BuildValue("i",_result); | |
833 | { | |
834 | if (_obj0) | |
835 | delete _arg0; | |
836 | } | |
837 | { | |
838 | if (_obj1) | |
839 | delete _arg1; | |
840 | } | |
841 | return _resultobj; | |
842 | } | |
843 | ||
844 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
845 | PyObject * _resultobj; | |
846 | long _result; | |
847 | wxString * _arg0; | |
848 | wxString * _arg1; | |
849 | wxString * _arg2; | |
850 | long _arg3; | |
851 | long _arg4 = (long ) 0; | |
852 | long _arg5 = (long ) 100; | |
853 | wxWindow * _arg6 = (wxWindow *) NULL; | |
b68dc582 | 854 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
bc29c5e0 RD |
855 | PyObject * _obj0 = 0; |
856 | PyObject * _obj1 = 0; | |
857 | PyObject * _obj2 = 0; | |
858 | PyObject * _argo6 = 0; | |
859 | wxPoint temp; | |
860 | PyObject * _obj7 = 0; | |
861 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
862 | ||
863 | self = self; | |
864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
865 | return NULL; | |
866 | { | |
2cd2fac8 RD |
867 | #if PYTHON_API_VERSION >= 1009 |
868 | char* tmpPtr; int tmpSize; | |
869 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 870 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
871 | return NULL; |
872 | } | |
873 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
874 | return NULL; | |
875 | _arg0 = new wxString(tmpPtr, tmpSize); | |
876 | #else | |
bc29c5e0 RD |
877 | if (!PyString_Check(_obj0)) { |
878 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
879 | return NULL; | |
880 | } | |
2cd2fac8 RD |
881 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
882 | #endif | |
bc29c5e0 RD |
883 | } |
884 | { | |
2cd2fac8 RD |
885 | #if PYTHON_API_VERSION >= 1009 |
886 | char* tmpPtr; int tmpSize; | |
887 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 888 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
889 | return NULL; |
890 | } | |
891 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
892 | return NULL; | |
893 | _arg1 = new wxString(tmpPtr, tmpSize); | |
894 | #else | |
bc29c5e0 RD |
895 | if (!PyString_Check(_obj1)) { |
896 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
897 | return NULL; | |
898 | } | |
2cd2fac8 RD |
899 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
900 | #endif | |
bc29c5e0 RD |
901 | } |
902 | { | |
2cd2fac8 RD |
903 | #if PYTHON_API_VERSION >= 1009 |
904 | char* tmpPtr; int tmpSize; | |
905 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 906 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
907 | return NULL; |
908 | } | |
909 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
910 | return NULL; | |
911 | _arg2 = new wxString(tmpPtr, tmpSize); | |
912 | #else | |
bc29c5e0 RD |
913 | if (!PyString_Check(_obj2)) { |
914 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
915 | return NULL; | |
916 | } | |
2cd2fac8 RD |
917 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
918 | #endif | |
bc29c5e0 RD |
919 | } |
920 | if (_argo6) { | |
921 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
922 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
924 | return NULL; | |
925 | } | |
926 | } | |
927 | if (_obj7) | |
928 | { | |
929 | _arg7 = &temp; | |
930 | if (! wxPoint_helper(_obj7, &_arg7)) | |
931 | return NULL; | |
932 | } | |
933 | { | |
934 | wxPy_BEGIN_ALLOW_THREADS; | |
935 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); | |
936 | ||
937 | wxPy_END_ALLOW_THREADS; | |
938 | } _resultobj = Py_BuildValue("l",_result); | |
939 | { | |
940 | if (_obj0) | |
941 | delete _arg0; | |
942 | } | |
943 | { | |
944 | if (_obj1) | |
945 | delete _arg1; | |
946 | } | |
947 | { | |
948 | if (_obj2) | |
949 | delete _arg2; | |
950 | } | |
951 | return _resultobj; | |
952 | } | |
953 | ||
954 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
955 | PyObject * _resultobj; | |
956 | bool _result; | |
957 | char *_kwnames[] = { NULL }; | |
958 | ||
959 | self = self; | |
960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
961 | return NULL; | |
962 | { | |
963 | wxPy_BEGIN_ALLOW_THREADS; | |
964 | _result = (bool )wxColourDisplay(); | |
965 | ||
966 | wxPy_END_ALLOW_THREADS; | |
967 | } _resultobj = Py_BuildValue("i",_result); | |
968 | return _resultobj; | |
969 | } | |
970 | ||
971 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
972 | PyObject * _resultobj; | |
973 | int _result; | |
974 | char *_kwnames[] = { NULL }; | |
975 | ||
976 | self = self; | |
977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
978 | return NULL; | |
979 | { | |
980 | wxPy_BEGIN_ALLOW_THREADS; | |
981 | _result = (int )wxDisplayDepth(); | |
982 | ||
983 | wxPy_END_ALLOW_THREADS; | |
984 | } _resultobj = Py_BuildValue("i",_result); | |
985 | return _resultobj; | |
986 | } | |
8f17924e | 987 | |
b68dc582 RD |
988 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
989 | PyObject * _resultobj; | |
990 | int _result; | |
991 | char *_kwnames[] = { NULL }; | |
992 | ||
993 | self = self; | |
994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
995 | return NULL; | |
996 | { | |
997 | wxPy_BEGIN_ALLOW_THREADS; | |
998 | _result = (int )wxGetDisplayDepth(); | |
999 | ||
1000 | wxPy_END_ALLOW_THREADS; | |
1001 | } _resultobj = Py_BuildValue("i",_result); | |
1002 | return _resultobj; | |
1003 | } | |
1004 | ||
1005 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1006 | PyObject * _resultobj; | |
1007 | int * _arg0; | |
1008 | int temp; | |
1009 | int * _arg1; | |
1010 | int temp0; | |
1011 | char *_kwnames[] = { NULL }; | |
1012 | ||
1013 | self = self; | |
1014 | { | |
1015 | _arg0 = &temp; | |
1016 | } | |
1017 | { | |
1018 | _arg1 = &temp0; | |
1019 | } | |
1020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1021 | return NULL; | |
1022 | { | |
1023 | wxPy_BEGIN_ALLOW_THREADS; | |
1024 | wxDisplaySize(_arg0,_arg1); | |
1025 | ||
1026 | wxPy_END_ALLOW_THREADS; | |
1027 | } Py_INCREF(Py_None); | |
1028 | _resultobj = Py_None; | |
1029 | { | |
1030 | PyObject *o; | |
1031 | o = PyInt_FromLong((long) (*_arg0)); | |
1032 | _resultobj = t_output_helper(_resultobj, o); | |
1033 | } | |
1034 | { | |
1035 | PyObject *o; | |
1036 | o = PyInt_FromLong((long) (*_arg1)); | |
1037 | _resultobj = t_output_helper(_resultobj, o); | |
1038 | } | |
1039 | return _resultobj; | |
1040 | } | |
1041 | ||
1042 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1043 | PyObject * _resultobj; | |
1044 | wxSize * _result; | |
1045 | char *_kwnames[] = { NULL }; | |
1046 | char _ptemp[128]; | |
1047 | ||
1048 | self = self; | |
1049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1050 | return NULL; | |
1051 | { | |
1052 | wxPy_BEGIN_ALLOW_THREADS; | |
1053 | _result = new wxSize (wxGetDisplaySize()); | |
1054 | ||
1055 | wxPy_END_ALLOW_THREADS; | |
1056 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1057 | _resultobj = Py_BuildValue("s",_ptemp); | |
1058 | return _resultobj; | |
1059 | } | |
1060 | ||
9c4165ad RD |
1061 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { |
1062 | PyObject * _resultobj; | |
1063 | int * _arg0; | |
1064 | int temp; | |
1065 | int * _arg1; | |
1066 | int temp0; | |
1067 | char *_kwnames[] = { NULL }; | |
1068 | ||
1069 | self = self; | |
1070 | { | |
1071 | _arg0 = &temp; | |
1072 | } | |
1073 | { | |
1074 | _arg1 = &temp0; | |
1075 | } | |
1076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1077 | return NULL; | |
1078 | { | |
1079 | wxPy_BEGIN_ALLOW_THREADS; | |
1080 | wxDisplaySizeMM(_arg0,_arg1); | |
1081 | ||
1082 | wxPy_END_ALLOW_THREADS; | |
1083 | } Py_INCREF(Py_None); | |
1084 | _resultobj = Py_None; | |
1085 | { | |
1086 | PyObject *o; | |
1087 | o = PyInt_FromLong((long) (*_arg0)); | |
1088 | _resultobj = t_output_helper(_resultobj, o); | |
1089 | } | |
1090 | { | |
1091 | PyObject *o; | |
1092 | o = PyInt_FromLong((long) (*_arg1)); | |
1093 | _resultobj = t_output_helper(_resultobj, o); | |
1094 | } | |
1095 | return _resultobj; | |
1096 | } | |
1097 | ||
1098 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1099 | PyObject * _resultobj; | |
1100 | wxSize * _result; | |
1101 | char *_kwnames[] = { NULL }; | |
1102 | char _ptemp[128]; | |
1103 | ||
1104 | self = self; | |
1105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1106 | return NULL; | |
1107 | { | |
1108 | wxPy_BEGIN_ALLOW_THREADS; | |
1109 | _result = new wxSize (wxGetDisplaySizeMM()); | |
1110 | ||
1111 | wxPy_END_ALLOW_THREADS; | |
1112 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1113 | _resultobj = Py_BuildValue("s",_ptemp); | |
1114 | return _resultobj; | |
1115 | } | |
1116 | ||
9e689c06 RD |
1117 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1118 | PyObject * _resultobj; | |
1119 | int * _arg0; | |
1120 | int temp; | |
1121 | int * _arg1; | |
1122 | int temp0; | |
1123 | int * _arg2; | |
1124 | int temp1; | |
1125 | int * _arg3; | |
1126 | int temp2; | |
1127 | char *_kwnames[] = { NULL }; | |
1128 | ||
1129 | self = self; | |
1130 | { | |
1131 | _arg0 = &temp; | |
1132 | } | |
1133 | { | |
1134 | _arg1 = &temp0; | |
1135 | } | |
1136 | { | |
1137 | _arg2 = &temp1; | |
1138 | } | |
1139 | { | |
1140 | _arg3 = &temp2; | |
1141 | } | |
1142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1143 | return NULL; | |
1144 | { | |
1145 | wxPy_BEGIN_ALLOW_THREADS; | |
1146 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); | |
1147 | ||
1148 | wxPy_END_ALLOW_THREADS; | |
1149 | } Py_INCREF(Py_None); | |
1150 | _resultobj = Py_None; | |
1151 | { | |
1152 | PyObject *o; | |
1153 | o = PyInt_FromLong((long) (*_arg0)); | |
1154 | _resultobj = t_output_helper(_resultobj, o); | |
1155 | } | |
1156 | { | |
1157 | PyObject *o; | |
1158 | o = PyInt_FromLong((long) (*_arg1)); | |
1159 | _resultobj = t_output_helper(_resultobj, o); | |
1160 | } | |
1161 | { | |
1162 | PyObject *o; | |
1163 | o = PyInt_FromLong((long) (*_arg2)); | |
1164 | _resultobj = t_output_helper(_resultobj, o); | |
1165 | } | |
1166 | { | |
1167 | PyObject *o; | |
1168 | o = PyInt_FromLong((long) (*_arg3)); | |
1169 | _resultobj = t_output_helper(_resultobj, o); | |
1170 | } | |
1171 | return _resultobj; | |
1172 | } | |
1173 | ||
1174 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1175 | PyObject * _resultobj; | |
1176 | wxRect * _result; | |
1177 | char *_kwnames[] = { NULL }; | |
1178 | char _ptemp[128]; | |
1179 | ||
1180 | self = self; | |
1181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1182 | return NULL; | |
1183 | { | |
1184 | wxPy_BEGIN_ALLOW_THREADS; | |
1185 | _result = new wxRect (wxGetClientDisplayRect()); | |
1186 | ||
1187 | wxPy_END_ALLOW_THREADS; | |
1188 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1189 | _resultobj = Py_BuildValue("s",_ptemp); | |
1190 | return _resultobj; | |
1191 | } | |
1192 | ||
bc29c5e0 RD |
1193 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1194 | PyObject * _resultobj; | |
1195 | wxCursor * _arg0; | |
1196 | PyObject * _argo0 = 0; | |
1197 | char *_kwnames[] = { "cursor", NULL }; | |
8f17924e | 1198 | |
bc29c5e0 RD |
1199 | self = self; |
1200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1201 | return NULL; | |
1202 | if (_argo0) { | |
1203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1206 | return NULL; | |
1207 | } | |
8f17924e | 1208 | } |
bc29c5e0 RD |
1209 | { |
1210 | wxPy_BEGIN_ALLOW_THREADS; | |
1211 | wxSetCursor(*_arg0); | |
1212 | ||
1213 | wxPy_END_ALLOW_THREADS; | |
1214 | } Py_INCREF(Py_None); | |
1215 | _resultobj = Py_None; | |
1216 | return _resultobj; | |
1217 | } | |
1218 | ||
107e4716 | 1219 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1220 | PyObject * _resultobj; |
1221 | wxWindow * _result; | |
1222 | wxString * _arg0; | |
2d091820 | 1223 | wxWindow * _arg1 = (wxWindow *) NULL; |
d24a34bb | 1224 | PyObject * _obj0 = 0; |
2d091820 | 1225 | PyObject * _argo1 = 0; |
107e4716 | 1226 | char *_kwnames[] = { "label","parent", NULL }; |
d24a34bb RD |
1227 | |
1228 | self = self; | |
107e4716 | 1229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) |
d24a34bb RD |
1230 | return NULL; |
1231 | { | |
2cd2fac8 RD |
1232 | #if PYTHON_API_VERSION >= 1009 |
1233 | char* tmpPtr; int tmpSize; | |
1234 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 1235 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1236 | return NULL; |
1237 | } | |
1238 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1239 | return NULL; | |
1240 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1241 | #else | |
d24a34bb RD |
1242 | if (!PyString_Check(_obj0)) { |
1243 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1244 | return NULL; | |
1245 | } | |
2cd2fac8 RD |
1246 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1247 | #endif | |
d24a34bb | 1248 | } |
2d091820 RD |
1249 | if (_argo1) { |
1250 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1251 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
d24a34bb RD |
1252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); |
1253 | return NULL; | |
1254 | } | |
1255 | } | |
1256 | { | |
1257 | wxPy_BEGIN_ALLOW_THREADS; | |
1258 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
1259 | ||
1260 | wxPy_END_ALLOW_THREADS; | |
9df61a29 | 1261 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d24a34bb RD |
1262 | { |
1263 | if (_obj0) | |
1264 | delete _arg0; | |
1265 | } | |
1266 | return _resultobj; | |
1267 | } | |
1268 | ||
107e4716 | 1269 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1270 | PyObject * _resultobj; |
1271 | wxWindow * _result; | |
1272 | wxString * _arg0; | |
2d091820 | 1273 | wxWindow * _arg1 = (wxWindow *) NULL; |
d24a34bb | 1274 | PyObject * _obj0 = 0; |
2d091820 | 1275 | PyObject * _argo1 = 0; |
107e4716 | 1276 | char *_kwnames[] = { "name","parent", NULL }; |
d24a34bb RD |
1277 | |
1278 | self = self; | |
107e4716 | 1279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) |
d24a34bb RD |
1280 | return NULL; |
1281 | { | |
2cd2fac8 RD |
1282 | #if PYTHON_API_VERSION >= 1009 |
1283 | char* tmpPtr; int tmpSize; | |
1284 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 1285 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1286 | return NULL; |
1287 | } | |
1288 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1289 | return NULL; | |
1290 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1291 | #else | |
d24a34bb RD |
1292 | if (!PyString_Check(_obj0)) { |
1293 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1294 | return NULL; | |
1295 | } | |
2cd2fac8 RD |
1296 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1297 | #endif | |
d24a34bb | 1298 | } |
2d091820 RD |
1299 | if (_argo1) { |
1300 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1301 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
d24a34bb RD |
1302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); |
1303 | return NULL; | |
1304 | } | |
1305 | } | |
1306 | { | |
1307 | wxPy_BEGIN_ALLOW_THREADS; | |
1308 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
1309 | ||
1310 | wxPy_END_ALLOW_THREADS; | |
9df61a29 | 1311 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d24a34bb RD |
1312 | { |
1313 | if (_obj0) | |
1314 | delete _arg0; | |
1315 | } | |
1316 | return _resultobj; | |
1317 | } | |
1318 | ||
bc29c5e0 RD |
1319 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1320 | PyObject * _resultobj; | |
1321 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1322 | PyObject * _argo0 = 0; | |
1323 | char *_kwnames[] = { "cursor", NULL }; | |
1324 | ||
1325 | self = self; | |
1326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1327 | return NULL; | |
1328 | if (_argo0) { | |
1329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1332 | return NULL; | |
1333 | } | |
1334 | } | |
1335 | { | |
1336 | wxPy_BEGIN_ALLOW_THREADS; | |
1337 | wxBeginBusyCursor(_arg0); | |
1338 | ||
1339 | wxPy_END_ALLOW_THREADS; | |
1340 | } Py_INCREF(Py_None); | |
1341 | _resultobj = Py_None; | |
1342 | return _resultobj; | |
1343 | } | |
1344 | ||
1345 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1346 | PyObject * _resultobj; | |
1347 | wxWindow * _result; | |
1348 | char *_kwnames[] = { NULL }; | |
bc29c5e0 RD |
1349 | |
1350 | self = self; | |
1351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1352 | return NULL; | |
1353 | { | |
1354 | wxPy_BEGIN_ALLOW_THREADS; | |
1355 | _result = (wxWindow *)wxGetActiveWindow(); | |
1356 | ||
1357 | wxPy_END_ALLOW_THREADS; | |
9df61a29 | 1358 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bc29c5e0 RD |
1359 | return _resultobj; |
1360 | } | |
1361 | ||
4dfaa61e RD |
1362 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1363 | PyObject * _resultobj; | |
1364 | wxWindow * _result; | |
1365 | wxPoint * _arg0; | |
1366 | wxPoint temp; | |
1367 | PyObject * _obj0 = 0; | |
1368 | char *_kwnames[] = { "pt", NULL }; | |
1369 | ||
1370 | self = self; | |
1371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1372 | return NULL; | |
1373 | { | |
1374 | _arg0 = &temp; | |
1375 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1376 | return NULL; | |
1377 | } | |
1378 | { | |
1379 | wxPy_BEGIN_ALLOW_THREADS; | |
1380 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); | |
1381 | ||
1382 | wxPy_END_ALLOW_THREADS; | |
1383 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1384 | return _resultobj; | |
1385 | } | |
1386 | ||
1387 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1388 | PyObject * _resultobj; | |
1389 | wxWindow * _result; | |
1390 | wxPoint * _arg0; | |
1391 | wxPoint temp; | |
1392 | PyObject * _obj0 = 0; | |
1393 | char *_kwnames[] = { "pt", NULL }; | |
1394 | ||
1395 | self = self; | |
1396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1397 | return NULL; | |
1398 | { | |
1399 | _arg0 = &temp; | |
1400 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1401 | return NULL; | |
1402 | } | |
1403 | { | |
1404 | wxPy_BEGIN_ALLOW_THREADS; | |
1405 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); | |
1406 | ||
1407 | wxPy_END_ALLOW_THREADS; | |
1408 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1409 | return _resultobj; | |
1410 | } | |
1411 | ||
bc29c5e0 RD |
1412 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { |
1413 | PyObject * _resultobj; | |
1414 | bool _result; | |
1415 | char * _arg0; | |
1416 | int _arg1; | |
1417 | char *_kwnames[] = { "name","value", NULL }; | |
1418 | ||
1419 | self = self; | |
1420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1421 | return NULL; | |
1422 | { | |
1423 | wxPy_BEGIN_ALLOW_THREADS; | |
1424 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); | |
1425 | ||
1426 | wxPy_END_ALLOW_THREADS; | |
1427 | } _resultobj = Py_BuildValue("i",_result); | |
1428 | return _resultobj; | |
1429 | } | |
1430 | ||
1431 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1432 | PyObject * _resultobj; | |
1433 | char *_kwnames[] = { NULL }; | |
1434 | ||
1435 | self = self; | |
1436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1437 | return NULL; | |
1438 | { | |
1439 | wxPy_BEGIN_ALLOW_THREADS; | |
1440 | wxResourceClear(); | |
1441 | ||
1442 | wxPy_END_ALLOW_THREADS; | |
1443 | } Py_INCREF(Py_None); | |
1444 | _resultobj = Py_None; | |
1445 | return _resultobj; | |
1446 | } | |
1447 | ||
1448 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | wxBitmap * _result; | |
1451 | char * _arg0; | |
1452 | char *_kwnames[] = { "resource", NULL }; | |
1453 | char _ptemp[128]; | |
1454 | ||
1455 | self = self; | |
1456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1457 | return NULL; | |
1458 | { | |
1459 | wxPy_BEGIN_ALLOW_THREADS; | |
1460 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); | |
1461 | ||
1462 | wxPy_END_ALLOW_THREADS; | |
1463 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1464 | _resultobj = Py_BuildValue("s",_ptemp); | |
1465 | return _resultobj; | |
1466 | } | |
1467 | ||
1468 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1469 | PyObject * _resultobj; | |
1470 | wxIcon * _result; | |
1471 | char * _arg0; | |
1472 | char *_kwnames[] = { "resource", NULL }; | |
1473 | char _ptemp[128]; | |
1474 | ||
1475 | self = self; | |
1476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1477 | return NULL; | |
1478 | { | |
1479 | wxPy_BEGIN_ALLOW_THREADS; | |
1480 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); | |
1481 | ||
1482 | wxPy_END_ALLOW_THREADS; | |
1483 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
1484 | _resultobj = Py_BuildValue("s",_ptemp); | |
1485 | return _resultobj; | |
1486 | } | |
1487 | ||
1488 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1489 | PyObject * _resultobj; | |
1490 | wxMenuBar * _result; | |
1491 | char * _arg0; | |
1492 | char *_kwnames[] = { "resource", NULL }; | |
bc29c5e0 RD |
1493 | |
1494 | self = self; | |
1495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1496 | return NULL; | |
1497 | { | |
1498 | wxPy_BEGIN_ALLOW_THREADS; | |
1499 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); | |
1500 | ||
1501 | wxPy_END_ALLOW_THREADS; | |
9df61a29 | 1502 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bc29c5e0 RD |
1503 | return _resultobj; |
1504 | } | |
1505 | ||
1506 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1507 | PyObject * _resultobj; | |
1508 | int _result; | |
1509 | char * _arg0; | |
1510 | char *_kwnames[] = { "name", NULL }; | |
1511 | ||
1512 | self = self; | |
1513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1514 | return NULL; | |
1515 | { | |
1516 | wxPy_BEGIN_ALLOW_THREADS; | |
1517 | _result = (int )wxResourceGetIdentifier(_arg0); | |
1518 | ||
1519 | wxPy_END_ALLOW_THREADS; | |
1520 | } _resultobj = Py_BuildValue("i",_result); | |
1521 | return _resultobj; | |
1522 | } | |
1523 | ||
1524 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1525 | PyObject * _resultobj; | |
1526 | bool _result; | |
1527 | char * _arg0; | |
1528 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1529 | PyObject * _argo1 = 0; | |
1530 | char *_kwnames[] = { "resource","table", NULL }; | |
1531 | ||
1532 | self = self; | |
1533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1534 | return NULL; | |
1535 | if (_argo1) { | |
1536 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1537 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1539 | return NULL; | |
1540 | } | |
1541 | } | |
1542 | { | |
1543 | wxPy_BEGIN_ALLOW_THREADS; | |
1544 | _result = (bool )wxResourceParseData(_arg0,_arg1); | |
1545 | ||
1546 | wxPy_END_ALLOW_THREADS; | |
1547 | } _resultobj = Py_BuildValue("i",_result); | |
1548 | return _resultobj; | |
1549 | } | |
1550 | ||
1551 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1552 | PyObject * _resultobj; | |
1553 | bool _result; | |
1554 | char * _arg0; | |
1555 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1556 | PyObject * _argo1 = 0; | |
1557 | char *_kwnames[] = { "filename","table", NULL }; | |
1558 | ||
1559 | self = self; | |
1560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1561 | return NULL; | |
1562 | if (_argo1) { | |
1563 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1564 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1566 | return NULL; | |
1567 | } | |
1568 | } | |
1569 | { | |
1570 | wxPy_BEGIN_ALLOW_THREADS; | |
1571 | _result = (bool )wxResourceParseFile(_arg0,_arg1); | |
1572 | ||
1573 | wxPy_END_ALLOW_THREADS; | |
1574 | } _resultobj = Py_BuildValue("i",_result); | |
1575 | return _resultobj; | |
1576 | } | |
1577 | ||
1578 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1579 | PyObject * _resultobj; | |
1580 | bool _result; | |
1581 | char * _arg0; | |
1582 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1583 | PyObject * _argo1 = 0; | |
1584 | char *_kwnames[] = { "resource","table", NULL }; | |
1585 | ||
1586 | self = self; | |
1587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1588 | return NULL; | |
1589 | if (_argo1) { | |
1590 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1591 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1593 | return NULL; | |
1594 | } | |
1595 | } | |
1596 | { | |
1597 | wxPy_BEGIN_ALLOW_THREADS; | |
1598 | _result = (bool )wxResourceParseString(_arg0,_arg1); | |
1599 | ||
1600 | wxPy_END_ALLOW_THREADS; | |
1601 | } _resultobj = Py_BuildValue("i",_result); | |
1602 | return _resultobj; | |
1603 | } | |
1604 | ||
1605 | static PyObject *_wrap_wxSystemSettings_GetSystemColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1606 | PyObject * _resultobj; | |
1607 | wxColour * _result; | |
1608 | int _arg0; | |
1609 | char *_kwnames[] = { "index", NULL }; | |
1610 | char _ptemp[128]; | |
1611 | ||
1612 | self = self; | |
1613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemColour",_kwnames,&_arg0)) | |
1614 | return NULL; | |
1615 | { | |
1616 | wxPy_BEGIN_ALLOW_THREADS; | |
1617 | _result = new wxColour (wxSystemSettings_GetSystemColour(_arg0)); | |
1618 | ||
1619 | wxPy_END_ALLOW_THREADS; | |
1620 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1621 | _resultobj = Py_BuildValue("s",_ptemp); | |
1622 | return _resultobj; | |
1623 | } | |
1624 | ||
1625 | static PyObject *_wrap_wxSystemSettings_GetSystemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1626 | PyObject * _resultobj; | |
1627 | wxFont * _result; | |
1628 | int _arg0; | |
1629 | char *_kwnames[] = { "index", NULL }; | |
1630 | char _ptemp[128]; | |
1631 | ||
1632 | self = self; | |
1633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemFont",_kwnames,&_arg0)) | |
1634 | return NULL; | |
1635 | { | |
1636 | wxPy_BEGIN_ALLOW_THREADS; | |
1637 | _result = new wxFont (wxSystemSettings_GetSystemFont(_arg0)); | |
1638 | ||
1639 | wxPy_END_ALLOW_THREADS; | |
1640 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1641 | _resultobj = Py_BuildValue("s",_ptemp); | |
1642 | return _resultobj; | |
1643 | } | |
1644 | ||
1645 | static PyObject *_wrap_wxSystemSettings_GetSystemMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1646 | PyObject * _resultobj; | |
1647 | int _result; | |
1648 | int _arg0; | |
1649 | char *_kwnames[] = { "index", NULL }; | |
1650 | ||
1651 | self = self; | |
1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemMetric",_kwnames,&_arg0)) | |
1653 | return NULL; | |
1654 | { | |
1655 | wxPy_BEGIN_ALLOW_THREADS; | |
1656 | _result = (int )wxSystemSettings_GetSystemMetric(_arg0); | |
1657 | ||
1658 | wxPy_END_ALLOW_THREADS; | |
1659 | } _resultobj = Py_BuildValue("i",_result); | |
1660 | return _resultobj; | |
1661 | } | |
1662 | ||
8f17924e RD |
1663 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1664 | PyObject * _resultobj; | |
1665 | int _result; | |
1666 | char *_kwnames[] = { NULL }; | |
1667 | ||
1668 | self = self; | |
1669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1670 | return NULL; | |
1671 | { | |
1672 | wxPy_BEGIN_ALLOW_THREADS; | |
1673 | _result = (int )wxCaret_GetBlinkTime(); | |
1674 | ||
1675 | wxPy_END_ALLOW_THREADS; | |
1676 | } _resultobj = Py_BuildValue("i",_result); | |
1677 | return _resultobj; | |
1678 | } | |
1679 | ||
1680 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1681 | PyObject * _resultobj; | |
1682 | int _arg0; | |
1683 | char *_kwnames[] = { "milliseconds", NULL }; | |
1684 | ||
1685 | self = self; | |
1686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1687 | return NULL; | |
1688 | { | |
1689 | wxPy_BEGIN_ALLOW_THREADS; | |
1690 | wxCaret_SetBlinkTime(_arg0); | |
1691 | ||
1692 | wxPy_END_ALLOW_THREADS; | |
1693 | } Py_INCREF(Py_None); | |
1694 | _resultobj = Py_None; | |
1695 | return _resultobj; | |
1696 | } | |
1697 | ||
4662be59 RD |
1698 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1699 | PyObject * _resultobj; | |
1700 | bool _result; | |
1701 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1702 | PyObject * _argo0 = 0; | |
1703 | char *_kwnames[] = { "win", NULL }; | |
1704 | ||
1705 | self = self; | |
1706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1707 | return NULL; | |
1708 | if (_argo0) { | |
1709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1712 | return NULL; | |
1713 | } | |
1714 | } | |
1715 | { | |
1716 | wxPy_BEGIN_ALLOW_THREADS; | |
1717 | _result = (bool )wxSafeYield(_arg0); | |
1718 | ||
1719 | wxPy_END_ALLOW_THREADS; | |
1720 | } _resultobj = Py_BuildValue("i",_result); | |
1721 | return _resultobj; | |
1722 | } | |
1723 | ||
4120ef2b RD |
1724 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1725 | PyObject * _resultobj; | |
1726 | wxEvtHandler * _arg0; | |
1727 | wxEvent * _arg1; | |
1728 | PyObject * _argo0 = 0; | |
1729 | PyObject * _argo1 = 0; | |
1730 | char *_kwnames[] = { "dest","event", NULL }; | |
1731 | ||
1732 | self = self; | |
1733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1734 | return NULL; | |
1735 | if (_argo0) { | |
1736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1739 | return NULL; | |
1740 | } | |
1741 | } | |
1742 | if (_argo1) { | |
1743 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1744 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1746 | return NULL; | |
1747 | } | |
1748 | } | |
1749 | { | |
1750 | wxPy_BEGIN_ALLOW_THREADS; | |
1751 | wxPostEvent(_arg0,*_arg1); | |
1752 | ||
1753 | wxPy_END_ALLOW_THREADS; | |
1754 | } Py_INCREF(Py_None); | |
1755 | _resultobj = Py_None; | |
1756 | return _resultobj; | |
1757 | } | |
1758 | ||
d29aba2f RD |
1759 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1760 | PyObject * _resultobj; | |
1761 | char *_kwnames[] = { NULL }; | |
1762 | ||
1763 | self = self; | |
1764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1765 | return NULL; | |
1766 | { | |
1767 | wxPy_BEGIN_ALLOW_THREADS; | |
1768 | wxWakeUpIdle(); | |
1769 | ||
1770 | wxPy_END_ALLOW_THREADS; | |
1771 | } Py_INCREF(Py_None); | |
1772 | _resultobj = Py_None; | |
1773 | return _resultobj; | |
1774 | } | |
1775 | ||
4662be59 | 1776 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1777 | PyObject * _resultobj; |
4662be59 | 1778 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1779 | |
1780 | self = self; | |
4662be59 | 1781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) |
c368d904 | 1782 | return NULL; |
4662be59 RD |
1783 | { |
1784 | wxPy_BEGIN_ALLOW_THREADS; | |
1785 | wxMutexGuiEnter(); | |
1786 | ||
1787 | wxPy_END_ALLOW_THREADS; | |
1788 | } Py_INCREF(Py_None); | |
1789 | _resultobj = Py_None; | |
1790 | return _resultobj; | |
1791 | } | |
1792 | ||
1793 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject * _resultobj; | |
1795 | char *_kwnames[] = { NULL }; | |
1796 | ||
1797 | self = self; | |
1798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
c368d904 | 1799 | return NULL; |
c368d904 RD |
1800 | { |
1801 | wxPy_BEGIN_ALLOW_THREADS; | |
4662be59 RD |
1802 | wxMutexGuiLeave(); |
1803 | ||
1804 | wxPy_END_ALLOW_THREADS; | |
1805 | } Py_INCREF(Py_None); | |
1806 | _resultobj = Py_None; | |
1807 | return _resultobj; | |
1808 | } | |
1809 | ||
1810 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1811 | PyObject * _resultobj; | |
1812 | bool _result; | |
1813 | char *_kwnames[] = { NULL }; | |
1814 | ||
1815 | self = self; | |
1816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1817 | return NULL; | |
1818 | { | |
1819 | wxPy_BEGIN_ALLOW_THREADS; | |
1820 | _result = (bool )wxThread_IsMain(); | |
c368d904 RD |
1821 | |
1822 | wxPy_END_ALLOW_THREADS; | |
1823 | } _resultobj = Py_BuildValue("i",_result); | |
1824 | return _resultobj; | |
1825 | } | |
1826 | ||
f6bcfd97 | 1827 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb | 1828 | PyObject * _resultobj; |
f6bcfd97 BP |
1829 | bool _result; |
1830 | wxWindow * _arg0; | |
1831 | wxTipProvider * _arg1; | |
1832 | bool _arg2 = (bool ) TRUE; | |
1833 | PyObject * _argo0 = 0; | |
1834 | PyObject * _argo1 = 0; | |
1835 | int tempbool2 = (int) TRUE; | |
1836 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1837 | ||
1838 | self = self; | |
1839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1840 | return NULL; | |
1841 | if (_argo0) { | |
1842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1845 | return NULL; | |
1846 | } | |
1847 | } | |
1848 | if (_argo1) { | |
1849 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1850 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1852 | return NULL; | |
1853 | } | |
1854 | } | |
1855 | _arg2 = (bool ) tempbool2; | |
1856 | { | |
1857 | wxPy_BEGIN_ALLOW_THREADS; | |
1858 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); | |
1859 | ||
1860 | wxPy_END_ALLOW_THREADS; | |
1861 | } _resultobj = Py_BuildValue("i",_result); | |
1862 | return _resultobj; | |
1863 | } | |
1864 | ||
1865 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1866 | PyObject * _resultobj; | |
1867 | wxTipProvider * _result; | |
d24a34bb | 1868 | wxString * _arg0; |
f6bcfd97 | 1869 | size_t _arg1; |
d24a34bb | 1870 | PyObject * _obj0 = 0; |
f6bcfd97 | 1871 | char *_kwnames[] = { "filename","currentTip", NULL }; |
d24a34bb RD |
1872 | char _ptemp[128]; |
1873 | ||
1874 | self = self; | |
f6bcfd97 | 1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
d24a34bb RD |
1876 | return NULL; |
1877 | { | |
2cd2fac8 RD |
1878 | #if PYTHON_API_VERSION >= 1009 |
1879 | char* tmpPtr; int tmpSize; | |
1880 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 1881 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1882 | return NULL; |
1883 | } | |
1884 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1885 | return NULL; | |
1886 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1887 | #else | |
d24a34bb RD |
1888 | if (!PyString_Check(_obj0)) { |
1889 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1890 | return NULL; | |
1891 | } | |
2cd2fac8 RD |
1892 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1893 | #endif | |
d24a34bb RD |
1894 | } |
1895 | { | |
1896 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1897 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
d24a34bb RD |
1898 | |
1899 | wxPy_END_ALLOW_THREADS; | |
2d091820 | 1900 | } if (_result) { |
f6bcfd97 | 1901 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
2d091820 RD |
1902 | _resultobj = Py_BuildValue("s",_ptemp); |
1903 | } else { | |
1904 | Py_INCREF(Py_None); | |
1905 | _resultobj = Py_None; | |
1906 | } | |
d24a34bb RD |
1907 | { |
1908 | if (_obj0) | |
1909 | delete _arg0; | |
1910 | } | |
1911 | return _resultobj; | |
1912 | } | |
1913 | ||
f6bcfd97 | 1914 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 1915 | PyObject * _resultobj; |
f6bcfd97 BP |
1916 | unsigned long _result; |
1917 | char *_kwnames[] = { NULL }; | |
8f17924e RD |
1918 | |
1919 | self = self; | |
f6bcfd97 | 1920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
8f17924e | 1921 | return NULL; |
8f17924e RD |
1922 | { |
1923 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1924 | _result = (unsigned long )wxSysErrorCode(); |
8f17924e RD |
1925 | |
1926 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1927 | } _resultobj = Py_BuildValue("l",_result); |
8f17924e RD |
1928 | return _resultobj; |
1929 | } | |
1930 | ||
f6bcfd97 | 1931 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 1932 | PyObject * _resultobj; |
f6bcfd97 BP |
1933 | char * _result; |
1934 | unsigned long _arg0 = (unsigned long ) 0; | |
1935 | char *_kwnames[] = { "nErrCode", NULL }; | |
8f17924e RD |
1936 | |
1937 | self = self; | |
f6bcfd97 | 1938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
8f17924e | 1939 | return NULL; |
8f17924e RD |
1940 | { |
1941 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1942 | _result = (char *)wxSysErrorMsg(_arg0); |
8f17924e RD |
1943 | |
1944 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1945 | } _resultobj = Py_BuildValue("s", _result); |
8f17924e RD |
1946 | return _resultobj; |
1947 | } | |
1948 | ||
f6bcfd97 | 1949 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 1950 | PyObject * _resultobj; |
f6bcfd97 BP |
1951 | char * _arg0; |
1952 | char *_kwnames[] = { "szFormat", NULL }; | |
8f17924e RD |
1953 | |
1954 | self = self; | |
f6bcfd97 | 1955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogFatalError",_kwnames,&_arg0)) |
8f17924e | 1956 | return NULL; |
8f17924e RD |
1957 | { |
1958 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1959 | wxLogFatalError(_arg0); |
8f17924e RD |
1960 | |
1961 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
1962 | } Py_INCREF(Py_None); |
1963 | _resultobj = Py_None; | |
8f17924e RD |
1964 | return _resultobj; |
1965 | } | |
1966 | ||
f6bcfd97 | 1967 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 1968 | PyObject * _resultobj; |
f6bcfd97 BP |
1969 | char * _arg0; |
1970 | char *_kwnames[] = { "szFormat", NULL }; | |
8f17924e RD |
1971 | |
1972 | self = self; | |
f6bcfd97 | 1973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogError",_kwnames,&_arg0)) |
8f17924e | 1974 | return NULL; |
8f17924e RD |
1975 | { |
1976 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1977 | wxLogError(_arg0); |
8f17924e RD |
1978 | |
1979 | wxPy_END_ALLOW_THREADS; | |
1980 | } Py_INCREF(Py_None); | |
1981 | _resultobj = Py_None; | |
8f17924e RD |
1982 | return _resultobj; |
1983 | } | |
1984 | ||
f6bcfd97 BP |
1985 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
1986 | PyObject * _resultobj; | |
1987 | char * _arg0; | |
1988 | char *_kwnames[] = { "szFormat", NULL }; | |
1989 | ||
1990 | self = self; | |
1991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogWarning",_kwnames,&_arg0)) | |
1992 | return NULL; | |
1993 | { | |
1994 | wxPy_BEGIN_ALLOW_THREADS; | |
1995 | wxLogWarning(_arg0); | |
1996 | ||
1997 | wxPy_END_ALLOW_THREADS; | |
1998 | } Py_INCREF(Py_None); | |
1999 | _resultobj = Py_None; | |
2000 | return _resultobj; | |
2001 | } | |
2002 | ||
2003 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2004 | PyObject * _resultobj; | |
2005 | char * _arg0; | |
2006 | char *_kwnames[] = { "szFormat", NULL }; | |
2007 | ||
2008 | self = self; | |
2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogMessage",_kwnames,&_arg0)) | |
2010 | return NULL; | |
2011 | { | |
2012 | wxPy_BEGIN_ALLOW_THREADS; | |
2013 | wxLogMessage(_arg0); | |
2014 | ||
2015 | wxPy_END_ALLOW_THREADS; | |
2016 | } Py_INCREF(Py_None); | |
2017 | _resultobj = Py_None; | |
2018 | return _resultobj; | |
2019 | } | |
2020 | ||
2021 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2022 | PyObject * _resultobj; | |
2023 | char * _arg0; | |
2024 | char *_kwnames[] = { "szFormat", NULL }; | |
2025 | ||
2026 | self = self; | |
2027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogInfo",_kwnames,&_arg0)) | |
2028 | return NULL; | |
2029 | { | |
2030 | wxPy_BEGIN_ALLOW_THREADS; | |
2031 | wxLogInfo(_arg0); | |
2032 | ||
2033 | wxPy_END_ALLOW_THREADS; | |
2034 | } Py_INCREF(Py_None); | |
2035 | _resultobj = Py_None; | |
2036 | return _resultobj; | |
2037 | } | |
2038 | ||
2039 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2040 | PyObject * _resultobj; | |
2041 | char * _arg0; | |
2042 | char *_kwnames[] = { "szFormat", NULL }; | |
2043 | ||
2044 | self = self; | |
2045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogVerbose",_kwnames,&_arg0)) | |
2046 | return NULL; | |
2047 | { | |
2048 | wxPy_BEGIN_ALLOW_THREADS; | |
2049 | wxLogVerbose(_arg0); | |
2050 | ||
2051 | wxPy_END_ALLOW_THREADS; | |
2052 | } Py_INCREF(Py_None); | |
2053 | _resultobj = Py_None; | |
2054 | return _resultobj; | |
2055 | } | |
2056 | ||
2057 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2058 | PyObject * _resultobj; | |
2059 | char * _arg0; | |
2060 | char *_kwnames[] = { "szFormat", NULL }; | |
2061 | ||
2062 | self = self; | |
2063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogStatus",_kwnames,&_arg0)) | |
2064 | return NULL; | |
2065 | { | |
2066 | wxPy_BEGIN_ALLOW_THREADS; | |
2067 | wxLogStatus(_arg0); | |
2068 | ||
2069 | wxPy_END_ALLOW_THREADS; | |
2070 | } Py_INCREF(Py_None); | |
2071 | _resultobj = Py_None; | |
2072 | return _resultobj; | |
2073 | } | |
2074 | ||
2075 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2076 | PyObject * _resultobj; | |
2077 | wxFrame * _arg0; | |
2078 | char * _arg1; | |
2079 | PyObject * _argo0 = 0; | |
2080 | char *_kwnames[] = { "pFrame","szFormat", NULL }; | |
2081 | ||
2082 | self = self; | |
2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxLogStatusFrame",_kwnames,&_argo0,&_arg1)) | |
2084 | return NULL; | |
2085 | if (_argo0) { | |
2086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2089 | return NULL; | |
2090 | } | |
2091 | } | |
2092 | { | |
2093 | wxPy_BEGIN_ALLOW_THREADS; | |
2094 | wxLogStatus(_arg0,_arg1); | |
2095 | ||
2096 | wxPy_END_ALLOW_THREADS; | |
2097 | } Py_INCREF(Py_None); | |
2098 | _resultobj = Py_None; | |
2099 | return _resultobj; | |
2100 | } | |
2101 | ||
2102 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2103 | PyObject * _resultobj; | |
2104 | char * _arg0; | |
2105 | char *_kwnames[] = { "szFormat", NULL }; | |
2106 | ||
2107 | self = self; | |
2108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogSysError",_kwnames,&_arg0)) | |
2109 | return NULL; | |
2110 | { | |
2111 | wxPy_BEGIN_ALLOW_THREADS; | |
2112 | wxLogSysError(_arg0); | |
2113 | ||
2114 | wxPy_END_ALLOW_THREADS; | |
2115 | } Py_INCREF(Py_None); | |
2116 | _resultobj = Py_None; | |
2117 | return _resultobj; | |
2118 | } | |
2119 | ||
c368d904 RD |
2120 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2121 | PyObject * _resultobj; | |
2122 | long _result; | |
2123 | wxString * _arg0; | |
2124 | int _arg1 = (int ) FALSE; | |
2125 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; | |
2126 | PyObject * _obj0 = 0; | |
2127 | PyObject * _argo2 = 0; | |
2128 | char *_kwnames[] = { "command","sync","process", NULL }; | |
2129 | ||
2130 | self = self; | |
2131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2132 | return NULL; | |
2133 | { | |
2cd2fac8 RD |
2134 | #if PYTHON_API_VERSION >= 1009 |
2135 | char* tmpPtr; int tmpSize; | |
2136 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 2137 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2138 | return NULL; |
2139 | } | |
2140 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2141 | return NULL; | |
2142 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2143 | #else | |
c368d904 RD |
2144 | if (!PyString_Check(_obj0)) { |
2145 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2146 | return NULL; | |
2147 | } | |
2cd2fac8 RD |
2148 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2149 | #endif | |
c368d904 RD |
2150 | } |
2151 | if (_argo2) { | |
2152 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2153 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2155 | return NULL; | |
2156 | } | |
2157 | } | |
2158 | { | |
2159 | wxPy_BEGIN_ALLOW_THREADS; | |
2160 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); | |
2161 | ||
2162 | wxPy_END_ALLOW_THREADS; | |
2163 | } _resultobj = Py_BuildValue("l",_result); | |
2164 | { | |
2165 | if (_obj0) | |
2166 | delete _arg0; | |
2167 | } | |
2168 | return _resultobj; | |
2169 | } | |
2170 | ||
4dfaa61e RD |
2171 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2172 | PyObject * _resultobj; | |
2173 | wxWave * _result; | |
2174 | wxString * _arg0; | |
2175 | PyObject * _obj0 = 0; | |
2176 | char *_kwnames[] = { "data", NULL }; | |
2177 | char _ptemp[128]; | |
2178 | ||
2179 | self = self; | |
2180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2181 | return NULL; | |
2182 | { | |
2183 | #if PYTHON_API_VERSION >= 1009 | |
2184 | char* tmpPtr; int tmpSize; | |
2185 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2186 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2187 | return NULL; | |
2188 | } | |
2189 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2190 | return NULL; | |
2191 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2192 | #else | |
2193 | if (!PyString_Check(_obj0)) { | |
2194 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2195 | return NULL; | |
2196 | } | |
2197 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2198 | #endif | |
2199 | } | |
2200 | { | |
2201 | wxPy_BEGIN_ALLOW_THREADS; | |
2202 | _result = (wxWave *)wxWaveData(*_arg0); | |
2203 | ||
2204 | wxPy_END_ALLOW_THREADS; | |
2205 | } if (_result) { | |
2206 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2207 | _resultobj = Py_BuildValue("s",_ptemp); | |
2208 | } else { | |
2209 | Py_INCREF(Py_None); | |
2210 | _resultobj = Py_None; | |
2211 | } | |
2212 | { | |
2213 | if (_obj0) | |
2214 | delete _arg0; | |
2215 | } | |
2216 | return _resultobj; | |
2217 | } | |
2218 | ||
5c0282d5 RD |
2219 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2220 | ||
2221 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2222 | return 1; | |
2223 | } | |
2224 | ||
2225 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2226 | PyObject * pyobj; | |
2227 | char ptemp[128]; | |
2228 | ||
2229 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2230 | pyobj = PyString_FromString(ptemp); | |
2231 | return pyobj; | |
2232 | } | |
2233 | ||
9df61a29 RD |
2234 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2235 | wxToolTip *src; | |
2236 | wxObject *dest; | |
2237 | src = (wxToolTip *) ptr; | |
2238 | dest = (wxObject *) src; | |
2239 | return (void *) dest; | |
2240 | } | |
2241 | ||
f6bcfd97 BP |
2242 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2243 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2244 | PyObject * _resultobj; | |
2245 | wxToolTip * _result; | |
2246 | wxString * _arg0; | |
2247 | PyObject * _obj0 = 0; | |
2248 | char *_kwnames[] = { "tip", NULL }; | |
2249 | char _ptemp[128]; | |
2250 | ||
2251 | self = self; | |
2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2253 | return NULL; | |
2254 | { | |
2cd2fac8 RD |
2255 | #if PYTHON_API_VERSION >= 1009 |
2256 | char* tmpPtr; int tmpSize; | |
2257 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 2258 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2259 | return NULL; |
2260 | } | |
2261 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2262 | return NULL; | |
2263 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2264 | #else | |
f6bcfd97 BP |
2265 | if (!PyString_Check(_obj0)) { |
2266 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2267 | return NULL; | |
2268 | } | |
2cd2fac8 RD |
2269 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2270 | #endif | |
f6bcfd97 BP |
2271 | } |
2272 | { | |
2273 | wxPy_BEGIN_ALLOW_THREADS; | |
2274 | _result = (wxToolTip *)new_wxToolTip(*_arg0); | |
2275 | ||
2276 | wxPy_END_ALLOW_THREADS; | |
2277 | } if (_result) { | |
2278 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2279 | _resultobj = Py_BuildValue("s",_ptemp); | |
2280 | } else { | |
2281 | Py_INCREF(Py_None); | |
2282 | _resultobj = Py_None; | |
2283 | } | |
2284 | { | |
2285 | if (_obj0) | |
2286 | delete _arg0; | |
2287 | } | |
2288 | return _resultobj; | |
2289 | } | |
2290 | ||
2291 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2292 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2293 | PyObject * _resultobj; | |
2294 | wxToolTip * _arg0; | |
2295 | wxString * _arg1; | |
2296 | PyObject * _argo0 = 0; | |
2297 | PyObject * _obj1 = 0; | |
2298 | char *_kwnames[] = { "self","tip", NULL }; | |
2299 | ||
2300 | self = self; | |
2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2302 | return NULL; | |
2303 | if (_argo0) { | |
2304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2307 | return NULL; | |
2308 | } | |
2309 | } | |
2310 | { | |
2cd2fac8 RD |
2311 | #if PYTHON_API_VERSION >= 1009 |
2312 | char* tmpPtr; int tmpSize; | |
2313 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 2314 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
2315 | return NULL; |
2316 | } | |
2317 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2318 | return NULL; | |
2319 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2320 | #else | |
f6bcfd97 BP |
2321 | if (!PyString_Check(_obj1)) { |
2322 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2323 | return NULL; | |
2324 | } | |
2cd2fac8 RD |
2325 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2326 | #endif | |
f6bcfd97 BP |
2327 | } |
2328 | { | |
2329 | wxPy_BEGIN_ALLOW_THREADS; | |
2330 | wxToolTip_SetTip(_arg0,*_arg1); | |
2331 | ||
2332 | wxPy_END_ALLOW_THREADS; | |
2333 | } Py_INCREF(Py_None); | |
2334 | _resultobj = Py_None; | |
2335 | { | |
2336 | if (_obj1) | |
2337 | delete _arg1; | |
2338 | } | |
2339 | return _resultobj; | |
2340 | } | |
2341 | ||
2342 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2343 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2344 | PyObject * _resultobj; | |
2345 | wxString * _result; | |
2346 | wxToolTip * _arg0; | |
2347 | PyObject * _argo0 = 0; | |
2348 | char *_kwnames[] = { "self", NULL }; | |
2349 | ||
2350 | self = self; | |
2351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2352 | return NULL; | |
2353 | if (_argo0) { | |
2354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2357 | return NULL; | |
2358 | } | |
2359 | } | |
2360 | { | |
2361 | wxPy_BEGIN_ALLOW_THREADS; | |
2362 | _result = new wxString (wxToolTip_GetTip(_arg0)); | |
2363 | ||
2364 | wxPy_END_ALLOW_THREADS; | |
2365 | }{ | |
2366 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2367 | } | |
2368 | { | |
2369 | delete _result; | |
2370 | } | |
2371 | return _resultobj; | |
2372 | } | |
2373 | ||
2374 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2375 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2376 | PyObject * _resultobj; | |
2377 | wxWindow * _result; | |
2378 | wxToolTip * _arg0; | |
2379 | PyObject * _argo0 = 0; | |
2380 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2381 | |
2382 | self = self; | |
2383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2384 | return NULL; | |
2385 | if (_argo0) { | |
2386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2389 | return NULL; | |
2390 | } | |
2391 | } | |
2392 | { | |
2393 | wxPy_BEGIN_ALLOW_THREADS; | |
2394 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); | |
2395 | ||
2396 | wxPy_END_ALLOW_THREADS; | |
9df61a29 | 2397 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2398 | return _resultobj; |
2399 | } | |
2400 | ||
9a08cd12 RD |
2401 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2402 | PyObject * _resultobj; | |
2403 | bool _arg0; | |
2404 | int tempbool0; | |
2405 | char *_kwnames[] = { "flag", NULL }; | |
2406 | ||
2407 | self = self; | |
2408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2409 | return NULL; | |
2410 | _arg0 = (bool ) tempbool0; | |
2411 | { | |
2412 | wxPy_BEGIN_ALLOW_THREADS; | |
2413 | wxToolTip::Enable(_arg0); | |
2414 | ||
2415 | wxPy_END_ALLOW_THREADS; | |
2416 | } Py_INCREF(Py_None); | |
2417 | _resultobj = Py_None; | |
2418 | return _resultobj; | |
2419 | } | |
2420 | ||
2421 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2422 | PyObject * _resultobj; | |
2423 | long _arg0; | |
2424 | char *_kwnames[] = { "milliseconds", NULL }; | |
2425 | ||
2426 | self = self; | |
2427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2428 | return NULL; | |
2429 | { | |
2430 | wxPy_BEGIN_ALLOW_THREADS; | |
2431 | wxToolTip::SetDelay(_arg0); | |
2432 | ||
2433 | wxPy_END_ALLOW_THREADS; | |
2434 | } Py_INCREF(Py_None); | |
2435 | _resultobj = Py_None; | |
2436 | return _resultobj; | |
2437 | } | |
2438 | ||
f6bcfd97 BP |
2439 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2440 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2441 | PyObject * _resultobj; | |
2442 | wxCaret * _result; | |
2443 | wxWindow * _arg0; | |
2444 | wxSize * _arg1; | |
2445 | PyObject * _argo0 = 0; | |
2446 | wxSize temp; | |
2447 | PyObject * _obj1 = 0; | |
2448 | char *_kwnames[] = { "window","size", NULL }; | |
2449 | char _ptemp[128]; | |
2450 | ||
2451 | self = self; | |
2452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2453 | return NULL; | |
2454 | if (_argo0) { | |
2455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2458 | return NULL; | |
2459 | } | |
2460 | } | |
2461 | { | |
2462 | _arg1 = &temp; | |
2463 | if (! wxSize_helper(_obj1, &_arg1)) | |
2464 | return NULL; | |
2465 | } | |
2466 | { | |
2467 | wxPy_BEGIN_ALLOW_THREADS; | |
2468 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); | |
2469 | ||
2470 | wxPy_END_ALLOW_THREADS; | |
2471 | } if (_result) { | |
2472 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2473 | _resultobj = Py_BuildValue("s",_ptemp); | |
2474 | } else { | |
2475 | Py_INCREF(Py_None); | |
2476 | _resultobj = Py_None; | |
2477 | } | |
2478 | return _resultobj; | |
2479 | } | |
2480 | ||
2481 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2482 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2483 | PyObject * _resultobj; | |
2484 | wxCaret * _arg0; | |
2485 | PyObject * _argo0 = 0; | |
2486 | char *_kwnames[] = { "self", NULL }; | |
2487 | ||
2488 | self = self; | |
2489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2490 | return NULL; | |
2491 | if (_argo0) { | |
2492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2495 | return NULL; | |
2496 | } | |
2497 | } | |
2498 | { | |
2499 | wxPy_BEGIN_ALLOW_THREADS; | |
2500 | delete_wxCaret(_arg0); | |
2501 | ||
2502 | wxPy_END_ALLOW_THREADS; | |
2503 | } Py_INCREF(Py_None); | |
2504 | _resultobj = Py_None; | |
2505 | return _resultobj; | |
2506 | } | |
2507 | ||
2508 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2509 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2510 | PyObject * _resultobj; | |
2511 | bool _result; | |
2512 | wxCaret * _arg0; | |
2513 | PyObject * _argo0 = 0; | |
2514 | char *_kwnames[] = { "self", NULL }; | |
2515 | ||
2516 | self = self; | |
2517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2518 | return NULL; | |
2519 | if (_argo0) { | |
2520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2523 | return NULL; | |
2524 | } | |
2525 | } | |
2526 | { | |
2527 | wxPy_BEGIN_ALLOW_THREADS; | |
2528 | _result = (bool )wxCaret_IsOk(_arg0); | |
2529 | ||
2530 | wxPy_END_ALLOW_THREADS; | |
2531 | } _resultobj = Py_BuildValue("i",_result); | |
2532 | return _resultobj; | |
2533 | } | |
2534 | ||
2535 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2536 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2537 | PyObject * _resultobj; | |
2538 | bool _result; | |
2539 | wxCaret * _arg0; | |
2540 | PyObject * _argo0 = 0; | |
2541 | char *_kwnames[] = { "self", NULL }; | |
2542 | ||
2543 | self = self; | |
2544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2545 | return NULL; | |
2546 | if (_argo0) { | |
2547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2550 | return NULL; | |
2551 | } | |
2552 | } | |
2553 | { | |
2554 | wxPy_BEGIN_ALLOW_THREADS; | |
2555 | _result = (bool )wxCaret_IsVisible(_arg0); | |
2556 | ||
2557 | wxPy_END_ALLOW_THREADS; | |
2558 | } _resultobj = Py_BuildValue("i",_result); | |
2559 | return _resultobj; | |
2560 | } | |
2561 | ||
2562 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2563 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2564 | PyObject * _resultobj; | |
2565 | wxCaret * _arg0; | |
2566 | int * _arg1; | |
2567 | int temp; | |
2568 | int * _arg2; | |
2569 | int temp0; | |
2570 | PyObject * _argo0 = 0; | |
2571 | char *_kwnames[] = { "self", NULL }; | |
2572 | ||
2573 | self = self; | |
2574 | { | |
2575 | _arg1 = &temp; | |
2576 | } | |
2577 | { | |
2578 | _arg2 = &temp0; | |
2579 | } | |
2580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2581 | return NULL; | |
2582 | if (_argo0) { | |
2583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2586 | return NULL; | |
2587 | } | |
2588 | } | |
2589 | { | |
2590 | wxPy_BEGIN_ALLOW_THREADS; | |
2591 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); | |
2592 | ||
2593 | wxPy_END_ALLOW_THREADS; | |
2594 | } Py_INCREF(Py_None); | |
2595 | _resultobj = Py_None; | |
2596 | { | |
2597 | PyObject *o; | |
2598 | o = PyInt_FromLong((long) (*_arg1)); | |
2599 | _resultobj = t_output_helper(_resultobj, o); | |
2600 | } | |
2601 | { | |
2602 | PyObject *o; | |
2603 | o = PyInt_FromLong((long) (*_arg2)); | |
2604 | _resultobj = t_output_helper(_resultobj, o); | |
2605 | } | |
2606 | return _resultobj; | |
2607 | } | |
2608 | ||
2609 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
8f17924e RD |
2610 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
2611 | PyObject * _resultobj; | |
f6bcfd97 BP |
2612 | wxPoint * _result; |
2613 | wxCaret * _arg0; | |
2614 | PyObject * _argo0 = 0; | |
2615 | char *_kwnames[] = { "self", NULL }; | |
2616 | char _ptemp[128]; | |
2617 | ||
2618 | self = self; | |
2619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2620 | return NULL; | |
2621 | if (_argo0) { | |
2622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2625 | return NULL; | |
2626 | } | |
2627 | } | |
2628 | { | |
2629 | wxPy_BEGIN_ALLOW_THREADS; | |
2630 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); | |
2631 | ||
2632 | wxPy_END_ALLOW_THREADS; | |
2633 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2634 | _resultobj = Py_BuildValue("s",_ptemp); | |
2635 | return _resultobj; | |
2636 | } | |
2637 | ||
2638 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2639 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2640 | PyObject * _resultobj; | |
2641 | wxCaret * _arg0; | |
2642 | int * _arg1; | |
2643 | int temp; | |
2644 | int * _arg2; | |
2645 | int temp0; | |
2646 | PyObject * _argo0 = 0; | |
2647 | char *_kwnames[] = { "self", NULL }; | |
2648 | ||
2649 | self = self; | |
2650 | { | |
2651 | _arg1 = &temp; | |
2652 | } | |
2653 | { | |
2654 | _arg2 = &temp0; | |
2655 | } | |
2656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2657 | return NULL; | |
2658 | if (_argo0) { | |
2659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2662 | return NULL; | |
2663 | } | |
2664 | } | |
2665 | { | |
2666 | wxPy_BEGIN_ALLOW_THREADS; | |
2667 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); | |
2668 | ||
2669 | wxPy_END_ALLOW_THREADS; | |
2670 | } Py_INCREF(Py_None); | |
2671 | _resultobj = Py_None; | |
2672 | { | |
2673 | PyObject *o; | |
2674 | o = PyInt_FromLong((long) (*_arg1)); | |
2675 | _resultobj = t_output_helper(_resultobj, o); | |
2676 | } | |
2677 | { | |
2678 | PyObject *o; | |
2679 | o = PyInt_FromLong((long) (*_arg2)); | |
2680 | _resultobj = t_output_helper(_resultobj, o); | |
2681 | } | |
2682 | return _resultobj; | |
2683 | } | |
2684 | ||
2685 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2686 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2687 | PyObject * _resultobj; | |
2688 | wxSize * _result; | |
2689 | wxCaret * _arg0; | |
2690 | PyObject * _argo0 = 0; | |
2691 | char *_kwnames[] = { "self", NULL }; | |
2692 | char _ptemp[128]; | |
2693 | ||
2694 | self = self; | |
2695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2696 | return NULL; | |
2697 | if (_argo0) { | |
2698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
2701 | return NULL; | |
2702 | } | |
2703 | } | |
2704 | { | |
2705 | wxPy_BEGIN_ALLOW_THREADS; | |
2706 | _result = new wxSize (wxCaret_GetSize(_arg0)); | |
2707 | ||
2708 | wxPy_END_ALLOW_THREADS; | |
2709 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2710 | _resultobj = Py_BuildValue("s",_ptemp); | |
2711 | return _resultobj; | |
2712 | } | |
2713 | ||
2714 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2715 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2716 | PyObject * _resultobj; | |
2717 | wxWindow * _result; | |
2718 | wxCaret * _arg0; | |
2719 | PyObject * _argo0 = 0; | |
2720 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2721 | |
2722 | self = self; | |
2723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
2724 | return NULL; | |
2725 | if (_argo0) { | |
2726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
2729 | return NULL; | |
2730 | } | |
2731 | } | |
2732 | { | |
2733 | wxPy_BEGIN_ALLOW_THREADS; | |
2734 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); | |
2735 | ||
2736 | wxPy_END_ALLOW_THREADS; | |
9df61a29 | 2737 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2738 | return _resultobj; |
2739 | } | |
2740 | ||
2741 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2742 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2743 | PyObject * _resultobj; | |
2744 | wxCaret * _arg0; | |
2745 | int _arg1; | |
2746 | int _arg2; | |
2747 | PyObject * _argo0 = 0; | |
2748 | char *_kwnames[] = { "self","x","y", NULL }; | |
2749 | ||
2750 | self = self; | |
2751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2752 | return NULL; | |
2753 | if (_argo0) { | |
2754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
2757 | return NULL; | |
2758 | } | |
2759 | } | |
2760 | { | |
2761 | wxPy_BEGIN_ALLOW_THREADS; | |
2762 | wxCaret_MoveXY(_arg0,_arg1,_arg2); | |
2763 | ||
2764 | wxPy_END_ALLOW_THREADS; | |
2765 | } Py_INCREF(Py_None); | |
2766 | _resultobj = Py_None; | |
2767 | return _resultobj; | |
2768 | } | |
2769 | ||
2770 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2771 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2772 | PyObject * _resultobj; | |
2773 | wxCaret * _arg0; | |
2774 | wxPoint * _arg1; | |
2775 | PyObject * _argo0 = 0; | |
2776 | wxPoint temp; | |
2777 | PyObject * _obj1 = 0; | |
2778 | char *_kwnames[] = { "self","pt", NULL }; | |
2779 | ||
2780 | self = self; | |
2781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
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_Move. Expected _wxCaret_p."); | |
2787 | return NULL; | |
2788 | } | |
2789 | } | |
2790 | { | |
2791 | _arg1 = &temp; | |
2792 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2793 | return NULL; | |
2794 | } | |
2795 | { | |
2796 | wxPy_BEGIN_ALLOW_THREADS; | |
2797 | wxCaret_Move(_arg0,*_arg1); | |
2798 | ||
2799 | wxPy_END_ALLOW_THREADS; | |
2800 | } Py_INCREF(Py_None); | |
2801 | _resultobj = Py_None; | |
2802 | return _resultobj; | |
2803 | } | |
2804 | ||
2805 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
2806 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2807 | PyObject * _resultobj; | |
2808 | wxCaret * _arg0; | |
2809 | int _arg1; | |
2810 | int _arg2; | |
2811 | PyObject * _argo0 = 0; | |
2812 | char *_kwnames[] = { "self","width","height", NULL }; | |
2813 | ||
2814 | self = self; | |
2815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2816 | return NULL; | |
2817 | if (_argo0) { | |
2818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
2821 | return NULL; | |
2822 | } | |
2823 | } | |
2824 | { | |
2825 | wxPy_BEGIN_ALLOW_THREADS; | |
2826 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); | |
2827 | ||
2828 | wxPy_END_ALLOW_THREADS; | |
2829 | } Py_INCREF(Py_None); | |
2830 | _resultobj = Py_None; | |
2831 | return _resultobj; | |
2832 | } | |
2833 | ||
2834 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2835 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2836 | PyObject * _resultobj; | |
2837 | wxCaret * _arg0; | |
2838 | wxSize * _arg1; | |
2839 | PyObject * _argo0 = 0; | |
2840 | wxSize temp; | |
2841 | PyObject * _obj1 = 0; | |
2842 | char *_kwnames[] = { "self","size", NULL }; | |
2843 | ||
2844 | self = self; | |
2845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
2846 | return NULL; | |
2847 | if (_argo0) { | |
2848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
2851 | return NULL; | |
2852 | } | |
2853 | } | |
2854 | { | |
2855 | _arg1 = &temp; | |
2856 | if (! wxSize_helper(_obj1, &_arg1)) | |
2857 | return NULL; | |
2858 | } | |
2859 | { | |
2860 | wxPy_BEGIN_ALLOW_THREADS; | |
2861 | wxCaret_SetSize(_arg0,*_arg1); | |
2862 | ||
2863 | wxPy_END_ALLOW_THREADS; | |
2864 | } Py_INCREF(Py_None); | |
2865 | _resultobj = Py_None; | |
2866 | return _resultobj; | |
2867 | } | |
2868 | ||
2869 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
2870 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2871 | PyObject * _resultobj; | |
2872 | wxCaret * _arg0; | |
2873 | int _arg1 = (int ) TRUE; | |
2874 | PyObject * _argo0 = 0; | |
2875 | char *_kwnames[] = { "self","show", NULL }; | |
2876 | ||
2877 | self = self; | |
2878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
2879 | return NULL; | |
2880 | if (_argo0) { | |
2881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
2884 | return NULL; | |
2885 | } | |
2886 | } | |
2887 | { | |
2888 | wxPy_BEGIN_ALLOW_THREADS; | |
2889 | wxCaret_Show(_arg0,_arg1); | |
2890 | ||
2891 | wxPy_END_ALLOW_THREADS; | |
2892 | } Py_INCREF(Py_None); | |
2893 | _resultobj = Py_None; | |
2894 | return _resultobj; | |
2895 | } | |
2896 | ||
2897 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
2898 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2899 | PyObject * _resultobj; | |
2900 | wxCaret * _arg0; | |
2901 | PyObject * _argo0 = 0; | |
2902 | char *_kwnames[] = { "self", NULL }; | |
2903 | ||
2904 | self = self; | |
2905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
2906 | return NULL; | |
2907 | if (_argo0) { | |
2908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
2911 | return NULL; | |
2912 | } | |
2913 | } | |
2914 | { | |
2915 | wxPy_BEGIN_ALLOW_THREADS; | |
2916 | wxCaret_Hide(_arg0); | |
2917 | ||
2918 | wxPy_END_ALLOW_THREADS; | |
2919 | } Py_INCREF(Py_None); | |
2920 | _resultobj = Py_None; | |
2921 | return _resultobj; | |
2922 | } | |
2923 | ||
2924 | #define new_wxFontEnumerator() (new wxPyFontEnumerator()) | |
2925 | static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2926 | PyObject * _resultobj; | |
2927 | wxPyFontEnumerator * _result; | |
2928 | char *_kwnames[] = { NULL }; | |
2929 | char _ptemp[128]; | |
2930 | ||
2931 | self = self; | |
2932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames)) | |
2933 | return NULL; | |
2934 | { | |
2935 | wxPy_BEGIN_ALLOW_THREADS; | |
2936 | _result = (wxPyFontEnumerator *)new_wxFontEnumerator(); | |
2937 | ||
2938 | wxPy_END_ALLOW_THREADS; | |
2939 | } if (_result) { | |
2940 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p"); | |
2941 | _resultobj = Py_BuildValue("s",_ptemp); | |
2942 | } else { | |
2943 | Py_INCREF(Py_None); | |
2944 | _resultobj = Py_None; | |
2945 | } | |
2946 | return _resultobj; | |
2947 | } | |
2948 | ||
2949 | #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj) | |
2950 | static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2951 | PyObject * _resultobj; | |
2952 | wxPyFontEnumerator * _arg0; | |
2953 | PyObject * _argo0 = 0; | |
2954 | char *_kwnames[] = { "self", NULL }; | |
2955 | ||
2956 | self = self; | |
2957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0)) | |
2958 | return NULL; | |
2959 | if (_argo0) { | |
2960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p."); | |
2963 | return NULL; | |
2964 | } | |
2965 | } | |
2966 | { | |
2967 | wxPy_BEGIN_ALLOW_THREADS; | |
2968 | delete_wxPyFontEnumerator(_arg0); | |
2969 | ||
2970 | wxPy_END_ALLOW_THREADS; | |
2971 | } Py_INCREF(Py_None); | |
2972 | _resultobj = Py_None; | |
2973 | return _resultobj; | |
2974 | } | |
2975 | ||
0220cbc1 RD |
2976 | #define wxFontEnumerator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
2977 | static PyObject *_wrap_wxFontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
2978 | PyObject * _resultobj; |
2979 | wxPyFontEnumerator * _arg0; | |
2980 | PyObject * _arg1; | |
2981 | PyObject * _arg2; | |
2982 | PyObject * _argo0 = 0; | |
2983 | PyObject * _obj1 = 0; | |
2984 | PyObject * _obj2 = 0; | |
2985 | char *_kwnames[] = { "self","self","_class", NULL }; | |
2986 | ||
2987 | self = self; | |
0220cbc1 | 2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFontEnumerator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
f6bcfd97 BP |
2989 | return NULL; |
2990 | if (_argo0) { | |
2991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
0220cbc1 | 2993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setCallbackInfo. Expected _wxPyFontEnumerator_p."); |
f6bcfd97 BP |
2994 | return NULL; |
2995 | } | |
2996 | } | |
2997 | { | |
2998 | _arg1 = _obj1; | |
2999 | } | |
3000 | { | |
3001 | _arg2 = _obj2; | |
3002 | } | |
3003 | { | |
3004 | wxPy_BEGIN_ALLOW_THREADS; | |
0220cbc1 | 3005 | wxFontEnumerator__setCallbackInfo(_arg0,_arg1,_arg2); |
f6bcfd97 BP |
3006 | |
3007 | wxPy_END_ALLOW_THREADS; | |
3008 | } Py_INCREF(Py_None); | |
3009 | _resultobj = Py_None; | |
3010 | return _resultobj; | |
3011 | } | |
3012 | ||
3013 | #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1)) | |
3014 | static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3015 | PyObject * _resultobj; | |
3016 | bool _result; | |
3017 | wxPyFontEnumerator * _arg0; | |
3018 | wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM; | |
3019 | bool _arg2 = (bool ) FALSE; | |
3020 | PyObject * _argo0 = 0; | |
3021 | int tempbool2 = (int) FALSE; | |
3022 | char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL }; | |
3023 | ||
3024 | self = self; | |
3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3026 | return NULL; | |
3027 | if (_argo0) { | |
3028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p."); | |
3031 | return NULL; | |
3032 | } | |
3033 | } | |
3034 | _arg2 = (bool ) tempbool2; | |
3035 | { | |
3036 | wxPy_BEGIN_ALLOW_THREADS; | |
3037 | _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2); | |
3038 | ||
3039 | wxPy_END_ALLOW_THREADS; | |
3040 | } _resultobj = Py_BuildValue("i",_result); | |
3041 | return _resultobj; | |
3042 | } | |
3043 | ||
3044 | #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0)) | |
3045 | static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3046 | PyObject * _resultobj; | |
3047 | bool _result; | |
3048 | wxPyFontEnumerator * _arg0; | |
3049 | char * _arg1 = (char *) ""; | |
3050 | PyObject * _argo0 = 0; | |
3051 | char *_kwnames[] = { "self","facename", NULL }; | |
3052 | ||
3053 | self = self; | |
3054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1)) | |
3055 | return NULL; | |
3056 | if (_argo0) { | |
3057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p."); | |
3060 | return NULL; | |
3061 | } | |
3062 | } | |
3063 | { | |
3064 | wxPy_BEGIN_ALLOW_THREADS; | |
3065 | _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1); | |
3066 | ||
3067 | wxPy_END_ALLOW_THREADS; | |
3068 | } _resultobj = Py_BuildValue("i",_result); | |
3069 | return _resultobj; | |
3070 | } | |
3071 | ||
3072 | static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) { | |
3073 | wxArrayString* arr = self->GetEncodings(); | |
5c0282d5 | 3074 | return wxArrayString2PyList_helper(arr); |
f6bcfd97 BP |
3075 | } |
3076 | static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3077 | PyObject * _resultobj; | |
3078 | PyObject * _result; | |
3079 | wxPyFontEnumerator * _arg0; | |
3080 | PyObject * _argo0 = 0; | |
3081 | char *_kwnames[] = { "self", NULL }; | |
3082 | ||
3083 | self = self; | |
3084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0)) | |
3085 | return NULL; | |
3086 | if (_argo0) { | |
3087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p."); | |
3090 | return NULL; | |
3091 | } | |
3092 | } | |
3093 | { | |
3094 | wxPy_BEGIN_ALLOW_THREADS; | |
3095 | _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0); | |
3096 | ||
3097 | wxPy_END_ALLOW_THREADS; | |
3098 | }{ | |
3099 | _resultobj = _result; | |
3100 | } | |
3101 | return _resultobj; | |
3102 | } | |
3103 | ||
3104 | static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) { | |
3105 | wxArrayString* arr = self->GetFacenames(); | |
5c0282d5 | 3106 | return wxArrayString2PyList_helper(arr); |
f6bcfd97 BP |
3107 | } |
3108 | static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3109 | PyObject * _resultobj; | |
3110 | PyObject * _result; | |
3111 | wxPyFontEnumerator * _arg0; | |
3112 | PyObject * _argo0 = 0; | |
3113 | char *_kwnames[] = { "self", NULL }; | |
3114 | ||
3115 | self = self; | |
3116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0)) | |
3117 | return NULL; | |
3118 | if (_argo0) { | |
3119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p."); | |
3122 | return NULL; | |
3123 | } | |
3124 | } | |
3125 | { | |
3126 | wxPy_BEGIN_ALLOW_THREADS; | |
3127 | _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0); | |
3128 | ||
3129 | wxPy_END_ALLOW_THREADS; | |
3130 | }{ | |
3131 | _resultobj = _result; | |
3132 | } | |
3133 | return _resultobj; | |
3134 | } | |
3135 | ||
3136 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) | |
3137 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3138 | PyObject * _resultobj; | |
3139 | wxBusyCursor * _result; | |
3140 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3141 | PyObject * _argo0 = 0; | |
3142 | char *_kwnames[] = { "cursor", NULL }; | |
3143 | char _ptemp[128]; | |
3144 | ||
3145 | self = self; | |
3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3147 | return NULL; | |
3148 | if (_argo0) { | |
3149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3152 | return NULL; | |
3153 | } | |
3154 | } | |
3155 | { | |
3156 | wxPy_BEGIN_ALLOW_THREADS; | |
3157 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); | |
3158 | ||
3159 | wxPy_END_ALLOW_THREADS; | |
3160 | } if (_result) { | |
3161 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3162 | _resultobj = Py_BuildValue("s",_ptemp); | |
3163 | } else { | |
3164 | Py_INCREF(Py_None); | |
3165 | _resultobj = Py_None; | |
3166 | } | |
3167 | return _resultobj; | |
3168 | } | |
3169 | ||
3170 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3171 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3172 | PyObject * _resultobj; | |
3173 | wxBusyCursor * _arg0; | |
3174 | PyObject * _argo0 = 0; | |
3175 | char *_kwnames[] = { "self", NULL }; | |
3176 | ||
3177 | self = self; | |
3178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3179 | return NULL; | |
3180 | if (_argo0) { | |
3181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3184 | return NULL; | |
3185 | } | |
3186 | } | |
3187 | { | |
3188 | wxPy_BEGIN_ALLOW_THREADS; | |
3189 | delete_wxBusyCursor(_arg0); | |
3190 | ||
3191 | wxPy_END_ALLOW_THREADS; | |
3192 | } Py_INCREF(Py_None); | |
3193 | _resultobj = Py_None; | |
3194 | return _resultobj; | |
3195 | } | |
3196 | ||
c368d904 RD |
3197 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3198 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3199 | PyObject * _resultobj; | |
3200 | wxWindowDisabler * _result; | |
3201 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3202 | PyObject * _argo0 = 0; | |
3203 | char *_kwnames[] = { "winToSkip", NULL }; | |
3204 | char _ptemp[128]; | |
3205 | ||
3206 | self = self; | |
3207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3208 | return NULL; | |
3209 | if (_argo0) { | |
3210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3213 | return NULL; | |
3214 | } | |
3215 | } | |
3216 | { | |
3217 | wxPy_BEGIN_ALLOW_THREADS; | |
3218 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); | |
3219 | ||
3220 | wxPy_END_ALLOW_THREADS; | |
3221 | } if (_result) { | |
3222 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3223 | _resultobj = Py_BuildValue("s",_ptemp); | |
3224 | } else { | |
3225 | Py_INCREF(Py_None); | |
3226 | _resultobj = Py_None; | |
3227 | } | |
3228 | return _resultobj; | |
3229 | } | |
3230 | ||
3231 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3232 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3233 | PyObject * _resultobj; | |
3234 | wxWindowDisabler * _arg0; | |
3235 | PyObject * _argo0 = 0; | |
3236 | char *_kwnames[] = { "self", NULL }; | |
3237 | ||
3238 | self = self; | |
3239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3240 | return NULL; | |
3241 | if (_argo0) { | |
3242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3245 | return NULL; | |
3246 | } | |
3247 | } | |
3248 | { | |
3249 | wxPy_BEGIN_ALLOW_THREADS; | |
3250 | delete_wxWindowDisabler(_arg0); | |
3251 | ||
3252 | wxPy_END_ALLOW_THREADS; | |
3253 | } Py_INCREF(Py_None); | |
3254 | _resultobj = Py_None; | |
3255 | return _resultobj; | |
3256 | } | |
3257 | ||
4662be59 RD |
3258 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3259 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3260 | PyObject * _resultobj; | |
3261 | wxMutexGuiLocker * _result; | |
3262 | char *_kwnames[] = { NULL }; | |
3263 | char _ptemp[128]; | |
3264 | ||
3265 | self = self; | |
3266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3267 | return NULL; | |
3268 | { | |
3269 | wxPy_BEGIN_ALLOW_THREADS; | |
3270 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); | |
3271 | ||
3272 | wxPy_END_ALLOW_THREADS; | |
3273 | } if (_result) { | |
3274 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3275 | _resultobj = Py_BuildValue("s",_ptemp); | |
3276 | } else { | |
3277 | Py_INCREF(Py_None); | |
3278 | _resultobj = Py_None; | |
3279 | } | |
3280 | return _resultobj; | |
3281 | } | |
3282 | ||
3283 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3284 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3285 | PyObject * _resultobj; | |
3286 | wxMutexGuiLocker * _arg0; | |
3287 | PyObject * _argo0 = 0; | |
3288 | char *_kwnames[] = { "self", NULL }; | |
3289 | ||
3290 | self = self; | |
3291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3292 | return NULL; | |
3293 | if (_argo0) { | |
3294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3297 | return NULL; | |
3298 | } | |
3299 | } | |
3300 | { | |
3301 | wxPy_BEGIN_ALLOW_THREADS; | |
3302 | delete_wxMutexGuiLocker(_arg0); | |
3303 | ||
3304 | wxPy_END_ALLOW_THREADS; | |
3305 | } Py_INCREF(Py_None); | |
3306 | _resultobj = Py_None; | |
3307 | return _resultobj; | |
3308 | } | |
3309 | ||
f6bcfd97 BP |
3310 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3311 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3312 | PyObject * _resultobj; | |
3313 | wxTipProvider * _arg0; | |
3314 | PyObject * _argo0 = 0; | |
3315 | char *_kwnames[] = { "self", NULL }; | |
3316 | ||
3317 | self = self; | |
3318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3319 | return NULL; | |
3320 | if (_argo0) { | |
3321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3324 | return NULL; | |
3325 | } | |
3326 | } | |
3327 | { | |
3328 | wxPy_BEGIN_ALLOW_THREADS; | |
3329 | delete_wxTipProvider(_arg0); | |
3330 | ||
3331 | wxPy_END_ALLOW_THREADS; | |
3332 | } Py_INCREF(Py_None); | |
3333 | _resultobj = Py_None; | |
3334 | return _resultobj; | |
3335 | } | |
3336 | ||
3337 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3338 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3339 | PyObject * _resultobj; | |
3340 | wxString * _result; | |
3341 | wxTipProvider * _arg0; | |
3342 | PyObject * _argo0 = 0; | |
3343 | char *_kwnames[] = { "self", NULL }; | |
3344 | ||
3345 | self = self; | |
3346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3347 | return NULL; | |
3348 | if (_argo0) { | |
3349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3352 | return NULL; | |
3353 | } | |
3354 | } | |
3355 | { | |
3356 | wxPy_BEGIN_ALLOW_THREADS; | |
3357 | _result = new wxString (wxTipProvider_GetTip(_arg0)); | |
3358 | ||
3359 | wxPy_END_ALLOW_THREADS; | |
3360 | }{ | |
3361 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3362 | } | |
3363 | { | |
3364 | delete _result; | |
3365 | } | |
3366 | return _resultobj; | |
3367 | } | |
3368 | ||
3369 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3370 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3371 | PyObject * _resultobj; | |
3372 | size_t _result; | |
3373 | wxTipProvider * _arg0; | |
3374 | PyObject * _argo0 = 0; | |
3375 | char *_kwnames[] = { "self", NULL }; | |
3376 | ||
3377 | self = self; | |
3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3379 | return NULL; | |
3380 | if (_argo0) { | |
3381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3384 | return NULL; | |
3385 | } | |
3386 | } | |
3387 | { | |
3388 | wxPy_BEGIN_ALLOW_THREADS; | |
3389 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); | |
3390 | ||
3391 | wxPy_END_ALLOW_THREADS; | |
3392 | } _resultobj = Py_BuildValue("i",_result); | |
3393 | return _resultobj; | |
3394 | } | |
3395 | ||
3396 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3397 | wxPyTipProvider *src; | |
3398 | wxTipProvider *dest; | |
3399 | src = (wxPyTipProvider *) ptr; | |
3400 | dest = (wxTipProvider *) src; | |
3401 | return (void *) dest; | |
3402 | } | |
3403 | ||
3404 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3405 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3406 | PyObject * _resultobj; | |
3407 | wxPyTipProvider * _result; | |
3408 | size_t _arg0; | |
3409 | char *_kwnames[] = { "currentTip", NULL }; | |
3410 | char _ptemp[128]; | |
3411 | ||
3412 | self = self; | |
3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3414 | return NULL; | |
3415 | { | |
3416 | wxPy_BEGIN_ALLOW_THREADS; | |
3417 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); | |
3418 | ||
3419 | wxPy_END_ALLOW_THREADS; | |
3420 | } if (_result) { | |
3421 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3422 | _resultobj = Py_BuildValue("s",_ptemp); | |
3423 | } else { | |
3424 | Py_INCREF(Py_None); | |
3425 | _resultobj = Py_None; | |
3426 | } | |
3427 | return _resultobj; | |
3428 | } | |
3429 | ||
9df61a29 RD |
3430 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3431 | wxGenericDragImage *src; | |
3432 | wxObject *dest; | |
3433 | src = (wxGenericDragImage *) ptr; | |
3434 | dest = (wxObject *) src; | |
3435 | return (void *) dest; | |
3436 | } | |
3437 | ||
4dfaa61e | 3438 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3439 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3440 | PyObject * _resultobj; | |
3441 | wxGenericDragImage * _result; | |
3442 | wxBitmap * _arg0; | |
3443 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3444 | PyObject * _argo0 = 0; |
3445 | PyObject * _argo1 = 0; | |
4dfaa61e | 3446 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3447 | char _ptemp[128]; |
3448 | ||
3449 | self = self; | |
4dfaa61e | 3450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3451 | return NULL; |
3452 | if (_argo0) { | |
3453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3456 | return NULL; | |
3457 | } | |
3458 | } | |
3459 | if (_argo1) { | |
3460 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3461 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3463 | return NULL; | |
3464 | } | |
3465 | } | |
f6bcfd97 BP |
3466 | { |
3467 | wxPy_BEGIN_ALLOW_THREADS; | |
4dfaa61e | 3468 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 BP |
3469 | |
3470 | wxPy_END_ALLOW_THREADS; | |
3471 | } if (_result) { | |
3472 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3473 | _resultobj = Py_BuildValue("s",_ptemp); | |
3474 | } else { | |
3475 | Py_INCREF(Py_None); | |
3476 | _resultobj = Py_None; | |
3477 | } | |
3478 | return _resultobj; | |
3479 | } | |
3480 | ||
059a841c RD |
3481 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3482 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3483 | PyObject * _resultobj; | |
3484 | wxGenericDragImage * _result; | |
3485 | wxIcon * _arg0; | |
3486 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3487 | PyObject * _argo0 = 0; | |
3488 | PyObject * _argo1 = 0; | |
3489 | char *_kwnames[] = { "image","cursor", NULL }; | |
3490 | char _ptemp[128]; | |
3491 | ||
3492 | self = self; | |
3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3494 | return NULL; | |
3495 | if (_argo0) { | |
3496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3499 | return NULL; | |
3500 | } | |
3501 | } | |
3502 | if (_argo1) { | |
3503 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3504 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3506 | return NULL; | |
3507 | } | |
3508 | } | |
3509 | { | |
3510 | wxPy_BEGIN_ALLOW_THREADS; | |
3511 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); | |
3512 | ||
3513 | wxPy_END_ALLOW_THREADS; | |
3514 | } if (_result) { | |
3515 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3516 | _resultobj = Py_BuildValue("s",_ptemp); | |
3517 | } else { | |
3518 | Py_INCREF(Py_None); | |
3519 | _resultobj = Py_None; | |
3520 | } | |
3521 | return _resultobj; | |
3522 | } | |
3523 | ||
3524 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3525 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3526 | PyObject * _resultobj; | |
3527 | wxGenericDragImage * _result; | |
3528 | wxString * _arg0; | |
3529 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3530 | PyObject * _obj0 = 0; | |
3531 | PyObject * _argo1 = 0; | |
3532 | char *_kwnames[] = { "str","cursor", NULL }; | |
3533 | char _ptemp[128]; | |
3534 | ||
3535 | self = self; | |
3536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3537 | return NULL; | |
3538 | { | |
3539 | #if PYTHON_API_VERSION >= 1009 | |
3540 | char* tmpPtr; int tmpSize; | |
3541 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
3542 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3543 | return NULL; | |
3544 | } | |
3545 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
3546 | return NULL; | |
3547 | _arg0 = new wxString(tmpPtr, tmpSize); | |
3548 | #else | |
3549 | if (!PyString_Check(_obj0)) { | |
3550 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3551 | return NULL; | |
3552 | } | |
3553 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
3554 | #endif | |
3555 | } | |
3556 | if (_argo1) { | |
3557 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3558 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3560 | return NULL; | |
3561 | } | |
3562 | } | |
3563 | { | |
3564 | wxPy_BEGIN_ALLOW_THREADS; | |
3565 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); | |
3566 | ||
3567 | wxPy_END_ALLOW_THREADS; | |
3568 | } if (_result) { | |
3569 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3570 | _resultobj = Py_BuildValue("s",_ptemp); | |
3571 | } else { | |
3572 | Py_INCREF(Py_None); | |
3573 | _resultobj = Py_None; | |
3574 | } | |
3575 | { | |
3576 | if (_obj0) | |
3577 | delete _arg0; | |
3578 | } | |
3579 | return _resultobj; | |
3580 | } | |
3581 | ||
3582 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3583 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3584 | PyObject * _resultobj; | |
3585 | wxGenericDragImage * _result; | |
3586 | wxTreeCtrl * _arg0; | |
3587 | wxTreeItemId * _arg1; | |
3588 | PyObject * _argo0 = 0; | |
3589 | PyObject * _argo1 = 0; | |
3590 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3591 | char _ptemp[128]; | |
3592 | ||
3593 | self = self; | |
3594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3595 | return NULL; | |
3596 | if (_argo0) { | |
3597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3600 | return NULL; | |
3601 | } | |
3602 | } | |
3603 | if (_argo1) { | |
3604 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3605 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3607 | return NULL; | |
3608 | } | |
3609 | } | |
3610 | { | |
3611 | wxPy_BEGIN_ALLOW_THREADS; | |
3612 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); | |
3613 | ||
3614 | wxPy_END_ALLOW_THREADS; | |
3615 | } if (_result) { | |
3616 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3617 | _resultobj = Py_BuildValue("s",_ptemp); | |
3618 | } else { | |
3619 | Py_INCREF(Py_None); | |
3620 | _resultobj = Py_None; | |
3621 | } | |
3622 | return _resultobj; | |
3623 | } | |
3624 | ||
3625 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3626 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3627 | PyObject * _resultobj; | |
3628 | wxGenericDragImage * _result; | |
3629 | wxListCtrl * _arg0; | |
3630 | long _arg1; | |
3631 | PyObject * _argo0 = 0; | |
3632 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3633 | char _ptemp[128]; | |
3634 | ||
3635 | self = self; | |
3636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3637 | return NULL; | |
3638 | if (_argo0) { | |
3639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3642 | return NULL; | |
3643 | } | |
3644 | } | |
3645 | { | |
3646 | wxPy_BEGIN_ALLOW_THREADS; | |
3647 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); | |
3648 | ||
3649 | wxPy_END_ALLOW_THREADS; | |
3650 | } if (_result) { | |
3651 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3652 | _resultobj = Py_BuildValue("s",_ptemp); | |
3653 | } else { | |
3654 | Py_INCREF(Py_None); | |
3655 | _resultobj = Py_None; | |
3656 | } | |
3657 | return _resultobj; | |
3658 | } | |
3659 | ||
f6bcfd97 BP |
3660 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) |
3661 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3662 | PyObject * _resultobj; | |
3663 | wxGenericDragImage * _arg0; | |
3664 | PyObject * _argo0 = 0; | |
3665 | char *_kwnames[] = { "self", NULL }; | |
3666 | ||
3667 | self = self; | |
3668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3669 | return NULL; | |
3670 | if (_argo0) { | |
3671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3674 | return NULL; | |
3675 | } | |
3676 | } | |
3677 | { | |
3678 | wxPy_BEGIN_ALLOW_THREADS; | |
3679 | delete_wxGenericDragImage(_arg0); | |
3680 | ||
3681 | wxPy_END_ALLOW_THREADS; | |
3682 | } Py_INCREF(Py_None); | |
3683 | _resultobj = Py_None; | |
3684 | return _resultobj; | |
3685 | } | |
3686 | ||
4dfaa61e RD |
3687 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) |
3688 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3689 | PyObject * _resultobj; | |
3690 | wxGenericDragImage * _arg0; | |
3691 | wxBitmap * _arg1; | |
3692 | PyObject * _argo0 = 0; | |
3693 | PyObject * _argo1 = 0; | |
3694 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3695 | ||
3696 | self = self; | |
3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3698 | return NULL; | |
3699 | if (_argo0) { | |
3700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3703 | return NULL; | |
3704 | } | |
3705 | } | |
3706 | if (_argo1) { | |
3707 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3708 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3710 | return NULL; | |
3711 | } | |
3712 | } | |
3713 | { | |
3714 | wxPy_BEGIN_ALLOW_THREADS; | |
3715 | wxDragImage_SetBackingBitmap(_arg0,_arg1); | |
3716 | ||
3717 | wxPy_END_ALLOW_THREADS; | |
3718 | } Py_INCREF(Py_None); | |
3719 | _resultobj = Py_None; | |
3720 | return _resultobj; | |
3721 | } | |
3722 | ||
f6bcfd97 BP |
3723 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3724 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3725 | PyObject * _resultobj; | |
3726 | bool _result; | |
3727 | wxGenericDragImage * _arg0; | |
3728 | wxPoint * _arg1; | |
3729 | wxWindow * _arg2; | |
3730 | bool _arg3 = (bool ) FALSE; | |
3731 | wxRect * _arg4 = (wxRect *) NULL; | |
3732 | PyObject * _argo0 = 0; | |
3733 | wxPoint temp; | |
3734 | PyObject * _obj1 = 0; | |
3735 | PyObject * _argo2 = 0; | |
3736 | int tempbool3 = (int) FALSE; | |
3737 | wxRect temp0; | |
3738 | PyObject * _obj4 = 0; | |
3739 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3740 | ||
3741 | self = self; | |
3742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3743 | return NULL; | |
3744 | if (_argo0) { | |
3745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3748 | return NULL; | |
3749 | } | |
3750 | } | |
3751 | { | |
3752 | _arg1 = &temp; | |
3753 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3754 | return NULL; | |
3755 | } | |
3756 | if (_argo2) { | |
3757 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3758 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3760 | return NULL; | |
3761 | } | |
3762 | } | |
3763 | _arg3 = (bool ) tempbool3; | |
3764 | if (_obj4) | |
3765 | { | |
3766 | _arg4 = &temp0; | |
3767 | if (! wxRect_helper(_obj4, &_arg4)) | |
3768 | return NULL; | |
3769 | } | |
3770 | { | |
3771 | wxPy_BEGIN_ALLOW_THREADS; | |
3772 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
3773 | ||
3774 | wxPy_END_ALLOW_THREADS; | |
3775 | } _resultobj = Py_BuildValue("i",_result); | |
3776 | return _resultobj; | |
3777 | } | |
3778 | ||
3779 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3780 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3781 | PyObject * _resultobj; | |
3782 | bool _result; | |
3783 | wxGenericDragImage * _arg0; | |
3784 | wxPoint * _arg1; | |
3785 | wxWindow * _arg2; | |
3786 | wxWindow * _arg3; | |
3787 | PyObject * _argo0 = 0; | |
3788 | wxPoint temp; | |
3789 | PyObject * _obj1 = 0; | |
3790 | PyObject * _argo2 = 0; | |
3791 | PyObject * _argo3 = 0; | |
3792 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3793 | ||
3794 | self = self; | |
3795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3796 | return NULL; | |
3797 | if (_argo0) { | |
3798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
3801 | return NULL; | |
3802 | } | |
3803 | } | |
3804 | { | |
3805 | _arg1 = &temp; | |
3806 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3807 | return NULL; | |
3808 | } | |
3809 | if (_argo2) { | |
3810 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3811 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3813 | return NULL; | |
3814 | } | |
3815 | } | |
3816 | if (_argo3) { | |
3817 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3818 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3820 | return NULL; | |
3821 | } | |
3822 | } | |
3823 | { | |
3824 | wxPy_BEGIN_ALLOW_THREADS; | |
3825 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); | |
3826 | ||
3827 | wxPy_END_ALLOW_THREADS; | |
3828 | } _resultobj = Py_BuildValue("i",_result); | |
3829 | return _resultobj; | |
3830 | } | |
3831 | ||
3832 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
3833 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3834 | PyObject * _resultobj; | |
3835 | bool _result; | |
3836 | wxGenericDragImage * _arg0; | |
3837 | PyObject * _argo0 = 0; | |
3838 | char *_kwnames[] = { "self", NULL }; | |
3839 | ||
3840 | self = self; | |
3841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
3842 | return NULL; | |
3843 | if (_argo0) { | |
3844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
3847 | return NULL; | |
3848 | } | |
3849 | } | |
3850 | { | |
3851 | wxPy_BEGIN_ALLOW_THREADS; | |
3852 | _result = (bool )wxDragImage_EndDrag(_arg0); | |
3853 | ||
3854 | wxPy_END_ALLOW_THREADS; | |
3855 | } _resultobj = Py_BuildValue("i",_result); | |
3856 | return _resultobj; | |
3857 | } | |
3858 | ||
3859 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3860 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3861 | PyObject * _resultobj; | |
3862 | bool _result; | |
3863 | wxGenericDragImage * _arg0; | |
3864 | wxPoint * _arg1; | |
3865 | PyObject * _argo0 = 0; | |
3866 | wxPoint temp; | |
3867 | PyObject * _obj1 = 0; | |
3868 | char *_kwnames[] = { "self","pt", NULL }; | |
3869 | ||
3870 | self = self; | |
3871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
3872 | return NULL; | |
3873 | if (_argo0) { | |
3874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
3877 | return NULL; | |
3878 | } | |
3879 | } | |
3880 | { | |
3881 | _arg1 = &temp; | |
3882 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3883 | return NULL; | |
3884 | } | |
3885 | { | |
3886 | wxPy_BEGIN_ALLOW_THREADS; | |
3887 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); | |
3888 | ||
3889 | wxPy_END_ALLOW_THREADS; | |
3890 | } _resultobj = Py_BuildValue("i",_result); | |
3891 | return _resultobj; | |
3892 | } | |
3893 | ||
3894 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
3895 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3896 | PyObject * _resultobj; | |
3897 | bool _result; | |
3898 | wxGenericDragImage * _arg0; | |
3899 | PyObject * _argo0 = 0; | |
3900 | char *_kwnames[] = { "self", NULL }; | |
3901 | ||
3902 | self = self; | |
3903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
3904 | return NULL; | |
3905 | if (_argo0) { | |
3906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
3909 | return NULL; | |
3910 | } | |
3911 | } | |
3912 | { | |
3913 | wxPy_BEGIN_ALLOW_THREADS; | |
3914 | _result = (bool )wxDragImage_Show(_arg0); | |
3915 | ||
3916 | wxPy_END_ALLOW_THREADS; | |
3917 | } _resultobj = Py_BuildValue("i",_result); | |
3918 | return _resultobj; | |
3919 | } | |
3920 | ||
3921 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
3922 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3923 | PyObject * _resultobj; | |
3924 | bool _result; | |
3925 | wxGenericDragImage * _arg0; | |
3926 | PyObject * _argo0 = 0; | |
3927 | char *_kwnames[] = { "self", NULL }; | |
3928 | ||
3929 | self = self; | |
3930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
3931 | return NULL; | |
3932 | if (_argo0) { | |
3933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
3936 | return NULL; | |
3937 | } | |
3938 | } | |
3939 | { | |
3940 | wxPy_BEGIN_ALLOW_THREADS; | |
3941 | _result = (bool )wxDragImage_Hide(_arg0); | |
3942 | ||
3943 | wxPy_END_ALLOW_THREADS; | |
3944 | } _resultobj = Py_BuildValue("i",_result); | |
3945 | return _resultobj; | |
3946 | } | |
3947 | ||
3948 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
3949 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3950 | PyObject * _resultobj; | |
3951 | wxRect * _result; | |
3952 | wxGenericDragImage * _arg0; | |
3953 | wxPoint * _arg1; | |
3954 | PyObject * _argo0 = 0; | |
3955 | wxPoint temp; | |
3956 | PyObject * _obj1 = 0; | |
3957 | char *_kwnames[] = { "self","pos", NULL }; | |
3958 | char _ptemp[128]; | |
3959 | ||
3960 | self = self; | |
3961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
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_GetImageRect. Expected _wxGenericDragImage_p."); | |
3967 | return NULL; | |
3968 | } | |
3969 | } | |
3970 | { | |
3971 | _arg1 = &temp; | |
3972 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3973 | return NULL; | |
3974 | } | |
3975 | { | |
3976 | wxPy_BEGIN_ALLOW_THREADS; | |
3977 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); | |
3978 | ||
3979 | wxPy_END_ALLOW_THREADS; | |
3980 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
3981 | _resultobj = Py_BuildValue("s",_ptemp); | |
3982 | return _resultobj; | |
3983 | } | |
3984 | ||
3985 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3986 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3987 | PyObject * _resultobj; | |
3988 | bool _result; | |
3989 | wxGenericDragImage * _arg0; | |
3990 | wxPoint * _arg1; | |
3991 | wxPoint * _arg2; | |
3992 | bool _arg3; | |
3993 | bool _arg4; | |
3994 | PyObject * _argo0 = 0; | |
3995 | wxPoint temp; | |
3996 | PyObject * _obj1 = 0; | |
3997 | wxPoint temp0; | |
3998 | PyObject * _obj2 = 0; | |
3999 | int tempbool3; | |
4000 | int tempbool4; | |
4001 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4002 | ||
4003 | self = self; | |
4004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4005 | return NULL; | |
4006 | if (_argo0) { | |
4007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4010 | return NULL; | |
4011 | } | |
4012 | } | |
4013 | { | |
4014 | _arg1 = &temp; | |
4015 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4016 | return NULL; | |
4017 | } | |
4018 | { | |
4019 | _arg2 = &temp0; | |
4020 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4021 | return NULL; | |
4022 | } | |
4023 | _arg3 = (bool ) tempbool3; | |
4024 | _arg4 = (bool ) tempbool4; | |
4025 | { | |
4026 | wxPy_BEGIN_ALLOW_THREADS; | |
4027 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
4028 | ||
4029 | wxPy_END_ALLOW_THREADS; | |
4030 | } _resultobj = Py_BuildValue("i",_result); | |
4031 | return _resultobj; | |
4032 | } | |
4033 | ||
9df61a29 RD |
4034 | static void *SwigwxPyTimerTowxObject(void *ptr) { |
4035 | wxPyTimer *src; | |
4036 | wxObject *dest; | |
4037 | src = (wxPyTimer *) ptr; | |
4038 | dest = (wxObject *) src; | |
4039 | return (void *) dest; | |
4040 | } | |
4041 | ||
f6bcfd97 BP |
4042 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) |
4043 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4044 | PyObject * _resultobj; | |
4045 | wxPyTimer * _result; | |
4046 | PyObject * _arg0; | |
4047 | PyObject * _obj0 = 0; | |
4048 | char *_kwnames[] = { "notify", NULL }; | |
4049 | char _ptemp[128]; | |
4050 | ||
4051 | self = self; | |
4052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4053 | return NULL; | |
4054 | { | |
4055 | _arg0 = _obj0; | |
4056 | } | |
4057 | { | |
4058 | wxPy_BEGIN_ALLOW_THREADS; | |
4059 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); | |
4060 | ||
4061 | wxPy_END_ALLOW_THREADS; | |
4062 | } if (_result) { | |
4063 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4064 | _resultobj = Py_BuildValue("s",_ptemp); | |
4065 | } else { | |
4066 | Py_INCREF(Py_None); | |
4067 | _resultobj = Py_None; | |
4068 | } | |
4069 | return _resultobj; | |
4070 | } | |
4071 | ||
4072 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4073 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4074 | PyObject * _resultobj; | |
4075 | wxPyTimer * _arg0; | |
4076 | PyObject * _argo0 = 0; | |
4077 | char *_kwnames[] = { "self", NULL }; | |
4078 | ||
4079 | self = self; | |
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4081 | return NULL; | |
4082 | if (_argo0) { | |
4083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4086 | return NULL; | |
4087 | } | |
4088 | } | |
4089 | { | |
4090 | wxPy_BEGIN_ALLOW_THREADS; | |
4091 | delete_wxPyTimer(_arg0); | |
4092 | ||
4093 | wxPy_END_ALLOW_THREADS; | |
4094 | } Py_INCREF(Py_None); | |
4095 | _resultobj = Py_None; | |
4096 | return _resultobj; | |
4097 | } | |
4098 | ||
4099 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4100 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4101 | PyObject * _resultobj; | |
4102 | int _result; | |
4103 | wxPyTimer * _arg0; | |
4104 | PyObject * _argo0 = 0; | |
4105 | char *_kwnames[] = { "self", NULL }; | |
4106 | ||
4107 | self = self; | |
4108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4109 | return NULL; | |
4110 | if (_argo0) { | |
4111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4114 | return NULL; | |
4115 | } | |
4116 | } | |
4117 | { | |
4118 | wxPy_BEGIN_ALLOW_THREADS; | |
4119 | _result = (int )wxPyTimer_GetInterval(_arg0); | |
4120 | ||
4121 | wxPy_END_ALLOW_THREADS; | |
4122 | } _resultobj = Py_BuildValue("i",_result); | |
4123 | return _resultobj; | |
4124 | } | |
4125 | ||
4126 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4127 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4128 | PyObject * _resultobj; | |
4129 | bool _result; | |
4130 | wxPyTimer * _arg0; | |
4131 | PyObject * _argo0 = 0; | |
4132 | char *_kwnames[] = { "self", NULL }; | |
4133 | ||
4134 | self = self; | |
4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4136 | return NULL; | |
4137 | if (_argo0) { | |
4138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4141 | return NULL; | |
4142 | } | |
4143 | } | |
4144 | { | |
4145 | wxPy_BEGIN_ALLOW_THREADS; | |
4146 | _result = (bool )wxPyTimer_IsOneShot(_arg0); | |
4147 | ||
4148 | wxPy_END_ALLOW_THREADS; | |
4149 | } _resultobj = Py_BuildValue("i",_result); | |
4150 | return _resultobj; | |
4151 | } | |
4152 | ||
4153 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4154 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4155 | PyObject * _resultobj; | |
4156 | bool _result; | |
4157 | wxPyTimer * _arg0; | |
4158 | PyObject * _argo0 = 0; | |
4159 | char *_kwnames[] = { "self", NULL }; | |
4160 | ||
4161 | self = self; | |
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4163 | return NULL; | |
4164 | if (_argo0) { | |
4165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4168 | return NULL; | |
4169 | } | |
4170 | } | |
4171 | { | |
4172 | wxPy_BEGIN_ALLOW_THREADS; | |
4173 | _result = (bool )wxPyTimer_IsRunning(_arg0); | |
4174 | ||
4175 | wxPy_END_ALLOW_THREADS; | |
4176 | } _resultobj = Py_BuildValue("i",_result); | |
4177 | return _resultobj; | |
4178 | } | |
4179 | ||
4180 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4181 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4182 | PyObject * _resultobj; | |
4183 | wxPyTimer * _arg0; | |
4184 | wxEvtHandler * _arg1; | |
4185 | int _arg2 = (int ) -1; | |
4186 | PyObject * _argo0 = 0; | |
4187 | PyObject * _argo1 = 0; | |
4188 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4189 | ||
4190 | self = self; | |
4191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4192 | return NULL; | |
4193 | if (_argo0) { | |
4194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4197 | return NULL; | |
4198 | } | |
4199 | } | |
4200 | if (_argo1) { | |
4201 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4202 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4204 | return NULL; | |
4205 | } | |
4206 | } | |
4207 | { | |
4208 | wxPy_BEGIN_ALLOW_THREADS; | |
4209 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); | |
4210 | ||
4211 | wxPy_END_ALLOW_THREADS; | |
4212 | } Py_INCREF(Py_None); | |
4213 | _resultobj = Py_None; | |
4214 | return _resultobj; | |
4215 | } | |
4216 | ||
4217 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4218 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4219 | PyObject * _resultobj; | |
4220 | wxPyTimer * _arg0; | |
4221 | int _arg1 = (int ) -1; | |
4222 | int _arg2 = (int ) FALSE; | |
4223 | PyObject * _argo0 = 0; | |
4224 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4225 | ||
4226 | self = self; | |
4227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4228 | return NULL; | |
4229 | if (_argo0) { | |
4230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4233 | return NULL; | |
4234 | } | |
4235 | } | |
4236 | { | |
4237 | wxPy_BEGIN_ALLOW_THREADS; | |
4238 | wxPyTimer_Start(_arg0,_arg1,_arg2); | |
4239 | ||
4240 | wxPy_END_ALLOW_THREADS; | |
4241 | } Py_INCREF(Py_None); | |
4242 | _resultobj = Py_None; | |
4243 | return _resultobj; | |
4244 | } | |
4245 | ||
4246 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4247 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4248 | PyObject * _resultobj; | |
4249 | wxPyTimer * _arg0; | |
8f17924e RD |
4250 | PyObject * _argo0 = 0; |
4251 | char *_kwnames[] = { "self", NULL }; | |
8f17924e RD |
4252 | |
4253 | self = self; | |
f6bcfd97 | 4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
8f17924e RD |
4255 | return NULL; |
4256 | if (_argo0) { | |
4257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
8f17924e RD |
4260 | return NULL; |
4261 | } | |
4262 | } | |
4263 | { | |
4264 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4265 | wxPyTimer_Stop(_arg0); |
8f17924e RD |
4266 | |
4267 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4268 | } Py_INCREF(Py_None); |
4269 | _resultobj = Py_None; | |
8f17924e RD |
4270 | return _resultobj; |
4271 | } | |
4272 | ||
5c0282d5 RD |
4273 | #define new_wxStopWatch() (new wxStopWatch()) |
4274 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4275 | PyObject * _resultobj; | |
4276 | wxStopWatch * _result; | |
4277 | char *_kwnames[] = { NULL }; | |
4278 | char _ptemp[128]; | |
4279 | ||
4280 | self = self; | |
4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4282 | return NULL; | |
4283 | { | |
4284 | wxPy_BEGIN_ALLOW_THREADS; | |
4285 | _result = (wxStopWatch *)new_wxStopWatch(); | |
4286 | ||
4287 | wxPy_END_ALLOW_THREADS; | |
4288 | } if (_result) { | |
4289 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4290 | _resultobj = Py_BuildValue("s",_ptemp); | |
4291 | } else { | |
4292 | Py_INCREF(Py_None); | |
4293 | _resultobj = Py_None; | |
4294 | } | |
4295 | return _resultobj; | |
4296 | } | |
4297 | ||
4298 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) | |
4299 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4300 | PyObject * _resultobj; | |
4301 | wxStopWatch * _arg0; | |
4302 | long _arg1 = (long ) 0; | |
4303 | PyObject * _argo0 = 0; | |
4304 | char *_kwnames[] = { "self","t", NULL }; | |
4305 | ||
4306 | self = self; | |
4307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4308 | return NULL; | |
4309 | if (_argo0) { | |
4310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4313 | return NULL; | |
4314 | } | |
4315 | } | |
4316 | { | |
4317 | wxPy_BEGIN_ALLOW_THREADS; | |
4318 | wxStopWatch_Start(_arg0,_arg1); | |
4319 | ||
4320 | wxPy_END_ALLOW_THREADS; | |
4321 | } Py_INCREF(Py_None); | |
4322 | _resultobj = Py_None; | |
4323 | return _resultobj; | |
4324 | } | |
4325 | ||
4326 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4327 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4328 | PyObject * _resultobj; | |
4329 | wxStopWatch * _arg0; | |
4330 | PyObject * _argo0 = 0; | |
4331 | char *_kwnames[] = { "self", NULL }; | |
4332 | ||
4333 | self = self; | |
4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4335 | return NULL; | |
4336 | if (_argo0) { | |
4337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4340 | return NULL; | |
4341 | } | |
4342 | } | |
4343 | { | |
4344 | wxPy_BEGIN_ALLOW_THREADS; | |
4345 | wxStopWatch_Pause(_arg0); | |
4346 | ||
4347 | wxPy_END_ALLOW_THREADS; | |
4348 | } Py_INCREF(Py_None); | |
4349 | _resultobj = Py_None; | |
4350 | return _resultobj; | |
4351 | } | |
4352 | ||
4353 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4354 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4355 | PyObject * _resultobj; | |
4356 | wxStopWatch * _arg0; | |
4357 | PyObject * _argo0 = 0; | |
4358 | char *_kwnames[] = { "self", NULL }; | |
4359 | ||
4360 | self = self; | |
4361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4362 | return NULL; | |
4363 | if (_argo0) { | |
4364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4367 | return NULL; | |
4368 | } | |
4369 | } | |
4370 | { | |
4371 | wxPy_BEGIN_ALLOW_THREADS; | |
4372 | wxStopWatch_Resume(_arg0); | |
4373 | ||
4374 | wxPy_END_ALLOW_THREADS; | |
4375 | } Py_INCREF(Py_None); | |
4376 | _resultobj = Py_None; | |
4377 | return _resultobj; | |
4378 | } | |
4379 | ||
4380 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4381 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4382 | PyObject * _resultobj; | |
4383 | long _result; | |
4384 | wxStopWatch * _arg0; | |
4385 | PyObject * _argo0 = 0; | |
4386 | char *_kwnames[] = { "self", NULL }; | |
4387 | ||
4388 | self = self; | |
4389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4390 | return NULL; | |
4391 | if (_argo0) { | |
4392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4395 | return NULL; | |
4396 | } | |
4397 | } | |
4398 | { | |
4399 | wxPy_BEGIN_ALLOW_THREADS; | |
4400 | _result = (long )wxStopWatch_Time(_arg0); | |
4401 | ||
4402 | wxPy_END_ALLOW_THREADS; | |
4403 | } _resultobj = Py_BuildValue("l",_result); | |
4404 | return _resultobj; | |
4405 | } | |
4406 | ||
f6bcfd97 BP |
4407 | #define new_wxLog() (new wxLog()) |
4408 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8f17924e | 4409 | PyObject * _resultobj; |
f6bcfd97 BP |
4410 | wxLog * _result; |
4411 | char *_kwnames[] = { NULL }; | |
4412 | char _ptemp[128]; | |
8f17924e RD |
4413 | |
4414 | self = self; | |
f6bcfd97 BP |
4415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4416 | return NULL; | |
8f17924e | 4417 | { |
f6bcfd97 BP |
4418 | wxPy_BEGIN_ALLOW_THREADS; |
4419 | _result = (wxLog *)new_wxLog(); | |
4420 | ||
4421 | wxPy_END_ALLOW_THREADS; | |
4422 | } if (_result) { | |
4423 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4424 | _resultobj = Py_BuildValue("s",_ptemp); | |
4425 | } else { | |
4426 | Py_INCREF(Py_None); | |
4427 | _resultobj = Py_None; | |
4428 | } | |
4429 | return _resultobj; | |
8f17924e | 4430 | } |
f6bcfd97 BP |
4431 | |
4432 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4433 | PyObject * _resultobj; | |
4434 | bool _result; | |
4435 | char *_kwnames[] = { NULL }; | |
4436 | ||
4437 | self = self; | |
4438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4439 | return NULL; | |
8f17924e | 4440 | { |
f6bcfd97 BP |
4441 | wxPy_BEGIN_ALLOW_THREADS; |
4442 | _result = (bool )wxLog::IsEnabled(); | |
4443 | ||
4444 | wxPy_END_ALLOW_THREADS; | |
4445 | } _resultobj = Py_BuildValue("i",_result); | |
4446 | return _resultobj; | |
8f17924e | 4447 | } |
f6bcfd97 BP |
4448 | |
4449 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4450 | PyObject * _resultobj; | |
4451 | bool _result; | |
4452 | bool _arg0 = (bool ) TRUE; | |
4453 | int tempbool0 = (int) TRUE; | |
4454 | char *_kwnames[] = { "doIt", NULL }; | |
4455 | ||
4456 | self = self; | |
4457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4458 | return NULL; | |
4459 | _arg0 = (bool ) tempbool0; | |
4460 | { | |
4461 | wxPy_BEGIN_ALLOW_THREADS; | |
4462 | _result = (bool )wxLog::EnableLogging(_arg0); | |
4463 | ||
4464 | wxPy_END_ALLOW_THREADS; | |
4465 | } _resultobj = Py_BuildValue("i",_result); | |
4466 | return _resultobj; | |
4467 | } | |
4468 | ||
4469 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4470 | PyObject * _resultobj; | |
4471 | wxLogLevel * _arg0; | |
4472 | char * _arg1; | |
4473 | int _arg2 = (int ) 0; | |
4474 | PyObject * _argo0 = 0; | |
4475 | char *_kwnames[] = { "level","szString","t", NULL }; | |
4476 | ||
4477 | self = self; | |
4478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|i:wxLog_OnLog",_kwnames,&_argo0,&_arg1,&_arg2)) | |
8f17924e RD |
4479 | return NULL; |
4480 | if (_argo0) { | |
4481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { |
4483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
8f17924e RD |
4484 | return NULL; |
4485 | } | |
4486 | } | |
4487 | { | |
4488 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4489 | wxLog::OnLog(*_arg0,_arg1,_arg2); |
8f17924e RD |
4490 | |
4491 | wxPy_END_ALLOW_THREADS; | |
4492 | } Py_INCREF(Py_None); | |
4493 | _resultobj = Py_None; | |
f6bcfd97 | 4494 | return _resultobj; |
8f17924e | 4495 | } |
f6bcfd97 BP |
4496 | |
4497 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4498 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4499 | PyObject * _resultobj; | |
4500 | wxLog * _arg0; | |
4501 | PyObject * _argo0 = 0; | |
4502 | char *_kwnames[] = { "self", NULL }; | |
4503 | ||
4504 | self = self; | |
4505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4506 | return NULL; | |
4507 | if (_argo0) { | |
4508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4511 | return NULL; | |
4512 | } | |
4513 | } | |
8f17924e | 4514 | { |
f6bcfd97 BP |
4515 | wxPy_BEGIN_ALLOW_THREADS; |
4516 | wxLog_Flush(_arg0); | |
4517 | ||
4518 | wxPy_END_ALLOW_THREADS; | |
4519 | } Py_INCREF(Py_None); | |
4520 | _resultobj = Py_None; | |
8f17924e RD |
4521 | return _resultobj; |
4522 | } | |
4523 | ||
f6bcfd97 BP |
4524 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4525 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8f17924e | 4526 | PyObject * _resultobj; |
f6bcfd97 BP |
4527 | bool _result; |
4528 | wxLog * _arg0; | |
8f17924e RD |
4529 | PyObject * _argo0 = 0; |
4530 | char *_kwnames[] = { "self", NULL }; | |
8f17924e RD |
4531 | |
4532 | self = self; | |
f6bcfd97 | 4533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
8f17924e RD |
4534 | return NULL; |
4535 | if (_argo0) { | |
4536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
8f17924e RD |
4539 | return NULL; |
4540 | } | |
4541 | } | |
4542 | { | |
4543 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4544 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
8f17924e RD |
4545 | |
4546 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4547 | } _resultobj = Py_BuildValue("i",_result); |
8f17924e RD |
4548 | return _resultobj; |
4549 | } | |
4550 | ||
f6bcfd97 | 4551 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 4552 | PyObject * _resultobj; |
f6bcfd97 BP |
4553 | char *_kwnames[] = { NULL }; |
4554 | ||
4555 | self = self; | |
4556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4557 | return NULL; | |
4558 | { | |
4559 | wxPy_BEGIN_ALLOW_THREADS; | |
4560 | wxLog::FlushActive(); | |
4561 | ||
4562 | wxPy_END_ALLOW_THREADS; | |
4563 | } Py_INCREF(Py_None); | |
4564 | _resultobj = Py_None; | |
4565 | return _resultobj; | |
4566 | } | |
4567 | ||
4568 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4569 | PyObject * _resultobj; | |
4570 | wxLog * _result; | |
4571 | char *_kwnames[] = { NULL }; | |
4572 | char _ptemp[128]; | |
4573 | ||
4574 | self = self; | |
4575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4576 | return NULL; | |
4577 | { | |
4578 | wxPy_BEGIN_ALLOW_THREADS; | |
4579 | _result = (wxLog *)wxLog::GetActiveTarget(); | |
4580 | ||
4581 | wxPy_END_ALLOW_THREADS; | |
4582 | } if (_result) { | |
4583 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4584 | _resultobj = Py_BuildValue("s",_ptemp); | |
4585 | } else { | |
4586 | Py_INCREF(Py_None); | |
4587 | _resultobj = Py_None; | |
4588 | } | |
4589 | return _resultobj; | |
4590 | } | |
4591 | ||
4592 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4593 | PyObject * _resultobj; | |
4594 | wxLog * _result; | |
4595 | wxLog * _arg0; | |
8f17924e | 4596 | PyObject * _argo0 = 0; |
f6bcfd97 | 4597 | char *_kwnames[] = { "pLogger", NULL }; |
8f17924e RD |
4598 | char _ptemp[128]; |
4599 | ||
4600 | self = self; | |
f6bcfd97 | 4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
8f17924e RD |
4602 | return NULL; |
4603 | if (_argo0) { | |
4604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
8f17924e RD |
4607 | return NULL; |
4608 | } | |
4609 | } | |
4610 | { | |
4611 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4612 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
8f17924e RD |
4613 | |
4614 | wxPy_END_ALLOW_THREADS; | |
4615 | } if (_result) { | |
f6bcfd97 | 4616 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
8f17924e RD |
4617 | _resultobj = Py_BuildValue("s",_ptemp); |
4618 | } else { | |
4619 | Py_INCREF(Py_None); | |
4620 | _resultobj = Py_None; | |
4621 | } | |
4622 | return _resultobj; | |
4623 | } | |
4624 | ||
f6bcfd97 | 4625 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 4626 | PyObject * _resultobj; |
f6bcfd97 BP |
4627 | char *_kwnames[] = { NULL }; |
4628 | ||
4629 | self = self; | |
4630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4631 | return NULL; | |
4632 | { | |
4633 | wxPy_BEGIN_ALLOW_THREADS; | |
4634 | wxLog::Suspend(); | |
4635 | ||
4636 | wxPy_END_ALLOW_THREADS; | |
4637 | } Py_INCREF(Py_None); | |
4638 | _resultobj = Py_None; | |
4639 | return _resultobj; | |
4640 | } | |
4641 | ||
4642 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4643 | PyObject * _resultobj; | |
4644 | char *_kwnames[] = { NULL }; | |
4645 | ||
4646 | self = self; | |
4647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4648 | return NULL; | |
4649 | { | |
4650 | wxPy_BEGIN_ALLOW_THREADS; | |
4651 | wxLog::Resume(); | |
4652 | ||
4653 | wxPy_END_ALLOW_THREADS; | |
4654 | } Py_INCREF(Py_None); | |
4655 | _resultobj = Py_None; | |
4656 | return _resultobj; | |
4657 | } | |
4658 | ||
4659 | #define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0)) | |
4660 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4661 | PyObject * _resultobj; | |
4662 | wxLog * _arg0; | |
4663 | bool _arg1 = (bool ) TRUE; | |
8f17924e | 4664 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4665 | int tempbool1 = (int) TRUE; |
4666 | char *_kwnames[] = { "self","bVerbose", NULL }; | |
8f17924e RD |
4667 | |
4668 | self = self; | |
f6bcfd97 | 4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1)) |
8f17924e RD |
4670 | return NULL; |
4671 | if (_argo0) { | |
4672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p."); | |
8f17924e RD |
4675 | return NULL; |
4676 | } | |
4677 | } | |
f6bcfd97 | 4678 | _arg1 = (bool ) tempbool1; |
8f17924e RD |
4679 | { |
4680 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4681 | wxLog_SetVerbose(_arg0,_arg1); |
8f17924e RD |
4682 | |
4683 | wxPy_END_ALLOW_THREADS; | |
4684 | } Py_INCREF(Py_None); | |
4685 | _resultobj = Py_None; | |
4686 | return _resultobj; | |
4687 | } | |
4688 | ||
f6bcfd97 | 4689 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 4690 | PyObject * _resultobj; |
f6bcfd97 BP |
4691 | char *_kwnames[] = { NULL }; |
4692 | ||
4693 | self = self; | |
4694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4695 | return NULL; | |
4696 | { | |
4697 | wxPy_BEGIN_ALLOW_THREADS; | |
4698 | wxLog::DontCreateOnDemand(); | |
4699 | ||
4700 | wxPy_END_ALLOW_THREADS; | |
4701 | } Py_INCREF(Py_None); | |
4702 | _resultobj = Py_None; | |
4703 | return _resultobj; | |
4704 | } | |
4705 | ||
4706 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4707 | PyObject * _resultobj; | |
4708 | wxTraceMask * _arg0; | |
8f17924e | 4709 | PyObject * _argo0 = 0; |
f6bcfd97 | 4710 | char *_kwnames[] = { "ulMask", NULL }; |
8f17924e RD |
4711 | |
4712 | self = self; | |
f6bcfd97 | 4713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) |
8f17924e RD |
4714 | return NULL; |
4715 | if (_argo0) { | |
4716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { |
4718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
4719 | return NULL; | |
4720 | } | |
4721 | } | |
4722 | { | |
4723 | wxPy_BEGIN_ALLOW_THREADS; | |
4724 | wxLog::SetTraceMask(*_arg0); | |
4725 | ||
4726 | wxPy_END_ALLOW_THREADS; | |
4727 | } Py_INCREF(Py_None); | |
4728 | _resultobj = Py_None; | |
4729 | return _resultobj; | |
4730 | } | |
4731 | ||
4732 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4733 | PyObject * _resultobj; | |
4734 | wxString * _arg0; | |
4735 | PyObject * _obj0 = 0; | |
4736 | char *_kwnames[] = { "str", NULL }; | |
4737 | ||
4738 | self = self; | |
4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4740 | return NULL; | |
4741 | { | |
2cd2fac8 RD |
4742 | #if PYTHON_API_VERSION >= 1009 |
4743 | char* tmpPtr; int tmpSize; | |
4744 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 4745 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4746 | return NULL; |
4747 | } | |
4748 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4749 | return NULL; | |
4750 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4751 | #else | |
f6bcfd97 BP |
4752 | if (!PyString_Check(_obj0)) { |
4753 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4754 | return NULL; | |
4755 | } | |
2cd2fac8 RD |
4756 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
4757 | #endif | |
f6bcfd97 BP |
4758 | } |
4759 | { | |
4760 | wxPy_BEGIN_ALLOW_THREADS; | |
4761 | wxLog::AddTraceMask(*_arg0); | |
4762 | ||
4763 | wxPy_END_ALLOW_THREADS; | |
4764 | } Py_INCREF(Py_None); | |
4765 | _resultobj = Py_None; | |
4766 | { | |
4767 | if (_obj0) | |
4768 | delete _arg0; | |
4769 | } | |
4770 | return _resultobj; | |
4771 | } | |
4772 | ||
4773 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4774 | PyObject * _resultobj; | |
4775 | wxString * _arg0; | |
4776 | PyObject * _obj0 = 0; | |
4777 | char *_kwnames[] = { "str", NULL }; | |
4778 | ||
4779 | self = self; | |
4780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
8f17924e | 4781 | return NULL; |
8f17924e | 4782 | { |
2cd2fac8 RD |
4783 | #if PYTHON_API_VERSION >= 1009 |
4784 | char* tmpPtr; int tmpSize; | |
4785 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7a446686 | 4786 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4787 | return NULL; |
4788 | } | |
4789 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4790 | return NULL; | |
4791 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4792 | #else | |
f6bcfd97 BP |
4793 | if (!PyString_Check(_obj0)) { |
4794 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8f17924e | 4795 | return NULL; |
f6bcfd97 | 4796 | } |
2cd2fac8 RD |
4797 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
4798 | #endif | |
8f17924e RD |
4799 | } |
4800 | { | |
4801 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4802 | wxLog::RemoveTraceMask(*_arg0); |
8f17924e RD |
4803 | |
4804 | wxPy_END_ALLOW_THREADS; | |
4805 | } Py_INCREF(Py_None); | |
4806 | _resultobj = Py_None; | |
f6bcfd97 BP |
4807 | { |
4808 | if (_obj0) | |
4809 | delete _arg0; | |
4810 | } | |
8f17924e RD |
4811 | return _resultobj; |
4812 | } | |
4813 | ||
0220cbc1 RD |
4814 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
4815 | PyObject * _resultobj; | |
4816 | char *_kwnames[] = { NULL }; | |
4817 | ||
4818 | self = self; | |
4819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
4820 | return NULL; | |
4821 | { | |
4822 | wxPy_BEGIN_ALLOW_THREADS; | |
4823 | wxLog::ClearTraceMasks(); | |
4824 | ||
4825 | wxPy_END_ALLOW_THREADS; | |
4826 | } Py_INCREF(Py_None); | |
4827 | _resultobj = Py_None; | |
4828 | return _resultobj; | |
4829 | } | |
4830 | ||
4831 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4832 | PyObject * _resultobj; | |
4833 | wxChar * _arg0; | |
4834 | char *_kwnames[] = { "ts", NULL }; | |
4835 | ||
4836 | self = self; | |
4837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_SetTimestamp",_kwnames,&_arg0)) | |
4838 | return NULL; | |
4839 | { | |
4840 | wxPy_BEGIN_ALLOW_THREADS; | |
4841 | wxLog::SetTimestamp(_arg0); | |
4842 | ||
4843 | wxPy_END_ALLOW_THREADS; | |
4844 | } Py_INCREF(Py_None); | |
4845 | _resultobj = Py_None; | |
4846 | return _resultobj; | |
4847 | } | |
4848 | ||
4849 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4850 | PyObject * _resultobj; | |
4851 | wxChar * _result; | |
4852 | char *_kwnames[] = { NULL }; | |
4853 | ||
4854 | self = self; | |
4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
4856 | return NULL; | |
4857 | { | |
4858 | wxPy_BEGIN_ALLOW_THREADS; | |
4859 | _result = (wxChar *)wxLog::GetTimestamp(); | |
4860 | ||
4861 | wxPy_END_ALLOW_THREADS; | |
4862 | } _resultobj = Py_BuildValue("s", _result); | |
4863 | return _resultobj; | |
4864 | } | |
4865 | ||
f6bcfd97 BP |
4866 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
4867 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8f17924e | 4868 | PyObject * _resultobj; |
f6bcfd97 BP |
4869 | bool _result; |
4870 | wxLog * _arg0; | |
8f17924e | 4871 | PyObject * _argo0 = 0; |
f6bcfd97 | 4872 | char *_kwnames[] = { "self", NULL }; |
8f17924e RD |
4873 | |
4874 | self = self; | |
f6bcfd97 | 4875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
8f17924e RD |
4876 | return NULL; |
4877 | if (_argo0) { | |
4878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
8f17924e RD |
4881 | return NULL; |
4882 | } | |
4883 | } | |
4884 | { | |
4885 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4886 | _result = (bool )wxLog_GetVerbose(_arg0); |
8f17924e RD |
4887 | |
4888 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4889 | } _resultobj = Py_BuildValue("i",_result); |
8f17924e RD |
4890 | return _resultobj; |
4891 | } | |
4892 | ||
f6bcfd97 | 4893 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
8f17924e | 4894 | PyObject * _resultobj; |
f6bcfd97 BP |
4895 | wxTraceMask * _result; |
4896 | char *_kwnames[] = { NULL }; | |
4897 | char _ptemp[128]; | |
8f17924e RD |
4898 | |
4899 | self = self; | |
f6bcfd97 | 4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
8f17924e | 4901 | return NULL; |
e02c03a4 | 4902 | { |
f6bcfd97 BP |
4903 | wxPy_BEGIN_ALLOW_THREADS; |
4904 | _result = new wxTraceMask (wxLog::GetTraceMask()); | |
4905 | ||
4906 | wxPy_END_ALLOW_THREADS; | |
4907 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); | |
4908 | _resultobj = Py_BuildValue("s",_ptemp); | |
4909 | return _resultobj; | |
e02c03a4 | 4910 | } |
f6bcfd97 BP |
4911 | |
4912 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4913 | PyObject * _resultobj; | |
4914 | bool _result; | |
4915 | char * _arg0; | |
4916 | char *_kwnames[] = { "mask", NULL }; | |
4917 | ||
4918 | self = self; | |
4919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_IsAllowedTraceMask",_kwnames,&_arg0)) | |
4920 | return NULL; | |
8f17924e RD |
4921 | { |
4922 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4923 | _result = (bool )wxLog::IsAllowedTraceMask(_arg0); |
8f17924e RD |
4924 | |
4925 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 4926 | } _resultobj = Py_BuildValue("i",_result); |
8f17924e RD |
4927 | return _resultobj; |
4928 | } | |
4929 | ||
0220cbc1 RD |
4930 | static wxString wxLog_TimeStamp(wxLog *self) { |
4931 | wxString msg; | |
4932 | wxLog::TimeStamp(&msg); | |
4933 | return msg; | |
4934 | } | |
4935 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4936 | PyObject * _resultobj; | |
4937 | wxString * _result; | |
4938 | wxLog * _arg0; | |
4939 | PyObject * _argo0 = 0; | |
4940 | char *_kwnames[] = { "self", NULL }; | |
4941 | ||
4942 | self = self; | |
4943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
4944 | return NULL; | |
4945 | if (_argo0) { | |
4946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
4949 | return NULL; | |
4950 | } | |
4951 | } | |
4952 | { | |
4953 | wxPy_BEGIN_ALLOW_THREADS; | |
4954 | _result = new wxString (wxLog_TimeStamp(_arg0)); | |
4955 | ||
4956 | wxPy_END_ALLOW_THREADS; | |
4957 | }{ | |
4958 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4959 | } | |
4960 | { | |
4961 | delete _result; | |
4962 | } | |
4963 | return _resultobj; | |
4964 | } | |
4965 | ||
f6bcfd97 BP |
4966 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
4967 | wxLogStderr *src; | |
4968 | wxLog *dest; | |
4969 | src = (wxLogStderr *) ptr; | |
4970 | dest = (wxLog *) src; | |
4971 | return (void *) dest; | |
4972 | } | |
4973 | ||
4974 | #define new_wxLogStderr() (new wxLogStderr()) | |
4975 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8f17924e | 4976 | PyObject * _resultobj; |
f6bcfd97 BP |
4977 | wxLogStderr * _result; |
4978 | char *_kwnames[] = { NULL }; | |
4979 | char _ptemp[128]; | |
8f17924e RD |
4980 | |
4981 | self = self; | |
f6bcfd97 | 4982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
8f17924e | 4983 | return NULL; |
8f17924e RD |
4984 | { |
4985 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 4986 | _result = (wxLogStderr *)new_wxLogStderr(); |
8f17924e RD |
4987 | |
4988 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
4989 | } if (_result) { |
4990 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
4991 | _resultobj = Py_BuildValue("s",_ptemp); | |
4992 | } else { | |
4993 | Py_INCREF(Py_None); | |
4994 | _resultobj = Py_None; | |
4995 | } | |
8f17924e RD |
4996 | return _resultobj; |
4997 | } | |
4998 | ||
f6bcfd97 BP |
4999 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5000 | wxLogTextCtrl *src; | |
5001 | wxLog *dest; | |
5002 | src = (wxLogTextCtrl *) ptr; | |
5003 | dest = (wxLog *) src; | |
5004 | return (void *) dest; | |
5005 | } | |
5006 | ||
5007 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5008 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8f17924e | 5009 | PyObject * _resultobj; |
f6bcfd97 BP |
5010 | wxLogTextCtrl * _result; |
5011 | wxTextCtrl * _arg0; | |
8f17924e | 5012 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5013 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5014 | char _ptemp[128]; | |
8f17924e RD |
5015 | |
5016 | self = self; | |
f6bcfd97 | 5017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
8f17924e RD |
5018 | return NULL; |
5019 | if (_argo0) { | |
5020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
8f17924e RD |
5023 | return NULL; |
5024 | } | |
5025 | } | |
5026 | { | |
5027 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5028 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
8f17924e RD |
5029 | |
5030 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
5031 | } if (_result) { |
5032 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5033 | _resultobj = Py_BuildValue("s",_ptemp); | |
5034 | } else { | |
5035 | Py_INCREF(Py_None); | |
5036 | _resultobj = Py_None; | |
5037 | } | |
8f17924e RD |
5038 | return _resultobj; |
5039 | } | |
5040 | ||
f6bcfd97 BP |
5041 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5042 | wxLogGui *src; | |
5043 | wxLog *dest; | |
5044 | src = (wxLogGui *) ptr; | |
5045 | dest = (wxLog *) src; | |
5046 | return (void *) dest; | |
5047 | } | |
5048 | ||
5049 | #define new_wxLogGui() (new wxLogGui()) | |
5050 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 5051 | PyObject * _resultobj; |
f6bcfd97 | 5052 | wxLogGui * _result; |
4120ef2b RD |
5053 | char *_kwnames[] = { NULL }; |
5054 | char _ptemp[128]; | |
5055 | ||
5056 | self = self; | |
f6bcfd97 | 5057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
4120ef2b RD |
5058 | return NULL; |
5059 | { | |
5060 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5061 | _result = (wxLogGui *)new_wxLogGui(); |
4120ef2b RD |
5062 | |
5063 | wxPy_END_ALLOW_THREADS; | |
5064 | } if (_result) { | |
f6bcfd97 | 5065 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
4120ef2b RD |
5066 | _resultobj = Py_BuildValue("s",_ptemp); |
5067 | } else { | |
5068 | Py_INCREF(Py_None); | |
5069 | _resultobj = Py_None; | |
5070 | } | |
5071 | return _resultobj; | |
5072 | } | |
5073 | ||
f6bcfd97 BP |
5074 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5075 | wxLogWindow *src; | |
5076 | wxLog *dest; | |
5077 | src = (wxLogWindow *) ptr; | |
5078 | dest = (wxLog *) src; | |
5079 | return (void *) dest; | |
5080 | } | |
5081 | ||
5082 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5083 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 5084 | PyObject * _resultobj; |
f6bcfd97 BP |
5085 | wxLogWindow * _result; |
5086 | wxFrame * _arg0; | |
5087 | char * _arg1; | |
5088 | bool _arg2 = (bool ) TRUE; | |
5089 | bool _arg3 = (bool ) TRUE; | |
4120ef2b | 5090 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5091 | int tempbool2 = (int) TRUE; |
5092 | int tempbool3 = (int) TRUE; | |
5093 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5094 | char _ptemp[128]; | |
4120ef2b RD |
5095 | |
5096 | self = self; | |
f6bcfd97 | 5097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|ii:new_wxLogWindow",_kwnames,&_argo0,&_arg1,&tempbool2,&tempbool3)) |
4120ef2b RD |
5098 | return NULL; |
5099 | if (_argo0) { | |
5100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
4120ef2b RD |
5103 | return NULL; |
5104 | } | |
5105 | } | |
f6bcfd97 BP |
5106 | _arg2 = (bool ) tempbool2; |
5107 | _arg3 = (bool ) tempbool3; | |
4120ef2b RD |
5108 | { |
5109 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5110 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,_arg1,_arg2,_arg3); |
4120ef2b RD |
5111 | |
5112 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
5113 | } if (_result) { |
5114 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5115 | _resultobj = Py_BuildValue("s",_ptemp); | |
5116 | } else { | |
5117 | Py_INCREF(Py_None); | |
5118 | _resultobj = Py_None; | |
5119 | } | |
4120ef2b RD |
5120 | return _resultobj; |
5121 | } | |
5122 | ||
f6bcfd97 BP |
5123 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5124 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 5125 | PyObject * _resultobj; |
f6bcfd97 BP |
5126 | wxLogWindow * _arg0; |
5127 | bool _arg1 = (bool ) TRUE; | |
4120ef2b | 5128 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5129 | int tempbool1 = (int) TRUE; |
5130 | char *_kwnames[] = { "self","bShow", NULL }; | |
4120ef2b RD |
5131 | |
5132 | self = self; | |
f6bcfd97 | 5133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
4120ef2b RD |
5134 | return NULL; |
5135 | if (_argo0) { | |
5136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
4120ef2b RD |
5139 | return NULL; |
5140 | } | |
5141 | } | |
f6bcfd97 | 5142 | _arg1 = (bool ) tempbool1; |
4120ef2b RD |
5143 | { |
5144 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5145 | wxLogWindow_Show(_arg0,_arg1); |
4120ef2b RD |
5146 | |
5147 | wxPy_END_ALLOW_THREADS; | |
5148 | } Py_INCREF(Py_None); | |
5149 | _resultobj = Py_None; | |
5150 | return _resultobj; | |
5151 | } | |
5152 | ||
f6bcfd97 BP |
5153 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5154 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 5155 | PyObject * _resultobj; |
f6bcfd97 BP |
5156 | wxFrame * _result; |
5157 | wxLogWindow * _arg0; | |
4120ef2b | 5158 | PyObject * _argo0 = 0; |
f6bcfd97 | 5159 | char *_kwnames[] = { "self", NULL }; |
4120ef2b RD |
5160 | |
5161 | self = self; | |
f6bcfd97 | 5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
4120ef2b RD |
5163 | return NULL; |
5164 | if (_argo0) { | |
5165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
4120ef2b RD |
5168 | return NULL; |
5169 | } | |
5170 | } | |
4120ef2b RD |
5171 | { |
5172 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5173 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
4120ef2b RD |
5174 | |
5175 | wxPy_END_ALLOW_THREADS; | |
9df61a29 | 5176 | }{ _resultobj = wxPyMake_wxObject(_result); } |
4120ef2b RD |
5177 | return _resultobj; |
5178 | } | |
5179 | ||
f6bcfd97 BP |
5180 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5181 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 5182 | PyObject * _resultobj; |
f6bcfd97 BP |
5183 | wxLog * _result; |
5184 | wxLogWindow * _arg0; | |
4120ef2b | 5185 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5186 | char *_kwnames[] = { "self", NULL }; |
5187 | char _ptemp[128]; | |
4120ef2b RD |
5188 | |
5189 | self = self; | |
f6bcfd97 | 5190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
4120ef2b RD |
5191 | return NULL; |
5192 | if (_argo0) { | |
5193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
4120ef2b RD |
5196 | return NULL; |
5197 | } | |
5198 | } | |
5199 | { | |
5200 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5201 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
4120ef2b RD |
5202 | |
5203 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
5204 | } if (_result) { |
5205 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5206 | _resultobj = Py_BuildValue("s",_ptemp); | |
5207 | } else { | |
5208 | Py_INCREF(Py_None); | |
5209 | _resultobj = Py_None; | |
5210 | } | |
4120ef2b RD |
5211 | return _resultobj; |
5212 | } | |
5213 | ||
f6bcfd97 BP |
5214 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5215 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 5216 | PyObject * _resultobj; |
f6bcfd97 BP |
5217 | bool _result; |
5218 | wxLogWindow * _arg0; | |
4120ef2b RD |
5219 | PyObject * _argo0 = 0; |
5220 | char *_kwnames[] = { "self", NULL }; | |
5221 | ||
5222 | self = self; | |
f6bcfd97 | 5223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
4120ef2b RD |
5224 | return NULL; |
5225 | if (_argo0) { | |
5226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
4120ef2b RD |
5229 | return NULL; |
5230 | } | |
5231 | } | |
5232 | { | |
5233 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5234 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
4120ef2b RD |
5235 | |
5236 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 5237 | } _resultobj = Py_BuildValue("i",_result); |
4120ef2b RD |
5238 | return _resultobj; |
5239 | } | |
5240 | ||
f6bcfd97 BP |
5241 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5242 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 5243 | PyObject * _resultobj; |
f6bcfd97 BP |
5244 | wxLogWindow * _arg0; |
5245 | bool _arg1; | |
4120ef2b | 5246 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5247 | int tempbool1; |
5248 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
4120ef2b RD |
5249 | |
5250 | self = self; | |
f6bcfd97 | 5251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
4120ef2b RD |
5252 | return NULL; |
5253 | if (_argo0) { | |
5254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
4120ef2b RD |
5257 | return NULL; |
5258 | } | |
5259 | } | |
f6bcfd97 | 5260 | _arg1 = (bool ) tempbool1; |
4120ef2b RD |
5261 | { |
5262 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5263 | wxLogWindow_PassMessages(_arg0,_arg1); |
4120ef2b RD |
5264 | |
5265 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
5266 | } Py_INCREF(Py_None); |
5267 | _resultobj = Py_None; | |
4120ef2b RD |
5268 | return _resultobj; |
5269 | } | |
5270 | ||
f6bcfd97 BP |
5271 | #define new_wxLogNull() (new wxLogNull()) |
5272 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 5273 | PyObject * _resultobj; |
f6bcfd97 BP |
5274 | wxLogNull * _result; |
5275 | char *_kwnames[] = { NULL }; | |
4120ef2b RD |
5276 | char _ptemp[128]; |
5277 | ||
5278 | self = self; | |
f6bcfd97 | 5279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) |
4120ef2b | 5280 | return NULL; |
4120ef2b RD |
5281 | { |
5282 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5283 | _result = (wxLogNull *)new_wxLogNull(); |
4120ef2b RD |
5284 | |
5285 | wxPy_END_ALLOW_THREADS; | |
5286 | } if (_result) { | |
f6bcfd97 | 5287 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); |
4120ef2b RD |
5288 | _resultobj = Py_BuildValue("s",_ptemp); |
5289 | } else { | |
5290 | Py_INCREF(Py_None); | |
5291 | _resultobj = Py_None; | |
5292 | } | |
5293 | return _resultobj; | |
5294 | } | |
5295 | ||
f6bcfd97 BP |
5296 | #define delete_wxLogNull(_swigobj) (delete _swigobj) |
5297 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120ef2b | 5298 | PyObject * _resultobj; |
f6bcfd97 | 5299 | wxLogNull * _arg0; |
4120ef2b RD |
5300 | PyObject * _argo0 = 0; |
5301 | char *_kwnames[] = { "self", NULL }; | |
5302 | ||
5303 | self = self; | |
f6bcfd97 | 5304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) |
4120ef2b RD |
5305 | return NULL; |
5306 | if (_argo0) { | |
5307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { |
5309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
4120ef2b RD |
5310 | return NULL; |
5311 | } | |
5312 | } | |
5313 | { | |
5314 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5315 | delete_wxLogNull(_arg0); |
4120ef2b RD |
5316 | |
5317 | wxPy_END_ALLOW_THREADS; | |
5318 | } Py_INCREF(Py_None); | |
5319 | _resultobj = Py_None; | |
5320 | return _resultobj; | |
5321 | } | |
5322 | ||
0220cbc1 RD |
5323 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5324 | wxLogChain *src; | |
5325 | wxLog *dest; | |
5326 | src = (wxLogChain *) ptr; | |
5327 | dest = (wxLog *) src; | |
5328 | return (void *) dest; | |
5329 | } | |
5330 | ||
5331 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5332 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5333 | PyObject * _resultobj; | |
5334 | wxLogChain * _result; | |
5335 | wxLog * _arg0; | |
5336 | PyObject * _argo0 = 0; | |
5337 | char *_kwnames[] = { "logger", NULL }; | |
5338 | char _ptemp[128]; | |
5339 | ||
5340 | self = self; | |
5341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5342 | return NULL; | |
5343 | if (_argo0) { | |
5344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5347 | return NULL; | |
5348 | } | |
5349 | } | |
5350 | { | |
5351 | wxPy_BEGIN_ALLOW_THREADS; | |
5352 | _result = (wxLogChain *)new_wxLogChain(_arg0); | |
5353 | ||
5354 | wxPy_END_ALLOW_THREADS; | |
5355 | } if (_result) { | |
5356 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5357 | _resultobj = Py_BuildValue("s",_ptemp); | |
5358 | } else { | |
5359 | Py_INCREF(Py_None); | |
5360 | _resultobj = Py_None; | |
5361 | } | |
5362 | return _resultobj; | |
5363 | } | |
5364 | ||
5365 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5366 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5367 | PyObject * _resultobj; | |
5368 | wxLogChain * _arg0; | |
5369 | wxLog * _arg1; | |
5370 | PyObject * _argo0 = 0; | |
5371 | PyObject * _argo1 = 0; | |
5372 | char *_kwnames[] = { "self","logger", NULL }; | |
5373 | ||
5374 | self = self; | |
5375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5376 | return NULL; | |
5377 | if (_argo0) { | |
5378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5381 | return NULL; | |
5382 | } | |
5383 | } | |
5384 | if (_argo1) { | |
5385 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5386 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5388 | return NULL; | |
5389 | } | |
5390 | } | |
5391 | { | |
5392 | wxPy_BEGIN_ALLOW_THREADS; | |
5393 | wxLogChain_SetLog(_arg0,_arg1); | |
5394 | ||
5395 | wxPy_END_ALLOW_THREADS; | |
5396 | } Py_INCREF(Py_None); | |
5397 | _resultobj = Py_None; | |
5398 | return _resultobj; | |
5399 | } | |
5400 | ||
5401 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5402 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5403 | PyObject * _resultobj; | |
5404 | wxLogChain * _arg0; | |
5405 | bool _arg1; | |
5406 | PyObject * _argo0 = 0; | |
5407 | int tempbool1; | |
5408 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5409 | ||
5410 | self = self; | |
5411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5412 | return NULL; | |
5413 | if (_argo0) { | |
5414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5417 | return NULL; | |
5418 | } | |
5419 | } | |
5420 | _arg1 = (bool ) tempbool1; | |
5421 | { | |
5422 | wxPy_BEGIN_ALLOW_THREADS; | |
5423 | wxLogChain_PassMessages(_arg0,_arg1); | |
5424 | ||
5425 | wxPy_END_ALLOW_THREADS; | |
5426 | } Py_INCREF(Py_None); | |
5427 | _resultobj = Py_None; | |
5428 | return _resultobj; | |
5429 | } | |
5430 | ||
5431 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5432 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5433 | PyObject * _resultobj; | |
5434 | bool _result; | |
5435 | wxLogChain * _arg0; | |
5436 | PyObject * _argo0 = 0; | |
5437 | char *_kwnames[] = { "self", NULL }; | |
5438 | ||
5439 | self = self; | |
5440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5441 | return NULL; | |
5442 | if (_argo0) { | |
5443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5446 | return NULL; | |
5447 | } | |
5448 | } | |
5449 | { | |
5450 | wxPy_BEGIN_ALLOW_THREADS; | |
5451 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); | |
5452 | ||
5453 | wxPy_END_ALLOW_THREADS; | |
5454 | } _resultobj = Py_BuildValue("i",_result); | |
5455 | return _resultobj; | |
5456 | } | |
5457 | ||
5458 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5459 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5460 | PyObject * _resultobj; | |
5461 | wxLog * _result; | |
5462 | wxLogChain * _arg0; | |
5463 | PyObject * _argo0 = 0; | |
5464 | char *_kwnames[] = { "self", NULL }; | |
5465 | char _ptemp[128]; | |
5466 | ||
5467 | self = self; | |
5468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5469 | return NULL; | |
5470 | if (_argo0) { | |
5471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5474 | return NULL; | |
5475 | } | |
5476 | } | |
5477 | { | |
5478 | wxPy_BEGIN_ALLOW_THREADS; | |
5479 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); | |
5480 | ||
5481 | wxPy_END_ALLOW_THREADS; | |
5482 | } if (_result) { | |
5483 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5484 | _resultobj = Py_BuildValue("s",_ptemp); | |
5485 | } else { | |
5486 | Py_INCREF(Py_None); | |
5487 | _resultobj = Py_None; | |
5488 | } | |
5489 | return _resultobj; | |
5490 | } | |
5491 | ||
5492 | static void *SwigwxPyLogTowxLog(void *ptr) { | |
5493 | wxPyLog *src; | |
5494 | wxLog *dest; | |
5495 | src = (wxPyLog *) ptr; | |
5496 | dest = (wxLog *) src; | |
5497 | return (void *) dest; | |
5498 | } | |
5499 | ||
5500 | #define new_wxPyLog() (new wxPyLog()) | |
5501 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5502 | PyObject * _resultobj; | |
5503 | wxPyLog * _result; | |
5504 | char *_kwnames[] = { NULL }; | |
5505 | char _ptemp[128]; | |
5506 | ||
5507 | self = self; | |
5508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5509 | return NULL; | |
5510 | { | |
5511 | wxPy_BEGIN_ALLOW_THREADS; | |
5512 | _result = (wxPyLog *)new_wxPyLog(); | |
5513 | ||
5514 | wxPy_END_ALLOW_THREADS; | |
5515 | } if (_result) { | |
5516 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5517 | _resultobj = Py_BuildValue("s",_ptemp); | |
5518 | } else { | |
5519 | Py_INCREF(Py_None); | |
5520 | _resultobj = Py_None; | |
5521 | } | |
5522 | return _resultobj; | |
5523 | } | |
5524 | ||
5525 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
5526 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5527 | PyObject * _resultobj; | |
5528 | wxPyLog * _arg0; | |
5529 | PyObject * _arg1; | |
5530 | PyObject * _arg2; | |
5531 | PyObject * _argo0 = 0; | |
5532 | PyObject * _obj1 = 0; | |
5533 | PyObject * _obj2 = 0; | |
5534 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5535 | ||
5536 | self = self; | |
5537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5538 | return NULL; | |
5539 | if (_argo0) { | |
5540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); | |
5543 | return NULL; | |
5544 | } | |
5545 | } | |
5546 | { | |
5547 | _arg1 = _obj1; | |
5548 | } | |
5549 | { | |
5550 | _arg2 = _obj2; | |
5551 | } | |
5552 | { | |
5553 | wxPy_BEGIN_ALLOW_THREADS; | |
5554 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); | |
5555 | ||
5556 | wxPy_END_ALLOW_THREADS; | |
5557 | } Py_INCREF(Py_None); | |
5558 | _resultobj = Py_None; | |
5559 | return _resultobj; | |
5560 | } | |
5561 | ||
5562 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5563 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject * _resultobj; | |
5565 | wxPyLog * _arg0; | |
5566 | PyObject * _argo0 = 0; | |
5567 | char *_kwnames[] = { "self", NULL }; | |
5568 | ||
5569 | self = self; | |
5570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5571 | return NULL; | |
5572 | if (_argo0) { | |
5573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5576 | return NULL; | |
5577 | } | |
5578 | } | |
5579 | { | |
5580 | wxPy_BEGIN_ALLOW_THREADS; | |
5581 | wxPyLog_Destroy(_arg0); | |
5582 | ||
5583 | wxPy_END_ALLOW_THREADS; | |
5584 | } Py_INCREF(Py_None); | |
5585 | _resultobj = Py_None; | |
5586 | return _resultobj; | |
5587 | } | |
5588 | ||
c368d904 RD |
5589 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
5590 | wxProcessEvent *src; | |
5591 | wxEvent *dest; | |
5592 | src = (wxProcessEvent *) ptr; | |
5593 | dest = (wxEvent *) src; | |
5594 | return (void *) dest; | |
5595 | } | |
5596 | ||
9df61a29 RD |
5597 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
5598 | wxProcessEvent *src; | |
5599 | wxObject *dest; | |
5600 | src = (wxProcessEvent *) ptr; | |
5601 | dest = (wxObject *) src; | |
5602 | return (void *) dest; | |
5603 | } | |
5604 | ||
c368d904 RD |
5605 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
5606 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5607 | PyObject * _resultobj; | |
5608 | wxProcessEvent * _result; | |
5609 | int _arg0 = (int ) 0; | |
5610 | int _arg1 = (int ) 0; | |
5611 | int _arg2 = (int ) 0; | |
5612 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5613 | char _ptemp[128]; | |
5614 | ||
5615 | self = self; | |
5616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5617 | return NULL; | |
5618 | { | |
5619 | wxPy_BEGIN_ALLOW_THREADS; | |
5620 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); | |
5621 | ||
5622 | wxPy_END_ALLOW_THREADS; | |
5623 | } if (_result) { | |
5624 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5625 | _resultobj = Py_BuildValue("s",_ptemp); | |
5626 | } else { | |
5627 | Py_INCREF(Py_None); | |
5628 | _resultobj = Py_None; | |
5629 | } | |
5630 | return _resultobj; | |
5631 | } | |
5632 | ||
5633 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5634 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5635 | PyObject * _resultobj; | |
5636 | int _result; | |
5637 | wxProcessEvent * _arg0; | |
5638 | PyObject * _argo0 = 0; | |
5639 | char *_kwnames[] = { "self", NULL }; | |
5640 | ||
5641 | self = self; | |
5642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5643 | return NULL; | |
5644 | if (_argo0) { | |
5645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5648 | return NULL; | |
5649 | } | |
5650 | } | |
5651 | { | |
5652 | wxPy_BEGIN_ALLOW_THREADS; | |
5653 | _result = (int )wxProcessEvent_GetPid(_arg0); | |
5654 | ||
5655 | wxPy_END_ALLOW_THREADS; | |
5656 | } _resultobj = Py_BuildValue("i",_result); | |
5657 | return _resultobj; | |
5658 | } | |
5659 | ||
5660 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
5661 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5662 | PyObject * _resultobj; | |
5663 | int _result; | |
5664 | wxProcessEvent * _arg0; | |
5665 | PyObject * _argo0 = 0; | |
5666 | char *_kwnames[] = { "self", NULL }; | |
5667 | ||
5668 | self = self; | |
5669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
5670 | return NULL; | |
5671 | if (_argo0) { | |
5672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5675 | return NULL; | |
5676 | } | |
5677 | } | |
5678 | { | |
5679 | wxPy_BEGIN_ALLOW_THREADS; | |
5680 | _result = (int )wxProcessEvent_GetExitCode(_arg0); | |
5681 | ||
5682 | wxPy_END_ALLOW_THREADS; | |
5683 | } _resultobj = Py_BuildValue("i",_result); | |
5684 | return _resultobj; | |
5685 | } | |
5686 | ||
5687 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5688 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5689 | PyObject * _resultobj; | |
5690 | int _result; | |
5691 | wxProcessEvent * _arg0; | |
5692 | int _arg1; | |
5693 | PyObject * _argo0 = 0; | |
5694 | char *_kwnames[] = { "self","m_pid", NULL }; | |
5695 | ||
5696 | self = self; | |
5697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
5698 | return NULL; | |
5699 | if (_argo0) { | |
5700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
5703 | return NULL; | |
5704 | } | |
5705 | } | |
5706 | { | |
5707 | wxPy_BEGIN_ALLOW_THREADS; | |
5708 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); | |
5709 | ||
5710 | wxPy_END_ALLOW_THREADS; | |
5711 | } _resultobj = Py_BuildValue("i",_result); | |
5712 | return _resultobj; | |
5713 | } | |
5714 | ||
5715 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
5716 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject * _resultobj; | |
5718 | int _result; | |
5719 | wxProcessEvent * _arg0; | |
5720 | PyObject * _argo0 = 0; | |
5721 | char *_kwnames[] = { "self", NULL }; | |
5722 | ||
5723 | self = self; | |
5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
5725 | return NULL; | |
5726 | if (_argo0) { | |
5727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
5730 | return NULL; | |
5731 | } | |
5732 | } | |
5733 | { | |
5734 | wxPy_BEGIN_ALLOW_THREADS; | |
5735 | _result = (int )wxProcessEvent_m_pid_get(_arg0); | |
5736 | ||
5737 | wxPy_END_ALLOW_THREADS; | |
5738 | } _resultobj = Py_BuildValue("i",_result); | |
5739 | return _resultobj; | |
5740 | } | |
5741 | ||
5742 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
5743 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5744 | PyObject * _resultobj; | |
5745 | int _result; | |
5746 | wxProcessEvent * _arg0; | |
5747 | int _arg1; | |
5748 | PyObject * _argo0 = 0; | |
5749 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
5750 | ||
5751 | self = self; | |
5752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
5753 | return NULL; | |
5754 | if (_argo0) { | |
5755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
5758 | return NULL; | |
5759 | } | |
5760 | } | |
5761 | { | |
5762 | wxPy_BEGIN_ALLOW_THREADS; | |
5763 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); | |
5764 | ||
5765 | wxPy_END_ALLOW_THREADS; | |
5766 | } _resultobj = Py_BuildValue("i",_result); | |
5767 | return _resultobj; | |
5768 | } | |
5769 | ||
5770 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
5771 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5772 | PyObject * _resultobj; | |
5773 | int _result; | |
5774 | wxProcessEvent * _arg0; | |
5775 | PyObject * _argo0 = 0; | |
5776 | char *_kwnames[] = { "self", NULL }; | |
5777 | ||
5778 | self = self; | |
5779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
5780 | return NULL; | |
5781 | if (_argo0) { | |
5782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
5785 | return NULL; | |
5786 | } | |
5787 | } | |
5788 | { | |
5789 | wxPy_BEGIN_ALLOW_THREADS; | |
5790 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); | |
5791 | ||
5792 | wxPy_END_ALLOW_THREADS; | |
5793 | } _resultobj = Py_BuildValue("i",_result); | |
5794 | return _resultobj; | |
5795 | } | |
5796 | ||
5797 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
5798 | wxPyProcess *src; | |
5799 | wxEvtHandler *dest; | |
5800 | src = (wxPyProcess *) ptr; | |
5801 | dest = (wxEvtHandler *) src; | |
5802 | return (void *) dest; | |
5803 | } | |
5804 | ||
9df61a29 RD |
5805 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
5806 | wxPyProcess *src; | |
5807 | wxObject *dest; | |
5808 | src = (wxPyProcess *) ptr; | |
5809 | dest = (wxObject *) src; | |
5810 | return (void *) dest; | |
5811 | } | |
5812 | ||
c368d904 RD |
5813 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
5814 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5815 | PyObject * _resultobj; | |
5816 | wxPyProcess * _result; | |
5817 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
5818 | int _arg1 = (int ) -1; | |
5819 | PyObject * _argo0 = 0; | |
5820 | char *_kwnames[] = { "parent","id", NULL }; | |
5821 | char _ptemp[128]; | |
5822 | ||
5823 | self = self; | |
5824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
5825 | return NULL; | |
5826 | if (_argo0) { | |
5827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
5829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
5830 | return NULL; | |
5831 | } | |
5832 | } | |
5833 | { | |
5834 | wxPy_BEGIN_ALLOW_THREADS; | |
5835 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); | |
5836 | ||
5837 | wxPy_END_ALLOW_THREADS; | |
5838 | } if (_result) { | |
5839 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
5840 | _resultobj = Py_BuildValue("s",_ptemp); | |
5841 | } else { | |
5842 | Py_INCREF(Py_None); | |
5843 | _resultobj = Py_None; | |
5844 | } | |
5845 | return _resultobj; | |
5846 | } | |
5847 | ||
5848 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
5849 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5850 | PyObject * _resultobj; | |
5851 | wxPyProcess * _arg0; | |
5852 | PyObject * _argo0 = 0; | |
5853 | char *_kwnames[] = { "self", NULL }; | |
5854 | ||
5855 | self = self; | |
5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
5857 | return NULL; | |
5858 | if (_argo0) { | |
5859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
5862 | return NULL; | |
5863 | } | |
5864 | } | |
5865 | { | |
5866 | wxPy_BEGIN_ALLOW_THREADS; | |
5867 | wxPyProcess_Destroy(_arg0); | |
5868 | ||
5869 | wxPy_END_ALLOW_THREADS; | |
5870 | } Py_INCREF(Py_None); | |
5871 | _resultobj = Py_None; | |
5872 | return _resultobj; | |
5873 | } | |
5874 | ||
0220cbc1 RD |
5875 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5876 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
5877 | PyObject * _resultobj; |
5878 | wxPyProcess * _arg0; | |
5879 | PyObject * _arg1; | |
5880 | PyObject * _arg2; | |
5881 | PyObject * _argo0 = 0; | |
5882 | PyObject * _obj1 = 0; | |
5883 | PyObject * _obj2 = 0; | |
5884 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5885 | ||
5886 | self = self; | |
0220cbc1 | 5887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
5888 | return NULL; |
5889 | if (_argo0) { | |
5890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0220cbc1 | 5892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
5893 | return NULL; |
5894 | } | |
5895 | } | |
5896 | { | |
5897 | _arg1 = _obj1; | |
5898 | } | |
5899 | { | |
5900 | _arg2 = _obj2; | |
5901 | } | |
5902 | { | |
5903 | wxPy_BEGIN_ALLOW_THREADS; | |
0220cbc1 | 5904 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 RD |
5905 | |
5906 | wxPy_END_ALLOW_THREADS; | |
5907 | } Py_INCREF(Py_None); | |
5908 | _resultobj = Py_None; | |
5909 | return _resultobj; | |
5910 | } | |
5911 | ||
5912 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
5913 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5914 | PyObject * _resultobj; | |
5915 | wxPyProcess * _arg0; | |
5916 | int _arg1; | |
5917 | int _arg2; | |
5918 | PyObject * _argo0 = 0; | |
5919 | char *_kwnames[] = { "self","pid","status", NULL }; | |
5920 | ||
5921 | self = self; | |
5922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5923 | return NULL; | |
5924 | if (_argo0) { | |
5925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
5928 | return NULL; | |
5929 | } | |
5930 | } | |
5931 | { | |
5932 | wxPy_BEGIN_ALLOW_THREADS; | |
5933 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); | |
5934 | ||
5935 | wxPy_END_ALLOW_THREADS; | |
5936 | } Py_INCREF(Py_None); | |
5937 | _resultobj = Py_None; | |
5938 | return _resultobj; | |
5939 | } | |
5940 | ||
5941 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
5942 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5943 | PyObject * _resultobj; | |
5944 | wxPyProcess * _arg0; | |
5945 | PyObject * _argo0 = 0; | |
5946 | char *_kwnames[] = { "self", NULL }; | |
5947 | ||
5948 | self = self; | |
5949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
5950 | return NULL; | |
5951 | if (_argo0) { | |
5952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
5955 | return NULL; | |
5956 | } | |
5957 | } | |
5958 | { | |
5959 | wxPy_BEGIN_ALLOW_THREADS; | |
5960 | wxProcess_Redirect(_arg0); | |
5961 | ||
5962 | wxPy_END_ALLOW_THREADS; | |
5963 | } Py_INCREF(Py_None); | |
5964 | _resultobj = Py_None; | |
5965 | return _resultobj; | |
5966 | } | |
5967 | ||
5968 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
5969 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5970 | PyObject * _resultobj; | |
5971 | bool _result; | |
5972 | wxPyProcess * _arg0; | |
5973 | PyObject * _argo0 = 0; | |
5974 | char *_kwnames[] = { "self", NULL }; | |
5975 | ||
5976 | self = self; | |
5977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
5978 | return NULL; | |
5979 | if (_argo0) { | |
5980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
5983 | return NULL; | |
5984 | } | |
5985 | } | |
5986 | { | |
5987 | wxPy_BEGIN_ALLOW_THREADS; | |
5988 | _result = (bool )wxProcess_IsRedirected(_arg0); | |
5989 | ||
5990 | wxPy_END_ALLOW_THREADS; | |
5991 | } _resultobj = Py_BuildValue("i",_result); | |
5992 | return _resultobj; | |
5993 | } | |
5994 | ||
5995 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
5996 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5997 | PyObject * _resultobj; | |
5998 | wxPyProcess * _arg0; | |
5999 | PyObject * _argo0 = 0; | |
6000 | char *_kwnames[] = { "self", NULL }; | |
6001 | ||
6002 | self = self; | |
6003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6004 | return NULL; | |
6005 | if (_argo0) { | |
6006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6009 | return NULL; | |
6010 | } | |
6011 | } | |
6012 | { | |
6013 | wxPy_BEGIN_ALLOW_THREADS; | |
6014 | wxProcess_Detach(_arg0); | |
6015 | ||
6016 | wxPy_END_ALLOW_THREADS; | |
6017 | } Py_INCREF(Py_None); | |
6018 | _resultobj = Py_None; | |
6019 | return _resultobj; | |
6020 | } | |
6021 | ||
6022 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6023 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6024 | PyObject * _resultobj; | |
6025 | wxInputStream * _result; | |
6026 | wxPyProcess * _arg0; | |
6027 | PyObject * _argo0 = 0; | |
6028 | char *_kwnames[] = { "self", NULL }; | |
6029 | ||
6030 | self = self; | |
6031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6032 | return NULL; | |
6033 | if (_argo0) { | |
6034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6037 | return NULL; | |
6038 | } | |
6039 | } | |
6040 | { | |
6041 | wxPy_BEGIN_ALLOW_THREADS; | |
6042 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); | |
6043 | ||
6044 | wxPy_END_ALLOW_THREADS; | |
6045 | }{ | |
6046 | wxPyInputStream * _ptr = NULL; | |
6047 | ||
6048 | if (_result) { | |
6049 | _ptr = new wxPyInputStream(_result); | |
6050 | } | |
9df61a29 | 6051 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6052 | } |
6053 | return _resultobj; | |
6054 | } | |
6055 | ||
6056 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6057 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6058 | PyObject * _resultobj; | |
6059 | wxInputStream * _result; | |
6060 | wxPyProcess * _arg0; | |
6061 | PyObject * _argo0 = 0; | |
6062 | char *_kwnames[] = { "self", NULL }; | |
6063 | ||
6064 | self = self; | |
6065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6066 | return NULL; | |
6067 | if (_argo0) { | |
6068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6071 | return NULL; | |
6072 | } | |
6073 | } | |
6074 | { | |
6075 | wxPy_BEGIN_ALLOW_THREADS; | |
6076 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); | |
6077 | ||
6078 | wxPy_END_ALLOW_THREADS; | |
6079 | }{ | |
6080 | wxPyInputStream * _ptr = NULL; | |
6081 | ||
6082 | if (_result) { | |
6083 | _ptr = new wxPyInputStream(_result); | |
6084 | } | |
9df61a29 | 6085 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6086 | } |
6087 | return _resultobj; | |
6088 | } | |
6089 | ||
6090 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6091 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject * _resultobj; | |
6093 | wxOutputStream * _result; | |
6094 | wxPyProcess * _arg0; | |
6095 | PyObject * _argo0 = 0; | |
6096 | char *_kwnames[] = { "self", NULL }; | |
6097 | char _ptemp[128]; | |
6098 | ||
6099 | self = self; | |
6100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6101 | return NULL; | |
6102 | if (_argo0) { | |
6103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6106 | return NULL; | |
6107 | } | |
6108 | } | |
6109 | { | |
6110 | wxPy_BEGIN_ALLOW_THREADS; | |
6111 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); | |
6112 | ||
6113 | wxPy_END_ALLOW_THREADS; | |
6114 | } if (_result) { | |
6115 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6116 | _resultobj = Py_BuildValue("s",_ptemp); | |
6117 | } else { | |
6118 | Py_INCREF(Py_None); | |
6119 | _resultobj = Py_None; | |
6120 | } | |
6121 | return _resultobj; | |
6122 | } | |
6123 | ||
6124 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6125 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6126 | PyObject * _resultobj; | |
6127 | wxPyProcess * _arg0; | |
6128 | PyObject * _argo0 = 0; | |
6129 | char *_kwnames[] = { "self", NULL }; | |
6130 | ||
6131 | self = self; | |
6132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6133 | return NULL; | |
6134 | if (_argo0) { | |
6135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6138 | return NULL; | |
6139 | } | |
6140 | } | |
6141 | { | |
6142 | wxPy_BEGIN_ALLOW_THREADS; | |
6143 | wxProcess_CloseOutput(_arg0); | |
6144 | ||
6145 | wxPy_END_ALLOW_THREADS; | |
6146 | } Py_INCREF(Py_None); | |
6147 | _resultobj = Py_None; | |
6148 | return _resultobj; | |
6149 | } | |
6150 | ||
4dfaa61e RD |
6151 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6152 | wxJoystick *src; | |
6153 | wxObject *dest; | |
6154 | src = (wxJoystick *) ptr; | |
6155 | dest = (wxObject *) src; | |
6156 | return (void *) dest; | |
6157 | } | |
6158 | ||
6159 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) | |
6160 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6161 | PyObject * _resultobj; | |
6162 | wxJoystick * _result; | |
6163 | int _arg0 = (int ) wxJOYSTICK1; | |
6164 | char *_kwnames[] = { "joystick", NULL }; | |
6165 | char _ptemp[128]; | |
6166 | ||
6167 | self = self; | |
6168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6169 | return NULL; | |
6170 | { | |
6171 | wxPy_BEGIN_ALLOW_THREADS; | |
6172 | _result = (wxJoystick *)new_wxJoystick(_arg0); | |
6173 | ||
6174 | wxPy_END_ALLOW_THREADS; | |
6175 | } if (_result) { | |
6176 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6177 | _resultobj = Py_BuildValue("s",_ptemp); | |
6178 | } else { | |
6179 | Py_INCREF(Py_None); | |
6180 | _resultobj = Py_None; | |
6181 | } | |
6182 | return _resultobj; | |
6183 | } | |
6184 | ||
25d73e0f RD |
6185 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6186 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6187 | PyObject * _resultobj; | |
6188 | wxJoystick * _arg0; | |
6189 | PyObject * _argo0 = 0; | |
6190 | char *_kwnames[] = { "self", NULL }; | |
6191 | ||
6192 | self = self; | |
6193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6194 | return NULL; | |
6195 | if (_argo0) { | |
6196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6199 | return NULL; | |
6200 | } | |
6201 | } | |
6202 | { | |
6203 | wxPy_BEGIN_ALLOW_THREADS; | |
6204 | delete_wxJoystick(_arg0); | |
6205 | ||
6206 | wxPy_END_ALLOW_THREADS; | |
6207 | } Py_INCREF(Py_None); | |
6208 | _resultobj = Py_None; | |
6209 | return _resultobj; | |
6210 | } | |
6211 | ||
4dfaa61e RD |
6212 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6213 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6214 | PyObject * _resultobj; | |
6215 | wxPoint * _result; | |
6216 | wxJoystick * _arg0; | |
6217 | PyObject * _argo0 = 0; | |
6218 | char *_kwnames[] = { "self", NULL }; | |
6219 | char _ptemp[128]; | |
6220 | ||
6221 | self = self; | |
6222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6223 | return NULL; | |
6224 | if (_argo0) { | |
6225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6228 | return NULL; | |
6229 | } | |
6230 | } | |
6231 | { | |
6232 | wxPy_BEGIN_ALLOW_THREADS; | |
6233 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); | |
6234 | ||
6235 | wxPy_END_ALLOW_THREADS; | |
6236 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
6237 | _resultobj = Py_BuildValue("s",_ptemp); | |
6238 | return _resultobj; | |
6239 | } | |
6240 | ||
6241 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6242 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6243 | PyObject * _resultobj; | |
6244 | int _result; | |
6245 | wxJoystick * _arg0; | |
6246 | PyObject * _argo0 = 0; | |
6247 | char *_kwnames[] = { "self", NULL }; | |
6248 | ||
6249 | self = self; | |
6250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6251 | return NULL; | |
6252 | if (_argo0) { | |
6253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6256 | return NULL; | |
6257 | } | |
6258 | } | |
6259 | { | |
6260 | wxPy_BEGIN_ALLOW_THREADS; | |
6261 | _result = (int )wxJoystick_GetZPosition(_arg0); | |
6262 | ||
6263 | wxPy_END_ALLOW_THREADS; | |
6264 | } _resultobj = Py_BuildValue("i",_result); | |
6265 | return _resultobj; | |
6266 | } | |
6267 | ||
6268 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6269 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6270 | PyObject * _resultobj; | |
6271 | int _result; | |
6272 | wxJoystick * _arg0; | |
6273 | PyObject * _argo0 = 0; | |
6274 | char *_kwnames[] = { "self", NULL }; | |
6275 | ||
6276 | self = self; | |
6277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6278 | return NULL; | |
6279 | if (_argo0) { | |
6280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6283 | return NULL; | |
6284 | } | |
6285 | } | |
6286 | { | |
6287 | wxPy_BEGIN_ALLOW_THREADS; | |
6288 | _result = (int )wxJoystick_GetButtonState(_arg0); | |
6289 | ||
6290 | wxPy_END_ALLOW_THREADS; | |
6291 | } _resultobj = Py_BuildValue("i",_result); | |
6292 | return _resultobj; | |
6293 | } | |
6294 | ||
6295 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6296 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6297 | PyObject * _resultobj; | |
6298 | int _result; | |
6299 | wxJoystick * _arg0; | |
6300 | PyObject * _argo0 = 0; | |
6301 | char *_kwnames[] = { "self", NULL }; | |
6302 | ||
6303 | self = self; | |
6304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6305 | return NULL; | |
6306 | if (_argo0) { | |
6307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6310 | return NULL; | |
6311 | } | |
6312 | } | |
6313 | { | |
6314 | wxPy_BEGIN_ALLOW_THREADS; | |
6315 | _result = (int )wxJoystick_GetPOVPosition(_arg0); | |
6316 | ||
6317 | wxPy_END_ALLOW_THREADS; | |
6318 | } _resultobj = Py_BuildValue("i",_result); | |
6319 | return _resultobj; | |
6320 | } | |
6321 | ||
6322 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6323 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6324 | PyObject * _resultobj; | |
6325 | int _result; | |
6326 | wxJoystick * _arg0; | |
6327 | PyObject * _argo0 = 0; | |
6328 | char *_kwnames[] = { "self", NULL }; | |
6329 | ||
6330 | self = self; | |
6331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6332 | return NULL; | |
6333 | if (_argo0) { | |
6334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6337 | return NULL; | |
6338 | } | |
6339 | } | |
6340 | { | |
6341 | wxPy_BEGIN_ALLOW_THREADS; | |
6342 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); | |
6343 | ||
6344 | wxPy_END_ALLOW_THREADS; | |
6345 | } _resultobj = Py_BuildValue("i",_result); | |
6346 | return _resultobj; | |
6347 | } | |
6348 | ||
6349 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6350 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6351 | PyObject * _resultobj; | |
6352 | int _result; | |
6353 | wxJoystick * _arg0; | |
6354 | PyObject * _argo0 = 0; | |
6355 | char *_kwnames[] = { "self", NULL }; | |
6356 | ||
6357 | self = self; | |
6358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6359 | return NULL; | |
6360 | if (_argo0) { | |
6361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6364 | return NULL; | |
6365 | } | |
6366 | } | |
6367 | { | |
6368 | wxPy_BEGIN_ALLOW_THREADS; | |
6369 | _result = (int )wxJoystick_GetRudderPosition(_arg0); | |
6370 | ||
6371 | wxPy_END_ALLOW_THREADS; | |
6372 | } _resultobj = Py_BuildValue("i",_result); | |
6373 | return _resultobj; | |
6374 | } | |
6375 | ||
6376 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6377 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6378 | PyObject * _resultobj; | |
6379 | int _result; | |
6380 | wxJoystick * _arg0; | |
6381 | PyObject * _argo0 = 0; | |
6382 | char *_kwnames[] = { "self", NULL }; | |
6383 | ||
6384 | self = self; | |
6385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6386 | return NULL; | |
6387 | if (_argo0) { | |
6388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6391 | return NULL; | |
6392 | } | |
6393 | } | |
6394 | { | |
6395 | wxPy_BEGIN_ALLOW_THREADS; | |
6396 | _result = (int )wxJoystick_GetUPosition(_arg0); | |
6397 | ||
6398 | wxPy_END_ALLOW_THREADS; | |
6399 | } _resultobj = Py_BuildValue("i",_result); | |
6400 | return _resultobj; | |
6401 | } | |
6402 | ||
6403 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6404 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6405 | PyObject * _resultobj; | |
6406 | int _result; | |
6407 | wxJoystick * _arg0; | |
6408 | PyObject * _argo0 = 0; | |
6409 | char *_kwnames[] = { "self", NULL }; | |
6410 | ||
6411 | self = self; | |
6412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6413 | return NULL; | |
6414 | if (_argo0) { | |
6415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6418 | return NULL; | |
6419 | } | |
6420 | } | |
6421 | { | |
6422 | wxPy_BEGIN_ALLOW_THREADS; | |
6423 | _result = (int )wxJoystick_GetVPosition(_arg0); | |
6424 | ||
6425 | wxPy_END_ALLOW_THREADS; | |
6426 | } _resultobj = Py_BuildValue("i",_result); | |
6427 | return _resultobj; | |
6428 | } | |
6429 | ||
6430 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6431 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6432 | PyObject * _resultobj; | |
6433 | int _result; | |
6434 | wxJoystick * _arg0; | |
6435 | PyObject * _argo0 = 0; | |
6436 | char *_kwnames[] = { "self", NULL }; | |
6437 | ||
6438 | self = self; | |
6439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6440 | return NULL; | |
6441 | if (_argo0) { | |
6442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6445 | return NULL; | |
6446 | } | |
6447 | } | |
6448 | { | |
6449 | wxPy_BEGIN_ALLOW_THREADS; | |
6450 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); | |
6451 | ||
6452 | wxPy_END_ALLOW_THREADS; | |
6453 | } _resultobj = Py_BuildValue("i",_result); | |
6454 | return _resultobj; | |
6455 | } | |
6456 | ||
6457 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6458 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6459 | PyObject * _resultobj; | |
6460 | wxJoystick * _arg0; | |
6461 | int _arg1; | |
6462 | PyObject * _argo0 = 0; | |
6463 | char *_kwnames[] = { "self","threshold", NULL }; | |
6464 | ||
6465 | self = self; | |
6466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6467 | return NULL; | |
6468 | if (_argo0) { | |
6469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
6472 | return NULL; | |
6473 | } | |
6474 | } | |
6475 | { | |
6476 | wxPy_BEGIN_ALLOW_THREADS; | |
6477 | wxJoystick_SetMovementThreshold(_arg0,_arg1); | |
6478 | ||
6479 | wxPy_END_ALLOW_THREADS; | |
6480 | } Py_INCREF(Py_None); | |
6481 | _resultobj = Py_None; | |
6482 | return _resultobj; | |
6483 | } | |
6484 | ||
6485 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
6486 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6487 | PyObject * _resultobj; | |
6488 | bool _result; | |
6489 | wxJoystick * _arg0; | |
6490 | PyObject * _argo0 = 0; | |
6491 | char *_kwnames[] = { "self", NULL }; | |
6492 | ||
6493 | self = self; | |
6494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
6495 | return NULL; | |
6496 | if (_argo0) { | |
6497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
6500 | return NULL; | |
6501 | } | |
6502 | } | |
6503 | { | |
6504 | wxPy_BEGIN_ALLOW_THREADS; | |
6505 | _result = (bool )wxJoystick_IsOk(_arg0); | |
6506 | ||
6507 | wxPy_END_ALLOW_THREADS; | |
6508 | } _resultobj = Py_BuildValue("i",_result); | |
6509 | return _resultobj; | |
6510 | } | |
6511 | ||
6512 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
6513 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6514 | PyObject * _resultobj; | |
6515 | int _result; | |
6516 | wxJoystick * _arg0; | |
6517 | PyObject * _argo0 = 0; | |
6518 | char *_kwnames[] = { "self", NULL }; | |
6519 | ||
6520 | self = self; | |
6521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
6522 | return NULL; | |
6523 | if (_argo0) { | |
6524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
6527 | return NULL; | |
6528 | } | |
6529 | } | |
6530 | { | |
6531 | wxPy_BEGIN_ALLOW_THREADS; | |
6532 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); | |
6533 | ||
6534 | wxPy_END_ALLOW_THREADS; | |
6535 | } _resultobj = Py_BuildValue("i",_result); | |
6536 | return _resultobj; | |
6537 | } | |
6538 | ||
6539 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
6540 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6541 | PyObject * _resultobj; | |
6542 | int _result; | |
6543 | wxJoystick * _arg0; | |
6544 | PyObject * _argo0 = 0; | |
6545 | char *_kwnames[] = { "self", NULL }; | |
6546 | ||
6547 | self = self; | |
6548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
6549 | return NULL; | |
6550 | if (_argo0) { | |
6551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
6554 | return NULL; | |
6555 | } | |
6556 | } | |
6557 | { | |
6558 | wxPy_BEGIN_ALLOW_THREADS; | |
6559 | _result = (int )wxJoystick_GetManufacturerId(_arg0); | |
6560 | ||
6561 | wxPy_END_ALLOW_THREADS; | |
6562 | } _resultobj = Py_BuildValue("i",_result); | |
6563 | return _resultobj; | |
6564 | } | |
6565 | ||
6566 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
6567 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6568 | PyObject * _resultobj; | |
6569 | int _result; | |
6570 | wxJoystick * _arg0; | |
6571 | PyObject * _argo0 = 0; | |
6572 | char *_kwnames[] = { "self", NULL }; | |
6573 | ||
6574 | self = self; | |
6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
6576 | return NULL; | |
6577 | if (_argo0) { | |
6578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
6581 | return NULL; | |
6582 | } | |
6583 | } | |
6584 | { | |
6585 | wxPy_BEGIN_ALLOW_THREADS; | |
6586 | _result = (int )wxJoystick_GetProductId(_arg0); | |
6587 | ||
6588 | wxPy_END_ALLOW_THREADS; | |
6589 | } _resultobj = Py_BuildValue("i",_result); | |
6590 | return _resultobj; | |
6591 | } | |
6592 | ||
6593 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
6594 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6595 | PyObject * _resultobj; | |
6596 | wxString * _result; | |
6597 | wxJoystick * _arg0; | |
6598 | PyObject * _argo0 = 0; | |
6599 | char *_kwnames[] = { "self", NULL }; | |
6600 | ||
6601 | self = self; | |
6602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
6603 | return NULL; | |
6604 | if (_argo0) { | |
6605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
6608 | return NULL; | |
6609 | } | |
6610 | } | |
6611 | { | |
6612 | wxPy_BEGIN_ALLOW_THREADS; | |
6613 | _result = new wxString (wxJoystick_GetProductName(_arg0)); | |
6614 | ||
6615 | wxPy_END_ALLOW_THREADS; | |
6616 | }{ | |
6617 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6618 | } | |
6619 | { | |
6620 | delete _result; | |
6621 | } | |
6622 | return _resultobj; | |
6623 | } | |
6624 | ||
6625 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
6626 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6627 | PyObject * _resultobj; | |
6628 | int _result; | |
6629 | wxJoystick * _arg0; | |
6630 | PyObject * _argo0 = 0; | |
6631 | char *_kwnames[] = { "self", NULL }; | |
6632 | ||
6633 | self = self; | |
6634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
6635 | return NULL; | |
6636 | if (_argo0) { | |
6637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
6640 | return NULL; | |
6641 | } | |
6642 | } | |
6643 | { | |
6644 | wxPy_BEGIN_ALLOW_THREADS; | |
6645 | _result = (int )wxJoystick_GetXMin(_arg0); | |
6646 | ||
6647 | wxPy_END_ALLOW_THREADS; | |
6648 | } _resultobj = Py_BuildValue("i",_result); | |
6649 | return _resultobj; | |
6650 | } | |
6651 | ||
6652 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
6653 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6654 | PyObject * _resultobj; | |
6655 | int _result; | |
6656 | wxJoystick * _arg0; | |
6657 | PyObject * _argo0 = 0; | |
6658 | char *_kwnames[] = { "self", NULL }; | |
6659 | ||
6660 | self = self; | |
6661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
6662 | return NULL; | |
6663 | if (_argo0) { | |
6664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
6667 | return NULL; | |
6668 | } | |
6669 | } | |
6670 | { | |
6671 | wxPy_BEGIN_ALLOW_THREADS; | |
6672 | _result = (int )wxJoystick_GetYMin(_arg0); | |
6673 | ||
6674 | wxPy_END_ALLOW_THREADS; | |
6675 | } _resultobj = Py_BuildValue("i",_result); | |
6676 | return _resultobj; | |
6677 | } | |
6678 | ||
6679 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
6680 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6681 | PyObject * _resultobj; | |
6682 | int _result; | |
6683 | wxJoystick * _arg0; | |
6684 | PyObject * _argo0 = 0; | |
6685 | char *_kwnames[] = { "self", NULL }; | |
6686 | ||
6687 | self = self; | |
6688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
6689 | return NULL; | |
6690 | if (_argo0) { | |
6691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
6694 | return NULL; | |
6695 | } | |
6696 | } | |
6697 | { | |
6698 | wxPy_BEGIN_ALLOW_THREADS; | |
6699 | _result = (int )wxJoystick_GetZMin(_arg0); | |
6700 | ||
6701 | wxPy_END_ALLOW_THREADS; | |
6702 | } _resultobj = Py_BuildValue("i",_result); | |
6703 | return _resultobj; | |
6704 | } | |
6705 | ||
6706 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
6707 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6708 | PyObject * _resultobj; | |
6709 | int _result; | |
6710 | wxJoystick * _arg0; | |
6711 | PyObject * _argo0 = 0; | |
6712 | char *_kwnames[] = { "self", NULL }; | |
6713 | ||
6714 | self = self; | |
6715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
6716 | return NULL; | |
6717 | if (_argo0) { | |
6718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
6721 | return NULL; | |
6722 | } | |
6723 | } | |
6724 | { | |
6725 | wxPy_BEGIN_ALLOW_THREADS; | |
6726 | _result = (int )wxJoystick_GetXMax(_arg0); | |
6727 | ||
6728 | wxPy_END_ALLOW_THREADS; | |
6729 | } _resultobj = Py_BuildValue("i",_result); | |
6730 | return _resultobj; | |
6731 | } | |
6732 | ||
6733 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
6734 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6735 | PyObject * _resultobj; | |
6736 | int _result; | |
6737 | wxJoystick * _arg0; | |
6738 | PyObject * _argo0 = 0; | |
6739 | char *_kwnames[] = { "self", NULL }; | |
6740 | ||
6741 | self = self; | |
6742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
6743 | return NULL; | |
6744 | if (_argo0) { | |
6745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
6748 | return NULL; | |
6749 | } | |
6750 | } | |
6751 | { | |
6752 | wxPy_BEGIN_ALLOW_THREADS; | |
6753 | _result = (int )wxJoystick_GetYMax(_arg0); | |
6754 | ||
6755 | wxPy_END_ALLOW_THREADS; | |
6756 | } _resultobj = Py_BuildValue("i",_result); | |
6757 | return _resultobj; | |
6758 | } | |
6759 | ||
6760 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
6761 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6762 | PyObject * _resultobj; | |
6763 | int _result; | |
6764 | wxJoystick * _arg0; | |
6765 | PyObject * _argo0 = 0; | |
6766 | char *_kwnames[] = { "self", NULL }; | |
6767 | ||
6768 | self = self; | |
6769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
6770 | return NULL; | |
6771 | if (_argo0) { | |
6772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
6775 | return NULL; | |
6776 | } | |
6777 | } | |
6778 | { | |
6779 | wxPy_BEGIN_ALLOW_THREADS; | |
6780 | _result = (int )wxJoystick_GetZMax(_arg0); | |
6781 | ||
6782 | wxPy_END_ALLOW_THREADS; | |
6783 | } _resultobj = Py_BuildValue("i",_result); | |
6784 | return _resultobj; | |
6785 | } | |
6786 | ||
6787 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
6788 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6789 | PyObject * _resultobj; | |
6790 | int _result; | |
6791 | wxJoystick * _arg0; | |
6792 | PyObject * _argo0 = 0; | |
6793 | char *_kwnames[] = { "self", NULL }; | |
6794 | ||
6795 | self = self; | |
6796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
6797 | return NULL; | |
6798 | if (_argo0) { | |
6799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
6802 | return NULL; | |
6803 | } | |
6804 | } | |
6805 | { | |
6806 | wxPy_BEGIN_ALLOW_THREADS; | |
6807 | _result = (int )wxJoystick_GetNumberButtons(_arg0); | |
6808 | ||
6809 | wxPy_END_ALLOW_THREADS; | |
6810 | } _resultobj = Py_BuildValue("i",_result); | |
6811 | return _resultobj; | |
6812 | } | |
6813 | ||
6814 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
6815 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6816 | PyObject * _resultobj; | |
6817 | int _result; | |
6818 | wxJoystick * _arg0; | |
6819 | PyObject * _argo0 = 0; | |
6820 | char *_kwnames[] = { "self", NULL }; | |
6821 | ||
6822 | self = self; | |
6823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
6824 | return NULL; | |
6825 | if (_argo0) { | |
6826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
6829 | return NULL; | |
6830 | } | |
6831 | } | |
6832 | { | |
6833 | wxPy_BEGIN_ALLOW_THREADS; | |
6834 | _result = (int )wxJoystick_GetNumberAxes(_arg0); | |
6835 | ||
6836 | wxPy_END_ALLOW_THREADS; | |
6837 | } _resultobj = Py_BuildValue("i",_result); | |
6838 | return _resultobj; | |
6839 | } | |
6840 | ||
6841 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
6842 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6843 | PyObject * _resultobj; | |
6844 | int _result; | |
6845 | wxJoystick * _arg0; | |
6846 | PyObject * _argo0 = 0; | |
6847 | char *_kwnames[] = { "self", NULL }; | |
6848 | ||
6849 | self = self; | |
6850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
6851 | return NULL; | |
6852 | if (_argo0) { | |
6853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
6856 | return NULL; | |
6857 | } | |
6858 | } | |
6859 | { | |
6860 | wxPy_BEGIN_ALLOW_THREADS; | |
6861 | _result = (int )wxJoystick_GetMaxButtons(_arg0); | |
6862 | ||
6863 | wxPy_END_ALLOW_THREADS; | |
6864 | } _resultobj = Py_BuildValue("i",_result); | |
6865 | return _resultobj; | |
6866 | } | |
6867 | ||
6868 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
6869 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6870 | PyObject * _resultobj; | |
6871 | int _result; | |
6872 | wxJoystick * _arg0; | |
6873 | PyObject * _argo0 = 0; | |
6874 | char *_kwnames[] = { "self", NULL }; | |
6875 | ||
6876 | self = self; | |
6877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
6878 | return NULL; | |
6879 | if (_argo0) { | |
6880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
6883 | return NULL; | |
6884 | } | |
6885 | } | |
6886 | { | |
6887 | wxPy_BEGIN_ALLOW_THREADS; | |
6888 | _result = (int )wxJoystick_GetMaxAxes(_arg0); | |
6889 | ||
6890 | wxPy_END_ALLOW_THREADS; | |
6891 | } _resultobj = Py_BuildValue("i",_result); | |
6892 | return _resultobj; | |
6893 | } | |
6894 | ||
6895 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
6896 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6897 | PyObject * _resultobj; | |
6898 | int _result; | |
6899 | wxJoystick * _arg0; | |
6900 | PyObject * _argo0 = 0; | |
6901 | char *_kwnames[] = { "self", NULL }; | |
6902 | ||
6903 | self = self; | |
6904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
6905 | return NULL; | |
6906 | if (_argo0) { | |
6907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
6910 | return NULL; | |
6911 | } | |
6912 | } | |
6913 | { | |
6914 | wxPy_BEGIN_ALLOW_THREADS; | |
6915 | _result = (int )wxJoystick_GetPollingMin(_arg0); | |
6916 | ||
6917 | wxPy_END_ALLOW_THREADS; | |
6918 | } _resultobj = Py_BuildValue("i",_result); | |
6919 | return _resultobj; | |
6920 | } | |
6921 | ||
6922 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
6923 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6924 | PyObject * _resultobj; | |
6925 | int _result; | |
6926 | wxJoystick * _arg0; | |
6927 | PyObject * _argo0 = 0; | |
6928 | char *_kwnames[] = { "self", NULL }; | |
6929 | ||
6930 | self = self; | |
6931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
6932 | return NULL; | |
6933 | if (_argo0) { | |
6934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
6937 | return NULL; | |
6938 | } | |
6939 | } | |
6940 | { | |
6941 | wxPy_BEGIN_ALLOW_THREADS; | |
6942 | _result = (int )wxJoystick_GetPollingMax(_arg0); | |
6943 | ||
6944 | wxPy_END_ALLOW_THREADS; | |
6945 | } _resultobj = Py_BuildValue("i",_result); | |
6946 | return _resultobj; | |
6947 | } | |
6948 | ||
6949 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
6950 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6951 | PyObject * _resultobj; | |
6952 | int _result; | |
6953 | wxJoystick * _arg0; | |
6954 | PyObject * _argo0 = 0; | |
6955 | char *_kwnames[] = { "self", NULL }; | |
6956 | ||
6957 | self = self; | |
6958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
6959 | return NULL; | |
6960 | if (_argo0) { | |
6961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
6964 | return NULL; | |
6965 | } | |
6966 | } | |
6967 | { | |
6968 | wxPy_BEGIN_ALLOW_THREADS; | |
6969 | _result = (int )wxJoystick_GetRudderMin(_arg0); | |
6970 | ||
6971 | wxPy_END_ALLOW_THREADS; | |
6972 | } _resultobj = Py_BuildValue("i",_result); | |
6973 | return _resultobj; | |
6974 | } | |
6975 | ||
6976 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
6977 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6978 | PyObject * _resultobj; | |
6979 | int _result; | |
6980 | wxJoystick * _arg0; | |
6981 | PyObject * _argo0 = 0; | |
6982 | char *_kwnames[] = { "self", NULL }; | |
6983 | ||
6984 | self = self; | |
6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
6986 | return NULL; | |
6987 | if (_argo0) { | |
6988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
6991 | return NULL; | |
6992 | } | |
6993 | } | |
6994 | { | |
6995 | wxPy_BEGIN_ALLOW_THREADS; | |
6996 | _result = (int )wxJoystick_GetRudderMax(_arg0); | |
6997 | ||
6998 | wxPy_END_ALLOW_THREADS; | |
6999 | } _resultobj = Py_BuildValue("i",_result); | |
7000 | return _resultobj; | |
7001 | } | |
7002 | ||
7003 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7004 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7005 | PyObject * _resultobj; | |
7006 | int _result; | |
7007 | wxJoystick * _arg0; | |
7008 | PyObject * _argo0 = 0; | |
7009 | char *_kwnames[] = { "self", NULL }; | |
7010 | ||
7011 | self = self; | |
7012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7013 | return NULL; | |
7014 | if (_argo0) { | |
7015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7018 | return NULL; | |
7019 | } | |
7020 | } | |
7021 | { | |
7022 | wxPy_BEGIN_ALLOW_THREADS; | |
7023 | _result = (int )wxJoystick_GetUMin(_arg0); | |
7024 | ||
7025 | wxPy_END_ALLOW_THREADS; | |
7026 | } _resultobj = Py_BuildValue("i",_result); | |
7027 | return _resultobj; | |
7028 | } | |
7029 | ||
7030 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7031 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7032 | PyObject * _resultobj; | |
7033 | int _result; | |
7034 | wxJoystick * _arg0; | |
7035 | PyObject * _argo0 = 0; | |
7036 | char *_kwnames[] = { "self", NULL }; | |
7037 | ||
7038 | self = self; | |
7039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7040 | return NULL; | |
7041 | if (_argo0) { | |
7042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7045 | return NULL; | |
7046 | } | |
7047 | } | |
7048 | { | |
7049 | wxPy_BEGIN_ALLOW_THREADS; | |
7050 | _result = (int )wxJoystick_GetUMax(_arg0); | |
7051 | ||
7052 | wxPy_END_ALLOW_THREADS; | |
7053 | } _resultobj = Py_BuildValue("i",_result); | |
7054 | return _resultobj; | |
7055 | } | |
7056 | ||
7057 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7058 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7059 | PyObject * _resultobj; | |
7060 | int _result; | |
7061 | wxJoystick * _arg0; | |
7062 | PyObject * _argo0 = 0; | |
7063 | char *_kwnames[] = { "self", NULL }; | |
7064 | ||
7065 | self = self; | |
7066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7067 | return NULL; | |
7068 | if (_argo0) { | |
7069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7072 | return NULL; | |
7073 | } | |
7074 | } | |
7075 | { | |
7076 | wxPy_BEGIN_ALLOW_THREADS; | |
7077 | _result = (int )wxJoystick_GetVMin(_arg0); | |
7078 | ||
7079 | wxPy_END_ALLOW_THREADS; | |
7080 | } _resultobj = Py_BuildValue("i",_result); | |
7081 | return _resultobj; | |
7082 | } | |
7083 | ||
7084 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7085 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7086 | PyObject * _resultobj; | |
7087 | int _result; | |
7088 | wxJoystick * _arg0; | |
7089 | PyObject * _argo0 = 0; | |
7090 | char *_kwnames[] = { "self", NULL }; | |
7091 | ||
7092 | self = self; | |
7093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7094 | return NULL; | |
7095 | if (_argo0) { | |
7096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7099 | return NULL; | |
7100 | } | |
7101 | } | |
7102 | { | |
7103 | wxPy_BEGIN_ALLOW_THREADS; | |
7104 | _result = (int )wxJoystick_GetVMax(_arg0); | |
7105 | ||
7106 | wxPy_END_ALLOW_THREADS; | |
7107 | } _resultobj = Py_BuildValue("i",_result); | |
7108 | return _resultobj; | |
7109 | } | |
7110 | ||
7111 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7112 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7113 | PyObject * _resultobj; | |
7114 | bool _result; | |
7115 | wxJoystick * _arg0; | |
7116 | PyObject * _argo0 = 0; | |
7117 | char *_kwnames[] = { "self", NULL }; | |
7118 | ||
7119 | self = self; | |
7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7121 | return NULL; | |
7122 | if (_argo0) { | |
7123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7126 | return NULL; | |
7127 | } | |
7128 | } | |
7129 | { | |
7130 | wxPy_BEGIN_ALLOW_THREADS; | |
7131 | _result = (bool )wxJoystick_HasRudder(_arg0); | |
7132 | ||
7133 | wxPy_END_ALLOW_THREADS; | |
7134 | } _resultobj = Py_BuildValue("i",_result); | |
7135 | return _resultobj; | |
7136 | } | |
7137 | ||
7138 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7139 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7140 | PyObject * _resultobj; | |
7141 | bool _result; | |
7142 | wxJoystick * _arg0; | |
7143 | PyObject * _argo0 = 0; | |
7144 | char *_kwnames[] = { "self", NULL }; | |
7145 | ||
7146 | self = self; | |
7147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7148 | return NULL; | |
7149 | if (_argo0) { | |
7150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7153 | return NULL; | |
7154 | } | |
7155 | } | |
7156 | { | |
7157 | wxPy_BEGIN_ALLOW_THREADS; | |
7158 | _result = (bool )wxJoystick_HasZ(_arg0); | |
7159 | ||
7160 | wxPy_END_ALLOW_THREADS; | |
7161 | } _resultobj = Py_BuildValue("i",_result); | |
7162 | return _resultobj; | |
7163 | } | |
7164 | ||
7165 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7166 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7167 | PyObject * _resultobj; | |
7168 | bool _result; | |
7169 | wxJoystick * _arg0; | |
7170 | PyObject * _argo0 = 0; | |
7171 | char *_kwnames[] = { "self", NULL }; | |
7172 | ||
7173 | self = self; | |
7174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7175 | return NULL; | |
7176 | if (_argo0) { | |
7177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7180 | return NULL; | |
7181 | } | |
7182 | } | |
7183 | { | |
7184 | wxPy_BEGIN_ALLOW_THREADS; | |
7185 | _result = (bool )wxJoystick_HasU(_arg0); | |
7186 | ||
7187 | wxPy_END_ALLOW_THREADS; | |
7188 | } _resultobj = Py_BuildValue("i",_result); | |
7189 | return _resultobj; | |
7190 | } | |
7191 | ||
7192 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7193 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7194 | PyObject * _resultobj; | |
7195 | bool _result; | |
7196 | wxJoystick * _arg0; | |
7197 | PyObject * _argo0 = 0; | |
7198 | char *_kwnames[] = { "self", NULL }; | |
7199 | ||
7200 | self = self; | |
7201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7202 | return NULL; | |
7203 | if (_argo0) { | |
7204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7207 | return NULL; | |
7208 | } | |
7209 | } | |
7210 | { | |
7211 | wxPy_BEGIN_ALLOW_THREADS; | |
7212 | _result = (bool )wxJoystick_HasV(_arg0); | |
7213 | ||
7214 | wxPy_END_ALLOW_THREADS; | |
7215 | } _resultobj = Py_BuildValue("i",_result); | |
7216 | return _resultobj; | |
7217 | } | |
7218 | ||
7219 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7220 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7221 | PyObject * _resultobj; | |
7222 | bool _result; | |
7223 | wxJoystick * _arg0; | |
7224 | PyObject * _argo0 = 0; | |
7225 | char *_kwnames[] = { "self", NULL }; | |
7226 | ||
7227 | self = self; | |
7228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7229 | return NULL; | |
7230 | if (_argo0) { | |
7231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7234 | return NULL; | |
7235 | } | |
7236 | } | |
7237 | { | |
7238 | wxPy_BEGIN_ALLOW_THREADS; | |
7239 | _result = (bool )wxJoystick_HasPOV(_arg0); | |
7240 | ||
7241 | wxPy_END_ALLOW_THREADS; | |
7242 | } _resultobj = Py_BuildValue("i",_result); | |
7243 | return _resultobj; | |
7244 | } | |
7245 | ||
7246 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7247 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7248 | PyObject * _resultobj; | |
7249 | bool _result; | |
7250 | wxJoystick * _arg0; | |
7251 | PyObject * _argo0 = 0; | |
7252 | char *_kwnames[] = { "self", NULL }; | |
7253 | ||
7254 | self = self; | |
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7256 | return NULL; | |
7257 | if (_argo0) { | |
7258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7261 | return NULL; | |
7262 | } | |
7263 | } | |
7264 | { | |
7265 | wxPy_BEGIN_ALLOW_THREADS; | |
7266 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); | |
7267 | ||
7268 | wxPy_END_ALLOW_THREADS; | |
7269 | } _resultobj = Py_BuildValue("i",_result); | |
7270 | return _resultobj; | |
7271 | } | |
7272 | ||
7273 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7274 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7275 | PyObject * _resultobj; | |
7276 | bool _result; | |
7277 | wxJoystick * _arg0; | |
7278 | PyObject * _argo0 = 0; | |
7279 | char *_kwnames[] = { "self", NULL }; | |
7280 | ||
7281 | self = self; | |
7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7283 | return NULL; | |
7284 | if (_argo0) { | |
7285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7288 | return NULL; | |
7289 | } | |
7290 | } | |
7291 | { | |
7292 | wxPy_BEGIN_ALLOW_THREADS; | |
7293 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); | |
7294 | ||
7295 | wxPy_END_ALLOW_THREADS; | |
7296 | } _resultobj = Py_BuildValue("i",_result); | |
7297 | return _resultobj; | |
7298 | } | |
7299 | ||
7300 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7301 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7302 | PyObject * _resultobj; | |
7303 | bool _result; | |
7304 | wxJoystick * _arg0; | |
7305 | wxWindow * _arg1; | |
7306 | int _arg2 = (int ) 0; | |
7307 | PyObject * _argo0 = 0; | |
7308 | PyObject * _argo1 = 0; | |
7309 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7310 | ||
7311 | self = self; | |
7312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7313 | return NULL; | |
7314 | if (_argo0) { | |
7315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7318 | return NULL; | |
7319 | } | |
7320 | } | |
7321 | if (_argo1) { | |
7322 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7323 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7325 | return NULL; | |
7326 | } | |
7327 | } | |
7328 | { | |
7329 | wxPy_BEGIN_ALLOW_THREADS; | |
7330 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); | |
7331 | ||
7332 | wxPy_END_ALLOW_THREADS; | |
7333 | } _resultobj = Py_BuildValue("i",_result); | |
7334 | return _resultobj; | |
7335 | } | |
7336 | ||
7337 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7338 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7339 | PyObject * _resultobj; | |
7340 | bool _result; | |
7341 | wxJoystick * _arg0; | |
7342 | PyObject * _argo0 = 0; | |
7343 | char *_kwnames[] = { "self", NULL }; | |
7344 | ||
7345 | self = self; | |
7346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7347 | return NULL; | |
7348 | if (_argo0) { | |
7349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7352 | return NULL; | |
7353 | } | |
7354 | } | |
7355 | { | |
7356 | wxPy_BEGIN_ALLOW_THREADS; | |
7357 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); | |
7358 | ||
7359 | wxPy_END_ALLOW_THREADS; | |
7360 | } _resultobj = Py_BuildValue("i",_result); | |
7361 | return _resultobj; | |
7362 | } | |
7363 | ||
7364 | static void *SwigwxWaveTowxObject(void *ptr) { | |
7365 | wxWave *src; | |
7366 | wxObject *dest; | |
7367 | src = (wxWave *) ptr; | |
7368 | dest = (wxObject *) src; | |
7369 | return (void *) dest; | |
7370 | } | |
7371 | ||
7372 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7373 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7374 | PyObject * _resultobj; | |
7375 | wxWave * _result; | |
7376 | wxString * _arg0; | |
7377 | bool _arg1 = (bool ) FALSE; | |
7378 | PyObject * _obj0 = 0; | |
7379 | int tempbool1 = (int) FALSE; | |
7380 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7381 | char _ptemp[128]; | |
7382 | ||
7383 | self = self; | |
7384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7385 | return NULL; | |
7386 | { | |
7387 | #if PYTHON_API_VERSION >= 1009 | |
7388 | char* tmpPtr; int tmpSize; | |
7389 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7390 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7391 | return NULL; | |
7392 | } | |
7393 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
7394 | return NULL; | |
7395 | _arg0 = new wxString(tmpPtr, tmpSize); | |
7396 | #else | |
7397 | if (!PyString_Check(_obj0)) { | |
7398 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7399 | return NULL; | |
7400 | } | |
7401 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
7402 | #endif | |
7403 | } | |
7404 | _arg1 = (bool ) tempbool1; | |
7405 | { | |
7406 | wxPy_BEGIN_ALLOW_THREADS; | |
7407 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); | |
7408 | ||
7409 | wxPy_END_ALLOW_THREADS; | |
7410 | } if (_result) { | |
7411 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7412 | _resultobj = Py_BuildValue("s",_ptemp); | |
7413 | } else { | |
7414 | Py_INCREF(Py_None); | |
7415 | _resultobj = Py_None; | |
7416 | } | |
7417 | { | |
7418 | if (_obj0) | |
7419 | delete _arg0; | |
7420 | } | |
7421 | return _resultobj; | |
7422 | } | |
7423 | ||
7424 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7425 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7426 | PyObject * _resultobj; | |
7427 | wxWave * _arg0; | |
7428 | PyObject * _argo0 = 0; | |
7429 | char *_kwnames[] = { "self", NULL }; | |
7430 | ||
7431 | self = self; | |
7432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7433 | return NULL; | |
7434 | if (_argo0) { | |
7435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7438 | return NULL; | |
7439 | } | |
7440 | } | |
7441 | { | |
7442 | wxPy_BEGIN_ALLOW_THREADS; | |
7443 | delete_wxWave(_arg0); | |
7444 | ||
7445 | wxPy_END_ALLOW_THREADS; | |
7446 | } Py_INCREF(Py_None); | |
7447 | _resultobj = Py_None; | |
7448 | return _resultobj; | |
7449 | } | |
7450 | ||
7451 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
7452 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7453 | PyObject * _resultobj; | |
7454 | bool _result; | |
7455 | wxWave * _arg0; | |
7456 | PyObject * _argo0 = 0; | |
7457 | char *_kwnames[] = { "self", NULL }; | |
7458 | ||
7459 | self = self; | |
7460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
7461 | return NULL; | |
7462 | if (_argo0) { | |
7463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
7466 | return NULL; | |
7467 | } | |
7468 | } | |
7469 | { | |
7470 | wxPy_BEGIN_ALLOW_THREADS; | |
7471 | _result = (bool )wxWave_IsOk(_arg0); | |
7472 | ||
7473 | wxPy_END_ALLOW_THREADS; | |
7474 | } _resultobj = Py_BuildValue("i",_result); | |
7475 | return _resultobj; | |
7476 | } | |
7477 | ||
7478 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
7479 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7480 | PyObject * _resultobj; | |
7481 | bool _result; | |
7482 | wxWave * _arg0; | |
7483 | bool _arg1 = (bool ) TRUE; | |
7484 | bool _arg2 = (bool ) FALSE; | |
7485 | PyObject * _argo0 = 0; | |
7486 | int tempbool1 = (int) TRUE; | |
7487 | int tempbool2 = (int) FALSE; | |
7488 | char *_kwnames[] = { "self","async","looped", NULL }; | |
7489 | ||
7490 | self = self; | |
7491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7492 | return NULL; | |
7493 | if (_argo0) { | |
7494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
7497 | return NULL; | |
7498 | } | |
7499 | } | |
7500 | _arg1 = (bool ) tempbool1; | |
7501 | _arg2 = (bool ) tempbool2; | |
7502 | { | |
7503 | wxPy_BEGIN_ALLOW_THREADS; | |
7504 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); | |
7505 | ||
7506 | wxPy_END_ALLOW_THREADS; | |
7507 | } _resultobj = Py_BuildValue("i",_result); | |
7508 | return _resultobj; | |
7509 | } | |
7510 | ||
5c0282d5 RD |
7511 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7512 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7513 | PyObject * _resultobj; | |
7514 | wxFileTypeInfo * _result; | |
7515 | char * _arg0; | |
7516 | char * _arg1; | |
7517 | char * _arg2; | |
7518 | char * _arg3; | |
7519 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
7520 | char _ptemp[128]; | |
7521 | ||
7522 | self = self; | |
7523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
7524 | return NULL; | |
7525 | { | |
7526 | wxPy_BEGIN_ALLOW_THREADS; | |
7527 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); | |
7528 | ||
7529 | wxPy_END_ALLOW_THREADS; | |
7530 | } if (_result) { | |
7531 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7532 | _resultobj = Py_BuildValue("s",_ptemp); | |
7533 | } else { | |
7534 | Py_INCREF(Py_None); | |
7535 | _resultobj = Py_None; | |
7536 | } | |
7537 | return _resultobj; | |
7538 | } | |
7539 | ||
7540 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
7541 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7542 | PyObject * _resultobj; | |
7543 | wxFileTypeInfo * _result; | |
7544 | wxArrayString * _arg0; | |
7545 | PyObject * _obj0 = 0; | |
7546 | char *_kwnames[] = { "sArray", NULL }; | |
7547 | char _ptemp[128]; | |
7548 | ||
7549 | self = self; | |
7550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
7551 | return NULL; | |
7552 | { | |
7553 | if (! PySequence_Check(_obj0)) { | |
7554 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7555 | return NULL; | |
7556 | } | |
7557 | _arg0 = new wxArrayString; | |
7558 | int i, len=PySequence_Length(_obj0); | |
7559 | for (i=0; i<len; i++) { | |
7560 | PyObject* item = PySequence_GetItem(_obj0, i); | |
7561 | PyObject* str = PyObject_Str(item); | |
7562 | _arg0->Add(PyString_AsString(item)); | |
7563 | Py_DECREF(item); | |
7564 | Py_DECREF(str); | |
7565 | } | |
7566 | } | |
7567 | { | |
7568 | wxPy_BEGIN_ALLOW_THREADS; | |
7569 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); | |
7570 | ||
7571 | wxPy_END_ALLOW_THREADS; | |
7572 | } if (_result) { | |
7573 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7574 | _resultobj = Py_BuildValue("s",_ptemp); | |
7575 | } else { | |
7576 | Py_INCREF(Py_None); | |
7577 | _resultobj = Py_None; | |
7578 | } | |
7579 | { | |
7580 | if (_obj0) | |
7581 | delete _arg0; | |
7582 | } | |
7583 | return _resultobj; | |
7584 | } | |
7585 | ||
7586 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
7587 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7588 | PyObject * _resultobj; | |
7589 | wxFileTypeInfo * _result; | |
7590 | char *_kwnames[] = { NULL }; | |
7591 | char _ptemp[128]; | |
7592 | ||
7593 | self = self; | |
7594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
7595 | return NULL; | |
7596 | { | |
7597 | wxPy_BEGIN_ALLOW_THREADS; | |
7598 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); | |
7599 | ||
7600 | wxPy_END_ALLOW_THREADS; | |
7601 | } if (_result) { | |
7602 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7603 | _resultobj = Py_BuildValue("s",_ptemp); | |
7604 | } else { | |
7605 | Py_INCREF(Py_None); | |
7606 | _resultobj = Py_None; | |
7607 | } | |
7608 | return _resultobj; | |
7609 | } | |
7610 | ||
7611 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
7612 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7613 | PyObject * _resultobj; | |
7614 | bool _result; | |
7615 | wxFileTypeInfo * _arg0; | |
7616 | PyObject * _argo0 = 0; | |
7617 | char *_kwnames[] = { "self", NULL }; | |
7618 | ||
7619 | self = self; | |
7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
7621 | return NULL; | |
7622 | if (_argo0) { | |
7623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
7626 | return NULL; | |
7627 | } | |
7628 | } | |
7629 | { | |
7630 | wxPy_BEGIN_ALLOW_THREADS; | |
7631 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); | |
7632 | ||
7633 | wxPy_END_ALLOW_THREADS; | |
7634 | } _resultobj = Py_BuildValue("i",_result); | |
7635 | return _resultobj; | |
7636 | } | |
7637 | ||
7638 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
7639 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7640 | PyObject * _resultobj; | |
7641 | wxFileTypeInfo * _arg0; | |
7642 | wxString * _arg1; | |
7643 | int _arg2 = (int ) 0; | |
7644 | PyObject * _argo0 = 0; | |
7645 | PyObject * _obj1 = 0; | |
7646 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
7647 | ||
7648 | self = self; | |
7649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
7650 | return NULL; | |
7651 | if (_argo0) { | |
7652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
7655 | return NULL; | |
7656 | } | |
7657 | } | |
7658 | { | |
7659 | #if PYTHON_API_VERSION >= 1009 | |
7660 | char* tmpPtr; int tmpSize; | |
7661 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7662 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7663 | return NULL; | |
7664 | } | |
7665 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7666 | return NULL; | |
7667 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7668 | #else | |
7669 | if (!PyString_Check(_obj1)) { | |
7670 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7671 | return NULL; | |
7672 | } | |
7673 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7674 | #endif | |
7675 | } | |
7676 | { | |
7677 | wxPy_BEGIN_ALLOW_THREADS; | |
7678 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); | |
7679 | ||
7680 | wxPy_END_ALLOW_THREADS; | |
7681 | } Py_INCREF(Py_None); | |
7682 | _resultobj = Py_None; | |
7683 | { | |
7684 | if (_obj1) | |
7685 | delete _arg1; | |
7686 | } | |
7687 | return _resultobj; | |
7688 | } | |
7689 | ||
7690 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
7691 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7692 | PyObject * _resultobj; | |
7693 | wxFileTypeInfo * _arg0; | |
7694 | wxString * _arg1; | |
7695 | PyObject * _argo0 = 0; | |
7696 | PyObject * _obj1 = 0; | |
7697 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
7698 | ||
7699 | self = self; | |
7700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
7701 | return NULL; | |
7702 | if (_argo0) { | |
7703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
7706 | return NULL; | |
7707 | } | |
7708 | } | |
7709 | { | |
7710 | #if PYTHON_API_VERSION >= 1009 | |
7711 | char* tmpPtr; int tmpSize; | |
7712 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7713 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7714 | return NULL; | |
7715 | } | |
7716 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7717 | return NULL; | |
7718 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7719 | #else | |
7720 | if (!PyString_Check(_obj1)) { | |
7721 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7722 | return NULL; | |
7723 | } | |
7724 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7725 | #endif | |
7726 | } | |
7727 | { | |
7728 | wxPy_BEGIN_ALLOW_THREADS; | |
7729 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); | |
7730 | ||
7731 | wxPy_END_ALLOW_THREADS; | |
7732 | } Py_INCREF(Py_None); | |
7733 | _resultobj = Py_None; | |
7734 | { | |
7735 | if (_obj1) | |
7736 | delete _arg1; | |
7737 | } | |
7738 | return _resultobj; | |
7739 | } | |
7740 | ||
7741 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
7742 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7743 | PyObject * _resultobj; | |
7744 | wxString * _result; | |
7745 | wxFileTypeInfo * _arg0; | |
7746 | PyObject * _argo0 = 0; | |
7747 | char *_kwnames[] = { "self", NULL }; | |
7748 | ||
7749 | self = self; | |
7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
7751 | return NULL; | |
7752 | if (_argo0) { | |
7753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
7756 | return NULL; | |
7757 | } | |
7758 | } | |
7759 | { | |
7760 | wxPy_BEGIN_ALLOW_THREADS; | |
7761 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); | |
7762 | _result = (wxString *) &_result_ref; | |
7763 | ||
7764 | wxPy_END_ALLOW_THREADS; | |
7765 | }{ | |
7766 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7767 | } | |
7768 | return _resultobj; | |
7769 | } | |
7770 | ||
7771 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
7772 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7773 | PyObject * _resultobj; | |
7774 | wxString * _result; | |
7775 | wxFileTypeInfo * _arg0; | |
7776 | PyObject * _argo0 = 0; | |
7777 | char *_kwnames[] = { "self", NULL }; | |
7778 | ||
7779 | self = self; | |
7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
7781 | return NULL; | |
7782 | if (_argo0) { | |
7783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
7786 | return NULL; | |
7787 | } | |
7788 | } | |
7789 | { | |
7790 | wxPy_BEGIN_ALLOW_THREADS; | |
7791 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); | |
7792 | _result = (wxString *) &_result_ref; | |
7793 | ||
7794 | wxPy_END_ALLOW_THREADS; | |
7795 | }{ | |
7796 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7797 | } | |
7798 | return _resultobj; | |
7799 | } | |
7800 | ||
7801 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
7802 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7803 | PyObject * _resultobj; | |
7804 | wxString * _result; | |
7805 | wxFileTypeInfo * _arg0; | |
7806 | PyObject * _argo0 = 0; | |
7807 | char *_kwnames[] = { "self", NULL }; | |
7808 | ||
7809 | self = self; | |
7810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
7811 | return NULL; | |
7812 | if (_argo0) { | |
7813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
7816 | return NULL; | |
7817 | } | |
7818 | } | |
7819 | { | |
7820 | wxPy_BEGIN_ALLOW_THREADS; | |
7821 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); | |
7822 | _result = (wxString *) &_result_ref; | |
7823 | ||
7824 | wxPy_END_ALLOW_THREADS; | |
7825 | }{ | |
7826 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7827 | } | |
7828 | return _resultobj; | |
7829 | } | |
7830 | ||
7831 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
7832 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7833 | PyObject * _resultobj; | |
7834 | wxString * _result; | |
7835 | wxFileTypeInfo * _arg0; | |
7836 | PyObject * _argo0 = 0; | |
7837 | char *_kwnames[] = { "self", NULL }; | |
7838 | ||
7839 | self = self; | |
7840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
7841 | return NULL; | |
7842 | if (_argo0) { | |
7843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
7846 | return NULL; | |
7847 | } | |
7848 | } | |
7849 | { | |
7850 | wxPy_BEGIN_ALLOW_THREADS; | |
7851 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); | |
7852 | _result = (wxString *) &_result_ref; | |
7853 | ||
7854 | wxPy_END_ALLOW_THREADS; | |
7855 | }{ | |
7856 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7857 | } | |
7858 | return _resultobj; | |
7859 | } | |
7860 | ||
7861 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
7862 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7863 | PyObject * _resultobj; | |
7864 | wxString * _result; | |
7865 | wxFileTypeInfo * _arg0; | |
7866 | PyObject * _argo0 = 0; | |
7867 | char *_kwnames[] = { "self", NULL }; | |
7868 | ||
7869 | self = self; | |
7870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
7871 | return NULL; | |
7872 | if (_argo0) { | |
7873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
7876 | return NULL; | |
7877 | } | |
7878 | } | |
7879 | { | |
7880 | wxPy_BEGIN_ALLOW_THREADS; | |
7881 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); | |
7882 | _result = (wxString *) &_result_ref; | |
7883 | ||
7884 | wxPy_END_ALLOW_THREADS; | |
7885 | }{ | |
7886 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7887 | } | |
7888 | return _resultobj; | |
7889 | } | |
7890 | ||
7891 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
7892 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
7893 | return wxArrayString2PyList_helper(arr); | |
7894 | } | |
7895 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7896 | PyObject * _resultobj; | |
7897 | PyObject * _result; | |
7898 | wxFileTypeInfo * _arg0; | |
7899 | PyObject * _argo0 = 0; | |
7900 | char *_kwnames[] = { "self", NULL }; | |
7901 | ||
7902 | self = self; | |
7903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
7904 | return NULL; | |
7905 | if (_argo0) { | |
7906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
7909 | return NULL; | |
7910 | } | |
7911 | } | |
7912 | { | |
7913 | wxPy_BEGIN_ALLOW_THREADS; | |
7914 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); | |
7915 | ||
7916 | wxPy_END_ALLOW_THREADS; | |
7917 | }{ | |
7918 | _resultobj = _result; | |
7919 | } | |
7920 | return _resultobj; | |
7921 | } | |
7922 | ||
7923 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
7924 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7925 | PyObject * _resultobj; | |
7926 | int _result; | |
7927 | wxFileTypeInfo * _arg0; | |
7928 | PyObject * _argo0 = 0; | |
7929 | char *_kwnames[] = { "self", NULL }; | |
7930 | ||
7931 | self = self; | |
7932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
7933 | return NULL; | |
7934 | if (_argo0) { | |
7935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
7938 | return NULL; | |
7939 | } | |
7940 | } | |
7941 | { | |
7942 | wxPy_BEGIN_ALLOW_THREADS; | |
7943 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); | |
7944 | ||
7945 | wxPy_END_ALLOW_THREADS; | |
7946 | } _resultobj = Py_BuildValue("i",_result); | |
7947 | return _resultobj; | |
7948 | } | |
7949 | ||
7950 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
7951 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7952 | PyObject * _resultobj; | |
7953 | wxString * _result; | |
7954 | wxFileTypeInfo * _arg0; | |
7955 | PyObject * _argo0 = 0; | |
7956 | char *_kwnames[] = { "self", NULL }; | |
7957 | ||
7958 | self = self; | |
7959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
7960 | return NULL; | |
7961 | if (_argo0) { | |
7962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
7965 | return NULL; | |
7966 | } | |
7967 | } | |
7968 | { | |
7969 | wxPy_BEGIN_ALLOW_THREADS; | |
7970 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); | |
7971 | _result = (wxString *) &_result_ref; | |
7972 | ||
7973 | wxPy_END_ALLOW_THREADS; | |
7974 | }{ | |
7975 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7976 | } | |
7977 | return _resultobj; | |
7978 | } | |
7979 | ||
7980 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
7981 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7982 | PyObject * _resultobj; | |
7983 | int _result; | |
7984 | wxFileTypeInfo * _arg0; | |
7985 | PyObject * _argo0 = 0; | |
7986 | char *_kwnames[] = { "self", NULL }; | |
7987 | ||
7988 | self = self; | |
7989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
7990 | return NULL; | |
7991 | if (_argo0) { | |
7992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
7995 | return NULL; | |
7996 | } | |
7997 | } | |
7998 | { | |
7999 | wxPy_BEGIN_ALLOW_THREADS; | |
8000 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); | |
8001 | ||
8002 | wxPy_END_ALLOW_THREADS; | |
8003 | } _resultobj = Py_BuildValue("i",_result); | |
8004 | return _resultobj; | |
8005 | } | |
8006 | ||
8007 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8008 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8009 | PyObject * _resultobj; | |
8010 | wxFileType * _result; | |
8011 | wxFileTypeInfo * _arg0; | |
8012 | PyObject * _argo0 = 0; | |
8013 | char *_kwnames[] = { "ftInfo", NULL }; | |
8014 | char _ptemp[128]; | |
8015 | ||
8016 | self = self; | |
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_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 new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8023 | return NULL; | |
8024 | } | |
8025 | } | |
8026 | { | |
8027 | wxPy_BEGIN_ALLOW_THREADS; | |
8028 | _result = (wxFileType *)new_wxFileType(*_arg0); | |
8029 | ||
8030 | wxPy_END_ALLOW_THREADS; | |
8031 | } if (_result) { | |
8032 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8033 | _resultobj = Py_BuildValue("s",_ptemp); | |
8034 | } else { | |
8035 | Py_INCREF(Py_None); | |
8036 | _resultobj = Py_None; | |
8037 | } | |
8038 | return _resultobj; | |
8039 | } | |
8040 | ||
8041 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8042 | wxString str; | |
8043 | if (self->GetMimeType(&str)) | |
8044 | return PyString_FromString(str.c_str()); | |
8045 | else | |
8046 | RETURN_NONE(); | |
8047 | } | |
8048 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8049 | PyObject * _resultobj; | |
8050 | PyObject * _result; | |
8051 | wxFileType * _arg0; | |
8052 | PyObject * _argo0 = 0; | |
8053 | char *_kwnames[] = { "self", NULL }; | |
8054 | ||
8055 | self = self; | |
8056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8057 | return NULL; | |
8058 | if (_argo0) { | |
8059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8062 | return NULL; | |
8063 | } | |
8064 | } | |
8065 | { | |
8066 | wxPy_BEGIN_ALLOW_THREADS; | |
8067 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); | |
8068 | ||
8069 | wxPy_END_ALLOW_THREADS; | |
8070 | }{ | |
8071 | _resultobj = _result; | |
8072 | } | |
8073 | return _resultobj; | |
8074 | } | |
8075 | ||
8076 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8077 | wxArrayString arr; | |
8078 | if (self->GetMimeTypes(arr)) | |
8079 | return wxArrayString2PyList_helper(arr); | |
8080 | else | |
8081 | RETURN_NONE(); | |
8082 | } | |
8083 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8084 | PyObject * _resultobj; | |
8085 | PyObject * _result; | |
8086 | wxFileType * _arg0; | |
8087 | PyObject * _argo0 = 0; | |
8088 | char *_kwnames[] = { "self", NULL }; | |
8089 | ||
8090 | self = self; | |
8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8092 | return NULL; | |
8093 | if (_argo0) { | |
8094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8097 | return NULL; | |
8098 | } | |
8099 | } | |
8100 | { | |
8101 | wxPy_BEGIN_ALLOW_THREADS; | |
8102 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); | |
8103 | ||
8104 | wxPy_END_ALLOW_THREADS; | |
8105 | }{ | |
8106 | _resultobj = _result; | |
8107 | } | |
8108 | return _resultobj; | |
8109 | } | |
8110 | ||
8111 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8112 | wxArrayString arr; | |
8113 | if (self->GetExtensions(arr)) | |
8114 | return wxArrayString2PyList_helper(arr); | |
8115 | else | |
8116 | RETURN_NONE(); | |
8117 | } | |
8118 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8119 | PyObject * _resultobj; | |
8120 | PyObject * _result; | |
8121 | wxFileType * _arg0; | |
8122 | PyObject * _argo0 = 0; | |
8123 | char *_kwnames[] = { "self", NULL }; | |
8124 | ||
8125 | self = self; | |
8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8127 | return NULL; | |
8128 | if (_argo0) { | |
8129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8132 | return NULL; | |
8133 | } | |
8134 | } | |
8135 | { | |
8136 | wxPy_BEGIN_ALLOW_THREADS; | |
8137 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); | |
8138 | ||
8139 | wxPy_END_ALLOW_THREADS; | |
8140 | }{ | |
8141 | _resultobj = _result; | |
8142 | } | |
8143 | return _resultobj; | |
8144 | } | |
8145 | ||
8146 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8147 | wxIcon icon; | |
8148 | if (self->GetIcon(&icon)) | |
8149 | return new wxIcon(icon); | |
8150 | else | |
8151 | return NULL; | |
8152 | } | |
8153 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8154 | PyObject * _resultobj; | |
8155 | wxIcon * _result; | |
8156 | wxFileType * _arg0; | |
8157 | PyObject * _argo0 = 0; | |
8158 | char *_kwnames[] = { "self", NULL }; | |
8159 | char _ptemp[128]; | |
8160 | ||
8161 | self = self; | |
8162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8163 | return NULL; | |
8164 | if (_argo0) { | |
8165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8168 | return NULL; | |
8169 | } | |
8170 | } | |
8171 | { | |
8172 | wxPy_BEGIN_ALLOW_THREADS; | |
8173 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); | |
8174 | ||
8175 | wxPy_END_ALLOW_THREADS; | |
8176 | } if (_result) { | |
8177 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8178 | _resultobj = Py_BuildValue("s",_ptemp); | |
8179 | } else { | |
8180 | Py_INCREF(Py_None); | |
8181 | _resultobj = Py_None; | |
8182 | } | |
8183 | return _resultobj; | |
8184 | } | |
8185 | ||
8186 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8187 | wxIcon icon; | |
8188 | wxString iconFile; | |
8189 | int iconIndex; | |
8190 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
8191 | wxPyTState* state = wxPyBeginBlockThreads(); | |
8192 | PyObject* tuple = PyTuple_New(3); | |
8193 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8194 | "wxIcon", TRUE)); | |
8195 | PyTuple_SetItem(tuple, 1, PyString_FromString(iconFile.c_str())); | |
8196 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
8197 | wxPyEndBlockThreads(state); | |
8198 | return tuple; | |
8199 | } | |
8200 | else | |
8201 | RETURN_NONE(); | |
8202 | } | |
8203 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8204 | PyObject * _resultobj; | |
8205 | PyObject * _result; | |
8206 | wxFileType * _arg0; | |
8207 | PyObject * _argo0 = 0; | |
8208 | char *_kwnames[] = { "self", NULL }; | |
8209 | ||
8210 | self = self; | |
8211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8212 | return NULL; | |
8213 | if (_argo0) { | |
8214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8217 | return NULL; | |
8218 | } | |
8219 | } | |
8220 | { | |
8221 | wxPy_BEGIN_ALLOW_THREADS; | |
8222 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); | |
8223 | ||
8224 | wxPy_END_ALLOW_THREADS; | |
8225 | }{ | |
8226 | _resultobj = _result; | |
8227 | } | |
8228 | return _resultobj; | |
8229 | } | |
8230 | ||
8231 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8232 | wxString str; | |
8233 | if (self->GetDescription(&str)) | |
8234 | return PyString_FromString(str.c_str()); | |
8235 | else | |
8236 | RETURN_NONE(); | |
8237 | } | |
8238 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8239 | PyObject * _resultobj; | |
8240 | PyObject * _result; | |
8241 | wxFileType * _arg0; | |
8242 | PyObject * _argo0 = 0; | |
8243 | char *_kwnames[] = { "self", NULL }; | |
8244 | ||
8245 | self = self; | |
8246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8247 | return NULL; | |
8248 | if (_argo0) { | |
8249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8252 | return NULL; | |
8253 | } | |
8254 | } | |
8255 | { | |
8256 | wxPy_BEGIN_ALLOW_THREADS; | |
8257 | _result = (PyObject *)wxFileType_GetDescription(_arg0); | |
8258 | ||
8259 | wxPy_END_ALLOW_THREADS; | |
8260 | }{ | |
8261 | _resultobj = _result; | |
8262 | } | |
8263 | return _resultobj; | |
8264 | } | |
8265 | ||
8266 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8267 | wxString str; | |
8268 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
8269 | return PyString_FromString(str.c_str()); | |
8270 | else | |
8271 | RETURN_NONE(); | |
8272 | } | |
8273 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8274 | PyObject * _resultobj; | |
8275 | PyObject * _result; | |
8276 | wxFileType * _arg0; | |
8277 | wxString * _arg1; | |
8278 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8279 | PyObject * _argo0 = 0; | |
8280 | PyObject * _obj1 = 0; | |
8281 | PyObject * _obj2 = 0; | |
8282 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8283 | ||
8284 | self = self; | |
8285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8286 | return NULL; | |
8287 | if (_argo0) { | |
8288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8291 | return NULL; | |
8292 | } | |
8293 | } | |
8294 | { | |
8295 | #if PYTHON_API_VERSION >= 1009 | |
8296 | char* tmpPtr; int tmpSize; | |
8297 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8298 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8299 | return NULL; | |
8300 | } | |
8301 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8302 | return NULL; | |
8303 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8304 | #else | |
8305 | if (!PyString_Check(_obj1)) { | |
8306 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8307 | return NULL; | |
8308 | } | |
8309 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8310 | #endif | |
8311 | } | |
8312 | if (_obj2) | |
8313 | { | |
8314 | #if PYTHON_API_VERSION >= 1009 | |
8315 | char* tmpPtr; int tmpSize; | |
8316 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8317 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8318 | return NULL; | |
8319 | } | |
8320 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8321 | return NULL; | |
8322 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8323 | #else | |
8324 | if (!PyString_Check(_obj2)) { | |
8325 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8326 | return NULL; | |
8327 | } | |
8328 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8329 | #endif | |
8330 | } | |
8331 | { | |
8332 | wxPy_BEGIN_ALLOW_THREADS; | |
8333 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); | |
8334 | ||
8335 | wxPy_END_ALLOW_THREADS; | |
8336 | }{ | |
8337 | _resultobj = _result; | |
8338 | } | |
8339 | { | |
8340 | if (_obj1) | |
8341 | delete _arg1; | |
8342 | } | |
8343 | { | |
8344 | if (_obj2) | |
8345 | delete _arg2; | |
8346 | } | |
8347 | return _resultobj; | |
8348 | } | |
8349 | ||
8350 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8351 | wxString str; | |
8352 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
8353 | return PyString_FromString(str.c_str()); | |
8354 | else | |
8355 | RETURN_NONE(); | |
8356 | } | |
8357 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8358 | PyObject * _resultobj; | |
8359 | PyObject * _result; | |
8360 | wxFileType * _arg0; | |
8361 | wxString * _arg1; | |
8362 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8363 | PyObject * _argo0 = 0; | |
8364 | PyObject * _obj1 = 0; | |
8365 | PyObject * _obj2 = 0; | |
8366 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8367 | ||
8368 | self = self; | |
8369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8370 | return NULL; | |
8371 | if (_argo0) { | |
8372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8375 | return NULL; | |
8376 | } | |
8377 | } | |
8378 | { | |
8379 | #if PYTHON_API_VERSION >= 1009 | |
8380 | char* tmpPtr; int tmpSize; | |
8381 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8382 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8383 | return NULL; | |
8384 | } | |
8385 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8386 | return NULL; | |
8387 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8388 | #else | |
8389 | if (!PyString_Check(_obj1)) { | |
8390 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8391 | return NULL; | |
8392 | } | |
8393 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8394 | #endif | |
8395 | } | |
8396 | if (_obj2) | |
8397 | { | |
8398 | #if PYTHON_API_VERSION >= 1009 | |
8399 | char* tmpPtr; int tmpSize; | |
8400 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8401 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8402 | return NULL; | |
8403 | } | |
8404 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8405 | return NULL; | |
8406 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8407 | #else | |
8408 | if (!PyString_Check(_obj2)) { | |
8409 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8410 | return NULL; | |
8411 | } | |
8412 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8413 | #endif | |
8414 | } | |
8415 | { | |
8416 | wxPy_BEGIN_ALLOW_THREADS; | |
8417 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); | |
8418 | ||
8419 | wxPy_END_ALLOW_THREADS; | |
8420 | }{ | |
8421 | _resultobj = _result; | |
8422 | } | |
8423 | { | |
8424 | if (_obj1) | |
8425 | delete _arg1; | |
8426 | } | |
8427 | { | |
8428 | if (_obj2) | |
8429 | delete _arg2; | |
8430 | } | |
8431 | return _resultobj; | |
8432 | } | |
8433 | ||
8434 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8435 | wxArrayString verbs; | |
8436 | wxArrayString commands; | |
8437 | if (self->GetAllCommands(&verbs, &commands, | |
8438 | wxFileType::MessageParameters(filename, mimetype))) { | |
8439 | wxPyTState* state = wxPyBeginBlockThreads(); | |
8440 | PyObject* tuple = PyTuple_New(2); | |
8441 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8442 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
8443 | wxPyEndBlockThreads(state); | |
8444 | return tuple; | |
8445 | } | |
8446 | else | |
8447 | RETURN_NONE(); | |
8448 | } | |
8449 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8450 | PyObject * _resultobj; | |
8451 | PyObject * _result; | |
8452 | wxFileType * _arg0; | |
8453 | wxString * _arg1; | |
8454 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8455 | PyObject * _argo0 = 0; | |
8456 | PyObject * _obj1 = 0; | |
8457 | PyObject * _obj2 = 0; | |
8458 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8459 | ||
8460 | self = self; | |
8461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8462 | return NULL; | |
8463 | if (_argo0) { | |
8464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
8467 | return NULL; | |
8468 | } | |
8469 | } | |
8470 | { | |
8471 | #if PYTHON_API_VERSION >= 1009 | |
8472 | char* tmpPtr; int tmpSize; | |
8473 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8474 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8475 | return NULL; | |
8476 | } | |
8477 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8478 | return NULL; | |
8479 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8480 | #else | |
8481 | if (!PyString_Check(_obj1)) { | |
8482 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8483 | return NULL; | |
8484 | } | |
8485 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8486 | #endif | |
8487 | } | |
8488 | if (_obj2) | |
8489 | { | |
8490 | #if PYTHON_API_VERSION >= 1009 | |
8491 | char* tmpPtr; int tmpSize; | |
8492 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8493 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8494 | return NULL; | |
8495 | } | |
8496 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8497 | return NULL; | |
8498 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8499 | #else | |
8500 | if (!PyString_Check(_obj2)) { | |
8501 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8502 | return NULL; | |
8503 | } | |
8504 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8505 | #endif | |
8506 | } | |
8507 | { | |
8508 | wxPy_BEGIN_ALLOW_THREADS; | |
8509 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); | |
8510 | ||
8511 | wxPy_END_ALLOW_THREADS; | |
8512 | }{ | |
8513 | _resultobj = _result; | |
8514 | } | |
8515 | { | |
8516 | if (_obj1) | |
8517 | delete _arg1; | |
8518 | } | |
8519 | { | |
8520 | if (_obj2) | |
8521 | delete _arg2; | |
8522 | } | |
8523 | return _resultobj; | |
8524 | } | |
8525 | ||
8526 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
8527 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8528 | PyObject * _resultobj; | |
8529 | bool _result; | |
8530 | wxFileType * _arg0; | |
8531 | wxString * _arg1; | |
8532 | wxString * _arg2; | |
8533 | bool _arg3 = (bool ) TRUE; | |
8534 | PyObject * _argo0 = 0; | |
8535 | PyObject * _obj1 = 0; | |
8536 | PyObject * _obj2 = 0; | |
8537 | int tempbool3 = (int) TRUE; | |
8538 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
8539 | ||
8540 | self = self; | |
8541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
8542 | return NULL; | |
8543 | if (_argo0) { | |
8544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
8547 | return NULL; | |
8548 | } | |
8549 | } | |
8550 | { | |
8551 | #if PYTHON_API_VERSION >= 1009 | |
8552 | char* tmpPtr; int tmpSize; | |
8553 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8554 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8555 | return NULL; | |
8556 | } | |
8557 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8558 | return NULL; | |
8559 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8560 | #else | |
8561 | if (!PyString_Check(_obj1)) { | |
8562 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8563 | return NULL; | |
8564 | } | |
8565 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8566 | #endif | |
8567 | } | |
8568 | { | |
8569 | #if PYTHON_API_VERSION >= 1009 | |
8570 | char* tmpPtr; int tmpSize; | |
8571 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8572 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8573 | return NULL; | |
8574 | } | |
8575 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8576 | return NULL; | |
8577 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8578 | #else | |
8579 | if (!PyString_Check(_obj2)) { | |
8580 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8581 | return NULL; | |
8582 | } | |
8583 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8584 | #endif | |
8585 | } | |
8586 | _arg3 = (bool ) tempbool3; | |
8587 | { | |
8588 | wxPy_BEGIN_ALLOW_THREADS; | |
8589 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); | |
8590 | ||
8591 | wxPy_END_ALLOW_THREADS; | |
8592 | } _resultobj = Py_BuildValue("i",_result); | |
8593 | { | |
8594 | if (_obj1) | |
8595 | delete _arg1; | |
8596 | } | |
8597 | { | |
8598 | if (_obj2) | |
8599 | delete _arg2; | |
8600 | } | |
8601 | return _resultobj; | |
8602 | } | |
8603 | ||
8604 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
8605 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8606 | PyObject * _resultobj; | |
8607 | bool _result; | |
8608 | wxFileType * _arg0; | |
8609 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
8610 | int _arg2 = (int ) 0; | |
8611 | PyObject * _argo0 = 0; | |
8612 | PyObject * _obj1 = 0; | |
8613 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
8614 | ||
8615 | self = self; | |
8616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8617 | return NULL; | |
8618 | if (_argo0) { | |
8619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
8622 | return NULL; | |
8623 | } | |
8624 | } | |
8625 | if (_obj1) | |
8626 | { | |
8627 | #if PYTHON_API_VERSION >= 1009 | |
8628 | char* tmpPtr; int tmpSize; | |
8629 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8630 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8631 | return NULL; | |
8632 | } | |
8633 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8634 | return NULL; | |
8635 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8636 | #else | |
8637 | if (!PyString_Check(_obj1)) { | |
8638 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8639 | return NULL; | |
8640 | } | |
8641 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8642 | #endif | |
8643 | } | |
8644 | { | |
8645 | wxPy_BEGIN_ALLOW_THREADS; | |
8646 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); | |
8647 | ||
8648 | wxPy_END_ALLOW_THREADS; | |
8649 | } _resultobj = Py_BuildValue("i",_result); | |
8650 | { | |
8651 | if (_obj1) | |
8652 | delete _arg1; | |
8653 | } | |
8654 | return _resultobj; | |
8655 | } | |
8656 | ||
8657 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
8658 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8659 | PyObject * _resultobj; | |
8660 | bool _result; | |
8661 | wxFileType * _arg0; | |
8662 | PyObject * _argo0 = 0; | |
8663 | char *_kwnames[] = { "self", NULL }; | |
8664 | ||
8665 | self = self; | |
8666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
8667 | return NULL; | |
8668 | if (_argo0) { | |
8669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
8672 | return NULL; | |
8673 | } | |
8674 | } | |
8675 | { | |
8676 | wxPy_BEGIN_ALLOW_THREADS; | |
8677 | _result = (bool )wxFileType_Unassociate(_arg0); | |
8678 | ||
8679 | wxPy_END_ALLOW_THREADS; | |
8680 | } _resultobj = Py_BuildValue("i",_result); | |
8681 | return _resultobj; | |
8682 | } | |
8683 | ||
8684 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8685 | PyObject * _resultobj; | |
8686 | wxString * _result; | |
8687 | wxString * _arg0; | |
8688 | wxFileType::MessageParameters * _arg1; | |
8689 | PyObject * _obj0 = 0; | |
8690 | PyObject * _argo1 = 0; | |
8691 | char *_kwnames[] = { "command","params", NULL }; | |
8692 | ||
8693 | self = self; | |
8694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
8695 | return NULL; | |
8696 | { | |
8697 | #if PYTHON_API_VERSION >= 1009 | |
8698 | char* tmpPtr; int tmpSize; | |
8699 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
8700 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8701 | return NULL; | |
8702 | } | |
8703 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
8704 | return NULL; | |
8705 | _arg0 = new wxString(tmpPtr, tmpSize); | |
8706 | #else | |
8707 | if (!PyString_Check(_obj0)) { | |
8708 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8709 | return NULL; | |
8710 | } | |
8711 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
8712 | #endif | |
8713 | } | |
8714 | if (_argo1) { | |
8715 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8716 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
8717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
8718 | return NULL; | |
8719 | } | |
8720 | } | |
8721 | { | |
8722 | wxPy_BEGIN_ALLOW_THREADS; | |
8723 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); | |
8724 | ||
8725 | wxPy_END_ALLOW_THREADS; | |
8726 | }{ | |
8727 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8728 | } | |
8729 | { | |
8730 | if (_obj0) | |
8731 | delete _arg0; | |
8732 | } | |
8733 | { | |
8734 | delete _result; | |
8735 | } | |
8736 | return _resultobj; | |
8737 | } | |
8738 | ||
8739 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
8740 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8741 | PyObject * _resultobj; | |
8742 | wxFileType * _arg0; | |
8743 | PyObject * _argo0 = 0; | |
8744 | char *_kwnames[] = { "self", NULL }; | |
8745 | ||
8746 | self = self; | |
8747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
8748 | return NULL; | |
8749 | if (_argo0) { | |
8750 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8751 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
8753 | return NULL; | |
8754 | } | |
8755 | } | |
8756 | { | |
8757 | wxPy_BEGIN_ALLOW_THREADS; | |
8758 | delete_wxFileType(_arg0); | |
8759 | ||
8760 | wxPy_END_ALLOW_THREADS; | |
8761 | } Py_INCREF(Py_None); | |
8762 | _resultobj = Py_None; | |
8763 | return _resultobj; | |
8764 | } | |
8765 | ||
8766 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8767 | PyObject * _resultobj; | |
8768 | bool _result; | |
8769 | wxString * _arg0; | |
8770 | wxString * _arg1; | |
8771 | PyObject * _obj0 = 0; | |
8772 | PyObject * _obj1 = 0; | |
8773 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
8774 | ||
8775 | self = self; | |
8776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
8777 | return NULL; | |
8778 | { | |
8779 | #if PYTHON_API_VERSION >= 1009 | |
8780 | char* tmpPtr; int tmpSize; | |
8781 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
8782 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8783 | return NULL; | |
8784 | } | |
8785 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
8786 | return NULL; | |
8787 | _arg0 = new wxString(tmpPtr, tmpSize); | |
8788 | #else | |
8789 | if (!PyString_Check(_obj0)) { | |
8790 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8791 | return NULL; | |
8792 | } | |
8793 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
8794 | #endif | |
8795 | } | |
8796 | { | |
8797 | #if PYTHON_API_VERSION >= 1009 | |
8798 | char* tmpPtr; int tmpSize; | |
8799 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8800 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8801 | return NULL; | |
8802 | } | |
8803 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8804 | return NULL; | |
8805 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8806 | #else | |
8807 | if (!PyString_Check(_obj1)) { | |
8808 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8809 | return NULL; | |
8810 | } | |
8811 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8812 | #endif | |
8813 | } | |
8814 | { | |
8815 | wxPy_BEGIN_ALLOW_THREADS; | |
8816 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); | |
8817 | ||
8818 | wxPy_END_ALLOW_THREADS; | |
8819 | } _resultobj = Py_BuildValue("i",_result); | |
8820 | { | |
8821 | if (_obj0) | |
8822 | delete _arg0; | |
8823 | } | |
8824 | { | |
8825 | if (_obj1) | |
8826 | delete _arg1; | |
8827 | } | |
8828 | return _resultobj; | |
8829 | } | |
8830 | ||
8831 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
8832 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8833 | PyObject * _resultobj; | |
8834 | wxMimeTypesManager * _result; | |
8835 | char *_kwnames[] = { NULL }; | |
8836 | char _ptemp[128]; | |
8837 | ||
8838 | self = self; | |
8839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
8840 | return NULL; | |
8841 | { | |
8842 | wxPy_BEGIN_ALLOW_THREADS; | |
8843 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); | |
8844 | ||
8845 | wxPy_END_ALLOW_THREADS; | |
8846 | } if (_result) { | |
8847 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
8848 | _resultobj = Py_BuildValue("s",_ptemp); | |
8849 | } else { | |
8850 | Py_INCREF(Py_None); | |
8851 | _resultobj = Py_None; | |
8852 | } | |
8853 | return _resultobj; | |
8854 | } | |
8855 | ||
8856 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
8857 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8858 | PyObject * _resultobj; | |
8859 | wxMimeTypesManager * _arg0; | |
8860 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
8861 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
8862 | PyObject * _argo0 = 0; | |
8863 | PyObject * _obj2 = 0; | |
8864 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
8865 | ||
8866 | self = self; | |
8867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8868 | return NULL; | |
8869 | if (_argo0) { | |
8870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
8872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
8873 | return NULL; | |
8874 | } | |
8875 | } | |
8876 | if (_obj2) | |
8877 | { | |
8878 | #if PYTHON_API_VERSION >= 1009 | |
8879 | char* tmpPtr; int tmpSize; | |
8880 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8881 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8882 | return NULL; | |
8883 | } | |
8884 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8885 | return NULL; | |
8886 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8887 | #else | |
8888 | if (!PyString_Check(_obj2)) { | |
8889 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8890 | return NULL; | |
8891 | } | |
8892 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8893 | #endif | |
8894 | } | |
8895 | { | |
8896 | wxPy_BEGIN_ALLOW_THREADS; | |
8897 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); | |
8898 | ||
8899 | wxPy_END_ALLOW_THREADS; | |
8900 | } Py_INCREF(Py_None); | |
8901 | _resultobj = Py_None; | |
8902 | { | |
8903 | if (_obj2) | |
8904 | delete _arg2; | |
8905 | } | |
8906 | return _resultobj; | |
8907 | } | |
8908 | ||
8909 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
8910 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8911 | PyObject * _resultobj; | |
8912 | wxMimeTypesManager * _arg0; | |
8913 | PyObject * _argo0 = 0; | |
8914 | char *_kwnames[] = { "self", NULL }; | |
8915 | ||
8916 | self = self; | |
8917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
8918 | return NULL; | |
8919 | if (_argo0) { | |
8920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
8922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
8923 | return NULL; | |
8924 | } | |
8925 | } | |
8926 | { | |
8927 | wxPy_BEGIN_ALLOW_THREADS; | |
8928 | wxMimeTypesManager_ClearData(_arg0); | |
8929 | ||
8930 | wxPy_END_ALLOW_THREADS; | |
8931 | } Py_INCREF(Py_None); | |
8932 | _resultobj = Py_None; | |
8933 | return _resultobj; | |
8934 | } | |
8935 | ||
8936 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
8937 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8938 | PyObject * _resultobj; | |
8939 | wxFileType * _result; | |
8940 | wxMimeTypesManager * _arg0; | |
8941 | wxString * _arg1; | |
8942 | PyObject * _argo0 = 0; | |
8943 | PyObject * _obj1 = 0; | |
8944 | char *_kwnames[] = { "self","ext", NULL }; | |
8945 | char _ptemp[128]; | |
8946 | ||
8947 | self = self; | |
8948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
8949 | return NULL; | |
8950 | if (_argo0) { | |
8951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
8953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
8954 | return NULL; | |
8955 | } | |
8956 | } | |
8957 | { | |
8958 | #if PYTHON_API_VERSION >= 1009 | |
8959 | char* tmpPtr; int tmpSize; | |
8960 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8961 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8962 | return NULL; | |
8963 | } | |
8964 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8965 | return NULL; | |
8966 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8967 | #else | |
8968 | if (!PyString_Check(_obj1)) { | |
8969 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8970 | return NULL; | |
8971 | } | |
8972 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8973 | #endif | |
8974 | } | |
8975 | { | |
8976 | wxPy_BEGIN_ALLOW_THREADS; | |
8977 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); | |
8978 | ||
8979 | wxPy_END_ALLOW_THREADS; | |
8980 | } if (_result) { | |
8981 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8982 | _resultobj = Py_BuildValue("s",_ptemp); | |
8983 | } else { | |
8984 | Py_INCREF(Py_None); | |
8985 | _resultobj = Py_None; | |
8986 | } | |
8987 | { | |
8988 | if (_obj1) | |
8989 | delete _arg1; | |
8990 | } | |
8991 | return _resultobj; | |
8992 | } | |
8993 | ||
8994 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
8995 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(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","mimeType", NULL }; | |
9003 | char _ptemp[128]; | |
9004 | ||
9005 | self = self; | |
9006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_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_GetFileTypeFromMimeType. 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_GetFileTypeFromMimeType(_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_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9053 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9054 | PyObject * _resultobj; | |
9055 | bool _result; | |
9056 | wxMimeTypesManager * _arg0; | |
9057 | wxString * _arg1; | |
9058 | bool _arg2 = (bool ) FALSE; | |
9059 | PyObject * _argo0 = 0; | |
9060 | PyObject * _obj1 = 0; | |
9061 | int tempbool2 = (int) FALSE; | |
9062 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9063 | ||
9064 | self = self; | |
9065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9066 | return NULL; | |
9067 | if (_argo0) { | |
9068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9071 | return NULL; | |
9072 | } | |
9073 | } | |
9074 | { | |
9075 | #if PYTHON_API_VERSION >= 1009 | |
9076 | char* tmpPtr; int tmpSize; | |
9077 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9078 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9079 | return NULL; | |
9080 | } | |
9081 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9082 | return NULL; | |
9083 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9084 | #else | |
9085 | if (!PyString_Check(_obj1)) { | |
9086 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9087 | return NULL; | |
9088 | } | |
9089 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9090 | #endif | |
9091 | } | |
9092 | _arg2 = (bool ) tempbool2; | |
9093 | { | |
9094 | wxPy_BEGIN_ALLOW_THREADS; | |
9095 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); | |
9096 | ||
9097 | wxPy_END_ALLOW_THREADS; | |
9098 | } _resultobj = Py_BuildValue("i",_result); | |
9099 | { | |
9100 | if (_obj1) | |
9101 | delete _arg1; | |
9102 | } | |
9103 | return _resultobj; | |
9104 | } | |
9105 | ||
9106 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9107 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9108 | PyObject * _resultobj; | |
9109 | bool _result; | |
9110 | wxMimeTypesManager * _arg0; | |
9111 | wxString * _arg1; | |
9112 | PyObject * _argo0 = 0; | |
9113 | PyObject * _obj1 = 0; | |
9114 | char *_kwnames[] = { "self","filename", NULL }; | |
9115 | ||
9116 | self = self; | |
9117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9118 | return NULL; | |
9119 | if (_argo0) { | |
9120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9123 | return NULL; | |
9124 | } | |
9125 | } | |
9126 | { | |
9127 | #if PYTHON_API_VERSION >= 1009 | |
9128 | char* tmpPtr; int tmpSize; | |
9129 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9130 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9131 | return NULL; | |
9132 | } | |
9133 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9134 | return NULL; | |
9135 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9136 | #else | |
9137 | if (!PyString_Check(_obj1)) { | |
9138 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9139 | return NULL; | |
9140 | } | |
9141 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9142 | #endif | |
9143 | } | |
9144 | { | |
9145 | wxPy_BEGIN_ALLOW_THREADS; | |
9146 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); | |
9147 | ||
9148 | wxPy_END_ALLOW_THREADS; | |
9149 | } _resultobj = Py_BuildValue("i",_result); | |
9150 | { | |
9151 | if (_obj1) | |
9152 | delete _arg1; | |
9153 | } | |
9154 | return _resultobj; | |
9155 | } | |
9156 | ||
9157 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9158 | wxArrayString arr; | |
9159 | self->EnumAllFileTypes(arr); | |
9160 | return wxArrayString2PyList_helper(arr); | |
9161 | } | |
9162 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9163 | PyObject * _resultobj; | |
9164 | PyObject * _result; | |
9165 | wxMimeTypesManager * _arg0; | |
9166 | PyObject * _argo0 = 0; | |
9167 | char *_kwnames[] = { "self", NULL }; | |
9168 | ||
9169 | self = self; | |
9170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9171 | return NULL; | |
9172 | if (_argo0) { | |
9173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9176 | return NULL; | |
9177 | } | |
9178 | } | |
9179 | { | |
9180 | wxPy_BEGIN_ALLOW_THREADS; | |
9181 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); | |
9182 | ||
9183 | wxPy_END_ALLOW_THREADS; | |
9184 | }{ | |
9185 | _resultobj = _result; | |
9186 | } | |
9187 | return _resultobj; | |
9188 | } | |
9189 | ||
9190 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9191 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9192 | PyObject * _resultobj; | |
9193 | wxMimeTypesManager * _arg0; | |
9194 | wxFileTypeInfo * _arg1; | |
9195 | PyObject * _argo0 = 0; | |
9196 | PyObject * _argo1 = 0; | |
9197 | char *_kwnames[] = { "self","ft", NULL }; | |
9198 | ||
9199 | self = self; | |
9200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9201 | return NULL; | |
9202 | if (_argo0) { | |
9203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9206 | return NULL; | |
9207 | } | |
9208 | } | |
9209 | if (_argo1) { | |
9210 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9211 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9213 | return NULL; | |
9214 | } | |
9215 | } | |
9216 | { | |
9217 | wxPy_BEGIN_ALLOW_THREADS; | |
9218 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); | |
9219 | ||
9220 | wxPy_END_ALLOW_THREADS; | |
9221 | } Py_INCREF(Py_None); | |
9222 | _resultobj = Py_None; | |
9223 | return _resultobj; | |
9224 | } | |
9225 | ||
9226 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9227 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9228 | PyObject * _resultobj; | |
9229 | wxFileType * _result; | |
9230 | wxMimeTypesManager * _arg0; | |
9231 | wxFileTypeInfo * _arg1; | |
9232 | PyObject * _argo0 = 0; | |
9233 | PyObject * _argo1 = 0; | |
9234 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9235 | char _ptemp[128]; | |
9236 | ||
9237 | self = self; | |
9238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9239 | return NULL; | |
9240 | if (_argo0) { | |
9241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9244 | return NULL; | |
9245 | } | |
9246 | } | |
9247 | if (_argo1) { | |
9248 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9249 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9251 | return NULL; | |
9252 | } | |
9253 | } | |
9254 | { | |
9255 | wxPy_BEGIN_ALLOW_THREADS; | |
9256 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); | |
9257 | ||
9258 | wxPy_END_ALLOW_THREADS; | |
9259 | } if (_result) { | |
9260 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9261 | _resultobj = Py_BuildValue("s",_ptemp); | |
9262 | } else { | |
9263 | Py_INCREF(Py_None); | |
9264 | _resultobj = Py_None; | |
9265 | } | |
9266 | return _resultobj; | |
9267 | } | |
9268 | ||
9269 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9270 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9271 | PyObject * _resultobj; | |
9272 | bool _result; | |
9273 | wxMimeTypesManager * _arg0; | |
9274 | wxFileType * _arg1; | |
9275 | PyObject * _argo0 = 0; | |
9276 | PyObject * _argo1 = 0; | |
9277 | char *_kwnames[] = { "self","ft", NULL }; | |
9278 | ||
9279 | self = self; | |
9280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9281 | return NULL; | |
9282 | if (_argo0) { | |
9283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9286 | return NULL; | |
9287 | } | |
9288 | } | |
9289 | if (_argo1) { | |
9290 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9291 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9293 | return NULL; | |
9294 | } | |
9295 | } | |
9296 | { | |
9297 | wxPy_BEGIN_ALLOW_THREADS; | |
9298 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); | |
9299 | ||
9300 | wxPy_END_ALLOW_THREADS; | |
9301 | } _resultobj = Py_BuildValue("i",_result); | |
9302 | return _resultobj; | |
9303 | } | |
9304 | ||
9305 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9306 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9307 | PyObject * _resultobj; | |
9308 | wxMimeTypesManager * _arg0; | |
9309 | PyObject * _argo0 = 0; | |
9310 | char *_kwnames[] = { "self", NULL }; | |
9311 | ||
9312 | self = self; | |
9313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9314 | return NULL; | |
9315 | if (_argo0) { | |
9316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9319 | return NULL; | |
9320 | } | |
9321 | } | |
9322 | { | |
9323 | wxPy_BEGIN_ALLOW_THREADS; | |
9324 | delete_wxMimeTypesManager(_arg0); | |
9325 | ||
9326 | wxPy_END_ALLOW_THREADS; | |
9327 | } Py_INCREF(Py_None); | |
9328 | _resultobj = Py_None; | |
9329 | return _resultobj; | |
9330 | } | |
9331 | ||
93283355 RD |
9332 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
9333 | wxFileHistory *src; | |
9334 | wxObject *dest; | |
9335 | src = (wxFileHistory *) ptr; | |
9336 | dest = (wxObject *) src; | |
9337 | return (void *) dest; | |
9338 | } | |
9339 | ||
9340 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
9341 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9342 | PyObject * _resultobj; | |
9343 | wxFileHistory * _result; | |
9344 | int _arg0 = (int ) 9; | |
9345 | char *_kwnames[] = { "maxFiles", NULL }; | |
9346 | char _ptemp[128]; | |
9347 | ||
9348 | self = self; | |
9349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
9350 | return NULL; | |
9351 | { | |
9352 | wxPy_BEGIN_ALLOW_THREADS; | |
9353 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); | |
9354 | ||
9355 | wxPy_END_ALLOW_THREADS; | |
9356 | } if (_result) { | |
9357 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
9358 | _resultobj = Py_BuildValue("s",_ptemp); | |
9359 | } else { | |
9360 | Py_INCREF(Py_None); | |
9361 | _resultobj = Py_None; | |
9362 | } | |
9363 | return _resultobj; | |
9364 | } | |
9365 | ||
9366 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
9367 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9368 | PyObject * _resultobj; | |
9369 | wxFileHistory * _arg0; | |
9370 | PyObject * _argo0 = 0; | |
9371 | char *_kwnames[] = { "self", NULL }; | |
9372 | ||
9373 | self = self; | |
9374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
9375 | return NULL; | |
9376 | if (_argo0) { | |
9377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
9380 | return NULL; | |
9381 | } | |
9382 | } | |
9383 | { | |
9384 | wxPy_BEGIN_ALLOW_THREADS; | |
9385 | delete_wxFileHistory(_arg0); | |
9386 | ||
9387 | wxPy_END_ALLOW_THREADS; | |
9388 | } Py_INCREF(Py_None); | |
9389 | _resultobj = Py_None; | |
9390 | return _resultobj; | |
9391 | } | |
9392 | ||
9393 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
9394 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9395 | PyObject * _resultobj; | |
9396 | wxFileHistory * _arg0; | |
9397 | wxString * _arg1; | |
9398 | PyObject * _argo0 = 0; | |
9399 | PyObject * _obj1 = 0; | |
9400 | char *_kwnames[] = { "self","file", NULL }; | |
9401 | ||
9402 | self = self; | |
9403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
9404 | return NULL; | |
9405 | if (_argo0) { | |
9406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
9409 | return NULL; | |
9410 | } | |
9411 | } | |
9412 | { | |
9413 | #if PYTHON_API_VERSION >= 1009 | |
9414 | char* tmpPtr; int tmpSize; | |
9415 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9416 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9417 | return NULL; | |
9418 | } | |
9419 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9420 | return NULL; | |
9421 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9422 | #else | |
9423 | if (!PyString_Check(_obj1)) { | |
9424 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9425 | return NULL; | |
9426 | } | |
9427 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9428 | #endif | |
9429 | } | |
9430 | { | |
9431 | wxPy_BEGIN_ALLOW_THREADS; | |
9432 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); | |
9433 | ||
9434 | wxPy_END_ALLOW_THREADS; | |
9435 | } Py_INCREF(Py_None); | |
9436 | _resultobj = Py_None; | |
9437 | { | |
9438 | if (_obj1) | |
9439 | delete _arg1; | |
9440 | } | |
9441 | return _resultobj; | |
9442 | } | |
9443 | ||
9444 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
9445 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9446 | PyObject * _resultobj; | |
9447 | wxFileHistory * _arg0; | |
9448 | int _arg1; | |
9449 | PyObject * _argo0 = 0; | |
9450 | char *_kwnames[] = { "self","i", NULL }; | |
9451 | ||
9452 | self = self; | |
9453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
9454 | return NULL; | |
9455 | if (_argo0) { | |
9456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
9459 | return NULL; | |
9460 | } | |
9461 | } | |
9462 | { | |
9463 | wxPy_BEGIN_ALLOW_THREADS; | |
9464 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); | |
9465 | ||
9466 | wxPy_END_ALLOW_THREADS; | |
9467 | } Py_INCREF(Py_None); | |
9468 | _resultobj = Py_None; | |
9469 | return _resultobj; | |
9470 | } | |
9471 | ||
9472 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
9473 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9474 | PyObject * _resultobj; | |
9475 | int _result; | |
9476 | wxFileHistory * _arg0; | |
9477 | PyObject * _argo0 = 0; | |
9478 | char *_kwnames[] = { "self", NULL }; | |
9479 | ||
9480 | self = self; | |
9481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
9482 | return NULL; | |
9483 | if (_argo0) { | |
9484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
9487 | return NULL; | |
9488 | } | |
9489 | } | |
9490 | { | |
9491 | wxPy_BEGIN_ALLOW_THREADS; | |
9492 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); | |
9493 | ||
9494 | wxPy_END_ALLOW_THREADS; | |
9495 | } _resultobj = Py_BuildValue("i",_result); | |
9496 | return _resultobj; | |
9497 | } | |
9498 | ||
9499 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
9500 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9501 | PyObject * _resultobj; | |
9502 | wxFileHistory * _arg0; | |
9503 | wxMenu * _arg1; | |
9504 | PyObject * _argo0 = 0; | |
9505 | PyObject * _argo1 = 0; | |
9506 | char *_kwnames[] = { "self","menu", NULL }; | |
9507 | ||
9508 | self = self; | |
9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
9510 | return NULL; | |
9511 | if (_argo0) { | |
9512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
9515 | return NULL; | |
9516 | } | |
9517 | } | |
9518 | if (_argo1) { | |
9519 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9520 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
9522 | return NULL; | |
9523 | } | |
9524 | } | |
9525 | { | |
9526 | wxPy_BEGIN_ALLOW_THREADS; | |
9527 | wxFileHistory_UseMenu(_arg0,_arg1); | |
9528 | ||
9529 | wxPy_END_ALLOW_THREADS; | |
9530 | } Py_INCREF(Py_None); | |
9531 | _resultobj = Py_None; | |
9532 | return _resultobj; | |
9533 | } | |
9534 | ||
9535 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
9536 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9537 | PyObject * _resultobj; | |
9538 | wxFileHistory * _arg0; | |
9539 | wxMenu * _arg1; | |
9540 | PyObject * _argo0 = 0; | |
9541 | PyObject * _argo1 = 0; | |
9542 | char *_kwnames[] = { "self","menu", NULL }; | |
9543 | ||
9544 | self = self; | |
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
9546 | return NULL; | |
9547 | if (_argo0) { | |
9548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
9551 | return NULL; | |
9552 | } | |
9553 | } | |
9554 | if (_argo1) { | |
9555 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9556 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
9558 | return NULL; | |
9559 | } | |
9560 | } | |
9561 | { | |
9562 | wxPy_BEGIN_ALLOW_THREADS; | |
9563 | wxFileHistory_RemoveMenu(_arg0,_arg1); | |
9564 | ||
9565 | wxPy_END_ALLOW_THREADS; | |
9566 | } Py_INCREF(Py_None); | |
9567 | _resultobj = Py_None; | |
9568 | return _resultobj; | |
9569 | } | |
9570 | ||
9571 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
9572 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9573 | PyObject * _resultobj; | |
9574 | wxFileHistory * _arg0; | |
9575 | wxConfigBase * _arg1; | |
9576 | PyObject * _argo0 = 0; | |
9577 | PyObject * _argo1 = 0; | |
9578 | char *_kwnames[] = { "self","config", NULL }; | |
9579 | ||
9580 | self = self; | |
9581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
9582 | return NULL; | |
9583 | if (_argo0) { | |
9584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
9587 | return NULL; | |
9588 | } | |
9589 | } | |
9590 | if (_argo1) { | |
9591 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9592 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
9594 | return NULL; | |
9595 | } | |
9596 | } | |
9597 | { | |
9598 | wxPy_BEGIN_ALLOW_THREADS; | |
9599 | wxFileHistory_Load(_arg0,*_arg1); | |
9600 | ||
9601 | wxPy_END_ALLOW_THREADS; | |
9602 | } Py_INCREF(Py_None); | |
9603 | _resultobj = Py_None; | |
9604 | return _resultobj; | |
9605 | } | |
9606 | ||
9607 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
9608 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9609 | PyObject * _resultobj; | |
9610 | wxFileHistory * _arg0; | |
9611 | wxConfigBase * _arg1; | |
9612 | PyObject * _argo0 = 0; | |
9613 | PyObject * _argo1 = 0; | |
9614 | char *_kwnames[] = { "self","config", NULL }; | |
9615 | ||
9616 | self = self; | |
9617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
9618 | return NULL; | |
9619 | if (_argo0) { | |
9620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
9623 | return NULL; | |
9624 | } | |
9625 | } | |
9626 | if (_argo1) { | |
9627 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9628 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
9630 | return NULL; | |
9631 | } | |
9632 | } | |
9633 | { | |
9634 | wxPy_BEGIN_ALLOW_THREADS; | |
9635 | wxFileHistory_Save(_arg0,*_arg1); | |
9636 | ||
9637 | wxPy_END_ALLOW_THREADS; | |
9638 | } Py_INCREF(Py_None); | |
9639 | _resultobj = Py_None; | |
9640 | return _resultobj; | |
9641 | } | |
9642 | ||
9643 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
9644 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9645 | PyObject * _resultobj; | |
9646 | wxFileHistory * _arg0; | |
9647 | PyObject * _argo0 = 0; | |
9648 | char *_kwnames[] = { "self", NULL }; | |
9649 | ||
9650 | self = self; | |
9651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
9652 | return NULL; | |
9653 | if (_argo0) { | |
9654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
9657 | return NULL; | |
9658 | } | |
9659 | } | |
9660 | { | |
9661 | wxPy_BEGIN_ALLOW_THREADS; | |
9662 | wxFileHistory_AddFilesToMenu(_arg0); | |
9663 | ||
9664 | wxPy_END_ALLOW_THREADS; | |
9665 | } Py_INCREF(Py_None); | |
9666 | _resultobj = Py_None; | |
9667 | return _resultobj; | |
9668 | } | |
9669 | ||
9670 | #define wxFileHistory_AddFilesToSingleMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) | |
9671 | static PyObject *_wrap_wxFileHistory_AddFilesToSingleMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9672 | PyObject * _resultobj; | |
9673 | wxFileHistory * _arg0; | |
9674 | wxMenu * _arg1; | |
9675 | PyObject * _argo0 = 0; | |
9676 | PyObject * _argo1 = 0; | |
9677 | char *_kwnames[] = { "self","menu", NULL }; | |
9678 | ||
9679 | self = self; | |
9680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToSingleMenu",_kwnames,&_argo0,&_argo1)) | |
9681 | return NULL; | |
9682 | if (_argo0) { | |
9683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToSingleMenu. Expected _wxFileHistory_p."); | |
9686 | return NULL; | |
9687 | } | |
9688 | } | |
9689 | if (_argo1) { | |
9690 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9691 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToSingleMenu. Expected _wxMenu_p."); | |
9693 | return NULL; | |
9694 | } | |
9695 | } | |
9696 | { | |
9697 | wxPy_BEGIN_ALLOW_THREADS; | |
9698 | wxFileHistory_AddFilesToSingleMenu(_arg0,_arg1); | |
9699 | ||
9700 | wxPy_END_ALLOW_THREADS; | |
9701 | } Py_INCREF(Py_None); | |
9702 | _resultobj = Py_None; | |
9703 | return _resultobj; | |
9704 | } | |
9705 | ||
9706 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
9707 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9708 | PyObject * _resultobj; | |
9709 | wxString * _result; | |
9710 | wxFileHistory * _arg0; | |
9711 | int _arg1; | |
9712 | PyObject * _argo0 = 0; | |
9713 | char *_kwnames[] = { "self","i", NULL }; | |
9714 | ||
9715 | self = self; | |
9716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
9717 | return NULL; | |
9718 | if (_argo0) { | |
9719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
9722 | return NULL; | |
9723 | } | |
9724 | } | |
9725 | { | |
9726 | wxPy_BEGIN_ALLOW_THREADS; | |
9727 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); | |
9728 | ||
9729 | wxPy_END_ALLOW_THREADS; | |
9730 | }{ | |
9731 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9732 | } | |
9733 | { | |
9734 | delete _result; | |
9735 | } | |
9736 | return _resultobj; | |
9737 | } | |
9738 | ||
9739 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
9740 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9741 | PyObject * _resultobj; | |
9742 | int _result; | |
9743 | wxFileHistory * _arg0; | |
9744 | PyObject * _argo0 = 0; | |
9745 | char *_kwnames[] = { "self", NULL }; | |
9746 | ||
9747 | self = self; | |
9748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
9749 | return NULL; | |
9750 | if (_argo0) { | |
9751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
9754 | return NULL; | |
9755 | } | |
9756 | } | |
9757 | { | |
9758 | wxPy_BEGIN_ALLOW_THREADS; | |
9759 | _result = (int )wxFileHistory_GetCount(_arg0); | |
9760 | ||
9761 | wxPy_END_ALLOW_THREADS; | |
9762 | } _resultobj = Py_BuildValue("i",_result); | |
9763 | return _resultobj; | |
9764 | } | |
9765 | ||
9766 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
9767 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9768 | PyObject * _resultobj; | |
9769 | int _result; | |
9770 | wxFileHistory * _arg0; | |
9771 | PyObject * _argo0 = 0; | |
9772 | char *_kwnames[] = { "self", NULL }; | |
9773 | ||
9774 | self = self; | |
9775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
9776 | return NULL; | |
9777 | if (_argo0) { | |
9778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
9781 | return NULL; | |
9782 | } | |
9783 | } | |
9784 | { | |
9785 | wxPy_BEGIN_ALLOW_THREADS; | |
9786 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); | |
9787 | ||
9788 | wxPy_END_ALLOW_THREADS; | |
9789 | } _resultobj = Py_BuildValue("i",_result); | |
9790 | return _resultobj; | |
9791 | } | |
9792 | ||
d24a34bb | 9793 | static PyMethodDef misc2cMethods[] = { |
93283355 RD |
9794 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, |
9795 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
9796 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
9797 | { "wxFileHistory_AddFilesToSingleMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToSingleMenu, METH_VARARGS | METH_KEYWORDS }, | |
9798 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
9799 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
9800 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
9801 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
9802 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
9803 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
9804 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
9805 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
9806 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
9807 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
5c0282d5 RD |
9808 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
9809 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
9810 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
9811 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
9812 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
9813 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
9814 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
9815 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9816 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
9817 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
9818 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
9819 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
9820 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
9821 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
9822 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
9823 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
9824 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
9825 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
9826 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
9827 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
9828 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
9829 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
9830 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
9831 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
9832 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
9833 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
9834 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9835 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
9836 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
9837 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
9838 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
9839 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
9840 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
9841 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
9842 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
9843 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
9844 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9845 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
9846 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
9847 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
9848 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
9849 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
9850 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
4dfaa61e RD |
9851 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
9852 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9853 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
9854 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
9855 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
9856 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
9857 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
9858 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
9859 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
9860 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
9861 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
9862 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
9863 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
9864 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
9865 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
9866 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
9867 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
9868 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
9869 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
9870 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
9871 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
9872 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
9873 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
9874 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
9875 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
9876 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
9877 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
9878 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
9879 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
9880 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
9881 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
9882 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
9883 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
9884 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
9885 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
9886 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9887 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
9888 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
9889 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
9890 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
9891 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
9892 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
9893 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
9894 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
9895 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
9896 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25d73e0f | 9897 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
4dfaa61e | 9898 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
9899 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
9900 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
9901 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
9902 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
9903 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
9904 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
9905 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
9906 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 9907 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
9908 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
9909 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
9910 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
9911 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
9912 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
9913 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
9914 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
9915 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
9916 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 RD |
9917 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
9918 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
9919 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, | |
9920 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
9921 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9922 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
9923 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
9924 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9925 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
9926 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
9927 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
9928 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9929 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
9930 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
9931 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
9932 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
9933 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
9934 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
9935 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 9936 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
9937 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
9938 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9939 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 RD |
9940 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
9941 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
9942 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9943 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
9944 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9945 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9946 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
9947 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
9948 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
9949 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
9950 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
9951 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
9952 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
9953 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9954 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
9955 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
9956 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
9957 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9958 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
5c0282d5 RD |
9959 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
9960 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
9961 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
9962 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
9963 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9964 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
9965 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
9966 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
9967 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
9968 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
9969 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
9970 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
9971 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
9972 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
9973 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
9974 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
9975 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
9976 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
9977 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
9978 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
9979 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
4dfaa61e | 9980 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 9981 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
9982 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
9983 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
9984 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
9985 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9986 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
9987 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
9988 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
9989 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
9990 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
4662be59 RD |
9991 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
9992 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
9993 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
9994 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
4120ef2b RD |
9995 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
9996 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
9997 | { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
9998 | { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
9999 | { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
10000 | { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 10001 | { "wxFontEnumerator__setCallbackInfo", (PyCFunction) _wrap_wxFontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
4120ef2b RD |
10002 | { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, |
10003 | { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
8f17924e RD |
10004 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
10005 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
e02c03a4 RD |
10006 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
10007 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
8f17924e RD |
10008 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
10009 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10010 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10011 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10012 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10013 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10014 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10015 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10016 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10017 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10018 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
9a08cd12 RD |
10019 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
10020 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10021 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
10022 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10023 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
10024 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
4dfaa61e | 10025 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10026 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10027 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
10028 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
10029 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
10030 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10031 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
10032 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
10033 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
10034 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
10035 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
10036 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
10037 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10038 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
10039 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
4662be59 RD |
10040 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
10041 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
10042 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
d29aba2f | 10043 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
4120ef2b | 10044 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
4662be59 | 10045 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
8f17924e RD |
10046 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
10047 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
bc29c5e0 RD |
10048 | { "wxSystemSettings_GetSystemMetric", (PyCFunction) _wrap_wxSystemSettings_GetSystemMetric, METH_VARARGS | METH_KEYWORDS }, |
10049 | { "wxSystemSettings_GetSystemFont", (PyCFunction) _wrap_wxSystemSettings_GetSystemFont, METH_VARARGS | METH_KEYWORDS }, | |
10050 | { "wxSystemSettings_GetSystemColour", (PyCFunction) _wrap_wxSystemSettings_GetSystemColour, METH_VARARGS | METH_KEYWORDS }, | |
10051 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, | |
10052 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
10053 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
10054 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10055 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10056 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
10057 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10058 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
10059 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
4dfaa61e RD |
10060 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, |
10061 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
bc29c5e0 RD |
10062 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
10063 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
10064 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, |
10065 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
bc29c5e0 | 10066 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
9e689c06 RD |
10067 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
10068 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
9c4165ad RD |
10069 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
10070 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
b68dc582 RD |
10071 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, |
10072 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10073 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
bc29c5e0 RD |
10074 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
10075 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
10076 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10077 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
10078 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
10079 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10080 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
bc29c5e0 RD |
10081 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
10082 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
d24a34bb RD |
10083 | { NULL, NULL } |
10084 | }; | |
2d091820 RD |
10085 | #ifdef __cplusplus |
10086 | } | |
10087 | #endif | |
10088 | /* | |
10089 | * This table is used by the pointer type-checker | |
10090 | */ | |
10091 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 10092 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
2d091820 | 10093 | { "_signed_long","_long",0}, |
4120ef2b | 10094 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
10095 | { "_wxPrintQuality","_int",0}, |
10096 | { "_wxPrintQuality","_signed_int",0}, | |
10097 | { "_wxPrintQuality","_unsigned_int",0}, | |
10098 | { "_wxPrintQuality","_wxWindowID",0}, | |
10099 | { "_wxPrintQuality","_uint",0}, | |
10100 | { "_wxPrintQuality","_EBool",0}, | |
10101 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10102 | { "_wxPrintQuality","_time_t",0}, |
0220cbc1 | 10103 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
0220cbc1 | 10104 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, |
f6bcfd97 | 10105 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 10106 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 10107 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 10108 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
2d091820 | 10109 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
10110 | { "_long","_unsigned_long",0}, |
10111 | { "_long","_signed_long",0}, | |
4120ef2b | 10112 | { "_size_t","_wxCoord",0}, |
2d091820 | 10113 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10114 | { "_size_t","_time_t",0}, |
2d091820 RD |
10115 | { "_size_t","_unsigned_int",0}, |
10116 | { "_size_t","_int",0}, | |
10117 | { "_size_t","_wxWindowID",0}, | |
10118 | { "_size_t","_uint",0}, | |
4120ef2b | 10119 | { "_uint","_wxCoord",0}, |
2d091820 | 10120 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10121 | { "_uint","_time_t",0}, |
2d091820 RD |
10122 | { "_uint","_size_t",0}, |
10123 | { "_uint","_unsigned_int",0}, | |
10124 | { "_uint","_int",0}, | |
10125 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10126 | { "_wxChar","_char",0}, |
f6bcfd97 | 10127 | { "_char","_wxChar",0}, |
059a841c | 10128 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 10129 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
10130 | { "_EBool","_wxPrintQuality",0}, |
10131 | { "_EBool","_signed_int",0}, | |
10132 | { "_EBool","_int",0}, | |
10133 | { "_EBool","_wxWindowID",0}, | |
2d091820 | 10134 | { "_unsigned_long","_long",0}, |
059a841c | 10135 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b | 10136 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
10137 | { "_signed_int","_wxPrintQuality",0}, |
10138 | { "_signed_int","_EBool",0}, | |
10139 | { "_signed_int","_wxWindowID",0}, | |
10140 | { "_signed_int","_int",0}, | |
93283355 | 10141 | { "_WXTYPE","_wxDateTime_t",0}, |
2d091820 RD |
10142 | { "_WXTYPE","_short",0}, |
10143 | { "_WXTYPE","_signed_short",0}, | |
10144 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 10145 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
93283355 | 10146 | { "_unsigned_short","_wxDateTime_t",0}, |
2d091820 RD |
10147 | { "_unsigned_short","_WXTYPE",0}, |
10148 | { "_unsigned_short","_short",0}, | |
93283355 | 10149 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
4dfaa61e | 10150 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
4dfaa61e | 10151 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9df61a29 | 10152 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9df61a29 | 10153 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9df61a29 | 10154 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9df61a29 | 10155 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9df61a29 | 10156 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
2d091820 RD |
10157 | { "_signed_short","_WXTYPE",0}, |
10158 | { "_signed_short","_short",0}, | |
2d091820 | 10159 | { "_unsigned_char","_byte",0}, |
4120ef2b | 10160 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 10161 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10162 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
10163 | { "_unsigned_int","_size_t",0}, |
10164 | { "_unsigned_int","_uint",0}, | |
10165 | { "_unsigned_int","_wxWindowID",0}, | |
10166 | { "_unsigned_int","_int",0}, | |
93283355 | 10167 | { "_short","_wxDateTime_t",0}, |
2d091820 RD |
10168 | { "_short","_WXTYPE",0}, |
10169 | { "_short","_unsigned_short",0}, | |
10170 | { "_short","_signed_short",0}, | |
4120ef2b | 10171 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 10172 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10173 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
10174 | { "_wxWindowID","_size_t",0}, |
10175 | { "_wxWindowID","_EBool",0}, | |
10176 | { "_wxWindowID","_uint",0}, | |
10177 | { "_wxWindowID","_int",0}, | |
10178 | { "_wxWindowID","_signed_int",0}, | |
10179 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 10180 | { "_int","_wxCoord",0}, |
2d091820 | 10181 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10182 | { "_int","_time_t",0}, |
2d091820 RD |
10183 | { "_int","_size_t",0}, |
10184 | { "_int","_EBool",0}, | |
10185 | { "_int","_uint",0}, | |
10186 | { "_int","_wxWindowID",0}, | |
10187 | { "_int","_unsigned_int",0}, | |
10188 | { "_int","_signed_int",0}, | |
93283355 RD |
10189 | { "_wxDateTime_t","_unsigned_short",0}, |
10190 | { "_wxDateTime_t","_short",0}, | |
10191 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
10192 | { "_time_t","_wxCoord",0}, |
10193 | { "_time_t","_wxPrintQuality",0}, | |
10194 | { "_time_t","_unsigned_int",0}, | |
10195 | { "_time_t","_int",0}, | |
10196 | { "_time_t","_wxWindowID",0}, | |
10197 | { "_time_t","_uint",0}, | |
10198 | { "_time_t","_size_t",0}, | |
4120ef2b RD |
10199 | { "_wxCoord","_int",0}, |
10200 | { "_wxCoord","_signed_int",0}, | |
10201 | { "_wxCoord","_unsigned_int",0}, | |
10202 | { "_wxCoord","_wxWindowID",0}, | |
10203 | { "_wxCoord","_uint",0}, | |
10204 | { "_wxCoord","_EBool",0}, | |
10205 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10206 | { "_wxCoord","_time_t",0}, |
4120ef2b | 10207 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 10208 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
2d091820 RD |
10209 | {0,0,0}}; |
10210 | ||
d24a34bb RD |
10211 | static PyObject *SWIG_globals; |
10212 | #ifdef __cplusplus | |
10213 | extern "C" | |
10214 | #endif | |
2d091820 | 10215 | SWIGEXPORT(void) initmisc2c() { |
d24a34bb RD |
10216 | PyObject *m, *d; |
10217 | SWIG_globals = SWIG_newvarlink(); | |
10218 | m = Py_InitModule("misc2c", misc2cMethods); | |
10219 | d = PyModule_GetDict(m); | |
bc29c5e0 RD |
10220 | PyDict_SetItemString(d,"wxSYS_WHITE_BRUSH", PyInt_FromLong((long) wxSYS_WHITE_BRUSH)); |
10221 | PyDict_SetItemString(d,"wxSYS_LTGRAY_BRUSH", PyInt_FromLong((long) wxSYS_LTGRAY_BRUSH)); | |
10222 | PyDict_SetItemString(d,"wxSYS_GRAY_BRUSH", PyInt_FromLong((long) wxSYS_GRAY_BRUSH)); | |
10223 | PyDict_SetItemString(d,"wxSYS_DKGRAY_BRUSH", PyInt_FromLong((long) wxSYS_DKGRAY_BRUSH)); | |
10224 | PyDict_SetItemString(d,"wxSYS_BLACK_BRUSH", PyInt_FromLong((long) wxSYS_BLACK_BRUSH)); | |
10225 | PyDict_SetItemString(d,"wxSYS_NULL_BRUSH", PyInt_FromLong((long) wxSYS_NULL_BRUSH)); | |
10226 | PyDict_SetItemString(d,"wxSYS_HOLLOW_BRUSH", PyInt_FromLong((long) wxSYS_HOLLOW_BRUSH)); | |
10227 | PyDict_SetItemString(d,"wxSYS_WHITE_PEN", PyInt_FromLong((long) wxSYS_WHITE_PEN)); | |
10228 | PyDict_SetItemString(d,"wxSYS_BLACK_PEN", PyInt_FromLong((long) wxSYS_BLACK_PEN)); | |
10229 | PyDict_SetItemString(d,"wxSYS_NULL_PEN", PyInt_FromLong((long) wxSYS_NULL_PEN)); | |
10230 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); | |
10231 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
10232 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
10233 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
10234 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
10235 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
10236 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
10237 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
10238 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
10239 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
10240 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); | |
10241 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
10242 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
10243 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
10244 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
10245 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
10246 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
10247 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
10248 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
10249 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
10250 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
10251 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
10252 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
10253 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
10254 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); | |
10255 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); | |
10256 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
10257 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
10258 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
10259 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); | |
10260 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
10261 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
10262 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
10263 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); | |
10264 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); | |
10265 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); | |
10266 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
10267 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
10268 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); | |
10269 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); | |
10270 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
10271 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
10272 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
10273 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
10274 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
10275 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
10276 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
10277 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
10278 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
10279 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
10280 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
10281 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
10282 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
10283 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
10284 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
10285 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
10286 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
10287 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
10288 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
10289 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
10290 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
10291 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
10292 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
10293 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
10294 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
10295 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
10296 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
10297 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
10298 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
10299 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
10300 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
10301 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
10302 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
10303 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
10304 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
10305 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
f6bcfd97 BP |
10306 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
10307 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
10308 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
10309 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
10310 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
10311 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
10312 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
10313 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
10314 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
10315 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
9c4165ad | 10316 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); |
5c0282d5 RD |
10317 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
10318 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
10319 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
10320 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
10321 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
10322 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
10323 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
9df61a29 RD |
10324 | |
10325 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
10326 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
10327 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
2d091820 RD |
10328 | { |
10329 | int i; | |
10330 | for (i = 0; _swig_mapping[i].n1; i++) | |
10331 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10332 | } | |
d24a34bb | 10333 | } |