]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * FILE : src/msw/misc2.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
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) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
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 *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initmisc2c | |
55 | ||
56 | #define SWIG_name "misc2c" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include "pyistream.h" | |
60 | #include <wx/resource.h> | |
61 | #include <wx/tooltip.h> | |
62 | #include <wx/caret.h> | |
63 | #include <wx/fontenum.h> | |
64 | #include <wx/tipdlg.h> | |
65 | #include <wx/process.h> | |
66 | ||
67 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
68 | #include <wx/joystick.h> | |
69 | #endif | |
70 | ||
71 | #if wxUSE_WAVE || defined(__WXMSW__) | |
72 | #include <wx/wave.h> | |
73 | #endif | |
74 | ||
75 | #include <wx/mimetype.h> | |
76 | ||
77 | ||
78 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
79 | PyObject* o2; | |
80 | PyObject* o3; | |
81 | ||
82 | if (!target) { | |
83 | target = o; | |
84 | } else if (target == Py_None) { | |
85 | Py_DECREF(Py_None); | |
86 | target = o; | |
87 | } else { | |
88 | if (!PyTuple_Check(target)) { | |
89 | o2 = target; | |
90 | target = PyTuple_New(1); | |
91 | PyTuple_SetItem(target, 0, o2); | |
92 | } | |
93 | o3 = PyTuple_New(1); | |
94 | PyTuple_SetItem(o3, 0, o); | |
95 | ||
96 | o2 = target; | |
97 | target = PySequence_Concat(o2, o3); | |
98 | Py_DECREF(o2); | |
99 | Py_DECREF(o3); | |
100 | } | |
101 | return target; | |
102 | } | |
103 | ||
104 | #if PYTHON_API_VERSION >= 1009 | |
105 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
106 | #else | |
107 | static char* wxStringErrorMsg = "String type required"; | |
108 | #endif | |
109 | ||
110 | int wxCaret_GetBlinkTime() { | |
111 | return wxCaret::GetBlinkTime(); | |
112 | } | |
113 | ||
114 | void wxCaret_SetBlinkTime(int milliseconds) { | |
115 | wxCaret::SetBlinkTime(milliseconds); | |
116 | } | |
117 | ||
118 | class wxPyFontEnumerator : public wxFontEnumerator { | |
119 | public: | |
120 | wxPyFontEnumerator() {} | |
121 | ~wxPyFontEnumerator() {} | |
122 | ||
123 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
124 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
125 | ||
126 | PYPRIVATE; | |
127 | }; | |
128 | ||
129 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
130 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
131 | ||
132 | ||
133 | bool wxThread_IsMain() { | |
134 | #ifdef WXP_WITH_THREAD | |
135 | return wxThread::IsMain(); | |
136 | #else | |
137 | return TRUE; | |
138 | #endif | |
139 | } | |
140 | ||
141 | class wxPyTipProvider : public wxTipProvider { | |
142 | public: | |
143 | wxPyTipProvider(size_t currentTip) | |
144 | : wxTipProvider(currentTip) {} | |
145 | ||
146 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
147 | ||
148 | PYPRIVATE; | |
149 | }; | |
150 | ||
151 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
152 | ||
153 | ||
154 | #include <wx/generic/dragimgg.h> | |
155 | ||
156 | // A Log class that can be derived from in wxPython | |
157 | class wxPyLog : public wxLog { | |
158 | public: | |
159 | wxPyLog() : wxLog() {} | |
160 | ||
161 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
162 | bool found; | |
163 | wxPyBeginBlockThreads(); | |
164 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) | |
165 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(isi)", level, szString, t)); | |
166 | wxPyEndBlockThreads(); | |
167 | if (! found) | |
168 | wxLog::DoLog(level, szString, t); | |
169 | } | |
170 | ||
171 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
172 | bool found; | |
173 | wxPyBeginBlockThreads(); | |
174 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) | |
175 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(si)", szString, t)); | |
176 | wxPyEndBlockThreads(); | |
177 | if (! found) | |
178 | wxLog::DoLogString(szString, t); | |
179 | } | |
180 | ||
181 | PYPRIVATE; | |
182 | }; | |
183 | // C++ version of wxProcess derived class | |
184 | ||
185 | class wxPyProcess : public wxProcess { | |
186 | public: | |
187 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
188 | : wxProcess(parent, id) | |
189 | {} | |
190 | ||
191 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
192 | ||
193 | PYPRIVATE; | |
194 | }; | |
195 | ||
196 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
197 | ||
198 | ||
199 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
200 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
201 | class wxJoystick : public wxObject { | |
202 | public: | |
203 | wxJoystick(int joystick = wxJOYSTICK1) { | |
204 | wxPyBeginBlockThreads(); | |
205 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); | |
206 | wxPyEndBlockThreads(); | |
207 | } | |
208 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
209 | int GetZPosition() { return -1; } | |
210 | int GetButtonState() { return -1; } | |
211 | int GetPOVPosition() { return -1; } | |
212 | int GetPOVCTSPosition() { return -1; } | |
213 | int GetRudderPosition() { return -1; } | |
214 | int GetUPosition() { return -1; } | |
215 | int GetVPosition() { return -1; } | |
216 | int GetMovementThreshold() { return -1; } | |
217 | void SetMovementThreshold(int threshold) {} | |
218 | ||
219 | bool IsOk(void) { return FALSE; } | |
220 | int GetNumberJoysticks() { return -1; } | |
221 | int GetManufacturerId() { return -1; } | |
222 | int GetProductId() { return -1; } | |
223 | wxString GetProductName() { return ""; } | |
224 | int GetXMin() { return -1; } | |
225 | int GetYMin() { return -1; } | |
226 | int GetZMin() { return -1; } | |
227 | int GetXMax() { return -1; } | |
228 | int GetYMax() { return -1; } | |
229 | int GetZMax() { return -1; } | |
230 | int GetNumberButtons() { return -1; } | |
231 | int GetNumberAxes() { return -1; } | |
232 | int GetMaxButtons() { return -1; } | |
233 | int GetMaxAxes() { return -1; } | |
234 | int GetPollingMin() { return -1; } | |
235 | int GetPollingMax() { return -1; } | |
236 | int GetRudderMin() { return -1; } | |
237 | int GetRudderMax() { return -1; } | |
238 | int GetUMin() { return -1; } | |
239 | int GetUMax() { return -1; } | |
240 | int GetVMin() { return -1; } | |
241 | int GetVMax() { return -1; } | |
242 | ||
243 | bool HasRudder() { return FALSE; } | |
244 | bool HasZ() { return FALSE; } | |
245 | bool HasU() { return FALSE; } | |
246 | bool HasV() { return FALSE; } | |
247 | bool HasPOV() { return FALSE; } | |
248 | bool HasPOV4Dir() { return FALSE; } | |
249 | bool HasPOVCTS() { return FALSE; } | |
250 | ||
251 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
252 | bool ReleaseCapture() { return FALSE; } | |
253 | }; | |
254 | #endif | |
255 | ||
256 | #if !wxUSE_WAVE | |
257 | // A C++ stub class for wxWave for platforms that don't have it. | |
258 | class wxWave : public wxObject | |
259 | { | |
260 | public: | |
261 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
262 | wxPyBeginBlockThreads(); | |
263 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); | |
264 | wxPyEndBlockThreads(); | |
265 | } | |
266 | wxWave(int size, const wxByte* data) { | |
267 | wxPyBeginBlockThreads(); | |
268 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); | |
269 | wxPyEndBlockThreads(); | |
270 | } | |
271 | ||
272 | ~wxWave() {} | |
273 | ||
274 | bool IsOk() const { return FALSE; } | |
275 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
276 | }; | |
277 | ||
278 | #endif | |
279 | // Implementations of some alternate "constructors" | |
280 | wxWave* wxWaveData(const wxString& data) { | |
281 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
282 | } | |
283 | ||
284 | #if 0 | |
285 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
286 | ||
287 | #endif | |
288 | ||
289 | #include <wx/docview.h> | |
290 | #ifdef __cplusplus | |
291 | extern "C" { | |
292 | #endif | |
293 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
294 | PyObject * _resultobj; | |
295 | wxString * _result; | |
296 | char * _arg0; | |
297 | char * _arg1 = (char *) NULL; | |
298 | char * _arg2 = (char *) NULL; | |
299 | char * _arg3 = (char *) NULL; | |
300 | char * _arg4 = (char *) "*.*"; | |
301 | int _arg5 = (int ) 0; | |
302 | wxWindow * _arg6 = (wxWindow *) NULL; | |
303 | int _arg7 = (int ) -1; | |
304 | int _arg8 = (int ) -1; | |
305 | PyObject * _argo6 = 0; | |
306 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
307 | ||
308 | self = self; | |
309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8)) | |
310 | return NULL; | |
311 | if (_argo6) { | |
312 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
313 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
315 | return NULL; | |
316 | } | |
317 | } | |
318 | { | |
319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
320 | _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)); | |
321 | ||
322 | wxPyEndAllowThreads(__tstate); | |
323 | if (PyErr_Occurred()) return NULL; | |
324 | }{ | |
325 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
326 | } | |
327 | { | |
328 | delete _result; | |
329 | } | |
330 | return _resultobj; | |
331 | } | |
332 | ||
333 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
334 | PyObject * _resultobj; | |
335 | wxString * _result; | |
336 | wxString * _arg0; | |
337 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
338 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
339 | wxWindow * _arg3 = (wxWindow *) NULL; | |
340 | int _arg4 = (int ) -1; | |
341 | int _arg5 = (int ) -1; | |
342 | bool _arg6 = (bool ) TRUE; | |
343 | PyObject * _obj0 = 0; | |
344 | PyObject * _obj1 = 0; | |
345 | PyObject * _obj2 = 0; | |
346 | PyObject * _argo3 = 0; | |
347 | int tempbool6 = (int) TRUE; | |
348 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
349 | ||
350 | self = self; | |
351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
352 | return NULL; | |
353 | { | |
354 | #if PYTHON_API_VERSION >= 1009 | |
355 | char* tmpPtr; int tmpSize; | |
356 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
357 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
358 | return NULL; | |
359 | } | |
360 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
361 | return NULL; | |
362 | _arg0 = new wxString(tmpPtr, tmpSize); | |
363 | #else | |
364 | if (!PyString_Check(_obj0)) { | |
365 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
366 | return NULL; | |
367 | } | |
368 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
369 | #endif | |
370 | } | |
371 | if (_obj1) | |
372 | { | |
373 | #if PYTHON_API_VERSION >= 1009 | |
374 | char* tmpPtr; int tmpSize; | |
375 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
376 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
377 | return NULL; | |
378 | } | |
379 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
380 | return NULL; | |
381 | _arg1 = new wxString(tmpPtr, tmpSize); | |
382 | #else | |
383 | if (!PyString_Check(_obj1)) { | |
384 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
385 | return NULL; | |
386 | } | |
387 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
388 | #endif | |
389 | } | |
390 | if (_obj2) | |
391 | { | |
392 | #if PYTHON_API_VERSION >= 1009 | |
393 | char* tmpPtr; int tmpSize; | |
394 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
395 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
396 | return NULL; | |
397 | } | |
398 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
399 | return NULL; | |
400 | _arg2 = new wxString(tmpPtr, tmpSize); | |
401 | #else | |
402 | if (!PyString_Check(_obj2)) { | |
403 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
404 | return NULL; | |
405 | } | |
406 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
407 | #endif | |
408 | } | |
409 | if (_argo3) { | |
410 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
411 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
413 | return NULL; | |
414 | } | |
415 | } | |
416 | _arg6 = (bool ) tempbool6; | |
417 | { | |
418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
419 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); | |
420 | ||
421 | wxPyEndAllowThreads(__tstate); | |
422 | if (PyErr_Occurred()) return NULL; | |
423 | }{ | |
424 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
425 | } | |
426 | { | |
427 | if (_obj0) | |
428 | delete _arg0; | |
429 | } | |
430 | { | |
431 | if (_obj1) | |
432 | delete _arg1; | |
433 | } | |
434 | { | |
435 | if (_obj2) | |
436 | delete _arg2; | |
437 | } | |
438 | { | |
439 | delete _result; | |
440 | } | |
441 | return _resultobj; | |
442 | } | |
443 | ||
444 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
445 | PyObject * _resultobj; | |
446 | wxString * _result; | |
447 | wxString * _arg0; | |
448 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
449 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
450 | wxWindow * _arg3 = (wxWindow *) NULL; | |
451 | PyObject * _obj0 = 0; | |
452 | PyObject * _obj1 = 0; | |
453 | PyObject * _obj2 = 0; | |
454 | PyObject * _argo3 = 0; | |
455 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
456 | ||
457 | self = self; | |
458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
459 | return NULL; | |
460 | { | |
461 | #if PYTHON_API_VERSION >= 1009 | |
462 | char* tmpPtr; int tmpSize; | |
463 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
464 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
465 | return NULL; | |
466 | } | |
467 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
468 | return NULL; | |
469 | _arg0 = new wxString(tmpPtr, tmpSize); | |
470 | #else | |
471 | if (!PyString_Check(_obj0)) { | |
472 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
473 | return NULL; | |
474 | } | |
475 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
476 | #endif | |
477 | } | |
478 | if (_obj1) | |
479 | { | |
480 | #if PYTHON_API_VERSION >= 1009 | |
481 | char* tmpPtr; int tmpSize; | |
482 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
483 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
484 | return NULL; | |
485 | } | |
486 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
487 | return NULL; | |
488 | _arg1 = new wxString(tmpPtr, tmpSize); | |
489 | #else | |
490 | if (!PyString_Check(_obj1)) { | |
491 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
492 | return NULL; | |
493 | } | |
494 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
495 | #endif | |
496 | } | |
497 | if (_obj2) | |
498 | { | |
499 | #if PYTHON_API_VERSION >= 1009 | |
500 | char* tmpPtr; int tmpSize; | |
501 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
502 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
503 | return NULL; | |
504 | } | |
505 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
506 | return NULL; | |
507 | _arg2 = new wxString(tmpPtr, tmpSize); | |
508 | #else | |
509 | if (!PyString_Check(_obj2)) { | |
510 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
511 | return NULL; | |
512 | } | |
513 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
514 | #endif | |
515 | } | |
516 | if (_argo3) { | |
517 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
518 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
520 | return NULL; | |
521 | } | |
522 | } | |
523 | { | |
524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
525 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); | |
526 | ||
527 | wxPyEndAllowThreads(__tstate); | |
528 | if (PyErr_Occurred()) return NULL; | |
529 | }{ | |
530 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
531 | } | |
532 | { | |
533 | if (_obj0) | |
534 | delete _arg0; | |
535 | } | |
536 | { | |
537 | if (_obj1) | |
538 | delete _arg1; | |
539 | } | |
540 | { | |
541 | if (_obj2) | |
542 | delete _arg2; | |
543 | } | |
544 | { | |
545 | delete _result; | |
546 | } | |
547 | return _resultobj; | |
548 | } | |
549 | ||
550 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
551 | PyObject * _resultobj; | |
552 | wxString * _result; | |
553 | wxString * _arg0; | |
554 | wxString * _arg1; | |
555 | int _arg2; | |
556 | wxString * _arg3; | |
557 | wxWindow * _arg4 = (wxWindow *) NULL; | |
558 | int _arg5 = (int ) -1; | |
559 | int _arg6 = (int ) -1; | |
560 | bool _arg7 = (bool ) TRUE; | |
561 | int _arg8 = (int ) 150; | |
562 | int _arg9 = (int ) 200; | |
563 | PyObject * _obj0 = 0; | |
564 | PyObject * _obj1 = 0; | |
565 | PyObject * _obj3 = 0; | |
566 | PyObject * _argo4 = 0; | |
567 | int tempbool7 = (int) TRUE; | |
568 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; | |
569 | ||
570 | self = self; | |
571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
572 | return NULL; | |
573 | { | |
574 | #if PYTHON_API_VERSION >= 1009 | |
575 | char* tmpPtr; int tmpSize; | |
576 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
577 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
578 | return NULL; | |
579 | } | |
580 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
581 | return NULL; | |
582 | _arg0 = new wxString(tmpPtr, tmpSize); | |
583 | #else | |
584 | if (!PyString_Check(_obj0)) { | |
585 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
586 | return NULL; | |
587 | } | |
588 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
589 | #endif | |
590 | } | |
591 | { | |
592 | #if PYTHON_API_VERSION >= 1009 | |
593 | char* tmpPtr; int tmpSize; | |
594 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
595 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
596 | return NULL; | |
597 | } | |
598 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
599 | return NULL; | |
600 | _arg1 = new wxString(tmpPtr, tmpSize); | |
601 | #else | |
602 | if (!PyString_Check(_obj1)) { | |
603 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
604 | return NULL; | |
605 | } | |
606 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
607 | #endif | |
608 | } | |
609 | if (_obj3) | |
610 | { | |
611 | _arg3 = wxString_LIST_helper(_obj3); | |
612 | if (_arg3 == NULL) { | |
613 | return NULL; | |
614 | } | |
615 | } | |
616 | if (_argo4) { | |
617 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
618 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
620 | return NULL; | |
621 | } | |
622 | } | |
623 | _arg7 = (bool ) tempbool7; | |
624 | { | |
625 | if (_obj3) { | |
626 | _arg2 = PyList_Size(_obj3); | |
627 | } | |
628 | else { | |
629 | _arg2 = 0; | |
630 | } | |
631 | } | |
632 | { | |
633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
634 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); | |
635 | ||
636 | wxPyEndAllowThreads(__tstate); | |
637 | if (PyErr_Occurred()) return NULL; | |
638 | }{ | |
639 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
640 | } | |
641 | { | |
642 | if (_obj0) | |
643 | delete _arg0; | |
644 | } | |
645 | { | |
646 | if (_obj1) | |
647 | delete _arg1; | |
648 | } | |
649 | { | |
650 | delete [] _arg3; | |
651 | } | |
652 | { | |
653 | delete _result; | |
654 | } | |
655 | return _resultobj; | |
656 | } | |
657 | ||
658 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
659 | PyObject * _resultobj; | |
660 | int _result; | |
661 | wxString * _arg0; | |
662 | wxString * _arg1; | |
663 | int _arg2; | |
664 | wxString * _arg3; | |
665 | wxWindow * _arg4 = (wxWindow *) NULL; | |
666 | int _arg5 = (int ) -1; | |
667 | int _arg6 = (int ) -1; | |
668 | bool _arg7 = (bool ) TRUE; | |
669 | int _arg8 = (int ) 150; | |
670 | int _arg9 = (int ) 200; | |
671 | PyObject * _obj0 = 0; | |
672 | PyObject * _obj1 = 0; | |
673 | PyObject * _obj3 = 0; | |
674 | PyObject * _argo4 = 0; | |
675 | int tempbool7 = (int) TRUE; | |
676 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; | |
677 | ||
678 | self = self; | |
679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
680 | return NULL; | |
681 | { | |
682 | #if PYTHON_API_VERSION >= 1009 | |
683 | char* tmpPtr; int tmpSize; | |
684 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
685 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
686 | return NULL; | |
687 | } | |
688 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
689 | return NULL; | |
690 | _arg0 = new wxString(tmpPtr, tmpSize); | |
691 | #else | |
692 | if (!PyString_Check(_obj0)) { | |
693 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
694 | return NULL; | |
695 | } | |
696 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
697 | #endif | |
698 | } | |
699 | { | |
700 | #if PYTHON_API_VERSION >= 1009 | |
701 | char* tmpPtr; int tmpSize; | |
702 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
703 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
704 | return NULL; | |
705 | } | |
706 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
707 | return NULL; | |
708 | _arg1 = new wxString(tmpPtr, tmpSize); | |
709 | #else | |
710 | if (!PyString_Check(_obj1)) { | |
711 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
712 | return NULL; | |
713 | } | |
714 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
715 | #endif | |
716 | } | |
717 | if (_obj3) | |
718 | { | |
719 | _arg3 = wxString_LIST_helper(_obj3); | |
720 | if (_arg3 == NULL) { | |
721 | return NULL; | |
722 | } | |
723 | } | |
724 | if (_argo4) { | |
725 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
726 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
728 | return NULL; | |
729 | } | |
730 | } | |
731 | _arg7 = (bool ) tempbool7; | |
732 | { | |
733 | if (_obj3) { | |
734 | _arg2 = PyList_Size(_obj3); | |
735 | } | |
736 | else { | |
737 | _arg2 = 0; | |
738 | } | |
739 | } | |
740 | { | |
741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
742 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
743 | ||
744 | wxPyEndAllowThreads(__tstate); | |
745 | if (PyErr_Occurred()) return NULL; | |
746 | } _resultobj = Py_BuildValue("i",_result); | |
747 | { | |
748 | if (_obj0) | |
749 | delete _arg0; | |
750 | } | |
751 | { | |
752 | if (_obj1) | |
753 | delete _arg1; | |
754 | } | |
755 | { | |
756 | delete [] _arg3; | |
757 | } | |
758 | return _resultobj; | |
759 | } | |
760 | ||
761 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
762 | PyObject * _resultobj; | |
763 | int _result; | |
764 | wxString * _arg0; | |
765 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
766 | int _arg2 = (int ) wxOK|wxCENTRE; | |
767 | wxWindow * _arg3 = (wxWindow *) NULL; | |
768 | int _arg4 = (int ) -1; | |
769 | int _arg5 = (int ) -1; | |
770 | PyObject * _obj0 = 0; | |
771 | PyObject * _obj1 = 0; | |
772 | PyObject * _argo3 = 0; | |
773 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
774 | ||
775 | self = self; | |
776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
777 | return NULL; | |
778 | { | |
779 | #if PYTHON_API_VERSION >= 1009 | |
780 | char* tmpPtr; int tmpSize; | |
781 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
782 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
783 | return NULL; | |
784 | } | |
785 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
786 | return NULL; | |
787 | _arg0 = new wxString(tmpPtr, tmpSize); | |
788 | #else | |
789 | if (!PyString_Check(_obj0)) { | |
790 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
791 | return NULL; | |
792 | } | |
793 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
794 | #endif | |
795 | } | |
796 | if (_obj1) | |
797 | { | |
798 | #if PYTHON_API_VERSION >= 1009 | |
799 | char* tmpPtr; int tmpSize; | |
800 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
801 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
802 | return NULL; | |
803 | } | |
804 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
805 | return NULL; | |
806 | _arg1 = new wxString(tmpPtr, tmpSize); | |
807 | #else | |
808 | if (!PyString_Check(_obj1)) { | |
809 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
810 | return NULL; | |
811 | } | |
812 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
813 | #endif | |
814 | } | |
815 | if (_argo3) { | |
816 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
817 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
819 | return NULL; | |
820 | } | |
821 | } | |
822 | { | |
823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
824 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
825 | ||
826 | wxPyEndAllowThreads(__tstate); | |
827 | if (PyErr_Occurred()) return NULL; | |
828 | } _resultobj = Py_BuildValue("i",_result); | |
829 | { | |
830 | if (_obj0) | |
831 | delete _arg0; | |
832 | } | |
833 | { | |
834 | if (_obj1) | |
835 | delete _arg1; | |
836 | } | |
837 | return _resultobj; | |
838 | } | |
839 | ||
840 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
841 | PyObject * _resultobj; | |
842 | long _result; | |
843 | wxString * _arg0; | |
844 | wxString * _arg1; | |
845 | wxString * _arg2; | |
846 | long _arg3; | |
847 | long _arg4 = (long ) 0; | |
848 | long _arg5 = (long ) 100; | |
849 | wxWindow * _arg6 = (wxWindow *) NULL; | |
850 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; | |
851 | PyObject * _obj0 = 0; | |
852 | PyObject * _obj1 = 0; | |
853 | PyObject * _obj2 = 0; | |
854 | PyObject * _argo6 = 0; | |
855 | wxPoint temp; | |
856 | PyObject * _obj7 = 0; | |
857 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
858 | ||
859 | self = self; | |
860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
861 | return NULL; | |
862 | { | |
863 | #if PYTHON_API_VERSION >= 1009 | |
864 | char* tmpPtr; int tmpSize; | |
865 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
866 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
867 | return NULL; | |
868 | } | |
869 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
870 | return NULL; | |
871 | _arg0 = new wxString(tmpPtr, tmpSize); | |
872 | #else | |
873 | if (!PyString_Check(_obj0)) { | |
874 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
875 | return NULL; | |
876 | } | |
877 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
878 | #endif | |
879 | } | |
880 | { | |
881 | #if PYTHON_API_VERSION >= 1009 | |
882 | char* tmpPtr; int tmpSize; | |
883 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
884 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
885 | return NULL; | |
886 | } | |
887 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
888 | return NULL; | |
889 | _arg1 = new wxString(tmpPtr, tmpSize); | |
890 | #else | |
891 | if (!PyString_Check(_obj1)) { | |
892 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
893 | return NULL; | |
894 | } | |
895 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
896 | #endif | |
897 | } | |
898 | { | |
899 | #if PYTHON_API_VERSION >= 1009 | |
900 | char* tmpPtr; int tmpSize; | |
901 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
902 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
903 | return NULL; | |
904 | } | |
905 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
906 | return NULL; | |
907 | _arg2 = new wxString(tmpPtr, tmpSize); | |
908 | #else | |
909 | if (!PyString_Check(_obj2)) { | |
910 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
911 | return NULL; | |
912 | } | |
913 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
914 | #endif | |
915 | } | |
916 | if (_argo6) { | |
917 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
918 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
920 | return NULL; | |
921 | } | |
922 | } | |
923 | if (_obj7) | |
924 | { | |
925 | _arg7 = &temp; | |
926 | if (! wxPoint_helper(_obj7, &_arg7)) | |
927 | return NULL; | |
928 | } | |
929 | { | |
930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
931 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); | |
932 | ||
933 | wxPyEndAllowThreads(__tstate); | |
934 | if (PyErr_Occurred()) return NULL; | |
935 | } _resultobj = Py_BuildValue("l",_result); | |
936 | { | |
937 | if (_obj0) | |
938 | delete _arg0; | |
939 | } | |
940 | { | |
941 | if (_obj1) | |
942 | delete _arg1; | |
943 | } | |
944 | { | |
945 | if (_obj2) | |
946 | delete _arg2; | |
947 | } | |
948 | return _resultobj; | |
949 | } | |
950 | ||
951 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
952 | PyObject * _resultobj; | |
953 | bool _result; | |
954 | char *_kwnames[] = { NULL }; | |
955 | ||
956 | self = self; | |
957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
958 | return NULL; | |
959 | { | |
960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
961 | _result = (bool )wxColourDisplay(); | |
962 | ||
963 | wxPyEndAllowThreads(__tstate); | |
964 | if (PyErr_Occurred()) return NULL; | |
965 | } _resultobj = Py_BuildValue("i",_result); | |
966 | return _resultobj; | |
967 | } | |
968 | ||
969 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
970 | PyObject * _resultobj; | |
971 | int _result; | |
972 | char *_kwnames[] = { NULL }; | |
973 | ||
974 | self = self; | |
975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
976 | return NULL; | |
977 | { | |
978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
979 | _result = (int )wxDisplayDepth(); | |
980 | ||
981 | wxPyEndAllowThreads(__tstate); | |
982 | if (PyErr_Occurred()) return NULL; | |
983 | } _resultobj = Py_BuildValue("i",_result); | |
984 | return _resultobj; | |
985 | } | |
986 | ||
987 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
988 | PyObject * _resultobj; | |
989 | int _result; | |
990 | char *_kwnames[] = { NULL }; | |
991 | ||
992 | self = self; | |
993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
994 | return NULL; | |
995 | { | |
996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
997 | _result = (int )wxGetDisplayDepth(); | |
998 | ||
999 | wxPyEndAllowThreads(__tstate); | |
1000 | if (PyErr_Occurred()) return NULL; | |
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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1024 | wxDisplaySize(_arg0,_arg1); | |
1025 | ||
1026 | wxPyEndAllowThreads(__tstate); | |
1027 | if (PyErr_Occurred()) return NULL; | |
1028 | } Py_INCREF(Py_None); | |
1029 | _resultobj = Py_None; | |
1030 | { | |
1031 | PyObject *o; | |
1032 | o = PyInt_FromLong((long) (*_arg0)); | |
1033 | _resultobj = t_output_helper(_resultobj, o); | |
1034 | } | |
1035 | { | |
1036 | PyObject *o; | |
1037 | o = PyInt_FromLong((long) (*_arg1)); | |
1038 | _resultobj = t_output_helper(_resultobj, o); | |
1039 | } | |
1040 | return _resultobj; | |
1041 | } | |
1042 | ||
1043 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1044 | PyObject * _resultobj; | |
1045 | wxSize * _result; | |
1046 | char *_kwnames[] = { NULL }; | |
1047 | char _ptemp[128]; | |
1048 | ||
1049 | self = self; | |
1050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1051 | return NULL; | |
1052 | { | |
1053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1054 | _result = new wxSize (wxGetDisplaySize()); | |
1055 | ||
1056 | wxPyEndAllowThreads(__tstate); | |
1057 | if (PyErr_Occurred()) return NULL; | |
1058 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1059 | _resultobj = Py_BuildValue("s",_ptemp); | |
1060 | return _resultobj; | |
1061 | } | |
1062 | ||
1063 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1064 | PyObject * _resultobj; | |
1065 | int * _arg0; | |
1066 | int temp; | |
1067 | int * _arg1; | |
1068 | int temp0; | |
1069 | char *_kwnames[] = { NULL }; | |
1070 | ||
1071 | self = self; | |
1072 | { | |
1073 | _arg0 = &temp; | |
1074 | } | |
1075 | { | |
1076 | _arg1 = &temp0; | |
1077 | } | |
1078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1079 | return NULL; | |
1080 | { | |
1081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1082 | wxDisplaySizeMM(_arg0,_arg1); | |
1083 | ||
1084 | wxPyEndAllowThreads(__tstate); | |
1085 | if (PyErr_Occurred()) return NULL; | |
1086 | } Py_INCREF(Py_None); | |
1087 | _resultobj = Py_None; | |
1088 | { | |
1089 | PyObject *o; | |
1090 | o = PyInt_FromLong((long) (*_arg0)); | |
1091 | _resultobj = t_output_helper(_resultobj, o); | |
1092 | } | |
1093 | { | |
1094 | PyObject *o; | |
1095 | o = PyInt_FromLong((long) (*_arg1)); | |
1096 | _resultobj = t_output_helper(_resultobj, o); | |
1097 | } | |
1098 | return _resultobj; | |
1099 | } | |
1100 | ||
1101 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1102 | PyObject * _resultobj; | |
1103 | wxSize * _result; | |
1104 | char *_kwnames[] = { NULL }; | |
1105 | char _ptemp[128]; | |
1106 | ||
1107 | self = self; | |
1108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1109 | return NULL; | |
1110 | { | |
1111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1112 | _result = new wxSize (wxGetDisplaySizeMM()); | |
1113 | ||
1114 | wxPyEndAllowThreads(__tstate); | |
1115 | if (PyErr_Occurred()) return NULL; | |
1116 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1117 | _resultobj = Py_BuildValue("s",_ptemp); | |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
1121 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1122 | PyObject * _resultobj; | |
1123 | int * _arg0; | |
1124 | int temp; | |
1125 | int * _arg1; | |
1126 | int temp0; | |
1127 | int * _arg2; | |
1128 | int temp1; | |
1129 | int * _arg3; | |
1130 | int temp2; | |
1131 | char *_kwnames[] = { NULL }; | |
1132 | ||
1133 | self = self; | |
1134 | { | |
1135 | _arg0 = &temp; | |
1136 | } | |
1137 | { | |
1138 | _arg1 = &temp0; | |
1139 | } | |
1140 | { | |
1141 | _arg2 = &temp1; | |
1142 | } | |
1143 | { | |
1144 | _arg3 = &temp2; | |
1145 | } | |
1146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1147 | return NULL; | |
1148 | { | |
1149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1150 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); | |
1151 | ||
1152 | wxPyEndAllowThreads(__tstate); | |
1153 | if (PyErr_Occurred()) return NULL; | |
1154 | } Py_INCREF(Py_None); | |
1155 | _resultobj = Py_None; | |
1156 | { | |
1157 | PyObject *o; | |
1158 | o = PyInt_FromLong((long) (*_arg0)); | |
1159 | _resultobj = t_output_helper(_resultobj, o); | |
1160 | } | |
1161 | { | |
1162 | PyObject *o; | |
1163 | o = PyInt_FromLong((long) (*_arg1)); | |
1164 | _resultobj = t_output_helper(_resultobj, o); | |
1165 | } | |
1166 | { | |
1167 | PyObject *o; | |
1168 | o = PyInt_FromLong((long) (*_arg2)); | |
1169 | _resultobj = t_output_helper(_resultobj, o); | |
1170 | } | |
1171 | { | |
1172 | PyObject *o; | |
1173 | o = PyInt_FromLong((long) (*_arg3)); | |
1174 | _resultobj = t_output_helper(_resultobj, o); | |
1175 | } | |
1176 | return _resultobj; | |
1177 | } | |
1178 | ||
1179 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1180 | PyObject * _resultobj; | |
1181 | wxRect * _result; | |
1182 | char *_kwnames[] = { NULL }; | |
1183 | char _ptemp[128]; | |
1184 | ||
1185 | self = self; | |
1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1187 | return NULL; | |
1188 | { | |
1189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1190 | _result = new wxRect (wxGetClientDisplayRect()); | |
1191 | ||
1192 | wxPyEndAllowThreads(__tstate); | |
1193 | if (PyErr_Occurred()) return NULL; | |
1194 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1195 | _resultobj = Py_BuildValue("s",_ptemp); | |
1196 | return _resultobj; | |
1197 | } | |
1198 | ||
1199 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1200 | PyObject * _resultobj; | |
1201 | wxCursor * _arg0; | |
1202 | PyObject * _argo0 = 0; | |
1203 | char *_kwnames[] = { "cursor", NULL }; | |
1204 | ||
1205 | self = self; | |
1206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1207 | return NULL; | |
1208 | if (_argo0) { | |
1209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1212 | return NULL; | |
1213 | } | |
1214 | } | |
1215 | { | |
1216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1217 | wxSetCursor(*_arg0); | |
1218 | ||
1219 | wxPyEndAllowThreads(__tstate); | |
1220 | if (PyErr_Occurred()) return NULL; | |
1221 | } Py_INCREF(Py_None); | |
1222 | _resultobj = Py_None; | |
1223 | return _resultobj; | |
1224 | } | |
1225 | ||
1226 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1227 | PyObject * _resultobj; | |
1228 | wxWindow * _result; | |
1229 | wxString * _arg0; | |
1230 | wxWindow * _arg1 = (wxWindow *) NULL; | |
1231 | PyObject * _obj0 = 0; | |
1232 | PyObject * _argo1 = 0; | |
1233 | char *_kwnames[] = { "label","parent", NULL }; | |
1234 | ||
1235 | self = self; | |
1236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) | |
1237 | return NULL; | |
1238 | { | |
1239 | #if PYTHON_API_VERSION >= 1009 | |
1240 | char* tmpPtr; int tmpSize; | |
1241 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1242 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1243 | return NULL; | |
1244 | } | |
1245 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1246 | return NULL; | |
1247 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1248 | #else | |
1249 | if (!PyString_Check(_obj0)) { | |
1250 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1251 | return NULL; | |
1252 | } | |
1253 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
1254 | #endif | |
1255 | } | |
1256 | if (_argo1) { | |
1257 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1258 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); | |
1260 | return NULL; | |
1261 | } | |
1262 | } | |
1263 | { | |
1264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1265 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
1266 | ||
1267 | wxPyEndAllowThreads(__tstate); | |
1268 | if (PyErr_Occurred()) return NULL; | |
1269 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1270 | { | |
1271 | if (_obj0) | |
1272 | delete _arg0; | |
1273 | } | |
1274 | return _resultobj; | |
1275 | } | |
1276 | ||
1277 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1278 | PyObject * _resultobj; | |
1279 | wxWindow * _result; | |
1280 | wxString * _arg0; | |
1281 | wxWindow * _arg1 = (wxWindow *) NULL; | |
1282 | PyObject * _obj0 = 0; | |
1283 | PyObject * _argo1 = 0; | |
1284 | char *_kwnames[] = { "name","parent", NULL }; | |
1285 | ||
1286 | self = self; | |
1287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) | |
1288 | return NULL; | |
1289 | { | |
1290 | #if PYTHON_API_VERSION >= 1009 | |
1291 | char* tmpPtr; int tmpSize; | |
1292 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1293 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1294 | return NULL; | |
1295 | } | |
1296 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1297 | return NULL; | |
1298 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1299 | #else | |
1300 | if (!PyString_Check(_obj0)) { | |
1301 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1302 | return NULL; | |
1303 | } | |
1304 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
1305 | #endif | |
1306 | } | |
1307 | if (_argo1) { | |
1308 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1309 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); | |
1311 | return NULL; | |
1312 | } | |
1313 | } | |
1314 | { | |
1315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1316 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
1317 | ||
1318 | wxPyEndAllowThreads(__tstate); | |
1319 | if (PyErr_Occurred()) return NULL; | |
1320 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1321 | { | |
1322 | if (_obj0) | |
1323 | delete _arg0; | |
1324 | } | |
1325 | return _resultobj; | |
1326 | } | |
1327 | ||
1328 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1329 | PyObject * _resultobj; | |
1330 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1331 | PyObject * _argo0 = 0; | |
1332 | char *_kwnames[] = { "cursor", NULL }; | |
1333 | ||
1334 | self = self; | |
1335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1336 | return NULL; | |
1337 | if (_argo0) { | |
1338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1341 | return NULL; | |
1342 | } | |
1343 | } | |
1344 | { | |
1345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1346 | wxBeginBusyCursor(_arg0); | |
1347 | ||
1348 | wxPyEndAllowThreads(__tstate); | |
1349 | if (PyErr_Occurred()) return NULL; | |
1350 | } Py_INCREF(Py_None); | |
1351 | _resultobj = Py_None; | |
1352 | return _resultobj; | |
1353 | } | |
1354 | ||
1355 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1356 | PyObject * _resultobj; | |
1357 | wxWindow * _result; | |
1358 | char *_kwnames[] = { NULL }; | |
1359 | ||
1360 | self = self; | |
1361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1362 | return NULL; | |
1363 | { | |
1364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1365 | _result = (wxWindow *)wxGetActiveWindow(); | |
1366 | ||
1367 | wxPyEndAllowThreads(__tstate); | |
1368 | if (PyErr_Occurred()) return NULL; | |
1369 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1370 | return _resultobj; | |
1371 | } | |
1372 | ||
1373 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1374 | PyObject * _resultobj; | |
1375 | wxWindow * _result; | |
1376 | wxPoint * _arg0; | |
1377 | wxPoint temp; | |
1378 | PyObject * _obj0 = 0; | |
1379 | char *_kwnames[] = { "pt", NULL }; | |
1380 | ||
1381 | self = self; | |
1382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1383 | return NULL; | |
1384 | { | |
1385 | _arg0 = &temp; | |
1386 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1387 | return NULL; | |
1388 | } | |
1389 | { | |
1390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1391 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); | |
1392 | ||
1393 | wxPyEndAllowThreads(__tstate); | |
1394 | if (PyErr_Occurred()) return NULL; | |
1395 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1396 | return _resultobj; | |
1397 | } | |
1398 | ||
1399 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1400 | PyObject * _resultobj; | |
1401 | wxWindow * _result; | |
1402 | wxPoint * _arg0; | |
1403 | wxPoint temp; | |
1404 | PyObject * _obj0 = 0; | |
1405 | char *_kwnames[] = { "pt", NULL }; | |
1406 | ||
1407 | self = self; | |
1408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1409 | return NULL; | |
1410 | { | |
1411 | _arg0 = &temp; | |
1412 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1413 | return NULL; | |
1414 | } | |
1415 | { | |
1416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1417 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); | |
1418 | ||
1419 | wxPyEndAllowThreads(__tstate); | |
1420 | if (PyErr_Occurred()) return NULL; | |
1421 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1422 | return _resultobj; | |
1423 | } | |
1424 | ||
1425 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1426 | PyObject * _resultobj; | |
1427 | bool _result; | |
1428 | wxWindow * _arg0; | |
1429 | PyObject * _argo0 = 0; | |
1430 | char *_kwnames[] = { "wnd", NULL }; | |
1431 | ||
1432 | self = self; | |
1433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1434 | return NULL; | |
1435 | if (_argo0) { | |
1436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1439 | return NULL; | |
1440 | } | |
1441 | } | |
1442 | { | |
1443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1444 | _result = (bool )wxCheckForInterrupt(_arg0); | |
1445 | ||
1446 | wxPyEndAllowThreads(__tstate); | |
1447 | if (PyErr_Occurred()) return NULL; | |
1448 | } _resultobj = Py_BuildValue("i",_result); | |
1449 | return _resultobj; | |
1450 | } | |
1451 | ||
1452 | static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1453 | PyObject * _resultobj; | |
1454 | char *_kwnames[] = { NULL }; | |
1455 | ||
1456 | self = self; | |
1457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames)) | |
1458 | return NULL; | |
1459 | { | |
1460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1461 | wxFlushEvents(); | |
1462 | ||
1463 | wxPyEndAllowThreads(__tstate); | |
1464 | if (PyErr_Occurred()) return NULL; | |
1465 | } Py_INCREF(Py_None); | |
1466 | _resultobj = Py_None; | |
1467 | return _resultobj; | |
1468 | } | |
1469 | ||
1470 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1471 | PyObject * _resultobj; | |
1472 | bool _result; | |
1473 | char * _arg0; | |
1474 | int _arg1; | |
1475 | char *_kwnames[] = { "name","value", NULL }; | |
1476 | ||
1477 | self = self; | |
1478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1479 | return NULL; | |
1480 | { | |
1481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1482 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); | |
1483 | ||
1484 | wxPyEndAllowThreads(__tstate); | |
1485 | if (PyErr_Occurred()) return NULL; | |
1486 | } _resultobj = Py_BuildValue("i",_result); | |
1487 | return _resultobj; | |
1488 | } | |
1489 | ||
1490 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1491 | PyObject * _resultobj; | |
1492 | char *_kwnames[] = { NULL }; | |
1493 | ||
1494 | self = self; | |
1495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1496 | return NULL; | |
1497 | { | |
1498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1499 | wxResourceClear(); | |
1500 | ||
1501 | wxPyEndAllowThreads(__tstate); | |
1502 | if (PyErr_Occurred()) return NULL; | |
1503 | } Py_INCREF(Py_None); | |
1504 | _resultobj = Py_None; | |
1505 | return _resultobj; | |
1506 | } | |
1507 | ||
1508 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | wxBitmap * _result; | |
1511 | char * _arg0; | |
1512 | char *_kwnames[] = { "resource", NULL }; | |
1513 | char _ptemp[128]; | |
1514 | ||
1515 | self = self; | |
1516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1517 | return NULL; | |
1518 | { | |
1519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1520 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); | |
1521 | ||
1522 | wxPyEndAllowThreads(__tstate); | |
1523 | if (PyErr_Occurred()) return NULL; | |
1524 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1525 | _resultobj = Py_BuildValue("s",_ptemp); | |
1526 | return _resultobj; | |
1527 | } | |
1528 | ||
1529 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1530 | PyObject * _resultobj; | |
1531 | wxIcon * _result; | |
1532 | char * _arg0; | |
1533 | char *_kwnames[] = { "resource", NULL }; | |
1534 | char _ptemp[128]; | |
1535 | ||
1536 | self = self; | |
1537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1538 | return NULL; | |
1539 | { | |
1540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1541 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); | |
1542 | ||
1543 | wxPyEndAllowThreads(__tstate); | |
1544 | if (PyErr_Occurred()) return NULL; | |
1545 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
1546 | _resultobj = Py_BuildValue("s",_ptemp); | |
1547 | return _resultobj; | |
1548 | } | |
1549 | ||
1550 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1551 | PyObject * _resultobj; | |
1552 | wxMenuBar * _result; | |
1553 | char * _arg0; | |
1554 | char *_kwnames[] = { "resource", NULL }; | |
1555 | ||
1556 | self = self; | |
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1558 | return NULL; | |
1559 | { | |
1560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1561 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); | |
1562 | ||
1563 | wxPyEndAllowThreads(__tstate); | |
1564 | if (PyErr_Occurred()) return NULL; | |
1565 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1566 | return _resultobj; | |
1567 | } | |
1568 | ||
1569 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1570 | PyObject * _resultobj; | |
1571 | int _result; | |
1572 | char * _arg0; | |
1573 | char *_kwnames[] = { "name", NULL }; | |
1574 | ||
1575 | self = self; | |
1576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1577 | return NULL; | |
1578 | { | |
1579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1580 | _result = (int )wxResourceGetIdentifier(_arg0); | |
1581 | ||
1582 | wxPyEndAllowThreads(__tstate); | |
1583 | if (PyErr_Occurred()) return NULL; | |
1584 | } _resultobj = Py_BuildValue("i",_result); | |
1585 | return _resultobj; | |
1586 | } | |
1587 | ||
1588 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1589 | PyObject * _resultobj; | |
1590 | bool _result; | |
1591 | char * _arg0; | |
1592 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1593 | PyObject * _argo1 = 0; | |
1594 | char *_kwnames[] = { "resource","table", NULL }; | |
1595 | ||
1596 | self = self; | |
1597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1598 | return NULL; | |
1599 | if (_argo1) { | |
1600 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1601 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1603 | return NULL; | |
1604 | } | |
1605 | } | |
1606 | { | |
1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1608 | _result = (bool )wxResourceParseData(_arg0,_arg1); | |
1609 | ||
1610 | wxPyEndAllowThreads(__tstate); | |
1611 | if (PyErr_Occurred()) return NULL; | |
1612 | } _resultobj = Py_BuildValue("i",_result); | |
1613 | return _resultobj; | |
1614 | } | |
1615 | ||
1616 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject * _resultobj; | |
1618 | bool _result; | |
1619 | char * _arg0; | |
1620 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1621 | PyObject * _argo1 = 0; | |
1622 | char *_kwnames[] = { "filename","table", NULL }; | |
1623 | ||
1624 | self = self; | |
1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1626 | return NULL; | |
1627 | if (_argo1) { | |
1628 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1629 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1631 | return NULL; | |
1632 | } | |
1633 | } | |
1634 | { | |
1635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1636 | _result = (bool )wxResourceParseFile(_arg0,_arg1); | |
1637 | ||
1638 | wxPyEndAllowThreads(__tstate); | |
1639 | if (PyErr_Occurred()) return NULL; | |
1640 | } _resultobj = Py_BuildValue("i",_result); | |
1641 | return _resultobj; | |
1642 | } | |
1643 | ||
1644 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1645 | PyObject * _resultobj; | |
1646 | bool _result; | |
1647 | char * _arg0; | |
1648 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1649 | PyObject * _argo1 = 0; | |
1650 | char *_kwnames[] = { "resource","table", NULL }; | |
1651 | ||
1652 | self = self; | |
1653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1654 | return NULL; | |
1655 | if (_argo1) { | |
1656 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1657 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1659 | return NULL; | |
1660 | } | |
1661 | } | |
1662 | { | |
1663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1664 | _result = (bool )wxResourceParseString(_arg0,_arg1); | |
1665 | ||
1666 | wxPyEndAllowThreads(__tstate); | |
1667 | if (PyErr_Occurred()) return NULL; | |
1668 | } _resultobj = Py_BuildValue("i",_result); | |
1669 | return _resultobj; | |
1670 | } | |
1671 | ||
1672 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1673 | PyObject * _resultobj; | |
1674 | int _result; | |
1675 | char *_kwnames[] = { NULL }; | |
1676 | ||
1677 | self = self; | |
1678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1679 | return NULL; | |
1680 | { | |
1681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1682 | _result = (int )wxCaret_GetBlinkTime(); | |
1683 | ||
1684 | wxPyEndAllowThreads(__tstate); | |
1685 | if (PyErr_Occurred()) return NULL; | |
1686 | } _resultobj = Py_BuildValue("i",_result); | |
1687 | return _resultobj; | |
1688 | } | |
1689 | ||
1690 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1691 | PyObject * _resultobj; | |
1692 | int _arg0; | |
1693 | char *_kwnames[] = { "milliseconds", NULL }; | |
1694 | ||
1695 | self = self; | |
1696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1697 | return NULL; | |
1698 | { | |
1699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1700 | wxCaret_SetBlinkTime(_arg0); | |
1701 | ||
1702 | wxPyEndAllowThreads(__tstate); | |
1703 | if (PyErr_Occurred()) return NULL; | |
1704 | } Py_INCREF(Py_None); | |
1705 | _resultobj = Py_None; | |
1706 | return _resultobj; | |
1707 | } | |
1708 | ||
1709 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1710 | PyObject * _resultobj; | |
1711 | bool _result; | |
1712 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1713 | PyObject * _argo0 = 0; | |
1714 | char *_kwnames[] = { "win", NULL }; | |
1715 | ||
1716 | self = self; | |
1717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1718 | return NULL; | |
1719 | if (_argo0) { | |
1720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1723 | return NULL; | |
1724 | } | |
1725 | } | |
1726 | { | |
1727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1728 | _result = (bool )wxSafeYield(_arg0); | |
1729 | ||
1730 | wxPyEndAllowThreads(__tstate); | |
1731 | if (PyErr_Occurred()) return NULL; | |
1732 | } _resultobj = Py_BuildValue("i",_result); | |
1733 | return _resultobj; | |
1734 | } | |
1735 | ||
1736 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject * _resultobj; | |
1738 | wxEvtHandler * _arg0; | |
1739 | wxEvent * _arg1; | |
1740 | PyObject * _argo0 = 0; | |
1741 | PyObject * _argo1 = 0; | |
1742 | char *_kwnames[] = { "dest","event", NULL }; | |
1743 | ||
1744 | self = self; | |
1745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1746 | return NULL; | |
1747 | if (_argo0) { | |
1748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1751 | return NULL; | |
1752 | } | |
1753 | } | |
1754 | if (_argo1) { | |
1755 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1756 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1758 | return NULL; | |
1759 | } | |
1760 | } | |
1761 | { | |
1762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1763 | wxPostEvent(_arg0,*_arg1); | |
1764 | ||
1765 | wxPyEndAllowThreads(__tstate); | |
1766 | if (PyErr_Occurred()) return NULL; | |
1767 | } Py_INCREF(Py_None); | |
1768 | _resultobj = Py_None; | |
1769 | return _resultobj; | |
1770 | } | |
1771 | ||
1772 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1773 | PyObject * _resultobj; | |
1774 | char *_kwnames[] = { NULL }; | |
1775 | ||
1776 | self = self; | |
1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1778 | return NULL; | |
1779 | { | |
1780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1781 | wxWakeUpIdle(); | |
1782 | ||
1783 | wxPyEndAllowThreads(__tstate); | |
1784 | if (PyErr_Occurred()) return NULL; | |
1785 | } Py_INCREF(Py_None); | |
1786 | _resultobj = Py_None; | |
1787 | return _resultobj; | |
1788 | } | |
1789 | ||
1790 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1791 | PyObject * _resultobj; | |
1792 | char *_kwnames[] = { NULL }; | |
1793 | ||
1794 | self = self; | |
1795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) | |
1796 | return NULL; | |
1797 | { | |
1798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1799 | wxWakeUpMainThread(); | |
1800 | ||
1801 | wxPyEndAllowThreads(__tstate); | |
1802 | if (PyErr_Occurred()) return NULL; | |
1803 | } Py_INCREF(Py_None); | |
1804 | _resultobj = Py_None; | |
1805 | return _resultobj; | |
1806 | } | |
1807 | ||
1808 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1809 | PyObject * _resultobj; | |
1810 | char *_kwnames[] = { NULL }; | |
1811 | ||
1812 | self = self; | |
1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
1814 | return NULL; | |
1815 | { | |
1816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1817 | wxMutexGuiEnter(); | |
1818 | ||
1819 | wxPyEndAllowThreads(__tstate); | |
1820 | if (PyErr_Occurred()) return NULL; | |
1821 | } Py_INCREF(Py_None); | |
1822 | _resultobj = Py_None; | |
1823 | return _resultobj; | |
1824 | } | |
1825 | ||
1826 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1827 | PyObject * _resultobj; | |
1828 | char *_kwnames[] = { NULL }; | |
1829 | ||
1830 | self = self; | |
1831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1832 | return NULL; | |
1833 | { | |
1834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1835 | wxMutexGuiLeave(); | |
1836 | ||
1837 | wxPyEndAllowThreads(__tstate); | |
1838 | if (PyErr_Occurred()) return NULL; | |
1839 | } Py_INCREF(Py_None); | |
1840 | _resultobj = Py_None; | |
1841 | return _resultobj; | |
1842 | } | |
1843 | ||
1844 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1845 | PyObject * _resultobj; | |
1846 | bool _result; | |
1847 | char *_kwnames[] = { NULL }; | |
1848 | ||
1849 | self = self; | |
1850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1851 | return NULL; | |
1852 | { | |
1853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1854 | _result = (bool )wxThread_IsMain(); | |
1855 | ||
1856 | wxPyEndAllowThreads(__tstate); | |
1857 | if (PyErr_Occurred()) return NULL; | |
1858 | } _resultobj = Py_BuildValue("i",_result); | |
1859 | return _resultobj; | |
1860 | } | |
1861 | ||
1862 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1863 | PyObject * _resultobj; | |
1864 | bool _result; | |
1865 | wxWindow * _arg0; | |
1866 | wxTipProvider * _arg1; | |
1867 | bool _arg2 = (bool ) TRUE; | |
1868 | PyObject * _argo0 = 0; | |
1869 | PyObject * _argo1 = 0; | |
1870 | int tempbool2 = (int) TRUE; | |
1871 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1872 | ||
1873 | self = self; | |
1874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1875 | return NULL; | |
1876 | if (_argo0) { | |
1877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1880 | return NULL; | |
1881 | } | |
1882 | } | |
1883 | if (_argo1) { | |
1884 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1885 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1887 | return NULL; | |
1888 | } | |
1889 | } | |
1890 | _arg2 = (bool ) tempbool2; | |
1891 | { | |
1892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1893 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); | |
1894 | ||
1895 | wxPyEndAllowThreads(__tstate); | |
1896 | if (PyErr_Occurred()) return NULL; | |
1897 | } _resultobj = Py_BuildValue("i",_result); | |
1898 | return _resultobj; | |
1899 | } | |
1900 | ||
1901 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1902 | PyObject * _resultobj; | |
1903 | wxTipProvider * _result; | |
1904 | wxString * _arg0; | |
1905 | size_t _arg1; | |
1906 | PyObject * _obj0 = 0; | |
1907 | char *_kwnames[] = { "filename","currentTip", NULL }; | |
1908 | char _ptemp[128]; | |
1909 | ||
1910 | self = self; | |
1911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) | |
1912 | return NULL; | |
1913 | { | |
1914 | #if PYTHON_API_VERSION >= 1009 | |
1915 | char* tmpPtr; int tmpSize; | |
1916 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1917 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1918 | return NULL; | |
1919 | } | |
1920 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1921 | return NULL; | |
1922 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1923 | #else | |
1924 | if (!PyString_Check(_obj0)) { | |
1925 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1926 | return NULL; | |
1927 | } | |
1928 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
1929 | #endif | |
1930 | } | |
1931 | { | |
1932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1933 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); | |
1934 | ||
1935 | wxPyEndAllowThreads(__tstate); | |
1936 | if (PyErr_Occurred()) return NULL; | |
1937 | } if (_result) { | |
1938 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); | |
1939 | _resultobj = Py_BuildValue("s",_ptemp); | |
1940 | } else { | |
1941 | Py_INCREF(Py_None); | |
1942 | _resultobj = Py_None; | |
1943 | } | |
1944 | { | |
1945 | if (_obj0) | |
1946 | delete _arg0; | |
1947 | } | |
1948 | return _resultobj; | |
1949 | } | |
1950 | ||
1951 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1952 | PyObject * _resultobj; | |
1953 | unsigned long _result; | |
1954 | char *_kwnames[] = { NULL }; | |
1955 | ||
1956 | self = self; | |
1957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) | |
1958 | return NULL; | |
1959 | { | |
1960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1961 | _result = (unsigned long )wxSysErrorCode(); | |
1962 | ||
1963 | wxPyEndAllowThreads(__tstate); | |
1964 | if (PyErr_Occurred()) return NULL; | |
1965 | } _resultobj = Py_BuildValue("l",_result); | |
1966 | return _resultobj; | |
1967 | } | |
1968 | ||
1969 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1970 | PyObject * _resultobj; | |
1971 | char * _result; | |
1972 | unsigned long _arg0 = (unsigned long ) 0; | |
1973 | char *_kwnames[] = { "nErrCode", NULL }; | |
1974 | ||
1975 | self = self; | |
1976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) | |
1977 | return NULL; | |
1978 | { | |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | _result = (char *)wxSysErrorMsg(_arg0); | |
1981 | ||
1982 | wxPyEndAllowThreads(__tstate); | |
1983 | if (PyErr_Occurred()) return NULL; | |
1984 | } _resultobj = Py_BuildValue("s", _result); | |
1985 | return _resultobj; | |
1986 | } | |
1987 | ||
1988 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1989 | PyObject * _resultobj; | |
1990 | char * _arg0; | |
1991 | char *_kwnames[] = { "szFormat", NULL }; | |
1992 | ||
1993 | self = self; | |
1994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogFatalError",_kwnames,&_arg0)) | |
1995 | return NULL; | |
1996 | { | |
1997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1998 | wxLogFatalError(_arg0); | |
1999 | ||
2000 | wxPyEndAllowThreads(__tstate); | |
2001 | if (PyErr_Occurred()) return NULL; | |
2002 | } Py_INCREF(Py_None); | |
2003 | _resultobj = Py_None; | |
2004 | return _resultobj; | |
2005 | } | |
2006 | ||
2007 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2008 | PyObject * _resultobj; | |
2009 | char * _arg0; | |
2010 | char *_kwnames[] = { "szFormat", NULL }; | |
2011 | ||
2012 | self = self; | |
2013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogError",_kwnames,&_arg0)) | |
2014 | return NULL; | |
2015 | { | |
2016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2017 | wxLogError(_arg0); | |
2018 | ||
2019 | wxPyEndAllowThreads(__tstate); | |
2020 | if (PyErr_Occurred()) return NULL; | |
2021 | } Py_INCREF(Py_None); | |
2022 | _resultobj = Py_None; | |
2023 | return _resultobj; | |
2024 | } | |
2025 | ||
2026 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2027 | PyObject * _resultobj; | |
2028 | char * _arg0; | |
2029 | char *_kwnames[] = { "szFormat", NULL }; | |
2030 | ||
2031 | self = self; | |
2032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogWarning",_kwnames,&_arg0)) | |
2033 | return NULL; | |
2034 | { | |
2035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2036 | wxLogWarning(_arg0); | |
2037 | ||
2038 | wxPyEndAllowThreads(__tstate); | |
2039 | if (PyErr_Occurred()) return NULL; | |
2040 | } Py_INCREF(Py_None); | |
2041 | _resultobj = Py_None; | |
2042 | return _resultobj; | |
2043 | } | |
2044 | ||
2045 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2046 | PyObject * _resultobj; | |
2047 | char * _arg0; | |
2048 | char *_kwnames[] = { "szFormat", NULL }; | |
2049 | ||
2050 | self = self; | |
2051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogMessage",_kwnames,&_arg0)) | |
2052 | return NULL; | |
2053 | { | |
2054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2055 | wxLogMessage(_arg0); | |
2056 | ||
2057 | wxPyEndAllowThreads(__tstate); | |
2058 | if (PyErr_Occurred()) return NULL; | |
2059 | } Py_INCREF(Py_None); | |
2060 | _resultobj = Py_None; | |
2061 | return _resultobj; | |
2062 | } | |
2063 | ||
2064 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2065 | PyObject * _resultobj; | |
2066 | char * _arg0; | |
2067 | char *_kwnames[] = { "szFormat", NULL }; | |
2068 | ||
2069 | self = self; | |
2070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogInfo",_kwnames,&_arg0)) | |
2071 | return NULL; | |
2072 | { | |
2073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2074 | wxLogInfo(_arg0); | |
2075 | ||
2076 | wxPyEndAllowThreads(__tstate); | |
2077 | if (PyErr_Occurred()) return NULL; | |
2078 | } Py_INCREF(Py_None); | |
2079 | _resultobj = Py_None; | |
2080 | return _resultobj; | |
2081 | } | |
2082 | ||
2083 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2084 | PyObject * _resultobj; | |
2085 | char * _arg0; | |
2086 | char *_kwnames[] = { "szFormat", NULL }; | |
2087 | ||
2088 | self = self; | |
2089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogVerbose",_kwnames,&_arg0)) | |
2090 | return NULL; | |
2091 | { | |
2092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2093 | wxLogVerbose(_arg0); | |
2094 | ||
2095 | wxPyEndAllowThreads(__tstate); | |
2096 | if (PyErr_Occurred()) return NULL; | |
2097 | } Py_INCREF(Py_None); | |
2098 | _resultobj = Py_None; | |
2099 | return _resultobj; | |
2100 | } | |
2101 | ||
2102 | static PyObject *_wrap_wxLogStatus(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:wxLogStatus",_kwnames,&_arg0)) | |
2109 | return NULL; | |
2110 | { | |
2111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2112 | wxLogStatus(_arg0); | |
2113 | ||
2114 | wxPyEndAllowThreads(__tstate); | |
2115 | if (PyErr_Occurred()) return NULL; | |
2116 | } Py_INCREF(Py_None); | |
2117 | _resultobj = Py_None; | |
2118 | return _resultobj; | |
2119 | } | |
2120 | ||
2121 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2122 | PyObject * _resultobj; | |
2123 | wxFrame * _arg0; | |
2124 | char * _arg1; | |
2125 | PyObject * _argo0 = 0; | |
2126 | char *_kwnames[] = { "pFrame","szFormat", NULL }; | |
2127 | ||
2128 | self = self; | |
2129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxLogStatusFrame",_kwnames,&_argo0,&_arg1)) | |
2130 | return NULL; | |
2131 | if (_argo0) { | |
2132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2135 | return NULL; | |
2136 | } | |
2137 | } | |
2138 | { | |
2139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2140 | wxLogStatus(_arg0,_arg1); | |
2141 | ||
2142 | wxPyEndAllowThreads(__tstate); | |
2143 | if (PyErr_Occurred()) return NULL; | |
2144 | } Py_INCREF(Py_None); | |
2145 | _resultobj = Py_None; | |
2146 | return _resultobj; | |
2147 | } | |
2148 | ||
2149 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2150 | PyObject * _resultobj; | |
2151 | char * _arg0; | |
2152 | char *_kwnames[] = { "szFormat", NULL }; | |
2153 | ||
2154 | self = self; | |
2155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogSysError",_kwnames,&_arg0)) | |
2156 | return NULL; | |
2157 | { | |
2158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2159 | wxLogSysError(_arg0); | |
2160 | ||
2161 | wxPyEndAllowThreads(__tstate); | |
2162 | if (PyErr_Occurred()) return NULL; | |
2163 | } Py_INCREF(Py_None); | |
2164 | _resultobj = Py_None; | |
2165 | return _resultobj; | |
2166 | } | |
2167 | ||
2168 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2169 | PyObject * _resultobj; | |
2170 | long _result; | |
2171 | wxString * _arg0; | |
2172 | int _arg1 = (int ) FALSE; | |
2173 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; | |
2174 | PyObject * _obj0 = 0; | |
2175 | PyObject * _argo2 = 0; | |
2176 | char *_kwnames[] = { "command","sync","process", NULL }; | |
2177 | ||
2178 | self = self; | |
2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2180 | return NULL; | |
2181 | { | |
2182 | #if PYTHON_API_VERSION >= 1009 | |
2183 | char* tmpPtr; int tmpSize; | |
2184 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2185 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2186 | return NULL; | |
2187 | } | |
2188 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2189 | return NULL; | |
2190 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2191 | #else | |
2192 | if (!PyString_Check(_obj0)) { | |
2193 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2194 | return NULL; | |
2195 | } | |
2196 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2197 | #endif | |
2198 | } | |
2199 | if (_argo2) { | |
2200 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2201 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2203 | return NULL; | |
2204 | } | |
2205 | } | |
2206 | { | |
2207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2208 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); | |
2209 | ||
2210 | wxPyEndAllowThreads(__tstate); | |
2211 | if (PyErr_Occurred()) return NULL; | |
2212 | } _resultobj = Py_BuildValue("l",_result); | |
2213 | { | |
2214 | if (_obj0) | |
2215 | delete _arg0; | |
2216 | } | |
2217 | return _resultobj; | |
2218 | } | |
2219 | ||
2220 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2221 | PyObject * _resultobj; | |
2222 | wxWave * _result; | |
2223 | wxString * _arg0; | |
2224 | PyObject * _obj0 = 0; | |
2225 | char *_kwnames[] = { "data", NULL }; | |
2226 | char _ptemp[128]; | |
2227 | ||
2228 | self = self; | |
2229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2230 | return NULL; | |
2231 | { | |
2232 | #if PYTHON_API_VERSION >= 1009 | |
2233 | char* tmpPtr; int tmpSize; | |
2234 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2235 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2236 | return NULL; | |
2237 | } | |
2238 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2239 | return NULL; | |
2240 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2241 | #else | |
2242 | if (!PyString_Check(_obj0)) { | |
2243 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2244 | return NULL; | |
2245 | } | |
2246 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2247 | #endif | |
2248 | } | |
2249 | { | |
2250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2251 | _result = (wxWave *)wxWaveData(*_arg0); | |
2252 | ||
2253 | wxPyEndAllowThreads(__tstate); | |
2254 | if (PyErr_Occurred()) return NULL; | |
2255 | } if (_result) { | |
2256 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2257 | _resultobj = Py_BuildValue("s",_ptemp); | |
2258 | } else { | |
2259 | Py_INCREF(Py_None); | |
2260 | _resultobj = Py_None; | |
2261 | } | |
2262 | { | |
2263 | if (_obj0) | |
2264 | delete _arg0; | |
2265 | } | |
2266 | return _resultobj; | |
2267 | } | |
2268 | ||
2269 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { | |
2270 | ||
2271 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2272 | return 1; | |
2273 | } | |
2274 | ||
2275 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2276 | PyObject * pyobj; | |
2277 | char ptemp[128]; | |
2278 | ||
2279 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2280 | pyobj = PyString_FromString(ptemp); | |
2281 | return pyobj; | |
2282 | } | |
2283 | ||
2284 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2285 | PyObject * _resultobj; | |
2286 | wxColour * _result; | |
2287 | wxSystemColour _arg0; | |
2288 | char *_kwnames[] = { "index", NULL }; | |
2289 | char _ptemp[128]; | |
2290 | ||
2291 | self = self; | |
2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2293 | return NULL; | |
2294 | { | |
2295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2296 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); | |
2297 | ||
2298 | wxPyEndAllowThreads(__tstate); | |
2299 | if (PyErr_Occurred()) return NULL; | |
2300 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2301 | _resultobj = Py_BuildValue("s",_ptemp); | |
2302 | return _resultobj; | |
2303 | } | |
2304 | ||
2305 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2306 | PyObject * _resultobj; | |
2307 | wxFont * _result; | |
2308 | wxSystemFont _arg0; | |
2309 | char *_kwnames[] = { "index", NULL }; | |
2310 | char _ptemp[128]; | |
2311 | ||
2312 | self = self; | |
2313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2314 | return NULL; | |
2315 | { | |
2316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2317 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); | |
2318 | ||
2319 | wxPyEndAllowThreads(__tstate); | |
2320 | if (PyErr_Occurred()) return NULL; | |
2321 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2322 | _resultobj = Py_BuildValue("s",_ptemp); | |
2323 | return _resultobj; | |
2324 | } | |
2325 | ||
2326 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2327 | PyObject * _resultobj; | |
2328 | int _result; | |
2329 | wxSystemMetric _arg0; | |
2330 | char *_kwnames[] = { "index", NULL }; | |
2331 | ||
2332 | self = self; | |
2333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2334 | return NULL; | |
2335 | { | |
2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2337 | _result = (int )wxSystemSettings::GetMetric(_arg0); | |
2338 | ||
2339 | wxPyEndAllowThreads(__tstate); | |
2340 | if (PyErr_Occurred()) return NULL; | |
2341 | } _resultobj = Py_BuildValue("i",_result); | |
2342 | return _resultobj; | |
2343 | } | |
2344 | ||
2345 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2346 | PyObject * _resultobj; | |
2347 | bool _result; | |
2348 | wxSystemFeature _arg0; | |
2349 | char *_kwnames[] = { "index", NULL }; | |
2350 | ||
2351 | self = self; | |
2352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2353 | return NULL; | |
2354 | { | |
2355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2356 | _result = (bool )wxSystemSettings::HasFeature(_arg0); | |
2357 | ||
2358 | wxPyEndAllowThreads(__tstate); | |
2359 | if (PyErr_Occurred()) return NULL; | |
2360 | } _resultobj = Py_BuildValue("i",_result); | |
2361 | return _resultobj; | |
2362 | } | |
2363 | ||
2364 | static void *SwigwxToolTipTowxObject(void *ptr) { | |
2365 | wxToolTip *src; | |
2366 | wxObject *dest; | |
2367 | src = (wxToolTip *) ptr; | |
2368 | dest = (wxObject *) src; | |
2369 | return (void *) dest; | |
2370 | } | |
2371 | ||
2372 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) | |
2373 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2374 | PyObject * _resultobj; | |
2375 | wxToolTip * _result; | |
2376 | wxString * _arg0; | |
2377 | PyObject * _obj0 = 0; | |
2378 | char *_kwnames[] = { "tip", NULL }; | |
2379 | char _ptemp[128]; | |
2380 | ||
2381 | self = self; | |
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2383 | return NULL; | |
2384 | { | |
2385 | #if PYTHON_API_VERSION >= 1009 | |
2386 | char* tmpPtr; int tmpSize; | |
2387 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2388 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2389 | return NULL; | |
2390 | } | |
2391 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2392 | return NULL; | |
2393 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2394 | #else | |
2395 | if (!PyString_Check(_obj0)) { | |
2396 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2397 | return NULL; | |
2398 | } | |
2399 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2400 | #endif | |
2401 | } | |
2402 | { | |
2403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2404 | _result = (wxToolTip *)new_wxToolTip(*_arg0); | |
2405 | ||
2406 | wxPyEndAllowThreads(__tstate); | |
2407 | if (PyErr_Occurred()) return NULL; | |
2408 | } if (_result) { | |
2409 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2410 | _resultobj = Py_BuildValue("s",_ptemp); | |
2411 | } else { | |
2412 | Py_INCREF(Py_None); | |
2413 | _resultobj = Py_None; | |
2414 | } | |
2415 | { | |
2416 | if (_obj0) | |
2417 | delete _arg0; | |
2418 | } | |
2419 | return _resultobj; | |
2420 | } | |
2421 | ||
2422 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2423 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2424 | PyObject * _resultobj; | |
2425 | wxToolTip * _arg0; | |
2426 | wxString * _arg1; | |
2427 | PyObject * _argo0 = 0; | |
2428 | PyObject * _obj1 = 0; | |
2429 | char *_kwnames[] = { "self","tip", NULL }; | |
2430 | ||
2431 | self = self; | |
2432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2433 | return NULL; | |
2434 | if (_argo0) { | |
2435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2438 | return NULL; | |
2439 | } | |
2440 | } | |
2441 | { | |
2442 | #if PYTHON_API_VERSION >= 1009 | |
2443 | char* tmpPtr; int tmpSize; | |
2444 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2445 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2446 | return NULL; | |
2447 | } | |
2448 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2449 | return NULL; | |
2450 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2451 | #else | |
2452 | if (!PyString_Check(_obj1)) { | |
2453 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2454 | return NULL; | |
2455 | } | |
2456 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2457 | #endif | |
2458 | } | |
2459 | { | |
2460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2461 | wxToolTip_SetTip(_arg0,*_arg1); | |
2462 | ||
2463 | wxPyEndAllowThreads(__tstate); | |
2464 | if (PyErr_Occurred()) return NULL; | |
2465 | } Py_INCREF(Py_None); | |
2466 | _resultobj = Py_None; | |
2467 | { | |
2468 | if (_obj1) | |
2469 | delete _arg1; | |
2470 | } | |
2471 | return _resultobj; | |
2472 | } | |
2473 | ||
2474 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2475 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2476 | PyObject * _resultobj; | |
2477 | wxString * _result; | |
2478 | wxToolTip * _arg0; | |
2479 | PyObject * _argo0 = 0; | |
2480 | char *_kwnames[] = { "self", NULL }; | |
2481 | ||
2482 | self = self; | |
2483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2484 | return NULL; | |
2485 | if (_argo0) { | |
2486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2489 | return NULL; | |
2490 | } | |
2491 | } | |
2492 | { | |
2493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2494 | _result = new wxString (wxToolTip_GetTip(_arg0)); | |
2495 | ||
2496 | wxPyEndAllowThreads(__tstate); | |
2497 | if (PyErr_Occurred()) return NULL; | |
2498 | }{ | |
2499 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2500 | } | |
2501 | { | |
2502 | delete _result; | |
2503 | } | |
2504 | return _resultobj; | |
2505 | } | |
2506 | ||
2507 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2508 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2509 | PyObject * _resultobj; | |
2510 | wxWindow * _result; | |
2511 | wxToolTip * _arg0; | |
2512 | PyObject * _argo0 = 0; | |
2513 | char *_kwnames[] = { "self", NULL }; | |
2514 | ||
2515 | self = self; | |
2516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2517 | return NULL; | |
2518 | if (_argo0) { | |
2519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2522 | return NULL; | |
2523 | } | |
2524 | } | |
2525 | { | |
2526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2527 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); | |
2528 | ||
2529 | wxPyEndAllowThreads(__tstate); | |
2530 | if (PyErr_Occurred()) return NULL; | |
2531 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2532 | return _resultobj; | |
2533 | } | |
2534 | ||
2535 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2536 | PyObject * _resultobj; | |
2537 | bool _arg0; | |
2538 | int tempbool0; | |
2539 | char *_kwnames[] = { "flag", NULL }; | |
2540 | ||
2541 | self = self; | |
2542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2543 | return NULL; | |
2544 | _arg0 = (bool ) tempbool0; | |
2545 | { | |
2546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2547 | wxToolTip::Enable(_arg0); | |
2548 | ||
2549 | wxPyEndAllowThreads(__tstate); | |
2550 | if (PyErr_Occurred()) return NULL; | |
2551 | } Py_INCREF(Py_None); | |
2552 | _resultobj = Py_None; | |
2553 | return _resultobj; | |
2554 | } | |
2555 | ||
2556 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2557 | PyObject * _resultobj; | |
2558 | long _arg0; | |
2559 | char *_kwnames[] = { "milliseconds", NULL }; | |
2560 | ||
2561 | self = self; | |
2562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2563 | return NULL; | |
2564 | { | |
2565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2566 | wxToolTip::SetDelay(_arg0); | |
2567 | ||
2568 | wxPyEndAllowThreads(__tstate); | |
2569 | if (PyErr_Occurred()) return NULL; | |
2570 | } Py_INCREF(Py_None); | |
2571 | _resultobj = Py_None; | |
2572 | return _resultobj; | |
2573 | } | |
2574 | ||
2575 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) | |
2576 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2577 | PyObject * _resultobj; | |
2578 | wxCaret * _result; | |
2579 | wxWindow * _arg0; | |
2580 | wxSize * _arg1; | |
2581 | PyObject * _argo0 = 0; | |
2582 | wxSize temp; | |
2583 | PyObject * _obj1 = 0; | |
2584 | char *_kwnames[] = { "window","size", NULL }; | |
2585 | char _ptemp[128]; | |
2586 | ||
2587 | self = self; | |
2588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2589 | return NULL; | |
2590 | if (_argo0) { | |
2591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2594 | return NULL; | |
2595 | } | |
2596 | } | |
2597 | { | |
2598 | _arg1 = &temp; | |
2599 | if (! wxSize_helper(_obj1, &_arg1)) | |
2600 | return NULL; | |
2601 | } | |
2602 | { | |
2603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2604 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); | |
2605 | ||
2606 | wxPyEndAllowThreads(__tstate); | |
2607 | if (PyErr_Occurred()) return NULL; | |
2608 | } if (_result) { | |
2609 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2610 | _resultobj = Py_BuildValue("s",_ptemp); | |
2611 | } else { | |
2612 | Py_INCREF(Py_None); | |
2613 | _resultobj = Py_None; | |
2614 | } | |
2615 | return _resultobj; | |
2616 | } | |
2617 | ||
2618 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2619 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2620 | PyObject * _resultobj; | |
2621 | wxCaret * _arg0; | |
2622 | PyObject * _argo0 = 0; | |
2623 | char *_kwnames[] = { "self", NULL }; | |
2624 | ||
2625 | self = self; | |
2626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2627 | return NULL; | |
2628 | if (_argo0) { | |
2629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2632 | return NULL; | |
2633 | } | |
2634 | } | |
2635 | { | |
2636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2637 | delete_wxCaret(_arg0); | |
2638 | ||
2639 | wxPyEndAllowThreads(__tstate); | |
2640 | if (PyErr_Occurred()) return NULL; | |
2641 | } Py_INCREF(Py_None); | |
2642 | _resultobj = Py_None; | |
2643 | return _resultobj; | |
2644 | } | |
2645 | ||
2646 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2647 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2648 | PyObject * _resultobj; | |
2649 | bool _result; | |
2650 | wxCaret * _arg0; | |
2651 | PyObject * _argo0 = 0; | |
2652 | char *_kwnames[] = { "self", NULL }; | |
2653 | ||
2654 | self = self; | |
2655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2656 | return NULL; | |
2657 | if (_argo0) { | |
2658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2661 | return NULL; | |
2662 | } | |
2663 | } | |
2664 | { | |
2665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2666 | _result = (bool )wxCaret_IsOk(_arg0); | |
2667 | ||
2668 | wxPyEndAllowThreads(__tstate); | |
2669 | if (PyErr_Occurred()) return NULL; | |
2670 | } _resultobj = Py_BuildValue("i",_result); | |
2671 | return _resultobj; | |
2672 | } | |
2673 | ||
2674 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2675 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject * _resultobj; | |
2677 | bool _result; | |
2678 | wxCaret * _arg0; | |
2679 | PyObject * _argo0 = 0; | |
2680 | char *_kwnames[] = { "self", NULL }; | |
2681 | ||
2682 | self = self; | |
2683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2684 | return NULL; | |
2685 | if (_argo0) { | |
2686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2689 | return NULL; | |
2690 | } | |
2691 | } | |
2692 | { | |
2693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2694 | _result = (bool )wxCaret_IsVisible(_arg0); | |
2695 | ||
2696 | wxPyEndAllowThreads(__tstate); | |
2697 | if (PyErr_Occurred()) return NULL; | |
2698 | } _resultobj = Py_BuildValue("i",_result); | |
2699 | return _resultobj; | |
2700 | } | |
2701 | ||
2702 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2703 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2704 | PyObject * _resultobj; | |
2705 | wxCaret * _arg0; | |
2706 | int * _arg1; | |
2707 | int temp; | |
2708 | int * _arg2; | |
2709 | int temp0; | |
2710 | PyObject * _argo0 = 0; | |
2711 | char *_kwnames[] = { "self", NULL }; | |
2712 | ||
2713 | self = self; | |
2714 | { | |
2715 | _arg1 = &temp; | |
2716 | } | |
2717 | { | |
2718 | _arg2 = &temp0; | |
2719 | } | |
2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2721 | return NULL; | |
2722 | if (_argo0) { | |
2723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2726 | return NULL; | |
2727 | } | |
2728 | } | |
2729 | { | |
2730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2731 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); | |
2732 | ||
2733 | wxPyEndAllowThreads(__tstate); | |
2734 | if (PyErr_Occurred()) return NULL; | |
2735 | } Py_INCREF(Py_None); | |
2736 | _resultobj = Py_None; | |
2737 | { | |
2738 | PyObject *o; | |
2739 | o = PyInt_FromLong((long) (*_arg1)); | |
2740 | _resultobj = t_output_helper(_resultobj, o); | |
2741 | } | |
2742 | { | |
2743 | PyObject *o; | |
2744 | o = PyInt_FromLong((long) (*_arg2)); | |
2745 | _resultobj = t_output_helper(_resultobj, o); | |
2746 | } | |
2747 | return _resultobj; | |
2748 | } | |
2749 | ||
2750 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
2751 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2752 | PyObject * _resultobj; | |
2753 | wxPoint * _result; | |
2754 | wxCaret * _arg0; | |
2755 | PyObject * _argo0 = 0; | |
2756 | char *_kwnames[] = { "self", NULL }; | |
2757 | char _ptemp[128]; | |
2758 | ||
2759 | self = self; | |
2760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2761 | return NULL; | |
2762 | if (_argo0) { | |
2763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2766 | return NULL; | |
2767 | } | |
2768 | } | |
2769 | { | |
2770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2771 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); | |
2772 | ||
2773 | wxPyEndAllowThreads(__tstate); | |
2774 | if (PyErr_Occurred()) return NULL; | |
2775 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2776 | _resultobj = Py_BuildValue("s",_ptemp); | |
2777 | return _resultobj; | |
2778 | } | |
2779 | ||
2780 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2781 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2782 | PyObject * _resultobj; | |
2783 | wxCaret * _arg0; | |
2784 | int * _arg1; | |
2785 | int temp; | |
2786 | int * _arg2; | |
2787 | int temp0; | |
2788 | PyObject * _argo0 = 0; | |
2789 | char *_kwnames[] = { "self", NULL }; | |
2790 | ||
2791 | self = self; | |
2792 | { | |
2793 | _arg1 = &temp; | |
2794 | } | |
2795 | { | |
2796 | _arg2 = &temp0; | |
2797 | } | |
2798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2799 | return NULL; | |
2800 | if (_argo0) { | |
2801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2804 | return NULL; | |
2805 | } | |
2806 | } | |
2807 | { | |
2808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2809 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); | |
2810 | ||
2811 | wxPyEndAllowThreads(__tstate); | |
2812 | if (PyErr_Occurred()) return NULL; | |
2813 | } Py_INCREF(Py_None); | |
2814 | _resultobj = Py_None; | |
2815 | { | |
2816 | PyObject *o; | |
2817 | o = PyInt_FromLong((long) (*_arg1)); | |
2818 | _resultobj = t_output_helper(_resultobj, o); | |
2819 | } | |
2820 | { | |
2821 | PyObject *o; | |
2822 | o = PyInt_FromLong((long) (*_arg2)); | |
2823 | _resultobj = t_output_helper(_resultobj, o); | |
2824 | } | |
2825 | return _resultobj; | |
2826 | } | |
2827 | ||
2828 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2829 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2830 | PyObject * _resultobj; | |
2831 | wxSize * _result; | |
2832 | wxCaret * _arg0; | |
2833 | PyObject * _argo0 = 0; | |
2834 | char *_kwnames[] = { "self", NULL }; | |
2835 | char _ptemp[128]; | |
2836 | ||
2837 | self = self; | |
2838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2839 | return NULL; | |
2840 | if (_argo0) { | |
2841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
2844 | return NULL; | |
2845 | } | |
2846 | } | |
2847 | { | |
2848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2849 | _result = new wxSize (wxCaret_GetSize(_arg0)); | |
2850 | ||
2851 | wxPyEndAllowThreads(__tstate); | |
2852 | if (PyErr_Occurred()) return NULL; | |
2853 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2854 | _resultobj = Py_BuildValue("s",_ptemp); | |
2855 | return _resultobj; | |
2856 | } | |
2857 | ||
2858 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2859 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2860 | PyObject * _resultobj; | |
2861 | wxWindow * _result; | |
2862 | wxCaret * _arg0; | |
2863 | PyObject * _argo0 = 0; | |
2864 | char *_kwnames[] = { "self", NULL }; | |
2865 | ||
2866 | self = self; | |
2867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
2868 | return NULL; | |
2869 | if (_argo0) { | |
2870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
2873 | return NULL; | |
2874 | } | |
2875 | } | |
2876 | { | |
2877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2878 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); | |
2879 | ||
2880 | wxPyEndAllowThreads(__tstate); | |
2881 | if (PyErr_Occurred()) return NULL; | |
2882 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2883 | return _resultobj; | |
2884 | } | |
2885 | ||
2886 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2887 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2888 | PyObject * _resultobj; | |
2889 | wxCaret * _arg0; | |
2890 | int _arg1; | |
2891 | int _arg2; | |
2892 | PyObject * _argo0 = 0; | |
2893 | char *_kwnames[] = { "self","x","y", NULL }; | |
2894 | ||
2895 | self = self; | |
2896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2897 | return NULL; | |
2898 | if (_argo0) { | |
2899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
2902 | return NULL; | |
2903 | } | |
2904 | } | |
2905 | { | |
2906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2907 | wxCaret_MoveXY(_arg0,_arg1,_arg2); | |
2908 | ||
2909 | wxPyEndAllowThreads(__tstate); | |
2910 | if (PyErr_Occurred()) return NULL; | |
2911 | } Py_INCREF(Py_None); | |
2912 | _resultobj = Py_None; | |
2913 | return _resultobj; | |
2914 | } | |
2915 | ||
2916 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2917 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2918 | PyObject * _resultobj; | |
2919 | wxCaret * _arg0; | |
2920 | wxPoint * _arg1; | |
2921 | PyObject * _argo0 = 0; | |
2922 | wxPoint temp; | |
2923 | PyObject * _obj1 = 0; | |
2924 | char *_kwnames[] = { "self","pt", NULL }; | |
2925 | ||
2926 | self = self; | |
2927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
2928 | return NULL; | |
2929 | if (_argo0) { | |
2930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
2933 | return NULL; | |
2934 | } | |
2935 | } | |
2936 | { | |
2937 | _arg1 = &temp; | |
2938 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2939 | return NULL; | |
2940 | } | |
2941 | { | |
2942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2943 | wxCaret_Move(_arg0,*_arg1); | |
2944 | ||
2945 | wxPyEndAllowThreads(__tstate); | |
2946 | if (PyErr_Occurred()) return NULL; | |
2947 | } Py_INCREF(Py_None); | |
2948 | _resultobj = Py_None; | |
2949 | return _resultobj; | |
2950 | } | |
2951 | ||
2952 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
2953 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2954 | PyObject * _resultobj; | |
2955 | wxCaret * _arg0; | |
2956 | int _arg1; | |
2957 | int _arg2; | |
2958 | PyObject * _argo0 = 0; | |
2959 | char *_kwnames[] = { "self","width","height", NULL }; | |
2960 | ||
2961 | self = self; | |
2962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2963 | return NULL; | |
2964 | if (_argo0) { | |
2965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
2968 | return NULL; | |
2969 | } | |
2970 | } | |
2971 | { | |
2972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2973 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); | |
2974 | ||
2975 | wxPyEndAllowThreads(__tstate); | |
2976 | if (PyErr_Occurred()) return NULL; | |
2977 | } Py_INCREF(Py_None); | |
2978 | _resultobj = Py_None; | |
2979 | return _resultobj; | |
2980 | } | |
2981 | ||
2982 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2983 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2984 | PyObject * _resultobj; | |
2985 | wxCaret * _arg0; | |
2986 | wxSize * _arg1; | |
2987 | PyObject * _argo0 = 0; | |
2988 | wxSize temp; | |
2989 | PyObject * _obj1 = 0; | |
2990 | char *_kwnames[] = { "self","size", NULL }; | |
2991 | ||
2992 | self = self; | |
2993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
2994 | return NULL; | |
2995 | if (_argo0) { | |
2996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
2999 | return NULL; | |
3000 | } | |
3001 | } | |
3002 | { | |
3003 | _arg1 = &temp; | |
3004 | if (! wxSize_helper(_obj1, &_arg1)) | |
3005 | return NULL; | |
3006 | } | |
3007 | { | |
3008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3009 | wxCaret_SetSize(_arg0,*_arg1); | |
3010 | ||
3011 | wxPyEndAllowThreads(__tstate); | |
3012 | if (PyErr_Occurred()) return NULL; | |
3013 | } Py_INCREF(Py_None); | |
3014 | _resultobj = Py_None; | |
3015 | return _resultobj; | |
3016 | } | |
3017 | ||
3018 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3019 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3020 | PyObject * _resultobj; | |
3021 | wxCaret * _arg0; | |
3022 | int _arg1 = (int ) TRUE; | |
3023 | PyObject * _argo0 = 0; | |
3024 | char *_kwnames[] = { "self","show", NULL }; | |
3025 | ||
3026 | self = self; | |
3027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
3028 | return NULL; | |
3029 | if (_argo0) { | |
3030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
3033 | return NULL; | |
3034 | } | |
3035 | } | |
3036 | { | |
3037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3038 | wxCaret_Show(_arg0,_arg1); | |
3039 | ||
3040 | wxPyEndAllowThreads(__tstate); | |
3041 | if (PyErr_Occurred()) return NULL; | |
3042 | } Py_INCREF(Py_None); | |
3043 | _resultobj = Py_None; | |
3044 | return _resultobj; | |
3045 | } | |
3046 | ||
3047 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
3048 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3049 | PyObject * _resultobj; | |
3050 | wxCaret * _arg0; | |
3051 | PyObject * _argo0 = 0; | |
3052 | char *_kwnames[] = { "self", NULL }; | |
3053 | ||
3054 | self = self; | |
3055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
3056 | return NULL; | |
3057 | if (_argo0) { | |
3058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
3061 | return NULL; | |
3062 | } | |
3063 | } | |
3064 | { | |
3065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3066 | wxCaret_Hide(_arg0); | |
3067 | ||
3068 | wxPyEndAllowThreads(__tstate); | |
3069 | if (PyErr_Occurred()) return NULL; | |
3070 | } Py_INCREF(Py_None); | |
3071 | _resultobj = Py_None; | |
3072 | return _resultobj; | |
3073 | } | |
3074 | ||
3075 | #define new_wxFontEnumerator() (new wxPyFontEnumerator()) | |
3076 | static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3077 | PyObject * _resultobj; | |
3078 | wxPyFontEnumerator * _result; | |
3079 | char *_kwnames[] = { NULL }; | |
3080 | char _ptemp[128]; | |
3081 | ||
3082 | self = self; | |
3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames)) | |
3084 | return NULL; | |
3085 | { | |
3086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3087 | _result = (wxPyFontEnumerator *)new_wxFontEnumerator(); | |
3088 | ||
3089 | wxPyEndAllowThreads(__tstate); | |
3090 | if (PyErr_Occurred()) return NULL; | |
3091 | } if (_result) { | |
3092 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p"); | |
3093 | _resultobj = Py_BuildValue("s",_ptemp); | |
3094 | } else { | |
3095 | Py_INCREF(Py_None); | |
3096 | _resultobj = Py_None; | |
3097 | } | |
3098 | return _resultobj; | |
3099 | } | |
3100 | ||
3101 | #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj) | |
3102 | static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3103 | PyObject * _resultobj; | |
3104 | wxPyFontEnumerator * _arg0; | |
3105 | PyObject * _argo0 = 0; | |
3106 | char *_kwnames[] = { "self", NULL }; | |
3107 | ||
3108 | self = self; | |
3109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0)) | |
3110 | return NULL; | |
3111 | if (_argo0) { | |
3112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p."); | |
3115 | return NULL; | |
3116 | } | |
3117 | } | |
3118 | { | |
3119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3120 | delete_wxPyFontEnumerator(_arg0); | |
3121 | ||
3122 | wxPyEndAllowThreads(__tstate); | |
3123 | if (PyErr_Occurred()) return NULL; | |
3124 | } Py_INCREF(Py_None); | |
3125 | _resultobj = Py_None; | |
3126 | return _resultobj; | |
3127 | } | |
3128 | ||
3129 | #define wxFontEnumerator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) | |
3130 | static PyObject *_wrap_wxFontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3131 | PyObject * _resultobj; | |
3132 | wxPyFontEnumerator * _arg0; | |
3133 | PyObject * _arg1; | |
3134 | PyObject * _arg2; | |
3135 | bool _arg3; | |
3136 | PyObject * _argo0 = 0; | |
3137 | PyObject * _obj1 = 0; | |
3138 | PyObject * _obj2 = 0; | |
3139 | int tempbool3; | |
3140 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
3141 | ||
3142 | self = self; | |
3143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOi:wxFontEnumerator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
3144 | return NULL; | |
3145 | if (_argo0) { | |
3146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setCallbackInfo. Expected _wxPyFontEnumerator_p."); | |
3149 | return NULL; | |
3150 | } | |
3151 | } | |
3152 | { | |
3153 | _arg1 = _obj1; | |
3154 | } | |
3155 | { | |
3156 | _arg2 = _obj2; | |
3157 | } | |
3158 | _arg3 = (bool ) tempbool3; | |
3159 | { | |
3160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3161 | wxFontEnumerator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); | |
3162 | ||
3163 | wxPyEndAllowThreads(__tstate); | |
3164 | if (PyErr_Occurred()) return NULL; | |
3165 | } Py_INCREF(Py_None); | |
3166 | _resultobj = Py_None; | |
3167 | return _resultobj; | |
3168 | } | |
3169 | ||
3170 | #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1)) | |
3171 | static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3172 | PyObject * _resultobj; | |
3173 | bool _result; | |
3174 | wxPyFontEnumerator * _arg0; | |
3175 | wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM; | |
3176 | bool _arg2 = (bool ) FALSE; | |
3177 | PyObject * _argo0 = 0; | |
3178 | int tempbool2 = (int) FALSE; | |
3179 | char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL }; | |
3180 | ||
3181 | self = self; | |
3182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3183 | return NULL; | |
3184 | if (_argo0) { | |
3185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p."); | |
3188 | return NULL; | |
3189 | } | |
3190 | } | |
3191 | _arg2 = (bool ) tempbool2; | |
3192 | { | |
3193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3194 | _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2); | |
3195 | ||
3196 | wxPyEndAllowThreads(__tstate); | |
3197 | if (PyErr_Occurred()) return NULL; | |
3198 | } _resultobj = Py_BuildValue("i",_result); | |
3199 | return _resultobj; | |
3200 | } | |
3201 | ||
3202 | #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0)) | |
3203 | static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3204 | PyObject * _resultobj; | |
3205 | bool _result; | |
3206 | wxPyFontEnumerator * _arg0; | |
3207 | char * _arg1 = (char *) ""; | |
3208 | PyObject * _argo0 = 0; | |
3209 | char *_kwnames[] = { "self","facename", NULL }; | |
3210 | ||
3211 | self = self; | |
3212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1)) | |
3213 | return NULL; | |
3214 | if (_argo0) { | |
3215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p."); | |
3218 | return NULL; | |
3219 | } | |
3220 | } | |
3221 | { | |
3222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3223 | _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1); | |
3224 | ||
3225 | wxPyEndAllowThreads(__tstate); | |
3226 | if (PyErr_Occurred()) return NULL; | |
3227 | } _resultobj = Py_BuildValue("i",_result); | |
3228 | return _resultobj; | |
3229 | } | |
3230 | ||
3231 | static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) { | |
3232 | wxArrayString* arr = self->GetEncodings(); | |
3233 | return wxArrayString2PyList_helper(*arr); | |
3234 | } | |
3235 | static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3236 | PyObject * _resultobj; | |
3237 | PyObject * _result; | |
3238 | wxPyFontEnumerator * _arg0; | |
3239 | PyObject * _argo0 = 0; | |
3240 | char *_kwnames[] = { "self", NULL }; | |
3241 | ||
3242 | self = self; | |
3243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0)) | |
3244 | return NULL; | |
3245 | if (_argo0) { | |
3246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p."); | |
3249 | return NULL; | |
3250 | } | |
3251 | } | |
3252 | { | |
3253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3254 | _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0); | |
3255 | ||
3256 | wxPyEndAllowThreads(__tstate); | |
3257 | if (PyErr_Occurred()) return NULL; | |
3258 | }{ | |
3259 | _resultobj = _result; | |
3260 | } | |
3261 | return _resultobj; | |
3262 | } | |
3263 | ||
3264 | static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) { | |
3265 | wxArrayString* arr = self->GetFacenames(); | |
3266 | return wxArrayString2PyList_helper(*arr); | |
3267 | } | |
3268 | static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3269 | PyObject * _resultobj; | |
3270 | PyObject * _result; | |
3271 | wxPyFontEnumerator * _arg0; | |
3272 | PyObject * _argo0 = 0; | |
3273 | char *_kwnames[] = { "self", NULL }; | |
3274 | ||
3275 | self = self; | |
3276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0)) | |
3277 | return NULL; | |
3278 | if (_argo0) { | |
3279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p."); | |
3282 | return NULL; | |
3283 | } | |
3284 | } | |
3285 | { | |
3286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3287 | _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0); | |
3288 | ||
3289 | wxPyEndAllowThreads(__tstate); | |
3290 | if (PyErr_Occurred()) return NULL; | |
3291 | }{ | |
3292 | _resultobj = _result; | |
3293 | } | |
3294 | return _resultobj; | |
3295 | } | |
3296 | ||
3297 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) | |
3298 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3299 | PyObject * _resultobj; | |
3300 | wxBusyCursor * _result; | |
3301 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3302 | PyObject * _argo0 = 0; | |
3303 | char *_kwnames[] = { "cursor", NULL }; | |
3304 | char _ptemp[128]; | |
3305 | ||
3306 | self = self; | |
3307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3308 | return NULL; | |
3309 | if (_argo0) { | |
3310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3313 | return NULL; | |
3314 | } | |
3315 | } | |
3316 | { | |
3317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3318 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); | |
3319 | ||
3320 | wxPyEndAllowThreads(__tstate); | |
3321 | if (PyErr_Occurred()) return NULL; | |
3322 | } if (_result) { | |
3323 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3324 | _resultobj = Py_BuildValue("s",_ptemp); | |
3325 | } else { | |
3326 | Py_INCREF(Py_None); | |
3327 | _resultobj = Py_None; | |
3328 | } | |
3329 | return _resultobj; | |
3330 | } | |
3331 | ||
3332 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3333 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3334 | PyObject * _resultobj; | |
3335 | wxBusyCursor * _arg0; | |
3336 | PyObject * _argo0 = 0; | |
3337 | char *_kwnames[] = { "self", NULL }; | |
3338 | ||
3339 | self = self; | |
3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3341 | return NULL; | |
3342 | if (_argo0) { | |
3343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3346 | return NULL; | |
3347 | } | |
3348 | } | |
3349 | { | |
3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3351 | delete_wxBusyCursor(_arg0); | |
3352 | ||
3353 | wxPyEndAllowThreads(__tstate); | |
3354 | if (PyErr_Occurred()) return NULL; | |
3355 | } Py_INCREF(Py_None); | |
3356 | _resultobj = Py_None; | |
3357 | return _resultobj; | |
3358 | } | |
3359 | ||
3360 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) | |
3361 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3362 | PyObject * _resultobj; | |
3363 | wxWindowDisabler * _result; | |
3364 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3365 | PyObject * _argo0 = 0; | |
3366 | char *_kwnames[] = { "winToSkip", NULL }; | |
3367 | char _ptemp[128]; | |
3368 | ||
3369 | self = self; | |
3370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3371 | return NULL; | |
3372 | if (_argo0) { | |
3373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3376 | return NULL; | |
3377 | } | |
3378 | } | |
3379 | { | |
3380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3381 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); | |
3382 | ||
3383 | wxPyEndAllowThreads(__tstate); | |
3384 | if (PyErr_Occurred()) return NULL; | |
3385 | } if (_result) { | |
3386 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3387 | _resultobj = Py_BuildValue("s",_ptemp); | |
3388 | } else { | |
3389 | Py_INCREF(Py_None); | |
3390 | _resultobj = Py_None; | |
3391 | } | |
3392 | return _resultobj; | |
3393 | } | |
3394 | ||
3395 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3396 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3397 | PyObject * _resultobj; | |
3398 | wxWindowDisabler * _arg0; | |
3399 | PyObject * _argo0 = 0; | |
3400 | char *_kwnames[] = { "self", NULL }; | |
3401 | ||
3402 | self = self; | |
3403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3404 | return NULL; | |
3405 | if (_argo0) { | |
3406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3409 | return NULL; | |
3410 | } | |
3411 | } | |
3412 | { | |
3413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3414 | delete_wxWindowDisabler(_arg0); | |
3415 | ||
3416 | wxPyEndAllowThreads(__tstate); | |
3417 | if (PyErr_Occurred()) return NULL; | |
3418 | } Py_INCREF(Py_None); | |
3419 | _resultobj = Py_None; | |
3420 | return _resultobj; | |
3421 | } | |
3422 | ||
3423 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) | |
3424 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3425 | PyObject * _resultobj; | |
3426 | wxMutexGuiLocker * _result; | |
3427 | char *_kwnames[] = { NULL }; | |
3428 | char _ptemp[128]; | |
3429 | ||
3430 | self = self; | |
3431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3432 | return NULL; | |
3433 | { | |
3434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3435 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); | |
3436 | ||
3437 | wxPyEndAllowThreads(__tstate); | |
3438 | if (PyErr_Occurred()) return NULL; | |
3439 | } if (_result) { | |
3440 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3441 | _resultobj = Py_BuildValue("s",_ptemp); | |
3442 | } else { | |
3443 | Py_INCREF(Py_None); | |
3444 | _resultobj = Py_None; | |
3445 | } | |
3446 | return _resultobj; | |
3447 | } | |
3448 | ||
3449 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3450 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3451 | PyObject * _resultobj; | |
3452 | wxMutexGuiLocker * _arg0; | |
3453 | PyObject * _argo0 = 0; | |
3454 | char *_kwnames[] = { "self", NULL }; | |
3455 | ||
3456 | self = self; | |
3457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3458 | return NULL; | |
3459 | if (_argo0) { | |
3460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3463 | return NULL; | |
3464 | } | |
3465 | } | |
3466 | { | |
3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3468 | delete_wxMutexGuiLocker(_arg0); | |
3469 | ||
3470 | wxPyEndAllowThreads(__tstate); | |
3471 | if (PyErr_Occurred()) return NULL; | |
3472 | } Py_INCREF(Py_None); | |
3473 | _resultobj = Py_None; | |
3474 | return _resultobj; | |
3475 | } | |
3476 | ||
3477 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) | |
3478 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3479 | PyObject * _resultobj; | |
3480 | wxTipProvider * _arg0; | |
3481 | PyObject * _argo0 = 0; | |
3482 | char *_kwnames[] = { "self", NULL }; | |
3483 | ||
3484 | self = self; | |
3485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3486 | return NULL; | |
3487 | if (_argo0) { | |
3488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3491 | return NULL; | |
3492 | } | |
3493 | } | |
3494 | { | |
3495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3496 | delete_wxTipProvider(_arg0); | |
3497 | ||
3498 | wxPyEndAllowThreads(__tstate); | |
3499 | if (PyErr_Occurred()) return NULL; | |
3500 | } Py_INCREF(Py_None); | |
3501 | _resultobj = Py_None; | |
3502 | return _resultobj; | |
3503 | } | |
3504 | ||
3505 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3506 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3507 | PyObject * _resultobj; | |
3508 | wxString * _result; | |
3509 | wxTipProvider * _arg0; | |
3510 | PyObject * _argo0 = 0; | |
3511 | char *_kwnames[] = { "self", NULL }; | |
3512 | ||
3513 | self = self; | |
3514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3515 | return NULL; | |
3516 | if (_argo0) { | |
3517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3520 | return NULL; | |
3521 | } | |
3522 | } | |
3523 | { | |
3524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3525 | _result = new wxString (wxTipProvider_GetTip(_arg0)); | |
3526 | ||
3527 | wxPyEndAllowThreads(__tstate); | |
3528 | if (PyErr_Occurred()) return NULL; | |
3529 | }{ | |
3530 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3531 | } | |
3532 | { | |
3533 | delete _result; | |
3534 | } | |
3535 | return _resultobj; | |
3536 | } | |
3537 | ||
3538 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3539 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3540 | PyObject * _resultobj; | |
3541 | size_t _result; | |
3542 | wxTipProvider * _arg0; | |
3543 | PyObject * _argo0 = 0; | |
3544 | char *_kwnames[] = { "self", NULL }; | |
3545 | ||
3546 | self = self; | |
3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3548 | return NULL; | |
3549 | if (_argo0) { | |
3550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3553 | return NULL; | |
3554 | } | |
3555 | } | |
3556 | { | |
3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3558 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); | |
3559 | ||
3560 | wxPyEndAllowThreads(__tstate); | |
3561 | if (PyErr_Occurred()) return NULL; | |
3562 | } _resultobj = Py_BuildValue("i",_result); | |
3563 | return _resultobj; | |
3564 | } | |
3565 | ||
3566 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3567 | wxPyTipProvider *src; | |
3568 | wxTipProvider *dest; | |
3569 | src = (wxPyTipProvider *) ptr; | |
3570 | dest = (wxTipProvider *) src; | |
3571 | return (void *) dest; | |
3572 | } | |
3573 | ||
3574 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3575 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3576 | PyObject * _resultobj; | |
3577 | wxPyTipProvider * _result; | |
3578 | size_t _arg0; | |
3579 | char *_kwnames[] = { "currentTip", NULL }; | |
3580 | char _ptemp[128]; | |
3581 | ||
3582 | self = self; | |
3583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3584 | return NULL; | |
3585 | { | |
3586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3587 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); | |
3588 | ||
3589 | wxPyEndAllowThreads(__tstate); | |
3590 | if (PyErr_Occurred()) return NULL; | |
3591 | } if (_result) { | |
3592 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3593 | _resultobj = Py_BuildValue("s",_ptemp); | |
3594 | } else { | |
3595 | Py_INCREF(Py_None); | |
3596 | _resultobj = Py_None; | |
3597 | } | |
3598 | return _resultobj; | |
3599 | } | |
3600 | ||
3601 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { | |
3602 | wxGenericDragImage *src; | |
3603 | wxObject *dest; | |
3604 | src = (wxGenericDragImage *) ptr; | |
3605 | dest = (wxObject *) src; | |
3606 | return (void *) dest; | |
3607 | } | |
3608 | ||
3609 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3610 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3611 | PyObject * _resultobj; | |
3612 | wxGenericDragImage * _result; | |
3613 | wxBitmap * _arg0; | |
3614 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3615 | PyObject * _argo0 = 0; | |
3616 | PyObject * _argo1 = 0; | |
3617 | char *_kwnames[] = { "image","cursor", NULL }; | |
3618 | char _ptemp[128]; | |
3619 | ||
3620 | self = self; | |
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) | |
3622 | return NULL; | |
3623 | if (_argo0) { | |
3624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3627 | return NULL; | |
3628 | } | |
3629 | } | |
3630 | if (_argo1) { | |
3631 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3632 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3634 | return NULL; | |
3635 | } | |
3636 | } | |
3637 | { | |
3638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3639 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); | |
3640 | ||
3641 | wxPyEndAllowThreads(__tstate); | |
3642 | if (PyErr_Occurred()) return NULL; | |
3643 | } if (_result) { | |
3644 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3645 | _resultobj = Py_BuildValue("s",_ptemp); | |
3646 | } else { | |
3647 | Py_INCREF(Py_None); | |
3648 | _resultobj = Py_None; | |
3649 | } | |
3650 | return _resultobj; | |
3651 | } | |
3652 | ||
3653 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3654 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3655 | PyObject * _resultobj; | |
3656 | wxGenericDragImage * _result; | |
3657 | wxIcon * _arg0; | |
3658 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3659 | PyObject * _argo0 = 0; | |
3660 | PyObject * _argo1 = 0; | |
3661 | char *_kwnames[] = { "image","cursor", NULL }; | |
3662 | char _ptemp[128]; | |
3663 | ||
3664 | self = self; | |
3665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3666 | return NULL; | |
3667 | if (_argo0) { | |
3668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3671 | return NULL; | |
3672 | } | |
3673 | } | |
3674 | if (_argo1) { | |
3675 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3676 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3678 | return NULL; | |
3679 | } | |
3680 | } | |
3681 | { | |
3682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3683 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); | |
3684 | ||
3685 | wxPyEndAllowThreads(__tstate); | |
3686 | if (PyErr_Occurred()) return NULL; | |
3687 | } if (_result) { | |
3688 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3689 | _resultobj = Py_BuildValue("s",_ptemp); | |
3690 | } else { | |
3691 | Py_INCREF(Py_None); | |
3692 | _resultobj = Py_None; | |
3693 | } | |
3694 | return _resultobj; | |
3695 | } | |
3696 | ||
3697 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3698 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3699 | PyObject * _resultobj; | |
3700 | wxGenericDragImage * _result; | |
3701 | wxString * _arg0; | |
3702 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3703 | PyObject * _obj0 = 0; | |
3704 | PyObject * _argo1 = 0; | |
3705 | char *_kwnames[] = { "str","cursor", NULL }; | |
3706 | char _ptemp[128]; | |
3707 | ||
3708 | self = self; | |
3709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3710 | return NULL; | |
3711 | { | |
3712 | #if PYTHON_API_VERSION >= 1009 | |
3713 | char* tmpPtr; int tmpSize; | |
3714 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
3715 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3716 | return NULL; | |
3717 | } | |
3718 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
3719 | return NULL; | |
3720 | _arg0 = new wxString(tmpPtr, tmpSize); | |
3721 | #else | |
3722 | if (!PyString_Check(_obj0)) { | |
3723 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3724 | return NULL; | |
3725 | } | |
3726 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
3727 | #endif | |
3728 | } | |
3729 | if (_argo1) { | |
3730 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3731 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
3736 | { | |
3737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3738 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); | |
3739 | ||
3740 | wxPyEndAllowThreads(__tstate); | |
3741 | if (PyErr_Occurred()) return NULL; | |
3742 | } if (_result) { | |
3743 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3744 | _resultobj = Py_BuildValue("s",_ptemp); | |
3745 | } else { | |
3746 | Py_INCREF(Py_None); | |
3747 | _resultobj = Py_None; | |
3748 | } | |
3749 | { | |
3750 | if (_obj0) | |
3751 | delete _arg0; | |
3752 | } | |
3753 | return _resultobj; | |
3754 | } | |
3755 | ||
3756 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3757 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3758 | PyObject * _resultobj; | |
3759 | wxGenericDragImage * _result; | |
3760 | wxTreeCtrl * _arg0; | |
3761 | wxTreeItemId * _arg1; | |
3762 | PyObject * _argo0 = 0; | |
3763 | PyObject * _argo1 = 0; | |
3764 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3765 | char _ptemp[128]; | |
3766 | ||
3767 | self = self; | |
3768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3769 | return NULL; | |
3770 | if (_argo0) { | |
3771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3774 | return NULL; | |
3775 | } | |
3776 | } | |
3777 | if (_argo1) { | |
3778 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3779 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3781 | return NULL; | |
3782 | } | |
3783 | } | |
3784 | { | |
3785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3786 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); | |
3787 | ||
3788 | wxPyEndAllowThreads(__tstate); | |
3789 | if (PyErr_Occurred()) return NULL; | |
3790 | } if (_result) { | |
3791 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3792 | _resultobj = Py_BuildValue("s",_ptemp); | |
3793 | } else { | |
3794 | Py_INCREF(Py_None); | |
3795 | _resultobj = Py_None; | |
3796 | } | |
3797 | return _resultobj; | |
3798 | } | |
3799 | ||
3800 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3801 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3802 | PyObject * _resultobj; | |
3803 | wxGenericDragImage * _result; | |
3804 | wxListCtrl * _arg0; | |
3805 | long _arg1; | |
3806 | PyObject * _argo0 = 0; | |
3807 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3808 | char _ptemp[128]; | |
3809 | ||
3810 | self = self; | |
3811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3812 | return NULL; | |
3813 | if (_argo0) { | |
3814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3817 | return NULL; | |
3818 | } | |
3819 | } | |
3820 | { | |
3821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3822 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); | |
3823 | ||
3824 | wxPyEndAllowThreads(__tstate); | |
3825 | if (PyErr_Occurred()) return NULL; | |
3826 | } if (_result) { | |
3827 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3828 | _resultobj = Py_BuildValue("s",_ptemp); | |
3829 | } else { | |
3830 | Py_INCREF(Py_None); | |
3831 | _resultobj = Py_None; | |
3832 | } | |
3833 | return _resultobj; | |
3834 | } | |
3835 | ||
3836 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) | |
3837 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3838 | PyObject * _resultobj; | |
3839 | wxGenericDragImage * _arg0; | |
3840 | PyObject * _argo0 = 0; | |
3841 | char *_kwnames[] = { "self", NULL }; | |
3842 | ||
3843 | self = self; | |
3844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3845 | return NULL; | |
3846 | if (_argo0) { | |
3847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3850 | return NULL; | |
3851 | } | |
3852 | } | |
3853 | { | |
3854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3855 | delete_wxGenericDragImage(_arg0); | |
3856 | ||
3857 | wxPyEndAllowThreads(__tstate); | |
3858 | if (PyErr_Occurred()) return NULL; | |
3859 | } Py_INCREF(Py_None); | |
3860 | _resultobj = Py_None; | |
3861 | return _resultobj; | |
3862 | } | |
3863 | ||
3864 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) | |
3865 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3866 | PyObject * _resultobj; | |
3867 | wxGenericDragImage * _arg0; | |
3868 | wxBitmap * _arg1; | |
3869 | PyObject * _argo0 = 0; | |
3870 | PyObject * _argo1 = 0; | |
3871 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3872 | ||
3873 | self = self; | |
3874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3875 | return NULL; | |
3876 | if (_argo0) { | |
3877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3880 | return NULL; | |
3881 | } | |
3882 | } | |
3883 | if (_argo1) { | |
3884 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3885 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3887 | return NULL; | |
3888 | } | |
3889 | } | |
3890 | { | |
3891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3892 | wxDragImage_SetBackingBitmap(_arg0,_arg1); | |
3893 | ||
3894 | wxPyEndAllowThreads(__tstate); | |
3895 | if (PyErr_Occurred()) return NULL; | |
3896 | } Py_INCREF(Py_None); | |
3897 | _resultobj = Py_None; | |
3898 | return _resultobj; | |
3899 | } | |
3900 | ||
3901 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3902 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3903 | PyObject * _resultobj; | |
3904 | bool _result; | |
3905 | wxGenericDragImage * _arg0; | |
3906 | wxPoint * _arg1; | |
3907 | wxWindow * _arg2; | |
3908 | bool _arg3 = (bool ) FALSE; | |
3909 | wxRect * _arg4 = (wxRect *) NULL; | |
3910 | PyObject * _argo0 = 0; | |
3911 | wxPoint temp; | |
3912 | PyObject * _obj1 = 0; | |
3913 | PyObject * _argo2 = 0; | |
3914 | int tempbool3 = (int) FALSE; | |
3915 | wxRect temp0; | |
3916 | PyObject * _obj4 = 0; | |
3917 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3918 | ||
3919 | self = self; | |
3920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3921 | return NULL; | |
3922 | if (_argo0) { | |
3923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3926 | return NULL; | |
3927 | } | |
3928 | } | |
3929 | { | |
3930 | _arg1 = &temp; | |
3931 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3932 | return NULL; | |
3933 | } | |
3934 | if (_argo2) { | |
3935 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3936 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3938 | return NULL; | |
3939 | } | |
3940 | } | |
3941 | _arg3 = (bool ) tempbool3; | |
3942 | if (_obj4) | |
3943 | { | |
3944 | _arg4 = &temp0; | |
3945 | if (! wxRect_helper(_obj4, &_arg4)) | |
3946 | return NULL; | |
3947 | } | |
3948 | { | |
3949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3950 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
3951 | ||
3952 | wxPyEndAllowThreads(__tstate); | |
3953 | if (PyErr_Occurred()) return NULL; | |
3954 | } _resultobj = Py_BuildValue("i",_result); | |
3955 | return _resultobj; | |
3956 | } | |
3957 | ||
3958 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3959 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3960 | PyObject * _resultobj; | |
3961 | bool _result; | |
3962 | wxGenericDragImage * _arg0; | |
3963 | wxPoint * _arg1; | |
3964 | wxWindow * _arg2; | |
3965 | wxWindow * _arg3; | |
3966 | PyObject * _argo0 = 0; | |
3967 | wxPoint temp; | |
3968 | PyObject * _obj1 = 0; | |
3969 | PyObject * _argo2 = 0; | |
3970 | PyObject * _argo3 = 0; | |
3971 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3972 | ||
3973 | self = self; | |
3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3975 | return NULL; | |
3976 | if (_argo0) { | |
3977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
3980 | return NULL; | |
3981 | } | |
3982 | } | |
3983 | { | |
3984 | _arg1 = &temp; | |
3985 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3986 | return NULL; | |
3987 | } | |
3988 | if (_argo2) { | |
3989 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3990 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3992 | return NULL; | |
3993 | } | |
3994 | } | |
3995 | if (_argo3) { | |
3996 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3997 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3999 | return NULL; | |
4000 | } | |
4001 | } | |
4002 | { | |
4003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4004 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); | |
4005 | ||
4006 | wxPyEndAllowThreads(__tstate); | |
4007 | if (PyErr_Occurred()) return NULL; | |
4008 | } _resultobj = Py_BuildValue("i",_result); | |
4009 | return _resultobj; | |
4010 | } | |
4011 | ||
4012 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
4013 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4014 | PyObject * _resultobj; | |
4015 | bool _result; | |
4016 | wxGenericDragImage * _arg0; | |
4017 | PyObject * _argo0 = 0; | |
4018 | char *_kwnames[] = { "self", NULL }; | |
4019 | ||
4020 | self = self; | |
4021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
4022 | return NULL; | |
4023 | if (_argo0) { | |
4024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
4027 | return NULL; | |
4028 | } | |
4029 | } | |
4030 | { | |
4031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4032 | _result = (bool )wxDragImage_EndDrag(_arg0); | |
4033 | ||
4034 | wxPyEndAllowThreads(__tstate); | |
4035 | if (PyErr_Occurred()) return NULL; | |
4036 | } _resultobj = Py_BuildValue("i",_result); | |
4037 | return _resultobj; | |
4038 | } | |
4039 | ||
4040 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
4041 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4042 | PyObject * _resultobj; | |
4043 | bool _result; | |
4044 | wxGenericDragImage * _arg0; | |
4045 | wxPoint * _arg1; | |
4046 | PyObject * _argo0 = 0; | |
4047 | wxPoint temp; | |
4048 | PyObject * _obj1 = 0; | |
4049 | char *_kwnames[] = { "self","pt", NULL }; | |
4050 | ||
4051 | self = self; | |
4052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
4053 | return NULL; | |
4054 | if (_argo0) { | |
4055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
4058 | return NULL; | |
4059 | } | |
4060 | } | |
4061 | { | |
4062 | _arg1 = &temp; | |
4063 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4064 | return NULL; | |
4065 | } | |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) return NULL; | |
4072 | } _resultobj = Py_BuildValue("i",_result); | |
4073 | return _resultobj; | |
4074 | } | |
4075 | ||
4076 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
4077 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4078 | PyObject * _resultobj; | |
4079 | bool _result; | |
4080 | wxGenericDragImage * _arg0; | |
4081 | PyObject * _argo0 = 0; | |
4082 | char *_kwnames[] = { "self", NULL }; | |
4083 | ||
4084 | self = self; | |
4085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
4086 | return NULL; | |
4087 | if (_argo0) { | |
4088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
4091 | return NULL; | |
4092 | } | |
4093 | } | |
4094 | { | |
4095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4096 | _result = (bool )wxDragImage_Show(_arg0); | |
4097 | ||
4098 | wxPyEndAllowThreads(__tstate); | |
4099 | if (PyErr_Occurred()) return NULL; | |
4100 | } _resultobj = Py_BuildValue("i",_result); | |
4101 | return _resultobj; | |
4102 | } | |
4103 | ||
4104 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
4105 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4106 | PyObject * _resultobj; | |
4107 | bool _result; | |
4108 | wxGenericDragImage * _arg0; | |
4109 | PyObject * _argo0 = 0; | |
4110 | char *_kwnames[] = { "self", NULL }; | |
4111 | ||
4112 | self = self; | |
4113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
4114 | return NULL; | |
4115 | if (_argo0) { | |
4116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
4119 | return NULL; | |
4120 | } | |
4121 | } | |
4122 | { | |
4123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4124 | _result = (bool )wxDragImage_Hide(_arg0); | |
4125 | ||
4126 | wxPyEndAllowThreads(__tstate); | |
4127 | if (PyErr_Occurred()) return NULL; | |
4128 | } _resultobj = Py_BuildValue("i",_result); | |
4129 | return _resultobj; | |
4130 | } | |
4131 | ||
4132 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
4133 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4134 | PyObject * _resultobj; | |
4135 | wxRect * _result; | |
4136 | wxGenericDragImage * _arg0; | |
4137 | wxPoint * _arg1; | |
4138 | PyObject * _argo0 = 0; | |
4139 | wxPoint temp; | |
4140 | PyObject * _obj1 = 0; | |
4141 | char *_kwnames[] = { "self","pos", NULL }; | |
4142 | char _ptemp[128]; | |
4143 | ||
4144 | self = self; | |
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
4146 | return NULL; | |
4147 | if (_argo0) { | |
4148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4151 | return NULL; | |
4152 | } | |
4153 | } | |
4154 | { | |
4155 | _arg1 = &temp; | |
4156 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4157 | return NULL; | |
4158 | } | |
4159 | { | |
4160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4161 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); | |
4162 | ||
4163 | wxPyEndAllowThreads(__tstate); | |
4164 | if (PyErr_Occurred()) return NULL; | |
4165 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
4166 | _resultobj = Py_BuildValue("s",_ptemp); | |
4167 | return _resultobj; | |
4168 | } | |
4169 | ||
4170 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4171 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4172 | PyObject * _resultobj; | |
4173 | bool _result; | |
4174 | wxGenericDragImage * _arg0; | |
4175 | wxPoint * _arg1; | |
4176 | wxPoint * _arg2; | |
4177 | bool _arg3; | |
4178 | bool _arg4; | |
4179 | PyObject * _argo0 = 0; | |
4180 | wxPoint temp; | |
4181 | PyObject * _obj1 = 0; | |
4182 | wxPoint temp0; | |
4183 | PyObject * _obj2 = 0; | |
4184 | int tempbool3; | |
4185 | int tempbool4; | |
4186 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4187 | ||
4188 | self = self; | |
4189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4190 | return NULL; | |
4191 | if (_argo0) { | |
4192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4195 | return NULL; | |
4196 | } | |
4197 | } | |
4198 | { | |
4199 | _arg1 = &temp; | |
4200 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4201 | return NULL; | |
4202 | } | |
4203 | { | |
4204 | _arg2 = &temp0; | |
4205 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4206 | return NULL; | |
4207 | } | |
4208 | _arg3 = (bool ) tempbool3; | |
4209 | _arg4 = (bool ) tempbool4; | |
4210 | { | |
4211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4212 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
4213 | ||
4214 | wxPyEndAllowThreads(__tstate); | |
4215 | if (PyErr_Occurred()) return NULL; | |
4216 | } _resultobj = Py_BuildValue("i",_result); | |
4217 | return _resultobj; | |
4218 | } | |
4219 | ||
4220 | static void *SwigwxPyTimerTowxObject(void *ptr) { | |
4221 | wxPyTimer *src; | |
4222 | wxObject *dest; | |
4223 | src = (wxPyTimer *) ptr; | |
4224 | dest = (wxObject *) src; | |
4225 | return (void *) dest; | |
4226 | } | |
4227 | ||
4228 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) | |
4229 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4230 | PyObject * _resultobj; | |
4231 | wxPyTimer * _result; | |
4232 | PyObject * _arg0; | |
4233 | PyObject * _obj0 = 0; | |
4234 | char *_kwnames[] = { "notify", NULL }; | |
4235 | char _ptemp[128]; | |
4236 | ||
4237 | self = self; | |
4238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4239 | return NULL; | |
4240 | { | |
4241 | _arg0 = _obj0; | |
4242 | } | |
4243 | { | |
4244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4245 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); | |
4246 | ||
4247 | wxPyEndAllowThreads(__tstate); | |
4248 | if (PyErr_Occurred()) return NULL; | |
4249 | } if (_result) { | |
4250 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4251 | _resultobj = Py_BuildValue("s",_ptemp); | |
4252 | } else { | |
4253 | Py_INCREF(Py_None); | |
4254 | _resultobj = Py_None; | |
4255 | } | |
4256 | return _resultobj; | |
4257 | } | |
4258 | ||
4259 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4260 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4261 | PyObject * _resultobj; | |
4262 | wxPyTimer * _arg0; | |
4263 | PyObject * _argo0 = 0; | |
4264 | char *_kwnames[] = { "self", NULL }; | |
4265 | ||
4266 | self = self; | |
4267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4268 | return NULL; | |
4269 | if (_argo0) { | |
4270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4273 | return NULL; | |
4274 | } | |
4275 | } | |
4276 | { | |
4277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4278 | delete_wxPyTimer(_arg0); | |
4279 | ||
4280 | wxPyEndAllowThreads(__tstate); | |
4281 | if (PyErr_Occurred()) return NULL; | |
4282 | } Py_INCREF(Py_None); | |
4283 | _resultobj = Py_None; | |
4284 | return _resultobj; | |
4285 | } | |
4286 | ||
4287 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4288 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4289 | PyObject * _resultobj; | |
4290 | int _result; | |
4291 | wxPyTimer * _arg0; | |
4292 | PyObject * _argo0 = 0; | |
4293 | char *_kwnames[] = { "self", NULL }; | |
4294 | ||
4295 | self = self; | |
4296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4297 | return NULL; | |
4298 | if (_argo0) { | |
4299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4302 | return NULL; | |
4303 | } | |
4304 | } | |
4305 | { | |
4306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4307 | _result = (int )wxPyTimer_GetInterval(_arg0); | |
4308 | ||
4309 | wxPyEndAllowThreads(__tstate); | |
4310 | if (PyErr_Occurred()) return NULL; | |
4311 | } _resultobj = Py_BuildValue("i",_result); | |
4312 | return _resultobj; | |
4313 | } | |
4314 | ||
4315 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4316 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4317 | PyObject * _resultobj; | |
4318 | bool _result; | |
4319 | wxPyTimer * _arg0; | |
4320 | PyObject * _argo0 = 0; | |
4321 | char *_kwnames[] = { "self", NULL }; | |
4322 | ||
4323 | self = self; | |
4324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4325 | return NULL; | |
4326 | if (_argo0) { | |
4327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4330 | return NULL; | |
4331 | } | |
4332 | } | |
4333 | { | |
4334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4335 | _result = (bool )wxPyTimer_IsOneShot(_arg0); | |
4336 | ||
4337 | wxPyEndAllowThreads(__tstate); | |
4338 | if (PyErr_Occurred()) return NULL; | |
4339 | } _resultobj = Py_BuildValue("i",_result); | |
4340 | return _resultobj; | |
4341 | } | |
4342 | ||
4343 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4344 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4345 | PyObject * _resultobj; | |
4346 | bool _result; | |
4347 | wxPyTimer * _arg0; | |
4348 | PyObject * _argo0 = 0; | |
4349 | char *_kwnames[] = { "self", NULL }; | |
4350 | ||
4351 | self = self; | |
4352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4353 | return NULL; | |
4354 | if (_argo0) { | |
4355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4358 | return NULL; | |
4359 | } | |
4360 | } | |
4361 | { | |
4362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4363 | _result = (bool )wxPyTimer_IsRunning(_arg0); | |
4364 | ||
4365 | wxPyEndAllowThreads(__tstate); | |
4366 | if (PyErr_Occurred()) return NULL; | |
4367 | } _resultobj = Py_BuildValue("i",_result); | |
4368 | return _resultobj; | |
4369 | } | |
4370 | ||
4371 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4372 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4373 | PyObject * _resultobj; | |
4374 | wxPyTimer * _arg0; | |
4375 | wxEvtHandler * _arg1; | |
4376 | int _arg2 = (int ) -1; | |
4377 | PyObject * _argo0 = 0; | |
4378 | PyObject * _argo1 = 0; | |
4379 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4380 | ||
4381 | self = self; | |
4382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4383 | return NULL; | |
4384 | if (_argo0) { | |
4385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4388 | return NULL; | |
4389 | } | |
4390 | } | |
4391 | if (_argo1) { | |
4392 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4393 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4395 | return NULL; | |
4396 | } | |
4397 | } | |
4398 | { | |
4399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4400 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); | |
4401 | ||
4402 | wxPyEndAllowThreads(__tstate); | |
4403 | if (PyErr_Occurred()) return NULL; | |
4404 | } Py_INCREF(Py_None); | |
4405 | _resultobj = Py_None; | |
4406 | return _resultobj; | |
4407 | } | |
4408 | ||
4409 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4410 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4411 | PyObject * _resultobj; | |
4412 | wxPyTimer * _arg0; | |
4413 | int _arg1 = (int ) -1; | |
4414 | int _arg2 = (int ) FALSE; | |
4415 | PyObject * _argo0 = 0; | |
4416 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4417 | ||
4418 | self = self; | |
4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4420 | return NULL; | |
4421 | if (_argo0) { | |
4422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4425 | return NULL; | |
4426 | } | |
4427 | } | |
4428 | { | |
4429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4430 | wxPyTimer_Start(_arg0,_arg1,_arg2); | |
4431 | ||
4432 | wxPyEndAllowThreads(__tstate); | |
4433 | if (PyErr_Occurred()) return NULL; | |
4434 | } Py_INCREF(Py_None); | |
4435 | _resultobj = Py_None; | |
4436 | return _resultobj; | |
4437 | } | |
4438 | ||
4439 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4440 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4441 | PyObject * _resultobj; | |
4442 | wxPyTimer * _arg0; | |
4443 | PyObject * _argo0 = 0; | |
4444 | char *_kwnames[] = { "self", NULL }; | |
4445 | ||
4446 | self = self; | |
4447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) | |
4448 | return NULL; | |
4449 | if (_argo0) { | |
4450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
4453 | return NULL; | |
4454 | } | |
4455 | } | |
4456 | { | |
4457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4458 | wxPyTimer_Stop(_arg0); | |
4459 | ||
4460 | wxPyEndAllowThreads(__tstate); | |
4461 | if (PyErr_Occurred()) return NULL; | |
4462 | } Py_INCREF(Py_None); | |
4463 | _resultobj = Py_None; | |
4464 | return _resultobj; | |
4465 | } | |
4466 | ||
4467 | #define new_wxStopWatch() (new wxStopWatch()) | |
4468 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4469 | PyObject * _resultobj; | |
4470 | wxStopWatch * _result; | |
4471 | char *_kwnames[] = { NULL }; | |
4472 | char _ptemp[128]; | |
4473 | ||
4474 | self = self; | |
4475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4476 | return NULL; | |
4477 | { | |
4478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4479 | _result = (wxStopWatch *)new_wxStopWatch(); | |
4480 | ||
4481 | wxPyEndAllowThreads(__tstate); | |
4482 | if (PyErr_Occurred()) return NULL; | |
4483 | } if (_result) { | |
4484 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4485 | _resultobj = Py_BuildValue("s",_ptemp); | |
4486 | } else { | |
4487 | Py_INCREF(Py_None); | |
4488 | _resultobj = Py_None; | |
4489 | } | |
4490 | return _resultobj; | |
4491 | } | |
4492 | ||
4493 | #define delete_wxStopWatch(_swigobj) (delete _swigobj) | |
4494 | static PyObject *_wrap_delete_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4495 | PyObject * _resultobj; | |
4496 | wxStopWatch * _arg0; | |
4497 | PyObject * _argo0 = 0; | |
4498 | char *_kwnames[] = { "self", NULL }; | |
4499 | ||
4500 | self = self; | |
4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxStopWatch",_kwnames,&_argo0)) | |
4502 | return NULL; | |
4503 | if (_argo0) { | |
4504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxStopWatch. Expected _wxStopWatch_p."); | |
4507 | return NULL; | |
4508 | } | |
4509 | } | |
4510 | { | |
4511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4512 | delete_wxStopWatch(_arg0); | |
4513 | ||
4514 | wxPyEndAllowThreads(__tstate); | |
4515 | if (PyErr_Occurred()) return NULL; | |
4516 | } Py_INCREF(Py_None); | |
4517 | _resultobj = Py_None; | |
4518 | return _resultobj; | |
4519 | } | |
4520 | ||
4521 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) | |
4522 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4523 | PyObject * _resultobj; | |
4524 | wxStopWatch * _arg0; | |
4525 | long _arg1 = (long ) 0; | |
4526 | PyObject * _argo0 = 0; | |
4527 | char *_kwnames[] = { "self","t", NULL }; | |
4528 | ||
4529 | self = self; | |
4530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4531 | return NULL; | |
4532 | if (_argo0) { | |
4533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4536 | return NULL; | |
4537 | } | |
4538 | } | |
4539 | { | |
4540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4541 | wxStopWatch_Start(_arg0,_arg1); | |
4542 | ||
4543 | wxPyEndAllowThreads(__tstate); | |
4544 | if (PyErr_Occurred()) return NULL; | |
4545 | } Py_INCREF(Py_None); | |
4546 | _resultobj = Py_None; | |
4547 | return _resultobj; | |
4548 | } | |
4549 | ||
4550 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4551 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4552 | PyObject * _resultobj; | |
4553 | wxStopWatch * _arg0; | |
4554 | PyObject * _argo0 = 0; | |
4555 | char *_kwnames[] = { "self", NULL }; | |
4556 | ||
4557 | self = self; | |
4558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4559 | return NULL; | |
4560 | if (_argo0) { | |
4561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4564 | return NULL; | |
4565 | } | |
4566 | } | |
4567 | { | |
4568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4569 | wxStopWatch_Pause(_arg0); | |
4570 | ||
4571 | wxPyEndAllowThreads(__tstate); | |
4572 | if (PyErr_Occurred()) return NULL; | |
4573 | } Py_INCREF(Py_None); | |
4574 | _resultobj = Py_None; | |
4575 | return _resultobj; | |
4576 | } | |
4577 | ||
4578 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4579 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4580 | PyObject * _resultobj; | |
4581 | wxStopWatch * _arg0; | |
4582 | PyObject * _argo0 = 0; | |
4583 | char *_kwnames[] = { "self", NULL }; | |
4584 | ||
4585 | self = self; | |
4586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4587 | return NULL; | |
4588 | if (_argo0) { | |
4589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4592 | return NULL; | |
4593 | } | |
4594 | } | |
4595 | { | |
4596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4597 | wxStopWatch_Resume(_arg0); | |
4598 | ||
4599 | wxPyEndAllowThreads(__tstate); | |
4600 | if (PyErr_Occurred()) return NULL; | |
4601 | } Py_INCREF(Py_None); | |
4602 | _resultobj = Py_None; | |
4603 | return _resultobj; | |
4604 | } | |
4605 | ||
4606 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4607 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4608 | PyObject * _resultobj; | |
4609 | long _result; | |
4610 | wxStopWatch * _arg0; | |
4611 | PyObject * _argo0 = 0; | |
4612 | char *_kwnames[] = { "self", NULL }; | |
4613 | ||
4614 | self = self; | |
4615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4616 | return NULL; | |
4617 | if (_argo0) { | |
4618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4621 | return NULL; | |
4622 | } | |
4623 | } | |
4624 | { | |
4625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4626 | _result = (long )wxStopWatch_Time(_arg0); | |
4627 | ||
4628 | wxPyEndAllowThreads(__tstate); | |
4629 | if (PyErr_Occurred()) return NULL; | |
4630 | } _resultobj = Py_BuildValue("l",_result); | |
4631 | return _resultobj; | |
4632 | } | |
4633 | ||
4634 | #define new_wxLog() (new wxLog()) | |
4635 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4636 | PyObject * _resultobj; | |
4637 | wxLog * _result; | |
4638 | char *_kwnames[] = { NULL }; | |
4639 | char _ptemp[128]; | |
4640 | ||
4641 | self = self; | |
4642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) | |
4643 | return NULL; | |
4644 | { | |
4645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4646 | _result = (wxLog *)new_wxLog(); | |
4647 | ||
4648 | wxPyEndAllowThreads(__tstate); | |
4649 | if (PyErr_Occurred()) return NULL; | |
4650 | } if (_result) { | |
4651 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4652 | _resultobj = Py_BuildValue("s",_ptemp); | |
4653 | } else { | |
4654 | Py_INCREF(Py_None); | |
4655 | _resultobj = Py_None; | |
4656 | } | |
4657 | return _resultobj; | |
4658 | } | |
4659 | ||
4660 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4661 | PyObject * _resultobj; | |
4662 | bool _result; | |
4663 | char *_kwnames[] = { NULL }; | |
4664 | ||
4665 | self = self; | |
4666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4667 | return NULL; | |
4668 | { | |
4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4670 | _result = (bool )wxLog::IsEnabled(); | |
4671 | ||
4672 | wxPyEndAllowThreads(__tstate); | |
4673 | if (PyErr_Occurred()) return NULL; | |
4674 | } _resultobj = Py_BuildValue("i",_result); | |
4675 | return _resultobj; | |
4676 | } | |
4677 | ||
4678 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4679 | PyObject * _resultobj; | |
4680 | bool _result; | |
4681 | bool _arg0 = (bool ) TRUE; | |
4682 | int tempbool0 = (int) TRUE; | |
4683 | char *_kwnames[] = { "doIt", NULL }; | |
4684 | ||
4685 | self = self; | |
4686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4687 | return NULL; | |
4688 | _arg0 = (bool ) tempbool0; | |
4689 | { | |
4690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4691 | _result = (bool )wxLog::EnableLogging(_arg0); | |
4692 | ||
4693 | wxPyEndAllowThreads(__tstate); | |
4694 | if (PyErr_Occurred()) return NULL; | |
4695 | } _resultobj = Py_BuildValue("i",_result); | |
4696 | return _resultobj; | |
4697 | } | |
4698 | ||
4699 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4700 | PyObject * _resultobj; | |
4701 | wxLogLevel * _arg0; | |
4702 | char * _arg1; | |
4703 | int _arg2 = (int ) 0; | |
4704 | PyObject * _argo0 = 0; | |
4705 | char *_kwnames[] = { "level","szString","t", NULL }; | |
4706 | ||
4707 | self = self; | |
4708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|i:wxLog_OnLog",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4709 | return NULL; | |
4710 | if (_argo0) { | |
4711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { | |
4713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
4714 | return NULL; | |
4715 | } | |
4716 | } | |
4717 | { | |
4718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4719 | wxLog::OnLog(*_arg0,_arg1,_arg2); | |
4720 | ||
4721 | wxPyEndAllowThreads(__tstate); | |
4722 | if (PyErr_Occurred()) return NULL; | |
4723 | } Py_INCREF(Py_None); | |
4724 | _resultobj = Py_None; | |
4725 | return _resultobj; | |
4726 | } | |
4727 | ||
4728 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4729 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4730 | PyObject * _resultobj; | |
4731 | wxLog * _arg0; | |
4732 | PyObject * _argo0 = 0; | |
4733 | char *_kwnames[] = { "self", NULL }; | |
4734 | ||
4735 | self = self; | |
4736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4737 | return NULL; | |
4738 | if (_argo0) { | |
4739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4742 | return NULL; | |
4743 | } | |
4744 | } | |
4745 | { | |
4746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4747 | wxLog_Flush(_arg0); | |
4748 | ||
4749 | wxPyEndAllowThreads(__tstate); | |
4750 | if (PyErr_Occurred()) return NULL; | |
4751 | } Py_INCREF(Py_None); | |
4752 | _resultobj = Py_None; | |
4753 | return _resultobj; | |
4754 | } | |
4755 | ||
4756 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) | |
4757 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4758 | PyObject * _resultobj; | |
4759 | bool _result; | |
4760 | wxLog * _arg0; | |
4761 | PyObject * _argo0 = 0; | |
4762 | char *_kwnames[] = { "self", NULL }; | |
4763 | ||
4764 | self = self; | |
4765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) | |
4766 | return NULL; | |
4767 | if (_argo0) { | |
4768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
4771 | return NULL; | |
4772 | } | |
4773 | } | |
4774 | { | |
4775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4776 | _result = (bool )wxLog_HasPendingMessages(_arg0); | |
4777 | ||
4778 | wxPyEndAllowThreads(__tstate); | |
4779 | if (PyErr_Occurred()) return NULL; | |
4780 | } _resultobj = Py_BuildValue("i",_result); | |
4781 | return _resultobj; | |
4782 | } | |
4783 | ||
4784 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4785 | PyObject * _resultobj; | |
4786 | char *_kwnames[] = { NULL }; | |
4787 | ||
4788 | self = self; | |
4789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4790 | return NULL; | |
4791 | { | |
4792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4793 | wxLog::FlushActive(); | |
4794 | ||
4795 | wxPyEndAllowThreads(__tstate); | |
4796 | if (PyErr_Occurred()) return NULL; | |
4797 | } Py_INCREF(Py_None); | |
4798 | _resultobj = Py_None; | |
4799 | return _resultobj; | |
4800 | } | |
4801 | ||
4802 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4803 | PyObject * _resultobj; | |
4804 | wxLog * _result; | |
4805 | char *_kwnames[] = { NULL }; | |
4806 | char _ptemp[128]; | |
4807 | ||
4808 | self = self; | |
4809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4810 | return NULL; | |
4811 | { | |
4812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4813 | _result = (wxLog *)wxLog::GetActiveTarget(); | |
4814 | ||
4815 | wxPyEndAllowThreads(__tstate); | |
4816 | if (PyErr_Occurred()) return NULL; | |
4817 | } if (_result) { | |
4818 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4819 | _resultobj = Py_BuildValue("s",_ptemp); | |
4820 | } else { | |
4821 | Py_INCREF(Py_None); | |
4822 | _resultobj = Py_None; | |
4823 | } | |
4824 | return _resultobj; | |
4825 | } | |
4826 | ||
4827 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4828 | PyObject * _resultobj; | |
4829 | wxLog * _result; | |
4830 | wxLog * _arg0; | |
4831 | PyObject * _argo0 = 0; | |
4832 | char *_kwnames[] = { "pLogger", NULL }; | |
4833 | char _ptemp[128]; | |
4834 | ||
4835 | self = self; | |
4836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) | |
4837 | return NULL; | |
4838 | if (_argo0) { | |
4839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
4842 | return NULL; | |
4843 | } | |
4844 | } | |
4845 | { | |
4846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4847 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); | |
4848 | ||
4849 | wxPyEndAllowThreads(__tstate); | |
4850 | if (PyErr_Occurred()) return NULL; | |
4851 | } if (_result) { | |
4852 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4853 | _resultobj = Py_BuildValue("s",_ptemp); | |
4854 | } else { | |
4855 | Py_INCREF(Py_None); | |
4856 | _resultobj = Py_None; | |
4857 | } | |
4858 | return _resultobj; | |
4859 | } | |
4860 | ||
4861 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4862 | PyObject * _resultobj; | |
4863 | char *_kwnames[] = { NULL }; | |
4864 | ||
4865 | self = self; | |
4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4867 | return NULL; | |
4868 | { | |
4869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4870 | wxLog::Suspend(); | |
4871 | ||
4872 | wxPyEndAllowThreads(__tstate); | |
4873 | if (PyErr_Occurred()) return NULL; | |
4874 | } Py_INCREF(Py_None); | |
4875 | _resultobj = Py_None; | |
4876 | return _resultobj; | |
4877 | } | |
4878 | ||
4879 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4880 | PyObject * _resultobj; | |
4881 | char *_kwnames[] = { NULL }; | |
4882 | ||
4883 | self = self; | |
4884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4885 | return NULL; | |
4886 | { | |
4887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4888 | wxLog::Resume(); | |
4889 | ||
4890 | wxPyEndAllowThreads(__tstate); | |
4891 | if (PyErr_Occurred()) return NULL; | |
4892 | } Py_INCREF(Py_None); | |
4893 | _resultobj = Py_None; | |
4894 | return _resultobj; | |
4895 | } | |
4896 | ||
4897 | #define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0)) | |
4898 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4899 | PyObject * _resultobj; | |
4900 | wxLog * _arg0; | |
4901 | bool _arg1 = (bool ) TRUE; | |
4902 | PyObject * _argo0 = 0; | |
4903 | int tempbool1 = (int) TRUE; | |
4904 | char *_kwnames[] = { "self","bVerbose", NULL }; | |
4905 | ||
4906 | self = self; | |
4907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1)) | |
4908 | return NULL; | |
4909 | if (_argo0) { | |
4910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p."); | |
4913 | return NULL; | |
4914 | } | |
4915 | } | |
4916 | _arg1 = (bool ) tempbool1; | |
4917 | { | |
4918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4919 | wxLog_SetVerbose(_arg0,_arg1); | |
4920 | ||
4921 | wxPyEndAllowThreads(__tstate); | |
4922 | if (PyErr_Occurred()) return NULL; | |
4923 | } Py_INCREF(Py_None); | |
4924 | _resultobj = Py_None; | |
4925 | return _resultobj; | |
4926 | } | |
4927 | ||
4928 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4929 | PyObject * _resultobj; | |
4930 | char *_kwnames[] = { NULL }; | |
4931 | ||
4932 | self = self; | |
4933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4934 | return NULL; | |
4935 | { | |
4936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4937 | wxLog::DontCreateOnDemand(); | |
4938 | ||
4939 | wxPyEndAllowThreads(__tstate); | |
4940 | if (PyErr_Occurred()) return NULL; | |
4941 | } Py_INCREF(Py_None); | |
4942 | _resultobj = Py_None; | |
4943 | return _resultobj; | |
4944 | } | |
4945 | ||
4946 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4947 | PyObject * _resultobj; | |
4948 | wxTraceMask * _arg0; | |
4949 | PyObject * _argo0 = 0; | |
4950 | char *_kwnames[] = { "ulMask", NULL }; | |
4951 | ||
4952 | self = self; | |
4953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) | |
4954 | return NULL; | |
4955 | if (_argo0) { | |
4956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { | |
4958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
4959 | return NULL; | |
4960 | } | |
4961 | } | |
4962 | { | |
4963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4964 | wxLog::SetTraceMask(*_arg0); | |
4965 | ||
4966 | wxPyEndAllowThreads(__tstate); | |
4967 | if (PyErr_Occurred()) return NULL; | |
4968 | } Py_INCREF(Py_None); | |
4969 | _resultobj = Py_None; | |
4970 | return _resultobj; | |
4971 | } | |
4972 | ||
4973 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4974 | PyObject * _resultobj; | |
4975 | wxString * _arg0; | |
4976 | PyObject * _obj0 = 0; | |
4977 | char *_kwnames[] = { "str", NULL }; | |
4978 | ||
4979 | self = self; | |
4980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4981 | return NULL; | |
4982 | { | |
4983 | #if PYTHON_API_VERSION >= 1009 | |
4984 | char* tmpPtr; int tmpSize; | |
4985 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
4986 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4987 | return NULL; | |
4988 | } | |
4989 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4990 | return NULL; | |
4991 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4992 | #else | |
4993 | if (!PyString_Check(_obj0)) { | |
4994 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4995 | return NULL; | |
4996 | } | |
4997 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
4998 | #endif | |
4999 | } | |
5000 | { | |
5001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5002 | wxLog::AddTraceMask(*_arg0); | |
5003 | ||
5004 | wxPyEndAllowThreads(__tstate); | |
5005 | if (PyErr_Occurred()) return NULL; | |
5006 | } Py_INCREF(Py_None); | |
5007 | _resultobj = Py_None; | |
5008 | { | |
5009 | if (_obj0) | |
5010 | delete _arg0; | |
5011 | } | |
5012 | return _resultobj; | |
5013 | } | |
5014 | ||
5015 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5016 | PyObject * _resultobj; | |
5017 | wxString * _arg0; | |
5018 | PyObject * _obj0 = 0; | |
5019 | char *_kwnames[] = { "str", NULL }; | |
5020 | ||
5021 | self = self; | |
5022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
5023 | return NULL; | |
5024 | { | |
5025 | #if PYTHON_API_VERSION >= 1009 | |
5026 | char* tmpPtr; int tmpSize; | |
5027 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
5028 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5029 | return NULL; | |
5030 | } | |
5031 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
5032 | return NULL; | |
5033 | _arg0 = new wxString(tmpPtr, tmpSize); | |
5034 | #else | |
5035 | if (!PyString_Check(_obj0)) { | |
5036 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5037 | return NULL; | |
5038 | } | |
5039 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
5040 | #endif | |
5041 | } | |
5042 | { | |
5043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5044 | wxLog::RemoveTraceMask(*_arg0); | |
5045 | ||
5046 | wxPyEndAllowThreads(__tstate); | |
5047 | if (PyErr_Occurred()) return NULL; | |
5048 | } Py_INCREF(Py_None); | |
5049 | _resultobj = Py_None; | |
5050 | { | |
5051 | if (_obj0) | |
5052 | delete _arg0; | |
5053 | } | |
5054 | return _resultobj; | |
5055 | } | |
5056 | ||
5057 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5058 | PyObject * _resultobj; | |
5059 | char *_kwnames[] = { NULL }; | |
5060 | ||
5061 | self = self; | |
5062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
5063 | return NULL; | |
5064 | { | |
5065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5066 | wxLog::ClearTraceMasks(); | |
5067 | ||
5068 | wxPyEndAllowThreads(__tstate); | |
5069 | if (PyErr_Occurred()) return NULL; | |
5070 | } Py_INCREF(Py_None); | |
5071 | _resultobj = Py_None; | |
5072 | return _resultobj; | |
5073 | } | |
5074 | ||
5075 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5076 | PyObject * _resultobj; | |
5077 | wxChar * _arg0; | |
5078 | char *_kwnames[] = { "ts", NULL }; | |
5079 | ||
5080 | self = self; | |
5081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_SetTimestamp",_kwnames,&_arg0)) | |
5082 | return NULL; | |
5083 | { | |
5084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5085 | wxLog::SetTimestamp(_arg0); | |
5086 | ||
5087 | wxPyEndAllowThreads(__tstate); | |
5088 | if (PyErr_Occurred()) return NULL; | |
5089 | } Py_INCREF(Py_None); | |
5090 | _resultobj = Py_None; | |
5091 | return _resultobj; | |
5092 | } | |
5093 | ||
5094 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5095 | PyObject * _resultobj; | |
5096 | wxChar * _result; | |
5097 | char *_kwnames[] = { NULL }; | |
5098 | ||
5099 | self = self; | |
5100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
5101 | return NULL; | |
5102 | { | |
5103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5104 | _result = (wxChar *)wxLog::GetTimestamp(); | |
5105 | ||
5106 | wxPyEndAllowThreads(__tstate); | |
5107 | if (PyErr_Occurred()) return NULL; | |
5108 | } _resultobj = Py_BuildValue("s", _result); | |
5109 | return _resultobj; | |
5110 | } | |
5111 | ||
5112 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) | |
5113 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5114 | PyObject * _resultobj; | |
5115 | bool _result; | |
5116 | wxLog * _arg0; | |
5117 | PyObject * _argo0 = 0; | |
5118 | char *_kwnames[] = { "self", NULL }; | |
5119 | ||
5120 | self = self; | |
5121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) | |
5122 | return NULL; | |
5123 | if (_argo0) { | |
5124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
5127 | return NULL; | |
5128 | } | |
5129 | } | |
5130 | { | |
5131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5132 | _result = (bool )wxLog_GetVerbose(_arg0); | |
5133 | ||
5134 | wxPyEndAllowThreads(__tstate); | |
5135 | if (PyErr_Occurred()) return NULL; | |
5136 | } _resultobj = Py_BuildValue("i",_result); | |
5137 | return _resultobj; | |
5138 | } | |
5139 | ||
5140 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5141 | PyObject * _resultobj; | |
5142 | wxTraceMask * _result; | |
5143 | char *_kwnames[] = { NULL }; | |
5144 | char _ptemp[128]; | |
5145 | ||
5146 | self = self; | |
5147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) | |
5148 | return NULL; | |
5149 | { | |
5150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5151 | _result = new wxTraceMask (wxLog::GetTraceMask()); | |
5152 | ||
5153 | wxPyEndAllowThreads(__tstate); | |
5154 | if (PyErr_Occurred()) return NULL; | |
5155 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); | |
5156 | _resultobj = Py_BuildValue("s",_ptemp); | |
5157 | return _resultobj; | |
5158 | } | |
5159 | ||
5160 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5161 | PyObject * _resultobj; | |
5162 | bool _result; | |
5163 | char * _arg0; | |
5164 | char *_kwnames[] = { "mask", NULL }; | |
5165 | ||
5166 | self = self; | |
5167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_IsAllowedTraceMask",_kwnames,&_arg0)) | |
5168 | return NULL; | |
5169 | { | |
5170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5171 | _result = (bool )wxLog::IsAllowedTraceMask(_arg0); | |
5172 | ||
5173 | wxPyEndAllowThreads(__tstate); | |
5174 | if (PyErr_Occurred()) return NULL; | |
5175 | } _resultobj = Py_BuildValue("i",_result); | |
5176 | return _resultobj; | |
5177 | } | |
5178 | ||
5179 | static wxString wxLog_TimeStamp(wxLog *self) { | |
5180 | wxString msg; | |
5181 | wxLog::TimeStamp(&msg); | |
5182 | return msg; | |
5183 | } | |
5184 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5185 | PyObject * _resultobj; | |
5186 | wxString * _result; | |
5187 | wxLog * _arg0; | |
5188 | PyObject * _argo0 = 0; | |
5189 | char *_kwnames[] = { "self", NULL }; | |
5190 | ||
5191 | self = self; | |
5192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5193 | return NULL; | |
5194 | if (_argo0) { | |
5195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5198 | return NULL; | |
5199 | } | |
5200 | } | |
5201 | { | |
5202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5203 | _result = new wxString (wxLog_TimeStamp(_arg0)); | |
5204 | ||
5205 | wxPyEndAllowThreads(__tstate); | |
5206 | if (PyErr_Occurred()) return NULL; | |
5207 | }{ | |
5208 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5209 | } | |
5210 | { | |
5211 | delete _result; | |
5212 | } | |
5213 | return _resultobj; | |
5214 | } | |
5215 | ||
5216 | static void *SwigwxLogStderrTowxLog(void *ptr) { | |
5217 | wxLogStderr *src; | |
5218 | wxLog *dest; | |
5219 | src = (wxLogStderr *) ptr; | |
5220 | dest = (wxLog *) src; | |
5221 | return (void *) dest; | |
5222 | } | |
5223 | ||
5224 | #define new_wxLogStderr() (new wxLogStderr()) | |
5225 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5226 | PyObject * _resultobj; | |
5227 | wxLogStderr * _result; | |
5228 | char *_kwnames[] = { NULL }; | |
5229 | char _ptemp[128]; | |
5230 | ||
5231 | self = self; | |
5232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) | |
5233 | return NULL; | |
5234 | { | |
5235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5236 | _result = (wxLogStderr *)new_wxLogStderr(); | |
5237 | ||
5238 | wxPyEndAllowThreads(__tstate); | |
5239 | if (PyErr_Occurred()) return NULL; | |
5240 | } if (_result) { | |
5241 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5242 | _resultobj = Py_BuildValue("s",_ptemp); | |
5243 | } else { | |
5244 | Py_INCREF(Py_None); | |
5245 | _resultobj = Py_None; | |
5246 | } | |
5247 | return _resultobj; | |
5248 | } | |
5249 | ||
5250 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { | |
5251 | wxLogTextCtrl *src; | |
5252 | wxLog *dest; | |
5253 | src = (wxLogTextCtrl *) ptr; | |
5254 | dest = (wxLog *) src; | |
5255 | return (void *) dest; | |
5256 | } | |
5257 | ||
5258 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5259 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5260 | PyObject * _resultobj; | |
5261 | wxLogTextCtrl * _result; | |
5262 | wxTextCtrl * _arg0; | |
5263 | PyObject * _argo0 = 0; | |
5264 | char *_kwnames[] = { "pTextCtrl", NULL }; | |
5265 | char _ptemp[128]; | |
5266 | ||
5267 | self = self; | |
5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) | |
5269 | return NULL; | |
5270 | if (_argo0) { | |
5271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
5273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
5274 | return NULL; | |
5275 | } | |
5276 | } | |
5277 | { | |
5278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5279 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); | |
5280 | ||
5281 | wxPyEndAllowThreads(__tstate); | |
5282 | if (PyErr_Occurred()) return NULL; | |
5283 | } if (_result) { | |
5284 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5285 | _resultobj = Py_BuildValue("s",_ptemp); | |
5286 | } else { | |
5287 | Py_INCREF(Py_None); | |
5288 | _resultobj = Py_None; | |
5289 | } | |
5290 | return _resultobj; | |
5291 | } | |
5292 | ||
5293 | static void *SwigwxLogGuiTowxLog(void *ptr) { | |
5294 | wxLogGui *src; | |
5295 | wxLog *dest; | |
5296 | src = (wxLogGui *) ptr; | |
5297 | dest = (wxLog *) src; | |
5298 | return (void *) dest; | |
5299 | } | |
5300 | ||
5301 | #define new_wxLogGui() (new wxLogGui()) | |
5302 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5303 | PyObject * _resultobj; | |
5304 | wxLogGui * _result; | |
5305 | char *_kwnames[] = { NULL }; | |
5306 | char _ptemp[128]; | |
5307 | ||
5308 | self = self; | |
5309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) | |
5310 | return NULL; | |
5311 | { | |
5312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5313 | _result = (wxLogGui *)new_wxLogGui(); | |
5314 | ||
5315 | wxPyEndAllowThreads(__tstate); | |
5316 | if (PyErr_Occurred()) return NULL; | |
5317 | } if (_result) { | |
5318 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); | |
5319 | _resultobj = Py_BuildValue("s",_ptemp); | |
5320 | } else { | |
5321 | Py_INCREF(Py_None); | |
5322 | _resultobj = Py_None; | |
5323 | } | |
5324 | return _resultobj; | |
5325 | } | |
5326 | ||
5327 | static void *SwigwxLogWindowTowxLog(void *ptr) { | |
5328 | wxLogWindow *src; | |
5329 | wxLog *dest; | |
5330 | src = (wxLogWindow *) ptr; | |
5331 | dest = (wxLog *) src; | |
5332 | return (void *) dest; | |
5333 | } | |
5334 | ||
5335 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5336 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5337 | PyObject * _resultobj; | |
5338 | wxLogWindow * _result; | |
5339 | wxFrame * _arg0; | |
5340 | char * _arg1; | |
5341 | bool _arg2 = (bool ) TRUE; | |
5342 | bool _arg3 = (bool ) TRUE; | |
5343 | PyObject * _argo0 = 0; | |
5344 | int tempbool2 = (int) TRUE; | |
5345 | int tempbool3 = (int) TRUE; | |
5346 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5347 | char _ptemp[128]; | |
5348 | ||
5349 | self = self; | |
5350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|ii:new_wxLogWindow",_kwnames,&_argo0,&_arg1,&tempbool2,&tempbool3)) | |
5351 | return NULL; | |
5352 | if (_argo0) { | |
5353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
5355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
5356 | return NULL; | |
5357 | } | |
5358 | } | |
5359 | _arg2 = (bool ) tempbool2; | |
5360 | _arg3 = (bool ) tempbool3; | |
5361 | { | |
5362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5363 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,_arg1,_arg2,_arg3); | |
5364 | ||
5365 | wxPyEndAllowThreads(__tstate); | |
5366 | if (PyErr_Occurred()) return NULL; | |
5367 | } if (_result) { | |
5368 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5369 | _resultobj = Py_BuildValue("s",_ptemp); | |
5370 | } else { | |
5371 | Py_INCREF(Py_None); | |
5372 | _resultobj = Py_None; | |
5373 | } | |
5374 | return _resultobj; | |
5375 | } | |
5376 | ||
5377 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
5378 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5379 | PyObject * _resultobj; | |
5380 | wxLogWindow * _arg0; | |
5381 | bool _arg1 = (bool ) TRUE; | |
5382 | PyObject * _argo0 = 0; | |
5383 | int tempbool1 = (int) TRUE; | |
5384 | char *_kwnames[] = { "self","bShow", NULL }; | |
5385 | ||
5386 | self = self; | |
5387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) | |
5388 | return NULL; | |
5389 | if (_argo0) { | |
5390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
5393 | return NULL; | |
5394 | } | |
5395 | } | |
5396 | _arg1 = (bool ) tempbool1; | |
5397 | { | |
5398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5399 | wxLogWindow_Show(_arg0,_arg1); | |
5400 | ||
5401 | wxPyEndAllowThreads(__tstate); | |
5402 | if (PyErr_Occurred()) return NULL; | |
5403 | } Py_INCREF(Py_None); | |
5404 | _resultobj = Py_None; | |
5405 | return _resultobj; | |
5406 | } | |
5407 | ||
5408 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) | |
5409 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5410 | PyObject * _resultobj; | |
5411 | wxFrame * _result; | |
5412 | wxLogWindow * _arg0; | |
5413 | PyObject * _argo0 = 0; | |
5414 | char *_kwnames[] = { "self", NULL }; | |
5415 | ||
5416 | self = self; | |
5417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) | |
5418 | return NULL; | |
5419 | if (_argo0) { | |
5420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
5423 | return NULL; | |
5424 | } | |
5425 | } | |
5426 | { | |
5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5428 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); | |
5429 | ||
5430 | wxPyEndAllowThreads(__tstate); | |
5431 | if (PyErr_Occurred()) return NULL; | |
5432 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5433 | return _resultobj; | |
5434 | } | |
5435 | ||
5436 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5437 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5438 | PyObject * _resultobj; | |
5439 | wxLog * _result; | |
5440 | wxLogWindow * _arg0; | |
5441 | PyObject * _argo0 = 0; | |
5442 | char *_kwnames[] = { "self", NULL }; | |
5443 | char _ptemp[128]; | |
5444 | ||
5445 | self = self; | |
5446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) | |
5447 | return NULL; | |
5448 | if (_argo0) { | |
5449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
5452 | return NULL; | |
5453 | } | |
5454 | } | |
5455 | { | |
5456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5457 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); | |
5458 | ||
5459 | wxPyEndAllowThreads(__tstate); | |
5460 | if (PyErr_Occurred()) return NULL; | |
5461 | } if (_result) { | |
5462 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5463 | _resultobj = Py_BuildValue("s",_ptemp); | |
5464 | } else { | |
5465 | Py_INCREF(Py_None); | |
5466 | _resultobj = Py_None; | |
5467 | } | |
5468 | return _resultobj; | |
5469 | } | |
5470 | ||
5471 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5472 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5473 | PyObject * _resultobj; | |
5474 | bool _result; | |
5475 | wxLogWindow * _arg0; | |
5476 | PyObject * _argo0 = 0; | |
5477 | char *_kwnames[] = { "self", NULL }; | |
5478 | ||
5479 | self = self; | |
5480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) | |
5481 | return NULL; | |
5482 | if (_argo0) { | |
5483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
5486 | return NULL; | |
5487 | } | |
5488 | } | |
5489 | { | |
5490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5491 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); | |
5492 | ||
5493 | wxPyEndAllowThreads(__tstate); | |
5494 | if (PyErr_Occurred()) return NULL; | |
5495 | } _resultobj = Py_BuildValue("i",_result); | |
5496 | return _resultobj; | |
5497 | } | |
5498 | ||
5499 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5500 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5501 | PyObject * _resultobj; | |
5502 | wxLogWindow * _arg0; | |
5503 | bool _arg1; | |
5504 | PyObject * _argo0 = 0; | |
5505 | int tempbool1; | |
5506 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5507 | ||
5508 | self = self; | |
5509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5510 | return NULL; | |
5511 | if (_argo0) { | |
5512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
5515 | return NULL; | |
5516 | } | |
5517 | } | |
5518 | _arg1 = (bool ) tempbool1; | |
5519 | { | |
5520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5521 | wxLogWindow_PassMessages(_arg0,_arg1); | |
5522 | ||
5523 | wxPyEndAllowThreads(__tstate); | |
5524 | if (PyErr_Occurred()) return NULL; | |
5525 | } Py_INCREF(Py_None); | |
5526 | _resultobj = Py_None; | |
5527 | return _resultobj; | |
5528 | } | |
5529 | ||
5530 | #define new_wxLogNull() (new wxLogNull()) | |
5531 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5532 | PyObject * _resultobj; | |
5533 | wxLogNull * _result; | |
5534 | char *_kwnames[] = { NULL }; | |
5535 | char _ptemp[128]; | |
5536 | ||
5537 | self = self; | |
5538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
5539 | return NULL; | |
5540 | { | |
5541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5542 | _result = (wxLogNull *)new_wxLogNull(); | |
5543 | ||
5544 | wxPyEndAllowThreads(__tstate); | |
5545 | if (PyErr_Occurred()) return NULL; | |
5546 | } if (_result) { | |
5547 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
5548 | _resultobj = Py_BuildValue("s",_ptemp); | |
5549 | } else { | |
5550 | Py_INCREF(Py_None); | |
5551 | _resultobj = Py_None; | |
5552 | } | |
5553 | return _resultobj; | |
5554 | } | |
5555 | ||
5556 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
5557 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5558 | PyObject * _resultobj; | |
5559 | wxLogNull * _arg0; | |
5560 | PyObject * _argo0 = 0; | |
5561 | char *_kwnames[] = { "self", NULL }; | |
5562 | ||
5563 | self = self; | |
5564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
5565 | return NULL; | |
5566 | if (_argo0) { | |
5567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
5569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
5570 | return NULL; | |
5571 | } | |
5572 | } | |
5573 | { | |
5574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5575 | delete_wxLogNull(_arg0); | |
5576 | ||
5577 | wxPyEndAllowThreads(__tstate); | |
5578 | if (PyErr_Occurred()) return NULL; | |
5579 | } Py_INCREF(Py_None); | |
5580 | _resultobj = Py_None; | |
5581 | return _resultobj; | |
5582 | } | |
5583 | ||
5584 | static void *SwigwxLogChainTowxLog(void *ptr) { | |
5585 | wxLogChain *src; | |
5586 | wxLog *dest; | |
5587 | src = (wxLogChain *) ptr; | |
5588 | dest = (wxLog *) src; | |
5589 | return (void *) dest; | |
5590 | } | |
5591 | ||
5592 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5593 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5594 | PyObject * _resultobj; | |
5595 | wxLogChain * _result; | |
5596 | wxLog * _arg0; | |
5597 | PyObject * _argo0 = 0; | |
5598 | char *_kwnames[] = { "logger", NULL }; | |
5599 | char _ptemp[128]; | |
5600 | ||
5601 | self = self; | |
5602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5603 | return NULL; | |
5604 | if (_argo0) { | |
5605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5608 | return NULL; | |
5609 | } | |
5610 | } | |
5611 | { | |
5612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5613 | _result = (wxLogChain *)new_wxLogChain(_arg0); | |
5614 | ||
5615 | wxPyEndAllowThreads(__tstate); | |
5616 | if (PyErr_Occurred()) return NULL; | |
5617 | } if (_result) { | |
5618 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5619 | _resultobj = Py_BuildValue("s",_ptemp); | |
5620 | } else { | |
5621 | Py_INCREF(Py_None); | |
5622 | _resultobj = Py_None; | |
5623 | } | |
5624 | return _resultobj; | |
5625 | } | |
5626 | ||
5627 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5628 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5629 | PyObject * _resultobj; | |
5630 | wxLogChain * _arg0; | |
5631 | wxLog * _arg1; | |
5632 | PyObject * _argo0 = 0; | |
5633 | PyObject * _argo1 = 0; | |
5634 | char *_kwnames[] = { "self","logger", NULL }; | |
5635 | ||
5636 | self = self; | |
5637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5638 | return NULL; | |
5639 | if (_argo0) { | |
5640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5643 | return NULL; | |
5644 | } | |
5645 | } | |
5646 | if (_argo1) { | |
5647 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5648 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5650 | return NULL; | |
5651 | } | |
5652 | } | |
5653 | { | |
5654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5655 | wxLogChain_SetLog(_arg0,_arg1); | |
5656 | ||
5657 | wxPyEndAllowThreads(__tstate); | |
5658 | if (PyErr_Occurred()) return NULL; | |
5659 | } Py_INCREF(Py_None); | |
5660 | _resultobj = Py_None; | |
5661 | return _resultobj; | |
5662 | } | |
5663 | ||
5664 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5665 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5666 | PyObject * _resultobj; | |
5667 | wxLogChain * _arg0; | |
5668 | bool _arg1; | |
5669 | PyObject * _argo0 = 0; | |
5670 | int tempbool1; | |
5671 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5672 | ||
5673 | self = self; | |
5674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5675 | return NULL; | |
5676 | if (_argo0) { | |
5677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5680 | return NULL; | |
5681 | } | |
5682 | } | |
5683 | _arg1 = (bool ) tempbool1; | |
5684 | { | |
5685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5686 | wxLogChain_PassMessages(_arg0,_arg1); | |
5687 | ||
5688 | wxPyEndAllowThreads(__tstate); | |
5689 | if (PyErr_Occurred()) return NULL; | |
5690 | } Py_INCREF(Py_None); | |
5691 | _resultobj = Py_None; | |
5692 | return _resultobj; | |
5693 | } | |
5694 | ||
5695 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5696 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5697 | PyObject * _resultobj; | |
5698 | bool _result; | |
5699 | wxLogChain * _arg0; | |
5700 | PyObject * _argo0 = 0; | |
5701 | char *_kwnames[] = { "self", NULL }; | |
5702 | ||
5703 | self = self; | |
5704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5705 | return NULL; | |
5706 | if (_argo0) { | |
5707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5710 | return NULL; | |
5711 | } | |
5712 | } | |
5713 | { | |
5714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5715 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); | |
5716 | ||
5717 | wxPyEndAllowThreads(__tstate); | |
5718 | if (PyErr_Occurred()) return NULL; | |
5719 | } _resultobj = Py_BuildValue("i",_result); | |
5720 | return _resultobj; | |
5721 | } | |
5722 | ||
5723 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5724 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5725 | PyObject * _resultobj; | |
5726 | wxLog * _result; | |
5727 | wxLogChain * _arg0; | |
5728 | PyObject * _argo0 = 0; | |
5729 | char *_kwnames[] = { "self", NULL }; | |
5730 | char _ptemp[128]; | |
5731 | ||
5732 | self = self; | |
5733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5734 | return NULL; | |
5735 | if (_argo0) { | |
5736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5739 | return NULL; | |
5740 | } | |
5741 | } | |
5742 | { | |
5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5744 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); | |
5745 | ||
5746 | wxPyEndAllowThreads(__tstate); | |
5747 | if (PyErr_Occurred()) return NULL; | |
5748 | } if (_result) { | |
5749 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5750 | _resultobj = Py_BuildValue("s",_ptemp); | |
5751 | } else { | |
5752 | Py_INCREF(Py_None); | |
5753 | _resultobj = Py_None; | |
5754 | } | |
5755 | return _resultobj; | |
5756 | } | |
5757 | ||
5758 | static void *SwigwxPyLogTowxLog(void *ptr) { | |
5759 | wxPyLog *src; | |
5760 | wxLog *dest; | |
5761 | src = (wxPyLog *) ptr; | |
5762 | dest = (wxLog *) src; | |
5763 | return (void *) dest; | |
5764 | } | |
5765 | ||
5766 | #define new_wxPyLog() (new wxPyLog()) | |
5767 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5768 | PyObject * _resultobj; | |
5769 | wxPyLog * _result; | |
5770 | char *_kwnames[] = { NULL }; | |
5771 | char _ptemp[128]; | |
5772 | ||
5773 | self = self; | |
5774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5775 | return NULL; | |
5776 | { | |
5777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5778 | _result = (wxPyLog *)new_wxPyLog(); | |
5779 | ||
5780 | wxPyEndAllowThreads(__tstate); | |
5781 | if (PyErr_Occurred()) return NULL; | |
5782 | } if (_result) { | |
5783 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5784 | _resultobj = Py_BuildValue("s",_ptemp); | |
5785 | } else { | |
5786 | Py_INCREF(Py_None); | |
5787 | _resultobj = Py_None; | |
5788 | } | |
5789 | return _resultobj; | |
5790 | } | |
5791 | ||
5792 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
5793 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5794 | PyObject * _resultobj; | |
5795 | wxPyLog * _arg0; | |
5796 | PyObject * _arg1; | |
5797 | PyObject * _arg2; | |
5798 | PyObject * _argo0 = 0; | |
5799 | PyObject * _obj1 = 0; | |
5800 | PyObject * _obj2 = 0; | |
5801 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5802 | ||
5803 | self = self; | |
5804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5805 | return NULL; | |
5806 | if (_argo0) { | |
5807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); | |
5810 | return NULL; | |
5811 | } | |
5812 | } | |
5813 | { | |
5814 | _arg1 = _obj1; | |
5815 | } | |
5816 | { | |
5817 | _arg2 = _obj2; | |
5818 | } | |
5819 | { | |
5820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5821 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); | |
5822 | ||
5823 | wxPyEndAllowThreads(__tstate); | |
5824 | if (PyErr_Occurred()) return NULL; | |
5825 | } Py_INCREF(Py_None); | |
5826 | _resultobj = Py_None; | |
5827 | return _resultobj; | |
5828 | } | |
5829 | ||
5830 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5831 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5832 | PyObject * _resultobj; | |
5833 | wxPyLog * _arg0; | |
5834 | PyObject * _argo0 = 0; | |
5835 | char *_kwnames[] = { "self", NULL }; | |
5836 | ||
5837 | self = self; | |
5838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5839 | return NULL; | |
5840 | if (_argo0) { | |
5841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5844 | return NULL; | |
5845 | } | |
5846 | } | |
5847 | { | |
5848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5849 | wxPyLog_Destroy(_arg0); | |
5850 | ||
5851 | wxPyEndAllowThreads(__tstate); | |
5852 | if (PyErr_Occurred()) return NULL; | |
5853 | } Py_INCREF(Py_None); | |
5854 | _resultobj = Py_None; | |
5855 | return _resultobj; | |
5856 | } | |
5857 | ||
5858 | static void *SwigwxProcessEventTowxEvent(void *ptr) { | |
5859 | wxProcessEvent *src; | |
5860 | wxEvent *dest; | |
5861 | src = (wxProcessEvent *) ptr; | |
5862 | dest = (wxEvent *) src; | |
5863 | return (void *) dest; | |
5864 | } | |
5865 | ||
5866 | static void *SwigwxProcessEventTowxObject(void *ptr) { | |
5867 | wxProcessEvent *src; | |
5868 | wxObject *dest; | |
5869 | src = (wxProcessEvent *) ptr; | |
5870 | dest = (wxObject *) src; | |
5871 | return (void *) dest; | |
5872 | } | |
5873 | ||
5874 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) | |
5875 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5876 | PyObject * _resultobj; | |
5877 | wxProcessEvent * _result; | |
5878 | int _arg0 = (int ) 0; | |
5879 | int _arg1 = (int ) 0; | |
5880 | int _arg2 = (int ) 0; | |
5881 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5882 | char _ptemp[128]; | |
5883 | ||
5884 | self = self; | |
5885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5886 | return NULL; | |
5887 | { | |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5889 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); | |
5890 | ||
5891 | wxPyEndAllowThreads(__tstate); | |
5892 | if (PyErr_Occurred()) return NULL; | |
5893 | } if (_result) { | |
5894 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5895 | _resultobj = Py_BuildValue("s",_ptemp); | |
5896 | } else { | |
5897 | Py_INCREF(Py_None); | |
5898 | _resultobj = Py_None; | |
5899 | } | |
5900 | return _resultobj; | |
5901 | } | |
5902 | ||
5903 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5904 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5905 | PyObject * _resultobj; | |
5906 | int _result; | |
5907 | wxProcessEvent * _arg0; | |
5908 | PyObject * _argo0 = 0; | |
5909 | char *_kwnames[] = { "self", NULL }; | |
5910 | ||
5911 | self = self; | |
5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5913 | return NULL; | |
5914 | if (_argo0) { | |
5915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5918 | return NULL; | |
5919 | } | |
5920 | } | |
5921 | { | |
5922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5923 | _result = (int )wxProcessEvent_GetPid(_arg0); | |
5924 | ||
5925 | wxPyEndAllowThreads(__tstate); | |
5926 | if (PyErr_Occurred()) return NULL; | |
5927 | } _resultobj = Py_BuildValue("i",_result); | |
5928 | return _resultobj; | |
5929 | } | |
5930 | ||
5931 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
5932 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5933 | PyObject * _resultobj; | |
5934 | int _result; | |
5935 | wxProcessEvent * _arg0; | |
5936 | PyObject * _argo0 = 0; | |
5937 | char *_kwnames[] = { "self", NULL }; | |
5938 | ||
5939 | self = self; | |
5940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
5941 | return NULL; | |
5942 | if (_argo0) { | |
5943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5946 | return NULL; | |
5947 | } | |
5948 | } | |
5949 | { | |
5950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5951 | _result = (int )wxProcessEvent_GetExitCode(_arg0); | |
5952 | ||
5953 | wxPyEndAllowThreads(__tstate); | |
5954 | if (PyErr_Occurred()) return NULL; | |
5955 | } _resultobj = Py_BuildValue("i",_result); | |
5956 | return _resultobj; | |
5957 | } | |
5958 | ||
5959 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5960 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5961 | PyObject * _resultobj; | |
5962 | int _result; | |
5963 | wxProcessEvent * _arg0; | |
5964 | int _arg1; | |
5965 | PyObject * _argo0 = 0; | |
5966 | char *_kwnames[] = { "self","m_pid", NULL }; | |
5967 | ||
5968 | self = self; | |
5969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
5970 | return NULL; | |
5971 | if (_argo0) { | |
5972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
5975 | return NULL; | |
5976 | } | |
5977 | } | |
5978 | { | |
5979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5980 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); | |
5981 | ||
5982 | wxPyEndAllowThreads(__tstate); | |
5983 | if (PyErr_Occurred()) return NULL; | |
5984 | } _resultobj = Py_BuildValue("i",_result); | |
5985 | return _resultobj; | |
5986 | } | |
5987 | ||
5988 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
5989 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5990 | PyObject * _resultobj; | |
5991 | int _result; | |
5992 | wxProcessEvent * _arg0; | |
5993 | PyObject * _argo0 = 0; | |
5994 | char *_kwnames[] = { "self", NULL }; | |
5995 | ||
5996 | self = self; | |
5997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
5998 | return NULL; | |
5999 | if (_argo0) { | |
6000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
6003 | return NULL; | |
6004 | } | |
6005 | } | |
6006 | { | |
6007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6008 | _result = (int )wxProcessEvent_m_pid_get(_arg0); | |
6009 | ||
6010 | wxPyEndAllowThreads(__tstate); | |
6011 | if (PyErr_Occurred()) return NULL; | |
6012 | } _resultobj = Py_BuildValue("i",_result); | |
6013 | return _resultobj; | |
6014 | } | |
6015 | ||
6016 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
6017 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6018 | PyObject * _resultobj; | |
6019 | int _result; | |
6020 | wxProcessEvent * _arg0; | |
6021 | int _arg1; | |
6022 | PyObject * _argo0 = 0; | |
6023 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
6024 | ||
6025 | self = self; | |
6026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
6027 | return NULL; | |
6028 | if (_argo0) { | |
6029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
6032 | return NULL; | |
6033 | } | |
6034 | } | |
6035 | { | |
6036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6037 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); | |
6038 | ||
6039 | wxPyEndAllowThreads(__tstate); | |
6040 | if (PyErr_Occurred()) return NULL; | |
6041 | } _resultobj = Py_BuildValue("i",_result); | |
6042 | return _resultobj; | |
6043 | } | |
6044 | ||
6045 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
6046 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6047 | PyObject * _resultobj; | |
6048 | int _result; | |
6049 | wxProcessEvent * _arg0; | |
6050 | PyObject * _argo0 = 0; | |
6051 | char *_kwnames[] = { "self", NULL }; | |
6052 | ||
6053 | self = self; | |
6054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
6055 | return NULL; | |
6056 | if (_argo0) { | |
6057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
6060 | return NULL; | |
6061 | } | |
6062 | } | |
6063 | { | |
6064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6065 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); | |
6066 | ||
6067 | wxPyEndAllowThreads(__tstate); | |
6068 | if (PyErr_Occurred()) return NULL; | |
6069 | } _resultobj = Py_BuildValue("i",_result); | |
6070 | return _resultobj; | |
6071 | } | |
6072 | ||
6073 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
6074 | wxPyProcess *src; | |
6075 | wxEvtHandler *dest; | |
6076 | src = (wxPyProcess *) ptr; | |
6077 | dest = (wxEvtHandler *) src; | |
6078 | return (void *) dest; | |
6079 | } | |
6080 | ||
6081 | static void *SwigwxPyProcessTowxObject(void *ptr) { | |
6082 | wxPyProcess *src; | |
6083 | wxObject *dest; | |
6084 | src = (wxPyProcess *) ptr; | |
6085 | dest = (wxObject *) src; | |
6086 | return (void *) dest; | |
6087 | } | |
6088 | ||
6089 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) | |
6090 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6091 | PyObject * _resultobj; | |
6092 | wxPyProcess * _result; | |
6093 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
6094 | int _arg1 = (int ) -1; | |
6095 | PyObject * _argo0 = 0; | |
6096 | char *_kwnames[] = { "parent","id", NULL }; | |
6097 | char _ptemp[128]; | |
6098 | ||
6099 | self = self; | |
6100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
6101 | return NULL; | |
6102 | if (_argo0) { | |
6103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
6105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
6106 | return NULL; | |
6107 | } | |
6108 | } | |
6109 | { | |
6110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6111 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); | |
6112 | ||
6113 | wxPyEndAllowThreads(__tstate); | |
6114 | if (PyErr_Occurred()) return NULL; | |
6115 | } if (_result) { | |
6116 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6117 | _resultobj = Py_BuildValue("s",_ptemp); | |
6118 | } else { | |
6119 | Py_INCREF(Py_None); | |
6120 | _resultobj = Py_None; | |
6121 | } | |
6122 | return _resultobj; | |
6123 | } | |
6124 | ||
6125 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
6126 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6127 | PyObject * _resultobj; | |
6128 | wxPyProcess * _arg0; | |
6129 | PyObject * _argo0 = 0; | |
6130 | char *_kwnames[] = { "self", NULL }; | |
6131 | ||
6132 | self = self; | |
6133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6134 | return NULL; | |
6135 | if (_argo0) { | |
6136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6139 | return NULL; | |
6140 | } | |
6141 | } | |
6142 | { | |
6143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6144 | wxPyProcess_Destroy(_arg0); | |
6145 | ||
6146 | wxPyEndAllowThreads(__tstate); | |
6147 | if (PyErr_Occurred()) return NULL; | |
6148 | } Py_INCREF(Py_None); | |
6149 | _resultobj = Py_None; | |
6150 | return _resultobj; | |
6151 | } | |
6152 | ||
6153 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
6154 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6155 | PyObject * _resultobj; | |
6156 | wxPyProcess * _arg0; | |
6157 | PyObject * _arg1; | |
6158 | PyObject * _arg2; | |
6159 | PyObject * _argo0 = 0; | |
6160 | PyObject * _obj1 = 0; | |
6161 | PyObject * _obj2 = 0; | |
6162 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6163 | ||
6164 | self = self; | |
6165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
6166 | return NULL; | |
6167 | if (_argo0) { | |
6168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); | |
6171 | return NULL; | |
6172 | } | |
6173 | } | |
6174 | { | |
6175 | _arg1 = _obj1; | |
6176 | } | |
6177 | { | |
6178 | _arg2 = _obj2; | |
6179 | } | |
6180 | { | |
6181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6182 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); | |
6183 | ||
6184 | wxPyEndAllowThreads(__tstate); | |
6185 | if (PyErr_Occurred()) return NULL; | |
6186 | } Py_INCREF(Py_None); | |
6187 | _resultobj = Py_None; | |
6188 | return _resultobj; | |
6189 | } | |
6190 | ||
6191 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6192 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6193 | PyObject * _resultobj; | |
6194 | wxPyProcess * _arg0; | |
6195 | int _arg1; | |
6196 | int _arg2; | |
6197 | PyObject * _argo0 = 0; | |
6198 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6199 | ||
6200 | self = self; | |
6201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6202 | return NULL; | |
6203 | if (_argo0) { | |
6204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6207 | return NULL; | |
6208 | } | |
6209 | } | |
6210 | { | |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6212 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); | |
6213 | ||
6214 | wxPyEndAllowThreads(__tstate); | |
6215 | if (PyErr_Occurred()) return NULL; | |
6216 | } Py_INCREF(Py_None); | |
6217 | _resultobj = Py_None; | |
6218 | return _resultobj; | |
6219 | } | |
6220 | ||
6221 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6222 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6223 | PyObject * _resultobj; | |
6224 | wxPyProcess * _arg0; | |
6225 | PyObject * _argo0 = 0; | |
6226 | char *_kwnames[] = { "self", NULL }; | |
6227 | ||
6228 | self = self; | |
6229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6230 | return NULL; | |
6231 | if (_argo0) { | |
6232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6235 | return NULL; | |
6236 | } | |
6237 | } | |
6238 | { | |
6239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6240 | wxProcess_Redirect(_arg0); | |
6241 | ||
6242 | wxPyEndAllowThreads(__tstate); | |
6243 | if (PyErr_Occurred()) return NULL; | |
6244 | } Py_INCREF(Py_None); | |
6245 | _resultobj = Py_None; | |
6246 | return _resultobj; | |
6247 | } | |
6248 | ||
6249 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6250 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6251 | PyObject * _resultobj; | |
6252 | bool _result; | |
6253 | wxPyProcess * _arg0; | |
6254 | PyObject * _argo0 = 0; | |
6255 | char *_kwnames[] = { "self", NULL }; | |
6256 | ||
6257 | self = self; | |
6258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6259 | return NULL; | |
6260 | if (_argo0) { | |
6261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6264 | return NULL; | |
6265 | } | |
6266 | } | |
6267 | { | |
6268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6269 | _result = (bool )wxProcess_IsRedirected(_arg0); | |
6270 | ||
6271 | wxPyEndAllowThreads(__tstate); | |
6272 | if (PyErr_Occurred()) return NULL; | |
6273 | } _resultobj = Py_BuildValue("i",_result); | |
6274 | return _resultobj; | |
6275 | } | |
6276 | ||
6277 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6278 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6279 | PyObject * _resultobj; | |
6280 | wxPyProcess * _arg0; | |
6281 | PyObject * _argo0 = 0; | |
6282 | char *_kwnames[] = { "self", NULL }; | |
6283 | ||
6284 | self = self; | |
6285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6286 | return NULL; | |
6287 | if (_argo0) { | |
6288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6291 | return NULL; | |
6292 | } | |
6293 | } | |
6294 | { | |
6295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6296 | wxProcess_Detach(_arg0); | |
6297 | ||
6298 | wxPyEndAllowThreads(__tstate); | |
6299 | if (PyErr_Occurred()) return NULL; | |
6300 | } Py_INCREF(Py_None); | |
6301 | _resultobj = Py_None; | |
6302 | return _resultobj; | |
6303 | } | |
6304 | ||
6305 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6306 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6307 | PyObject * _resultobj; | |
6308 | wxInputStream * _result; | |
6309 | wxPyProcess * _arg0; | |
6310 | PyObject * _argo0 = 0; | |
6311 | char *_kwnames[] = { "self", NULL }; | |
6312 | ||
6313 | self = self; | |
6314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6315 | return NULL; | |
6316 | if (_argo0) { | |
6317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6320 | return NULL; | |
6321 | } | |
6322 | } | |
6323 | { | |
6324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6325 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); | |
6326 | ||
6327 | wxPyEndAllowThreads(__tstate); | |
6328 | if (PyErr_Occurred()) return NULL; | |
6329 | }{ | |
6330 | wxPyInputStream * _ptr = NULL; | |
6331 | ||
6332 | if (_result) { | |
6333 | _ptr = new wxPyInputStream(_result); | |
6334 | } | |
6335 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); | |
6336 | } | |
6337 | return _resultobj; | |
6338 | } | |
6339 | ||
6340 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6341 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6342 | PyObject * _resultobj; | |
6343 | wxInputStream * _result; | |
6344 | wxPyProcess * _arg0; | |
6345 | PyObject * _argo0 = 0; | |
6346 | char *_kwnames[] = { "self", NULL }; | |
6347 | ||
6348 | self = self; | |
6349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6350 | return NULL; | |
6351 | if (_argo0) { | |
6352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6355 | return NULL; | |
6356 | } | |
6357 | } | |
6358 | { | |
6359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6360 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); | |
6361 | ||
6362 | wxPyEndAllowThreads(__tstate); | |
6363 | if (PyErr_Occurred()) return NULL; | |
6364 | }{ | |
6365 | wxPyInputStream * _ptr = NULL; | |
6366 | ||
6367 | if (_result) { | |
6368 | _ptr = new wxPyInputStream(_result); | |
6369 | } | |
6370 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); | |
6371 | } | |
6372 | return _resultobj; | |
6373 | } | |
6374 | ||
6375 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6376 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6377 | PyObject * _resultobj; | |
6378 | wxOutputStream * _result; | |
6379 | wxPyProcess * _arg0; | |
6380 | PyObject * _argo0 = 0; | |
6381 | char *_kwnames[] = { "self", NULL }; | |
6382 | char _ptemp[128]; | |
6383 | ||
6384 | self = self; | |
6385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6386 | return NULL; | |
6387 | if (_argo0) { | |
6388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6391 | return NULL; | |
6392 | } | |
6393 | } | |
6394 | { | |
6395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6396 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); | |
6397 | ||
6398 | wxPyEndAllowThreads(__tstate); | |
6399 | if (PyErr_Occurred()) return NULL; | |
6400 | } if (_result) { | |
6401 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6402 | _resultobj = Py_BuildValue("s",_ptemp); | |
6403 | } else { | |
6404 | Py_INCREF(Py_None); | |
6405 | _resultobj = Py_None; | |
6406 | } | |
6407 | return _resultobj; | |
6408 | } | |
6409 | ||
6410 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6411 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6412 | PyObject * _resultobj; | |
6413 | wxPyProcess * _arg0; | |
6414 | PyObject * _argo0 = 0; | |
6415 | char *_kwnames[] = { "self", NULL }; | |
6416 | ||
6417 | self = self; | |
6418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6419 | return NULL; | |
6420 | if (_argo0) { | |
6421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6424 | return NULL; | |
6425 | } | |
6426 | } | |
6427 | { | |
6428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6429 | wxProcess_CloseOutput(_arg0); | |
6430 | ||
6431 | wxPyEndAllowThreads(__tstate); | |
6432 | if (PyErr_Occurred()) return NULL; | |
6433 | } Py_INCREF(Py_None); | |
6434 | _resultobj = Py_None; | |
6435 | return _resultobj; | |
6436 | } | |
6437 | ||
6438 | static void *SwigwxJoystickTowxObject(void *ptr) { | |
6439 | wxJoystick *src; | |
6440 | wxObject *dest; | |
6441 | src = (wxJoystick *) ptr; | |
6442 | dest = (wxObject *) src; | |
6443 | return (void *) dest; | |
6444 | } | |
6445 | ||
6446 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) | |
6447 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6448 | PyObject * _resultobj; | |
6449 | wxJoystick * _result; | |
6450 | int _arg0 = (int ) wxJOYSTICK1; | |
6451 | char *_kwnames[] = { "joystick", NULL }; | |
6452 | char _ptemp[128]; | |
6453 | ||
6454 | self = self; | |
6455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6456 | return NULL; | |
6457 | { | |
6458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6459 | _result = (wxJoystick *)new_wxJoystick(_arg0); | |
6460 | ||
6461 | wxPyEndAllowThreads(__tstate); | |
6462 | if (PyErr_Occurred()) return NULL; | |
6463 | } if (_result) { | |
6464 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6465 | _resultobj = Py_BuildValue("s",_ptemp); | |
6466 | } else { | |
6467 | Py_INCREF(Py_None); | |
6468 | _resultobj = Py_None; | |
6469 | } | |
6470 | return _resultobj; | |
6471 | } | |
6472 | ||
6473 | #define delete_wxJoystick(_swigobj) (delete _swigobj) | |
6474 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6475 | PyObject * _resultobj; | |
6476 | wxJoystick * _arg0; | |
6477 | PyObject * _argo0 = 0; | |
6478 | char *_kwnames[] = { "self", NULL }; | |
6479 | ||
6480 | self = self; | |
6481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6482 | return NULL; | |
6483 | if (_argo0) { | |
6484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6487 | return NULL; | |
6488 | } | |
6489 | } | |
6490 | { | |
6491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6492 | delete_wxJoystick(_arg0); | |
6493 | ||
6494 | wxPyEndAllowThreads(__tstate); | |
6495 | if (PyErr_Occurred()) return NULL; | |
6496 | } Py_INCREF(Py_None); | |
6497 | _resultobj = Py_None; | |
6498 | return _resultobj; | |
6499 | } | |
6500 | ||
6501 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
6502 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6503 | PyObject * _resultobj; | |
6504 | wxPoint * _result; | |
6505 | wxJoystick * _arg0; | |
6506 | PyObject * _argo0 = 0; | |
6507 | char *_kwnames[] = { "self", NULL }; | |
6508 | char _ptemp[128]; | |
6509 | ||
6510 | self = self; | |
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6512 | return NULL; | |
6513 | if (_argo0) { | |
6514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6517 | return NULL; | |
6518 | } | |
6519 | } | |
6520 | { | |
6521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6522 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); | |
6523 | ||
6524 | wxPyEndAllowThreads(__tstate); | |
6525 | if (PyErr_Occurred()) return NULL; | |
6526 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
6527 | _resultobj = Py_BuildValue("s",_ptemp); | |
6528 | return _resultobj; | |
6529 | } | |
6530 | ||
6531 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6532 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6533 | PyObject * _resultobj; | |
6534 | int _result; | |
6535 | wxJoystick * _arg0; | |
6536 | PyObject * _argo0 = 0; | |
6537 | char *_kwnames[] = { "self", NULL }; | |
6538 | ||
6539 | self = self; | |
6540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6541 | return NULL; | |
6542 | if (_argo0) { | |
6543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6546 | return NULL; | |
6547 | } | |
6548 | } | |
6549 | { | |
6550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6551 | _result = (int )wxJoystick_GetZPosition(_arg0); | |
6552 | ||
6553 | wxPyEndAllowThreads(__tstate); | |
6554 | if (PyErr_Occurred()) return NULL; | |
6555 | } _resultobj = Py_BuildValue("i",_result); | |
6556 | return _resultobj; | |
6557 | } | |
6558 | ||
6559 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6560 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6561 | PyObject * _resultobj; | |
6562 | int _result; | |
6563 | wxJoystick * _arg0; | |
6564 | PyObject * _argo0 = 0; | |
6565 | char *_kwnames[] = { "self", NULL }; | |
6566 | ||
6567 | self = self; | |
6568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6569 | return NULL; | |
6570 | if (_argo0) { | |
6571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6574 | return NULL; | |
6575 | } | |
6576 | } | |
6577 | { | |
6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6579 | _result = (int )wxJoystick_GetButtonState(_arg0); | |
6580 | ||
6581 | wxPyEndAllowThreads(__tstate); | |
6582 | if (PyErr_Occurred()) return NULL; | |
6583 | } _resultobj = Py_BuildValue("i",_result); | |
6584 | return _resultobj; | |
6585 | } | |
6586 | ||
6587 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6588 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6589 | PyObject * _resultobj; | |
6590 | int _result; | |
6591 | wxJoystick * _arg0; | |
6592 | PyObject * _argo0 = 0; | |
6593 | char *_kwnames[] = { "self", NULL }; | |
6594 | ||
6595 | self = self; | |
6596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6597 | return NULL; | |
6598 | if (_argo0) { | |
6599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6602 | return NULL; | |
6603 | } | |
6604 | } | |
6605 | { | |
6606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6607 | _result = (int )wxJoystick_GetPOVPosition(_arg0); | |
6608 | ||
6609 | wxPyEndAllowThreads(__tstate); | |
6610 | if (PyErr_Occurred()) return NULL; | |
6611 | } _resultobj = Py_BuildValue("i",_result); | |
6612 | return _resultobj; | |
6613 | } | |
6614 | ||
6615 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6616 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6617 | PyObject * _resultobj; | |
6618 | int _result; | |
6619 | wxJoystick * _arg0; | |
6620 | PyObject * _argo0 = 0; | |
6621 | char *_kwnames[] = { "self", NULL }; | |
6622 | ||
6623 | self = self; | |
6624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6625 | return NULL; | |
6626 | if (_argo0) { | |
6627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6630 | return NULL; | |
6631 | } | |
6632 | } | |
6633 | { | |
6634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6635 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); | |
6636 | ||
6637 | wxPyEndAllowThreads(__tstate); | |
6638 | if (PyErr_Occurred()) return NULL; | |
6639 | } _resultobj = Py_BuildValue("i",_result); | |
6640 | return _resultobj; | |
6641 | } | |
6642 | ||
6643 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6644 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6645 | PyObject * _resultobj; | |
6646 | int _result; | |
6647 | wxJoystick * _arg0; | |
6648 | PyObject * _argo0 = 0; | |
6649 | char *_kwnames[] = { "self", NULL }; | |
6650 | ||
6651 | self = self; | |
6652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6653 | return NULL; | |
6654 | if (_argo0) { | |
6655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6658 | return NULL; | |
6659 | } | |
6660 | } | |
6661 | { | |
6662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6663 | _result = (int )wxJoystick_GetRudderPosition(_arg0); | |
6664 | ||
6665 | wxPyEndAllowThreads(__tstate); | |
6666 | if (PyErr_Occurred()) return NULL; | |
6667 | } _resultobj = Py_BuildValue("i",_result); | |
6668 | return _resultobj; | |
6669 | } | |
6670 | ||
6671 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6672 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6673 | PyObject * _resultobj; | |
6674 | int _result; | |
6675 | wxJoystick * _arg0; | |
6676 | PyObject * _argo0 = 0; | |
6677 | char *_kwnames[] = { "self", NULL }; | |
6678 | ||
6679 | self = self; | |
6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6681 | return NULL; | |
6682 | if (_argo0) { | |
6683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6686 | return NULL; | |
6687 | } | |
6688 | } | |
6689 | { | |
6690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6691 | _result = (int )wxJoystick_GetUPosition(_arg0); | |
6692 | ||
6693 | wxPyEndAllowThreads(__tstate); | |
6694 | if (PyErr_Occurred()) return NULL; | |
6695 | } _resultobj = Py_BuildValue("i",_result); | |
6696 | return _resultobj; | |
6697 | } | |
6698 | ||
6699 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6700 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6701 | PyObject * _resultobj; | |
6702 | int _result; | |
6703 | wxJoystick * _arg0; | |
6704 | PyObject * _argo0 = 0; | |
6705 | char *_kwnames[] = { "self", NULL }; | |
6706 | ||
6707 | self = self; | |
6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6709 | return NULL; | |
6710 | if (_argo0) { | |
6711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6714 | return NULL; | |
6715 | } | |
6716 | } | |
6717 | { | |
6718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6719 | _result = (int )wxJoystick_GetVPosition(_arg0); | |
6720 | ||
6721 | wxPyEndAllowThreads(__tstate); | |
6722 | if (PyErr_Occurred()) return NULL; | |
6723 | } _resultobj = Py_BuildValue("i",_result); | |
6724 | return _resultobj; | |
6725 | } | |
6726 | ||
6727 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6728 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6729 | PyObject * _resultobj; | |
6730 | int _result; | |
6731 | wxJoystick * _arg0; | |
6732 | PyObject * _argo0 = 0; | |
6733 | char *_kwnames[] = { "self", NULL }; | |
6734 | ||
6735 | self = self; | |
6736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6737 | return NULL; | |
6738 | if (_argo0) { | |
6739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6742 | return NULL; | |
6743 | } | |
6744 | } | |
6745 | { | |
6746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6747 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); | |
6748 | ||
6749 | wxPyEndAllowThreads(__tstate); | |
6750 | if (PyErr_Occurred()) return NULL; | |
6751 | } _resultobj = Py_BuildValue("i",_result); | |
6752 | return _resultobj; | |
6753 | } | |
6754 | ||
6755 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6756 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6757 | PyObject * _resultobj; | |
6758 | wxJoystick * _arg0; | |
6759 | int _arg1; | |
6760 | PyObject * _argo0 = 0; | |
6761 | char *_kwnames[] = { "self","threshold", NULL }; | |
6762 | ||
6763 | self = self; | |
6764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6765 | return NULL; | |
6766 | if (_argo0) { | |
6767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
6770 | return NULL; | |
6771 | } | |
6772 | } | |
6773 | { | |
6774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6775 | wxJoystick_SetMovementThreshold(_arg0,_arg1); | |
6776 | ||
6777 | wxPyEndAllowThreads(__tstate); | |
6778 | if (PyErr_Occurred()) return NULL; | |
6779 | } Py_INCREF(Py_None); | |
6780 | _resultobj = Py_None; | |
6781 | return _resultobj; | |
6782 | } | |
6783 | ||
6784 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
6785 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6786 | PyObject * _resultobj; | |
6787 | bool _result; | |
6788 | wxJoystick * _arg0; | |
6789 | PyObject * _argo0 = 0; | |
6790 | char *_kwnames[] = { "self", NULL }; | |
6791 | ||
6792 | self = self; | |
6793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
6794 | return NULL; | |
6795 | if (_argo0) { | |
6796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
6799 | return NULL; | |
6800 | } | |
6801 | } | |
6802 | { | |
6803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6804 | _result = (bool )wxJoystick_IsOk(_arg0); | |
6805 | ||
6806 | wxPyEndAllowThreads(__tstate); | |
6807 | if (PyErr_Occurred()) return NULL; | |
6808 | } _resultobj = Py_BuildValue("i",_result); | |
6809 | return _resultobj; | |
6810 | } | |
6811 | ||
6812 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
6813 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6814 | PyObject * _resultobj; | |
6815 | int _result; | |
6816 | wxJoystick * _arg0; | |
6817 | PyObject * _argo0 = 0; | |
6818 | char *_kwnames[] = { "self", NULL }; | |
6819 | ||
6820 | self = self; | |
6821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
6822 | return NULL; | |
6823 | if (_argo0) { | |
6824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
6827 | return NULL; | |
6828 | } | |
6829 | } | |
6830 | { | |
6831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6832 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); | |
6833 | ||
6834 | wxPyEndAllowThreads(__tstate); | |
6835 | if (PyErr_Occurred()) return NULL; | |
6836 | } _resultobj = Py_BuildValue("i",_result); | |
6837 | return _resultobj; | |
6838 | } | |
6839 | ||
6840 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
6841 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6842 | PyObject * _resultobj; | |
6843 | int _result; | |
6844 | wxJoystick * _arg0; | |
6845 | PyObject * _argo0 = 0; | |
6846 | char *_kwnames[] = { "self", NULL }; | |
6847 | ||
6848 | self = self; | |
6849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
6850 | return NULL; | |
6851 | if (_argo0) { | |
6852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
6855 | return NULL; | |
6856 | } | |
6857 | } | |
6858 | { | |
6859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6860 | _result = (int )wxJoystick_GetManufacturerId(_arg0); | |
6861 | ||
6862 | wxPyEndAllowThreads(__tstate); | |
6863 | if (PyErr_Occurred()) return NULL; | |
6864 | } _resultobj = Py_BuildValue("i",_result); | |
6865 | return _resultobj; | |
6866 | } | |
6867 | ||
6868 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
6869 | static PyObject *_wrap_wxJoystick_GetProductId(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_GetProductId",_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_GetProductId. Expected _wxJoystick_p."); | |
6883 | return NULL; | |
6884 | } | |
6885 | } | |
6886 | { | |
6887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6888 | _result = (int )wxJoystick_GetProductId(_arg0); | |
6889 | ||
6890 | wxPyEndAllowThreads(__tstate); | |
6891 | if (PyErr_Occurred()) return NULL; | |
6892 | } _resultobj = Py_BuildValue("i",_result); | |
6893 | return _resultobj; | |
6894 | } | |
6895 | ||
6896 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
6897 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6898 | PyObject * _resultobj; | |
6899 | wxString * _result; | |
6900 | wxJoystick * _arg0; | |
6901 | PyObject * _argo0 = 0; | |
6902 | char *_kwnames[] = { "self", NULL }; | |
6903 | ||
6904 | self = self; | |
6905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
6906 | return NULL; | |
6907 | if (_argo0) { | |
6908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
6911 | return NULL; | |
6912 | } | |
6913 | } | |
6914 | { | |
6915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6916 | _result = new wxString (wxJoystick_GetProductName(_arg0)); | |
6917 | ||
6918 | wxPyEndAllowThreads(__tstate); | |
6919 | if (PyErr_Occurred()) return NULL; | |
6920 | }{ | |
6921 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6922 | } | |
6923 | { | |
6924 | delete _result; | |
6925 | } | |
6926 | return _resultobj; | |
6927 | } | |
6928 | ||
6929 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
6930 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6931 | PyObject * _resultobj; | |
6932 | int _result; | |
6933 | wxJoystick * _arg0; | |
6934 | PyObject * _argo0 = 0; | |
6935 | char *_kwnames[] = { "self", NULL }; | |
6936 | ||
6937 | self = self; | |
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
6939 | return NULL; | |
6940 | if (_argo0) { | |
6941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
6944 | return NULL; | |
6945 | } | |
6946 | } | |
6947 | { | |
6948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6949 | _result = (int )wxJoystick_GetXMin(_arg0); | |
6950 | ||
6951 | wxPyEndAllowThreads(__tstate); | |
6952 | if (PyErr_Occurred()) return NULL; | |
6953 | } _resultobj = Py_BuildValue("i",_result); | |
6954 | return _resultobj; | |
6955 | } | |
6956 | ||
6957 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
6958 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6959 | PyObject * _resultobj; | |
6960 | int _result; | |
6961 | wxJoystick * _arg0; | |
6962 | PyObject * _argo0 = 0; | |
6963 | char *_kwnames[] = { "self", NULL }; | |
6964 | ||
6965 | self = self; | |
6966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
6967 | return NULL; | |
6968 | if (_argo0) { | |
6969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
6972 | return NULL; | |
6973 | } | |
6974 | } | |
6975 | { | |
6976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6977 | _result = (int )wxJoystick_GetYMin(_arg0); | |
6978 | ||
6979 | wxPyEndAllowThreads(__tstate); | |
6980 | if (PyErr_Occurred()) return NULL; | |
6981 | } _resultobj = Py_BuildValue("i",_result); | |
6982 | return _resultobj; | |
6983 | } | |
6984 | ||
6985 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
6986 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6987 | PyObject * _resultobj; | |
6988 | int _result; | |
6989 | wxJoystick * _arg0; | |
6990 | PyObject * _argo0 = 0; | |
6991 | char *_kwnames[] = { "self", NULL }; | |
6992 | ||
6993 | self = self; | |
6994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
6995 | return NULL; | |
6996 | if (_argo0) { | |
6997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
7000 | return NULL; | |
7001 | } | |
7002 | } | |
7003 | { | |
7004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7005 | _result = (int )wxJoystick_GetZMin(_arg0); | |
7006 | ||
7007 | wxPyEndAllowThreads(__tstate); | |
7008 | if (PyErr_Occurred()) return NULL; | |
7009 | } _resultobj = Py_BuildValue("i",_result); | |
7010 | return _resultobj; | |
7011 | } | |
7012 | ||
7013 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
7014 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7015 | PyObject * _resultobj; | |
7016 | int _result; | |
7017 | wxJoystick * _arg0; | |
7018 | PyObject * _argo0 = 0; | |
7019 | char *_kwnames[] = { "self", NULL }; | |
7020 | ||
7021 | self = self; | |
7022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
7023 | return NULL; | |
7024 | if (_argo0) { | |
7025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
7028 | return NULL; | |
7029 | } | |
7030 | } | |
7031 | { | |
7032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7033 | _result = (int )wxJoystick_GetXMax(_arg0); | |
7034 | ||
7035 | wxPyEndAllowThreads(__tstate); | |
7036 | if (PyErr_Occurred()) return NULL; | |
7037 | } _resultobj = Py_BuildValue("i",_result); | |
7038 | return _resultobj; | |
7039 | } | |
7040 | ||
7041 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
7042 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7043 | PyObject * _resultobj; | |
7044 | int _result; | |
7045 | wxJoystick * _arg0; | |
7046 | PyObject * _argo0 = 0; | |
7047 | char *_kwnames[] = { "self", NULL }; | |
7048 | ||
7049 | self = self; | |
7050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
7051 | return NULL; | |
7052 | if (_argo0) { | |
7053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
7056 | return NULL; | |
7057 | } | |
7058 | } | |
7059 | { | |
7060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7061 | _result = (int )wxJoystick_GetYMax(_arg0); | |
7062 | ||
7063 | wxPyEndAllowThreads(__tstate); | |
7064 | if (PyErr_Occurred()) return NULL; | |
7065 | } _resultobj = Py_BuildValue("i",_result); | |
7066 | return _resultobj; | |
7067 | } | |
7068 | ||
7069 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
7070 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7071 | PyObject * _resultobj; | |
7072 | int _result; | |
7073 | wxJoystick * _arg0; | |
7074 | PyObject * _argo0 = 0; | |
7075 | char *_kwnames[] = { "self", NULL }; | |
7076 | ||
7077 | self = self; | |
7078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
7079 | return NULL; | |
7080 | if (_argo0) { | |
7081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
7084 | return NULL; | |
7085 | } | |
7086 | } | |
7087 | { | |
7088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7089 | _result = (int )wxJoystick_GetZMax(_arg0); | |
7090 | ||
7091 | wxPyEndAllowThreads(__tstate); | |
7092 | if (PyErr_Occurred()) return NULL; | |
7093 | } _resultobj = Py_BuildValue("i",_result); | |
7094 | return _resultobj; | |
7095 | } | |
7096 | ||
7097 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
7098 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7099 | PyObject * _resultobj; | |
7100 | int _result; | |
7101 | wxJoystick * _arg0; | |
7102 | PyObject * _argo0 = 0; | |
7103 | char *_kwnames[] = { "self", NULL }; | |
7104 | ||
7105 | self = self; | |
7106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
7107 | return NULL; | |
7108 | if (_argo0) { | |
7109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
7112 | return NULL; | |
7113 | } | |
7114 | } | |
7115 | { | |
7116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7117 | _result = (int )wxJoystick_GetNumberButtons(_arg0); | |
7118 | ||
7119 | wxPyEndAllowThreads(__tstate); | |
7120 | if (PyErr_Occurred()) return NULL; | |
7121 | } _resultobj = Py_BuildValue("i",_result); | |
7122 | return _resultobj; | |
7123 | } | |
7124 | ||
7125 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
7126 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7127 | PyObject * _resultobj; | |
7128 | int _result; | |
7129 | wxJoystick * _arg0; | |
7130 | PyObject * _argo0 = 0; | |
7131 | char *_kwnames[] = { "self", NULL }; | |
7132 | ||
7133 | self = self; | |
7134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7135 | return NULL; | |
7136 | if (_argo0) { | |
7137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7140 | return NULL; | |
7141 | } | |
7142 | } | |
7143 | { | |
7144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7145 | _result = (int )wxJoystick_GetNumberAxes(_arg0); | |
7146 | ||
7147 | wxPyEndAllowThreads(__tstate); | |
7148 | if (PyErr_Occurred()) return NULL; | |
7149 | } _resultobj = Py_BuildValue("i",_result); | |
7150 | return _resultobj; | |
7151 | } | |
7152 | ||
7153 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7154 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7155 | PyObject * _resultobj; | |
7156 | int _result; | |
7157 | wxJoystick * _arg0; | |
7158 | PyObject * _argo0 = 0; | |
7159 | char *_kwnames[] = { "self", NULL }; | |
7160 | ||
7161 | self = self; | |
7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7163 | return NULL; | |
7164 | if (_argo0) { | |
7165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7168 | return NULL; | |
7169 | } | |
7170 | } | |
7171 | { | |
7172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7173 | _result = (int )wxJoystick_GetMaxButtons(_arg0); | |
7174 | ||
7175 | wxPyEndAllowThreads(__tstate); | |
7176 | if (PyErr_Occurred()) return NULL; | |
7177 | } _resultobj = Py_BuildValue("i",_result); | |
7178 | return _resultobj; | |
7179 | } | |
7180 | ||
7181 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7182 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7183 | PyObject * _resultobj; | |
7184 | int _result; | |
7185 | wxJoystick * _arg0; | |
7186 | PyObject * _argo0 = 0; | |
7187 | char *_kwnames[] = { "self", NULL }; | |
7188 | ||
7189 | self = self; | |
7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7191 | return NULL; | |
7192 | if (_argo0) { | |
7193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7196 | return NULL; | |
7197 | } | |
7198 | } | |
7199 | { | |
7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7201 | _result = (int )wxJoystick_GetMaxAxes(_arg0); | |
7202 | ||
7203 | wxPyEndAllowThreads(__tstate); | |
7204 | if (PyErr_Occurred()) return NULL; | |
7205 | } _resultobj = Py_BuildValue("i",_result); | |
7206 | return _resultobj; | |
7207 | } | |
7208 | ||
7209 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7210 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7211 | PyObject * _resultobj; | |
7212 | int _result; | |
7213 | wxJoystick * _arg0; | |
7214 | PyObject * _argo0 = 0; | |
7215 | char *_kwnames[] = { "self", NULL }; | |
7216 | ||
7217 | self = self; | |
7218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7219 | return NULL; | |
7220 | if (_argo0) { | |
7221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7224 | return NULL; | |
7225 | } | |
7226 | } | |
7227 | { | |
7228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7229 | _result = (int )wxJoystick_GetPollingMin(_arg0); | |
7230 | ||
7231 | wxPyEndAllowThreads(__tstate); | |
7232 | if (PyErr_Occurred()) return NULL; | |
7233 | } _resultobj = Py_BuildValue("i",_result); | |
7234 | return _resultobj; | |
7235 | } | |
7236 | ||
7237 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7238 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7239 | PyObject * _resultobj; | |
7240 | int _result; | |
7241 | wxJoystick * _arg0; | |
7242 | PyObject * _argo0 = 0; | |
7243 | char *_kwnames[] = { "self", NULL }; | |
7244 | ||
7245 | self = self; | |
7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7247 | return NULL; | |
7248 | if (_argo0) { | |
7249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7252 | return NULL; | |
7253 | } | |
7254 | } | |
7255 | { | |
7256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7257 | _result = (int )wxJoystick_GetPollingMax(_arg0); | |
7258 | ||
7259 | wxPyEndAllowThreads(__tstate); | |
7260 | if (PyErr_Occurred()) return NULL; | |
7261 | } _resultobj = Py_BuildValue("i",_result); | |
7262 | return _resultobj; | |
7263 | } | |
7264 | ||
7265 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7266 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7267 | PyObject * _resultobj; | |
7268 | int _result; | |
7269 | wxJoystick * _arg0; | |
7270 | PyObject * _argo0 = 0; | |
7271 | char *_kwnames[] = { "self", NULL }; | |
7272 | ||
7273 | self = self; | |
7274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7275 | return NULL; | |
7276 | if (_argo0) { | |
7277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7280 | return NULL; | |
7281 | } | |
7282 | } | |
7283 | { | |
7284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7285 | _result = (int )wxJoystick_GetRudderMin(_arg0); | |
7286 | ||
7287 | wxPyEndAllowThreads(__tstate); | |
7288 | if (PyErr_Occurred()) return NULL; | |
7289 | } _resultobj = Py_BuildValue("i",_result); | |
7290 | return _resultobj; | |
7291 | } | |
7292 | ||
7293 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7294 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7295 | PyObject * _resultobj; | |
7296 | int _result; | |
7297 | wxJoystick * _arg0; | |
7298 | PyObject * _argo0 = 0; | |
7299 | char *_kwnames[] = { "self", NULL }; | |
7300 | ||
7301 | self = self; | |
7302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7303 | return NULL; | |
7304 | if (_argo0) { | |
7305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7308 | return NULL; | |
7309 | } | |
7310 | } | |
7311 | { | |
7312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7313 | _result = (int )wxJoystick_GetRudderMax(_arg0); | |
7314 | ||
7315 | wxPyEndAllowThreads(__tstate); | |
7316 | if (PyErr_Occurred()) return NULL; | |
7317 | } _resultobj = Py_BuildValue("i",_result); | |
7318 | return _resultobj; | |
7319 | } | |
7320 | ||
7321 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7322 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7323 | PyObject * _resultobj; | |
7324 | int _result; | |
7325 | wxJoystick * _arg0; | |
7326 | PyObject * _argo0 = 0; | |
7327 | char *_kwnames[] = { "self", NULL }; | |
7328 | ||
7329 | self = self; | |
7330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7331 | return NULL; | |
7332 | if (_argo0) { | |
7333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7336 | return NULL; | |
7337 | } | |
7338 | } | |
7339 | { | |
7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7341 | _result = (int )wxJoystick_GetUMin(_arg0); | |
7342 | ||
7343 | wxPyEndAllowThreads(__tstate); | |
7344 | if (PyErr_Occurred()) return NULL; | |
7345 | } _resultobj = Py_BuildValue("i",_result); | |
7346 | return _resultobj; | |
7347 | } | |
7348 | ||
7349 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7350 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7351 | PyObject * _resultobj; | |
7352 | int _result; | |
7353 | wxJoystick * _arg0; | |
7354 | PyObject * _argo0 = 0; | |
7355 | char *_kwnames[] = { "self", NULL }; | |
7356 | ||
7357 | self = self; | |
7358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7359 | return NULL; | |
7360 | if (_argo0) { | |
7361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7364 | return NULL; | |
7365 | } | |
7366 | } | |
7367 | { | |
7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7369 | _result = (int )wxJoystick_GetUMax(_arg0); | |
7370 | ||
7371 | wxPyEndAllowThreads(__tstate); | |
7372 | if (PyErr_Occurred()) return NULL; | |
7373 | } _resultobj = Py_BuildValue("i",_result); | |
7374 | return _resultobj; | |
7375 | } | |
7376 | ||
7377 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7378 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7379 | PyObject * _resultobj; | |
7380 | int _result; | |
7381 | wxJoystick * _arg0; | |
7382 | PyObject * _argo0 = 0; | |
7383 | char *_kwnames[] = { "self", NULL }; | |
7384 | ||
7385 | self = self; | |
7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7387 | return NULL; | |
7388 | if (_argo0) { | |
7389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7392 | return NULL; | |
7393 | } | |
7394 | } | |
7395 | { | |
7396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7397 | _result = (int )wxJoystick_GetVMin(_arg0); | |
7398 | ||
7399 | wxPyEndAllowThreads(__tstate); | |
7400 | if (PyErr_Occurred()) return NULL; | |
7401 | } _resultobj = Py_BuildValue("i",_result); | |
7402 | return _resultobj; | |
7403 | } | |
7404 | ||
7405 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7406 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7407 | PyObject * _resultobj; | |
7408 | int _result; | |
7409 | wxJoystick * _arg0; | |
7410 | PyObject * _argo0 = 0; | |
7411 | char *_kwnames[] = { "self", NULL }; | |
7412 | ||
7413 | self = self; | |
7414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7415 | return NULL; | |
7416 | if (_argo0) { | |
7417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7420 | return NULL; | |
7421 | } | |
7422 | } | |
7423 | { | |
7424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7425 | _result = (int )wxJoystick_GetVMax(_arg0); | |
7426 | ||
7427 | wxPyEndAllowThreads(__tstate); | |
7428 | if (PyErr_Occurred()) return NULL; | |
7429 | } _resultobj = Py_BuildValue("i",_result); | |
7430 | return _resultobj; | |
7431 | } | |
7432 | ||
7433 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7434 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7435 | PyObject * _resultobj; | |
7436 | bool _result; | |
7437 | wxJoystick * _arg0; | |
7438 | PyObject * _argo0 = 0; | |
7439 | char *_kwnames[] = { "self", NULL }; | |
7440 | ||
7441 | self = self; | |
7442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7443 | return NULL; | |
7444 | if (_argo0) { | |
7445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7448 | return NULL; | |
7449 | } | |
7450 | } | |
7451 | { | |
7452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7453 | _result = (bool )wxJoystick_HasRudder(_arg0); | |
7454 | ||
7455 | wxPyEndAllowThreads(__tstate); | |
7456 | if (PyErr_Occurred()) return NULL; | |
7457 | } _resultobj = Py_BuildValue("i",_result); | |
7458 | return _resultobj; | |
7459 | } | |
7460 | ||
7461 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7462 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7463 | PyObject * _resultobj; | |
7464 | bool _result; | |
7465 | wxJoystick * _arg0; | |
7466 | PyObject * _argo0 = 0; | |
7467 | char *_kwnames[] = { "self", NULL }; | |
7468 | ||
7469 | self = self; | |
7470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7471 | return NULL; | |
7472 | if (_argo0) { | |
7473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
7479 | { | |
7480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7481 | _result = (bool )wxJoystick_HasZ(_arg0); | |
7482 | ||
7483 | wxPyEndAllowThreads(__tstate); | |
7484 | if (PyErr_Occurred()) return NULL; | |
7485 | } _resultobj = Py_BuildValue("i",_result); | |
7486 | return _resultobj; | |
7487 | } | |
7488 | ||
7489 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7490 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7491 | PyObject * _resultobj; | |
7492 | bool _result; | |
7493 | wxJoystick * _arg0; | |
7494 | PyObject * _argo0 = 0; | |
7495 | char *_kwnames[] = { "self", NULL }; | |
7496 | ||
7497 | self = self; | |
7498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7499 | return NULL; | |
7500 | if (_argo0) { | |
7501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7504 | return NULL; | |
7505 | } | |
7506 | } | |
7507 | { | |
7508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7509 | _result = (bool )wxJoystick_HasU(_arg0); | |
7510 | ||
7511 | wxPyEndAllowThreads(__tstate); | |
7512 | if (PyErr_Occurred()) return NULL; | |
7513 | } _resultobj = Py_BuildValue("i",_result); | |
7514 | return _resultobj; | |
7515 | } | |
7516 | ||
7517 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7518 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7519 | PyObject * _resultobj; | |
7520 | bool _result; | |
7521 | wxJoystick * _arg0; | |
7522 | PyObject * _argo0 = 0; | |
7523 | char *_kwnames[] = { "self", NULL }; | |
7524 | ||
7525 | self = self; | |
7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7527 | return NULL; | |
7528 | if (_argo0) { | |
7529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7532 | return NULL; | |
7533 | } | |
7534 | } | |
7535 | { | |
7536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7537 | _result = (bool )wxJoystick_HasV(_arg0); | |
7538 | ||
7539 | wxPyEndAllowThreads(__tstate); | |
7540 | if (PyErr_Occurred()) return NULL; | |
7541 | } _resultobj = Py_BuildValue("i",_result); | |
7542 | return _resultobj; | |
7543 | } | |
7544 | ||
7545 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7546 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7547 | PyObject * _resultobj; | |
7548 | bool _result; | |
7549 | wxJoystick * _arg0; | |
7550 | PyObject * _argo0 = 0; | |
7551 | char *_kwnames[] = { "self", NULL }; | |
7552 | ||
7553 | self = self; | |
7554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7555 | return NULL; | |
7556 | if (_argo0) { | |
7557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7560 | return NULL; | |
7561 | } | |
7562 | } | |
7563 | { | |
7564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7565 | _result = (bool )wxJoystick_HasPOV(_arg0); | |
7566 | ||
7567 | wxPyEndAllowThreads(__tstate); | |
7568 | if (PyErr_Occurred()) return NULL; | |
7569 | } _resultobj = Py_BuildValue("i",_result); | |
7570 | return _resultobj; | |
7571 | } | |
7572 | ||
7573 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7574 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7575 | PyObject * _resultobj; | |
7576 | bool _result; | |
7577 | wxJoystick * _arg0; | |
7578 | PyObject * _argo0 = 0; | |
7579 | char *_kwnames[] = { "self", NULL }; | |
7580 | ||
7581 | self = self; | |
7582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7583 | return NULL; | |
7584 | if (_argo0) { | |
7585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7588 | return NULL; | |
7589 | } | |
7590 | } | |
7591 | { | |
7592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7593 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); | |
7594 | ||
7595 | wxPyEndAllowThreads(__tstate); | |
7596 | if (PyErr_Occurred()) return NULL; | |
7597 | } _resultobj = Py_BuildValue("i",_result); | |
7598 | return _resultobj; | |
7599 | } | |
7600 | ||
7601 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7602 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7603 | PyObject * _resultobj; | |
7604 | bool _result; | |
7605 | wxJoystick * _arg0; | |
7606 | PyObject * _argo0 = 0; | |
7607 | char *_kwnames[] = { "self", NULL }; | |
7608 | ||
7609 | self = self; | |
7610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7611 | return NULL; | |
7612 | if (_argo0) { | |
7613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7616 | return NULL; | |
7617 | } | |
7618 | } | |
7619 | { | |
7620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7621 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); | |
7622 | ||
7623 | wxPyEndAllowThreads(__tstate); | |
7624 | if (PyErr_Occurred()) return NULL; | |
7625 | } _resultobj = Py_BuildValue("i",_result); | |
7626 | return _resultobj; | |
7627 | } | |
7628 | ||
7629 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7630 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7631 | PyObject * _resultobj; | |
7632 | bool _result; | |
7633 | wxJoystick * _arg0; | |
7634 | wxWindow * _arg1; | |
7635 | int _arg2 = (int ) 0; | |
7636 | PyObject * _argo0 = 0; | |
7637 | PyObject * _argo1 = 0; | |
7638 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7639 | ||
7640 | self = self; | |
7641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7642 | return NULL; | |
7643 | if (_argo0) { | |
7644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7647 | return NULL; | |
7648 | } | |
7649 | } | |
7650 | if (_argo1) { | |
7651 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7652 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7654 | return NULL; | |
7655 | } | |
7656 | } | |
7657 | { | |
7658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7659 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); | |
7660 | ||
7661 | wxPyEndAllowThreads(__tstate); | |
7662 | if (PyErr_Occurred()) return NULL; | |
7663 | } _resultobj = Py_BuildValue("i",_result); | |
7664 | return _resultobj; | |
7665 | } | |
7666 | ||
7667 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7668 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7669 | PyObject * _resultobj; | |
7670 | bool _result; | |
7671 | wxJoystick * _arg0; | |
7672 | PyObject * _argo0 = 0; | |
7673 | char *_kwnames[] = { "self", NULL }; | |
7674 | ||
7675 | self = self; | |
7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7677 | return NULL; | |
7678 | if (_argo0) { | |
7679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7682 | return NULL; | |
7683 | } | |
7684 | } | |
7685 | { | |
7686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7687 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); | |
7688 | ||
7689 | wxPyEndAllowThreads(__tstate); | |
7690 | if (PyErr_Occurred()) return NULL; | |
7691 | } _resultobj = Py_BuildValue("i",_result); | |
7692 | return _resultobj; | |
7693 | } | |
7694 | ||
7695 | static void *SwigwxWaveTowxObject(void *ptr) { | |
7696 | wxWave *src; | |
7697 | wxObject *dest; | |
7698 | src = (wxWave *) ptr; | |
7699 | dest = (wxObject *) src; | |
7700 | return (void *) dest; | |
7701 | } | |
7702 | ||
7703 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7704 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7705 | PyObject * _resultobj; | |
7706 | wxWave * _result; | |
7707 | wxString * _arg0; | |
7708 | bool _arg1 = (bool ) FALSE; | |
7709 | PyObject * _obj0 = 0; | |
7710 | int tempbool1 = (int) FALSE; | |
7711 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7712 | char _ptemp[128]; | |
7713 | ||
7714 | self = self; | |
7715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7716 | return NULL; | |
7717 | { | |
7718 | #if PYTHON_API_VERSION >= 1009 | |
7719 | char* tmpPtr; int tmpSize; | |
7720 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7721 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7722 | return NULL; | |
7723 | } | |
7724 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
7725 | return NULL; | |
7726 | _arg0 = new wxString(tmpPtr, tmpSize); | |
7727 | #else | |
7728 | if (!PyString_Check(_obj0)) { | |
7729 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7730 | return NULL; | |
7731 | } | |
7732 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
7733 | #endif | |
7734 | } | |
7735 | _arg1 = (bool ) tempbool1; | |
7736 | { | |
7737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7738 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); | |
7739 | ||
7740 | wxPyEndAllowThreads(__tstate); | |
7741 | if (PyErr_Occurred()) return NULL; | |
7742 | } if (_result) { | |
7743 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7744 | _resultobj = Py_BuildValue("s",_ptemp); | |
7745 | } else { | |
7746 | Py_INCREF(Py_None); | |
7747 | _resultobj = Py_None; | |
7748 | } | |
7749 | { | |
7750 | if (_obj0) | |
7751 | delete _arg0; | |
7752 | } | |
7753 | return _resultobj; | |
7754 | } | |
7755 | ||
7756 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7757 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7758 | PyObject * _resultobj; | |
7759 | wxWave * _arg0; | |
7760 | PyObject * _argo0 = 0; | |
7761 | char *_kwnames[] = { "self", NULL }; | |
7762 | ||
7763 | self = self; | |
7764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7765 | return NULL; | |
7766 | if (_argo0) { | |
7767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7770 | return NULL; | |
7771 | } | |
7772 | } | |
7773 | { | |
7774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7775 | delete_wxWave(_arg0); | |
7776 | ||
7777 | wxPyEndAllowThreads(__tstate); | |
7778 | if (PyErr_Occurred()) return NULL; | |
7779 | } Py_INCREF(Py_None); | |
7780 | _resultobj = Py_None; | |
7781 | return _resultobj; | |
7782 | } | |
7783 | ||
7784 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
7785 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7786 | PyObject * _resultobj; | |
7787 | bool _result; | |
7788 | wxWave * _arg0; | |
7789 | PyObject * _argo0 = 0; | |
7790 | char *_kwnames[] = { "self", NULL }; | |
7791 | ||
7792 | self = self; | |
7793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
7794 | return NULL; | |
7795 | if (_argo0) { | |
7796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
7799 | return NULL; | |
7800 | } | |
7801 | } | |
7802 | { | |
7803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7804 | _result = (bool )wxWave_IsOk(_arg0); | |
7805 | ||
7806 | wxPyEndAllowThreads(__tstate); | |
7807 | if (PyErr_Occurred()) return NULL; | |
7808 | } _resultobj = Py_BuildValue("i",_result); | |
7809 | return _resultobj; | |
7810 | } | |
7811 | ||
7812 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
7813 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7814 | PyObject * _resultobj; | |
7815 | bool _result; | |
7816 | wxWave * _arg0; | |
7817 | bool _arg1 = (bool ) TRUE; | |
7818 | bool _arg2 = (bool ) FALSE; | |
7819 | PyObject * _argo0 = 0; | |
7820 | int tempbool1 = (int) TRUE; | |
7821 | int tempbool2 = (int) FALSE; | |
7822 | char *_kwnames[] = { "self","async","looped", NULL }; | |
7823 | ||
7824 | self = self; | |
7825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7826 | return NULL; | |
7827 | if (_argo0) { | |
7828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
7831 | return NULL; | |
7832 | } | |
7833 | } | |
7834 | _arg1 = (bool ) tempbool1; | |
7835 | _arg2 = (bool ) tempbool2; | |
7836 | { | |
7837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7838 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); | |
7839 | ||
7840 | wxPyEndAllowThreads(__tstate); | |
7841 | if (PyErr_Occurred()) return NULL; | |
7842 | } _resultobj = Py_BuildValue("i",_result); | |
7843 | return _resultobj; | |
7844 | } | |
7845 | ||
7846 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7847 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7848 | PyObject * _resultobj; | |
7849 | wxFileTypeInfo * _result; | |
7850 | char * _arg0; | |
7851 | char * _arg1; | |
7852 | char * _arg2; | |
7853 | char * _arg3; | |
7854 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
7855 | char _ptemp[128]; | |
7856 | ||
7857 | self = self; | |
7858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
7859 | return NULL; | |
7860 | { | |
7861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7862 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); | |
7863 | ||
7864 | wxPyEndAllowThreads(__tstate); | |
7865 | if (PyErr_Occurred()) return NULL; | |
7866 | } if (_result) { | |
7867 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7868 | _resultobj = Py_BuildValue("s",_ptemp); | |
7869 | } else { | |
7870 | Py_INCREF(Py_None); | |
7871 | _resultobj = Py_None; | |
7872 | } | |
7873 | return _resultobj; | |
7874 | } | |
7875 | ||
7876 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
7877 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7878 | PyObject * _resultobj; | |
7879 | wxFileTypeInfo * _result; | |
7880 | wxArrayString * _arg0; | |
7881 | PyObject * _obj0 = 0; | |
7882 | char *_kwnames[] = { "sArray", NULL }; | |
7883 | char _ptemp[128]; | |
7884 | ||
7885 | self = self; | |
7886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
7887 | return NULL; | |
7888 | { | |
7889 | if (! PySequence_Check(_obj0)) { | |
7890 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7891 | return NULL; | |
7892 | } | |
7893 | _arg0 = new wxArrayString; | |
7894 | int i, len=PySequence_Length(_obj0); | |
7895 | for (i=0; i<len; i++) { | |
7896 | PyObject* item = PySequence_GetItem(_obj0, i); | |
7897 | PyObject* str = PyObject_Str(item); | |
7898 | _arg0->Add(PyString_AsString(str)); | |
7899 | Py_DECREF(item); | |
7900 | Py_DECREF(str); | |
7901 | } | |
7902 | } | |
7903 | { | |
7904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7905 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); | |
7906 | ||
7907 | wxPyEndAllowThreads(__tstate); | |
7908 | if (PyErr_Occurred()) return NULL; | |
7909 | } if (_result) { | |
7910 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7911 | _resultobj = Py_BuildValue("s",_ptemp); | |
7912 | } else { | |
7913 | Py_INCREF(Py_None); | |
7914 | _resultobj = Py_None; | |
7915 | } | |
7916 | { | |
7917 | if (_obj0) | |
7918 | delete _arg0; | |
7919 | } | |
7920 | return _resultobj; | |
7921 | } | |
7922 | ||
7923 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
7924 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7925 | PyObject * _resultobj; | |
7926 | wxFileTypeInfo * _result; | |
7927 | char *_kwnames[] = { NULL }; | |
7928 | char _ptemp[128]; | |
7929 | ||
7930 | self = self; | |
7931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
7932 | return NULL; | |
7933 | { | |
7934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7935 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); | |
7936 | ||
7937 | wxPyEndAllowThreads(__tstate); | |
7938 | if (PyErr_Occurred()) return NULL; | |
7939 | } if (_result) { | |
7940 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7941 | _resultobj = Py_BuildValue("s",_ptemp); | |
7942 | } else { | |
7943 | Py_INCREF(Py_None); | |
7944 | _resultobj = Py_None; | |
7945 | } | |
7946 | return _resultobj; | |
7947 | } | |
7948 | ||
7949 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
7950 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7951 | PyObject * _resultobj; | |
7952 | bool _result; | |
7953 | wxFileTypeInfo * _arg0; | |
7954 | PyObject * _argo0 = 0; | |
7955 | char *_kwnames[] = { "self", NULL }; | |
7956 | ||
7957 | self = self; | |
7958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
7959 | return NULL; | |
7960 | if (_argo0) { | |
7961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
7964 | return NULL; | |
7965 | } | |
7966 | } | |
7967 | { | |
7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7969 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); | |
7970 | ||
7971 | wxPyEndAllowThreads(__tstate); | |
7972 | if (PyErr_Occurred()) return NULL; | |
7973 | } _resultobj = Py_BuildValue("i",_result); | |
7974 | return _resultobj; | |
7975 | } | |
7976 | ||
7977 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
7978 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7979 | PyObject * _resultobj; | |
7980 | wxFileTypeInfo * _arg0; | |
7981 | wxString * _arg1; | |
7982 | int _arg2 = (int ) 0; | |
7983 | PyObject * _argo0 = 0; | |
7984 | PyObject * _obj1 = 0; | |
7985 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
7986 | ||
7987 | self = self; | |
7988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
7989 | return NULL; | |
7990 | if (_argo0) { | |
7991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
7994 | return NULL; | |
7995 | } | |
7996 | } | |
7997 | { | |
7998 | #if PYTHON_API_VERSION >= 1009 | |
7999 | char* tmpPtr; int tmpSize; | |
8000 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8001 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8002 | return NULL; | |
8003 | } | |
8004 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8005 | return NULL; | |
8006 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8007 | #else | |
8008 | if (!PyString_Check(_obj1)) { | |
8009 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8010 | return NULL; | |
8011 | } | |
8012 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8013 | #endif | |
8014 | } | |
8015 | { | |
8016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8017 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); | |
8018 | ||
8019 | wxPyEndAllowThreads(__tstate); | |
8020 | if (PyErr_Occurred()) return NULL; | |
8021 | } Py_INCREF(Py_None); | |
8022 | _resultobj = Py_None; | |
8023 | { | |
8024 | if (_obj1) | |
8025 | delete _arg1; | |
8026 | } | |
8027 | return _resultobj; | |
8028 | } | |
8029 | ||
8030 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
8031 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8032 | PyObject * _resultobj; | |
8033 | wxFileTypeInfo * _arg0; | |
8034 | wxString * _arg1; | |
8035 | PyObject * _argo0 = 0; | |
8036 | PyObject * _obj1 = 0; | |
8037 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
8038 | ||
8039 | self = self; | |
8040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
8041 | return NULL; | |
8042 | if (_argo0) { | |
8043 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8044 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8045 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
8046 | return NULL; | |
8047 | } | |
8048 | } | |
8049 | { | |
8050 | #if PYTHON_API_VERSION >= 1009 | |
8051 | char* tmpPtr; int tmpSize; | |
8052 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8053 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8054 | return NULL; | |
8055 | } | |
8056 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8057 | return NULL; | |
8058 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8059 | #else | |
8060 | if (!PyString_Check(_obj1)) { | |
8061 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8062 | return NULL; | |
8063 | } | |
8064 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8065 | #endif | |
8066 | } | |
8067 | { | |
8068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8069 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); | |
8070 | ||
8071 | wxPyEndAllowThreads(__tstate); | |
8072 | if (PyErr_Occurred()) return NULL; | |
8073 | } Py_INCREF(Py_None); | |
8074 | _resultobj = Py_None; | |
8075 | { | |
8076 | if (_obj1) | |
8077 | delete _arg1; | |
8078 | } | |
8079 | return _resultobj; | |
8080 | } | |
8081 | ||
8082 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
8083 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8084 | PyObject * _resultobj; | |
8085 | wxString * _result; | |
8086 | wxFileTypeInfo * _arg0; | |
8087 | PyObject * _argo0 = 0; | |
8088 | char *_kwnames[] = { "self", NULL }; | |
8089 | ||
8090 | self = self; | |
8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
8092 | return NULL; | |
8093 | if (_argo0) { | |
8094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
8097 | return NULL; | |
8098 | } | |
8099 | } | |
8100 | { | |
8101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8102 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); | |
8103 | _result = (wxString *) &_result_ref; | |
8104 | ||
8105 | wxPyEndAllowThreads(__tstate); | |
8106 | if (PyErr_Occurred()) return NULL; | |
8107 | }{ | |
8108 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8109 | } | |
8110 | return _resultobj; | |
8111 | } | |
8112 | ||
8113 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
8114 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8115 | PyObject * _resultobj; | |
8116 | wxString * _result; | |
8117 | wxFileTypeInfo * _arg0; | |
8118 | PyObject * _argo0 = 0; | |
8119 | char *_kwnames[] = { "self", NULL }; | |
8120 | ||
8121 | self = self; | |
8122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
8123 | return NULL; | |
8124 | if (_argo0) { | |
8125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
8128 | return NULL; | |
8129 | } | |
8130 | } | |
8131 | { | |
8132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8133 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); | |
8134 | _result = (wxString *) &_result_ref; | |
8135 | ||
8136 | wxPyEndAllowThreads(__tstate); | |
8137 | if (PyErr_Occurred()) return NULL; | |
8138 | }{ | |
8139 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8140 | } | |
8141 | return _resultobj; | |
8142 | } | |
8143 | ||
8144 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
8145 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8146 | PyObject * _resultobj; | |
8147 | wxString * _result; | |
8148 | wxFileTypeInfo * _arg0; | |
8149 | PyObject * _argo0 = 0; | |
8150 | char *_kwnames[] = { "self", NULL }; | |
8151 | ||
8152 | self = self; | |
8153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8154 | return NULL; | |
8155 | if (_argo0) { | |
8156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8159 | return NULL; | |
8160 | } | |
8161 | } | |
8162 | { | |
8163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8164 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); | |
8165 | _result = (wxString *) &_result_ref; | |
8166 | ||
8167 | wxPyEndAllowThreads(__tstate); | |
8168 | if (PyErr_Occurred()) return NULL; | |
8169 | }{ | |
8170 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8171 | } | |
8172 | return _resultobj; | |
8173 | } | |
8174 | ||
8175 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8176 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8177 | PyObject * _resultobj; | |
8178 | wxString * _result; | |
8179 | wxFileTypeInfo * _arg0; | |
8180 | PyObject * _argo0 = 0; | |
8181 | char *_kwnames[] = { "self", NULL }; | |
8182 | ||
8183 | self = self; | |
8184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8185 | return NULL; | |
8186 | if (_argo0) { | |
8187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8190 | return NULL; | |
8191 | } | |
8192 | } | |
8193 | { | |
8194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8195 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); | |
8196 | _result = (wxString *) &_result_ref; | |
8197 | ||
8198 | wxPyEndAllowThreads(__tstate); | |
8199 | if (PyErr_Occurred()) return NULL; | |
8200 | }{ | |
8201 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8202 | } | |
8203 | return _resultobj; | |
8204 | } | |
8205 | ||
8206 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8207 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8208 | PyObject * _resultobj; | |
8209 | wxString * _result; | |
8210 | wxFileTypeInfo * _arg0; | |
8211 | PyObject * _argo0 = 0; | |
8212 | char *_kwnames[] = { "self", NULL }; | |
8213 | ||
8214 | self = self; | |
8215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8216 | return NULL; | |
8217 | if (_argo0) { | |
8218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8221 | return NULL; | |
8222 | } | |
8223 | } | |
8224 | { | |
8225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8226 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); | |
8227 | _result = (wxString *) &_result_ref; | |
8228 | ||
8229 | wxPyEndAllowThreads(__tstate); | |
8230 | if (PyErr_Occurred()) return NULL; | |
8231 | }{ | |
8232 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8233 | } | |
8234 | return _resultobj; | |
8235 | } | |
8236 | ||
8237 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8238 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8239 | return wxArrayString2PyList_helper(arr); | |
8240 | } | |
8241 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8242 | PyObject * _resultobj; | |
8243 | PyObject * _result; | |
8244 | wxFileTypeInfo * _arg0; | |
8245 | PyObject * _argo0 = 0; | |
8246 | char *_kwnames[] = { "self", NULL }; | |
8247 | ||
8248 | self = self; | |
8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8250 | return NULL; | |
8251 | if (_argo0) { | |
8252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8255 | return NULL; | |
8256 | } | |
8257 | } | |
8258 | { | |
8259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8260 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); | |
8261 | ||
8262 | wxPyEndAllowThreads(__tstate); | |
8263 | if (PyErr_Occurred()) return NULL; | |
8264 | }{ | |
8265 | _resultobj = _result; | |
8266 | } | |
8267 | return _resultobj; | |
8268 | } | |
8269 | ||
8270 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8271 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8272 | PyObject * _resultobj; | |
8273 | int _result; | |
8274 | wxFileTypeInfo * _arg0; | |
8275 | PyObject * _argo0 = 0; | |
8276 | char *_kwnames[] = { "self", NULL }; | |
8277 | ||
8278 | self = self; | |
8279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8280 | return NULL; | |
8281 | if (_argo0) { | |
8282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8285 | return NULL; | |
8286 | } | |
8287 | } | |
8288 | { | |
8289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8290 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); | |
8291 | ||
8292 | wxPyEndAllowThreads(__tstate); | |
8293 | if (PyErr_Occurred()) return NULL; | |
8294 | } _resultobj = Py_BuildValue("i",_result); | |
8295 | return _resultobj; | |
8296 | } | |
8297 | ||
8298 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8299 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8300 | PyObject * _resultobj; | |
8301 | wxString * _result; | |
8302 | wxFileTypeInfo * _arg0; | |
8303 | PyObject * _argo0 = 0; | |
8304 | char *_kwnames[] = { "self", NULL }; | |
8305 | ||
8306 | self = self; | |
8307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8308 | return NULL; | |
8309 | if (_argo0) { | |
8310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8313 | return NULL; | |
8314 | } | |
8315 | } | |
8316 | { | |
8317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8318 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); | |
8319 | _result = (wxString *) &_result_ref; | |
8320 | ||
8321 | wxPyEndAllowThreads(__tstate); | |
8322 | if (PyErr_Occurred()) return NULL; | |
8323 | }{ | |
8324 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8325 | } | |
8326 | return _resultobj; | |
8327 | } | |
8328 | ||
8329 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8330 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8331 | PyObject * _resultobj; | |
8332 | int _result; | |
8333 | wxFileTypeInfo * _arg0; | |
8334 | PyObject * _argo0 = 0; | |
8335 | char *_kwnames[] = { "self", NULL }; | |
8336 | ||
8337 | self = self; | |
8338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8339 | return NULL; | |
8340 | if (_argo0) { | |
8341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8344 | return NULL; | |
8345 | } | |
8346 | } | |
8347 | { | |
8348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8349 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); | |
8350 | ||
8351 | wxPyEndAllowThreads(__tstate); | |
8352 | if (PyErr_Occurred()) return NULL; | |
8353 | } _resultobj = Py_BuildValue("i",_result); | |
8354 | return _resultobj; | |
8355 | } | |
8356 | ||
8357 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8358 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8359 | PyObject * _resultobj; | |
8360 | wxFileType * _result; | |
8361 | wxFileTypeInfo * _arg0; | |
8362 | PyObject * _argo0 = 0; | |
8363 | char *_kwnames[] = { "ftInfo", NULL }; | |
8364 | char _ptemp[128]; | |
8365 | ||
8366 | self = self; | |
8367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8368 | return NULL; | |
8369 | if (_argo0) { | |
8370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8373 | return NULL; | |
8374 | } | |
8375 | } | |
8376 | { | |
8377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8378 | _result = (wxFileType *)new_wxFileType(*_arg0); | |
8379 | ||
8380 | wxPyEndAllowThreads(__tstate); | |
8381 | if (PyErr_Occurred()) return NULL; | |
8382 | } if (_result) { | |
8383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8384 | _resultobj = Py_BuildValue("s",_ptemp); | |
8385 | } else { | |
8386 | Py_INCREF(Py_None); | |
8387 | _resultobj = Py_None; | |
8388 | } | |
8389 | return _resultobj; | |
8390 | } | |
8391 | ||
8392 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8393 | wxString str; | |
8394 | if (self->GetMimeType(&str)) | |
8395 | return PyString_FromString(str.c_str()); | |
8396 | else | |
8397 | RETURN_NONE(); | |
8398 | } | |
8399 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8400 | PyObject * _resultobj; | |
8401 | PyObject * _result; | |
8402 | wxFileType * _arg0; | |
8403 | PyObject * _argo0 = 0; | |
8404 | char *_kwnames[] = { "self", NULL }; | |
8405 | ||
8406 | self = self; | |
8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8408 | return NULL; | |
8409 | if (_argo0) { | |
8410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8413 | return NULL; | |
8414 | } | |
8415 | } | |
8416 | { | |
8417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8418 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); | |
8419 | ||
8420 | wxPyEndAllowThreads(__tstate); | |
8421 | if (PyErr_Occurred()) return NULL; | |
8422 | }{ | |
8423 | _resultobj = _result; | |
8424 | } | |
8425 | return _resultobj; | |
8426 | } | |
8427 | ||
8428 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8429 | wxArrayString arr; | |
8430 | if (self->GetMimeTypes(arr)) | |
8431 | return wxArrayString2PyList_helper(arr); | |
8432 | else | |
8433 | RETURN_NONE(); | |
8434 | } | |
8435 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8436 | PyObject * _resultobj; | |
8437 | PyObject * _result; | |
8438 | wxFileType * _arg0; | |
8439 | PyObject * _argo0 = 0; | |
8440 | char *_kwnames[] = { "self", NULL }; | |
8441 | ||
8442 | self = self; | |
8443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8444 | return NULL; | |
8445 | if (_argo0) { | |
8446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8449 | return NULL; | |
8450 | } | |
8451 | } | |
8452 | { | |
8453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8454 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); | |
8455 | ||
8456 | wxPyEndAllowThreads(__tstate); | |
8457 | if (PyErr_Occurred()) return NULL; | |
8458 | }{ | |
8459 | _resultobj = _result; | |
8460 | } | |
8461 | return _resultobj; | |
8462 | } | |
8463 | ||
8464 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8465 | wxArrayString arr; | |
8466 | if (self->GetExtensions(arr)) | |
8467 | return wxArrayString2PyList_helper(arr); | |
8468 | else | |
8469 | RETURN_NONE(); | |
8470 | } | |
8471 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8472 | PyObject * _resultobj; | |
8473 | PyObject * _result; | |
8474 | wxFileType * _arg0; | |
8475 | PyObject * _argo0 = 0; | |
8476 | char *_kwnames[] = { "self", NULL }; | |
8477 | ||
8478 | self = self; | |
8479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8480 | return NULL; | |
8481 | if (_argo0) { | |
8482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8485 | return NULL; | |
8486 | } | |
8487 | } | |
8488 | { | |
8489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8490 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); | |
8491 | ||
8492 | wxPyEndAllowThreads(__tstate); | |
8493 | if (PyErr_Occurred()) return NULL; | |
8494 | }{ | |
8495 | _resultobj = _result; | |
8496 | } | |
8497 | return _resultobj; | |
8498 | } | |
8499 | ||
8500 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8501 | wxIcon icon; | |
8502 | if (self->GetIcon(&icon)) | |
8503 | return new wxIcon(icon); | |
8504 | else | |
8505 | return NULL; | |
8506 | } | |
8507 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8508 | PyObject * _resultobj; | |
8509 | wxIcon * _result; | |
8510 | wxFileType * _arg0; | |
8511 | PyObject * _argo0 = 0; | |
8512 | char *_kwnames[] = { "self", NULL }; | |
8513 | char _ptemp[128]; | |
8514 | ||
8515 | self = self; | |
8516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8517 | return NULL; | |
8518 | if (_argo0) { | |
8519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8522 | return NULL; | |
8523 | } | |
8524 | } | |
8525 | { | |
8526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8527 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); | |
8528 | ||
8529 | wxPyEndAllowThreads(__tstate); | |
8530 | if (PyErr_Occurred()) return NULL; | |
8531 | } if (_result) { | |
8532 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8533 | _resultobj = Py_BuildValue("s",_ptemp); | |
8534 | } else { | |
8535 | Py_INCREF(Py_None); | |
8536 | _resultobj = Py_None; | |
8537 | } | |
8538 | return _resultobj; | |
8539 | } | |
8540 | ||
8541 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8542 | wxIcon icon; | |
8543 | wxString iconFile; | |
8544 | int iconIndex; | |
8545 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
8546 | wxPyBeginBlockThreads(); | |
8547 | PyObject* tuple = PyTuple_New(3); | |
8548 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8549 | "wxIcon", TRUE)); | |
8550 | PyTuple_SetItem(tuple, 1, PyString_FromString(iconFile.c_str())); | |
8551 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
8552 | wxPyEndBlockThreads(); | |
8553 | return tuple; | |
8554 | } | |
8555 | else | |
8556 | RETURN_NONE(); | |
8557 | } | |
8558 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8559 | PyObject * _resultobj; | |
8560 | PyObject * _result; | |
8561 | wxFileType * _arg0; | |
8562 | PyObject * _argo0 = 0; | |
8563 | char *_kwnames[] = { "self", NULL }; | |
8564 | ||
8565 | self = self; | |
8566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8567 | return NULL; | |
8568 | if (_argo0) { | |
8569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8572 | return NULL; | |
8573 | } | |
8574 | } | |
8575 | { | |
8576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8577 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); | |
8578 | ||
8579 | wxPyEndAllowThreads(__tstate); | |
8580 | if (PyErr_Occurred()) return NULL; | |
8581 | }{ | |
8582 | _resultobj = _result; | |
8583 | } | |
8584 | return _resultobj; | |
8585 | } | |
8586 | ||
8587 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8588 | wxString str; | |
8589 | if (self->GetDescription(&str)) | |
8590 | return PyString_FromString(str.c_str()); | |
8591 | else | |
8592 | RETURN_NONE(); | |
8593 | } | |
8594 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8595 | PyObject * _resultobj; | |
8596 | PyObject * _result; | |
8597 | wxFileType * _arg0; | |
8598 | PyObject * _argo0 = 0; | |
8599 | char *_kwnames[] = { "self", NULL }; | |
8600 | ||
8601 | self = self; | |
8602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8603 | return NULL; | |
8604 | if (_argo0) { | |
8605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8608 | return NULL; | |
8609 | } | |
8610 | } | |
8611 | { | |
8612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8613 | _result = (PyObject *)wxFileType_GetDescription(_arg0); | |
8614 | ||
8615 | wxPyEndAllowThreads(__tstate); | |
8616 | if (PyErr_Occurred()) return NULL; | |
8617 | }{ | |
8618 | _resultobj = _result; | |
8619 | } | |
8620 | return _resultobj; | |
8621 | } | |
8622 | ||
8623 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8624 | wxString str; | |
8625 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
8626 | return PyString_FromString(str.c_str()); | |
8627 | else | |
8628 | RETURN_NONE(); | |
8629 | } | |
8630 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8631 | PyObject * _resultobj; | |
8632 | PyObject * _result; | |
8633 | wxFileType * _arg0; | |
8634 | wxString * _arg1; | |
8635 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
8636 | PyObject * _argo0 = 0; | |
8637 | PyObject * _obj1 = 0; | |
8638 | PyObject * _obj2 = 0; | |
8639 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8640 | ||
8641 | self = self; | |
8642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8643 | return NULL; | |
8644 | if (_argo0) { | |
8645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8648 | return NULL; | |
8649 | } | |
8650 | } | |
8651 | { | |
8652 | #if PYTHON_API_VERSION >= 1009 | |
8653 | char* tmpPtr; int tmpSize; | |
8654 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8655 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8656 | return NULL; | |
8657 | } | |
8658 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8659 | return NULL; | |
8660 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8661 | #else | |
8662 | if (!PyString_Check(_obj1)) { | |
8663 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8664 | return NULL; | |
8665 | } | |
8666 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8667 | #endif | |
8668 | } | |
8669 | if (_obj2) | |
8670 | { | |
8671 | #if PYTHON_API_VERSION >= 1009 | |
8672 | char* tmpPtr; int tmpSize; | |
8673 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8674 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8675 | return NULL; | |
8676 | } | |
8677 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8678 | return NULL; | |
8679 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8680 | #else | |
8681 | if (!PyString_Check(_obj2)) { | |
8682 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8683 | return NULL; | |
8684 | } | |
8685 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8686 | #endif | |
8687 | } | |
8688 | { | |
8689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8690 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); | |
8691 | ||
8692 | wxPyEndAllowThreads(__tstate); | |
8693 | if (PyErr_Occurred()) return NULL; | |
8694 | }{ | |
8695 | _resultobj = _result; | |
8696 | } | |
8697 | { | |
8698 | if (_obj1) | |
8699 | delete _arg1; | |
8700 | } | |
8701 | { | |
8702 | if (_obj2) | |
8703 | delete _arg2; | |
8704 | } | |
8705 | return _resultobj; | |
8706 | } | |
8707 | ||
8708 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8709 | wxString str; | |
8710 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
8711 | return PyString_FromString(str.c_str()); | |
8712 | else | |
8713 | RETURN_NONE(); | |
8714 | } | |
8715 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8716 | PyObject * _resultobj; | |
8717 | PyObject * _result; | |
8718 | wxFileType * _arg0; | |
8719 | wxString * _arg1; | |
8720 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
8721 | PyObject * _argo0 = 0; | |
8722 | PyObject * _obj1 = 0; | |
8723 | PyObject * _obj2 = 0; | |
8724 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8725 | ||
8726 | self = self; | |
8727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8728 | return NULL; | |
8729 | if (_argo0) { | |
8730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8733 | return NULL; | |
8734 | } | |
8735 | } | |
8736 | { | |
8737 | #if PYTHON_API_VERSION >= 1009 | |
8738 | char* tmpPtr; int tmpSize; | |
8739 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8740 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8741 | return NULL; | |
8742 | } | |
8743 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8744 | return NULL; | |
8745 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8746 | #else | |
8747 | if (!PyString_Check(_obj1)) { | |
8748 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8749 | return NULL; | |
8750 | } | |
8751 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8752 | #endif | |
8753 | } | |
8754 | if (_obj2) | |
8755 | { | |
8756 | #if PYTHON_API_VERSION >= 1009 | |
8757 | char* tmpPtr; int tmpSize; | |
8758 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8759 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8760 | return NULL; | |
8761 | } | |
8762 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8763 | return NULL; | |
8764 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8765 | #else | |
8766 | if (!PyString_Check(_obj2)) { | |
8767 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8768 | return NULL; | |
8769 | } | |
8770 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8771 | #endif | |
8772 | } | |
8773 | { | |
8774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8775 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); | |
8776 | ||
8777 | wxPyEndAllowThreads(__tstate); | |
8778 | if (PyErr_Occurred()) return NULL; | |
8779 | }{ | |
8780 | _resultobj = _result; | |
8781 | } | |
8782 | { | |
8783 | if (_obj1) | |
8784 | delete _arg1; | |
8785 | } | |
8786 | { | |
8787 | if (_obj2) | |
8788 | delete _arg2; | |
8789 | } | |
8790 | return _resultobj; | |
8791 | } | |
8792 | ||
8793 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8794 | wxArrayString verbs; | |
8795 | wxArrayString commands; | |
8796 | if (self->GetAllCommands(&verbs, &commands, | |
8797 | wxFileType::MessageParameters(filename, mimetype))) { | |
8798 | wxPyBeginBlockThreads(); | |
8799 | PyObject* tuple = PyTuple_New(2); | |
8800 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8801 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
8802 | wxPyEndBlockThreads(); | |
8803 | return tuple; | |
8804 | } | |
8805 | else | |
8806 | RETURN_NONE(); | |
8807 | } | |
8808 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8809 | PyObject * _resultobj; | |
8810 | PyObject * _result; | |
8811 | wxFileType * _arg0; | |
8812 | wxString * _arg1; | |
8813 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
8814 | PyObject * _argo0 = 0; | |
8815 | PyObject * _obj1 = 0; | |
8816 | PyObject * _obj2 = 0; | |
8817 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8818 | ||
8819 | self = self; | |
8820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8821 | return NULL; | |
8822 | if (_argo0) { | |
8823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
8826 | return NULL; | |
8827 | } | |
8828 | } | |
8829 | { | |
8830 | #if PYTHON_API_VERSION >= 1009 | |
8831 | char* tmpPtr; int tmpSize; | |
8832 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8833 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8834 | return NULL; | |
8835 | } | |
8836 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8837 | return NULL; | |
8838 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8839 | #else | |
8840 | if (!PyString_Check(_obj1)) { | |
8841 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8842 | return NULL; | |
8843 | } | |
8844 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8845 | #endif | |
8846 | } | |
8847 | if (_obj2) | |
8848 | { | |
8849 | #if PYTHON_API_VERSION >= 1009 | |
8850 | char* tmpPtr; int tmpSize; | |
8851 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8852 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8853 | return NULL; | |
8854 | } | |
8855 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8856 | return NULL; | |
8857 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8858 | #else | |
8859 | if (!PyString_Check(_obj2)) { | |
8860 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8861 | return NULL; | |
8862 | } | |
8863 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8864 | #endif | |
8865 | } | |
8866 | { | |
8867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8868 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); | |
8869 | ||
8870 | wxPyEndAllowThreads(__tstate); | |
8871 | if (PyErr_Occurred()) return NULL; | |
8872 | }{ | |
8873 | _resultobj = _result; | |
8874 | } | |
8875 | { | |
8876 | if (_obj1) | |
8877 | delete _arg1; | |
8878 | } | |
8879 | { | |
8880 | if (_obj2) | |
8881 | delete _arg2; | |
8882 | } | |
8883 | return _resultobj; | |
8884 | } | |
8885 | ||
8886 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
8887 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8888 | PyObject * _resultobj; | |
8889 | bool _result; | |
8890 | wxFileType * _arg0; | |
8891 | wxString * _arg1; | |
8892 | wxString * _arg2; | |
8893 | bool _arg3 = (bool ) TRUE; | |
8894 | PyObject * _argo0 = 0; | |
8895 | PyObject * _obj1 = 0; | |
8896 | PyObject * _obj2 = 0; | |
8897 | int tempbool3 = (int) TRUE; | |
8898 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
8899 | ||
8900 | self = self; | |
8901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
8902 | return NULL; | |
8903 | if (_argo0) { | |
8904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
8907 | return NULL; | |
8908 | } | |
8909 | } | |
8910 | { | |
8911 | #if PYTHON_API_VERSION >= 1009 | |
8912 | char* tmpPtr; int tmpSize; | |
8913 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8914 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8915 | return NULL; | |
8916 | } | |
8917 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8918 | return NULL; | |
8919 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8920 | #else | |
8921 | if (!PyString_Check(_obj1)) { | |
8922 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8923 | return NULL; | |
8924 | } | |
8925 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8926 | #endif | |
8927 | } | |
8928 | { | |
8929 | #if PYTHON_API_VERSION >= 1009 | |
8930 | char* tmpPtr; int tmpSize; | |
8931 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8932 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8933 | return NULL; | |
8934 | } | |
8935 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8936 | return NULL; | |
8937 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8938 | #else | |
8939 | if (!PyString_Check(_obj2)) { | |
8940 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8941 | return NULL; | |
8942 | } | |
8943 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8944 | #endif | |
8945 | } | |
8946 | _arg3 = (bool ) tempbool3; | |
8947 | { | |
8948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8949 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); | |
8950 | ||
8951 | wxPyEndAllowThreads(__tstate); | |
8952 | if (PyErr_Occurred()) return NULL; | |
8953 | } _resultobj = Py_BuildValue("i",_result); | |
8954 | { | |
8955 | if (_obj1) | |
8956 | delete _arg1; | |
8957 | } | |
8958 | { | |
8959 | if (_obj2) | |
8960 | delete _arg2; | |
8961 | } | |
8962 | return _resultobj; | |
8963 | } | |
8964 | ||
8965 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
8966 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8967 | PyObject * _resultobj; | |
8968 | bool _result; | |
8969 | wxFileType * _arg0; | |
8970 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
8971 | int _arg2 = (int ) 0; | |
8972 | PyObject * _argo0 = 0; | |
8973 | PyObject * _obj1 = 0; | |
8974 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
8975 | ||
8976 | self = self; | |
8977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8978 | return NULL; | |
8979 | if (_argo0) { | |
8980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
8983 | return NULL; | |
8984 | } | |
8985 | } | |
8986 | if (_obj1) | |
8987 | { | |
8988 | #if PYTHON_API_VERSION >= 1009 | |
8989 | char* tmpPtr; int tmpSize; | |
8990 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8991 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8992 | return NULL; | |
8993 | } | |
8994 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8995 | return NULL; | |
8996 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8997 | #else | |
8998 | if (!PyString_Check(_obj1)) { | |
8999 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9000 | return NULL; | |
9001 | } | |
9002 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9003 | #endif | |
9004 | } | |
9005 | { | |
9006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9007 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); | |
9008 | ||
9009 | wxPyEndAllowThreads(__tstate); | |
9010 | if (PyErr_Occurred()) return NULL; | |
9011 | } _resultobj = Py_BuildValue("i",_result); | |
9012 | { | |
9013 | if (_obj1) | |
9014 | delete _arg1; | |
9015 | } | |
9016 | return _resultobj; | |
9017 | } | |
9018 | ||
9019 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
9020 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9021 | PyObject * _resultobj; | |
9022 | bool _result; | |
9023 | wxFileType * _arg0; | |
9024 | PyObject * _argo0 = 0; | |
9025 | char *_kwnames[] = { "self", NULL }; | |
9026 | ||
9027 | self = self; | |
9028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
9029 | return NULL; | |
9030 | if (_argo0) { | |
9031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
9034 | return NULL; | |
9035 | } | |
9036 | } | |
9037 | { | |
9038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9039 | _result = (bool )wxFileType_Unassociate(_arg0); | |
9040 | ||
9041 | wxPyEndAllowThreads(__tstate); | |
9042 | if (PyErr_Occurred()) return NULL; | |
9043 | } _resultobj = Py_BuildValue("i",_result); | |
9044 | return _resultobj; | |
9045 | } | |
9046 | ||
9047 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9048 | PyObject * _resultobj; | |
9049 | wxString * _result; | |
9050 | wxString * _arg0; | |
9051 | wxFileType::MessageParameters * _arg1; | |
9052 | PyObject * _obj0 = 0; | |
9053 | PyObject * _argo1 = 0; | |
9054 | char *_kwnames[] = { "command","params", NULL }; | |
9055 | ||
9056 | self = self; | |
9057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
9058 | return NULL; | |
9059 | { | |
9060 | #if PYTHON_API_VERSION >= 1009 | |
9061 | char* tmpPtr; int tmpSize; | |
9062 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
9063 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9064 | return NULL; | |
9065 | } | |
9066 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9067 | return NULL; | |
9068 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9069 | #else | |
9070 | if (!PyString_Check(_obj0)) { | |
9071 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9072 | return NULL; | |
9073 | } | |
9074 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9075 | #endif | |
9076 | } | |
9077 | if (_argo1) { | |
9078 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9079 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
9080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
9081 | return NULL; | |
9082 | } | |
9083 | } | |
9084 | { | |
9085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9086 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); | |
9087 | ||
9088 | wxPyEndAllowThreads(__tstate); | |
9089 | if (PyErr_Occurred()) return NULL; | |
9090 | }{ | |
9091 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9092 | } | |
9093 | { | |
9094 | if (_obj0) | |
9095 | delete _arg0; | |
9096 | } | |
9097 | { | |
9098 | delete _result; | |
9099 | } | |
9100 | return _resultobj; | |
9101 | } | |
9102 | ||
9103 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
9104 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9105 | PyObject * _resultobj; | |
9106 | wxFileType * _arg0; | |
9107 | PyObject * _argo0 = 0; | |
9108 | char *_kwnames[] = { "self", NULL }; | |
9109 | ||
9110 | self = self; | |
9111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
9112 | return NULL; | |
9113 | if (_argo0) { | |
9114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
9117 | return NULL; | |
9118 | } | |
9119 | } | |
9120 | { | |
9121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9122 | delete_wxFileType(_arg0); | |
9123 | ||
9124 | wxPyEndAllowThreads(__tstate); | |
9125 | if (PyErr_Occurred()) return NULL; | |
9126 | } Py_INCREF(Py_None); | |
9127 | _resultobj = Py_None; | |
9128 | return _resultobj; | |
9129 | } | |
9130 | ||
9131 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9132 | PyObject * _resultobj; | |
9133 | bool _result; | |
9134 | wxString * _arg0; | |
9135 | wxString * _arg1; | |
9136 | PyObject * _obj0 = 0; | |
9137 | PyObject * _obj1 = 0; | |
9138 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
9139 | ||
9140 | self = self; | |
9141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
9142 | return NULL; | |
9143 | { | |
9144 | #if PYTHON_API_VERSION >= 1009 | |
9145 | char* tmpPtr; int tmpSize; | |
9146 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
9147 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9148 | return NULL; | |
9149 | } | |
9150 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9151 | return NULL; | |
9152 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9153 | #else | |
9154 | if (!PyString_Check(_obj0)) { | |
9155 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9156 | return NULL; | |
9157 | } | |
9158 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9159 | #endif | |
9160 | } | |
9161 | { | |
9162 | #if PYTHON_API_VERSION >= 1009 | |
9163 | char* tmpPtr; int tmpSize; | |
9164 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9165 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9166 | return NULL; | |
9167 | } | |
9168 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9169 | return NULL; | |
9170 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9171 | #else | |
9172 | if (!PyString_Check(_obj1)) { | |
9173 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9174 | return NULL; | |
9175 | } | |
9176 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9177 | #endif | |
9178 | } | |
9179 | { | |
9180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9181 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); | |
9182 | ||
9183 | wxPyEndAllowThreads(__tstate); | |
9184 | if (PyErr_Occurred()) return NULL; | |
9185 | } _resultobj = Py_BuildValue("i",_result); | |
9186 | { | |
9187 | if (_obj0) | |
9188 | delete _arg0; | |
9189 | } | |
9190 | { | |
9191 | if (_obj1) | |
9192 | delete _arg1; | |
9193 | } | |
9194 | return _resultobj; | |
9195 | } | |
9196 | ||
9197 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
9198 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9199 | PyObject * _resultobj; | |
9200 | wxMimeTypesManager * _result; | |
9201 | char *_kwnames[] = { NULL }; | |
9202 | char _ptemp[128]; | |
9203 | ||
9204 | self = self; | |
9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
9206 | return NULL; | |
9207 | { | |
9208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9209 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); | |
9210 | ||
9211 | wxPyEndAllowThreads(__tstate); | |
9212 | if (PyErr_Occurred()) return NULL; | |
9213 | } if (_result) { | |
9214 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
9215 | _resultobj = Py_BuildValue("s",_ptemp); | |
9216 | } else { | |
9217 | Py_INCREF(Py_None); | |
9218 | _resultobj = Py_None; | |
9219 | } | |
9220 | return _resultobj; | |
9221 | } | |
9222 | ||
9223 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
9224 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9225 | PyObject * _resultobj; | |
9226 | wxMimeTypesManager * _arg0; | |
9227 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
9228 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
9229 | PyObject * _argo0 = 0; | |
9230 | PyObject * _obj2 = 0; | |
9231 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
9232 | ||
9233 | self = self; | |
9234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9235 | return NULL; | |
9236 | if (_argo0) { | |
9237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
9240 | return NULL; | |
9241 | } | |
9242 | } | |
9243 | if (_obj2) | |
9244 | { | |
9245 | #if PYTHON_API_VERSION >= 1009 | |
9246 | char* tmpPtr; int tmpSize; | |
9247 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
9248 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9249 | return NULL; | |
9250 | } | |
9251 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9252 | return NULL; | |
9253 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9254 | #else | |
9255 | if (!PyString_Check(_obj2)) { | |
9256 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9257 | return NULL; | |
9258 | } | |
9259 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
9260 | #endif | |
9261 | } | |
9262 | { | |
9263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9264 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); | |
9265 | ||
9266 | wxPyEndAllowThreads(__tstate); | |
9267 | if (PyErr_Occurred()) return NULL; | |
9268 | } Py_INCREF(Py_None); | |
9269 | _resultobj = Py_None; | |
9270 | { | |
9271 | if (_obj2) | |
9272 | delete _arg2; | |
9273 | } | |
9274 | return _resultobj; | |
9275 | } | |
9276 | ||
9277 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
9278 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9279 | PyObject * _resultobj; | |
9280 | wxMimeTypesManager * _arg0; | |
9281 | PyObject * _argo0 = 0; | |
9282 | char *_kwnames[] = { "self", NULL }; | |
9283 | ||
9284 | self = self; | |
9285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9286 | return NULL; | |
9287 | if (_argo0) { | |
9288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9291 | return NULL; | |
9292 | } | |
9293 | } | |
9294 | { | |
9295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9296 | wxMimeTypesManager_ClearData(_arg0); | |
9297 | ||
9298 | wxPyEndAllowThreads(__tstate); | |
9299 | if (PyErr_Occurred()) return NULL; | |
9300 | } Py_INCREF(Py_None); | |
9301 | _resultobj = Py_None; | |
9302 | return _resultobj; | |
9303 | } | |
9304 | ||
9305 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9306 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9307 | PyObject * _resultobj; | |
9308 | wxFileType * _result; | |
9309 | wxMimeTypesManager * _arg0; | |
9310 | wxString * _arg1; | |
9311 | PyObject * _argo0 = 0; | |
9312 | PyObject * _obj1 = 0; | |
9313 | char *_kwnames[] = { "self","ext", NULL }; | |
9314 | char _ptemp[128]; | |
9315 | ||
9316 | self = self; | |
9317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9318 | return NULL; | |
9319 | if (_argo0) { | |
9320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9323 | return NULL; | |
9324 | } | |
9325 | } | |
9326 | { | |
9327 | #if PYTHON_API_VERSION >= 1009 | |
9328 | char* tmpPtr; int tmpSize; | |
9329 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9330 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9331 | return NULL; | |
9332 | } | |
9333 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9334 | return NULL; | |
9335 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9336 | #else | |
9337 | if (!PyString_Check(_obj1)) { | |
9338 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9339 | return NULL; | |
9340 | } | |
9341 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9342 | #endif | |
9343 | } | |
9344 | { | |
9345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9346 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); | |
9347 | ||
9348 | wxPyEndAllowThreads(__tstate); | |
9349 | if (PyErr_Occurred()) return NULL; | |
9350 | } if (_result) { | |
9351 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9352 | _resultobj = Py_BuildValue("s",_ptemp); | |
9353 | } else { | |
9354 | Py_INCREF(Py_None); | |
9355 | _resultobj = Py_None; | |
9356 | } | |
9357 | { | |
9358 | if (_obj1) | |
9359 | delete _arg1; | |
9360 | } | |
9361 | return _resultobj; | |
9362 | } | |
9363 | ||
9364 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9365 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9366 | PyObject * _resultobj; | |
9367 | wxFileType * _result; | |
9368 | wxMimeTypesManager * _arg0; | |
9369 | wxString * _arg1; | |
9370 | PyObject * _argo0 = 0; | |
9371 | PyObject * _obj1 = 0; | |
9372 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9373 | char _ptemp[128]; | |
9374 | ||
9375 | self = self; | |
9376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9377 | return NULL; | |
9378 | if (_argo0) { | |
9379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9382 | return NULL; | |
9383 | } | |
9384 | } | |
9385 | { | |
9386 | #if PYTHON_API_VERSION >= 1009 | |
9387 | char* tmpPtr; int tmpSize; | |
9388 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9389 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9390 | return NULL; | |
9391 | } | |
9392 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9393 | return NULL; | |
9394 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9395 | #else | |
9396 | if (!PyString_Check(_obj1)) { | |
9397 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9398 | return NULL; | |
9399 | } | |
9400 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9401 | #endif | |
9402 | } | |
9403 | { | |
9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9405 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); | |
9406 | ||
9407 | wxPyEndAllowThreads(__tstate); | |
9408 | if (PyErr_Occurred()) return NULL; | |
9409 | } if (_result) { | |
9410 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9411 | _resultobj = Py_BuildValue("s",_ptemp); | |
9412 | } else { | |
9413 | Py_INCREF(Py_None); | |
9414 | _resultobj = Py_None; | |
9415 | } | |
9416 | { | |
9417 | if (_obj1) | |
9418 | delete _arg1; | |
9419 | } | |
9420 | return _resultobj; | |
9421 | } | |
9422 | ||
9423 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9424 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9425 | PyObject * _resultobj; | |
9426 | bool _result; | |
9427 | wxMimeTypesManager * _arg0; | |
9428 | wxString * _arg1; | |
9429 | bool _arg2 = (bool ) FALSE; | |
9430 | PyObject * _argo0 = 0; | |
9431 | PyObject * _obj1 = 0; | |
9432 | int tempbool2 = (int) FALSE; | |
9433 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9434 | ||
9435 | self = self; | |
9436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9437 | return NULL; | |
9438 | if (_argo0) { | |
9439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9442 | return NULL; | |
9443 | } | |
9444 | } | |
9445 | { | |
9446 | #if PYTHON_API_VERSION >= 1009 | |
9447 | char* tmpPtr; int tmpSize; | |
9448 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9449 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9450 | return NULL; | |
9451 | } | |
9452 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9453 | return NULL; | |
9454 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9455 | #else | |
9456 | if (!PyString_Check(_obj1)) { | |
9457 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9458 | return NULL; | |
9459 | } | |
9460 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9461 | #endif | |
9462 | } | |
9463 | _arg2 = (bool ) tempbool2; | |
9464 | { | |
9465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9466 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); | |
9467 | ||
9468 | wxPyEndAllowThreads(__tstate); | |
9469 | if (PyErr_Occurred()) return NULL; | |
9470 | } _resultobj = Py_BuildValue("i",_result); | |
9471 | { | |
9472 | if (_obj1) | |
9473 | delete _arg1; | |
9474 | } | |
9475 | return _resultobj; | |
9476 | } | |
9477 | ||
9478 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9479 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9480 | PyObject * _resultobj; | |
9481 | bool _result; | |
9482 | wxMimeTypesManager * _arg0; | |
9483 | wxString * _arg1; | |
9484 | PyObject * _argo0 = 0; | |
9485 | PyObject * _obj1 = 0; | |
9486 | char *_kwnames[] = { "self","filename", NULL }; | |
9487 | ||
9488 | self = self; | |
9489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9490 | return NULL; | |
9491 | if (_argo0) { | |
9492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9495 | return NULL; | |
9496 | } | |
9497 | } | |
9498 | { | |
9499 | #if PYTHON_API_VERSION >= 1009 | |
9500 | char* tmpPtr; int tmpSize; | |
9501 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9502 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9503 | return NULL; | |
9504 | } | |
9505 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9506 | return NULL; | |
9507 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9508 | #else | |
9509 | if (!PyString_Check(_obj1)) { | |
9510 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9511 | return NULL; | |
9512 | } | |
9513 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9514 | #endif | |
9515 | } | |
9516 | { | |
9517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9518 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); | |
9519 | ||
9520 | wxPyEndAllowThreads(__tstate); | |
9521 | if (PyErr_Occurred()) return NULL; | |
9522 | } _resultobj = Py_BuildValue("i",_result); | |
9523 | { | |
9524 | if (_obj1) | |
9525 | delete _arg1; | |
9526 | } | |
9527 | return _resultobj; | |
9528 | } | |
9529 | ||
9530 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9531 | wxArrayString arr; | |
9532 | self->EnumAllFileTypes(arr); | |
9533 | return wxArrayString2PyList_helper(arr); | |
9534 | } | |
9535 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9536 | PyObject * _resultobj; | |
9537 | PyObject * _result; | |
9538 | wxMimeTypesManager * _arg0; | |
9539 | PyObject * _argo0 = 0; | |
9540 | char *_kwnames[] = { "self", NULL }; | |
9541 | ||
9542 | self = self; | |
9543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9544 | return NULL; | |
9545 | if (_argo0) { | |
9546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9549 | return NULL; | |
9550 | } | |
9551 | } | |
9552 | { | |
9553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9554 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); | |
9555 | ||
9556 | wxPyEndAllowThreads(__tstate); | |
9557 | if (PyErr_Occurred()) return NULL; | |
9558 | }{ | |
9559 | _resultobj = _result; | |
9560 | } | |
9561 | return _resultobj; | |
9562 | } | |
9563 | ||
9564 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9565 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9566 | PyObject * _resultobj; | |
9567 | wxMimeTypesManager * _arg0; | |
9568 | wxFileTypeInfo * _arg1; | |
9569 | PyObject * _argo0 = 0; | |
9570 | PyObject * _argo1 = 0; | |
9571 | char *_kwnames[] = { "self","ft", NULL }; | |
9572 | ||
9573 | self = self; | |
9574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9575 | return NULL; | |
9576 | if (_argo0) { | |
9577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9580 | return NULL; | |
9581 | } | |
9582 | } | |
9583 | if (_argo1) { | |
9584 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9585 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9587 | return NULL; | |
9588 | } | |
9589 | } | |
9590 | { | |
9591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9592 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); | |
9593 | ||
9594 | wxPyEndAllowThreads(__tstate); | |
9595 | if (PyErr_Occurred()) return NULL; | |
9596 | } Py_INCREF(Py_None); | |
9597 | _resultobj = Py_None; | |
9598 | return _resultobj; | |
9599 | } | |
9600 | ||
9601 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9602 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9603 | PyObject * _resultobj; | |
9604 | wxFileType * _result; | |
9605 | wxMimeTypesManager * _arg0; | |
9606 | wxFileTypeInfo * _arg1; | |
9607 | PyObject * _argo0 = 0; | |
9608 | PyObject * _argo1 = 0; | |
9609 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9610 | char _ptemp[128]; | |
9611 | ||
9612 | self = self; | |
9613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9614 | return NULL; | |
9615 | if (_argo0) { | |
9616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9619 | return NULL; | |
9620 | } | |
9621 | } | |
9622 | if (_argo1) { | |
9623 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9624 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9626 | return NULL; | |
9627 | } | |
9628 | } | |
9629 | { | |
9630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9631 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); | |
9632 | ||
9633 | wxPyEndAllowThreads(__tstate); | |
9634 | if (PyErr_Occurred()) return NULL; | |
9635 | } if (_result) { | |
9636 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9637 | _resultobj = Py_BuildValue("s",_ptemp); | |
9638 | } else { | |
9639 | Py_INCREF(Py_None); | |
9640 | _resultobj = Py_None; | |
9641 | } | |
9642 | return _resultobj; | |
9643 | } | |
9644 | ||
9645 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9646 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9647 | PyObject * _resultobj; | |
9648 | bool _result; | |
9649 | wxMimeTypesManager * _arg0; | |
9650 | wxFileType * _arg1; | |
9651 | PyObject * _argo0 = 0; | |
9652 | PyObject * _argo1 = 0; | |
9653 | char *_kwnames[] = { "self","ft", NULL }; | |
9654 | ||
9655 | self = self; | |
9656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9657 | return NULL; | |
9658 | if (_argo0) { | |
9659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9662 | return NULL; | |
9663 | } | |
9664 | } | |
9665 | if (_argo1) { | |
9666 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9667 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9669 | return NULL; | |
9670 | } | |
9671 | } | |
9672 | { | |
9673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9674 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); | |
9675 | ||
9676 | wxPyEndAllowThreads(__tstate); | |
9677 | if (PyErr_Occurred()) return NULL; | |
9678 | } _resultobj = Py_BuildValue("i",_result); | |
9679 | return _resultobj; | |
9680 | } | |
9681 | ||
9682 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9683 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9684 | PyObject * _resultobj; | |
9685 | wxMimeTypesManager * _arg0; | |
9686 | PyObject * _argo0 = 0; | |
9687 | char *_kwnames[] = { "self", NULL }; | |
9688 | ||
9689 | self = self; | |
9690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9691 | return NULL; | |
9692 | if (_argo0) { | |
9693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9696 | return NULL; | |
9697 | } | |
9698 | } | |
9699 | { | |
9700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9701 | delete_wxMimeTypesManager(_arg0); | |
9702 | ||
9703 | wxPyEndAllowThreads(__tstate); | |
9704 | if (PyErr_Occurred()) return NULL; | |
9705 | } Py_INCREF(Py_None); | |
9706 | _resultobj = Py_None; | |
9707 | return _resultobj; | |
9708 | } | |
9709 | ||
9710 | static void *SwigwxFileHistoryTowxObject(void *ptr) { | |
9711 | wxFileHistory *src; | |
9712 | wxObject *dest; | |
9713 | src = (wxFileHistory *) ptr; | |
9714 | dest = (wxObject *) src; | |
9715 | return (void *) dest; | |
9716 | } | |
9717 | ||
9718 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
9719 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9720 | PyObject * _resultobj; | |
9721 | wxFileHistory * _result; | |
9722 | int _arg0 = (int ) 9; | |
9723 | char *_kwnames[] = { "maxFiles", NULL }; | |
9724 | char _ptemp[128]; | |
9725 | ||
9726 | self = self; | |
9727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
9728 | return NULL; | |
9729 | { | |
9730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9731 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); | |
9732 | ||
9733 | wxPyEndAllowThreads(__tstate); | |
9734 | if (PyErr_Occurred()) return NULL; | |
9735 | } if (_result) { | |
9736 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
9737 | _resultobj = Py_BuildValue("s",_ptemp); | |
9738 | } else { | |
9739 | Py_INCREF(Py_None); | |
9740 | _resultobj = Py_None; | |
9741 | } | |
9742 | return _resultobj; | |
9743 | } | |
9744 | ||
9745 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
9746 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9747 | PyObject * _resultobj; | |
9748 | wxFileHistory * _arg0; | |
9749 | PyObject * _argo0 = 0; | |
9750 | char *_kwnames[] = { "self", NULL }; | |
9751 | ||
9752 | self = self; | |
9753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
9754 | return NULL; | |
9755 | if (_argo0) { | |
9756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
9759 | return NULL; | |
9760 | } | |
9761 | } | |
9762 | { | |
9763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9764 | delete_wxFileHistory(_arg0); | |
9765 | ||
9766 | wxPyEndAllowThreads(__tstate); | |
9767 | if (PyErr_Occurred()) return NULL; | |
9768 | } Py_INCREF(Py_None); | |
9769 | _resultobj = Py_None; | |
9770 | return _resultobj; | |
9771 | } | |
9772 | ||
9773 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
9774 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9775 | PyObject * _resultobj; | |
9776 | wxFileHistory * _arg0; | |
9777 | wxString * _arg1; | |
9778 | PyObject * _argo0 = 0; | |
9779 | PyObject * _obj1 = 0; | |
9780 | char *_kwnames[] = { "self","file", NULL }; | |
9781 | ||
9782 | self = self; | |
9783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
9784 | return NULL; | |
9785 | if (_argo0) { | |
9786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
9789 | return NULL; | |
9790 | } | |
9791 | } | |
9792 | { | |
9793 | #if PYTHON_API_VERSION >= 1009 | |
9794 | char* tmpPtr; int tmpSize; | |
9795 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9796 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9797 | return NULL; | |
9798 | } | |
9799 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9800 | return NULL; | |
9801 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9802 | #else | |
9803 | if (!PyString_Check(_obj1)) { | |
9804 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9805 | return NULL; | |
9806 | } | |
9807 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9808 | #endif | |
9809 | } | |
9810 | { | |
9811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9812 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); | |
9813 | ||
9814 | wxPyEndAllowThreads(__tstate); | |
9815 | if (PyErr_Occurred()) return NULL; | |
9816 | } Py_INCREF(Py_None); | |
9817 | _resultobj = Py_None; | |
9818 | { | |
9819 | if (_obj1) | |
9820 | delete _arg1; | |
9821 | } | |
9822 | return _resultobj; | |
9823 | } | |
9824 | ||
9825 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
9826 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9827 | PyObject * _resultobj; | |
9828 | wxFileHistory * _arg0; | |
9829 | int _arg1; | |
9830 | PyObject * _argo0 = 0; | |
9831 | char *_kwnames[] = { "self","i", NULL }; | |
9832 | ||
9833 | self = self; | |
9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
9835 | return NULL; | |
9836 | if (_argo0) { | |
9837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
9840 | return NULL; | |
9841 | } | |
9842 | } | |
9843 | { | |
9844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9845 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); | |
9846 | ||
9847 | wxPyEndAllowThreads(__tstate); | |
9848 | if (PyErr_Occurred()) return NULL; | |
9849 | } Py_INCREF(Py_None); | |
9850 | _resultobj = Py_None; | |
9851 | return _resultobj; | |
9852 | } | |
9853 | ||
9854 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
9855 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9856 | PyObject * _resultobj; | |
9857 | int _result; | |
9858 | wxFileHistory * _arg0; | |
9859 | PyObject * _argo0 = 0; | |
9860 | char *_kwnames[] = { "self", NULL }; | |
9861 | ||
9862 | self = self; | |
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
9864 | return NULL; | |
9865 | if (_argo0) { | |
9866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
9869 | return NULL; | |
9870 | } | |
9871 | } | |
9872 | { | |
9873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9874 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); | |
9875 | ||
9876 | wxPyEndAllowThreads(__tstate); | |
9877 | if (PyErr_Occurred()) return NULL; | |
9878 | } _resultobj = Py_BuildValue("i",_result); | |
9879 | return _resultobj; | |
9880 | } | |
9881 | ||
9882 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
9883 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9884 | PyObject * _resultobj; | |
9885 | wxFileHistory * _arg0; | |
9886 | wxMenu * _arg1; | |
9887 | PyObject * _argo0 = 0; | |
9888 | PyObject * _argo1 = 0; | |
9889 | char *_kwnames[] = { "self","menu", NULL }; | |
9890 | ||
9891 | self = self; | |
9892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
9893 | return NULL; | |
9894 | if (_argo0) { | |
9895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
9898 | return NULL; | |
9899 | } | |
9900 | } | |
9901 | if (_argo1) { | |
9902 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9903 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
9905 | return NULL; | |
9906 | } | |
9907 | } | |
9908 | { | |
9909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9910 | wxFileHistory_UseMenu(_arg0,_arg1); | |
9911 | ||
9912 | wxPyEndAllowThreads(__tstate); | |
9913 | if (PyErr_Occurred()) return NULL; | |
9914 | } Py_INCREF(Py_None); | |
9915 | _resultobj = Py_None; | |
9916 | return _resultobj; | |
9917 | } | |
9918 | ||
9919 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
9920 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9921 | PyObject * _resultobj; | |
9922 | wxFileHistory * _arg0; | |
9923 | wxMenu * _arg1; | |
9924 | PyObject * _argo0 = 0; | |
9925 | PyObject * _argo1 = 0; | |
9926 | char *_kwnames[] = { "self","menu", NULL }; | |
9927 | ||
9928 | self = self; | |
9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
9930 | return NULL; | |
9931 | if (_argo0) { | |
9932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
9935 | return NULL; | |
9936 | } | |
9937 | } | |
9938 | if (_argo1) { | |
9939 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9940 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
9942 | return NULL; | |
9943 | } | |
9944 | } | |
9945 | { | |
9946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9947 | wxFileHistory_RemoveMenu(_arg0,_arg1); | |
9948 | ||
9949 | wxPyEndAllowThreads(__tstate); | |
9950 | if (PyErr_Occurred()) return NULL; | |
9951 | } Py_INCREF(Py_None); | |
9952 | _resultobj = Py_None; | |
9953 | return _resultobj; | |
9954 | } | |
9955 | ||
9956 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
9957 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9958 | PyObject * _resultobj; | |
9959 | wxFileHistory * _arg0; | |
9960 | wxConfigBase * _arg1; | |
9961 | PyObject * _argo0 = 0; | |
9962 | PyObject * _argo1 = 0; | |
9963 | char *_kwnames[] = { "self","config", NULL }; | |
9964 | ||
9965 | self = self; | |
9966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
9967 | return NULL; | |
9968 | if (_argo0) { | |
9969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
9972 | return NULL; | |
9973 | } | |
9974 | } | |
9975 | if (_argo1) { | |
9976 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9977 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
9979 | return NULL; | |
9980 | } | |
9981 | } | |
9982 | { | |
9983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9984 | wxFileHistory_Load(_arg0,*_arg1); | |
9985 | ||
9986 | wxPyEndAllowThreads(__tstate); | |
9987 | if (PyErr_Occurred()) return NULL; | |
9988 | } Py_INCREF(Py_None); | |
9989 | _resultobj = Py_None; | |
9990 | return _resultobj; | |
9991 | } | |
9992 | ||
9993 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
9994 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9995 | PyObject * _resultobj; | |
9996 | wxFileHistory * _arg0; | |
9997 | wxConfigBase * _arg1; | |
9998 | PyObject * _argo0 = 0; | |
9999 | PyObject * _argo1 = 0; | |
10000 | char *_kwnames[] = { "self","config", NULL }; | |
10001 | ||
10002 | self = self; | |
10003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
10004 | return NULL; | |
10005 | if (_argo0) { | |
10006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
10009 | return NULL; | |
10010 | } | |
10011 | } | |
10012 | if (_argo1) { | |
10013 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10014 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
10015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
10016 | return NULL; | |
10017 | } | |
10018 | } | |
10019 | { | |
10020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10021 | wxFileHistory_Save(_arg0,*_arg1); | |
10022 | ||
10023 | wxPyEndAllowThreads(__tstate); | |
10024 | if (PyErr_Occurred()) return NULL; | |
10025 | } Py_INCREF(Py_None); | |
10026 | _resultobj = Py_None; | |
10027 | return _resultobj; | |
10028 | } | |
10029 | ||
10030 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
10031 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10032 | PyObject * _resultobj; | |
10033 | wxFileHistory * _arg0; | |
10034 | PyObject * _argo0 = 0; | |
10035 | char *_kwnames[] = { "self", NULL }; | |
10036 | ||
10037 | self = self; | |
10038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
10039 | return NULL; | |
10040 | if (_argo0) { | |
10041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
10044 | return NULL; | |
10045 | } | |
10046 | } | |
10047 | { | |
10048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10049 | wxFileHistory_AddFilesToMenu(_arg0); | |
10050 | ||
10051 | wxPyEndAllowThreads(__tstate); | |
10052 | if (PyErr_Occurred()) return NULL; | |
10053 | } Py_INCREF(Py_None); | |
10054 | _resultobj = Py_None; | |
10055 | return _resultobj; | |
10056 | } | |
10057 | ||
10058 | #define wxFileHistory_AddFilesToSingleMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) | |
10059 | static PyObject *_wrap_wxFileHistory_AddFilesToSingleMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10060 | PyObject * _resultobj; | |
10061 | wxFileHistory * _arg0; | |
10062 | wxMenu * _arg1; | |
10063 | PyObject * _argo0 = 0; | |
10064 | PyObject * _argo1 = 0; | |
10065 | char *_kwnames[] = { "self","menu", NULL }; | |
10066 | ||
10067 | self = self; | |
10068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToSingleMenu",_kwnames,&_argo0,&_argo1)) | |
10069 | return NULL; | |
10070 | if (_argo0) { | |
10071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToSingleMenu. Expected _wxFileHistory_p."); | |
10074 | return NULL; | |
10075 | } | |
10076 | } | |
10077 | if (_argo1) { | |
10078 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10079 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToSingleMenu. Expected _wxMenu_p."); | |
10081 | return NULL; | |
10082 | } | |
10083 | } | |
10084 | { | |
10085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10086 | wxFileHistory_AddFilesToSingleMenu(_arg0,_arg1); | |
10087 | ||
10088 | wxPyEndAllowThreads(__tstate); | |
10089 | if (PyErr_Occurred()) return NULL; | |
10090 | } Py_INCREF(Py_None); | |
10091 | _resultobj = Py_None; | |
10092 | return _resultobj; | |
10093 | } | |
10094 | ||
10095 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
10096 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10097 | PyObject * _resultobj; | |
10098 | wxString * _result; | |
10099 | wxFileHistory * _arg0; | |
10100 | int _arg1; | |
10101 | PyObject * _argo0 = 0; | |
10102 | char *_kwnames[] = { "self","i", NULL }; | |
10103 | ||
10104 | self = self; | |
10105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
10106 | return NULL; | |
10107 | if (_argo0) { | |
10108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
10111 | return NULL; | |
10112 | } | |
10113 | } | |
10114 | { | |
10115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10116 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); | |
10117 | ||
10118 | wxPyEndAllowThreads(__tstate); | |
10119 | if (PyErr_Occurred()) return NULL; | |
10120 | }{ | |
10121 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10122 | } | |
10123 | { | |
10124 | delete _result; | |
10125 | } | |
10126 | return _resultobj; | |
10127 | } | |
10128 | ||
10129 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
10130 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10131 | PyObject * _resultobj; | |
10132 | int _result; | |
10133 | wxFileHistory * _arg0; | |
10134 | PyObject * _argo0 = 0; | |
10135 | char *_kwnames[] = { "self", NULL }; | |
10136 | ||
10137 | self = self; | |
10138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
10139 | return NULL; | |
10140 | if (_argo0) { | |
10141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
10144 | return NULL; | |
10145 | } | |
10146 | } | |
10147 | { | |
10148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10149 | _result = (int )wxFileHistory_GetCount(_arg0); | |
10150 | ||
10151 | wxPyEndAllowThreads(__tstate); | |
10152 | if (PyErr_Occurred()) return NULL; | |
10153 | } _resultobj = Py_BuildValue("i",_result); | |
10154 | return _resultobj; | |
10155 | } | |
10156 | ||
10157 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
10158 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10159 | PyObject * _resultobj; | |
10160 | int _result; | |
10161 | wxFileHistory * _arg0; | |
10162 | PyObject * _argo0 = 0; | |
10163 | char *_kwnames[] = { "self", NULL }; | |
10164 | ||
10165 | self = self; | |
10166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
10167 | return NULL; | |
10168 | if (_argo0) { | |
10169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
10172 | return NULL; | |
10173 | } | |
10174 | } | |
10175 | { | |
10176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10177 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); | |
10178 | ||
10179 | wxPyEndAllowThreads(__tstate); | |
10180 | if (PyErr_Occurred()) return NULL; | |
10181 | } _resultobj = Py_BuildValue("i",_result); | |
10182 | return _resultobj; | |
10183 | } | |
10184 | ||
10185 | static PyMethodDef misc2cMethods[] = { | |
10186 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, | |
10187 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
10188 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
10189 | { "wxFileHistory_AddFilesToSingleMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToSingleMenu, METH_VARARGS | METH_KEYWORDS }, | |
10190 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
10191 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
10192 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
10193 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
10194 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
10195 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
10196 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
10197 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
10198 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
10199 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
10200 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
10201 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
10202 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
10203 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
10204 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
10205 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
10206 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
10207 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10208 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
10209 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
10210 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
10211 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
10212 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
10213 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
10214 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
10215 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
10216 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
10217 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
10218 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
10219 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
10220 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
10221 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
10222 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
10223 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10224 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
10225 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
10226 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10227 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
10228 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
10229 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
10230 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
10231 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
10232 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
10233 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
10234 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
10235 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
10236 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10237 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
10238 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10239 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
10240 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
10241 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
10242 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
10243 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, | |
10244 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10245 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
10246 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
10247 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
10248 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
10249 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
10250 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
10251 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
10252 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
10253 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
10254 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
10255 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
10256 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
10257 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
10258 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
10259 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
10260 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
10261 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
10262 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
10263 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
10264 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
10265 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
10266 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
10267 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
10268 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
10269 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
10270 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
10271 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
10272 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
10273 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
10274 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
10275 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
10276 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
10277 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
10278 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10279 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
10280 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
10281 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
10282 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
10283 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
10284 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
10285 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
10286 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
10287 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
10288 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10289 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, | |
10290 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, | |
10291 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
10292 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
10293 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
10294 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
10295 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
10296 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
10297 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
10298 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
10299 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10300 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10301 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
10302 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
10303 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
10304 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
10305 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
10306 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
10307 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
10308 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
10309 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
10310 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10311 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, | |
10312 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
10313 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10314 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
10315 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
10316 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
10317 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
10318 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
10319 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
10320 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10321 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
10322 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
10323 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10324 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
10325 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
10326 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10327 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
10328 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
10329 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10330 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10331 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10332 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
10333 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
10334 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
10335 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10336 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10337 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10338 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
10339 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10340 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10341 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
10342 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10343 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10344 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
10345 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10346 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
10347 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
10348 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
10349 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10350 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
10351 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, | |
10352 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10353 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
10354 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
10355 | { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, | |
10356 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, | |
10357 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, | |
10358 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
10359 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
10360 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
10361 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
10362 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
10363 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10364 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10365 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
10366 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
10367 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
10368 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
10369 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
10370 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
10371 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
10372 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
10373 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10374 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
10375 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, | |
10376 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
10377 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
10378 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
10379 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
10380 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
10381 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
10382 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10383 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
10384 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
10385 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
10386 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
10387 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
10388 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
10389 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
10390 | { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
10391 | { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
10392 | { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
10393 | { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
10394 | { "wxFontEnumerator__setCallbackInfo", (PyCFunction) _wrap_wxFontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10395 | { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
10396 | { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
10397 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
10398 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
10399 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10400 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10401 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, | |
10402 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10403 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10404 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10405 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10406 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10407 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10408 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10409 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10410 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10411 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10412 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
10413 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10414 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10415 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10416 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
10417 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10418 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
10419 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
10420 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10421 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
10422 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, | |
10423 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, | |
10424 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, | |
10425 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
10426 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
10427 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10428 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
10429 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
10430 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
10431 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
10432 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
10433 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
10434 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
10435 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
10436 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
10437 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
10438 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
10439 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
10440 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
10441 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
10442 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, | |
10443 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, | |
10444 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
10445 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
10446 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, | |
10447 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
10448 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
10449 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10450 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10451 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
10452 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
10454 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10455 | { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS }, | |
10456 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, | |
10457 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
10458 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
10459 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
10460 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
10461 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10462 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
10463 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, | |
10464 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
10465 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
10466 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10467 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10468 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10469 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10470 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
10471 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
10472 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
10473 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10474 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
10475 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
10476 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
10477 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10478 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10479 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
10480 | { NULL, NULL } | |
10481 | }; | |
10482 | #ifdef __cplusplus | |
10483 | } | |
10484 | #endif | |
10485 | /* | |
10486 | * This table is used by the pointer type-checker | |
10487 | */ | |
10488 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
10489 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, | |
10490 | { "_signed_long","_long",0}, | |
10491 | { "_wxPrintQuality","_wxCoord",0}, | |
10492 | { "_wxPrintQuality","_int",0}, | |
10493 | { "_wxPrintQuality","_signed_int",0}, | |
10494 | { "_wxPrintQuality","_unsigned_int",0}, | |
10495 | { "_wxPrintQuality","_wxWindowID",0}, | |
10496 | { "_wxPrintQuality","_uint",0}, | |
10497 | { "_wxPrintQuality","_EBool",0}, | |
10498 | { "_wxPrintQuality","_size_t",0}, | |
10499 | { "_wxPrintQuality","_time_t",0}, | |
10500 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, | |
10501 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
10502 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, | |
10503 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, | |
10504 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
10505 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, | |
10506 | { "_byte","_unsigned_char",0}, | |
10507 | { "_long","_unsigned_long",0}, | |
10508 | { "_long","_signed_long",0}, | |
10509 | { "_size_t","_wxCoord",0}, | |
10510 | { "_size_t","_wxPrintQuality",0}, | |
10511 | { "_size_t","_time_t",0}, | |
10512 | { "_size_t","_unsigned_int",0}, | |
10513 | { "_size_t","_int",0}, | |
10514 | { "_size_t","_wxWindowID",0}, | |
10515 | { "_size_t","_uint",0}, | |
10516 | { "_uint","_wxCoord",0}, | |
10517 | { "_uint","_wxPrintQuality",0}, | |
10518 | { "_uint","_time_t",0}, | |
10519 | { "_uint","_size_t",0}, | |
10520 | { "_uint","_unsigned_int",0}, | |
10521 | { "_uint","_int",0}, | |
10522 | { "_uint","_wxWindowID",0}, | |
10523 | { "_wxChar","_char",0}, | |
10524 | { "_char","_wxChar",0}, | |
10525 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
10526 | { "_EBool","_wxCoord",0}, | |
10527 | { "_EBool","_wxPrintQuality",0}, | |
10528 | { "_EBool","_signed_int",0}, | |
10529 | { "_EBool","_int",0}, | |
10530 | { "_EBool","_wxWindowID",0}, | |
10531 | { "_unsigned_long","_long",0}, | |
10532 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
10533 | { "_signed_int","_wxCoord",0}, | |
10534 | { "_signed_int","_wxPrintQuality",0}, | |
10535 | { "_signed_int","_EBool",0}, | |
10536 | { "_signed_int","_wxWindowID",0}, | |
10537 | { "_signed_int","_int",0}, | |
10538 | { "_WXTYPE","_wxDateTime_t",0}, | |
10539 | { "_WXTYPE","_short",0}, | |
10540 | { "_WXTYPE","_signed_short",0}, | |
10541 | { "_WXTYPE","_unsigned_short",0}, | |
10542 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
10543 | { "_unsigned_short","_wxDateTime_t",0}, | |
10544 | { "_unsigned_short","_WXTYPE",0}, | |
10545 | { "_unsigned_short","_short",0}, | |
10546 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, | |
10547 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, | |
10548 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, | |
10549 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, | |
10550 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, | |
10551 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, | |
10552 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, | |
10553 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, | |
10554 | { "_signed_short","_WXTYPE",0}, | |
10555 | { "_signed_short","_short",0}, | |
10556 | { "_unsigned_char","_byte",0}, | |
10557 | { "_unsigned_int","_wxCoord",0}, | |
10558 | { "_unsigned_int","_wxPrintQuality",0}, | |
10559 | { "_unsigned_int","_time_t",0}, | |
10560 | { "_unsigned_int","_size_t",0}, | |
10561 | { "_unsigned_int","_uint",0}, | |
10562 | { "_unsigned_int","_wxWindowID",0}, | |
10563 | { "_unsigned_int","_int",0}, | |
10564 | { "_short","_wxDateTime_t",0}, | |
10565 | { "_short","_WXTYPE",0}, | |
10566 | { "_short","_unsigned_short",0}, | |
10567 | { "_short","_signed_short",0}, | |
10568 | { "_wxWindowID","_wxCoord",0}, | |
10569 | { "_wxWindowID","_wxPrintQuality",0}, | |
10570 | { "_wxWindowID","_time_t",0}, | |
10571 | { "_wxWindowID","_size_t",0}, | |
10572 | { "_wxWindowID","_EBool",0}, | |
10573 | { "_wxWindowID","_uint",0}, | |
10574 | { "_wxWindowID","_int",0}, | |
10575 | { "_wxWindowID","_signed_int",0}, | |
10576 | { "_wxWindowID","_unsigned_int",0}, | |
10577 | { "_int","_wxCoord",0}, | |
10578 | { "_int","_wxPrintQuality",0}, | |
10579 | { "_int","_time_t",0}, | |
10580 | { "_int","_size_t",0}, | |
10581 | { "_int","_EBool",0}, | |
10582 | { "_int","_uint",0}, | |
10583 | { "_int","_wxWindowID",0}, | |
10584 | { "_int","_unsigned_int",0}, | |
10585 | { "_int","_signed_int",0}, | |
10586 | { "_wxDateTime_t","_unsigned_short",0}, | |
10587 | { "_wxDateTime_t","_short",0}, | |
10588 | { "_wxDateTime_t","_WXTYPE",0}, | |
10589 | { "_time_t","_wxCoord",0}, | |
10590 | { "_time_t","_wxPrintQuality",0}, | |
10591 | { "_time_t","_unsigned_int",0}, | |
10592 | { "_time_t","_int",0}, | |
10593 | { "_time_t","_wxWindowID",0}, | |
10594 | { "_time_t","_uint",0}, | |
10595 | { "_time_t","_size_t",0}, | |
10596 | { "_wxCoord","_int",0}, | |
10597 | { "_wxCoord","_signed_int",0}, | |
10598 | { "_wxCoord","_unsigned_int",0}, | |
10599 | { "_wxCoord","_wxWindowID",0}, | |
10600 | { "_wxCoord","_uint",0}, | |
10601 | { "_wxCoord","_EBool",0}, | |
10602 | { "_wxCoord","_size_t",0}, | |
10603 | { "_wxCoord","_time_t",0}, | |
10604 | { "_wxCoord","_wxPrintQuality",0}, | |
10605 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, | |
10606 | {0,0,0}}; | |
10607 | ||
10608 | static PyObject *SWIG_globals; | |
10609 | #ifdef __cplusplus | |
10610 | extern "C" | |
10611 | #endif | |
10612 | SWIGEXPORT(void) initmisc2c() { | |
10613 | PyObject *m, *d; | |
10614 | SWIG_globals = SWIG_newvarlink(); | |
10615 | m = Py_InitModule("misc2c", misc2cMethods); | |
10616 | d = PyModule_GetDict(m); | |
10617 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); | |
10618 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
10619 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
10620 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
10621 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
10622 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
10623 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
10624 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
10625 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
10626 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
10627 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); | |
10628 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); | |
10629 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
10630 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
10631 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
10632 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
10633 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
10634 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
10635 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
10636 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
10637 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
10638 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
10639 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
10640 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
10641 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
10642 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); | |
10643 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); | |
10644 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); | |
10645 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); | |
10646 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
10647 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
10648 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
10649 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); | |
10650 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
10651 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
10652 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); | |
10653 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
10654 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
10655 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
10656 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); | |
10657 | PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT)); | |
10658 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
10659 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
10660 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT)); | |
10661 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR)); | |
10662 | PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX)); | |
10663 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); | |
10664 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
10665 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
10666 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
10667 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
10668 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
10669 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
10670 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
10671 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
10672 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
10673 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
10674 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
10675 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
10676 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
10677 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
10678 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
10679 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
10680 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
10681 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
10682 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
10683 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
10684 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
10685 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
10686 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
10687 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
10688 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
10689 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
10690 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
10691 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
10692 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
10693 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
10694 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
10695 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
10696 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
10697 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
10698 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
10699 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
10700 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); | |
10701 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
10702 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); | |
10703 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
10704 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
10705 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
10706 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
10707 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
10708 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
10709 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
10710 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
10711 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
10712 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); | |
10713 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); | |
10714 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
10715 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
10716 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
10717 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
10718 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
10719 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
10720 | ||
10721 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
10722 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
10723 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
10724 | { | |
10725 | int i; | |
10726 | for (i = 0; _swig_mapping[i].n1; i++) | |
10727 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10728 | } | |
10729 | } |