]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/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 <wx/resource.h> | |
60 | #include <wx/tooltip.h> | |
61 | #include <wx/caret.h> | |
62 | #include <wx/fontenum.h> | |
63 | #include <wx/tipdlg.h> | |
64 | #include <wx/process.h> | |
65 | ||
66 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
67 | #include <wx/joystick.h> | |
68 | #endif | |
69 | ||
70 | #if wxUSE_WAVE || defined(__WXMSW__) | |
71 | #include <wx/wave.h> | |
72 | #endif | |
73 | ||
b6e5c445 RD |
74 | #include <wx/mimetype.h> |
75 | ||
e6056257 RD |
76 | |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
81 | if (!target) { | |
82 | target = o; | |
83 | } else if (target == Py_None) { | |
84 | Py_DECREF(Py_None); | |
85 | target = o; | |
86 | } else { | |
87 | if (!PyTuple_Check(target)) { | |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
92 | o3 = PyTuple_New(1); | |
93 | PyTuple_SetItem(o3, 0, o); | |
94 | ||
95 | o2 = target; | |
96 | target = PySequence_Concat(o2, o3); | |
97 | Py_DECREF(o2); | |
98 | Py_DECREF(o3); | |
99 | } | |
100 | return target; | |
101 | } | |
102 | ||
103 | #if PYTHON_API_VERSION >= 1009 | |
104 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
105 | #else | |
106 | static char* wxStringErrorMsg = "String type required"; | |
107 | #endif | |
108 | ||
109 | static wxString wxPyEmptyStr(""); | |
110 | ||
111 | ||
112 | wxColour wxSystemSettings_GetSystemColour(int index) { | |
113 | return wxSystemSettings::GetSystemColour(index); | |
114 | } | |
115 | ||
116 | wxFont wxSystemSettings_GetSystemFont(int index) { | |
117 | return wxSystemSettings::GetSystemFont(index); | |
118 | } | |
119 | ||
120 | int wxSystemSettings_GetSystemMetric(int index) { | |
121 | return wxSystemSettings::GetSystemMetric(index); | |
122 | } | |
123 | ||
124 | int wxCaret_GetBlinkTime() { | |
125 | return wxCaret::GetBlinkTime(); | |
126 | } | |
127 | ||
128 | void wxCaret_SetBlinkTime(int milliseconds) { | |
129 | wxCaret::SetBlinkTime(milliseconds); | |
130 | } | |
131 | ||
132 | class wxPyFontEnumerator : public wxFontEnumerator { | |
133 | public: | |
134 | wxPyFontEnumerator() {} | |
135 | ~wxPyFontEnumerator() {} | |
136 | ||
137 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
138 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
139 | ||
140 | PYPRIVATE; | |
141 | }; | |
142 | ||
143 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
144 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
145 | ||
146 | ||
147 | bool wxThread_IsMain() { | |
71737445 | 148 | #ifdef WXP_WITH_THREAD |
e6056257 | 149 | return wxThread::IsMain(); |
71737445 RD |
150 | #else |
151 | return TRUE; | |
152 | #endif | |
e6056257 RD |
153 | } |
154 | ||
155 | class wxPyTipProvider : public wxTipProvider { | |
156 | public: | |
157 | wxPyTipProvider(size_t currentTip) | |
158 | : wxTipProvider(currentTip) {} | |
159 | ||
160 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
161 | ||
162 | PYPRIVATE; | |
163 | }; | |
164 | ||
165 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
166 | ||
167 | ||
168 | #include <wx/generic/dragimgg.h> | |
169 | ||
170 | // A Log class that can be derived from in wxPython | |
171 | class wxPyLog : public wxLog { | |
172 | public: | |
173 | wxPyLog() : wxLog() {} | |
174 | ||
175 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
176 | bool found; | |
177 | wxPyTState* state = wxPyBeginBlockThreads(); | |
178 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) | |
179 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(isi)", level, szString, t)); | |
180 | wxPyEndBlockThreads(state); | |
181 | if (! found) | |
182 | wxLog::DoLog(level, szString, t); | |
183 | } | |
184 | ||
185 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
186 | bool found; | |
187 | wxPyTState* state = wxPyBeginBlockThreads(); | |
188 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) | |
189 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(si)", szString, t)); | |
190 | wxPyEndBlockThreads(state); | |
191 | if (! found) | |
192 | wxLog::DoLogString(szString, t); | |
193 | } | |
194 | ||
195 | PYPRIVATE; | |
196 | }; | |
197 | // C++ version of wxProcess derived class | |
198 | ||
199 | class wxPyProcess : public wxProcess { | |
200 | public: | |
201 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
202 | : wxProcess(parent, id) | |
203 | {} | |
204 | ||
205 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
206 | ||
207 | PYPRIVATE; | |
208 | }; | |
209 | ||
210 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
211 | ||
212 | ||
213 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) | |
214 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
215 | class wxJoystick : public wxObject { | |
216 | public: | |
217 | wxJoystick(int joystick = wxJOYSTICK1) { | |
218 | wxPyTState* state = wxPyBeginBlockThreads(); | |
219 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); | |
220 | wxPyEndBlockThreads(state); | |
221 | } | |
222 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
223 | int GetZPosition() { return -1; } | |
224 | int GetButtonState() { return -1; } | |
225 | int GetPOVPosition() { return -1; } | |
226 | int GetPOVCTSPosition() { return -1; } | |
227 | int GetRudderPosition() { return -1; } | |
228 | int GetUPosition() { return -1; } | |
229 | int GetVPosition() { return -1; } | |
230 | int GetMovementThreshold() { return -1; } | |
231 | void SetMovementThreshold(int threshold) {} | |
232 | ||
233 | bool IsOk(void) { return FALSE; } | |
234 | int GetNumberJoysticks() { return -1; } | |
235 | int GetManufacturerId() { return -1; } | |
236 | int GetProductId() { return -1; } | |
237 | wxString GetProductName() { return ""; } | |
238 | int GetXMin() { return -1; } | |
239 | int GetYMin() { return -1; } | |
240 | int GetZMin() { return -1; } | |
241 | int GetXMax() { return -1; } | |
242 | int GetYMax() { return -1; } | |
243 | int GetZMax() { return -1; } | |
244 | int GetNumberButtons() { return -1; } | |
245 | int GetNumberAxes() { return -1; } | |
246 | int GetMaxButtons() { return -1; } | |
247 | int GetMaxAxes() { return -1; } | |
248 | int GetPollingMin() { return -1; } | |
249 | int GetPollingMax() { return -1; } | |
250 | int GetRudderMin() { return -1; } | |
251 | int GetRudderMax() { return -1; } | |
252 | int GetUMin() { return -1; } | |
253 | int GetUMax() { return -1; } | |
254 | int GetVMin() { return -1; } | |
255 | int GetVMax() { return -1; } | |
256 | ||
257 | bool HasRudder() { return FALSE; } | |
258 | bool HasZ() { return FALSE; } | |
259 | bool HasU() { return FALSE; } | |
260 | bool HasV() { return FALSE; } | |
261 | bool HasPOV() { return FALSE; } | |
262 | bool HasPOV4Dir() { return FALSE; } | |
263 | bool HasPOVCTS() { return FALSE; } | |
264 | ||
265 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
266 | bool ReleaseCapture() { return FALSE; } | |
267 | }; | |
268 | #endif | |
269 | ||
270 | #if !wxUSE_WAVE | |
271 | // A C++ stub class for wxWave for platforms that don't have it. | |
272 | class wxWave : public wxObject | |
273 | { | |
274 | public: | |
275 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
276 | wxPyTState* state = wxPyBeginBlockThreads(); | |
277 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); | |
278 | wxPyEndBlockThreads(state); | |
279 | } | |
280 | wxWave(int size, const wxByte* data) { | |
281 | wxPyTState* state = wxPyBeginBlockThreads(); | |
282 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); | |
283 | wxPyEndBlockThreads(state); | |
284 | } | |
285 | ||
286 | ~wxWave() {} | |
287 | ||
288 | bool IsOk() const { return FALSE; } | |
289 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
290 | }; | |
291 | ||
292 | #endif | |
293 | // Implementations of some alternate "constructors" | |
294 | wxWave* wxWaveData(const wxString& data) { | |
295 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
296 | } | |
b6e5c445 RD |
297 | |
298 | #if 0 | |
299 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
300 | ||
301 | #endif | |
742fc581 RD |
302 | |
303 | #include <wx/docview.h> | |
e6056257 RD |
304 | #ifdef __cplusplus |
305 | extern "C" { | |
306 | #endif | |
307 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
308 | PyObject * _resultobj; | |
309 | wxString * _result; | |
310 | char * _arg0; | |
311 | char * _arg1 = (char *) NULL; | |
312 | char * _arg2 = (char *) NULL; | |
313 | char * _arg3 = (char *) NULL; | |
314 | char * _arg4 = (char *) "*.*"; | |
315 | int _arg5 = (int ) 0; | |
316 | wxWindow * _arg6 = (wxWindow *) NULL; | |
317 | int _arg7 = (int ) -1; | |
318 | int _arg8 = (int ) -1; | |
319 | PyObject * _argo6 = 0; | |
320 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
321 | ||
322 | self = self; | |
323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8)) | |
324 | return NULL; | |
325 | if (_argo6) { | |
326 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
327 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
329 | return NULL; | |
330 | } | |
331 | } | |
332 | { | |
333 | wxPy_BEGIN_ALLOW_THREADS; | |
334 | _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)); | |
335 | ||
336 | wxPy_END_ALLOW_THREADS; | |
337 | }{ | |
338 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
339 | } | |
340 | { | |
341 | delete _result; | |
342 | } | |
343 | return _resultobj; | |
344 | } | |
345 | ||
346 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
347 | PyObject * _resultobj; | |
348 | wxString * _result; | |
349 | wxString * _arg0; | |
350 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
351 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
352 | wxWindow * _arg3 = (wxWindow *) NULL; | |
353 | int _arg4 = (int ) -1; | |
354 | int _arg5 = (int ) -1; | |
355 | bool _arg6 = (bool ) TRUE; | |
356 | PyObject * _obj0 = 0; | |
357 | PyObject * _obj1 = 0; | |
358 | PyObject * _obj2 = 0; | |
359 | PyObject * _argo3 = 0; | |
360 | int tempbool6 = (int) TRUE; | |
361 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
362 | ||
363 | self = self; | |
364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
365 | return NULL; | |
366 | { | |
367 | #if PYTHON_API_VERSION >= 1009 | |
368 | char* tmpPtr; int tmpSize; | |
369 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
370 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
371 | return NULL; | |
372 | } | |
373 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
374 | return NULL; | |
375 | _arg0 = new wxString(tmpPtr, tmpSize); | |
376 | #else | |
377 | if (!PyString_Check(_obj0)) { | |
378 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
379 | return NULL; | |
380 | } | |
381 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
382 | #endif | |
383 | } | |
384 | if (_obj1) | |
385 | { | |
386 | #if PYTHON_API_VERSION >= 1009 | |
387 | char* tmpPtr; int tmpSize; | |
388 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
389 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
390 | return NULL; | |
391 | } | |
392 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
393 | return NULL; | |
394 | _arg1 = new wxString(tmpPtr, tmpSize); | |
395 | #else | |
396 | if (!PyString_Check(_obj1)) { | |
397 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
398 | return NULL; | |
399 | } | |
400 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
401 | #endif | |
402 | } | |
403 | if (_obj2) | |
404 | { | |
405 | #if PYTHON_API_VERSION >= 1009 | |
406 | char* tmpPtr; int tmpSize; | |
407 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
408 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
409 | return NULL; | |
410 | } | |
411 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
412 | return NULL; | |
413 | _arg2 = new wxString(tmpPtr, tmpSize); | |
414 | #else | |
415 | if (!PyString_Check(_obj2)) { | |
416 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
417 | return NULL; | |
418 | } | |
419 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
420 | #endif | |
421 | } | |
422 | if (_argo3) { | |
423 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
424 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
426 | return NULL; | |
427 | } | |
428 | } | |
429 | _arg6 = (bool ) tempbool6; | |
430 | { | |
431 | wxPy_BEGIN_ALLOW_THREADS; | |
432 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); | |
433 | ||
434 | wxPy_END_ALLOW_THREADS; | |
435 | }{ | |
436 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
437 | } | |
438 | { | |
439 | if (_obj0) | |
440 | delete _arg0; | |
441 | } | |
442 | { | |
443 | if (_obj1) | |
444 | delete _arg1; | |
445 | } | |
446 | { | |
447 | if (_obj2) | |
448 | delete _arg2; | |
449 | } | |
450 | { | |
451 | delete _result; | |
452 | } | |
453 | return _resultobj; | |
454 | } | |
455 | ||
456 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
457 | PyObject * _resultobj; | |
458 | wxString * _result; | |
459 | wxString * _arg0; | |
460 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
461 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
462 | wxWindow * _arg3 = (wxWindow *) NULL; | |
463 | PyObject * _obj0 = 0; | |
464 | PyObject * _obj1 = 0; | |
465 | PyObject * _obj2 = 0; | |
466 | PyObject * _argo3 = 0; | |
467 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
468 | ||
469 | self = self; | |
470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
471 | return NULL; | |
472 | { | |
473 | #if PYTHON_API_VERSION >= 1009 | |
474 | char* tmpPtr; int tmpSize; | |
475 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
476 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
477 | return NULL; | |
478 | } | |
479 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
480 | return NULL; | |
481 | _arg0 = new wxString(tmpPtr, tmpSize); | |
482 | #else | |
483 | if (!PyString_Check(_obj0)) { | |
484 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
485 | return NULL; | |
486 | } | |
487 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
488 | #endif | |
489 | } | |
490 | if (_obj1) | |
491 | { | |
492 | #if PYTHON_API_VERSION >= 1009 | |
493 | char* tmpPtr; int tmpSize; | |
494 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
495 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
496 | return NULL; | |
497 | } | |
498 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
499 | return NULL; | |
500 | _arg1 = new wxString(tmpPtr, tmpSize); | |
501 | #else | |
502 | if (!PyString_Check(_obj1)) { | |
503 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
504 | return NULL; | |
505 | } | |
506 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
507 | #endif | |
508 | } | |
509 | if (_obj2) | |
510 | { | |
511 | #if PYTHON_API_VERSION >= 1009 | |
512 | char* tmpPtr; int tmpSize; | |
513 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
514 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
515 | return NULL; | |
516 | } | |
517 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
518 | return NULL; | |
519 | _arg2 = new wxString(tmpPtr, tmpSize); | |
520 | #else | |
521 | if (!PyString_Check(_obj2)) { | |
522 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
523 | return NULL; | |
524 | } | |
525 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
526 | #endif | |
527 | } | |
528 | if (_argo3) { | |
529 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
530 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
532 | return NULL; | |
533 | } | |
534 | } | |
535 | { | |
536 | wxPy_BEGIN_ALLOW_THREADS; | |
537 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); | |
538 | ||
539 | wxPy_END_ALLOW_THREADS; | |
540 | }{ | |
541 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
542 | } | |
543 | { | |
544 | if (_obj0) | |
545 | delete _arg0; | |
546 | } | |
547 | { | |
548 | if (_obj1) | |
549 | delete _arg1; | |
550 | } | |
551 | { | |
552 | if (_obj2) | |
553 | delete _arg2; | |
554 | } | |
555 | { | |
556 | delete _result; | |
557 | } | |
558 | return _resultobj; | |
559 | } | |
560 | ||
561 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
562 | PyObject * _resultobj; | |
563 | wxString * _result; | |
564 | wxString * _arg0; | |
565 | wxString * _arg1; | |
566 | int _arg2; | |
567 | wxString * _arg3; | |
568 | wxWindow * _arg4 = (wxWindow *) NULL; | |
569 | int _arg5 = (int ) -1; | |
570 | int _arg6 = (int ) -1; | |
571 | bool _arg7 = (bool ) TRUE; | |
572 | int _arg8 = (int ) 150; | |
573 | int _arg9 = (int ) 200; | |
574 | PyObject * _obj0 = 0; | |
575 | PyObject * _obj1 = 0; | |
576 | PyObject * _obj3 = 0; | |
577 | PyObject * _argo4 = 0; | |
578 | int tempbool7 = (int) TRUE; | |
579 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; | |
580 | ||
581 | self = self; | |
582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
583 | return NULL; | |
584 | { | |
585 | #if PYTHON_API_VERSION >= 1009 | |
586 | char* tmpPtr; int tmpSize; | |
587 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
588 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
589 | return NULL; | |
590 | } | |
591 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
592 | return NULL; | |
593 | _arg0 = new wxString(tmpPtr, tmpSize); | |
594 | #else | |
595 | if (!PyString_Check(_obj0)) { | |
596 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
597 | return NULL; | |
598 | } | |
599 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
600 | #endif | |
601 | } | |
602 | { | |
603 | #if PYTHON_API_VERSION >= 1009 | |
604 | char* tmpPtr; int tmpSize; | |
605 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
606 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
607 | return NULL; | |
608 | } | |
609 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
610 | return NULL; | |
611 | _arg1 = new wxString(tmpPtr, tmpSize); | |
612 | #else | |
613 | if (!PyString_Check(_obj1)) { | |
614 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
615 | return NULL; | |
616 | } | |
617 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
618 | #endif | |
619 | } | |
620 | if (_obj3) | |
621 | { | |
622 | _arg3 = wxString_LIST_helper(_obj3); | |
623 | if (_arg3 == NULL) { | |
624 | return NULL; | |
625 | } | |
626 | } | |
627 | if (_argo4) { | |
628 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
629 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
631 | return NULL; | |
632 | } | |
633 | } | |
634 | _arg7 = (bool ) tempbool7; | |
635 | { | |
636 | if (_obj3) { | |
637 | _arg2 = PyList_Size(_obj3); | |
638 | } | |
639 | else { | |
640 | _arg2 = 0; | |
641 | } | |
642 | } | |
643 | { | |
644 | wxPy_BEGIN_ALLOW_THREADS; | |
645 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); | |
646 | ||
647 | wxPy_END_ALLOW_THREADS; | |
648 | }{ | |
649 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
650 | } | |
651 | { | |
652 | if (_obj0) | |
653 | delete _arg0; | |
654 | } | |
655 | { | |
656 | if (_obj1) | |
657 | delete _arg1; | |
658 | } | |
659 | { | |
660 | delete [] _arg3; | |
661 | } | |
662 | { | |
663 | delete _result; | |
664 | } | |
665 | return _resultobj; | |
666 | } | |
667 | ||
668 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
669 | PyObject * _resultobj; | |
670 | int _result; | |
671 | wxString * _arg0; | |
672 | wxString * _arg1; | |
673 | int _arg2; | |
674 | wxString * _arg3; | |
675 | wxWindow * _arg4 = (wxWindow *) NULL; | |
676 | int _arg5 = (int ) -1; | |
677 | int _arg6 = (int ) -1; | |
678 | bool _arg7 = (bool ) TRUE; | |
679 | int _arg8 = (int ) 150; | |
680 | int _arg9 = (int ) 200; | |
681 | PyObject * _obj0 = 0; | |
682 | PyObject * _obj1 = 0; | |
683 | PyObject * _obj3 = 0; | |
684 | PyObject * _argo4 = 0; | |
685 | int tempbool7 = (int) TRUE; | |
686 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; | |
687 | ||
688 | self = self; | |
689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
690 | return NULL; | |
691 | { | |
692 | #if PYTHON_API_VERSION >= 1009 | |
693 | char* tmpPtr; int tmpSize; | |
694 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
695 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
696 | return NULL; | |
697 | } | |
698 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
699 | return NULL; | |
700 | _arg0 = new wxString(tmpPtr, tmpSize); | |
701 | #else | |
702 | if (!PyString_Check(_obj0)) { | |
703 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
704 | return NULL; | |
705 | } | |
706 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
707 | #endif | |
708 | } | |
709 | { | |
710 | #if PYTHON_API_VERSION >= 1009 | |
711 | char* tmpPtr; int tmpSize; | |
712 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
713 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
714 | return NULL; | |
715 | } | |
716 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
717 | return NULL; | |
718 | _arg1 = new wxString(tmpPtr, tmpSize); | |
719 | #else | |
720 | if (!PyString_Check(_obj1)) { | |
721 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
722 | return NULL; | |
723 | } | |
724 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
725 | #endif | |
726 | } | |
727 | if (_obj3) | |
728 | { | |
729 | _arg3 = wxString_LIST_helper(_obj3); | |
730 | if (_arg3 == NULL) { | |
731 | return NULL; | |
732 | } | |
733 | } | |
734 | if (_argo4) { | |
735 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
736 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
738 | return NULL; | |
739 | } | |
740 | } | |
741 | _arg7 = (bool ) tempbool7; | |
742 | { | |
743 | if (_obj3) { | |
744 | _arg2 = PyList_Size(_obj3); | |
745 | } | |
746 | else { | |
747 | _arg2 = 0; | |
748 | } | |
749 | } | |
750 | { | |
751 | wxPy_BEGIN_ALLOW_THREADS; | |
752 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); | |
753 | ||
754 | wxPy_END_ALLOW_THREADS; | |
755 | } _resultobj = Py_BuildValue("i",_result); | |
756 | { | |
757 | if (_obj0) | |
758 | delete _arg0; | |
759 | } | |
760 | { | |
761 | if (_obj1) | |
762 | delete _arg1; | |
763 | } | |
764 | { | |
765 | delete [] _arg3; | |
766 | } | |
767 | return _resultobj; | |
768 | } | |
769 | ||
770 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
771 | PyObject * _resultobj; | |
772 | int _result; | |
773 | wxString * _arg0; | |
774 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
775 | int _arg2 = (int ) wxOK|wxCENTRE; | |
776 | wxWindow * _arg3 = (wxWindow *) NULL; | |
777 | int _arg4 = (int ) -1; | |
778 | int _arg5 = (int ) -1; | |
779 | PyObject * _obj0 = 0; | |
780 | PyObject * _obj1 = 0; | |
781 | PyObject * _argo3 = 0; | |
782 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
783 | ||
784 | self = self; | |
785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
786 | return NULL; | |
787 | { | |
788 | #if PYTHON_API_VERSION >= 1009 | |
789 | char* tmpPtr; int tmpSize; | |
790 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
791 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
792 | return NULL; | |
793 | } | |
794 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
795 | return NULL; | |
796 | _arg0 = new wxString(tmpPtr, tmpSize); | |
797 | #else | |
798 | if (!PyString_Check(_obj0)) { | |
799 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
800 | return NULL; | |
801 | } | |
802 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
803 | #endif | |
804 | } | |
805 | if (_obj1) | |
806 | { | |
807 | #if PYTHON_API_VERSION >= 1009 | |
808 | char* tmpPtr; int tmpSize; | |
809 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
810 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
811 | return NULL; | |
812 | } | |
813 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
814 | return NULL; | |
815 | _arg1 = new wxString(tmpPtr, tmpSize); | |
816 | #else | |
817 | if (!PyString_Check(_obj1)) { | |
818 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
819 | return NULL; | |
820 | } | |
821 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
822 | #endif | |
823 | } | |
824 | if (_argo3) { | |
825 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
826 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
828 | return NULL; | |
829 | } | |
830 | } | |
831 | { | |
832 | wxPy_BEGIN_ALLOW_THREADS; | |
833 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); | |
834 | ||
835 | wxPy_END_ALLOW_THREADS; | |
836 | } _resultobj = Py_BuildValue("i",_result); | |
837 | { | |
838 | if (_obj0) | |
839 | delete _arg0; | |
840 | } | |
841 | { | |
842 | if (_obj1) | |
843 | delete _arg1; | |
844 | } | |
845 | return _resultobj; | |
846 | } | |
847 | ||
848 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
849 | PyObject * _resultobj; | |
850 | long _result; | |
851 | wxString * _arg0; | |
852 | wxString * _arg1; | |
853 | wxString * _arg2; | |
854 | long _arg3; | |
855 | long _arg4 = (long ) 0; | |
856 | long _arg5 = (long ) 100; | |
857 | wxWindow * _arg6 = (wxWindow *) NULL; | |
858 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; | |
859 | PyObject * _obj0 = 0; | |
860 | PyObject * _obj1 = 0; | |
861 | PyObject * _obj2 = 0; | |
862 | PyObject * _argo6 = 0; | |
863 | wxPoint temp; | |
864 | PyObject * _obj7 = 0; | |
865 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
866 | ||
867 | self = self; | |
868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
869 | return NULL; | |
870 | { | |
871 | #if PYTHON_API_VERSION >= 1009 | |
872 | char* tmpPtr; int tmpSize; | |
873 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
874 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
875 | return NULL; | |
876 | } | |
877 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
878 | return NULL; | |
879 | _arg0 = new wxString(tmpPtr, tmpSize); | |
880 | #else | |
881 | if (!PyString_Check(_obj0)) { | |
882 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
883 | return NULL; | |
884 | } | |
885 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
886 | #endif | |
887 | } | |
888 | { | |
889 | #if PYTHON_API_VERSION >= 1009 | |
890 | char* tmpPtr; int tmpSize; | |
891 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
892 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
893 | return NULL; | |
894 | } | |
895 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
896 | return NULL; | |
897 | _arg1 = new wxString(tmpPtr, tmpSize); | |
898 | #else | |
899 | if (!PyString_Check(_obj1)) { | |
900 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
901 | return NULL; | |
902 | } | |
903 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
904 | #endif | |
905 | } | |
906 | { | |
907 | #if PYTHON_API_VERSION >= 1009 | |
908 | char* tmpPtr; int tmpSize; | |
909 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
910 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
911 | return NULL; | |
912 | } | |
913 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
914 | return NULL; | |
915 | _arg2 = new wxString(tmpPtr, tmpSize); | |
916 | #else | |
917 | if (!PyString_Check(_obj2)) { | |
918 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
919 | return NULL; | |
920 | } | |
921 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
922 | #endif | |
923 | } | |
924 | if (_argo6) { | |
925 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
926 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
928 | return NULL; | |
929 | } | |
930 | } | |
931 | if (_obj7) | |
932 | { | |
933 | _arg7 = &temp; | |
934 | if (! wxPoint_helper(_obj7, &_arg7)) | |
935 | return NULL; | |
936 | } | |
937 | { | |
938 | wxPy_BEGIN_ALLOW_THREADS; | |
939 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); | |
940 | ||
941 | wxPy_END_ALLOW_THREADS; | |
942 | } _resultobj = Py_BuildValue("l",_result); | |
943 | { | |
944 | if (_obj0) | |
945 | delete _arg0; | |
946 | } | |
947 | { | |
948 | if (_obj1) | |
949 | delete _arg1; | |
950 | } | |
951 | { | |
952 | if (_obj2) | |
953 | delete _arg2; | |
954 | } | |
955 | return _resultobj; | |
956 | } | |
957 | ||
958 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
959 | PyObject * _resultobj; | |
960 | bool _result; | |
961 | char *_kwnames[] = { NULL }; | |
962 | ||
963 | self = self; | |
964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
965 | return NULL; | |
966 | { | |
967 | wxPy_BEGIN_ALLOW_THREADS; | |
968 | _result = (bool )wxColourDisplay(); | |
969 | ||
970 | wxPy_END_ALLOW_THREADS; | |
971 | } _resultobj = Py_BuildValue("i",_result); | |
972 | return _resultobj; | |
973 | } | |
974 | ||
975 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
976 | PyObject * _resultobj; | |
977 | int _result; | |
978 | char *_kwnames[] = { NULL }; | |
979 | ||
980 | self = self; | |
981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
982 | return NULL; | |
983 | { | |
984 | wxPy_BEGIN_ALLOW_THREADS; | |
985 | _result = (int )wxDisplayDepth(); | |
986 | ||
987 | wxPy_END_ALLOW_THREADS; | |
988 | } _resultobj = Py_BuildValue("i",_result); | |
989 | return _resultobj; | |
990 | } | |
991 | ||
992 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
993 | PyObject * _resultobj; | |
994 | int _result; | |
995 | char *_kwnames[] = { NULL }; | |
996 | ||
997 | self = self; | |
998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
999 | return NULL; | |
1000 | { | |
1001 | wxPy_BEGIN_ALLOW_THREADS; | |
1002 | _result = (int )wxGetDisplayDepth(); | |
1003 | ||
1004 | wxPy_END_ALLOW_THREADS; | |
1005 | } _resultobj = Py_BuildValue("i",_result); | |
1006 | return _resultobj; | |
1007 | } | |
1008 | ||
1009 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1010 | PyObject * _resultobj; | |
1011 | int * _arg0; | |
1012 | int temp; | |
1013 | int * _arg1; | |
1014 | int temp0; | |
1015 | char *_kwnames[] = { NULL }; | |
1016 | ||
1017 | self = self; | |
1018 | { | |
1019 | _arg0 = &temp; | |
1020 | } | |
1021 | { | |
1022 | _arg1 = &temp0; | |
1023 | } | |
1024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1025 | return NULL; | |
1026 | { | |
1027 | wxPy_BEGIN_ALLOW_THREADS; | |
1028 | wxDisplaySize(_arg0,_arg1); | |
1029 | ||
1030 | wxPy_END_ALLOW_THREADS; | |
1031 | } Py_INCREF(Py_None); | |
1032 | _resultobj = Py_None; | |
1033 | { | |
1034 | PyObject *o; | |
1035 | o = PyInt_FromLong((long) (*_arg0)); | |
1036 | _resultobj = t_output_helper(_resultobj, o); | |
1037 | } | |
1038 | { | |
1039 | PyObject *o; | |
1040 | o = PyInt_FromLong((long) (*_arg1)); | |
1041 | _resultobj = t_output_helper(_resultobj, o); | |
1042 | } | |
1043 | return _resultobj; | |
1044 | } | |
1045 | ||
1046 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1047 | PyObject * _resultobj; | |
1048 | wxSize * _result; | |
1049 | char *_kwnames[] = { NULL }; | |
1050 | char _ptemp[128]; | |
1051 | ||
1052 | self = self; | |
1053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1054 | return NULL; | |
1055 | { | |
1056 | wxPy_BEGIN_ALLOW_THREADS; | |
1057 | _result = new wxSize (wxGetDisplaySize()); | |
1058 | ||
1059 | wxPy_END_ALLOW_THREADS; | |
1060 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
1061 | _resultobj = Py_BuildValue("s",_ptemp); | |
1062 | return _resultobj; | |
1063 | } | |
1064 | ||
1065 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1066 | PyObject * _resultobj; | |
1067 | int * _arg0; | |
1068 | int temp; | |
1069 | int * _arg1; | |
1070 | int temp0; | |
1071 | char *_kwnames[] = { NULL }; | |
1072 | ||
1073 | self = self; | |
1074 | { | |
1075 | _arg0 = &temp; | |
1076 | } | |
1077 | { | |
1078 | _arg1 = &temp0; | |
1079 | } | |
1080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1081 | return NULL; | |
1082 | { | |
1083 | wxPy_BEGIN_ALLOW_THREADS; | |
1084 | wxDisplaySizeMM(_arg0,_arg1); | |
1085 | ||
1086 | wxPy_END_ALLOW_THREADS; | |
1087 | } Py_INCREF(Py_None); | |
1088 | _resultobj = Py_None; | |
1089 | { | |
1090 | PyObject *o; | |
1091 | o = PyInt_FromLong((long) (*_arg0)); | |
1092 | _resultobj = t_output_helper(_resultobj, o); | |
1093 | } | |
1094 | { | |
1095 | PyObject *o; | |
1096 | o = PyInt_FromLong((long) (*_arg1)); | |
1097 | _resultobj = t_output_helper(_resultobj, o); | |
1098 | } | |
1099 | return _resultobj; | |
1100 | } | |
1101 | ||
1102 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1103 | PyObject * _resultobj; | |
1104 | wxSize * _result; | |
1105 | char *_kwnames[] = { NULL }; | |
1106 | char _ptemp[128]; | |
1107 | ||
1108 | self = self; | |
1109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1110 | return NULL; | |
1111 | { | |
1112 | wxPy_BEGIN_ALLOW_THREADS; | |
1113 | _result = new wxSize (wxGetDisplaySizeMM()); | |
1114 | ||
1115 | wxPy_END_ALLOW_THREADS; | |
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 | wxPy_BEGIN_ALLOW_THREADS; | |
1150 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); | |
1151 | ||
1152 | wxPy_END_ALLOW_THREADS; | |
1153 | } Py_INCREF(Py_None); | |
1154 | _resultobj = Py_None; | |
1155 | { | |
1156 | PyObject *o; | |
1157 | o = PyInt_FromLong((long) (*_arg0)); | |
1158 | _resultobj = t_output_helper(_resultobj, o); | |
1159 | } | |
1160 | { | |
1161 | PyObject *o; | |
1162 | o = PyInt_FromLong((long) (*_arg1)); | |
1163 | _resultobj = t_output_helper(_resultobj, o); | |
1164 | } | |
1165 | { | |
1166 | PyObject *o; | |
1167 | o = PyInt_FromLong((long) (*_arg2)); | |
1168 | _resultobj = t_output_helper(_resultobj, o); | |
1169 | } | |
1170 | { | |
1171 | PyObject *o; | |
1172 | o = PyInt_FromLong((long) (*_arg3)); | |
1173 | _resultobj = t_output_helper(_resultobj, o); | |
1174 | } | |
1175 | return _resultobj; | |
1176 | } | |
1177 | ||
1178 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1179 | PyObject * _resultobj; | |
1180 | wxRect * _result; | |
1181 | char *_kwnames[] = { NULL }; | |
1182 | char _ptemp[128]; | |
1183 | ||
1184 | self = self; | |
1185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1186 | return NULL; | |
1187 | { | |
1188 | wxPy_BEGIN_ALLOW_THREADS; | |
1189 | _result = new wxRect (wxGetClientDisplayRect()); | |
1190 | ||
1191 | wxPy_END_ALLOW_THREADS; | |
1192 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1193 | _resultobj = Py_BuildValue("s",_ptemp); | |
1194 | return _resultobj; | |
1195 | } | |
1196 | ||
1197 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1198 | PyObject * _resultobj; | |
1199 | wxCursor * _arg0; | |
1200 | PyObject * _argo0 = 0; | |
1201 | char *_kwnames[] = { "cursor", NULL }; | |
1202 | ||
1203 | self = self; | |
1204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1205 | return NULL; | |
1206 | if (_argo0) { | |
1207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1210 | return NULL; | |
1211 | } | |
1212 | } | |
1213 | { | |
1214 | wxPy_BEGIN_ALLOW_THREADS; | |
1215 | wxSetCursor(*_arg0); | |
1216 | ||
1217 | wxPy_END_ALLOW_THREADS; | |
1218 | } Py_INCREF(Py_None); | |
1219 | _resultobj = Py_None; | |
1220 | return _resultobj; | |
1221 | } | |
1222 | ||
1223 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1224 | PyObject * _resultobj; | |
1225 | wxWindow * _result; | |
1226 | wxString * _arg0; | |
1227 | wxWindow * _arg1 = (wxWindow *) NULL; | |
1228 | PyObject * _obj0 = 0; | |
1229 | PyObject * _argo1 = 0; | |
1230 | char *_kwnames[] = { "label","parent", NULL }; | |
1231 | ||
1232 | self = self; | |
1233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) | |
1234 | return NULL; | |
1235 | { | |
1236 | #if PYTHON_API_VERSION >= 1009 | |
1237 | char* tmpPtr; int tmpSize; | |
1238 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1239 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1240 | return NULL; | |
1241 | } | |
1242 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1243 | return NULL; | |
1244 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1245 | #else | |
1246 | if (!PyString_Check(_obj0)) { | |
1247 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1248 | return NULL; | |
1249 | } | |
1250 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
1251 | #endif | |
1252 | } | |
1253 | if (_argo1) { | |
1254 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1255 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); | |
1257 | return NULL; | |
1258 | } | |
1259 | } | |
1260 | { | |
1261 | wxPy_BEGIN_ALLOW_THREADS; | |
1262 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
1263 | ||
1264 | wxPy_END_ALLOW_THREADS; | |
1265 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1266 | { | |
1267 | if (_obj0) | |
1268 | delete _arg0; | |
1269 | } | |
1270 | return _resultobj; | |
1271 | } | |
1272 | ||
1273 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1274 | PyObject * _resultobj; | |
1275 | wxWindow * _result; | |
1276 | wxString * _arg0; | |
1277 | wxWindow * _arg1 = (wxWindow *) NULL; | |
1278 | PyObject * _obj0 = 0; | |
1279 | PyObject * _argo1 = 0; | |
1280 | char *_kwnames[] = { "name","parent", NULL }; | |
1281 | ||
1282 | self = self; | |
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) | |
1284 | return NULL; | |
1285 | { | |
1286 | #if PYTHON_API_VERSION >= 1009 | |
1287 | char* tmpPtr; int tmpSize; | |
1288 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1289 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1290 | return NULL; | |
1291 | } | |
1292 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1293 | return NULL; | |
1294 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1295 | #else | |
1296 | if (!PyString_Check(_obj0)) { | |
1297 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1298 | return NULL; | |
1299 | } | |
1300 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
1301 | #endif | |
1302 | } | |
1303 | if (_argo1) { | |
1304 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1305 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); | |
1307 | return NULL; | |
1308 | } | |
1309 | } | |
1310 | { | |
1311 | wxPy_BEGIN_ALLOW_THREADS; | |
1312 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
1313 | ||
1314 | wxPy_END_ALLOW_THREADS; | |
1315 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1316 | { | |
1317 | if (_obj0) | |
1318 | delete _arg0; | |
1319 | } | |
1320 | return _resultobj; | |
1321 | } | |
1322 | ||
1323 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1324 | PyObject * _resultobj; | |
1325 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1326 | PyObject * _argo0 = 0; | |
1327 | char *_kwnames[] = { "cursor", NULL }; | |
1328 | ||
1329 | self = self; | |
1330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1331 | return NULL; | |
1332 | if (_argo0) { | |
1333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1336 | return NULL; | |
1337 | } | |
1338 | } | |
1339 | { | |
1340 | wxPy_BEGIN_ALLOW_THREADS; | |
1341 | wxBeginBusyCursor(_arg0); | |
1342 | ||
1343 | wxPy_END_ALLOW_THREADS; | |
1344 | } Py_INCREF(Py_None); | |
1345 | _resultobj = Py_None; | |
1346 | return _resultobj; | |
1347 | } | |
1348 | ||
1349 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1350 | PyObject * _resultobj; | |
1351 | wxWindow * _result; | |
1352 | char *_kwnames[] = { NULL }; | |
1353 | ||
1354 | self = self; | |
1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1356 | return NULL; | |
1357 | { | |
1358 | wxPy_BEGIN_ALLOW_THREADS; | |
1359 | _result = (wxWindow *)wxGetActiveWindow(); | |
1360 | ||
1361 | wxPy_END_ALLOW_THREADS; | |
1362 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1363 | return _resultobj; | |
1364 | } | |
1365 | ||
1366 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1367 | PyObject * _resultobj; | |
1368 | wxWindow * _result; | |
1369 | wxPoint * _arg0; | |
1370 | wxPoint temp; | |
1371 | PyObject * _obj0 = 0; | |
1372 | char *_kwnames[] = { "pt", NULL }; | |
1373 | ||
1374 | self = self; | |
1375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1376 | return NULL; | |
1377 | { | |
1378 | _arg0 = &temp; | |
1379 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1380 | return NULL; | |
1381 | } | |
1382 | { | |
1383 | wxPy_BEGIN_ALLOW_THREADS; | |
1384 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); | |
1385 | ||
1386 | wxPy_END_ALLOW_THREADS; | |
1387 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1388 | return _resultobj; | |
1389 | } | |
1390 | ||
1391 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1392 | PyObject * _resultobj; | |
1393 | wxWindow * _result; | |
1394 | wxPoint * _arg0; | |
1395 | wxPoint temp; | |
1396 | PyObject * _obj0 = 0; | |
1397 | char *_kwnames[] = { "pt", NULL }; | |
1398 | ||
1399 | self = self; | |
1400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1401 | return NULL; | |
1402 | { | |
1403 | _arg0 = &temp; | |
1404 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1405 | return NULL; | |
1406 | } | |
1407 | { | |
1408 | wxPy_BEGIN_ALLOW_THREADS; | |
1409 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); | |
1410 | ||
1411 | wxPy_END_ALLOW_THREADS; | |
1412 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1413 | return _resultobj; | |
1414 | } | |
1415 | ||
1416 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1417 | PyObject * _resultobj; | |
1418 | bool _result; | |
1419 | char * _arg0; | |
1420 | int _arg1; | |
1421 | char *_kwnames[] = { "name","value", NULL }; | |
1422 | ||
1423 | self = self; | |
1424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1425 | return NULL; | |
1426 | { | |
1427 | wxPy_BEGIN_ALLOW_THREADS; | |
1428 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); | |
1429 | ||
1430 | wxPy_END_ALLOW_THREADS; | |
1431 | } _resultobj = Py_BuildValue("i",_result); | |
1432 | return _resultobj; | |
1433 | } | |
1434 | ||
1435 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1436 | PyObject * _resultobj; | |
1437 | char *_kwnames[] = { NULL }; | |
1438 | ||
1439 | self = self; | |
1440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1441 | return NULL; | |
1442 | { | |
1443 | wxPy_BEGIN_ALLOW_THREADS; | |
1444 | wxResourceClear(); | |
1445 | ||
1446 | wxPy_END_ALLOW_THREADS; | |
1447 | } Py_INCREF(Py_None); | |
1448 | _resultobj = Py_None; | |
1449 | return _resultobj; | |
1450 | } | |
1451 | ||
1452 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1453 | PyObject * _resultobj; | |
1454 | wxBitmap * _result; | |
1455 | char * _arg0; | |
1456 | char *_kwnames[] = { "resource", NULL }; | |
1457 | char _ptemp[128]; | |
1458 | ||
1459 | self = self; | |
1460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1461 | return NULL; | |
1462 | { | |
1463 | wxPy_BEGIN_ALLOW_THREADS; | |
1464 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); | |
1465 | ||
1466 | wxPy_END_ALLOW_THREADS; | |
1467 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
1468 | _resultobj = Py_BuildValue("s",_ptemp); | |
1469 | return _resultobj; | |
1470 | } | |
1471 | ||
1472 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1473 | PyObject * _resultobj; | |
1474 | wxIcon * _result; | |
1475 | char * _arg0; | |
1476 | char *_kwnames[] = { "resource", NULL }; | |
1477 | char _ptemp[128]; | |
1478 | ||
1479 | self = self; | |
1480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1481 | return NULL; | |
1482 | { | |
1483 | wxPy_BEGIN_ALLOW_THREADS; | |
1484 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); | |
1485 | ||
1486 | wxPy_END_ALLOW_THREADS; | |
1487 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
1488 | _resultobj = Py_BuildValue("s",_ptemp); | |
1489 | return _resultobj; | |
1490 | } | |
1491 | ||
1492 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1493 | PyObject * _resultobj; | |
1494 | wxMenuBar * _result; | |
1495 | char * _arg0; | |
1496 | char *_kwnames[] = { "resource", NULL }; | |
1497 | ||
1498 | self = self; | |
1499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1500 | return NULL; | |
1501 | { | |
1502 | wxPy_BEGIN_ALLOW_THREADS; | |
1503 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); | |
1504 | ||
1505 | wxPy_END_ALLOW_THREADS; | |
1506 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1507 | return _resultobj; | |
1508 | } | |
1509 | ||
1510 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1511 | PyObject * _resultobj; | |
1512 | int _result; | |
1513 | char * _arg0; | |
1514 | char *_kwnames[] = { "name", NULL }; | |
1515 | ||
1516 | self = self; | |
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1518 | return NULL; | |
1519 | { | |
1520 | wxPy_BEGIN_ALLOW_THREADS; | |
1521 | _result = (int )wxResourceGetIdentifier(_arg0); | |
1522 | ||
1523 | wxPy_END_ALLOW_THREADS; | |
1524 | } _resultobj = Py_BuildValue("i",_result); | |
1525 | return _resultobj; | |
1526 | } | |
1527 | ||
1528 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1529 | PyObject * _resultobj; | |
1530 | bool _result; | |
1531 | char * _arg0; | |
1532 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1533 | PyObject * _argo1 = 0; | |
1534 | char *_kwnames[] = { "resource","table", NULL }; | |
1535 | ||
1536 | self = self; | |
1537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1538 | return NULL; | |
1539 | if (_argo1) { | |
1540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1543 | return NULL; | |
1544 | } | |
1545 | } | |
1546 | { | |
1547 | wxPy_BEGIN_ALLOW_THREADS; | |
1548 | _result = (bool )wxResourceParseData(_arg0,_arg1); | |
1549 | ||
1550 | wxPy_END_ALLOW_THREADS; | |
1551 | } _resultobj = Py_BuildValue("i",_result); | |
1552 | return _resultobj; | |
1553 | } | |
1554 | ||
1555 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1556 | PyObject * _resultobj; | |
1557 | bool _result; | |
1558 | char * _arg0; | |
1559 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1560 | PyObject * _argo1 = 0; | |
1561 | char *_kwnames[] = { "filename","table", NULL }; | |
1562 | ||
1563 | self = self; | |
1564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1565 | return NULL; | |
1566 | if (_argo1) { | |
1567 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1568 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1570 | return NULL; | |
1571 | } | |
1572 | } | |
1573 | { | |
1574 | wxPy_BEGIN_ALLOW_THREADS; | |
1575 | _result = (bool )wxResourceParseFile(_arg0,_arg1); | |
1576 | ||
1577 | wxPy_END_ALLOW_THREADS; | |
1578 | } _resultobj = Py_BuildValue("i",_result); | |
1579 | return _resultobj; | |
1580 | } | |
1581 | ||
1582 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1583 | PyObject * _resultobj; | |
1584 | bool _result; | |
1585 | char * _arg0; | |
1586 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1587 | PyObject * _argo1 = 0; | |
1588 | char *_kwnames[] = { "resource","table", NULL }; | |
1589 | ||
1590 | self = self; | |
1591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1592 | return NULL; | |
1593 | if (_argo1) { | |
1594 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1595 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1597 | return NULL; | |
1598 | } | |
1599 | } | |
1600 | { | |
1601 | wxPy_BEGIN_ALLOW_THREADS; | |
1602 | _result = (bool )wxResourceParseString(_arg0,_arg1); | |
1603 | ||
1604 | wxPy_END_ALLOW_THREADS; | |
1605 | } _resultobj = Py_BuildValue("i",_result); | |
1606 | return _resultobj; | |
1607 | } | |
1608 | ||
1609 | static PyObject *_wrap_wxSystemSettings_GetSystemColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1610 | PyObject * _resultobj; | |
1611 | wxColour * _result; | |
1612 | int _arg0; | |
1613 | char *_kwnames[] = { "index", NULL }; | |
1614 | char _ptemp[128]; | |
1615 | ||
1616 | self = self; | |
1617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemColour",_kwnames,&_arg0)) | |
1618 | return NULL; | |
1619 | { | |
1620 | wxPy_BEGIN_ALLOW_THREADS; | |
1621 | _result = new wxColour (wxSystemSettings_GetSystemColour(_arg0)); | |
1622 | ||
1623 | wxPy_END_ALLOW_THREADS; | |
1624 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1625 | _resultobj = Py_BuildValue("s",_ptemp); | |
1626 | return _resultobj; | |
1627 | } | |
1628 | ||
1629 | static PyObject *_wrap_wxSystemSettings_GetSystemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1630 | PyObject * _resultobj; | |
1631 | wxFont * _result; | |
1632 | int _arg0; | |
1633 | char *_kwnames[] = { "index", NULL }; | |
1634 | char _ptemp[128]; | |
1635 | ||
1636 | self = self; | |
1637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemFont",_kwnames,&_arg0)) | |
1638 | return NULL; | |
1639 | { | |
1640 | wxPy_BEGIN_ALLOW_THREADS; | |
1641 | _result = new wxFont (wxSystemSettings_GetSystemFont(_arg0)); | |
1642 | ||
1643 | wxPy_END_ALLOW_THREADS; | |
1644 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1645 | _resultobj = Py_BuildValue("s",_ptemp); | |
1646 | return _resultobj; | |
1647 | } | |
1648 | ||
1649 | static PyObject *_wrap_wxSystemSettings_GetSystemMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1650 | PyObject * _resultobj; | |
1651 | int _result; | |
1652 | int _arg0; | |
1653 | char *_kwnames[] = { "index", NULL }; | |
1654 | ||
1655 | self = self; | |
1656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemMetric",_kwnames,&_arg0)) | |
1657 | return NULL; | |
1658 | { | |
1659 | wxPy_BEGIN_ALLOW_THREADS; | |
1660 | _result = (int )wxSystemSettings_GetSystemMetric(_arg0); | |
1661 | ||
1662 | wxPy_END_ALLOW_THREADS; | |
1663 | } _resultobj = Py_BuildValue("i",_result); | |
1664 | return _resultobj; | |
1665 | } | |
1666 | ||
1667 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1668 | PyObject * _resultobj; | |
1669 | int _result; | |
1670 | char *_kwnames[] = { NULL }; | |
1671 | ||
1672 | self = self; | |
1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1674 | return NULL; | |
1675 | { | |
1676 | wxPy_BEGIN_ALLOW_THREADS; | |
1677 | _result = (int )wxCaret_GetBlinkTime(); | |
1678 | ||
1679 | wxPy_END_ALLOW_THREADS; | |
1680 | } _resultobj = Py_BuildValue("i",_result); | |
1681 | return _resultobj; | |
1682 | } | |
1683 | ||
1684 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1685 | PyObject * _resultobj; | |
1686 | int _arg0; | |
1687 | char *_kwnames[] = { "milliseconds", NULL }; | |
1688 | ||
1689 | self = self; | |
1690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1691 | return NULL; | |
1692 | { | |
1693 | wxPy_BEGIN_ALLOW_THREADS; | |
1694 | wxCaret_SetBlinkTime(_arg0); | |
1695 | ||
1696 | wxPy_END_ALLOW_THREADS; | |
1697 | } Py_INCREF(Py_None); | |
1698 | _resultobj = Py_None; | |
1699 | return _resultobj; | |
1700 | } | |
1701 | ||
1702 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1703 | PyObject * _resultobj; | |
1704 | bool _result; | |
1705 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1706 | PyObject * _argo0 = 0; | |
1707 | char *_kwnames[] = { "win", NULL }; | |
1708 | ||
1709 | self = self; | |
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1711 | return NULL; | |
1712 | if (_argo0) { | |
1713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
1719 | { | |
1720 | wxPy_BEGIN_ALLOW_THREADS; | |
1721 | _result = (bool )wxSafeYield(_arg0); | |
1722 | ||
1723 | wxPy_END_ALLOW_THREADS; | |
1724 | } _resultobj = Py_BuildValue("i",_result); | |
1725 | return _resultobj; | |
1726 | } | |
1727 | ||
1728 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1729 | PyObject * _resultobj; | |
1730 | wxEvtHandler * _arg0; | |
1731 | wxEvent * _arg1; | |
1732 | PyObject * _argo0 = 0; | |
1733 | PyObject * _argo1 = 0; | |
1734 | char *_kwnames[] = { "dest","event", NULL }; | |
1735 | ||
1736 | self = self; | |
1737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1738 | return NULL; | |
1739 | if (_argo0) { | |
1740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1743 | return NULL; | |
1744 | } | |
1745 | } | |
1746 | if (_argo1) { | |
1747 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1748 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1750 | return NULL; | |
1751 | } | |
1752 | } | |
1753 | { | |
1754 | wxPy_BEGIN_ALLOW_THREADS; | |
1755 | wxPostEvent(_arg0,*_arg1); | |
1756 | ||
1757 | wxPy_END_ALLOW_THREADS; | |
1758 | } Py_INCREF(Py_None); | |
1759 | _resultobj = Py_None; | |
1760 | return _resultobj; | |
1761 | } | |
1762 | ||
1763 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1764 | PyObject * _resultobj; | |
1765 | char *_kwnames[] = { NULL }; | |
1766 | ||
1767 | self = self; | |
1768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1769 | return NULL; | |
1770 | { | |
1771 | wxPy_BEGIN_ALLOW_THREADS; | |
1772 | wxWakeUpIdle(); | |
1773 | ||
1774 | wxPy_END_ALLOW_THREADS; | |
1775 | } Py_INCREF(Py_None); | |
1776 | _resultobj = Py_None; | |
1777 | return _resultobj; | |
1778 | } | |
1779 | ||
1780 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1781 | PyObject * _resultobj; | |
1782 | char *_kwnames[] = { NULL }; | |
1783 | ||
1784 | self = self; | |
1785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
1786 | return NULL; | |
1787 | { | |
1788 | wxPy_BEGIN_ALLOW_THREADS; | |
1789 | wxMutexGuiEnter(); | |
1790 | ||
1791 | wxPy_END_ALLOW_THREADS; | |
1792 | } Py_INCREF(Py_None); | |
1793 | _resultobj = Py_None; | |
1794 | return _resultobj; | |
1795 | } | |
1796 | ||
1797 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1798 | PyObject * _resultobj; | |
1799 | char *_kwnames[] = { NULL }; | |
1800 | ||
1801 | self = self; | |
1802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1803 | return NULL; | |
1804 | { | |
1805 | wxPy_BEGIN_ALLOW_THREADS; | |
1806 | wxMutexGuiLeave(); | |
1807 | ||
1808 | wxPy_END_ALLOW_THREADS; | |
1809 | } Py_INCREF(Py_None); | |
1810 | _resultobj = Py_None; | |
1811 | return _resultobj; | |
1812 | } | |
1813 | ||
1814 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1815 | PyObject * _resultobj; | |
1816 | bool _result; | |
1817 | char *_kwnames[] = { NULL }; | |
1818 | ||
1819 | self = self; | |
1820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1821 | return NULL; | |
1822 | { | |
1823 | wxPy_BEGIN_ALLOW_THREADS; | |
1824 | _result = (bool )wxThread_IsMain(); | |
1825 | ||
1826 | wxPy_END_ALLOW_THREADS; | |
1827 | } _resultobj = Py_BuildValue("i",_result); | |
1828 | return _resultobj; | |
1829 | } | |
1830 | ||
1831 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1832 | PyObject * _resultobj; | |
1833 | bool _result; | |
1834 | wxWindow * _arg0; | |
1835 | wxTipProvider * _arg1; | |
1836 | bool _arg2 = (bool ) TRUE; | |
1837 | PyObject * _argo0 = 0; | |
1838 | PyObject * _argo1 = 0; | |
1839 | int tempbool2 = (int) TRUE; | |
1840 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1841 | ||
1842 | self = self; | |
1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1844 | return NULL; | |
1845 | if (_argo0) { | |
1846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1849 | return NULL; | |
1850 | } | |
1851 | } | |
1852 | if (_argo1) { | |
1853 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1854 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1856 | return NULL; | |
1857 | } | |
1858 | } | |
1859 | _arg2 = (bool ) tempbool2; | |
1860 | { | |
1861 | wxPy_BEGIN_ALLOW_THREADS; | |
1862 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); | |
1863 | ||
1864 | wxPy_END_ALLOW_THREADS; | |
1865 | } _resultobj = Py_BuildValue("i",_result); | |
1866 | return _resultobj; | |
1867 | } | |
1868 | ||
1869 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1870 | PyObject * _resultobj; | |
1871 | wxTipProvider * _result; | |
1872 | wxString * _arg0; | |
1873 | size_t _arg1; | |
1874 | PyObject * _obj0 = 0; | |
1875 | char *_kwnames[] = { "filename","currentTip", NULL }; | |
1876 | char _ptemp[128]; | |
1877 | ||
1878 | self = self; | |
1879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) | |
1880 | return NULL; | |
1881 | { | |
1882 | #if PYTHON_API_VERSION >= 1009 | |
1883 | char* tmpPtr; int tmpSize; | |
1884 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
1885 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1886 | return NULL; | |
1887 | } | |
1888 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1889 | return NULL; | |
1890 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1891 | #else | |
1892 | if (!PyString_Check(_obj0)) { | |
1893 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1894 | return NULL; | |
1895 | } | |
1896 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
1897 | #endif | |
1898 | } | |
1899 | { | |
1900 | wxPy_BEGIN_ALLOW_THREADS; | |
1901 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); | |
1902 | ||
1903 | wxPy_END_ALLOW_THREADS; | |
1904 | } if (_result) { | |
1905 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); | |
1906 | _resultobj = Py_BuildValue("s",_ptemp); | |
1907 | } else { | |
1908 | Py_INCREF(Py_None); | |
1909 | _resultobj = Py_None; | |
1910 | } | |
1911 | { | |
1912 | if (_obj0) | |
1913 | delete _arg0; | |
1914 | } | |
1915 | return _resultobj; | |
1916 | } | |
1917 | ||
1918 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1919 | PyObject * _resultobj; | |
1920 | unsigned long _result; | |
1921 | char *_kwnames[] = { NULL }; | |
1922 | ||
1923 | self = self; | |
1924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) | |
1925 | return NULL; | |
1926 | { | |
1927 | wxPy_BEGIN_ALLOW_THREADS; | |
1928 | _result = (unsigned long )wxSysErrorCode(); | |
1929 | ||
1930 | wxPy_END_ALLOW_THREADS; | |
1931 | } _resultobj = Py_BuildValue("l",_result); | |
1932 | return _resultobj; | |
1933 | } | |
1934 | ||
1935 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1936 | PyObject * _resultobj; | |
1937 | char * _result; | |
1938 | unsigned long _arg0 = (unsigned long ) 0; | |
1939 | char *_kwnames[] = { "nErrCode", NULL }; | |
1940 | ||
1941 | self = self; | |
1942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) | |
1943 | return NULL; | |
1944 | { | |
1945 | wxPy_BEGIN_ALLOW_THREADS; | |
1946 | _result = (char *)wxSysErrorMsg(_arg0); | |
1947 | ||
1948 | wxPy_END_ALLOW_THREADS; | |
1949 | } _resultobj = Py_BuildValue("s", _result); | |
1950 | return _resultobj; | |
1951 | } | |
1952 | ||
1953 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1954 | PyObject * _resultobj; | |
1955 | char * _arg0; | |
1956 | char *_kwnames[] = { "szFormat", NULL }; | |
1957 | ||
1958 | self = self; | |
1959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogFatalError",_kwnames,&_arg0)) | |
1960 | return NULL; | |
1961 | { | |
1962 | wxPy_BEGIN_ALLOW_THREADS; | |
1963 | wxLogFatalError(_arg0); | |
1964 | ||
1965 | wxPy_END_ALLOW_THREADS; | |
1966 | } Py_INCREF(Py_None); | |
1967 | _resultobj = Py_None; | |
1968 | return _resultobj; | |
1969 | } | |
1970 | ||
1971 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1972 | PyObject * _resultobj; | |
1973 | char * _arg0; | |
1974 | char *_kwnames[] = { "szFormat", NULL }; | |
1975 | ||
1976 | self = self; | |
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogError",_kwnames,&_arg0)) | |
1978 | return NULL; | |
1979 | { | |
1980 | wxPy_BEGIN_ALLOW_THREADS; | |
1981 | wxLogError(_arg0); | |
1982 | ||
1983 | wxPy_END_ALLOW_THREADS; | |
1984 | } Py_INCREF(Py_None); | |
1985 | _resultobj = Py_None; | |
1986 | return _resultobj; | |
1987 | } | |
1988 | ||
1989 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1990 | PyObject * _resultobj; | |
1991 | char * _arg0; | |
1992 | char *_kwnames[] = { "szFormat", NULL }; | |
1993 | ||
1994 | self = self; | |
1995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogWarning",_kwnames,&_arg0)) | |
1996 | return NULL; | |
1997 | { | |
1998 | wxPy_BEGIN_ALLOW_THREADS; | |
1999 | wxLogWarning(_arg0); | |
2000 | ||
2001 | wxPy_END_ALLOW_THREADS; | |
2002 | } Py_INCREF(Py_None); | |
2003 | _resultobj = Py_None; | |
2004 | return _resultobj; | |
2005 | } | |
2006 | ||
2007 | static PyObject *_wrap_wxLogMessage(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:wxLogMessage",_kwnames,&_arg0)) | |
2014 | return NULL; | |
2015 | { | |
2016 | wxPy_BEGIN_ALLOW_THREADS; | |
2017 | wxLogMessage(_arg0); | |
2018 | ||
2019 | wxPy_END_ALLOW_THREADS; | |
2020 | } Py_INCREF(Py_None); | |
2021 | _resultobj = Py_None; | |
2022 | return _resultobj; | |
2023 | } | |
2024 | ||
2025 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2026 | PyObject * _resultobj; | |
2027 | char * _arg0; | |
2028 | char *_kwnames[] = { "szFormat", NULL }; | |
2029 | ||
2030 | self = self; | |
2031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogInfo",_kwnames,&_arg0)) | |
2032 | return NULL; | |
2033 | { | |
2034 | wxPy_BEGIN_ALLOW_THREADS; | |
2035 | wxLogInfo(_arg0); | |
2036 | ||
2037 | wxPy_END_ALLOW_THREADS; | |
2038 | } Py_INCREF(Py_None); | |
2039 | _resultobj = Py_None; | |
2040 | return _resultobj; | |
2041 | } | |
2042 | ||
2043 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2044 | PyObject * _resultobj; | |
2045 | char * _arg0; | |
2046 | char *_kwnames[] = { "szFormat", NULL }; | |
2047 | ||
2048 | self = self; | |
2049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogVerbose",_kwnames,&_arg0)) | |
2050 | return NULL; | |
2051 | { | |
2052 | wxPy_BEGIN_ALLOW_THREADS; | |
2053 | wxLogVerbose(_arg0); | |
2054 | ||
2055 | wxPy_END_ALLOW_THREADS; | |
2056 | } Py_INCREF(Py_None); | |
2057 | _resultobj = Py_None; | |
2058 | return _resultobj; | |
2059 | } | |
2060 | ||
2061 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2062 | PyObject * _resultobj; | |
2063 | char * _arg0; | |
2064 | char *_kwnames[] = { "szFormat", NULL }; | |
2065 | ||
2066 | self = self; | |
2067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogStatus",_kwnames,&_arg0)) | |
2068 | return NULL; | |
2069 | { | |
2070 | wxPy_BEGIN_ALLOW_THREADS; | |
2071 | wxLogStatus(_arg0); | |
2072 | ||
2073 | wxPy_END_ALLOW_THREADS; | |
2074 | } Py_INCREF(Py_None); | |
2075 | _resultobj = Py_None; | |
2076 | return _resultobj; | |
2077 | } | |
2078 | ||
2079 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2080 | PyObject * _resultobj; | |
2081 | wxFrame * _arg0; | |
2082 | char * _arg1; | |
2083 | PyObject * _argo0 = 0; | |
2084 | char *_kwnames[] = { "pFrame","szFormat", NULL }; | |
2085 | ||
2086 | self = self; | |
2087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxLogStatusFrame",_kwnames,&_argo0,&_arg1)) | |
2088 | return NULL; | |
2089 | if (_argo0) { | |
2090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2093 | return NULL; | |
2094 | } | |
2095 | } | |
2096 | { | |
2097 | wxPy_BEGIN_ALLOW_THREADS; | |
2098 | wxLogStatus(_arg0,_arg1); | |
2099 | ||
2100 | wxPy_END_ALLOW_THREADS; | |
2101 | } Py_INCREF(Py_None); | |
2102 | _resultobj = Py_None; | |
2103 | return _resultobj; | |
2104 | } | |
2105 | ||
2106 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2107 | PyObject * _resultobj; | |
2108 | char * _arg0; | |
2109 | char *_kwnames[] = { "szFormat", NULL }; | |
2110 | ||
2111 | self = self; | |
2112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogSysError",_kwnames,&_arg0)) | |
2113 | return NULL; | |
2114 | { | |
2115 | wxPy_BEGIN_ALLOW_THREADS; | |
2116 | wxLogSysError(_arg0); | |
2117 | ||
2118 | wxPy_END_ALLOW_THREADS; | |
2119 | } Py_INCREF(Py_None); | |
2120 | _resultobj = Py_None; | |
2121 | return _resultobj; | |
2122 | } | |
2123 | ||
2124 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2125 | PyObject * _resultobj; | |
2126 | long _result; | |
2127 | wxString * _arg0; | |
2128 | int _arg1 = (int ) FALSE; | |
2129 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; | |
2130 | PyObject * _obj0 = 0; | |
2131 | PyObject * _argo2 = 0; | |
2132 | char *_kwnames[] = { "command","sync","process", NULL }; | |
2133 | ||
2134 | self = self; | |
2135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2136 | return NULL; | |
2137 | { | |
2138 | #if PYTHON_API_VERSION >= 1009 | |
2139 | char* tmpPtr; int tmpSize; | |
2140 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2141 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2142 | return NULL; | |
2143 | } | |
2144 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2145 | return NULL; | |
2146 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2147 | #else | |
2148 | if (!PyString_Check(_obj0)) { | |
2149 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2150 | return NULL; | |
2151 | } | |
2152 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2153 | #endif | |
2154 | } | |
2155 | if (_argo2) { | |
2156 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2157 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2159 | return NULL; | |
2160 | } | |
2161 | } | |
2162 | { | |
2163 | wxPy_BEGIN_ALLOW_THREADS; | |
2164 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); | |
2165 | ||
2166 | wxPy_END_ALLOW_THREADS; | |
2167 | } _resultobj = Py_BuildValue("l",_result); | |
2168 | { | |
2169 | if (_obj0) | |
2170 | delete _arg0; | |
2171 | } | |
2172 | return _resultobj; | |
2173 | } | |
2174 | ||
2175 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2176 | PyObject * _resultobj; | |
2177 | wxWave * _result; | |
2178 | wxString * _arg0; | |
2179 | PyObject * _obj0 = 0; | |
2180 | char *_kwnames[] = { "data", NULL }; | |
2181 | char _ptemp[128]; | |
2182 | ||
2183 | self = self; | |
2184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2185 | return NULL; | |
2186 | { | |
2187 | #if PYTHON_API_VERSION >= 1009 | |
2188 | char* tmpPtr; int tmpSize; | |
2189 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2190 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2191 | return NULL; | |
2192 | } | |
2193 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2194 | return NULL; | |
2195 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2196 | #else | |
2197 | if (!PyString_Check(_obj0)) { | |
2198 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2199 | return NULL; | |
2200 | } | |
2201 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2202 | #endif | |
2203 | } | |
2204 | { | |
2205 | wxPy_BEGIN_ALLOW_THREADS; | |
2206 | _result = (wxWave *)wxWaveData(*_arg0); | |
2207 | ||
2208 | wxPy_END_ALLOW_THREADS; | |
2209 | } if (_result) { | |
2210 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2211 | _resultobj = Py_BuildValue("s",_ptemp); | |
2212 | } else { | |
2213 | Py_INCREF(Py_None); | |
2214 | _resultobj = Py_None; | |
2215 | } | |
2216 | { | |
2217 | if (_obj0) | |
2218 | delete _arg0; | |
2219 | } | |
2220 | return _resultobj; | |
2221 | } | |
2222 | ||
b6e5c445 RD |
2223 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2224 | ||
2225 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2226 | return 1; | |
2227 | } | |
2228 | ||
2229 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2230 | PyObject * pyobj; | |
2231 | char ptemp[128]; | |
2232 | ||
2233 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2234 | pyobj = PyString_FromString(ptemp); | |
2235 | return pyobj; | |
2236 | } | |
2237 | ||
e6056257 RD |
2238 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2239 | wxToolTip *src; | |
2240 | wxObject *dest; | |
2241 | src = (wxToolTip *) ptr; | |
2242 | dest = (wxObject *) src; | |
2243 | return (void *) dest; | |
2244 | } | |
2245 | ||
2246 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) | |
2247 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2248 | PyObject * _resultobj; | |
2249 | wxToolTip * _result; | |
2250 | wxString * _arg0; | |
2251 | PyObject * _obj0 = 0; | |
2252 | char *_kwnames[] = { "tip", NULL }; | |
2253 | char _ptemp[128]; | |
2254 | ||
2255 | self = self; | |
2256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2257 | return NULL; | |
2258 | { | |
2259 | #if PYTHON_API_VERSION >= 1009 | |
2260 | char* tmpPtr; int tmpSize; | |
2261 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2262 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2263 | return NULL; | |
2264 | } | |
2265 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2266 | return NULL; | |
2267 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2268 | #else | |
2269 | if (!PyString_Check(_obj0)) { | |
2270 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2271 | return NULL; | |
2272 | } | |
2273 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2274 | #endif | |
2275 | } | |
2276 | { | |
2277 | wxPy_BEGIN_ALLOW_THREADS; | |
2278 | _result = (wxToolTip *)new_wxToolTip(*_arg0); | |
2279 | ||
2280 | wxPy_END_ALLOW_THREADS; | |
2281 | } if (_result) { | |
2282 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2283 | _resultobj = Py_BuildValue("s",_ptemp); | |
2284 | } else { | |
2285 | Py_INCREF(Py_None); | |
2286 | _resultobj = Py_None; | |
2287 | } | |
2288 | { | |
2289 | if (_obj0) | |
2290 | delete _arg0; | |
2291 | } | |
2292 | return _resultobj; | |
2293 | } | |
2294 | ||
2295 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2296 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2297 | PyObject * _resultobj; | |
2298 | wxToolTip * _arg0; | |
2299 | wxString * _arg1; | |
2300 | PyObject * _argo0 = 0; | |
2301 | PyObject * _obj1 = 0; | |
2302 | char *_kwnames[] = { "self","tip", NULL }; | |
2303 | ||
2304 | self = self; | |
2305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2306 | return NULL; | |
2307 | if (_argo0) { | |
2308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2311 | return NULL; | |
2312 | } | |
2313 | } | |
2314 | { | |
2315 | #if PYTHON_API_VERSION >= 1009 | |
2316 | char* tmpPtr; int tmpSize; | |
2317 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
2318 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2319 | return NULL; | |
2320 | } | |
2321 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2322 | return NULL; | |
2323 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2324 | #else | |
2325 | if (!PyString_Check(_obj1)) { | |
2326 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2327 | return NULL; | |
2328 | } | |
2329 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
2330 | #endif | |
2331 | } | |
2332 | { | |
2333 | wxPy_BEGIN_ALLOW_THREADS; | |
2334 | wxToolTip_SetTip(_arg0,*_arg1); | |
2335 | ||
2336 | wxPy_END_ALLOW_THREADS; | |
2337 | } Py_INCREF(Py_None); | |
2338 | _resultobj = Py_None; | |
2339 | { | |
2340 | if (_obj1) | |
2341 | delete _arg1; | |
2342 | } | |
2343 | return _resultobj; | |
2344 | } | |
2345 | ||
2346 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2347 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2348 | PyObject * _resultobj; | |
2349 | wxString * _result; | |
2350 | wxToolTip * _arg0; | |
2351 | PyObject * _argo0 = 0; | |
2352 | char *_kwnames[] = { "self", NULL }; | |
2353 | ||
2354 | self = self; | |
2355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2356 | return NULL; | |
2357 | if (_argo0) { | |
2358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2361 | return NULL; | |
2362 | } | |
2363 | } | |
2364 | { | |
2365 | wxPy_BEGIN_ALLOW_THREADS; | |
2366 | _result = new wxString (wxToolTip_GetTip(_arg0)); | |
2367 | ||
2368 | wxPy_END_ALLOW_THREADS; | |
2369 | }{ | |
2370 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2371 | } | |
2372 | { | |
2373 | delete _result; | |
2374 | } | |
2375 | return _resultobj; | |
2376 | } | |
2377 | ||
2378 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2379 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2380 | PyObject * _resultobj; | |
2381 | wxWindow * _result; | |
2382 | wxToolTip * _arg0; | |
2383 | PyObject * _argo0 = 0; | |
2384 | char *_kwnames[] = { "self", NULL }; | |
2385 | ||
2386 | self = self; | |
2387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2388 | return NULL; | |
2389 | if (_argo0) { | |
2390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2393 | return NULL; | |
2394 | } | |
2395 | } | |
2396 | { | |
2397 | wxPy_BEGIN_ALLOW_THREADS; | |
2398 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); | |
2399 | ||
2400 | wxPy_END_ALLOW_THREADS; | |
2401 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2402 | return _resultobj; | |
2403 | } | |
2404 | ||
2405 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2406 | PyObject * _resultobj; | |
2407 | bool _arg0; | |
2408 | int tempbool0; | |
2409 | char *_kwnames[] = { "flag", NULL }; | |
2410 | ||
2411 | self = self; | |
2412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2413 | return NULL; | |
2414 | _arg0 = (bool ) tempbool0; | |
2415 | { | |
2416 | wxPy_BEGIN_ALLOW_THREADS; | |
2417 | wxToolTip::Enable(_arg0); | |
2418 | ||
2419 | wxPy_END_ALLOW_THREADS; | |
2420 | } Py_INCREF(Py_None); | |
2421 | _resultobj = Py_None; | |
2422 | return _resultobj; | |
2423 | } | |
2424 | ||
2425 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2426 | PyObject * _resultobj; | |
2427 | long _arg0; | |
2428 | char *_kwnames[] = { "milliseconds", NULL }; | |
2429 | ||
2430 | self = self; | |
2431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2432 | return NULL; | |
2433 | { | |
2434 | wxPy_BEGIN_ALLOW_THREADS; | |
2435 | wxToolTip::SetDelay(_arg0); | |
2436 | ||
2437 | wxPy_END_ALLOW_THREADS; | |
2438 | } Py_INCREF(Py_None); | |
2439 | _resultobj = Py_None; | |
2440 | return _resultobj; | |
2441 | } | |
2442 | ||
2443 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) | |
2444 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2445 | PyObject * _resultobj; | |
2446 | wxCaret * _result; | |
2447 | wxWindow * _arg0; | |
2448 | wxSize * _arg1; | |
2449 | PyObject * _argo0 = 0; | |
2450 | wxSize temp; | |
2451 | PyObject * _obj1 = 0; | |
2452 | char *_kwnames[] = { "window","size", NULL }; | |
2453 | char _ptemp[128]; | |
2454 | ||
2455 | self = self; | |
2456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2457 | return NULL; | |
2458 | if (_argo0) { | |
2459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2462 | return NULL; | |
2463 | } | |
2464 | } | |
2465 | { | |
2466 | _arg1 = &temp; | |
2467 | if (! wxSize_helper(_obj1, &_arg1)) | |
2468 | return NULL; | |
2469 | } | |
2470 | { | |
2471 | wxPy_BEGIN_ALLOW_THREADS; | |
2472 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); | |
2473 | ||
2474 | wxPy_END_ALLOW_THREADS; | |
2475 | } if (_result) { | |
2476 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2477 | _resultobj = Py_BuildValue("s",_ptemp); | |
2478 | } else { | |
2479 | Py_INCREF(Py_None); | |
2480 | _resultobj = Py_None; | |
2481 | } | |
2482 | return _resultobj; | |
2483 | } | |
2484 | ||
2485 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2486 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2487 | PyObject * _resultobj; | |
2488 | wxCaret * _arg0; | |
2489 | PyObject * _argo0 = 0; | |
2490 | char *_kwnames[] = { "self", NULL }; | |
2491 | ||
2492 | self = self; | |
2493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2494 | return NULL; | |
2495 | if (_argo0) { | |
2496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2499 | return NULL; | |
2500 | } | |
2501 | } | |
2502 | { | |
2503 | wxPy_BEGIN_ALLOW_THREADS; | |
2504 | delete_wxCaret(_arg0); | |
2505 | ||
2506 | wxPy_END_ALLOW_THREADS; | |
2507 | } Py_INCREF(Py_None); | |
2508 | _resultobj = Py_None; | |
2509 | return _resultobj; | |
2510 | } | |
2511 | ||
2512 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2513 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2514 | PyObject * _resultobj; | |
2515 | bool _result; | |
2516 | wxCaret * _arg0; | |
2517 | PyObject * _argo0 = 0; | |
2518 | char *_kwnames[] = { "self", NULL }; | |
2519 | ||
2520 | self = self; | |
2521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2522 | return NULL; | |
2523 | if (_argo0) { | |
2524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2527 | return NULL; | |
2528 | } | |
2529 | } | |
2530 | { | |
2531 | wxPy_BEGIN_ALLOW_THREADS; | |
2532 | _result = (bool )wxCaret_IsOk(_arg0); | |
2533 | ||
2534 | wxPy_END_ALLOW_THREADS; | |
2535 | } _resultobj = Py_BuildValue("i",_result); | |
2536 | return _resultobj; | |
2537 | } | |
2538 | ||
2539 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2540 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2541 | PyObject * _resultobj; | |
2542 | bool _result; | |
2543 | wxCaret * _arg0; | |
2544 | PyObject * _argo0 = 0; | |
2545 | char *_kwnames[] = { "self", NULL }; | |
2546 | ||
2547 | self = self; | |
2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2549 | return NULL; | |
2550 | if (_argo0) { | |
2551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2554 | return NULL; | |
2555 | } | |
2556 | } | |
2557 | { | |
2558 | wxPy_BEGIN_ALLOW_THREADS; | |
2559 | _result = (bool )wxCaret_IsVisible(_arg0); | |
2560 | ||
2561 | wxPy_END_ALLOW_THREADS; | |
2562 | } _resultobj = Py_BuildValue("i",_result); | |
2563 | return _resultobj; | |
2564 | } | |
2565 | ||
2566 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2567 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2568 | PyObject * _resultobj; | |
2569 | wxCaret * _arg0; | |
2570 | int * _arg1; | |
2571 | int temp; | |
2572 | int * _arg2; | |
2573 | int temp0; | |
2574 | PyObject * _argo0 = 0; | |
2575 | char *_kwnames[] = { "self", NULL }; | |
2576 | ||
2577 | self = self; | |
2578 | { | |
2579 | _arg1 = &temp; | |
2580 | } | |
2581 | { | |
2582 | _arg2 = &temp0; | |
2583 | } | |
2584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2585 | return NULL; | |
2586 | if (_argo0) { | |
2587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2590 | return NULL; | |
2591 | } | |
2592 | } | |
2593 | { | |
2594 | wxPy_BEGIN_ALLOW_THREADS; | |
2595 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); | |
2596 | ||
2597 | wxPy_END_ALLOW_THREADS; | |
2598 | } Py_INCREF(Py_None); | |
2599 | _resultobj = Py_None; | |
2600 | { | |
2601 | PyObject *o; | |
2602 | o = PyInt_FromLong((long) (*_arg1)); | |
2603 | _resultobj = t_output_helper(_resultobj, o); | |
2604 | } | |
2605 | { | |
2606 | PyObject *o; | |
2607 | o = PyInt_FromLong((long) (*_arg2)); | |
2608 | _resultobj = t_output_helper(_resultobj, o); | |
2609 | } | |
2610 | return _resultobj; | |
2611 | } | |
2612 | ||
2613 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
2614 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2615 | PyObject * _resultobj; | |
2616 | wxPoint * _result; | |
2617 | wxCaret * _arg0; | |
2618 | PyObject * _argo0 = 0; | |
2619 | char *_kwnames[] = { "self", NULL }; | |
2620 | char _ptemp[128]; | |
2621 | ||
2622 | self = self; | |
2623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2624 | return NULL; | |
2625 | if (_argo0) { | |
2626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2629 | return NULL; | |
2630 | } | |
2631 | } | |
2632 | { | |
2633 | wxPy_BEGIN_ALLOW_THREADS; | |
2634 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); | |
2635 | ||
2636 | wxPy_END_ALLOW_THREADS; | |
2637 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2638 | _resultobj = Py_BuildValue("s",_ptemp); | |
2639 | return _resultobj; | |
2640 | } | |
2641 | ||
2642 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2643 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2644 | PyObject * _resultobj; | |
2645 | wxCaret * _arg0; | |
2646 | int * _arg1; | |
2647 | int temp; | |
2648 | int * _arg2; | |
2649 | int temp0; | |
2650 | PyObject * _argo0 = 0; | |
2651 | char *_kwnames[] = { "self", NULL }; | |
2652 | ||
2653 | self = self; | |
2654 | { | |
2655 | _arg1 = &temp; | |
2656 | } | |
2657 | { | |
2658 | _arg2 = &temp0; | |
2659 | } | |
2660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2661 | return NULL; | |
2662 | if (_argo0) { | |
2663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2666 | return NULL; | |
2667 | } | |
2668 | } | |
2669 | { | |
2670 | wxPy_BEGIN_ALLOW_THREADS; | |
2671 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); | |
2672 | ||
2673 | wxPy_END_ALLOW_THREADS; | |
2674 | } Py_INCREF(Py_None); | |
2675 | _resultobj = Py_None; | |
2676 | { | |
2677 | PyObject *o; | |
2678 | o = PyInt_FromLong((long) (*_arg1)); | |
2679 | _resultobj = t_output_helper(_resultobj, o); | |
2680 | } | |
2681 | { | |
2682 | PyObject *o; | |
2683 | o = PyInt_FromLong((long) (*_arg2)); | |
2684 | _resultobj = t_output_helper(_resultobj, o); | |
2685 | } | |
2686 | return _resultobj; | |
2687 | } | |
2688 | ||
2689 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2690 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2691 | PyObject * _resultobj; | |
2692 | wxSize * _result; | |
2693 | wxCaret * _arg0; | |
2694 | PyObject * _argo0 = 0; | |
2695 | char *_kwnames[] = { "self", NULL }; | |
2696 | char _ptemp[128]; | |
2697 | ||
2698 | self = self; | |
2699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2700 | return NULL; | |
2701 | if (_argo0) { | |
2702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
2705 | return NULL; | |
2706 | } | |
2707 | } | |
2708 | { | |
2709 | wxPy_BEGIN_ALLOW_THREADS; | |
2710 | _result = new wxSize (wxCaret_GetSize(_arg0)); | |
2711 | ||
2712 | wxPy_END_ALLOW_THREADS; | |
2713 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2714 | _resultobj = Py_BuildValue("s",_ptemp); | |
2715 | return _resultobj; | |
2716 | } | |
2717 | ||
2718 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2719 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2720 | PyObject * _resultobj; | |
2721 | wxWindow * _result; | |
2722 | wxCaret * _arg0; | |
2723 | PyObject * _argo0 = 0; | |
2724 | char *_kwnames[] = { "self", NULL }; | |
2725 | ||
2726 | self = self; | |
2727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
2728 | return NULL; | |
2729 | if (_argo0) { | |
2730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
2733 | return NULL; | |
2734 | } | |
2735 | } | |
2736 | { | |
2737 | wxPy_BEGIN_ALLOW_THREADS; | |
2738 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); | |
2739 | ||
2740 | wxPy_END_ALLOW_THREADS; | |
2741 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
2742 | return _resultobj; | |
2743 | } | |
2744 | ||
2745 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2746 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2747 | PyObject * _resultobj; | |
2748 | wxCaret * _arg0; | |
2749 | int _arg1; | |
2750 | int _arg2; | |
2751 | PyObject * _argo0 = 0; | |
2752 | char *_kwnames[] = { "self","x","y", NULL }; | |
2753 | ||
2754 | self = self; | |
2755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2756 | return NULL; | |
2757 | if (_argo0) { | |
2758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
2761 | return NULL; | |
2762 | } | |
2763 | } | |
2764 | { | |
2765 | wxPy_BEGIN_ALLOW_THREADS; | |
2766 | wxCaret_MoveXY(_arg0,_arg1,_arg2); | |
2767 | ||
2768 | wxPy_END_ALLOW_THREADS; | |
2769 | } Py_INCREF(Py_None); | |
2770 | _resultobj = Py_None; | |
2771 | return _resultobj; | |
2772 | } | |
2773 | ||
2774 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2775 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2776 | PyObject * _resultobj; | |
2777 | wxCaret * _arg0; | |
2778 | wxPoint * _arg1; | |
2779 | PyObject * _argo0 = 0; | |
2780 | wxPoint temp; | |
2781 | PyObject * _obj1 = 0; | |
2782 | char *_kwnames[] = { "self","pt", NULL }; | |
2783 | ||
2784 | self = self; | |
2785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
2786 | return NULL; | |
2787 | if (_argo0) { | |
2788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
2791 | return NULL; | |
2792 | } | |
2793 | } | |
2794 | { | |
2795 | _arg1 = &temp; | |
2796 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2797 | return NULL; | |
2798 | } | |
2799 | { | |
2800 | wxPy_BEGIN_ALLOW_THREADS; | |
2801 | wxCaret_Move(_arg0,*_arg1); | |
2802 | ||
2803 | wxPy_END_ALLOW_THREADS; | |
2804 | } Py_INCREF(Py_None); | |
2805 | _resultobj = Py_None; | |
2806 | return _resultobj; | |
2807 | } | |
2808 | ||
2809 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
2810 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2811 | PyObject * _resultobj; | |
2812 | wxCaret * _arg0; | |
2813 | int _arg1; | |
2814 | int _arg2; | |
2815 | PyObject * _argo0 = 0; | |
2816 | char *_kwnames[] = { "self","width","height", NULL }; | |
2817 | ||
2818 | self = self; | |
2819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2820 | return NULL; | |
2821 | if (_argo0) { | |
2822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
2825 | return NULL; | |
2826 | } | |
2827 | } | |
2828 | { | |
2829 | wxPy_BEGIN_ALLOW_THREADS; | |
2830 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); | |
2831 | ||
2832 | wxPy_END_ALLOW_THREADS; | |
2833 | } Py_INCREF(Py_None); | |
2834 | _resultobj = Py_None; | |
2835 | return _resultobj; | |
2836 | } | |
2837 | ||
2838 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2839 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2840 | PyObject * _resultobj; | |
2841 | wxCaret * _arg0; | |
2842 | wxSize * _arg1; | |
2843 | PyObject * _argo0 = 0; | |
2844 | wxSize temp; | |
2845 | PyObject * _obj1 = 0; | |
2846 | char *_kwnames[] = { "self","size", NULL }; | |
2847 | ||
2848 | self = self; | |
2849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
2850 | return NULL; | |
2851 | if (_argo0) { | |
2852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
2855 | return NULL; | |
2856 | } | |
2857 | } | |
2858 | { | |
2859 | _arg1 = &temp; | |
2860 | if (! wxSize_helper(_obj1, &_arg1)) | |
2861 | return NULL; | |
2862 | } | |
2863 | { | |
2864 | wxPy_BEGIN_ALLOW_THREADS; | |
2865 | wxCaret_SetSize(_arg0,*_arg1); | |
2866 | ||
2867 | wxPy_END_ALLOW_THREADS; | |
2868 | } Py_INCREF(Py_None); | |
2869 | _resultobj = Py_None; | |
2870 | return _resultobj; | |
2871 | } | |
2872 | ||
2873 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
2874 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2875 | PyObject * _resultobj; | |
2876 | wxCaret * _arg0; | |
2877 | int _arg1 = (int ) TRUE; | |
2878 | PyObject * _argo0 = 0; | |
2879 | char *_kwnames[] = { "self","show", NULL }; | |
2880 | ||
2881 | self = self; | |
2882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
2883 | return NULL; | |
2884 | if (_argo0) { | |
2885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
2888 | return NULL; | |
2889 | } | |
2890 | } | |
2891 | { | |
2892 | wxPy_BEGIN_ALLOW_THREADS; | |
2893 | wxCaret_Show(_arg0,_arg1); | |
2894 | ||
2895 | wxPy_END_ALLOW_THREADS; | |
2896 | } Py_INCREF(Py_None); | |
2897 | _resultobj = Py_None; | |
2898 | return _resultobj; | |
2899 | } | |
2900 | ||
2901 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
2902 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2903 | PyObject * _resultobj; | |
2904 | wxCaret * _arg0; | |
2905 | PyObject * _argo0 = 0; | |
2906 | char *_kwnames[] = { "self", NULL }; | |
2907 | ||
2908 | self = self; | |
2909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
2910 | return NULL; | |
2911 | if (_argo0) { | |
2912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
2915 | return NULL; | |
2916 | } | |
2917 | } | |
2918 | { | |
2919 | wxPy_BEGIN_ALLOW_THREADS; | |
2920 | wxCaret_Hide(_arg0); | |
2921 | ||
2922 | wxPy_END_ALLOW_THREADS; | |
2923 | } Py_INCREF(Py_None); | |
2924 | _resultobj = Py_None; | |
2925 | return _resultobj; | |
2926 | } | |
2927 | ||
2928 | #define new_wxFontEnumerator() (new wxPyFontEnumerator()) | |
2929 | static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2930 | PyObject * _resultobj; | |
2931 | wxPyFontEnumerator * _result; | |
2932 | char *_kwnames[] = { NULL }; | |
2933 | char _ptemp[128]; | |
2934 | ||
2935 | self = self; | |
2936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames)) | |
2937 | return NULL; | |
2938 | { | |
2939 | wxPy_BEGIN_ALLOW_THREADS; | |
2940 | _result = (wxPyFontEnumerator *)new_wxFontEnumerator(); | |
2941 | ||
2942 | wxPy_END_ALLOW_THREADS; | |
2943 | } if (_result) { | |
2944 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p"); | |
2945 | _resultobj = Py_BuildValue("s",_ptemp); | |
2946 | } else { | |
2947 | Py_INCREF(Py_None); | |
2948 | _resultobj = Py_None; | |
2949 | } | |
2950 | return _resultobj; | |
2951 | } | |
2952 | ||
2953 | #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj) | |
2954 | static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2955 | PyObject * _resultobj; | |
2956 | wxPyFontEnumerator * _arg0; | |
2957 | PyObject * _argo0 = 0; | |
2958 | char *_kwnames[] = { "self", NULL }; | |
2959 | ||
2960 | self = self; | |
2961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0)) | |
2962 | return NULL; | |
2963 | if (_argo0) { | |
2964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p."); | |
2967 | return NULL; | |
2968 | } | |
2969 | } | |
2970 | { | |
2971 | wxPy_BEGIN_ALLOW_THREADS; | |
2972 | delete_wxPyFontEnumerator(_arg0); | |
2973 | ||
2974 | wxPy_END_ALLOW_THREADS; | |
2975 | } Py_INCREF(Py_None); | |
2976 | _resultobj = Py_None; | |
2977 | return _resultobj; | |
2978 | } | |
2979 | ||
2980 | #define wxFontEnumerator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
2981 | static PyObject *_wrap_wxFontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2982 | PyObject * _resultobj; | |
2983 | wxPyFontEnumerator * _arg0; | |
2984 | PyObject * _arg1; | |
2985 | PyObject * _arg2; | |
2986 | PyObject * _argo0 = 0; | |
2987 | PyObject * _obj1 = 0; | |
2988 | PyObject * _obj2 = 0; | |
2989 | char *_kwnames[] = { "self","self","_class", NULL }; | |
2990 | ||
2991 | self = self; | |
2992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFontEnumerator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
2993 | return NULL; | |
2994 | if (_argo0) { | |
2995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
2997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setCallbackInfo. Expected _wxPyFontEnumerator_p."); | |
2998 | return NULL; | |
2999 | } | |
3000 | } | |
3001 | { | |
3002 | _arg1 = _obj1; | |
3003 | } | |
3004 | { | |
3005 | _arg2 = _obj2; | |
3006 | } | |
3007 | { | |
3008 | wxPy_BEGIN_ALLOW_THREADS; | |
3009 | wxFontEnumerator__setCallbackInfo(_arg0,_arg1,_arg2); | |
3010 | ||
3011 | wxPy_END_ALLOW_THREADS; | |
3012 | } Py_INCREF(Py_None); | |
3013 | _resultobj = Py_None; | |
3014 | return _resultobj; | |
3015 | } | |
3016 | ||
3017 | #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1)) | |
3018 | static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3019 | PyObject * _resultobj; | |
3020 | bool _result; | |
3021 | wxPyFontEnumerator * _arg0; | |
3022 | wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM; | |
3023 | bool _arg2 = (bool ) FALSE; | |
3024 | PyObject * _argo0 = 0; | |
3025 | int tempbool2 = (int) FALSE; | |
3026 | char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL }; | |
3027 | ||
3028 | self = self; | |
3029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3030 | return NULL; | |
3031 | if (_argo0) { | |
3032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p."); | |
3035 | return NULL; | |
3036 | } | |
3037 | } | |
3038 | _arg2 = (bool ) tempbool2; | |
3039 | { | |
3040 | wxPy_BEGIN_ALLOW_THREADS; | |
3041 | _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2); | |
3042 | ||
3043 | wxPy_END_ALLOW_THREADS; | |
3044 | } _resultobj = Py_BuildValue("i",_result); | |
3045 | return _resultobj; | |
3046 | } | |
3047 | ||
3048 | #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0)) | |
3049 | static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3050 | PyObject * _resultobj; | |
3051 | bool _result; | |
3052 | wxPyFontEnumerator * _arg0; | |
3053 | char * _arg1 = (char *) ""; | |
3054 | PyObject * _argo0 = 0; | |
3055 | char *_kwnames[] = { "self","facename", NULL }; | |
3056 | ||
3057 | self = self; | |
3058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1)) | |
3059 | return NULL; | |
3060 | if (_argo0) { | |
3061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p."); | |
3064 | return NULL; | |
3065 | } | |
3066 | } | |
3067 | { | |
3068 | wxPy_BEGIN_ALLOW_THREADS; | |
3069 | _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1); | |
3070 | ||
3071 | wxPy_END_ALLOW_THREADS; | |
3072 | } _resultobj = Py_BuildValue("i",_result); | |
3073 | return _resultobj; | |
3074 | } | |
3075 | ||
3076 | static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) { | |
3077 | wxArrayString* arr = self->GetEncodings(); | |
b6e5c445 | 3078 | return wxArrayString2PyList_helper(arr); |
e6056257 RD |
3079 | } |
3080 | static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3081 | PyObject * _resultobj; | |
3082 | PyObject * _result; | |
3083 | wxPyFontEnumerator * _arg0; | |
3084 | PyObject * _argo0 = 0; | |
3085 | char *_kwnames[] = { "self", NULL }; | |
3086 | ||
3087 | self = self; | |
3088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0)) | |
3089 | return NULL; | |
3090 | if (_argo0) { | |
3091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p."); | |
3094 | return NULL; | |
3095 | } | |
3096 | } | |
3097 | { | |
3098 | wxPy_BEGIN_ALLOW_THREADS; | |
3099 | _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0); | |
3100 | ||
3101 | wxPy_END_ALLOW_THREADS; | |
3102 | }{ | |
3103 | _resultobj = _result; | |
3104 | } | |
3105 | return _resultobj; | |
3106 | } | |
3107 | ||
3108 | static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) { | |
3109 | wxArrayString* arr = self->GetFacenames(); | |
b6e5c445 | 3110 | return wxArrayString2PyList_helper(arr); |
e6056257 RD |
3111 | } |
3112 | static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3113 | PyObject * _resultobj; | |
3114 | PyObject * _result; | |
3115 | wxPyFontEnumerator * _arg0; | |
3116 | PyObject * _argo0 = 0; | |
3117 | char *_kwnames[] = { "self", NULL }; | |
3118 | ||
3119 | self = self; | |
3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0)) | |
3121 | return NULL; | |
3122 | if (_argo0) { | |
3123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p."); | |
3126 | return NULL; | |
3127 | } | |
3128 | } | |
3129 | { | |
3130 | wxPy_BEGIN_ALLOW_THREADS; | |
3131 | _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0); | |
3132 | ||
3133 | wxPy_END_ALLOW_THREADS; | |
3134 | }{ | |
3135 | _resultobj = _result; | |
3136 | } | |
3137 | return _resultobj; | |
3138 | } | |
3139 | ||
3140 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) | |
3141 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3142 | PyObject * _resultobj; | |
3143 | wxBusyCursor * _result; | |
3144 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3145 | PyObject * _argo0 = 0; | |
3146 | char *_kwnames[] = { "cursor", NULL }; | |
3147 | char _ptemp[128]; | |
3148 | ||
3149 | self = self; | |
3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3151 | return NULL; | |
3152 | if (_argo0) { | |
3153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3156 | return NULL; | |
3157 | } | |
3158 | } | |
3159 | { | |
3160 | wxPy_BEGIN_ALLOW_THREADS; | |
3161 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); | |
3162 | ||
3163 | wxPy_END_ALLOW_THREADS; | |
3164 | } if (_result) { | |
3165 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3166 | _resultobj = Py_BuildValue("s",_ptemp); | |
3167 | } else { | |
3168 | Py_INCREF(Py_None); | |
3169 | _resultobj = Py_None; | |
3170 | } | |
3171 | return _resultobj; | |
3172 | } | |
3173 | ||
3174 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3175 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3176 | PyObject * _resultobj; | |
3177 | wxBusyCursor * _arg0; | |
3178 | PyObject * _argo0 = 0; | |
3179 | char *_kwnames[] = { "self", NULL }; | |
3180 | ||
3181 | self = self; | |
3182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3183 | return NULL; | |
3184 | if (_argo0) { | |
3185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3188 | return NULL; | |
3189 | } | |
3190 | } | |
3191 | { | |
3192 | wxPy_BEGIN_ALLOW_THREADS; | |
3193 | delete_wxBusyCursor(_arg0); | |
3194 | ||
3195 | wxPy_END_ALLOW_THREADS; | |
3196 | } Py_INCREF(Py_None); | |
3197 | _resultobj = Py_None; | |
3198 | return _resultobj; | |
3199 | } | |
3200 | ||
3201 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) | |
3202 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3203 | PyObject * _resultobj; | |
3204 | wxWindowDisabler * _result; | |
3205 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3206 | PyObject * _argo0 = 0; | |
3207 | char *_kwnames[] = { "winToSkip", NULL }; | |
3208 | char _ptemp[128]; | |
3209 | ||
3210 | self = self; | |
3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3212 | return NULL; | |
3213 | if (_argo0) { | |
3214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3217 | return NULL; | |
3218 | } | |
3219 | } | |
3220 | { | |
3221 | wxPy_BEGIN_ALLOW_THREADS; | |
3222 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); | |
3223 | ||
3224 | wxPy_END_ALLOW_THREADS; | |
3225 | } if (_result) { | |
3226 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3227 | _resultobj = Py_BuildValue("s",_ptemp); | |
3228 | } else { | |
3229 | Py_INCREF(Py_None); | |
3230 | _resultobj = Py_None; | |
3231 | } | |
3232 | return _resultobj; | |
3233 | } | |
3234 | ||
3235 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3236 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3237 | PyObject * _resultobj; | |
3238 | wxWindowDisabler * _arg0; | |
3239 | PyObject * _argo0 = 0; | |
3240 | char *_kwnames[] = { "self", NULL }; | |
3241 | ||
3242 | self = self; | |
3243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3244 | return NULL; | |
3245 | if (_argo0) { | |
3246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3249 | return NULL; | |
3250 | } | |
3251 | } | |
3252 | { | |
3253 | wxPy_BEGIN_ALLOW_THREADS; | |
3254 | delete_wxWindowDisabler(_arg0); | |
3255 | ||
3256 | wxPy_END_ALLOW_THREADS; | |
3257 | } Py_INCREF(Py_None); | |
3258 | _resultobj = Py_None; | |
3259 | return _resultobj; | |
3260 | } | |
3261 | ||
3262 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) | |
3263 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3264 | PyObject * _resultobj; | |
3265 | wxMutexGuiLocker * _result; | |
3266 | char *_kwnames[] = { NULL }; | |
3267 | char _ptemp[128]; | |
3268 | ||
3269 | self = self; | |
3270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3271 | return NULL; | |
3272 | { | |
3273 | wxPy_BEGIN_ALLOW_THREADS; | |
3274 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); | |
3275 | ||
3276 | wxPy_END_ALLOW_THREADS; | |
3277 | } if (_result) { | |
3278 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3279 | _resultobj = Py_BuildValue("s",_ptemp); | |
3280 | } else { | |
3281 | Py_INCREF(Py_None); | |
3282 | _resultobj = Py_None; | |
3283 | } | |
3284 | return _resultobj; | |
3285 | } | |
3286 | ||
3287 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3288 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3289 | PyObject * _resultobj; | |
3290 | wxMutexGuiLocker * _arg0; | |
3291 | PyObject * _argo0 = 0; | |
3292 | char *_kwnames[] = { "self", NULL }; | |
3293 | ||
3294 | self = self; | |
3295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3296 | return NULL; | |
3297 | if (_argo0) { | |
3298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3301 | return NULL; | |
3302 | } | |
3303 | } | |
3304 | { | |
3305 | wxPy_BEGIN_ALLOW_THREADS; | |
3306 | delete_wxMutexGuiLocker(_arg0); | |
3307 | ||
3308 | wxPy_END_ALLOW_THREADS; | |
3309 | } Py_INCREF(Py_None); | |
3310 | _resultobj = Py_None; | |
3311 | return _resultobj; | |
3312 | } | |
3313 | ||
3314 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) | |
3315 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3316 | PyObject * _resultobj; | |
3317 | wxTipProvider * _arg0; | |
3318 | PyObject * _argo0 = 0; | |
3319 | char *_kwnames[] = { "self", NULL }; | |
3320 | ||
3321 | self = self; | |
3322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3323 | return NULL; | |
3324 | if (_argo0) { | |
3325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3328 | return NULL; | |
3329 | } | |
3330 | } | |
3331 | { | |
3332 | wxPy_BEGIN_ALLOW_THREADS; | |
3333 | delete_wxTipProvider(_arg0); | |
3334 | ||
3335 | wxPy_END_ALLOW_THREADS; | |
3336 | } Py_INCREF(Py_None); | |
3337 | _resultobj = Py_None; | |
3338 | return _resultobj; | |
3339 | } | |
3340 | ||
3341 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3342 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3343 | PyObject * _resultobj; | |
3344 | wxString * _result; | |
3345 | wxTipProvider * _arg0; | |
3346 | PyObject * _argo0 = 0; | |
3347 | char *_kwnames[] = { "self", NULL }; | |
3348 | ||
3349 | self = self; | |
3350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3351 | return NULL; | |
3352 | if (_argo0) { | |
3353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3356 | return NULL; | |
3357 | } | |
3358 | } | |
3359 | { | |
3360 | wxPy_BEGIN_ALLOW_THREADS; | |
3361 | _result = new wxString (wxTipProvider_GetTip(_arg0)); | |
3362 | ||
3363 | wxPy_END_ALLOW_THREADS; | |
3364 | }{ | |
3365 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3366 | } | |
3367 | { | |
3368 | delete _result; | |
3369 | } | |
3370 | return _resultobj; | |
3371 | } | |
3372 | ||
3373 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3374 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3375 | PyObject * _resultobj; | |
3376 | size_t _result; | |
3377 | wxTipProvider * _arg0; | |
3378 | PyObject * _argo0 = 0; | |
3379 | char *_kwnames[] = { "self", NULL }; | |
3380 | ||
3381 | self = self; | |
3382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3383 | return NULL; | |
3384 | if (_argo0) { | |
3385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3388 | return NULL; | |
3389 | } | |
3390 | } | |
3391 | { | |
3392 | wxPy_BEGIN_ALLOW_THREADS; | |
3393 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); | |
3394 | ||
3395 | wxPy_END_ALLOW_THREADS; | |
3396 | } _resultobj = Py_BuildValue("i",_result); | |
3397 | return _resultobj; | |
3398 | } | |
3399 | ||
3400 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3401 | wxPyTipProvider *src; | |
3402 | wxTipProvider *dest; | |
3403 | src = (wxPyTipProvider *) ptr; | |
3404 | dest = (wxTipProvider *) src; | |
3405 | return (void *) dest; | |
3406 | } | |
3407 | ||
3408 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3409 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3410 | PyObject * _resultobj; | |
3411 | wxPyTipProvider * _result; | |
3412 | size_t _arg0; | |
3413 | char *_kwnames[] = { "currentTip", NULL }; | |
3414 | char _ptemp[128]; | |
3415 | ||
3416 | self = self; | |
3417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3418 | return NULL; | |
3419 | { | |
3420 | wxPy_BEGIN_ALLOW_THREADS; | |
3421 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); | |
3422 | ||
3423 | wxPy_END_ALLOW_THREADS; | |
3424 | } if (_result) { | |
3425 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3426 | _resultobj = Py_BuildValue("s",_ptemp); | |
3427 | } else { | |
3428 | Py_INCREF(Py_None); | |
3429 | _resultobj = Py_None; | |
3430 | } | |
3431 | return _resultobj; | |
3432 | } | |
3433 | ||
3434 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { | |
3435 | wxGenericDragImage *src; | |
3436 | wxObject *dest; | |
3437 | src = (wxGenericDragImage *) ptr; | |
3438 | dest = (wxObject *) src; | |
3439 | return (void *) dest; | |
3440 | } | |
3441 | ||
3442 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3443 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3444 | PyObject * _resultobj; | |
3445 | wxGenericDragImage * _result; | |
3446 | wxBitmap * _arg0; | |
3447 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3448 | PyObject * _argo0 = 0; | |
3449 | PyObject * _argo1 = 0; | |
3450 | char *_kwnames[] = { "image","cursor", NULL }; | |
3451 | char _ptemp[128]; | |
3452 | ||
3453 | self = self; | |
3454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) | |
3455 | return NULL; | |
3456 | if (_argo0) { | |
3457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3460 | return NULL; | |
3461 | } | |
3462 | } | |
3463 | if (_argo1) { | |
3464 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3465 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3467 | return NULL; | |
3468 | } | |
3469 | } | |
3470 | { | |
3471 | wxPy_BEGIN_ALLOW_THREADS; | |
3472 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); | |
3473 | ||
3474 | wxPy_END_ALLOW_THREADS; | |
3475 | } if (_result) { | |
3476 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3477 | _resultobj = Py_BuildValue("s",_ptemp); | |
3478 | } else { | |
3479 | Py_INCREF(Py_None); | |
3480 | _resultobj = Py_None; | |
3481 | } | |
3482 | return _resultobj; | |
3483 | } | |
3484 | ||
3485 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3486 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3487 | PyObject * _resultobj; | |
3488 | wxGenericDragImage * _result; | |
3489 | wxIcon * _arg0; | |
3490 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3491 | PyObject * _argo0 = 0; | |
3492 | PyObject * _argo1 = 0; | |
3493 | char *_kwnames[] = { "image","cursor", NULL }; | |
3494 | char _ptemp[128]; | |
3495 | ||
3496 | self = self; | |
3497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3498 | return NULL; | |
3499 | if (_argo0) { | |
3500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3503 | return NULL; | |
3504 | } | |
3505 | } | |
3506 | if (_argo1) { | |
3507 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3508 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3510 | return NULL; | |
3511 | } | |
3512 | } | |
3513 | { | |
3514 | wxPy_BEGIN_ALLOW_THREADS; | |
3515 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); | |
3516 | ||
3517 | wxPy_END_ALLOW_THREADS; | |
3518 | } if (_result) { | |
3519 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3520 | _resultobj = Py_BuildValue("s",_ptemp); | |
3521 | } else { | |
3522 | Py_INCREF(Py_None); | |
3523 | _resultobj = Py_None; | |
3524 | } | |
3525 | return _resultobj; | |
3526 | } | |
3527 | ||
3528 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3529 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3530 | PyObject * _resultobj; | |
3531 | wxGenericDragImage * _result; | |
3532 | wxString * _arg0; | |
3533 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3534 | PyObject * _obj0 = 0; | |
3535 | PyObject * _argo1 = 0; | |
3536 | char *_kwnames[] = { "str","cursor", NULL }; | |
3537 | char _ptemp[128]; | |
3538 | ||
3539 | self = self; | |
3540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3541 | return NULL; | |
3542 | { | |
3543 | #if PYTHON_API_VERSION >= 1009 | |
3544 | char* tmpPtr; int tmpSize; | |
3545 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
3546 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3547 | return NULL; | |
3548 | } | |
3549 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
3550 | return NULL; | |
3551 | _arg0 = new wxString(tmpPtr, tmpSize); | |
3552 | #else | |
3553 | if (!PyString_Check(_obj0)) { | |
3554 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3555 | return NULL; | |
3556 | } | |
3557 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
3558 | #endif | |
3559 | } | |
3560 | if (_argo1) { | |
3561 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3562 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3564 | return NULL; | |
3565 | } | |
3566 | } | |
3567 | { | |
3568 | wxPy_BEGIN_ALLOW_THREADS; | |
3569 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); | |
3570 | ||
3571 | wxPy_END_ALLOW_THREADS; | |
3572 | } if (_result) { | |
3573 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3574 | _resultobj = Py_BuildValue("s",_ptemp); | |
3575 | } else { | |
3576 | Py_INCREF(Py_None); | |
3577 | _resultobj = Py_None; | |
3578 | } | |
3579 | { | |
3580 | if (_obj0) | |
3581 | delete _arg0; | |
3582 | } | |
3583 | return _resultobj; | |
3584 | } | |
3585 | ||
3586 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3587 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3588 | PyObject * _resultobj; | |
3589 | wxGenericDragImage * _result; | |
3590 | wxTreeCtrl * _arg0; | |
3591 | wxTreeItemId * _arg1; | |
3592 | PyObject * _argo0 = 0; | |
3593 | PyObject * _argo1 = 0; | |
3594 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3595 | char _ptemp[128]; | |
3596 | ||
3597 | self = self; | |
3598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3599 | return NULL; | |
3600 | if (_argo0) { | |
3601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3604 | return NULL; | |
3605 | } | |
3606 | } | |
3607 | if (_argo1) { | |
3608 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3609 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3611 | return NULL; | |
3612 | } | |
3613 | } | |
3614 | { | |
3615 | wxPy_BEGIN_ALLOW_THREADS; | |
3616 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); | |
3617 | ||
3618 | wxPy_END_ALLOW_THREADS; | |
3619 | } if (_result) { | |
3620 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3621 | _resultobj = Py_BuildValue("s",_ptemp); | |
3622 | } else { | |
3623 | Py_INCREF(Py_None); | |
3624 | _resultobj = Py_None; | |
3625 | } | |
3626 | return _resultobj; | |
3627 | } | |
3628 | ||
3629 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3630 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3631 | PyObject * _resultobj; | |
3632 | wxGenericDragImage * _result; | |
3633 | wxListCtrl * _arg0; | |
3634 | long _arg1; | |
3635 | PyObject * _argo0 = 0; | |
3636 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3637 | char _ptemp[128]; | |
3638 | ||
3639 | self = self; | |
3640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3641 | return NULL; | |
3642 | if (_argo0) { | |
3643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3646 | return NULL; | |
3647 | } | |
3648 | } | |
3649 | { | |
3650 | wxPy_BEGIN_ALLOW_THREADS; | |
3651 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); | |
3652 | ||
3653 | wxPy_END_ALLOW_THREADS; | |
3654 | } if (_result) { | |
3655 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3656 | _resultobj = Py_BuildValue("s",_ptemp); | |
3657 | } else { | |
3658 | Py_INCREF(Py_None); | |
3659 | _resultobj = Py_None; | |
3660 | } | |
3661 | return _resultobj; | |
3662 | } | |
3663 | ||
3664 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) | |
3665 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3666 | PyObject * _resultobj; | |
3667 | wxGenericDragImage * _arg0; | |
3668 | PyObject * _argo0 = 0; | |
3669 | char *_kwnames[] = { "self", NULL }; | |
3670 | ||
3671 | self = self; | |
3672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3673 | return NULL; | |
3674 | if (_argo0) { | |
3675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3678 | return NULL; | |
3679 | } | |
3680 | } | |
3681 | { | |
3682 | wxPy_BEGIN_ALLOW_THREADS; | |
3683 | delete_wxGenericDragImage(_arg0); | |
3684 | ||
3685 | wxPy_END_ALLOW_THREADS; | |
3686 | } Py_INCREF(Py_None); | |
3687 | _resultobj = Py_None; | |
3688 | return _resultobj; | |
3689 | } | |
3690 | ||
3691 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) | |
3692 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3693 | PyObject * _resultobj; | |
3694 | wxGenericDragImage * _arg0; | |
3695 | wxBitmap * _arg1; | |
3696 | PyObject * _argo0 = 0; | |
3697 | PyObject * _argo1 = 0; | |
3698 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3699 | ||
3700 | self = self; | |
3701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3702 | return NULL; | |
3703 | if (_argo0) { | |
3704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3707 | return NULL; | |
3708 | } | |
3709 | } | |
3710 | if (_argo1) { | |
3711 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3712 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3714 | return NULL; | |
3715 | } | |
3716 | } | |
3717 | { | |
3718 | wxPy_BEGIN_ALLOW_THREADS; | |
3719 | wxDragImage_SetBackingBitmap(_arg0,_arg1); | |
3720 | ||
3721 | wxPy_END_ALLOW_THREADS; | |
3722 | } Py_INCREF(Py_None); | |
3723 | _resultobj = Py_None; | |
3724 | return _resultobj; | |
3725 | } | |
3726 | ||
3727 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3728 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3729 | PyObject * _resultobj; | |
3730 | bool _result; | |
3731 | wxGenericDragImage * _arg0; | |
3732 | wxPoint * _arg1; | |
3733 | wxWindow * _arg2; | |
3734 | bool _arg3 = (bool ) FALSE; | |
3735 | wxRect * _arg4 = (wxRect *) NULL; | |
3736 | PyObject * _argo0 = 0; | |
3737 | wxPoint temp; | |
3738 | PyObject * _obj1 = 0; | |
3739 | PyObject * _argo2 = 0; | |
3740 | int tempbool3 = (int) FALSE; | |
3741 | wxRect temp0; | |
3742 | PyObject * _obj4 = 0; | |
3743 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3744 | ||
3745 | self = self; | |
3746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3747 | return NULL; | |
3748 | if (_argo0) { | |
3749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3752 | return NULL; | |
3753 | } | |
3754 | } | |
3755 | { | |
3756 | _arg1 = &temp; | |
3757 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3758 | return NULL; | |
3759 | } | |
3760 | if (_argo2) { | |
3761 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3762 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3764 | return NULL; | |
3765 | } | |
3766 | } | |
3767 | _arg3 = (bool ) tempbool3; | |
3768 | if (_obj4) | |
3769 | { | |
3770 | _arg4 = &temp0; | |
3771 | if (! wxRect_helper(_obj4, &_arg4)) | |
3772 | return NULL; | |
3773 | } | |
3774 | { | |
3775 | wxPy_BEGIN_ALLOW_THREADS; | |
3776 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); | |
3777 | ||
3778 | wxPy_END_ALLOW_THREADS; | |
3779 | } _resultobj = Py_BuildValue("i",_result); | |
3780 | return _resultobj; | |
3781 | } | |
3782 | ||
3783 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3784 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3785 | PyObject * _resultobj; | |
3786 | bool _result; | |
3787 | wxGenericDragImage * _arg0; | |
3788 | wxPoint * _arg1; | |
3789 | wxWindow * _arg2; | |
3790 | wxWindow * _arg3; | |
3791 | PyObject * _argo0 = 0; | |
3792 | wxPoint temp; | |
3793 | PyObject * _obj1 = 0; | |
3794 | PyObject * _argo2 = 0; | |
3795 | PyObject * _argo3 = 0; | |
3796 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3797 | ||
3798 | self = self; | |
3799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3800 | return NULL; | |
3801 | if (_argo0) { | |
3802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
3805 | return NULL; | |
3806 | } | |
3807 | } | |
3808 | { | |
3809 | _arg1 = &temp; | |
3810 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3811 | return NULL; | |
3812 | } | |
3813 | if (_argo2) { | |
3814 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3815 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3817 | return NULL; | |
3818 | } | |
3819 | } | |
3820 | if (_argo3) { | |
3821 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3822 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3824 | return NULL; | |
3825 | } | |
3826 | } | |
3827 | { | |
3828 | wxPy_BEGIN_ALLOW_THREADS; | |
3829 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); | |
3830 | ||
3831 | wxPy_END_ALLOW_THREADS; | |
3832 | } _resultobj = Py_BuildValue("i",_result); | |
3833 | return _resultobj; | |
3834 | } | |
3835 | ||
3836 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
3837 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3838 | PyObject * _resultobj; | |
3839 | bool _result; | |
3840 | wxGenericDragImage * _arg0; | |
3841 | PyObject * _argo0 = 0; | |
3842 | char *_kwnames[] = { "self", NULL }; | |
3843 | ||
3844 | self = self; | |
3845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
3846 | return NULL; | |
3847 | if (_argo0) { | |
3848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
3851 | return NULL; | |
3852 | } | |
3853 | } | |
3854 | { | |
3855 | wxPy_BEGIN_ALLOW_THREADS; | |
3856 | _result = (bool )wxDragImage_EndDrag(_arg0); | |
3857 | ||
3858 | wxPy_END_ALLOW_THREADS; | |
3859 | } _resultobj = Py_BuildValue("i",_result); | |
3860 | return _resultobj; | |
3861 | } | |
3862 | ||
3863 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3864 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3865 | PyObject * _resultobj; | |
3866 | bool _result; | |
3867 | wxGenericDragImage * _arg0; | |
3868 | wxPoint * _arg1; | |
3869 | PyObject * _argo0 = 0; | |
3870 | wxPoint temp; | |
3871 | PyObject * _obj1 = 0; | |
3872 | char *_kwnames[] = { "self","pt", NULL }; | |
3873 | ||
3874 | self = self; | |
3875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
3876 | return NULL; | |
3877 | if (_argo0) { | |
3878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
3881 | return NULL; | |
3882 | } | |
3883 | } | |
3884 | { | |
3885 | _arg1 = &temp; | |
3886 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3887 | return NULL; | |
3888 | } | |
3889 | { | |
3890 | wxPy_BEGIN_ALLOW_THREADS; | |
3891 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); | |
3892 | ||
3893 | wxPy_END_ALLOW_THREADS; | |
3894 | } _resultobj = Py_BuildValue("i",_result); | |
3895 | return _resultobj; | |
3896 | } | |
3897 | ||
3898 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
3899 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3900 | PyObject * _resultobj; | |
3901 | bool _result; | |
3902 | wxGenericDragImage * _arg0; | |
3903 | PyObject * _argo0 = 0; | |
3904 | char *_kwnames[] = { "self", NULL }; | |
3905 | ||
3906 | self = self; | |
3907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
3908 | return NULL; | |
3909 | if (_argo0) { | |
3910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
3913 | return NULL; | |
3914 | } | |
3915 | } | |
3916 | { | |
3917 | wxPy_BEGIN_ALLOW_THREADS; | |
3918 | _result = (bool )wxDragImage_Show(_arg0); | |
3919 | ||
3920 | wxPy_END_ALLOW_THREADS; | |
3921 | } _resultobj = Py_BuildValue("i",_result); | |
3922 | return _resultobj; | |
3923 | } | |
3924 | ||
3925 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
3926 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3927 | PyObject * _resultobj; | |
3928 | bool _result; | |
3929 | wxGenericDragImage * _arg0; | |
3930 | PyObject * _argo0 = 0; | |
3931 | char *_kwnames[] = { "self", NULL }; | |
3932 | ||
3933 | self = self; | |
3934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
3935 | return NULL; | |
3936 | if (_argo0) { | |
3937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
3940 | return NULL; | |
3941 | } | |
3942 | } | |
3943 | { | |
3944 | wxPy_BEGIN_ALLOW_THREADS; | |
3945 | _result = (bool )wxDragImage_Hide(_arg0); | |
3946 | ||
3947 | wxPy_END_ALLOW_THREADS; | |
3948 | } _resultobj = Py_BuildValue("i",_result); | |
3949 | return _resultobj; | |
3950 | } | |
3951 | ||
3952 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
3953 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3954 | PyObject * _resultobj; | |
3955 | wxRect * _result; | |
3956 | wxGenericDragImage * _arg0; | |
3957 | wxPoint * _arg1; | |
3958 | PyObject * _argo0 = 0; | |
3959 | wxPoint temp; | |
3960 | PyObject * _obj1 = 0; | |
3961 | char *_kwnames[] = { "self","pos", NULL }; | |
3962 | char _ptemp[128]; | |
3963 | ||
3964 | self = self; | |
3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
3966 | return NULL; | |
3967 | if (_argo0) { | |
3968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
3971 | return NULL; | |
3972 | } | |
3973 | } | |
3974 | { | |
3975 | _arg1 = &temp; | |
3976 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3977 | return NULL; | |
3978 | } | |
3979 | { | |
3980 | wxPy_BEGIN_ALLOW_THREADS; | |
3981 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); | |
3982 | ||
3983 | wxPy_END_ALLOW_THREADS; | |
3984 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
3985 | _resultobj = Py_BuildValue("s",_ptemp); | |
3986 | return _resultobj; | |
3987 | } | |
3988 | ||
3989 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
3990 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3991 | PyObject * _resultobj; | |
3992 | bool _result; | |
3993 | wxGenericDragImage * _arg0; | |
3994 | wxPoint * _arg1; | |
3995 | wxPoint * _arg2; | |
3996 | bool _arg3; | |
3997 | bool _arg4; | |
3998 | PyObject * _argo0 = 0; | |
3999 | wxPoint temp; | |
4000 | PyObject * _obj1 = 0; | |
4001 | wxPoint temp0; | |
4002 | PyObject * _obj2 = 0; | |
4003 | int tempbool3; | |
4004 | int tempbool4; | |
4005 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4006 | ||
4007 | self = self; | |
4008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4009 | return NULL; | |
4010 | if (_argo0) { | |
4011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4014 | return NULL; | |
4015 | } | |
4016 | } | |
4017 | { | |
4018 | _arg1 = &temp; | |
4019 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4020 | return NULL; | |
4021 | } | |
4022 | { | |
4023 | _arg2 = &temp0; | |
4024 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4025 | return NULL; | |
4026 | } | |
4027 | _arg3 = (bool ) tempbool3; | |
4028 | _arg4 = (bool ) tempbool4; | |
4029 | { | |
4030 | wxPy_BEGIN_ALLOW_THREADS; | |
4031 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); | |
4032 | ||
4033 | wxPy_END_ALLOW_THREADS; | |
4034 | } _resultobj = Py_BuildValue("i",_result); | |
4035 | return _resultobj; | |
4036 | } | |
4037 | ||
4038 | static void *SwigwxPyTimerTowxObject(void *ptr) { | |
4039 | wxPyTimer *src; | |
4040 | wxObject *dest; | |
4041 | src = (wxPyTimer *) ptr; | |
4042 | dest = (wxObject *) src; | |
4043 | return (void *) dest; | |
4044 | } | |
4045 | ||
4046 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) | |
4047 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4048 | PyObject * _resultobj; | |
4049 | wxPyTimer * _result; | |
4050 | PyObject * _arg0; | |
4051 | PyObject * _obj0 = 0; | |
4052 | char *_kwnames[] = { "notify", NULL }; | |
4053 | char _ptemp[128]; | |
4054 | ||
4055 | self = self; | |
4056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4057 | return NULL; | |
4058 | { | |
4059 | _arg0 = _obj0; | |
4060 | } | |
4061 | { | |
4062 | wxPy_BEGIN_ALLOW_THREADS; | |
4063 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); | |
4064 | ||
4065 | wxPy_END_ALLOW_THREADS; | |
4066 | } if (_result) { | |
4067 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4068 | _resultobj = Py_BuildValue("s",_ptemp); | |
4069 | } else { | |
4070 | Py_INCREF(Py_None); | |
4071 | _resultobj = Py_None; | |
4072 | } | |
4073 | return _resultobj; | |
4074 | } | |
4075 | ||
4076 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4077 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4078 | PyObject * _resultobj; | |
4079 | wxPyTimer * _arg0; | |
4080 | PyObject * _argo0 = 0; | |
4081 | char *_kwnames[] = { "self", NULL }; | |
4082 | ||
4083 | self = self; | |
4084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4085 | return NULL; | |
4086 | if (_argo0) { | |
4087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4090 | return NULL; | |
4091 | } | |
4092 | } | |
4093 | { | |
4094 | wxPy_BEGIN_ALLOW_THREADS; | |
4095 | delete_wxPyTimer(_arg0); | |
4096 | ||
4097 | wxPy_END_ALLOW_THREADS; | |
4098 | } Py_INCREF(Py_None); | |
4099 | _resultobj = Py_None; | |
4100 | return _resultobj; | |
4101 | } | |
4102 | ||
4103 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4104 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4105 | PyObject * _resultobj; | |
4106 | int _result; | |
4107 | wxPyTimer * _arg0; | |
4108 | PyObject * _argo0 = 0; | |
4109 | char *_kwnames[] = { "self", NULL }; | |
4110 | ||
4111 | self = self; | |
4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4113 | return NULL; | |
4114 | if (_argo0) { | |
4115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4118 | return NULL; | |
4119 | } | |
4120 | } | |
4121 | { | |
4122 | wxPy_BEGIN_ALLOW_THREADS; | |
4123 | _result = (int )wxPyTimer_GetInterval(_arg0); | |
4124 | ||
4125 | wxPy_END_ALLOW_THREADS; | |
4126 | } _resultobj = Py_BuildValue("i",_result); | |
4127 | return _resultobj; | |
4128 | } | |
4129 | ||
4130 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4131 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4132 | PyObject * _resultobj; | |
4133 | bool _result; | |
4134 | wxPyTimer * _arg0; | |
4135 | PyObject * _argo0 = 0; | |
4136 | char *_kwnames[] = { "self", NULL }; | |
4137 | ||
4138 | self = self; | |
4139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4140 | return NULL; | |
4141 | if (_argo0) { | |
4142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4145 | return NULL; | |
4146 | } | |
4147 | } | |
4148 | { | |
4149 | wxPy_BEGIN_ALLOW_THREADS; | |
4150 | _result = (bool )wxPyTimer_IsOneShot(_arg0); | |
4151 | ||
4152 | wxPy_END_ALLOW_THREADS; | |
4153 | } _resultobj = Py_BuildValue("i",_result); | |
4154 | return _resultobj; | |
4155 | } | |
4156 | ||
4157 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4158 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4159 | PyObject * _resultobj; | |
4160 | bool _result; | |
4161 | wxPyTimer * _arg0; | |
4162 | PyObject * _argo0 = 0; | |
4163 | char *_kwnames[] = { "self", NULL }; | |
4164 | ||
4165 | self = self; | |
4166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4167 | return NULL; | |
4168 | if (_argo0) { | |
4169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4172 | return NULL; | |
4173 | } | |
4174 | } | |
4175 | { | |
4176 | wxPy_BEGIN_ALLOW_THREADS; | |
4177 | _result = (bool )wxPyTimer_IsRunning(_arg0); | |
4178 | ||
4179 | wxPy_END_ALLOW_THREADS; | |
4180 | } _resultobj = Py_BuildValue("i",_result); | |
4181 | return _resultobj; | |
4182 | } | |
4183 | ||
4184 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4185 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4186 | PyObject * _resultobj; | |
4187 | wxPyTimer * _arg0; | |
4188 | wxEvtHandler * _arg1; | |
4189 | int _arg2 = (int ) -1; | |
4190 | PyObject * _argo0 = 0; | |
4191 | PyObject * _argo1 = 0; | |
4192 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4193 | ||
4194 | self = self; | |
4195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4196 | return NULL; | |
4197 | if (_argo0) { | |
4198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4201 | return NULL; | |
4202 | } | |
4203 | } | |
4204 | if (_argo1) { | |
4205 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4206 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4208 | return NULL; | |
4209 | } | |
4210 | } | |
4211 | { | |
4212 | wxPy_BEGIN_ALLOW_THREADS; | |
4213 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); | |
4214 | ||
4215 | wxPy_END_ALLOW_THREADS; | |
4216 | } Py_INCREF(Py_None); | |
4217 | _resultobj = Py_None; | |
4218 | return _resultobj; | |
4219 | } | |
4220 | ||
4221 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4222 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4223 | PyObject * _resultobj; | |
4224 | wxPyTimer * _arg0; | |
4225 | int _arg1 = (int ) -1; | |
4226 | int _arg2 = (int ) FALSE; | |
4227 | PyObject * _argo0 = 0; | |
4228 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4229 | ||
4230 | self = self; | |
4231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4232 | return NULL; | |
4233 | if (_argo0) { | |
4234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4237 | return NULL; | |
4238 | } | |
4239 | } | |
4240 | { | |
4241 | wxPy_BEGIN_ALLOW_THREADS; | |
4242 | wxPyTimer_Start(_arg0,_arg1,_arg2); | |
4243 | ||
4244 | wxPy_END_ALLOW_THREADS; | |
4245 | } Py_INCREF(Py_None); | |
4246 | _resultobj = Py_None; | |
4247 | return _resultobj; | |
4248 | } | |
4249 | ||
4250 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4251 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4252 | PyObject * _resultobj; | |
4253 | wxPyTimer * _arg0; | |
4254 | PyObject * _argo0 = 0; | |
4255 | char *_kwnames[] = { "self", NULL }; | |
4256 | ||
4257 | self = self; | |
4258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) | |
4259 | return NULL; | |
4260 | if (_argo0) { | |
4261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
4264 | return NULL; | |
4265 | } | |
4266 | } | |
4267 | { | |
4268 | wxPy_BEGIN_ALLOW_THREADS; | |
4269 | wxPyTimer_Stop(_arg0); | |
4270 | ||
4271 | wxPy_END_ALLOW_THREADS; | |
4272 | } Py_INCREF(Py_None); | |
4273 | _resultobj = Py_None; | |
4274 | return _resultobj; | |
4275 | } | |
4276 | ||
b6e5c445 RD |
4277 | #define new_wxStopWatch() (new wxStopWatch()) |
4278 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4279 | PyObject * _resultobj; | |
4280 | wxStopWatch * _result; | |
4281 | char *_kwnames[] = { NULL }; | |
4282 | char _ptemp[128]; | |
4283 | ||
4284 | self = self; | |
4285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4286 | return NULL; | |
4287 | { | |
4288 | wxPy_BEGIN_ALLOW_THREADS; | |
4289 | _result = (wxStopWatch *)new_wxStopWatch(); | |
4290 | ||
4291 | wxPy_END_ALLOW_THREADS; | |
4292 | } if (_result) { | |
4293 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4294 | _resultobj = Py_BuildValue("s",_ptemp); | |
4295 | } else { | |
4296 | Py_INCREF(Py_None); | |
4297 | _resultobj = Py_None; | |
4298 | } | |
4299 | return _resultobj; | |
4300 | } | |
4301 | ||
4302 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) | |
4303 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4304 | PyObject * _resultobj; | |
4305 | wxStopWatch * _arg0; | |
4306 | long _arg1 = (long ) 0; | |
4307 | PyObject * _argo0 = 0; | |
4308 | char *_kwnames[] = { "self","t", NULL }; | |
4309 | ||
4310 | self = self; | |
4311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4312 | return NULL; | |
4313 | if (_argo0) { | |
4314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4317 | return NULL; | |
4318 | } | |
4319 | } | |
4320 | { | |
4321 | wxPy_BEGIN_ALLOW_THREADS; | |
4322 | wxStopWatch_Start(_arg0,_arg1); | |
4323 | ||
4324 | wxPy_END_ALLOW_THREADS; | |
4325 | } Py_INCREF(Py_None); | |
4326 | _resultobj = Py_None; | |
4327 | return _resultobj; | |
4328 | } | |
4329 | ||
4330 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4331 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4332 | PyObject * _resultobj; | |
4333 | wxStopWatch * _arg0; | |
4334 | PyObject * _argo0 = 0; | |
4335 | char *_kwnames[] = { "self", NULL }; | |
4336 | ||
4337 | self = self; | |
4338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4339 | return NULL; | |
4340 | if (_argo0) { | |
4341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4344 | return NULL; | |
4345 | } | |
4346 | } | |
4347 | { | |
4348 | wxPy_BEGIN_ALLOW_THREADS; | |
4349 | wxStopWatch_Pause(_arg0); | |
4350 | ||
4351 | wxPy_END_ALLOW_THREADS; | |
4352 | } Py_INCREF(Py_None); | |
4353 | _resultobj = Py_None; | |
4354 | return _resultobj; | |
4355 | } | |
4356 | ||
4357 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4358 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4359 | PyObject * _resultobj; | |
4360 | wxStopWatch * _arg0; | |
4361 | PyObject * _argo0 = 0; | |
4362 | char *_kwnames[] = { "self", NULL }; | |
4363 | ||
4364 | self = self; | |
4365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4366 | return NULL; | |
4367 | if (_argo0) { | |
4368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4371 | return NULL; | |
4372 | } | |
4373 | } | |
4374 | { | |
4375 | wxPy_BEGIN_ALLOW_THREADS; | |
4376 | wxStopWatch_Resume(_arg0); | |
4377 | ||
4378 | wxPy_END_ALLOW_THREADS; | |
4379 | } Py_INCREF(Py_None); | |
4380 | _resultobj = Py_None; | |
4381 | return _resultobj; | |
4382 | } | |
4383 | ||
4384 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4385 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4386 | PyObject * _resultobj; | |
4387 | long _result; | |
4388 | wxStopWatch * _arg0; | |
4389 | PyObject * _argo0 = 0; | |
4390 | char *_kwnames[] = { "self", NULL }; | |
4391 | ||
4392 | self = self; | |
4393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4394 | return NULL; | |
4395 | if (_argo0) { | |
4396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4399 | return NULL; | |
4400 | } | |
4401 | } | |
4402 | { | |
4403 | wxPy_BEGIN_ALLOW_THREADS; | |
4404 | _result = (long )wxStopWatch_Time(_arg0); | |
4405 | ||
4406 | wxPy_END_ALLOW_THREADS; | |
4407 | } _resultobj = Py_BuildValue("l",_result); | |
4408 | return _resultobj; | |
4409 | } | |
4410 | ||
e6056257 RD |
4411 | #define new_wxLog() (new wxLog()) |
4412 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4413 | PyObject * _resultobj; | |
4414 | wxLog * _result; | |
4415 | char *_kwnames[] = { NULL }; | |
4416 | char _ptemp[128]; | |
4417 | ||
4418 | self = self; | |
4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) | |
4420 | return NULL; | |
4421 | { | |
4422 | wxPy_BEGIN_ALLOW_THREADS; | |
4423 | _result = (wxLog *)new_wxLog(); | |
4424 | ||
4425 | wxPy_END_ALLOW_THREADS; | |
4426 | } if (_result) { | |
4427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4428 | _resultobj = Py_BuildValue("s",_ptemp); | |
4429 | } else { | |
4430 | Py_INCREF(Py_None); | |
4431 | _resultobj = Py_None; | |
4432 | } | |
4433 | return _resultobj; | |
4434 | } | |
4435 | ||
4436 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4437 | PyObject * _resultobj; | |
4438 | bool _result; | |
4439 | char *_kwnames[] = { NULL }; | |
4440 | ||
4441 | self = self; | |
4442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4443 | return NULL; | |
4444 | { | |
4445 | wxPy_BEGIN_ALLOW_THREADS; | |
4446 | _result = (bool )wxLog::IsEnabled(); | |
4447 | ||
4448 | wxPy_END_ALLOW_THREADS; | |
4449 | } _resultobj = Py_BuildValue("i",_result); | |
4450 | return _resultobj; | |
4451 | } | |
4452 | ||
4453 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4454 | PyObject * _resultobj; | |
4455 | bool _result; | |
4456 | bool _arg0 = (bool ) TRUE; | |
4457 | int tempbool0 = (int) TRUE; | |
4458 | char *_kwnames[] = { "doIt", NULL }; | |
4459 | ||
4460 | self = self; | |
4461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4462 | return NULL; | |
4463 | _arg0 = (bool ) tempbool0; | |
4464 | { | |
4465 | wxPy_BEGIN_ALLOW_THREADS; | |
4466 | _result = (bool )wxLog::EnableLogging(_arg0); | |
4467 | ||
4468 | wxPy_END_ALLOW_THREADS; | |
4469 | } _resultobj = Py_BuildValue("i",_result); | |
4470 | return _resultobj; | |
4471 | } | |
4472 | ||
4473 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4474 | PyObject * _resultobj; | |
4475 | wxLogLevel * _arg0; | |
4476 | char * _arg1; | |
4477 | int _arg2 = (int ) 0; | |
4478 | PyObject * _argo0 = 0; | |
4479 | char *_kwnames[] = { "level","szString","t", NULL }; | |
4480 | ||
4481 | self = self; | |
4482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|i:wxLog_OnLog",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4483 | return NULL; | |
4484 | if (_argo0) { | |
4485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { | |
4487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
4488 | return NULL; | |
4489 | } | |
4490 | } | |
4491 | { | |
4492 | wxPy_BEGIN_ALLOW_THREADS; | |
4493 | wxLog::OnLog(*_arg0,_arg1,_arg2); | |
4494 | ||
4495 | wxPy_END_ALLOW_THREADS; | |
4496 | } Py_INCREF(Py_None); | |
4497 | _resultobj = Py_None; | |
4498 | return _resultobj; | |
4499 | } | |
4500 | ||
4501 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4502 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4503 | PyObject * _resultobj; | |
4504 | wxLog * _arg0; | |
4505 | PyObject * _argo0 = 0; | |
4506 | char *_kwnames[] = { "self", NULL }; | |
4507 | ||
4508 | self = self; | |
4509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4510 | return NULL; | |
4511 | if (_argo0) { | |
4512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4515 | return NULL; | |
4516 | } | |
4517 | } | |
4518 | { | |
4519 | wxPy_BEGIN_ALLOW_THREADS; | |
4520 | wxLog_Flush(_arg0); | |
4521 | ||
4522 | wxPy_END_ALLOW_THREADS; | |
4523 | } Py_INCREF(Py_None); | |
4524 | _resultobj = Py_None; | |
4525 | return _resultobj; | |
4526 | } | |
4527 | ||
4528 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) | |
4529 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4530 | PyObject * _resultobj; | |
4531 | bool _result; | |
4532 | wxLog * _arg0; | |
4533 | PyObject * _argo0 = 0; | |
4534 | char *_kwnames[] = { "self", NULL }; | |
4535 | ||
4536 | self = self; | |
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) | |
4538 | return NULL; | |
4539 | if (_argo0) { | |
4540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
4543 | return NULL; | |
4544 | } | |
4545 | } | |
4546 | { | |
4547 | wxPy_BEGIN_ALLOW_THREADS; | |
4548 | _result = (bool )wxLog_HasPendingMessages(_arg0); | |
4549 | ||
4550 | wxPy_END_ALLOW_THREADS; | |
4551 | } _resultobj = Py_BuildValue("i",_result); | |
4552 | return _resultobj; | |
4553 | } | |
4554 | ||
4555 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4556 | PyObject * _resultobj; | |
4557 | char *_kwnames[] = { NULL }; | |
4558 | ||
4559 | self = self; | |
4560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4561 | return NULL; | |
4562 | { | |
4563 | wxPy_BEGIN_ALLOW_THREADS; | |
4564 | wxLog::FlushActive(); | |
4565 | ||
4566 | wxPy_END_ALLOW_THREADS; | |
4567 | } Py_INCREF(Py_None); | |
4568 | _resultobj = Py_None; | |
4569 | return _resultobj; | |
4570 | } | |
4571 | ||
4572 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4573 | PyObject * _resultobj; | |
4574 | wxLog * _result; | |
4575 | char *_kwnames[] = { NULL }; | |
4576 | char _ptemp[128]; | |
4577 | ||
4578 | self = self; | |
4579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4580 | return NULL; | |
4581 | { | |
4582 | wxPy_BEGIN_ALLOW_THREADS; | |
4583 | _result = (wxLog *)wxLog::GetActiveTarget(); | |
4584 | ||
4585 | wxPy_END_ALLOW_THREADS; | |
4586 | } if (_result) { | |
4587 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4588 | _resultobj = Py_BuildValue("s",_ptemp); | |
4589 | } else { | |
4590 | Py_INCREF(Py_None); | |
4591 | _resultobj = Py_None; | |
4592 | } | |
4593 | return _resultobj; | |
4594 | } | |
4595 | ||
4596 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4597 | PyObject * _resultobj; | |
4598 | wxLog * _result; | |
4599 | wxLog * _arg0; | |
4600 | PyObject * _argo0 = 0; | |
4601 | char *_kwnames[] = { "pLogger", NULL }; | |
4602 | char _ptemp[128]; | |
4603 | ||
4604 | self = self; | |
4605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) | |
4606 | return NULL; | |
4607 | if (_argo0) { | |
4608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
4611 | return NULL; | |
4612 | } | |
4613 | } | |
4614 | { | |
4615 | wxPy_BEGIN_ALLOW_THREADS; | |
4616 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); | |
4617 | ||
4618 | wxPy_END_ALLOW_THREADS; | |
4619 | } if (_result) { | |
4620 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4621 | _resultobj = Py_BuildValue("s",_ptemp); | |
4622 | } else { | |
4623 | Py_INCREF(Py_None); | |
4624 | _resultobj = Py_None; | |
4625 | } | |
4626 | return _resultobj; | |
4627 | } | |
4628 | ||
4629 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4630 | PyObject * _resultobj; | |
4631 | char *_kwnames[] = { NULL }; | |
4632 | ||
4633 | self = self; | |
4634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4635 | return NULL; | |
4636 | { | |
4637 | wxPy_BEGIN_ALLOW_THREADS; | |
4638 | wxLog::Suspend(); | |
4639 | ||
4640 | wxPy_END_ALLOW_THREADS; | |
4641 | } Py_INCREF(Py_None); | |
4642 | _resultobj = Py_None; | |
4643 | return _resultobj; | |
4644 | } | |
4645 | ||
4646 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4647 | PyObject * _resultobj; | |
4648 | char *_kwnames[] = { NULL }; | |
4649 | ||
4650 | self = self; | |
4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4652 | return NULL; | |
4653 | { | |
4654 | wxPy_BEGIN_ALLOW_THREADS; | |
4655 | wxLog::Resume(); | |
4656 | ||
4657 | wxPy_END_ALLOW_THREADS; | |
4658 | } Py_INCREF(Py_None); | |
4659 | _resultobj = Py_None; | |
4660 | return _resultobj; | |
4661 | } | |
4662 | ||
4663 | #define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0)) | |
4664 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject * _resultobj; | |
4666 | wxLog * _arg0; | |
4667 | bool _arg1 = (bool ) TRUE; | |
4668 | PyObject * _argo0 = 0; | |
4669 | int tempbool1 = (int) TRUE; | |
4670 | char *_kwnames[] = { "self","bVerbose", NULL }; | |
4671 | ||
4672 | self = self; | |
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1)) | |
4674 | return NULL; | |
4675 | if (_argo0) { | |
4676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p."); | |
4679 | return NULL; | |
4680 | } | |
4681 | } | |
4682 | _arg1 = (bool ) tempbool1; | |
4683 | { | |
4684 | wxPy_BEGIN_ALLOW_THREADS; | |
4685 | wxLog_SetVerbose(_arg0,_arg1); | |
4686 | ||
4687 | wxPy_END_ALLOW_THREADS; | |
4688 | } Py_INCREF(Py_None); | |
4689 | _resultobj = Py_None; | |
4690 | return _resultobj; | |
4691 | } | |
4692 | ||
4693 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4694 | PyObject * _resultobj; | |
4695 | char *_kwnames[] = { NULL }; | |
4696 | ||
4697 | self = self; | |
4698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4699 | return NULL; | |
4700 | { | |
4701 | wxPy_BEGIN_ALLOW_THREADS; | |
4702 | wxLog::DontCreateOnDemand(); | |
4703 | ||
4704 | wxPy_END_ALLOW_THREADS; | |
4705 | } Py_INCREF(Py_None); | |
4706 | _resultobj = Py_None; | |
4707 | return _resultobj; | |
4708 | } | |
4709 | ||
4710 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4711 | PyObject * _resultobj; | |
4712 | wxTraceMask * _arg0; | |
4713 | PyObject * _argo0 = 0; | |
4714 | char *_kwnames[] = { "ulMask", NULL }; | |
4715 | ||
4716 | self = self; | |
4717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) | |
4718 | return NULL; | |
4719 | if (_argo0) { | |
4720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { | |
4722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
4723 | return NULL; | |
4724 | } | |
4725 | } | |
4726 | { | |
4727 | wxPy_BEGIN_ALLOW_THREADS; | |
4728 | wxLog::SetTraceMask(*_arg0); | |
4729 | ||
4730 | wxPy_END_ALLOW_THREADS; | |
4731 | } Py_INCREF(Py_None); | |
4732 | _resultobj = Py_None; | |
4733 | return _resultobj; | |
4734 | } | |
4735 | ||
4736 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4737 | PyObject * _resultobj; | |
4738 | wxString * _arg0; | |
4739 | PyObject * _obj0 = 0; | |
4740 | char *_kwnames[] = { "str", NULL }; | |
4741 | ||
4742 | self = self; | |
4743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4744 | return NULL; | |
4745 | { | |
4746 | #if PYTHON_API_VERSION >= 1009 | |
4747 | char* tmpPtr; int tmpSize; | |
4748 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
4749 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4750 | return NULL; | |
4751 | } | |
4752 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4753 | return NULL; | |
4754 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4755 | #else | |
4756 | if (!PyString_Check(_obj0)) { | |
4757 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4758 | return NULL; | |
4759 | } | |
4760 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
4761 | #endif | |
4762 | } | |
4763 | { | |
4764 | wxPy_BEGIN_ALLOW_THREADS; | |
4765 | wxLog::AddTraceMask(*_arg0); | |
4766 | ||
4767 | wxPy_END_ALLOW_THREADS; | |
4768 | } Py_INCREF(Py_None); | |
4769 | _resultobj = Py_None; | |
4770 | { | |
4771 | if (_obj0) | |
4772 | delete _arg0; | |
4773 | } | |
4774 | return _resultobj; | |
4775 | } | |
4776 | ||
4777 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4778 | PyObject * _resultobj; | |
4779 | wxString * _arg0; | |
4780 | PyObject * _obj0 = 0; | |
4781 | char *_kwnames[] = { "str", NULL }; | |
4782 | ||
4783 | self = self; | |
4784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
4785 | return NULL; | |
4786 | { | |
4787 | #if PYTHON_API_VERSION >= 1009 | |
4788 | char* tmpPtr; int tmpSize; | |
4789 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
4790 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4791 | return NULL; | |
4792 | } | |
4793 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
4794 | return NULL; | |
4795 | _arg0 = new wxString(tmpPtr, tmpSize); | |
4796 | #else | |
4797 | if (!PyString_Check(_obj0)) { | |
4798 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4799 | return NULL; | |
4800 | } | |
4801 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
4802 | #endif | |
4803 | } | |
4804 | { | |
4805 | wxPy_BEGIN_ALLOW_THREADS; | |
4806 | wxLog::RemoveTraceMask(*_arg0); | |
4807 | ||
4808 | wxPy_END_ALLOW_THREADS; | |
4809 | } Py_INCREF(Py_None); | |
4810 | _resultobj = Py_None; | |
4811 | { | |
4812 | if (_obj0) | |
4813 | delete _arg0; | |
4814 | } | |
4815 | return _resultobj; | |
4816 | } | |
4817 | ||
4818 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4819 | PyObject * _resultobj; | |
4820 | char *_kwnames[] = { NULL }; | |
4821 | ||
4822 | self = self; | |
4823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
4824 | return NULL; | |
4825 | { | |
4826 | wxPy_BEGIN_ALLOW_THREADS; | |
4827 | wxLog::ClearTraceMasks(); | |
4828 | ||
4829 | wxPy_END_ALLOW_THREADS; | |
4830 | } Py_INCREF(Py_None); | |
4831 | _resultobj = Py_None; | |
4832 | return _resultobj; | |
4833 | } | |
4834 | ||
4835 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4836 | PyObject * _resultobj; | |
4837 | wxChar * _arg0; | |
4838 | char *_kwnames[] = { "ts", NULL }; | |
4839 | ||
4840 | self = self; | |
4841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_SetTimestamp",_kwnames,&_arg0)) | |
4842 | return NULL; | |
4843 | { | |
4844 | wxPy_BEGIN_ALLOW_THREADS; | |
4845 | wxLog::SetTimestamp(_arg0); | |
4846 | ||
4847 | wxPy_END_ALLOW_THREADS; | |
4848 | } Py_INCREF(Py_None); | |
4849 | _resultobj = Py_None; | |
4850 | return _resultobj; | |
4851 | } | |
4852 | ||
4853 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4854 | PyObject * _resultobj; | |
4855 | wxChar * _result; | |
4856 | char *_kwnames[] = { NULL }; | |
4857 | ||
4858 | self = self; | |
4859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
4860 | return NULL; | |
4861 | { | |
4862 | wxPy_BEGIN_ALLOW_THREADS; | |
4863 | _result = (wxChar *)wxLog::GetTimestamp(); | |
4864 | ||
4865 | wxPy_END_ALLOW_THREADS; | |
4866 | } _resultobj = Py_BuildValue("s", _result); | |
4867 | return _resultobj; | |
4868 | } | |
4869 | ||
4870 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) | |
4871 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4872 | PyObject * _resultobj; | |
4873 | bool _result; | |
4874 | wxLog * _arg0; | |
4875 | PyObject * _argo0 = 0; | |
4876 | char *_kwnames[] = { "self", NULL }; | |
4877 | ||
4878 | self = self; | |
4879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) | |
4880 | return NULL; | |
4881 | if (_argo0) { | |
4882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
4885 | return NULL; | |
4886 | } | |
4887 | } | |
4888 | { | |
4889 | wxPy_BEGIN_ALLOW_THREADS; | |
4890 | _result = (bool )wxLog_GetVerbose(_arg0); | |
4891 | ||
4892 | wxPy_END_ALLOW_THREADS; | |
4893 | } _resultobj = Py_BuildValue("i",_result); | |
4894 | return _resultobj; | |
4895 | } | |
4896 | ||
4897 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4898 | PyObject * _resultobj; | |
4899 | wxTraceMask * _result; | |
4900 | char *_kwnames[] = { NULL }; | |
4901 | char _ptemp[128]; | |
4902 | ||
4903 | self = self; | |
4904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) | |
4905 | return NULL; | |
4906 | { | |
4907 | wxPy_BEGIN_ALLOW_THREADS; | |
4908 | _result = new wxTraceMask (wxLog::GetTraceMask()); | |
4909 | ||
4910 | wxPy_END_ALLOW_THREADS; | |
4911 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); | |
4912 | _resultobj = Py_BuildValue("s",_ptemp); | |
4913 | return _resultobj; | |
4914 | } | |
4915 | ||
4916 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4917 | PyObject * _resultobj; | |
4918 | bool _result; | |
4919 | char * _arg0; | |
4920 | char *_kwnames[] = { "mask", NULL }; | |
4921 | ||
4922 | self = self; | |
4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_IsAllowedTraceMask",_kwnames,&_arg0)) | |
4924 | return NULL; | |
4925 | { | |
4926 | wxPy_BEGIN_ALLOW_THREADS; | |
4927 | _result = (bool )wxLog::IsAllowedTraceMask(_arg0); | |
4928 | ||
4929 | wxPy_END_ALLOW_THREADS; | |
4930 | } _resultobj = Py_BuildValue("i",_result); | |
4931 | return _resultobj; | |
4932 | } | |
4933 | ||
4934 | static wxString wxLog_TimeStamp(wxLog *self) { | |
4935 | wxString msg; | |
4936 | wxLog::TimeStamp(&msg); | |
4937 | return msg; | |
4938 | } | |
4939 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4940 | PyObject * _resultobj; | |
4941 | wxString * _result; | |
4942 | wxLog * _arg0; | |
4943 | PyObject * _argo0 = 0; | |
4944 | char *_kwnames[] = { "self", NULL }; | |
4945 | ||
4946 | self = self; | |
4947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
4948 | return NULL; | |
4949 | if (_argo0) { | |
4950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
4953 | return NULL; | |
4954 | } | |
4955 | } | |
4956 | { | |
4957 | wxPy_BEGIN_ALLOW_THREADS; | |
4958 | _result = new wxString (wxLog_TimeStamp(_arg0)); | |
4959 | ||
4960 | wxPy_END_ALLOW_THREADS; | |
4961 | }{ | |
4962 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
4963 | } | |
4964 | { | |
4965 | delete _result; | |
4966 | } | |
4967 | return _resultobj; | |
4968 | } | |
4969 | ||
4970 | static void *SwigwxLogStderrTowxLog(void *ptr) { | |
4971 | wxLogStderr *src; | |
4972 | wxLog *dest; | |
4973 | src = (wxLogStderr *) ptr; | |
4974 | dest = (wxLog *) src; | |
4975 | return (void *) dest; | |
4976 | } | |
4977 | ||
4978 | #define new_wxLogStderr() (new wxLogStderr()) | |
4979 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4980 | PyObject * _resultobj; | |
4981 | wxLogStderr * _result; | |
4982 | char *_kwnames[] = { NULL }; | |
4983 | char _ptemp[128]; | |
4984 | ||
4985 | self = self; | |
4986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) | |
4987 | return NULL; | |
4988 | { | |
4989 | wxPy_BEGIN_ALLOW_THREADS; | |
4990 | _result = (wxLogStderr *)new_wxLogStderr(); | |
4991 | ||
4992 | wxPy_END_ALLOW_THREADS; | |
4993 | } if (_result) { | |
4994 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
4995 | _resultobj = Py_BuildValue("s",_ptemp); | |
4996 | } else { | |
4997 | Py_INCREF(Py_None); | |
4998 | _resultobj = Py_None; | |
4999 | } | |
5000 | return _resultobj; | |
5001 | } | |
5002 | ||
5003 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { | |
5004 | wxLogTextCtrl *src; | |
5005 | wxLog *dest; | |
5006 | src = (wxLogTextCtrl *) ptr; | |
5007 | dest = (wxLog *) src; | |
5008 | return (void *) dest; | |
5009 | } | |
5010 | ||
5011 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5012 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5013 | PyObject * _resultobj; | |
5014 | wxLogTextCtrl * _result; | |
5015 | wxTextCtrl * _arg0; | |
5016 | PyObject * _argo0 = 0; | |
5017 | char *_kwnames[] = { "pTextCtrl", NULL }; | |
5018 | char _ptemp[128]; | |
5019 | ||
5020 | self = self; | |
5021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) | |
5022 | return NULL; | |
5023 | if (_argo0) { | |
5024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { | |
5026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
5027 | return NULL; | |
5028 | } | |
5029 | } | |
5030 | { | |
5031 | wxPy_BEGIN_ALLOW_THREADS; | |
5032 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); | |
5033 | ||
5034 | wxPy_END_ALLOW_THREADS; | |
5035 | } if (_result) { | |
5036 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5037 | _resultobj = Py_BuildValue("s",_ptemp); | |
5038 | } else { | |
5039 | Py_INCREF(Py_None); | |
5040 | _resultobj = Py_None; | |
5041 | } | |
5042 | return _resultobj; | |
5043 | } | |
5044 | ||
5045 | static void *SwigwxLogGuiTowxLog(void *ptr) { | |
5046 | wxLogGui *src; | |
5047 | wxLog *dest; | |
5048 | src = (wxLogGui *) ptr; | |
5049 | dest = (wxLog *) src; | |
5050 | return (void *) dest; | |
5051 | } | |
5052 | ||
5053 | #define new_wxLogGui() (new wxLogGui()) | |
5054 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5055 | PyObject * _resultobj; | |
5056 | wxLogGui * _result; | |
5057 | char *_kwnames[] = { NULL }; | |
5058 | char _ptemp[128]; | |
5059 | ||
5060 | self = self; | |
5061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) | |
5062 | return NULL; | |
5063 | { | |
5064 | wxPy_BEGIN_ALLOW_THREADS; | |
5065 | _result = (wxLogGui *)new_wxLogGui(); | |
5066 | ||
5067 | wxPy_END_ALLOW_THREADS; | |
5068 | } if (_result) { | |
5069 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); | |
5070 | _resultobj = Py_BuildValue("s",_ptemp); | |
5071 | } else { | |
5072 | Py_INCREF(Py_None); | |
5073 | _resultobj = Py_None; | |
5074 | } | |
5075 | return _resultobj; | |
5076 | } | |
5077 | ||
5078 | static void *SwigwxLogWindowTowxLog(void *ptr) { | |
5079 | wxLogWindow *src; | |
5080 | wxLog *dest; | |
5081 | src = (wxLogWindow *) ptr; | |
5082 | dest = (wxLog *) src; | |
5083 | return (void *) dest; | |
5084 | } | |
5085 | ||
5086 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5087 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5088 | PyObject * _resultobj; | |
5089 | wxLogWindow * _result; | |
5090 | wxFrame * _arg0; | |
5091 | char * _arg1; | |
5092 | bool _arg2 = (bool ) TRUE; | |
5093 | bool _arg3 = (bool ) TRUE; | |
5094 | PyObject * _argo0 = 0; | |
5095 | int tempbool2 = (int) TRUE; | |
5096 | int tempbool3 = (int) TRUE; | |
5097 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5098 | char _ptemp[128]; | |
5099 | ||
5100 | self = self; | |
5101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|ii:new_wxLogWindow",_kwnames,&_argo0,&_arg1,&tempbool2,&tempbool3)) | |
5102 | return NULL; | |
5103 | if (_argo0) { | |
5104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
5106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
5107 | return NULL; | |
5108 | } | |
5109 | } | |
5110 | _arg2 = (bool ) tempbool2; | |
5111 | _arg3 = (bool ) tempbool3; | |
5112 | { | |
5113 | wxPy_BEGIN_ALLOW_THREADS; | |
5114 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,_arg1,_arg2,_arg3); | |
5115 | ||
5116 | wxPy_END_ALLOW_THREADS; | |
5117 | } if (_result) { | |
5118 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5119 | _resultobj = Py_BuildValue("s",_ptemp); | |
5120 | } else { | |
5121 | Py_INCREF(Py_None); | |
5122 | _resultobj = Py_None; | |
5123 | } | |
5124 | return _resultobj; | |
5125 | } | |
5126 | ||
5127 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
5128 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5129 | PyObject * _resultobj; | |
5130 | wxLogWindow * _arg0; | |
5131 | bool _arg1 = (bool ) TRUE; | |
5132 | PyObject * _argo0 = 0; | |
5133 | int tempbool1 = (int) TRUE; | |
5134 | char *_kwnames[] = { "self","bShow", NULL }; | |
5135 | ||
5136 | self = self; | |
5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) | |
5138 | return NULL; | |
5139 | if (_argo0) { | |
5140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
5143 | return NULL; | |
5144 | } | |
5145 | } | |
5146 | _arg1 = (bool ) tempbool1; | |
5147 | { | |
5148 | wxPy_BEGIN_ALLOW_THREADS; | |
5149 | wxLogWindow_Show(_arg0,_arg1); | |
5150 | ||
5151 | wxPy_END_ALLOW_THREADS; | |
5152 | } Py_INCREF(Py_None); | |
5153 | _resultobj = Py_None; | |
5154 | return _resultobj; | |
5155 | } | |
5156 | ||
5157 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) | |
5158 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5159 | PyObject * _resultobj; | |
5160 | wxFrame * _result; | |
5161 | wxLogWindow * _arg0; | |
5162 | PyObject * _argo0 = 0; | |
5163 | char *_kwnames[] = { "self", NULL }; | |
5164 | ||
5165 | self = self; | |
5166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) | |
5167 | return NULL; | |
5168 | if (_argo0) { | |
5169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
5172 | return NULL; | |
5173 | } | |
5174 | } | |
5175 | { | |
5176 | wxPy_BEGIN_ALLOW_THREADS; | |
5177 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); | |
5178 | ||
5179 | wxPy_END_ALLOW_THREADS; | |
5180 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5181 | return _resultobj; | |
5182 | } | |
5183 | ||
5184 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5185 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5186 | PyObject * _resultobj; | |
5187 | wxLog * _result; | |
5188 | wxLogWindow * _arg0; | |
5189 | PyObject * _argo0 = 0; | |
5190 | char *_kwnames[] = { "self", NULL }; | |
5191 | char _ptemp[128]; | |
5192 | ||
5193 | self = self; | |
5194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) | |
5195 | return NULL; | |
5196 | if (_argo0) { | |
5197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
5200 | return NULL; | |
5201 | } | |
5202 | } | |
5203 | { | |
5204 | wxPy_BEGIN_ALLOW_THREADS; | |
5205 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); | |
5206 | ||
5207 | wxPy_END_ALLOW_THREADS; | |
5208 | } if (_result) { | |
5209 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5210 | _resultobj = Py_BuildValue("s",_ptemp); | |
5211 | } else { | |
5212 | Py_INCREF(Py_None); | |
5213 | _resultobj = Py_None; | |
5214 | } | |
5215 | return _resultobj; | |
5216 | } | |
5217 | ||
5218 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5219 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5220 | PyObject * _resultobj; | |
5221 | bool _result; | |
5222 | wxLogWindow * _arg0; | |
5223 | PyObject * _argo0 = 0; | |
5224 | char *_kwnames[] = { "self", NULL }; | |
5225 | ||
5226 | self = self; | |
5227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) | |
5228 | return NULL; | |
5229 | if (_argo0) { | |
5230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
5233 | return NULL; | |
5234 | } | |
5235 | } | |
5236 | { | |
5237 | wxPy_BEGIN_ALLOW_THREADS; | |
5238 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); | |
5239 | ||
5240 | wxPy_END_ALLOW_THREADS; | |
5241 | } _resultobj = Py_BuildValue("i",_result); | |
5242 | return _resultobj; | |
5243 | } | |
5244 | ||
5245 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5246 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5247 | PyObject * _resultobj; | |
5248 | wxLogWindow * _arg0; | |
5249 | bool _arg1; | |
5250 | PyObject * _argo0 = 0; | |
5251 | int tempbool1; | |
5252 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5253 | ||
5254 | self = self; | |
5255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5256 | return NULL; | |
5257 | if (_argo0) { | |
5258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { | |
5260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
5261 | return NULL; | |
5262 | } | |
5263 | } | |
5264 | _arg1 = (bool ) tempbool1; | |
5265 | { | |
5266 | wxPy_BEGIN_ALLOW_THREADS; | |
5267 | wxLogWindow_PassMessages(_arg0,_arg1); | |
5268 | ||
5269 | wxPy_END_ALLOW_THREADS; | |
5270 | } Py_INCREF(Py_None); | |
5271 | _resultobj = Py_None; | |
5272 | return _resultobj; | |
5273 | } | |
5274 | ||
5275 | #define new_wxLogNull() (new wxLogNull()) | |
5276 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5277 | PyObject * _resultobj; | |
5278 | wxLogNull * _result; | |
5279 | char *_kwnames[] = { NULL }; | |
5280 | char _ptemp[128]; | |
5281 | ||
5282 | self = self; | |
5283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
5284 | return NULL; | |
5285 | { | |
5286 | wxPy_BEGIN_ALLOW_THREADS; | |
5287 | _result = (wxLogNull *)new_wxLogNull(); | |
5288 | ||
5289 | wxPy_END_ALLOW_THREADS; | |
5290 | } if (_result) { | |
5291 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
5292 | _resultobj = Py_BuildValue("s",_ptemp); | |
5293 | } else { | |
5294 | Py_INCREF(Py_None); | |
5295 | _resultobj = Py_None; | |
5296 | } | |
5297 | return _resultobj; | |
5298 | } | |
5299 | ||
5300 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
5301 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5302 | PyObject * _resultobj; | |
5303 | wxLogNull * _arg0; | |
5304 | PyObject * _argo0 = 0; | |
5305 | char *_kwnames[] = { "self", NULL }; | |
5306 | ||
5307 | self = self; | |
5308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
5309 | return NULL; | |
5310 | if (_argo0) { | |
5311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
5313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
5314 | return NULL; | |
5315 | } | |
5316 | } | |
5317 | { | |
5318 | wxPy_BEGIN_ALLOW_THREADS; | |
5319 | delete_wxLogNull(_arg0); | |
5320 | ||
5321 | wxPy_END_ALLOW_THREADS; | |
5322 | } Py_INCREF(Py_None); | |
5323 | _resultobj = Py_None; | |
5324 | return _resultobj; | |
5325 | } | |
5326 | ||
5327 | static void *SwigwxLogChainTowxLog(void *ptr) { | |
5328 | wxLogChain *src; | |
5329 | wxLog *dest; | |
5330 | src = (wxLogChain *) ptr; | |
5331 | dest = (wxLog *) src; | |
5332 | return (void *) dest; | |
5333 | } | |
5334 | ||
5335 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5336 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5337 | PyObject * _resultobj; | |
5338 | wxLogChain * _result; | |
5339 | wxLog * _arg0; | |
5340 | PyObject * _argo0 = 0; | |
5341 | char *_kwnames[] = { "logger", NULL }; | |
5342 | char _ptemp[128]; | |
5343 | ||
5344 | self = self; | |
5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5346 | return NULL; | |
5347 | if (_argo0) { | |
5348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5351 | return NULL; | |
5352 | } | |
5353 | } | |
5354 | { | |
5355 | wxPy_BEGIN_ALLOW_THREADS; | |
5356 | _result = (wxLogChain *)new_wxLogChain(_arg0); | |
5357 | ||
5358 | wxPy_END_ALLOW_THREADS; | |
5359 | } if (_result) { | |
5360 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5361 | _resultobj = Py_BuildValue("s",_ptemp); | |
5362 | } else { | |
5363 | Py_INCREF(Py_None); | |
5364 | _resultobj = Py_None; | |
5365 | } | |
5366 | return _resultobj; | |
5367 | } | |
5368 | ||
5369 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5370 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5371 | PyObject * _resultobj; | |
5372 | wxLogChain * _arg0; | |
5373 | wxLog * _arg1; | |
5374 | PyObject * _argo0 = 0; | |
5375 | PyObject * _argo1 = 0; | |
5376 | char *_kwnames[] = { "self","logger", NULL }; | |
5377 | ||
5378 | self = self; | |
5379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5380 | return NULL; | |
5381 | if (_argo0) { | |
5382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5385 | return NULL; | |
5386 | } | |
5387 | } | |
5388 | if (_argo1) { | |
5389 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5390 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5392 | return NULL; | |
5393 | } | |
5394 | } | |
5395 | { | |
5396 | wxPy_BEGIN_ALLOW_THREADS; | |
5397 | wxLogChain_SetLog(_arg0,_arg1); | |
5398 | ||
5399 | wxPy_END_ALLOW_THREADS; | |
5400 | } Py_INCREF(Py_None); | |
5401 | _resultobj = Py_None; | |
5402 | return _resultobj; | |
5403 | } | |
5404 | ||
5405 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5406 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5407 | PyObject * _resultobj; | |
5408 | wxLogChain * _arg0; | |
5409 | bool _arg1; | |
5410 | PyObject * _argo0 = 0; | |
5411 | int tempbool1; | |
5412 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5413 | ||
5414 | self = self; | |
5415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5416 | return NULL; | |
5417 | if (_argo0) { | |
5418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5421 | return NULL; | |
5422 | } | |
5423 | } | |
5424 | _arg1 = (bool ) tempbool1; | |
5425 | { | |
5426 | wxPy_BEGIN_ALLOW_THREADS; | |
5427 | wxLogChain_PassMessages(_arg0,_arg1); | |
5428 | ||
5429 | wxPy_END_ALLOW_THREADS; | |
5430 | } Py_INCREF(Py_None); | |
5431 | _resultobj = Py_None; | |
5432 | return _resultobj; | |
5433 | } | |
5434 | ||
5435 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5436 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5437 | PyObject * _resultobj; | |
5438 | bool _result; | |
5439 | wxLogChain * _arg0; | |
5440 | PyObject * _argo0 = 0; | |
5441 | char *_kwnames[] = { "self", NULL }; | |
5442 | ||
5443 | self = self; | |
5444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5445 | return NULL; | |
5446 | if (_argo0) { | |
5447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5450 | return NULL; | |
5451 | } | |
5452 | } | |
5453 | { | |
5454 | wxPy_BEGIN_ALLOW_THREADS; | |
5455 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); | |
5456 | ||
5457 | wxPy_END_ALLOW_THREADS; | |
5458 | } _resultobj = Py_BuildValue("i",_result); | |
5459 | return _resultobj; | |
5460 | } | |
5461 | ||
5462 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5463 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5464 | PyObject * _resultobj; | |
5465 | wxLog * _result; | |
5466 | wxLogChain * _arg0; | |
5467 | PyObject * _argo0 = 0; | |
5468 | char *_kwnames[] = { "self", NULL }; | |
5469 | char _ptemp[128]; | |
5470 | ||
5471 | self = self; | |
5472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5473 | return NULL; | |
5474 | if (_argo0) { | |
5475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5478 | return NULL; | |
5479 | } | |
5480 | } | |
5481 | { | |
5482 | wxPy_BEGIN_ALLOW_THREADS; | |
5483 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); | |
5484 | ||
5485 | wxPy_END_ALLOW_THREADS; | |
5486 | } if (_result) { | |
5487 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5488 | _resultobj = Py_BuildValue("s",_ptemp); | |
5489 | } else { | |
5490 | Py_INCREF(Py_None); | |
5491 | _resultobj = Py_None; | |
5492 | } | |
5493 | return _resultobj; | |
5494 | } | |
5495 | ||
5496 | static void *SwigwxPyLogTowxLog(void *ptr) { | |
5497 | wxPyLog *src; | |
5498 | wxLog *dest; | |
5499 | src = (wxPyLog *) ptr; | |
5500 | dest = (wxLog *) src; | |
5501 | return (void *) dest; | |
5502 | } | |
5503 | ||
5504 | #define new_wxPyLog() (new wxPyLog()) | |
5505 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5506 | PyObject * _resultobj; | |
5507 | wxPyLog * _result; | |
5508 | char *_kwnames[] = { NULL }; | |
5509 | char _ptemp[128]; | |
5510 | ||
5511 | self = self; | |
5512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5513 | return NULL; | |
5514 | { | |
5515 | wxPy_BEGIN_ALLOW_THREADS; | |
5516 | _result = (wxPyLog *)new_wxPyLog(); | |
5517 | ||
5518 | wxPy_END_ALLOW_THREADS; | |
5519 | } if (_result) { | |
5520 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5521 | _resultobj = Py_BuildValue("s",_ptemp); | |
5522 | } else { | |
5523 | Py_INCREF(Py_None); | |
5524 | _resultobj = Py_None; | |
5525 | } | |
5526 | return _resultobj; | |
5527 | } | |
5528 | ||
5529 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
5530 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5531 | PyObject * _resultobj; | |
5532 | wxPyLog * _arg0; | |
5533 | PyObject * _arg1; | |
5534 | PyObject * _arg2; | |
5535 | PyObject * _argo0 = 0; | |
5536 | PyObject * _obj1 = 0; | |
5537 | PyObject * _obj2 = 0; | |
5538 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5539 | ||
5540 | self = self; | |
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5542 | return NULL; | |
5543 | if (_argo0) { | |
5544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); | |
5547 | return NULL; | |
5548 | } | |
5549 | } | |
5550 | { | |
5551 | _arg1 = _obj1; | |
5552 | } | |
5553 | { | |
5554 | _arg2 = _obj2; | |
5555 | } | |
5556 | { | |
5557 | wxPy_BEGIN_ALLOW_THREADS; | |
5558 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); | |
5559 | ||
5560 | wxPy_END_ALLOW_THREADS; | |
5561 | } Py_INCREF(Py_None); | |
5562 | _resultobj = Py_None; | |
5563 | return _resultobj; | |
5564 | } | |
5565 | ||
5566 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5567 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5568 | PyObject * _resultobj; | |
5569 | wxPyLog * _arg0; | |
5570 | PyObject * _argo0 = 0; | |
5571 | char *_kwnames[] = { "self", NULL }; | |
5572 | ||
5573 | self = self; | |
5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5575 | return NULL; | |
5576 | if (_argo0) { | |
5577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5580 | return NULL; | |
5581 | } | |
5582 | } | |
5583 | { | |
5584 | wxPy_BEGIN_ALLOW_THREADS; | |
5585 | wxPyLog_Destroy(_arg0); | |
5586 | ||
5587 | wxPy_END_ALLOW_THREADS; | |
5588 | } Py_INCREF(Py_None); | |
5589 | _resultobj = Py_None; | |
5590 | return _resultobj; | |
5591 | } | |
5592 | ||
5593 | static void *SwigwxProcessEventTowxEvent(void *ptr) { | |
5594 | wxProcessEvent *src; | |
5595 | wxEvent *dest; | |
5596 | src = (wxProcessEvent *) ptr; | |
5597 | dest = (wxEvent *) src; | |
5598 | return (void *) dest; | |
5599 | } | |
5600 | ||
5601 | static void *SwigwxProcessEventTowxObject(void *ptr) { | |
5602 | wxProcessEvent *src; | |
5603 | wxObject *dest; | |
5604 | src = (wxProcessEvent *) ptr; | |
5605 | dest = (wxObject *) src; | |
5606 | return (void *) dest; | |
5607 | } | |
5608 | ||
5609 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) | |
5610 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5611 | PyObject * _resultobj; | |
5612 | wxProcessEvent * _result; | |
5613 | int _arg0 = (int ) 0; | |
5614 | int _arg1 = (int ) 0; | |
5615 | int _arg2 = (int ) 0; | |
5616 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5617 | char _ptemp[128]; | |
5618 | ||
5619 | self = self; | |
5620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5621 | return NULL; | |
5622 | { | |
5623 | wxPy_BEGIN_ALLOW_THREADS; | |
5624 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); | |
5625 | ||
5626 | wxPy_END_ALLOW_THREADS; | |
5627 | } if (_result) { | |
5628 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5629 | _resultobj = Py_BuildValue("s",_ptemp); | |
5630 | } else { | |
5631 | Py_INCREF(Py_None); | |
5632 | _resultobj = Py_None; | |
5633 | } | |
5634 | return _resultobj; | |
5635 | } | |
5636 | ||
5637 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5638 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5639 | PyObject * _resultobj; | |
5640 | int _result; | |
5641 | wxProcessEvent * _arg0; | |
5642 | PyObject * _argo0 = 0; | |
5643 | char *_kwnames[] = { "self", NULL }; | |
5644 | ||
5645 | self = self; | |
5646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5647 | return NULL; | |
5648 | if (_argo0) { | |
5649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5652 | return NULL; | |
5653 | } | |
5654 | } | |
5655 | { | |
5656 | wxPy_BEGIN_ALLOW_THREADS; | |
5657 | _result = (int )wxProcessEvent_GetPid(_arg0); | |
5658 | ||
5659 | wxPy_END_ALLOW_THREADS; | |
5660 | } _resultobj = Py_BuildValue("i",_result); | |
5661 | return _resultobj; | |
5662 | } | |
5663 | ||
5664 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
5665 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5666 | PyObject * _resultobj; | |
5667 | int _result; | |
5668 | wxProcessEvent * _arg0; | |
5669 | PyObject * _argo0 = 0; | |
5670 | char *_kwnames[] = { "self", NULL }; | |
5671 | ||
5672 | self = self; | |
5673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
5674 | return NULL; | |
5675 | if (_argo0) { | |
5676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5679 | return NULL; | |
5680 | } | |
5681 | } | |
5682 | { | |
5683 | wxPy_BEGIN_ALLOW_THREADS; | |
5684 | _result = (int )wxProcessEvent_GetExitCode(_arg0); | |
5685 | ||
5686 | wxPy_END_ALLOW_THREADS; | |
5687 | } _resultobj = Py_BuildValue("i",_result); | |
5688 | return _resultobj; | |
5689 | } | |
5690 | ||
5691 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5692 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5693 | PyObject * _resultobj; | |
5694 | int _result; | |
5695 | wxProcessEvent * _arg0; | |
5696 | int _arg1; | |
5697 | PyObject * _argo0 = 0; | |
5698 | char *_kwnames[] = { "self","m_pid", NULL }; | |
5699 | ||
5700 | self = self; | |
5701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
5702 | return NULL; | |
5703 | if (_argo0) { | |
5704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
5707 | return NULL; | |
5708 | } | |
5709 | } | |
5710 | { | |
5711 | wxPy_BEGIN_ALLOW_THREADS; | |
5712 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); | |
5713 | ||
5714 | wxPy_END_ALLOW_THREADS; | |
5715 | } _resultobj = Py_BuildValue("i",_result); | |
5716 | return _resultobj; | |
5717 | } | |
5718 | ||
5719 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
5720 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5721 | PyObject * _resultobj; | |
5722 | int _result; | |
5723 | wxProcessEvent * _arg0; | |
5724 | PyObject * _argo0 = 0; | |
5725 | char *_kwnames[] = { "self", NULL }; | |
5726 | ||
5727 | self = self; | |
5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
5729 | return NULL; | |
5730 | if (_argo0) { | |
5731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
5734 | return NULL; | |
5735 | } | |
5736 | } | |
5737 | { | |
5738 | wxPy_BEGIN_ALLOW_THREADS; | |
5739 | _result = (int )wxProcessEvent_m_pid_get(_arg0); | |
5740 | ||
5741 | wxPy_END_ALLOW_THREADS; | |
5742 | } _resultobj = Py_BuildValue("i",_result); | |
5743 | return _resultobj; | |
5744 | } | |
5745 | ||
5746 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
5747 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5748 | PyObject * _resultobj; | |
5749 | int _result; | |
5750 | wxProcessEvent * _arg0; | |
5751 | int _arg1; | |
5752 | PyObject * _argo0 = 0; | |
5753 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
5754 | ||
5755 | self = self; | |
5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
5757 | return NULL; | |
5758 | if (_argo0) { | |
5759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
5762 | return NULL; | |
5763 | } | |
5764 | } | |
5765 | { | |
5766 | wxPy_BEGIN_ALLOW_THREADS; | |
5767 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); | |
5768 | ||
5769 | wxPy_END_ALLOW_THREADS; | |
5770 | } _resultobj = Py_BuildValue("i",_result); | |
5771 | return _resultobj; | |
5772 | } | |
5773 | ||
5774 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
5775 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5776 | PyObject * _resultobj; | |
5777 | int _result; | |
5778 | wxProcessEvent * _arg0; | |
5779 | PyObject * _argo0 = 0; | |
5780 | char *_kwnames[] = { "self", NULL }; | |
5781 | ||
5782 | self = self; | |
5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
5784 | return NULL; | |
5785 | if (_argo0) { | |
5786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
5789 | return NULL; | |
5790 | } | |
5791 | } | |
5792 | { | |
5793 | wxPy_BEGIN_ALLOW_THREADS; | |
5794 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); | |
5795 | ||
5796 | wxPy_END_ALLOW_THREADS; | |
5797 | } _resultobj = Py_BuildValue("i",_result); | |
5798 | return _resultobj; | |
5799 | } | |
5800 | ||
5801 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
5802 | wxPyProcess *src; | |
5803 | wxEvtHandler *dest; | |
5804 | src = (wxPyProcess *) ptr; | |
5805 | dest = (wxEvtHandler *) src; | |
5806 | return (void *) dest; | |
5807 | } | |
5808 | ||
5809 | static void *SwigwxPyProcessTowxObject(void *ptr) { | |
5810 | wxPyProcess *src; | |
5811 | wxObject *dest; | |
5812 | src = (wxPyProcess *) ptr; | |
5813 | dest = (wxObject *) src; | |
5814 | return (void *) dest; | |
5815 | } | |
5816 | ||
5817 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) | |
5818 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5819 | PyObject * _resultobj; | |
5820 | wxPyProcess * _result; | |
5821 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
5822 | int _arg1 = (int ) -1; | |
5823 | PyObject * _argo0 = 0; | |
5824 | char *_kwnames[] = { "parent","id", NULL }; | |
5825 | char _ptemp[128]; | |
5826 | ||
5827 | self = self; | |
5828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
5829 | return NULL; | |
5830 | if (_argo0) { | |
5831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
5833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
5834 | return NULL; | |
5835 | } | |
5836 | } | |
5837 | { | |
5838 | wxPy_BEGIN_ALLOW_THREADS; | |
5839 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); | |
5840 | ||
5841 | wxPy_END_ALLOW_THREADS; | |
5842 | } if (_result) { | |
5843 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
5844 | _resultobj = Py_BuildValue("s",_ptemp); | |
5845 | } else { | |
5846 | Py_INCREF(Py_None); | |
5847 | _resultobj = Py_None; | |
5848 | } | |
5849 | return _resultobj; | |
5850 | } | |
5851 | ||
5852 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
5853 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5854 | PyObject * _resultobj; | |
5855 | wxPyProcess * _arg0; | |
5856 | PyObject * _argo0 = 0; | |
5857 | char *_kwnames[] = { "self", NULL }; | |
5858 | ||
5859 | self = self; | |
5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
5861 | return NULL; | |
5862 | if (_argo0) { | |
5863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
5866 | return NULL; | |
5867 | } | |
5868 | } | |
5869 | { | |
5870 | wxPy_BEGIN_ALLOW_THREADS; | |
5871 | wxPyProcess_Destroy(_arg0); | |
5872 | ||
5873 | wxPy_END_ALLOW_THREADS; | |
5874 | } Py_INCREF(Py_None); | |
5875 | _resultobj = Py_None; | |
5876 | return _resultobj; | |
5877 | } | |
5878 | ||
5879 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
5880 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5881 | PyObject * _resultobj; | |
5882 | wxPyProcess * _arg0; | |
5883 | PyObject * _arg1; | |
5884 | PyObject * _arg2; | |
5885 | PyObject * _argo0 = 0; | |
5886 | PyObject * _obj1 = 0; | |
5887 | PyObject * _obj2 = 0; | |
5888 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5889 | ||
5890 | self = self; | |
5891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5892 | return NULL; | |
5893 | if (_argo0) { | |
5894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); | |
5897 | return NULL; | |
5898 | } | |
5899 | } | |
5900 | { | |
5901 | _arg1 = _obj1; | |
5902 | } | |
5903 | { | |
5904 | _arg2 = _obj2; | |
5905 | } | |
5906 | { | |
5907 | wxPy_BEGIN_ALLOW_THREADS; | |
5908 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); | |
5909 | ||
5910 | wxPy_END_ALLOW_THREADS; | |
5911 | } Py_INCREF(Py_None); | |
5912 | _resultobj = Py_None; | |
5913 | return _resultobj; | |
5914 | } | |
5915 | ||
5916 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
5917 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5918 | PyObject * _resultobj; | |
5919 | wxPyProcess * _arg0; | |
5920 | int _arg1; | |
5921 | int _arg2; | |
5922 | PyObject * _argo0 = 0; | |
5923 | char *_kwnames[] = { "self","pid","status", NULL }; | |
5924 | ||
5925 | self = self; | |
5926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5927 | return NULL; | |
5928 | if (_argo0) { | |
5929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
5932 | return NULL; | |
5933 | } | |
5934 | } | |
5935 | { | |
5936 | wxPy_BEGIN_ALLOW_THREADS; | |
5937 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); | |
5938 | ||
5939 | wxPy_END_ALLOW_THREADS; | |
5940 | } Py_INCREF(Py_None); | |
5941 | _resultobj = Py_None; | |
5942 | return _resultobj; | |
5943 | } | |
5944 | ||
5945 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
5946 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5947 | PyObject * _resultobj; | |
5948 | wxPyProcess * _arg0; | |
5949 | PyObject * _argo0 = 0; | |
5950 | char *_kwnames[] = { "self", NULL }; | |
5951 | ||
5952 | self = self; | |
5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
5954 | return NULL; | |
5955 | if (_argo0) { | |
5956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
5959 | return NULL; | |
5960 | } | |
5961 | } | |
5962 | { | |
5963 | wxPy_BEGIN_ALLOW_THREADS; | |
5964 | wxProcess_Redirect(_arg0); | |
5965 | ||
5966 | wxPy_END_ALLOW_THREADS; | |
5967 | } Py_INCREF(Py_None); | |
5968 | _resultobj = Py_None; | |
5969 | return _resultobj; | |
5970 | } | |
5971 | ||
5972 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
5973 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5974 | PyObject * _resultobj; | |
5975 | bool _result; | |
5976 | wxPyProcess * _arg0; | |
5977 | PyObject * _argo0 = 0; | |
5978 | char *_kwnames[] = { "self", NULL }; | |
5979 | ||
5980 | self = self; | |
5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
5982 | return NULL; | |
5983 | if (_argo0) { | |
5984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
5986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
5987 | return NULL; | |
5988 | } | |
5989 | } | |
5990 | { | |
5991 | wxPy_BEGIN_ALLOW_THREADS; | |
5992 | _result = (bool )wxProcess_IsRedirected(_arg0); | |
5993 | ||
5994 | wxPy_END_ALLOW_THREADS; | |
5995 | } _resultobj = Py_BuildValue("i",_result); | |
5996 | return _resultobj; | |
5997 | } | |
5998 | ||
5999 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6000 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6001 | PyObject * _resultobj; | |
6002 | wxPyProcess * _arg0; | |
6003 | PyObject * _argo0 = 0; | |
6004 | char *_kwnames[] = { "self", NULL }; | |
6005 | ||
6006 | self = self; | |
6007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6008 | return NULL; | |
6009 | if (_argo0) { | |
6010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6013 | return NULL; | |
6014 | } | |
6015 | } | |
6016 | { | |
6017 | wxPy_BEGIN_ALLOW_THREADS; | |
6018 | wxProcess_Detach(_arg0); | |
6019 | ||
6020 | wxPy_END_ALLOW_THREADS; | |
6021 | } Py_INCREF(Py_None); | |
6022 | _resultobj = Py_None; | |
6023 | return _resultobj; | |
6024 | } | |
6025 | ||
6026 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6027 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6028 | PyObject * _resultobj; | |
6029 | wxInputStream * _result; | |
6030 | wxPyProcess * _arg0; | |
6031 | PyObject * _argo0 = 0; | |
6032 | char *_kwnames[] = { "self", NULL }; | |
6033 | ||
6034 | self = self; | |
6035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6036 | return NULL; | |
6037 | if (_argo0) { | |
6038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6041 | return NULL; | |
6042 | } | |
6043 | } | |
6044 | { | |
6045 | wxPy_BEGIN_ALLOW_THREADS; | |
6046 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); | |
6047 | ||
6048 | wxPy_END_ALLOW_THREADS; | |
6049 | }{ | |
6050 | wxPyInputStream * _ptr = NULL; | |
6051 | ||
6052 | if (_result) { | |
6053 | _ptr = new wxPyInputStream(_result); | |
6054 | } | |
6055 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); | |
6056 | } | |
6057 | return _resultobj; | |
6058 | } | |
6059 | ||
6060 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6061 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6062 | PyObject * _resultobj; | |
6063 | wxInputStream * _result; | |
6064 | wxPyProcess * _arg0; | |
6065 | PyObject * _argo0 = 0; | |
6066 | char *_kwnames[] = { "self", NULL }; | |
6067 | ||
6068 | self = self; | |
6069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6070 | return NULL; | |
6071 | if (_argo0) { | |
6072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6075 | return NULL; | |
6076 | } | |
6077 | } | |
6078 | { | |
6079 | wxPy_BEGIN_ALLOW_THREADS; | |
6080 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); | |
6081 | ||
6082 | wxPy_END_ALLOW_THREADS; | |
6083 | }{ | |
6084 | wxPyInputStream * _ptr = NULL; | |
6085 | ||
6086 | if (_result) { | |
6087 | _ptr = new wxPyInputStream(_result); | |
6088 | } | |
6089 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); | |
6090 | } | |
6091 | return _resultobj; | |
6092 | } | |
6093 | ||
6094 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6095 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6096 | PyObject * _resultobj; | |
6097 | wxOutputStream * _result; | |
6098 | wxPyProcess * _arg0; | |
6099 | PyObject * _argo0 = 0; | |
6100 | char *_kwnames[] = { "self", NULL }; | |
6101 | char _ptemp[128]; | |
6102 | ||
6103 | self = self; | |
6104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6105 | return NULL; | |
6106 | if (_argo0) { | |
6107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6110 | return NULL; | |
6111 | } | |
6112 | } | |
6113 | { | |
6114 | wxPy_BEGIN_ALLOW_THREADS; | |
6115 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); | |
6116 | ||
6117 | wxPy_END_ALLOW_THREADS; | |
6118 | } if (_result) { | |
6119 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6120 | _resultobj = Py_BuildValue("s",_ptemp); | |
6121 | } else { | |
6122 | Py_INCREF(Py_None); | |
6123 | _resultobj = Py_None; | |
6124 | } | |
6125 | return _resultobj; | |
6126 | } | |
6127 | ||
6128 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6129 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6130 | PyObject * _resultobj; | |
6131 | wxPyProcess * _arg0; | |
6132 | PyObject * _argo0 = 0; | |
6133 | char *_kwnames[] = { "self", NULL }; | |
6134 | ||
6135 | self = self; | |
6136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6137 | return NULL; | |
6138 | if (_argo0) { | |
6139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6142 | return NULL; | |
6143 | } | |
6144 | } | |
6145 | { | |
6146 | wxPy_BEGIN_ALLOW_THREADS; | |
6147 | wxProcess_CloseOutput(_arg0); | |
6148 | ||
6149 | wxPy_END_ALLOW_THREADS; | |
6150 | } Py_INCREF(Py_None); | |
6151 | _resultobj = Py_None; | |
6152 | return _resultobj; | |
6153 | } | |
6154 | ||
6155 | static void *SwigwxJoystickTowxObject(void *ptr) { | |
6156 | wxJoystick *src; | |
6157 | wxObject *dest; | |
6158 | src = (wxJoystick *) ptr; | |
6159 | dest = (wxObject *) src; | |
6160 | return (void *) dest; | |
6161 | } | |
6162 | ||
6163 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) | |
6164 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6165 | PyObject * _resultobj; | |
6166 | wxJoystick * _result; | |
6167 | int _arg0 = (int ) wxJOYSTICK1; | |
6168 | char *_kwnames[] = { "joystick", NULL }; | |
6169 | char _ptemp[128]; | |
6170 | ||
6171 | self = self; | |
6172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6173 | return NULL; | |
6174 | { | |
6175 | wxPy_BEGIN_ALLOW_THREADS; | |
6176 | _result = (wxJoystick *)new_wxJoystick(_arg0); | |
6177 | ||
6178 | wxPy_END_ALLOW_THREADS; | |
6179 | } if (_result) { | |
6180 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6181 | _resultobj = Py_BuildValue("s",_ptemp); | |
6182 | } else { | |
6183 | Py_INCREF(Py_None); | |
6184 | _resultobj = Py_None; | |
6185 | } | |
6186 | return _resultobj; | |
6187 | } | |
6188 | ||
6189 | #define delete_wxJoystick(_swigobj) (delete _swigobj) | |
6190 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6191 | PyObject * _resultobj; | |
6192 | wxJoystick * _arg0; | |
6193 | PyObject * _argo0 = 0; | |
6194 | char *_kwnames[] = { "self", NULL }; | |
6195 | ||
6196 | self = self; | |
6197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6198 | return NULL; | |
6199 | if (_argo0) { | |
6200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6203 | return NULL; | |
6204 | } | |
6205 | } | |
6206 | { | |
6207 | wxPy_BEGIN_ALLOW_THREADS; | |
6208 | delete_wxJoystick(_arg0); | |
6209 | ||
6210 | wxPy_END_ALLOW_THREADS; | |
6211 | } Py_INCREF(Py_None); | |
6212 | _resultobj = Py_None; | |
6213 | return _resultobj; | |
6214 | } | |
6215 | ||
6216 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
6217 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6218 | PyObject * _resultobj; | |
6219 | wxPoint * _result; | |
6220 | wxJoystick * _arg0; | |
6221 | PyObject * _argo0 = 0; | |
6222 | char *_kwnames[] = { "self", NULL }; | |
6223 | char _ptemp[128]; | |
6224 | ||
6225 | self = self; | |
6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6227 | return NULL; | |
6228 | if (_argo0) { | |
6229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6232 | return NULL; | |
6233 | } | |
6234 | } | |
6235 | { | |
6236 | wxPy_BEGIN_ALLOW_THREADS; | |
6237 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); | |
6238 | ||
6239 | wxPy_END_ALLOW_THREADS; | |
6240 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
6241 | _resultobj = Py_BuildValue("s",_ptemp); | |
6242 | return _resultobj; | |
6243 | } | |
6244 | ||
6245 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6246 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6247 | PyObject * _resultobj; | |
6248 | int _result; | |
6249 | wxJoystick * _arg0; | |
6250 | PyObject * _argo0 = 0; | |
6251 | char *_kwnames[] = { "self", NULL }; | |
6252 | ||
6253 | self = self; | |
6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6255 | return NULL; | |
6256 | if (_argo0) { | |
6257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6260 | return NULL; | |
6261 | } | |
6262 | } | |
6263 | { | |
6264 | wxPy_BEGIN_ALLOW_THREADS; | |
6265 | _result = (int )wxJoystick_GetZPosition(_arg0); | |
6266 | ||
6267 | wxPy_END_ALLOW_THREADS; | |
6268 | } _resultobj = Py_BuildValue("i",_result); | |
6269 | return _resultobj; | |
6270 | } | |
6271 | ||
6272 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6273 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6274 | PyObject * _resultobj; | |
6275 | int _result; | |
6276 | wxJoystick * _arg0; | |
6277 | PyObject * _argo0 = 0; | |
6278 | char *_kwnames[] = { "self", NULL }; | |
6279 | ||
6280 | self = self; | |
6281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6282 | return NULL; | |
6283 | if (_argo0) { | |
6284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6287 | return NULL; | |
6288 | } | |
6289 | } | |
6290 | { | |
6291 | wxPy_BEGIN_ALLOW_THREADS; | |
6292 | _result = (int )wxJoystick_GetButtonState(_arg0); | |
6293 | ||
6294 | wxPy_END_ALLOW_THREADS; | |
6295 | } _resultobj = Py_BuildValue("i",_result); | |
6296 | return _resultobj; | |
6297 | } | |
6298 | ||
6299 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6300 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6301 | PyObject * _resultobj; | |
6302 | int _result; | |
6303 | wxJoystick * _arg0; | |
6304 | PyObject * _argo0 = 0; | |
6305 | char *_kwnames[] = { "self", NULL }; | |
6306 | ||
6307 | self = self; | |
6308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6309 | return NULL; | |
6310 | if (_argo0) { | |
6311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6314 | return NULL; | |
6315 | } | |
6316 | } | |
6317 | { | |
6318 | wxPy_BEGIN_ALLOW_THREADS; | |
6319 | _result = (int )wxJoystick_GetPOVPosition(_arg0); | |
6320 | ||
6321 | wxPy_END_ALLOW_THREADS; | |
6322 | } _resultobj = Py_BuildValue("i",_result); | |
6323 | return _resultobj; | |
6324 | } | |
6325 | ||
6326 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6327 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6328 | PyObject * _resultobj; | |
6329 | int _result; | |
6330 | wxJoystick * _arg0; | |
6331 | PyObject * _argo0 = 0; | |
6332 | char *_kwnames[] = { "self", NULL }; | |
6333 | ||
6334 | self = self; | |
6335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6336 | return NULL; | |
6337 | if (_argo0) { | |
6338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6341 | return NULL; | |
6342 | } | |
6343 | } | |
6344 | { | |
6345 | wxPy_BEGIN_ALLOW_THREADS; | |
6346 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); | |
6347 | ||
6348 | wxPy_END_ALLOW_THREADS; | |
6349 | } _resultobj = Py_BuildValue("i",_result); | |
6350 | return _resultobj; | |
6351 | } | |
6352 | ||
6353 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6354 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6355 | PyObject * _resultobj; | |
6356 | int _result; | |
6357 | wxJoystick * _arg0; | |
6358 | PyObject * _argo0 = 0; | |
6359 | char *_kwnames[] = { "self", NULL }; | |
6360 | ||
6361 | self = self; | |
6362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6363 | return NULL; | |
6364 | if (_argo0) { | |
6365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6368 | return NULL; | |
6369 | } | |
6370 | } | |
6371 | { | |
6372 | wxPy_BEGIN_ALLOW_THREADS; | |
6373 | _result = (int )wxJoystick_GetRudderPosition(_arg0); | |
6374 | ||
6375 | wxPy_END_ALLOW_THREADS; | |
6376 | } _resultobj = Py_BuildValue("i",_result); | |
6377 | return _resultobj; | |
6378 | } | |
6379 | ||
6380 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6381 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6382 | PyObject * _resultobj; | |
6383 | int _result; | |
6384 | wxJoystick * _arg0; | |
6385 | PyObject * _argo0 = 0; | |
6386 | char *_kwnames[] = { "self", NULL }; | |
6387 | ||
6388 | self = self; | |
6389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6390 | return NULL; | |
6391 | if (_argo0) { | |
6392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6395 | return NULL; | |
6396 | } | |
6397 | } | |
6398 | { | |
6399 | wxPy_BEGIN_ALLOW_THREADS; | |
6400 | _result = (int )wxJoystick_GetUPosition(_arg0); | |
6401 | ||
6402 | wxPy_END_ALLOW_THREADS; | |
6403 | } _resultobj = Py_BuildValue("i",_result); | |
6404 | return _resultobj; | |
6405 | } | |
6406 | ||
6407 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6408 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6409 | PyObject * _resultobj; | |
6410 | int _result; | |
6411 | wxJoystick * _arg0; | |
6412 | PyObject * _argo0 = 0; | |
6413 | char *_kwnames[] = { "self", NULL }; | |
6414 | ||
6415 | self = self; | |
6416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6417 | return NULL; | |
6418 | if (_argo0) { | |
6419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6422 | return NULL; | |
6423 | } | |
6424 | } | |
6425 | { | |
6426 | wxPy_BEGIN_ALLOW_THREADS; | |
6427 | _result = (int )wxJoystick_GetVPosition(_arg0); | |
6428 | ||
6429 | wxPy_END_ALLOW_THREADS; | |
6430 | } _resultobj = Py_BuildValue("i",_result); | |
6431 | return _resultobj; | |
6432 | } | |
6433 | ||
6434 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6435 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6436 | PyObject * _resultobj; | |
6437 | int _result; | |
6438 | wxJoystick * _arg0; | |
6439 | PyObject * _argo0 = 0; | |
6440 | char *_kwnames[] = { "self", NULL }; | |
6441 | ||
6442 | self = self; | |
6443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6444 | return NULL; | |
6445 | if (_argo0) { | |
6446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6449 | return NULL; | |
6450 | } | |
6451 | } | |
6452 | { | |
6453 | wxPy_BEGIN_ALLOW_THREADS; | |
6454 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); | |
6455 | ||
6456 | wxPy_END_ALLOW_THREADS; | |
6457 | } _resultobj = Py_BuildValue("i",_result); | |
6458 | return _resultobj; | |
6459 | } | |
6460 | ||
6461 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6462 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6463 | PyObject * _resultobj; | |
6464 | wxJoystick * _arg0; | |
6465 | int _arg1; | |
6466 | PyObject * _argo0 = 0; | |
6467 | char *_kwnames[] = { "self","threshold", NULL }; | |
6468 | ||
6469 | self = self; | |
6470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6471 | return NULL; | |
6472 | if (_argo0) { | |
6473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
6476 | return NULL; | |
6477 | } | |
6478 | } | |
6479 | { | |
6480 | wxPy_BEGIN_ALLOW_THREADS; | |
6481 | wxJoystick_SetMovementThreshold(_arg0,_arg1); | |
6482 | ||
6483 | wxPy_END_ALLOW_THREADS; | |
6484 | } Py_INCREF(Py_None); | |
6485 | _resultobj = Py_None; | |
6486 | return _resultobj; | |
6487 | } | |
6488 | ||
6489 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
6490 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6491 | PyObject * _resultobj; | |
6492 | bool _result; | |
6493 | wxJoystick * _arg0; | |
6494 | PyObject * _argo0 = 0; | |
6495 | char *_kwnames[] = { "self", NULL }; | |
6496 | ||
6497 | self = self; | |
6498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
6499 | return NULL; | |
6500 | if (_argo0) { | |
6501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
6504 | return NULL; | |
6505 | } | |
6506 | } | |
6507 | { | |
6508 | wxPy_BEGIN_ALLOW_THREADS; | |
6509 | _result = (bool )wxJoystick_IsOk(_arg0); | |
6510 | ||
6511 | wxPy_END_ALLOW_THREADS; | |
6512 | } _resultobj = Py_BuildValue("i",_result); | |
6513 | return _resultobj; | |
6514 | } | |
6515 | ||
6516 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
6517 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6518 | PyObject * _resultobj; | |
6519 | int _result; | |
6520 | wxJoystick * _arg0; | |
6521 | PyObject * _argo0 = 0; | |
6522 | char *_kwnames[] = { "self", NULL }; | |
6523 | ||
6524 | self = self; | |
6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
6526 | return NULL; | |
6527 | if (_argo0) { | |
6528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
6531 | return NULL; | |
6532 | } | |
6533 | } | |
6534 | { | |
6535 | wxPy_BEGIN_ALLOW_THREADS; | |
6536 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); | |
6537 | ||
6538 | wxPy_END_ALLOW_THREADS; | |
6539 | } _resultobj = Py_BuildValue("i",_result); | |
6540 | return _resultobj; | |
6541 | } | |
6542 | ||
6543 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
6544 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6545 | PyObject * _resultobj; | |
6546 | int _result; | |
6547 | wxJoystick * _arg0; | |
6548 | PyObject * _argo0 = 0; | |
6549 | char *_kwnames[] = { "self", NULL }; | |
6550 | ||
6551 | self = self; | |
6552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
6553 | return NULL; | |
6554 | if (_argo0) { | |
6555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
6558 | return NULL; | |
6559 | } | |
6560 | } | |
6561 | { | |
6562 | wxPy_BEGIN_ALLOW_THREADS; | |
6563 | _result = (int )wxJoystick_GetManufacturerId(_arg0); | |
6564 | ||
6565 | wxPy_END_ALLOW_THREADS; | |
6566 | } _resultobj = Py_BuildValue("i",_result); | |
6567 | return _resultobj; | |
6568 | } | |
6569 | ||
6570 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
6571 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6572 | PyObject * _resultobj; | |
6573 | int _result; | |
6574 | wxJoystick * _arg0; | |
6575 | PyObject * _argo0 = 0; | |
6576 | char *_kwnames[] = { "self", NULL }; | |
6577 | ||
6578 | self = self; | |
6579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
6580 | return NULL; | |
6581 | if (_argo0) { | |
6582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
6585 | return NULL; | |
6586 | } | |
6587 | } | |
6588 | { | |
6589 | wxPy_BEGIN_ALLOW_THREADS; | |
6590 | _result = (int )wxJoystick_GetProductId(_arg0); | |
6591 | ||
6592 | wxPy_END_ALLOW_THREADS; | |
6593 | } _resultobj = Py_BuildValue("i",_result); | |
6594 | return _resultobj; | |
6595 | } | |
6596 | ||
6597 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
6598 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6599 | PyObject * _resultobj; | |
6600 | wxString * _result; | |
6601 | wxJoystick * _arg0; | |
6602 | PyObject * _argo0 = 0; | |
6603 | char *_kwnames[] = { "self", NULL }; | |
6604 | ||
6605 | self = self; | |
6606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
6607 | return NULL; | |
6608 | if (_argo0) { | |
6609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
6612 | return NULL; | |
6613 | } | |
6614 | } | |
6615 | { | |
6616 | wxPy_BEGIN_ALLOW_THREADS; | |
6617 | _result = new wxString (wxJoystick_GetProductName(_arg0)); | |
6618 | ||
6619 | wxPy_END_ALLOW_THREADS; | |
6620 | }{ | |
6621 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6622 | } | |
6623 | { | |
6624 | delete _result; | |
6625 | } | |
6626 | return _resultobj; | |
6627 | } | |
6628 | ||
6629 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
6630 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6631 | PyObject * _resultobj; | |
6632 | int _result; | |
6633 | wxJoystick * _arg0; | |
6634 | PyObject * _argo0 = 0; | |
6635 | char *_kwnames[] = { "self", NULL }; | |
6636 | ||
6637 | self = self; | |
6638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
6639 | return NULL; | |
6640 | if (_argo0) { | |
6641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
6644 | return NULL; | |
6645 | } | |
6646 | } | |
6647 | { | |
6648 | wxPy_BEGIN_ALLOW_THREADS; | |
6649 | _result = (int )wxJoystick_GetXMin(_arg0); | |
6650 | ||
6651 | wxPy_END_ALLOW_THREADS; | |
6652 | } _resultobj = Py_BuildValue("i",_result); | |
6653 | return _resultobj; | |
6654 | } | |
6655 | ||
6656 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
6657 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6658 | PyObject * _resultobj; | |
6659 | int _result; | |
6660 | wxJoystick * _arg0; | |
6661 | PyObject * _argo0 = 0; | |
6662 | char *_kwnames[] = { "self", NULL }; | |
6663 | ||
6664 | self = self; | |
6665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
6666 | return NULL; | |
6667 | if (_argo0) { | |
6668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
6671 | return NULL; | |
6672 | } | |
6673 | } | |
6674 | { | |
6675 | wxPy_BEGIN_ALLOW_THREADS; | |
6676 | _result = (int )wxJoystick_GetYMin(_arg0); | |
6677 | ||
6678 | wxPy_END_ALLOW_THREADS; | |
6679 | } _resultobj = Py_BuildValue("i",_result); | |
6680 | return _resultobj; | |
6681 | } | |
6682 | ||
6683 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
6684 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6685 | PyObject * _resultobj; | |
6686 | int _result; | |
6687 | wxJoystick * _arg0; | |
6688 | PyObject * _argo0 = 0; | |
6689 | char *_kwnames[] = { "self", NULL }; | |
6690 | ||
6691 | self = self; | |
6692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
6693 | return NULL; | |
6694 | if (_argo0) { | |
6695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
6698 | return NULL; | |
6699 | } | |
6700 | } | |
6701 | { | |
6702 | wxPy_BEGIN_ALLOW_THREADS; | |
6703 | _result = (int )wxJoystick_GetZMin(_arg0); | |
6704 | ||
6705 | wxPy_END_ALLOW_THREADS; | |
6706 | } _resultobj = Py_BuildValue("i",_result); | |
6707 | return _resultobj; | |
6708 | } | |
6709 | ||
6710 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
6711 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6712 | PyObject * _resultobj; | |
6713 | int _result; | |
6714 | wxJoystick * _arg0; | |
6715 | PyObject * _argo0 = 0; | |
6716 | char *_kwnames[] = { "self", NULL }; | |
6717 | ||
6718 | self = self; | |
6719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
6720 | return NULL; | |
6721 | if (_argo0) { | |
6722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
6725 | return NULL; | |
6726 | } | |
6727 | } | |
6728 | { | |
6729 | wxPy_BEGIN_ALLOW_THREADS; | |
6730 | _result = (int )wxJoystick_GetXMax(_arg0); | |
6731 | ||
6732 | wxPy_END_ALLOW_THREADS; | |
6733 | } _resultobj = Py_BuildValue("i",_result); | |
6734 | return _resultobj; | |
6735 | } | |
6736 | ||
6737 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
6738 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6739 | PyObject * _resultobj; | |
6740 | int _result; | |
6741 | wxJoystick * _arg0; | |
6742 | PyObject * _argo0 = 0; | |
6743 | char *_kwnames[] = { "self", NULL }; | |
6744 | ||
6745 | self = self; | |
6746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
6747 | return NULL; | |
6748 | if (_argo0) { | |
6749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
6752 | return NULL; | |
6753 | } | |
6754 | } | |
6755 | { | |
6756 | wxPy_BEGIN_ALLOW_THREADS; | |
6757 | _result = (int )wxJoystick_GetYMax(_arg0); | |
6758 | ||
6759 | wxPy_END_ALLOW_THREADS; | |
6760 | } _resultobj = Py_BuildValue("i",_result); | |
6761 | return _resultobj; | |
6762 | } | |
6763 | ||
6764 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
6765 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6766 | PyObject * _resultobj; | |
6767 | int _result; | |
6768 | wxJoystick * _arg0; | |
6769 | PyObject * _argo0 = 0; | |
6770 | char *_kwnames[] = { "self", NULL }; | |
6771 | ||
6772 | self = self; | |
6773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
6774 | return NULL; | |
6775 | if (_argo0) { | |
6776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
6779 | return NULL; | |
6780 | } | |
6781 | } | |
6782 | { | |
6783 | wxPy_BEGIN_ALLOW_THREADS; | |
6784 | _result = (int )wxJoystick_GetZMax(_arg0); | |
6785 | ||
6786 | wxPy_END_ALLOW_THREADS; | |
6787 | } _resultobj = Py_BuildValue("i",_result); | |
6788 | return _resultobj; | |
6789 | } | |
6790 | ||
6791 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
6792 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6793 | PyObject * _resultobj; | |
6794 | int _result; | |
6795 | wxJoystick * _arg0; | |
6796 | PyObject * _argo0 = 0; | |
6797 | char *_kwnames[] = { "self", NULL }; | |
6798 | ||
6799 | self = self; | |
6800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
6801 | return NULL; | |
6802 | if (_argo0) { | |
6803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
6806 | return NULL; | |
6807 | } | |
6808 | } | |
6809 | { | |
6810 | wxPy_BEGIN_ALLOW_THREADS; | |
6811 | _result = (int )wxJoystick_GetNumberButtons(_arg0); | |
6812 | ||
6813 | wxPy_END_ALLOW_THREADS; | |
6814 | } _resultobj = Py_BuildValue("i",_result); | |
6815 | return _resultobj; | |
6816 | } | |
6817 | ||
6818 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
6819 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6820 | PyObject * _resultobj; | |
6821 | int _result; | |
6822 | wxJoystick * _arg0; | |
6823 | PyObject * _argo0 = 0; | |
6824 | char *_kwnames[] = { "self", NULL }; | |
6825 | ||
6826 | self = self; | |
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
6828 | return NULL; | |
6829 | if (_argo0) { | |
6830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
6833 | return NULL; | |
6834 | } | |
6835 | } | |
6836 | { | |
6837 | wxPy_BEGIN_ALLOW_THREADS; | |
6838 | _result = (int )wxJoystick_GetNumberAxes(_arg0); | |
6839 | ||
6840 | wxPy_END_ALLOW_THREADS; | |
6841 | } _resultobj = Py_BuildValue("i",_result); | |
6842 | return _resultobj; | |
6843 | } | |
6844 | ||
6845 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
6846 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6847 | PyObject * _resultobj; | |
6848 | int _result; | |
6849 | wxJoystick * _arg0; | |
6850 | PyObject * _argo0 = 0; | |
6851 | char *_kwnames[] = { "self", NULL }; | |
6852 | ||
6853 | self = self; | |
6854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
6855 | return NULL; | |
6856 | if (_argo0) { | |
6857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
6860 | return NULL; | |
6861 | } | |
6862 | } | |
6863 | { | |
6864 | wxPy_BEGIN_ALLOW_THREADS; | |
6865 | _result = (int )wxJoystick_GetMaxButtons(_arg0); | |
6866 | ||
6867 | wxPy_END_ALLOW_THREADS; | |
6868 | } _resultobj = Py_BuildValue("i",_result); | |
6869 | return _resultobj; | |
6870 | } | |
6871 | ||
6872 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
6873 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6874 | PyObject * _resultobj; | |
6875 | int _result; | |
6876 | wxJoystick * _arg0; | |
6877 | PyObject * _argo0 = 0; | |
6878 | char *_kwnames[] = { "self", NULL }; | |
6879 | ||
6880 | self = self; | |
6881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
6882 | return NULL; | |
6883 | if (_argo0) { | |
6884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
6887 | return NULL; | |
6888 | } | |
6889 | } | |
6890 | { | |
6891 | wxPy_BEGIN_ALLOW_THREADS; | |
6892 | _result = (int )wxJoystick_GetMaxAxes(_arg0); | |
6893 | ||
6894 | wxPy_END_ALLOW_THREADS; | |
6895 | } _resultobj = Py_BuildValue("i",_result); | |
6896 | return _resultobj; | |
6897 | } | |
6898 | ||
6899 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
6900 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6901 | PyObject * _resultobj; | |
6902 | int _result; | |
6903 | wxJoystick * _arg0; | |
6904 | PyObject * _argo0 = 0; | |
6905 | char *_kwnames[] = { "self", NULL }; | |
6906 | ||
6907 | self = self; | |
6908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
6909 | return NULL; | |
6910 | if (_argo0) { | |
6911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
6914 | return NULL; | |
6915 | } | |
6916 | } | |
6917 | { | |
6918 | wxPy_BEGIN_ALLOW_THREADS; | |
6919 | _result = (int )wxJoystick_GetPollingMin(_arg0); | |
6920 | ||
6921 | wxPy_END_ALLOW_THREADS; | |
6922 | } _resultobj = Py_BuildValue("i",_result); | |
6923 | return _resultobj; | |
6924 | } | |
6925 | ||
6926 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
6927 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6928 | PyObject * _resultobj; | |
6929 | int _result; | |
6930 | wxJoystick * _arg0; | |
6931 | PyObject * _argo0 = 0; | |
6932 | char *_kwnames[] = { "self", NULL }; | |
6933 | ||
6934 | self = self; | |
6935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
6936 | return NULL; | |
6937 | if (_argo0) { | |
6938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
6941 | return NULL; | |
6942 | } | |
6943 | } | |
6944 | { | |
6945 | wxPy_BEGIN_ALLOW_THREADS; | |
6946 | _result = (int )wxJoystick_GetPollingMax(_arg0); | |
6947 | ||
6948 | wxPy_END_ALLOW_THREADS; | |
6949 | } _resultobj = Py_BuildValue("i",_result); | |
6950 | return _resultobj; | |
6951 | } | |
6952 | ||
6953 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
6954 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6955 | PyObject * _resultobj; | |
6956 | int _result; | |
6957 | wxJoystick * _arg0; | |
6958 | PyObject * _argo0 = 0; | |
6959 | char *_kwnames[] = { "self", NULL }; | |
6960 | ||
6961 | self = self; | |
6962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
6963 | return NULL; | |
6964 | if (_argo0) { | |
6965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
6968 | return NULL; | |
6969 | } | |
6970 | } | |
6971 | { | |
6972 | wxPy_BEGIN_ALLOW_THREADS; | |
6973 | _result = (int )wxJoystick_GetRudderMin(_arg0); | |
6974 | ||
6975 | wxPy_END_ALLOW_THREADS; | |
6976 | } _resultobj = Py_BuildValue("i",_result); | |
6977 | return _resultobj; | |
6978 | } | |
6979 | ||
6980 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
6981 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6982 | PyObject * _resultobj; | |
6983 | int _result; | |
6984 | wxJoystick * _arg0; | |
6985 | PyObject * _argo0 = 0; | |
6986 | char *_kwnames[] = { "self", NULL }; | |
6987 | ||
6988 | self = self; | |
6989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
6990 | return NULL; | |
6991 | if (_argo0) { | |
6992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
6995 | return NULL; | |
6996 | } | |
6997 | } | |
6998 | { | |
6999 | wxPy_BEGIN_ALLOW_THREADS; | |
7000 | _result = (int )wxJoystick_GetRudderMax(_arg0); | |
7001 | ||
7002 | wxPy_END_ALLOW_THREADS; | |
7003 | } _resultobj = Py_BuildValue("i",_result); | |
7004 | return _resultobj; | |
7005 | } | |
7006 | ||
7007 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7008 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7009 | PyObject * _resultobj; | |
7010 | int _result; | |
7011 | wxJoystick * _arg0; | |
7012 | PyObject * _argo0 = 0; | |
7013 | char *_kwnames[] = { "self", NULL }; | |
7014 | ||
7015 | self = self; | |
7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7017 | return NULL; | |
7018 | if (_argo0) { | |
7019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7022 | return NULL; | |
7023 | } | |
7024 | } | |
7025 | { | |
7026 | wxPy_BEGIN_ALLOW_THREADS; | |
7027 | _result = (int )wxJoystick_GetUMin(_arg0); | |
7028 | ||
7029 | wxPy_END_ALLOW_THREADS; | |
7030 | } _resultobj = Py_BuildValue("i",_result); | |
7031 | return _resultobj; | |
7032 | } | |
7033 | ||
7034 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7035 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7036 | PyObject * _resultobj; | |
7037 | int _result; | |
7038 | wxJoystick * _arg0; | |
7039 | PyObject * _argo0 = 0; | |
7040 | char *_kwnames[] = { "self", NULL }; | |
7041 | ||
7042 | self = self; | |
7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7044 | return NULL; | |
7045 | if (_argo0) { | |
7046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7049 | return NULL; | |
7050 | } | |
7051 | } | |
7052 | { | |
7053 | wxPy_BEGIN_ALLOW_THREADS; | |
7054 | _result = (int )wxJoystick_GetUMax(_arg0); | |
7055 | ||
7056 | wxPy_END_ALLOW_THREADS; | |
7057 | } _resultobj = Py_BuildValue("i",_result); | |
7058 | return _resultobj; | |
7059 | } | |
7060 | ||
7061 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7062 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7063 | PyObject * _resultobj; | |
7064 | int _result; | |
7065 | wxJoystick * _arg0; | |
7066 | PyObject * _argo0 = 0; | |
7067 | char *_kwnames[] = { "self", NULL }; | |
7068 | ||
7069 | self = self; | |
7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7071 | return NULL; | |
7072 | if (_argo0) { | |
7073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7076 | return NULL; | |
7077 | } | |
7078 | } | |
7079 | { | |
7080 | wxPy_BEGIN_ALLOW_THREADS; | |
7081 | _result = (int )wxJoystick_GetVMin(_arg0); | |
7082 | ||
7083 | wxPy_END_ALLOW_THREADS; | |
7084 | } _resultobj = Py_BuildValue("i",_result); | |
7085 | return _resultobj; | |
7086 | } | |
7087 | ||
7088 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7089 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7090 | PyObject * _resultobj; | |
7091 | int _result; | |
7092 | wxJoystick * _arg0; | |
7093 | PyObject * _argo0 = 0; | |
7094 | char *_kwnames[] = { "self", NULL }; | |
7095 | ||
7096 | self = self; | |
7097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7098 | return NULL; | |
7099 | if (_argo0) { | |
7100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7103 | return NULL; | |
7104 | } | |
7105 | } | |
7106 | { | |
7107 | wxPy_BEGIN_ALLOW_THREADS; | |
7108 | _result = (int )wxJoystick_GetVMax(_arg0); | |
7109 | ||
7110 | wxPy_END_ALLOW_THREADS; | |
7111 | } _resultobj = Py_BuildValue("i",_result); | |
7112 | return _resultobj; | |
7113 | } | |
7114 | ||
7115 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7116 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7117 | PyObject * _resultobj; | |
7118 | bool _result; | |
7119 | wxJoystick * _arg0; | |
7120 | PyObject * _argo0 = 0; | |
7121 | char *_kwnames[] = { "self", NULL }; | |
7122 | ||
7123 | self = self; | |
7124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7125 | return NULL; | |
7126 | if (_argo0) { | |
7127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7130 | return NULL; | |
7131 | } | |
7132 | } | |
7133 | { | |
7134 | wxPy_BEGIN_ALLOW_THREADS; | |
7135 | _result = (bool )wxJoystick_HasRudder(_arg0); | |
7136 | ||
7137 | wxPy_END_ALLOW_THREADS; | |
7138 | } _resultobj = Py_BuildValue("i",_result); | |
7139 | return _resultobj; | |
7140 | } | |
7141 | ||
7142 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7143 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7144 | PyObject * _resultobj; | |
7145 | bool _result; | |
7146 | wxJoystick * _arg0; | |
7147 | PyObject * _argo0 = 0; | |
7148 | char *_kwnames[] = { "self", NULL }; | |
7149 | ||
7150 | self = self; | |
7151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7152 | return NULL; | |
7153 | if (_argo0) { | |
7154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7157 | return NULL; | |
7158 | } | |
7159 | } | |
7160 | { | |
7161 | wxPy_BEGIN_ALLOW_THREADS; | |
7162 | _result = (bool )wxJoystick_HasZ(_arg0); | |
7163 | ||
7164 | wxPy_END_ALLOW_THREADS; | |
7165 | } _resultobj = Py_BuildValue("i",_result); | |
7166 | return _resultobj; | |
7167 | } | |
7168 | ||
7169 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7170 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7171 | PyObject * _resultobj; | |
7172 | bool _result; | |
7173 | wxJoystick * _arg0; | |
7174 | PyObject * _argo0 = 0; | |
7175 | char *_kwnames[] = { "self", NULL }; | |
7176 | ||
7177 | self = self; | |
7178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7179 | return NULL; | |
7180 | if (_argo0) { | |
7181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7184 | return NULL; | |
7185 | } | |
7186 | } | |
7187 | { | |
7188 | wxPy_BEGIN_ALLOW_THREADS; | |
7189 | _result = (bool )wxJoystick_HasU(_arg0); | |
7190 | ||
7191 | wxPy_END_ALLOW_THREADS; | |
7192 | } _resultobj = Py_BuildValue("i",_result); | |
7193 | return _resultobj; | |
7194 | } | |
7195 | ||
7196 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7197 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7198 | PyObject * _resultobj; | |
7199 | bool _result; | |
7200 | wxJoystick * _arg0; | |
7201 | PyObject * _argo0 = 0; | |
7202 | char *_kwnames[] = { "self", NULL }; | |
7203 | ||
7204 | self = self; | |
7205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7206 | return NULL; | |
7207 | if (_argo0) { | |
7208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7211 | return NULL; | |
7212 | } | |
7213 | } | |
7214 | { | |
7215 | wxPy_BEGIN_ALLOW_THREADS; | |
7216 | _result = (bool )wxJoystick_HasV(_arg0); | |
7217 | ||
7218 | wxPy_END_ALLOW_THREADS; | |
7219 | } _resultobj = Py_BuildValue("i",_result); | |
7220 | return _resultobj; | |
7221 | } | |
7222 | ||
7223 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7224 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7225 | PyObject * _resultobj; | |
7226 | bool _result; | |
7227 | wxJoystick * _arg0; | |
7228 | PyObject * _argo0 = 0; | |
7229 | char *_kwnames[] = { "self", NULL }; | |
7230 | ||
7231 | self = self; | |
7232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7233 | return NULL; | |
7234 | if (_argo0) { | |
7235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7238 | return NULL; | |
7239 | } | |
7240 | } | |
7241 | { | |
7242 | wxPy_BEGIN_ALLOW_THREADS; | |
7243 | _result = (bool )wxJoystick_HasPOV(_arg0); | |
7244 | ||
7245 | wxPy_END_ALLOW_THREADS; | |
7246 | } _resultobj = Py_BuildValue("i",_result); | |
7247 | return _resultobj; | |
7248 | } | |
7249 | ||
7250 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7251 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7252 | PyObject * _resultobj; | |
7253 | bool _result; | |
7254 | wxJoystick * _arg0; | |
7255 | PyObject * _argo0 = 0; | |
7256 | char *_kwnames[] = { "self", NULL }; | |
7257 | ||
7258 | self = self; | |
7259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7260 | return NULL; | |
7261 | if (_argo0) { | |
7262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7265 | return NULL; | |
7266 | } | |
7267 | } | |
7268 | { | |
7269 | wxPy_BEGIN_ALLOW_THREADS; | |
7270 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); | |
7271 | ||
7272 | wxPy_END_ALLOW_THREADS; | |
7273 | } _resultobj = Py_BuildValue("i",_result); | |
7274 | return _resultobj; | |
7275 | } | |
7276 | ||
7277 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7278 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7279 | PyObject * _resultobj; | |
7280 | bool _result; | |
7281 | wxJoystick * _arg0; | |
7282 | PyObject * _argo0 = 0; | |
7283 | char *_kwnames[] = { "self", NULL }; | |
7284 | ||
7285 | self = self; | |
7286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7287 | return NULL; | |
7288 | if (_argo0) { | |
7289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7292 | return NULL; | |
7293 | } | |
7294 | } | |
7295 | { | |
7296 | wxPy_BEGIN_ALLOW_THREADS; | |
7297 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); | |
7298 | ||
7299 | wxPy_END_ALLOW_THREADS; | |
7300 | } _resultobj = Py_BuildValue("i",_result); | |
7301 | return _resultobj; | |
7302 | } | |
7303 | ||
7304 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7305 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7306 | PyObject * _resultobj; | |
7307 | bool _result; | |
7308 | wxJoystick * _arg0; | |
7309 | wxWindow * _arg1; | |
7310 | int _arg2 = (int ) 0; | |
7311 | PyObject * _argo0 = 0; | |
7312 | PyObject * _argo1 = 0; | |
7313 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7314 | ||
7315 | self = self; | |
7316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7317 | return NULL; | |
7318 | if (_argo0) { | |
7319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7322 | return NULL; | |
7323 | } | |
7324 | } | |
7325 | if (_argo1) { | |
7326 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7327 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7329 | return NULL; | |
7330 | } | |
7331 | } | |
7332 | { | |
7333 | wxPy_BEGIN_ALLOW_THREADS; | |
7334 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); | |
7335 | ||
7336 | wxPy_END_ALLOW_THREADS; | |
7337 | } _resultobj = Py_BuildValue("i",_result); | |
7338 | return _resultobj; | |
7339 | } | |
7340 | ||
7341 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7342 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7343 | PyObject * _resultobj; | |
7344 | bool _result; | |
7345 | wxJoystick * _arg0; | |
7346 | PyObject * _argo0 = 0; | |
7347 | char *_kwnames[] = { "self", NULL }; | |
7348 | ||
7349 | self = self; | |
7350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7351 | return NULL; | |
7352 | if (_argo0) { | |
7353 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7354 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7355 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7356 | return NULL; | |
7357 | } | |
7358 | } | |
7359 | { | |
7360 | wxPy_BEGIN_ALLOW_THREADS; | |
7361 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); | |
7362 | ||
7363 | wxPy_END_ALLOW_THREADS; | |
7364 | } _resultobj = Py_BuildValue("i",_result); | |
7365 | return _resultobj; | |
7366 | } | |
7367 | ||
7368 | static void *SwigwxWaveTowxObject(void *ptr) { | |
7369 | wxWave *src; | |
7370 | wxObject *dest; | |
7371 | src = (wxWave *) ptr; | |
7372 | dest = (wxObject *) src; | |
7373 | return (void *) dest; | |
7374 | } | |
7375 | ||
7376 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7377 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7378 | PyObject * _resultobj; | |
7379 | wxWave * _result; | |
7380 | wxString * _arg0; | |
7381 | bool _arg1 = (bool ) FALSE; | |
7382 | PyObject * _obj0 = 0; | |
7383 | int tempbool1 = (int) FALSE; | |
7384 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7385 | char _ptemp[128]; | |
7386 | ||
7387 | self = self; | |
7388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7389 | return NULL; | |
7390 | { | |
7391 | #if PYTHON_API_VERSION >= 1009 | |
7392 | char* tmpPtr; int tmpSize; | |
7393 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7394 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7395 | return NULL; | |
7396 | } | |
7397 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
7398 | return NULL; | |
7399 | _arg0 = new wxString(tmpPtr, tmpSize); | |
7400 | #else | |
7401 | if (!PyString_Check(_obj0)) { | |
7402 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7403 | return NULL; | |
7404 | } | |
7405 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
7406 | #endif | |
7407 | } | |
7408 | _arg1 = (bool ) tempbool1; | |
7409 | { | |
7410 | wxPy_BEGIN_ALLOW_THREADS; | |
7411 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); | |
7412 | ||
7413 | wxPy_END_ALLOW_THREADS; | |
7414 | } if (_result) { | |
7415 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7416 | _resultobj = Py_BuildValue("s",_ptemp); | |
7417 | } else { | |
7418 | Py_INCREF(Py_None); | |
7419 | _resultobj = Py_None; | |
7420 | } | |
7421 | { | |
7422 | if (_obj0) | |
7423 | delete _arg0; | |
7424 | } | |
7425 | return _resultobj; | |
7426 | } | |
7427 | ||
7428 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7429 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7430 | PyObject * _resultobj; | |
7431 | wxWave * _arg0; | |
7432 | PyObject * _argo0 = 0; | |
7433 | char *_kwnames[] = { "self", NULL }; | |
7434 | ||
7435 | self = self; | |
7436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7437 | return NULL; | |
7438 | if (_argo0) { | |
7439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7442 | return NULL; | |
7443 | } | |
7444 | } | |
7445 | { | |
7446 | wxPy_BEGIN_ALLOW_THREADS; | |
7447 | delete_wxWave(_arg0); | |
7448 | ||
7449 | wxPy_END_ALLOW_THREADS; | |
7450 | } Py_INCREF(Py_None); | |
7451 | _resultobj = Py_None; | |
7452 | return _resultobj; | |
7453 | } | |
7454 | ||
7455 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
7456 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7457 | PyObject * _resultobj; | |
7458 | bool _result; | |
7459 | wxWave * _arg0; | |
7460 | PyObject * _argo0 = 0; | |
7461 | char *_kwnames[] = { "self", NULL }; | |
7462 | ||
7463 | self = self; | |
7464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
7465 | return NULL; | |
7466 | if (_argo0) { | |
7467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
7470 | return NULL; | |
7471 | } | |
7472 | } | |
7473 | { | |
7474 | wxPy_BEGIN_ALLOW_THREADS; | |
7475 | _result = (bool )wxWave_IsOk(_arg0); | |
7476 | ||
7477 | wxPy_END_ALLOW_THREADS; | |
7478 | } _resultobj = Py_BuildValue("i",_result); | |
7479 | return _resultobj; | |
7480 | } | |
7481 | ||
7482 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
7483 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7484 | PyObject * _resultobj; | |
7485 | bool _result; | |
7486 | wxWave * _arg0; | |
7487 | bool _arg1 = (bool ) TRUE; | |
7488 | bool _arg2 = (bool ) FALSE; | |
7489 | PyObject * _argo0 = 0; | |
7490 | int tempbool1 = (int) TRUE; | |
7491 | int tempbool2 = (int) FALSE; | |
7492 | char *_kwnames[] = { "self","async","looped", NULL }; | |
7493 | ||
7494 | self = self; | |
7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7496 | return NULL; | |
7497 | if (_argo0) { | |
7498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
7501 | return NULL; | |
7502 | } | |
7503 | } | |
7504 | _arg1 = (bool ) tempbool1; | |
7505 | _arg2 = (bool ) tempbool2; | |
7506 | { | |
7507 | wxPy_BEGIN_ALLOW_THREADS; | |
7508 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); | |
7509 | ||
7510 | wxPy_END_ALLOW_THREADS; | |
7511 | } _resultobj = Py_BuildValue("i",_result); | |
7512 | return _resultobj; | |
7513 | } | |
7514 | ||
b6e5c445 RD |
7515 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7516 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7517 | PyObject * _resultobj; | |
7518 | wxFileTypeInfo * _result; | |
7519 | char * _arg0; | |
7520 | char * _arg1; | |
7521 | char * _arg2; | |
7522 | char * _arg3; | |
7523 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
7524 | char _ptemp[128]; | |
7525 | ||
7526 | self = self; | |
7527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
7528 | return NULL; | |
7529 | { | |
7530 | wxPy_BEGIN_ALLOW_THREADS; | |
7531 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); | |
7532 | ||
7533 | wxPy_END_ALLOW_THREADS; | |
7534 | } if (_result) { | |
7535 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7536 | _resultobj = Py_BuildValue("s",_ptemp); | |
7537 | } else { | |
7538 | Py_INCREF(Py_None); | |
7539 | _resultobj = Py_None; | |
7540 | } | |
7541 | return _resultobj; | |
7542 | } | |
7543 | ||
7544 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
7545 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7546 | PyObject * _resultobj; | |
7547 | wxFileTypeInfo * _result; | |
7548 | wxArrayString * _arg0; | |
7549 | PyObject * _obj0 = 0; | |
7550 | char *_kwnames[] = { "sArray", NULL }; | |
7551 | char _ptemp[128]; | |
7552 | ||
7553 | self = self; | |
7554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
7555 | return NULL; | |
7556 | { | |
7557 | if (! PySequence_Check(_obj0)) { | |
7558 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7559 | return NULL; | |
7560 | } | |
7561 | _arg0 = new wxArrayString; | |
7562 | int i, len=PySequence_Length(_obj0); | |
7563 | for (i=0; i<len; i++) { | |
7564 | PyObject* item = PySequence_GetItem(_obj0, i); | |
7565 | PyObject* str = PyObject_Str(item); | |
7566 | _arg0->Add(PyString_AsString(item)); | |
7567 | Py_DECREF(item); | |
7568 | Py_DECREF(str); | |
7569 | } | |
7570 | } | |
7571 | { | |
7572 | wxPy_BEGIN_ALLOW_THREADS; | |
7573 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); | |
7574 | ||
7575 | wxPy_END_ALLOW_THREADS; | |
7576 | } if (_result) { | |
7577 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7578 | _resultobj = Py_BuildValue("s",_ptemp); | |
7579 | } else { | |
7580 | Py_INCREF(Py_None); | |
7581 | _resultobj = Py_None; | |
7582 | } | |
7583 | { | |
7584 | if (_obj0) | |
7585 | delete _arg0; | |
7586 | } | |
7587 | return _resultobj; | |
7588 | } | |
7589 | ||
7590 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
7591 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7592 | PyObject * _resultobj; | |
7593 | wxFileTypeInfo * _result; | |
7594 | char *_kwnames[] = { NULL }; | |
7595 | char _ptemp[128]; | |
7596 | ||
7597 | self = self; | |
7598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
7599 | return NULL; | |
7600 | { | |
7601 | wxPy_BEGIN_ALLOW_THREADS; | |
7602 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); | |
7603 | ||
7604 | wxPy_END_ALLOW_THREADS; | |
7605 | } if (_result) { | |
7606 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7607 | _resultobj = Py_BuildValue("s",_ptemp); | |
7608 | } else { | |
7609 | Py_INCREF(Py_None); | |
7610 | _resultobj = Py_None; | |
7611 | } | |
7612 | return _resultobj; | |
7613 | } | |
7614 | ||
7615 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
7616 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7617 | PyObject * _resultobj; | |
7618 | bool _result; | |
7619 | wxFileTypeInfo * _arg0; | |
7620 | PyObject * _argo0 = 0; | |
7621 | char *_kwnames[] = { "self", NULL }; | |
7622 | ||
7623 | self = self; | |
7624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
7625 | return NULL; | |
7626 | if (_argo0) { | |
7627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
7630 | return NULL; | |
7631 | } | |
7632 | } | |
7633 | { | |
7634 | wxPy_BEGIN_ALLOW_THREADS; | |
7635 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); | |
7636 | ||
7637 | wxPy_END_ALLOW_THREADS; | |
7638 | } _resultobj = Py_BuildValue("i",_result); | |
7639 | return _resultobj; | |
7640 | } | |
7641 | ||
7642 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
7643 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7644 | PyObject * _resultobj; | |
7645 | wxFileTypeInfo * _arg0; | |
7646 | wxString * _arg1; | |
7647 | int _arg2 = (int ) 0; | |
7648 | PyObject * _argo0 = 0; | |
7649 | PyObject * _obj1 = 0; | |
7650 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
7651 | ||
7652 | self = self; | |
7653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
7654 | return NULL; | |
7655 | if (_argo0) { | |
7656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
7659 | return NULL; | |
7660 | } | |
7661 | } | |
7662 | { | |
7663 | #if PYTHON_API_VERSION >= 1009 | |
7664 | char* tmpPtr; int tmpSize; | |
7665 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7666 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7667 | return NULL; | |
7668 | } | |
7669 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7670 | return NULL; | |
7671 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7672 | #else | |
7673 | if (!PyString_Check(_obj1)) { | |
7674 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7675 | return NULL; | |
7676 | } | |
7677 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7678 | #endif | |
7679 | } | |
7680 | { | |
7681 | wxPy_BEGIN_ALLOW_THREADS; | |
7682 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); | |
7683 | ||
7684 | wxPy_END_ALLOW_THREADS; | |
7685 | } Py_INCREF(Py_None); | |
7686 | _resultobj = Py_None; | |
7687 | { | |
7688 | if (_obj1) | |
7689 | delete _arg1; | |
7690 | } | |
7691 | return _resultobj; | |
7692 | } | |
7693 | ||
7694 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
7695 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7696 | PyObject * _resultobj; | |
7697 | wxFileTypeInfo * _arg0; | |
7698 | wxString * _arg1; | |
7699 | PyObject * _argo0 = 0; | |
7700 | PyObject * _obj1 = 0; | |
7701 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
7702 | ||
7703 | self = self; | |
7704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
7705 | return NULL; | |
7706 | if (_argo0) { | |
7707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
7710 | return NULL; | |
7711 | } | |
7712 | } | |
7713 | { | |
7714 | #if PYTHON_API_VERSION >= 1009 | |
7715 | char* tmpPtr; int tmpSize; | |
7716 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7717 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7718 | return NULL; | |
7719 | } | |
7720 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7721 | return NULL; | |
7722 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7723 | #else | |
7724 | if (!PyString_Check(_obj1)) { | |
7725 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7726 | return NULL; | |
7727 | } | |
7728 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
7729 | #endif | |
7730 | } | |
7731 | { | |
7732 | wxPy_BEGIN_ALLOW_THREADS; | |
7733 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); | |
7734 | ||
7735 | wxPy_END_ALLOW_THREADS; | |
7736 | } Py_INCREF(Py_None); | |
7737 | _resultobj = Py_None; | |
7738 | { | |
7739 | if (_obj1) | |
7740 | delete _arg1; | |
7741 | } | |
7742 | return _resultobj; | |
7743 | } | |
7744 | ||
7745 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
7746 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7747 | PyObject * _resultobj; | |
7748 | wxString * _result; | |
7749 | wxFileTypeInfo * _arg0; | |
7750 | PyObject * _argo0 = 0; | |
7751 | char *_kwnames[] = { "self", NULL }; | |
7752 | ||
7753 | self = self; | |
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
7755 | return NULL; | |
7756 | if (_argo0) { | |
7757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
7760 | return NULL; | |
7761 | } | |
7762 | } | |
7763 | { | |
7764 | wxPy_BEGIN_ALLOW_THREADS; | |
7765 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); | |
7766 | _result = (wxString *) &_result_ref; | |
7767 | ||
7768 | wxPy_END_ALLOW_THREADS; | |
7769 | }{ | |
7770 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7771 | } | |
7772 | return _resultobj; | |
7773 | } | |
7774 | ||
7775 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
7776 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7777 | PyObject * _resultobj; | |
7778 | wxString * _result; | |
7779 | wxFileTypeInfo * _arg0; | |
7780 | PyObject * _argo0 = 0; | |
7781 | char *_kwnames[] = { "self", NULL }; | |
7782 | ||
7783 | self = self; | |
7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
7785 | return NULL; | |
7786 | if (_argo0) { | |
7787 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7788 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
7790 | return NULL; | |
7791 | } | |
7792 | } | |
7793 | { | |
7794 | wxPy_BEGIN_ALLOW_THREADS; | |
7795 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); | |
7796 | _result = (wxString *) &_result_ref; | |
7797 | ||
7798 | wxPy_END_ALLOW_THREADS; | |
7799 | }{ | |
7800 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7801 | } | |
7802 | return _resultobj; | |
7803 | } | |
7804 | ||
7805 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
7806 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7807 | PyObject * _resultobj; | |
7808 | wxString * _result; | |
7809 | wxFileTypeInfo * _arg0; | |
7810 | PyObject * _argo0 = 0; | |
7811 | char *_kwnames[] = { "self", NULL }; | |
7812 | ||
7813 | self = self; | |
7814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
7815 | return NULL; | |
7816 | if (_argo0) { | |
7817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
7820 | return NULL; | |
7821 | } | |
7822 | } | |
7823 | { | |
7824 | wxPy_BEGIN_ALLOW_THREADS; | |
7825 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); | |
7826 | _result = (wxString *) &_result_ref; | |
7827 | ||
7828 | wxPy_END_ALLOW_THREADS; | |
7829 | }{ | |
7830 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7831 | } | |
7832 | return _resultobj; | |
7833 | } | |
7834 | ||
7835 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
7836 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7837 | PyObject * _resultobj; | |
7838 | wxString * _result; | |
7839 | wxFileTypeInfo * _arg0; | |
7840 | PyObject * _argo0 = 0; | |
7841 | char *_kwnames[] = { "self", NULL }; | |
7842 | ||
7843 | self = self; | |
7844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
7845 | return NULL; | |
7846 | if (_argo0) { | |
7847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
7850 | return NULL; | |
7851 | } | |
7852 | } | |
7853 | { | |
7854 | wxPy_BEGIN_ALLOW_THREADS; | |
7855 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); | |
7856 | _result = (wxString *) &_result_ref; | |
7857 | ||
7858 | wxPy_END_ALLOW_THREADS; | |
7859 | }{ | |
7860 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7861 | } | |
7862 | return _resultobj; | |
7863 | } | |
7864 | ||
7865 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
7866 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7867 | PyObject * _resultobj; | |
7868 | wxString * _result; | |
7869 | wxFileTypeInfo * _arg0; | |
7870 | PyObject * _argo0 = 0; | |
7871 | char *_kwnames[] = { "self", NULL }; | |
7872 | ||
7873 | self = self; | |
7874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
7875 | return NULL; | |
7876 | if (_argo0) { | |
7877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
7880 | return NULL; | |
7881 | } | |
7882 | } | |
7883 | { | |
7884 | wxPy_BEGIN_ALLOW_THREADS; | |
7885 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); | |
7886 | _result = (wxString *) &_result_ref; | |
7887 | ||
7888 | wxPy_END_ALLOW_THREADS; | |
7889 | }{ | |
7890 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7891 | } | |
7892 | return _resultobj; | |
7893 | } | |
7894 | ||
7895 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
7896 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
7897 | return wxArrayString2PyList_helper(arr); | |
7898 | } | |
7899 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7900 | PyObject * _resultobj; | |
7901 | PyObject * _result; | |
7902 | wxFileTypeInfo * _arg0; | |
7903 | PyObject * _argo0 = 0; | |
7904 | char *_kwnames[] = { "self", NULL }; | |
7905 | ||
7906 | self = self; | |
7907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
7908 | return NULL; | |
7909 | if (_argo0) { | |
7910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
7913 | return NULL; | |
7914 | } | |
7915 | } | |
7916 | { | |
7917 | wxPy_BEGIN_ALLOW_THREADS; | |
7918 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); | |
7919 | ||
7920 | wxPy_END_ALLOW_THREADS; | |
7921 | }{ | |
7922 | _resultobj = _result; | |
7923 | } | |
7924 | return _resultobj; | |
7925 | } | |
7926 | ||
7927 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
7928 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7929 | PyObject * _resultobj; | |
7930 | int _result; | |
7931 | wxFileTypeInfo * _arg0; | |
7932 | PyObject * _argo0 = 0; | |
7933 | char *_kwnames[] = { "self", NULL }; | |
7934 | ||
7935 | self = self; | |
7936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
7937 | return NULL; | |
7938 | if (_argo0) { | |
7939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
7942 | return NULL; | |
7943 | } | |
7944 | } | |
7945 | { | |
7946 | wxPy_BEGIN_ALLOW_THREADS; | |
7947 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); | |
7948 | ||
7949 | wxPy_END_ALLOW_THREADS; | |
7950 | } _resultobj = Py_BuildValue("i",_result); | |
7951 | return _resultobj; | |
7952 | } | |
7953 | ||
7954 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
7955 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7956 | PyObject * _resultobj; | |
7957 | wxString * _result; | |
7958 | wxFileTypeInfo * _arg0; | |
7959 | PyObject * _argo0 = 0; | |
7960 | char *_kwnames[] = { "self", NULL }; | |
7961 | ||
7962 | self = self; | |
7963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
7964 | return NULL; | |
7965 | if (_argo0) { | |
7966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
7969 | return NULL; | |
7970 | } | |
7971 | } | |
7972 | { | |
7973 | wxPy_BEGIN_ALLOW_THREADS; | |
7974 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); | |
7975 | _result = (wxString *) &_result_ref; | |
7976 | ||
7977 | wxPy_END_ALLOW_THREADS; | |
7978 | }{ | |
7979 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
7980 | } | |
7981 | return _resultobj; | |
7982 | } | |
7983 | ||
7984 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
7985 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7986 | PyObject * _resultobj; | |
7987 | int _result; | |
7988 | wxFileTypeInfo * _arg0; | |
7989 | PyObject * _argo0 = 0; | |
7990 | char *_kwnames[] = { "self", NULL }; | |
7991 | ||
7992 | self = self; | |
7993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
7994 | return NULL; | |
7995 | if (_argo0) { | |
7996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
7999 | return NULL; | |
8000 | } | |
8001 | } | |
8002 | { | |
8003 | wxPy_BEGIN_ALLOW_THREADS; | |
8004 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); | |
8005 | ||
8006 | wxPy_END_ALLOW_THREADS; | |
8007 | } _resultobj = Py_BuildValue("i",_result); | |
8008 | return _resultobj; | |
8009 | } | |
8010 | ||
8011 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8012 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8013 | PyObject * _resultobj; | |
8014 | wxFileType * _result; | |
8015 | wxFileTypeInfo * _arg0; | |
8016 | PyObject * _argo0 = 0; | |
8017 | char *_kwnames[] = { "ftInfo", NULL }; | |
8018 | char _ptemp[128]; | |
8019 | ||
8020 | self = self; | |
8021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8022 | return NULL; | |
8023 | if (_argo0) { | |
8024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8027 | return NULL; | |
8028 | } | |
8029 | } | |
8030 | { | |
8031 | wxPy_BEGIN_ALLOW_THREADS; | |
8032 | _result = (wxFileType *)new_wxFileType(*_arg0); | |
8033 | ||
8034 | wxPy_END_ALLOW_THREADS; | |
8035 | } if (_result) { | |
8036 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8037 | _resultobj = Py_BuildValue("s",_ptemp); | |
8038 | } else { | |
8039 | Py_INCREF(Py_None); | |
8040 | _resultobj = Py_None; | |
8041 | } | |
8042 | return _resultobj; | |
8043 | } | |
8044 | ||
8045 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8046 | wxString str; | |
8047 | if (self->GetMimeType(&str)) | |
8048 | return PyString_FromString(str.c_str()); | |
8049 | else | |
8050 | RETURN_NONE(); | |
8051 | } | |
8052 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8053 | PyObject * _resultobj; | |
8054 | PyObject * _result; | |
8055 | wxFileType * _arg0; | |
8056 | PyObject * _argo0 = 0; | |
8057 | char *_kwnames[] = { "self", NULL }; | |
8058 | ||
8059 | self = self; | |
8060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8061 | return NULL; | |
8062 | if (_argo0) { | |
8063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8066 | return NULL; | |
8067 | } | |
8068 | } | |
8069 | { | |
8070 | wxPy_BEGIN_ALLOW_THREADS; | |
8071 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); | |
8072 | ||
8073 | wxPy_END_ALLOW_THREADS; | |
8074 | }{ | |
8075 | _resultobj = _result; | |
8076 | } | |
8077 | return _resultobj; | |
8078 | } | |
8079 | ||
8080 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8081 | wxArrayString arr; | |
8082 | if (self->GetMimeTypes(arr)) | |
8083 | return wxArrayString2PyList_helper(arr); | |
8084 | else | |
8085 | RETURN_NONE(); | |
8086 | } | |
8087 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8088 | PyObject * _resultobj; | |
8089 | PyObject * _result; | |
8090 | wxFileType * _arg0; | |
8091 | PyObject * _argo0 = 0; | |
8092 | char *_kwnames[] = { "self", NULL }; | |
8093 | ||
8094 | self = self; | |
8095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8096 | return NULL; | |
8097 | if (_argo0) { | |
8098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8101 | return NULL; | |
8102 | } | |
8103 | } | |
8104 | { | |
8105 | wxPy_BEGIN_ALLOW_THREADS; | |
8106 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); | |
8107 | ||
8108 | wxPy_END_ALLOW_THREADS; | |
8109 | }{ | |
8110 | _resultobj = _result; | |
8111 | } | |
8112 | return _resultobj; | |
8113 | } | |
8114 | ||
8115 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8116 | wxArrayString arr; | |
8117 | if (self->GetExtensions(arr)) | |
8118 | return wxArrayString2PyList_helper(arr); | |
8119 | else | |
8120 | RETURN_NONE(); | |
8121 | } | |
8122 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8123 | PyObject * _resultobj; | |
8124 | PyObject * _result; | |
8125 | wxFileType * _arg0; | |
8126 | PyObject * _argo0 = 0; | |
8127 | char *_kwnames[] = { "self", NULL }; | |
8128 | ||
8129 | self = self; | |
8130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8131 | return NULL; | |
8132 | if (_argo0) { | |
8133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8136 | return NULL; | |
8137 | } | |
8138 | } | |
8139 | { | |
8140 | wxPy_BEGIN_ALLOW_THREADS; | |
8141 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); | |
8142 | ||
8143 | wxPy_END_ALLOW_THREADS; | |
8144 | }{ | |
8145 | _resultobj = _result; | |
8146 | } | |
8147 | return _resultobj; | |
8148 | } | |
8149 | ||
8150 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8151 | wxIcon icon; | |
8152 | if (self->GetIcon(&icon)) | |
8153 | return new wxIcon(icon); | |
8154 | else | |
8155 | return NULL; | |
8156 | } | |
8157 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8158 | PyObject * _resultobj; | |
8159 | wxIcon * _result; | |
8160 | wxFileType * _arg0; | |
8161 | PyObject * _argo0 = 0; | |
8162 | char *_kwnames[] = { "self", NULL }; | |
8163 | char _ptemp[128]; | |
8164 | ||
8165 | self = self; | |
8166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8167 | return NULL; | |
8168 | if (_argo0) { | |
8169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8172 | return NULL; | |
8173 | } | |
8174 | } | |
8175 | { | |
8176 | wxPy_BEGIN_ALLOW_THREADS; | |
8177 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); | |
8178 | ||
8179 | wxPy_END_ALLOW_THREADS; | |
8180 | } if (_result) { | |
8181 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8182 | _resultobj = Py_BuildValue("s",_ptemp); | |
8183 | } else { | |
8184 | Py_INCREF(Py_None); | |
8185 | _resultobj = Py_None; | |
8186 | } | |
8187 | return _resultobj; | |
8188 | } | |
8189 | ||
8190 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8191 | wxIcon icon; | |
8192 | wxString iconFile; | |
8193 | int iconIndex; | |
8194 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
8195 | wxPyTState* state = wxPyBeginBlockThreads(); | |
8196 | PyObject* tuple = PyTuple_New(3); | |
8197 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8198 | "wxIcon", TRUE)); | |
8199 | PyTuple_SetItem(tuple, 1, PyString_FromString(iconFile.c_str())); | |
8200 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
8201 | wxPyEndBlockThreads(state); | |
8202 | return tuple; | |
8203 | } | |
8204 | else | |
8205 | RETURN_NONE(); | |
8206 | } | |
8207 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8208 | PyObject * _resultobj; | |
8209 | PyObject * _result; | |
8210 | wxFileType * _arg0; | |
8211 | PyObject * _argo0 = 0; | |
8212 | char *_kwnames[] = { "self", NULL }; | |
8213 | ||
8214 | self = self; | |
8215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8216 | return NULL; | |
8217 | if (_argo0) { | |
8218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8221 | return NULL; | |
8222 | } | |
8223 | } | |
8224 | { | |
8225 | wxPy_BEGIN_ALLOW_THREADS; | |
8226 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); | |
8227 | ||
8228 | wxPy_END_ALLOW_THREADS; | |
8229 | }{ | |
8230 | _resultobj = _result; | |
8231 | } | |
8232 | return _resultobj; | |
8233 | } | |
8234 | ||
8235 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8236 | wxString str; | |
8237 | if (self->GetDescription(&str)) | |
8238 | return PyString_FromString(str.c_str()); | |
8239 | else | |
8240 | RETURN_NONE(); | |
8241 | } | |
8242 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8243 | PyObject * _resultobj; | |
8244 | PyObject * _result; | |
8245 | wxFileType * _arg0; | |
8246 | PyObject * _argo0 = 0; | |
8247 | char *_kwnames[] = { "self", NULL }; | |
8248 | ||
8249 | self = self; | |
8250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8251 | return NULL; | |
8252 | if (_argo0) { | |
8253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8256 | return NULL; | |
8257 | } | |
8258 | } | |
8259 | { | |
8260 | wxPy_BEGIN_ALLOW_THREADS; | |
8261 | _result = (PyObject *)wxFileType_GetDescription(_arg0); | |
8262 | ||
8263 | wxPy_END_ALLOW_THREADS; | |
8264 | }{ | |
8265 | _resultobj = _result; | |
8266 | } | |
8267 | return _resultobj; | |
8268 | } | |
8269 | ||
8270 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8271 | wxString str; | |
8272 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
8273 | return PyString_FromString(str.c_str()); | |
8274 | else | |
8275 | RETURN_NONE(); | |
8276 | } | |
8277 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8278 | PyObject * _resultobj; | |
8279 | PyObject * _result; | |
8280 | wxFileType * _arg0; | |
8281 | wxString * _arg1; | |
8282 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8283 | PyObject * _argo0 = 0; | |
8284 | PyObject * _obj1 = 0; | |
8285 | PyObject * _obj2 = 0; | |
8286 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8287 | ||
8288 | self = self; | |
8289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8290 | return NULL; | |
8291 | if (_argo0) { | |
8292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8295 | return NULL; | |
8296 | } | |
8297 | } | |
8298 | { | |
8299 | #if PYTHON_API_VERSION >= 1009 | |
8300 | char* tmpPtr; int tmpSize; | |
8301 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8302 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8303 | return NULL; | |
8304 | } | |
8305 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8306 | return NULL; | |
8307 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8308 | #else | |
8309 | if (!PyString_Check(_obj1)) { | |
8310 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8311 | return NULL; | |
8312 | } | |
8313 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8314 | #endif | |
8315 | } | |
8316 | if (_obj2) | |
8317 | { | |
8318 | #if PYTHON_API_VERSION >= 1009 | |
8319 | char* tmpPtr; int tmpSize; | |
8320 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8321 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8322 | return NULL; | |
8323 | } | |
8324 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8325 | return NULL; | |
8326 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8327 | #else | |
8328 | if (!PyString_Check(_obj2)) { | |
8329 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8330 | return NULL; | |
8331 | } | |
8332 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8333 | #endif | |
8334 | } | |
8335 | { | |
8336 | wxPy_BEGIN_ALLOW_THREADS; | |
8337 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); | |
8338 | ||
8339 | wxPy_END_ALLOW_THREADS; | |
8340 | }{ | |
8341 | _resultobj = _result; | |
8342 | } | |
8343 | { | |
8344 | if (_obj1) | |
8345 | delete _arg1; | |
8346 | } | |
8347 | { | |
8348 | if (_obj2) | |
8349 | delete _arg2; | |
8350 | } | |
8351 | return _resultobj; | |
8352 | } | |
8353 | ||
8354 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8355 | wxString str; | |
8356 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
8357 | return PyString_FromString(str.c_str()); | |
8358 | else | |
8359 | RETURN_NONE(); | |
8360 | } | |
8361 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8362 | PyObject * _resultobj; | |
8363 | PyObject * _result; | |
8364 | wxFileType * _arg0; | |
8365 | wxString * _arg1; | |
8366 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8367 | PyObject * _argo0 = 0; | |
8368 | PyObject * _obj1 = 0; | |
8369 | PyObject * _obj2 = 0; | |
8370 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8371 | ||
8372 | self = self; | |
8373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8374 | return NULL; | |
8375 | if (_argo0) { | |
8376 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8377 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8379 | return NULL; | |
8380 | } | |
8381 | } | |
8382 | { | |
8383 | #if PYTHON_API_VERSION >= 1009 | |
8384 | char* tmpPtr; int tmpSize; | |
8385 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8386 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8387 | return NULL; | |
8388 | } | |
8389 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8390 | return NULL; | |
8391 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8392 | #else | |
8393 | if (!PyString_Check(_obj1)) { | |
8394 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8395 | return NULL; | |
8396 | } | |
8397 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8398 | #endif | |
8399 | } | |
8400 | if (_obj2) | |
8401 | { | |
8402 | #if PYTHON_API_VERSION >= 1009 | |
8403 | char* tmpPtr; int tmpSize; | |
8404 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8405 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8406 | return NULL; | |
8407 | } | |
8408 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8409 | return NULL; | |
8410 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8411 | #else | |
8412 | if (!PyString_Check(_obj2)) { | |
8413 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8414 | return NULL; | |
8415 | } | |
8416 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8417 | #endif | |
8418 | } | |
8419 | { | |
8420 | wxPy_BEGIN_ALLOW_THREADS; | |
8421 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); | |
8422 | ||
8423 | wxPy_END_ALLOW_THREADS; | |
8424 | }{ | |
8425 | _resultobj = _result; | |
8426 | } | |
8427 | { | |
8428 | if (_obj1) | |
8429 | delete _arg1; | |
8430 | } | |
8431 | { | |
8432 | if (_obj2) | |
8433 | delete _arg2; | |
8434 | } | |
8435 | return _resultobj; | |
8436 | } | |
8437 | ||
8438 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8439 | wxArrayString verbs; | |
8440 | wxArrayString commands; | |
8441 | if (self->GetAllCommands(&verbs, &commands, | |
8442 | wxFileType::MessageParameters(filename, mimetype))) { | |
8443 | wxPyTState* state = wxPyBeginBlockThreads(); | |
8444 | PyObject* tuple = PyTuple_New(2); | |
8445 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8446 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
8447 | wxPyEndBlockThreads(state); | |
8448 | return tuple; | |
8449 | } | |
8450 | else | |
8451 | RETURN_NONE(); | |
8452 | } | |
8453 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8454 | PyObject * _resultobj; | |
8455 | PyObject * _result; | |
8456 | wxFileType * _arg0; | |
8457 | wxString * _arg1; | |
8458 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8459 | PyObject * _argo0 = 0; | |
8460 | PyObject * _obj1 = 0; | |
8461 | PyObject * _obj2 = 0; | |
8462 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8463 | ||
8464 | self = self; | |
8465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8466 | return NULL; | |
8467 | if (_argo0) { | |
8468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
8471 | return NULL; | |
8472 | } | |
8473 | } | |
8474 | { | |
8475 | #if PYTHON_API_VERSION >= 1009 | |
8476 | char* tmpPtr; int tmpSize; | |
8477 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8478 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8479 | return NULL; | |
8480 | } | |
8481 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8482 | return NULL; | |
8483 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8484 | #else | |
8485 | if (!PyString_Check(_obj1)) { | |
8486 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8487 | return NULL; | |
8488 | } | |
8489 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8490 | #endif | |
8491 | } | |
8492 | if (_obj2) | |
8493 | { | |
8494 | #if PYTHON_API_VERSION >= 1009 | |
8495 | char* tmpPtr; int tmpSize; | |
8496 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8497 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8498 | return NULL; | |
8499 | } | |
8500 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8501 | return NULL; | |
8502 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8503 | #else | |
8504 | if (!PyString_Check(_obj2)) { | |
8505 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8506 | return NULL; | |
8507 | } | |
8508 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8509 | #endif | |
8510 | } | |
8511 | { | |
8512 | wxPy_BEGIN_ALLOW_THREADS; | |
8513 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); | |
8514 | ||
8515 | wxPy_END_ALLOW_THREADS; | |
8516 | }{ | |
8517 | _resultobj = _result; | |
8518 | } | |
8519 | { | |
8520 | if (_obj1) | |
8521 | delete _arg1; | |
8522 | } | |
8523 | { | |
8524 | if (_obj2) | |
8525 | delete _arg2; | |
8526 | } | |
8527 | return _resultobj; | |
8528 | } | |
8529 | ||
8530 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
8531 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8532 | PyObject * _resultobj; | |
8533 | bool _result; | |
8534 | wxFileType * _arg0; | |
8535 | wxString * _arg1; | |
8536 | wxString * _arg2; | |
8537 | bool _arg3 = (bool ) TRUE; | |
8538 | PyObject * _argo0 = 0; | |
8539 | PyObject * _obj1 = 0; | |
8540 | PyObject * _obj2 = 0; | |
8541 | int tempbool3 = (int) TRUE; | |
8542 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
8543 | ||
8544 | self = self; | |
8545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
8546 | return NULL; | |
8547 | if (_argo0) { | |
8548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
8551 | return NULL; | |
8552 | } | |
8553 | } | |
8554 | { | |
8555 | #if PYTHON_API_VERSION >= 1009 | |
8556 | char* tmpPtr; int tmpSize; | |
8557 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8558 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8559 | return NULL; | |
8560 | } | |
8561 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8562 | return NULL; | |
8563 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8564 | #else | |
8565 | if (!PyString_Check(_obj1)) { | |
8566 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8567 | return NULL; | |
8568 | } | |
8569 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8570 | #endif | |
8571 | } | |
8572 | { | |
8573 | #if PYTHON_API_VERSION >= 1009 | |
8574 | char* tmpPtr; int tmpSize; | |
8575 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8576 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8577 | return NULL; | |
8578 | } | |
8579 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8580 | return NULL; | |
8581 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8582 | #else | |
8583 | if (!PyString_Check(_obj2)) { | |
8584 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8585 | return NULL; | |
8586 | } | |
8587 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8588 | #endif | |
8589 | } | |
8590 | _arg3 = (bool ) tempbool3; | |
8591 | { | |
8592 | wxPy_BEGIN_ALLOW_THREADS; | |
8593 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); | |
8594 | ||
8595 | wxPy_END_ALLOW_THREADS; | |
8596 | } _resultobj = Py_BuildValue("i",_result); | |
8597 | { | |
8598 | if (_obj1) | |
8599 | delete _arg1; | |
8600 | } | |
8601 | { | |
8602 | if (_obj2) | |
8603 | delete _arg2; | |
8604 | } | |
8605 | return _resultobj; | |
8606 | } | |
8607 | ||
8608 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
8609 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8610 | PyObject * _resultobj; | |
8611 | bool _result; | |
8612 | wxFileType * _arg0; | |
8613 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
8614 | int _arg2 = (int ) 0; | |
8615 | PyObject * _argo0 = 0; | |
8616 | PyObject * _obj1 = 0; | |
8617 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
8618 | ||
8619 | self = self; | |
8620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8621 | return NULL; | |
8622 | if (_argo0) { | |
8623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
8626 | return NULL; | |
8627 | } | |
8628 | } | |
8629 | if (_obj1) | |
8630 | { | |
8631 | #if PYTHON_API_VERSION >= 1009 | |
8632 | char* tmpPtr; int tmpSize; | |
8633 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8634 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8635 | return NULL; | |
8636 | } | |
8637 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8638 | return NULL; | |
8639 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8640 | #else | |
8641 | if (!PyString_Check(_obj1)) { | |
8642 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8643 | return NULL; | |
8644 | } | |
8645 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8646 | #endif | |
8647 | } | |
8648 | { | |
8649 | wxPy_BEGIN_ALLOW_THREADS; | |
8650 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); | |
8651 | ||
8652 | wxPy_END_ALLOW_THREADS; | |
8653 | } _resultobj = Py_BuildValue("i",_result); | |
8654 | { | |
8655 | if (_obj1) | |
8656 | delete _arg1; | |
8657 | } | |
8658 | return _resultobj; | |
8659 | } | |
8660 | ||
8661 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
8662 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8663 | PyObject * _resultobj; | |
8664 | bool _result; | |
8665 | wxFileType * _arg0; | |
8666 | PyObject * _argo0 = 0; | |
8667 | char *_kwnames[] = { "self", NULL }; | |
8668 | ||
8669 | self = self; | |
8670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
8671 | return NULL; | |
8672 | if (_argo0) { | |
8673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
8676 | return NULL; | |
8677 | } | |
8678 | } | |
8679 | { | |
8680 | wxPy_BEGIN_ALLOW_THREADS; | |
8681 | _result = (bool )wxFileType_Unassociate(_arg0); | |
8682 | ||
8683 | wxPy_END_ALLOW_THREADS; | |
8684 | } _resultobj = Py_BuildValue("i",_result); | |
8685 | return _resultobj; | |
8686 | } | |
8687 | ||
8688 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8689 | PyObject * _resultobj; | |
8690 | wxString * _result; | |
8691 | wxString * _arg0; | |
8692 | wxFileType::MessageParameters * _arg1; | |
8693 | PyObject * _obj0 = 0; | |
8694 | PyObject * _argo1 = 0; | |
8695 | char *_kwnames[] = { "command","params", NULL }; | |
8696 | ||
8697 | self = self; | |
8698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
8699 | return NULL; | |
8700 | { | |
8701 | #if PYTHON_API_VERSION >= 1009 | |
8702 | char* tmpPtr; int tmpSize; | |
8703 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
8704 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8705 | return NULL; | |
8706 | } | |
8707 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
8708 | return NULL; | |
8709 | _arg0 = new wxString(tmpPtr, tmpSize); | |
8710 | #else | |
8711 | if (!PyString_Check(_obj0)) { | |
8712 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8713 | return NULL; | |
8714 | } | |
8715 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
8716 | #endif | |
8717 | } | |
8718 | if (_argo1) { | |
8719 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8720 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
8721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
8722 | return NULL; | |
8723 | } | |
8724 | } | |
8725 | { | |
8726 | wxPy_BEGIN_ALLOW_THREADS; | |
8727 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); | |
8728 | ||
8729 | wxPy_END_ALLOW_THREADS; | |
8730 | }{ | |
8731 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8732 | } | |
8733 | { | |
8734 | if (_obj0) | |
8735 | delete _arg0; | |
8736 | } | |
8737 | { | |
8738 | delete _result; | |
8739 | } | |
8740 | return _resultobj; | |
8741 | } | |
8742 | ||
8743 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
8744 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8745 | PyObject * _resultobj; | |
8746 | wxFileType * _arg0; | |
8747 | PyObject * _argo0 = 0; | |
8748 | char *_kwnames[] = { "self", NULL }; | |
8749 | ||
8750 | self = self; | |
8751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
8752 | return NULL; | |
8753 | if (_argo0) { | |
8754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
8757 | return NULL; | |
8758 | } | |
8759 | } | |
8760 | { | |
8761 | wxPy_BEGIN_ALLOW_THREADS; | |
8762 | delete_wxFileType(_arg0); | |
8763 | ||
8764 | wxPy_END_ALLOW_THREADS; | |
8765 | } Py_INCREF(Py_None); | |
8766 | _resultobj = Py_None; | |
8767 | return _resultobj; | |
8768 | } | |
8769 | ||
8770 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8771 | PyObject * _resultobj; | |
8772 | bool _result; | |
8773 | wxString * _arg0; | |
8774 | wxString * _arg1; | |
8775 | PyObject * _obj0 = 0; | |
8776 | PyObject * _obj1 = 0; | |
8777 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
8778 | ||
8779 | self = self; | |
8780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
8781 | return NULL; | |
8782 | { | |
8783 | #if PYTHON_API_VERSION >= 1009 | |
8784 | char* tmpPtr; int tmpSize; | |
8785 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
8786 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8787 | return NULL; | |
8788 | } | |
8789 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
8790 | return NULL; | |
8791 | _arg0 = new wxString(tmpPtr, tmpSize); | |
8792 | #else | |
8793 | if (!PyString_Check(_obj0)) { | |
8794 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8795 | return NULL; | |
8796 | } | |
8797 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
8798 | #endif | |
8799 | } | |
8800 | { | |
8801 | #if PYTHON_API_VERSION >= 1009 | |
8802 | char* tmpPtr; int tmpSize; | |
8803 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8804 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8805 | return NULL; | |
8806 | } | |
8807 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8808 | return NULL; | |
8809 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8810 | #else | |
8811 | if (!PyString_Check(_obj1)) { | |
8812 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8813 | return NULL; | |
8814 | } | |
8815 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8816 | #endif | |
8817 | } | |
8818 | { | |
8819 | wxPy_BEGIN_ALLOW_THREADS; | |
8820 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); | |
8821 | ||
8822 | wxPy_END_ALLOW_THREADS; | |
8823 | } _resultobj = Py_BuildValue("i",_result); | |
8824 | { | |
8825 | if (_obj0) | |
8826 | delete _arg0; | |
8827 | } | |
8828 | { | |
8829 | if (_obj1) | |
8830 | delete _arg1; | |
8831 | } | |
8832 | return _resultobj; | |
8833 | } | |
8834 | ||
8835 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
8836 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8837 | PyObject * _resultobj; | |
8838 | wxMimeTypesManager * _result; | |
8839 | char *_kwnames[] = { NULL }; | |
8840 | char _ptemp[128]; | |
8841 | ||
8842 | self = self; | |
8843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
8844 | return NULL; | |
8845 | { | |
8846 | wxPy_BEGIN_ALLOW_THREADS; | |
8847 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); | |
8848 | ||
8849 | wxPy_END_ALLOW_THREADS; | |
8850 | } if (_result) { | |
8851 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
8852 | _resultobj = Py_BuildValue("s",_ptemp); | |
8853 | } else { | |
8854 | Py_INCREF(Py_None); | |
8855 | _resultobj = Py_None; | |
8856 | } | |
8857 | return _resultobj; | |
8858 | } | |
8859 | ||
8860 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
8861 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8862 | PyObject * _resultobj; | |
8863 | wxMimeTypesManager * _arg0; | |
8864 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
8865 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
8866 | PyObject * _argo0 = 0; | |
8867 | PyObject * _obj2 = 0; | |
8868 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
8869 | ||
8870 | self = self; | |
8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
8872 | return NULL; | |
8873 | if (_argo0) { | |
8874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
8876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
8877 | return NULL; | |
8878 | } | |
8879 | } | |
8880 | if (_obj2) | |
8881 | { | |
8882 | #if PYTHON_API_VERSION >= 1009 | |
8883 | char* tmpPtr; int tmpSize; | |
8884 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8885 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8886 | return NULL; | |
8887 | } | |
8888 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8889 | return NULL; | |
8890 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8891 | #else | |
8892 | if (!PyString_Check(_obj2)) { | |
8893 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8894 | return NULL; | |
8895 | } | |
8896 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8897 | #endif | |
8898 | } | |
8899 | { | |
8900 | wxPy_BEGIN_ALLOW_THREADS; | |
8901 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); | |
8902 | ||
8903 | wxPy_END_ALLOW_THREADS; | |
8904 | } Py_INCREF(Py_None); | |
8905 | _resultobj = Py_None; | |
8906 | { | |
8907 | if (_obj2) | |
8908 | delete _arg2; | |
8909 | } | |
8910 | return _resultobj; | |
8911 | } | |
8912 | ||
8913 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
8914 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8915 | PyObject * _resultobj; | |
8916 | wxMimeTypesManager * _arg0; | |
8917 | PyObject * _argo0 = 0; | |
8918 | char *_kwnames[] = { "self", NULL }; | |
8919 | ||
8920 | self = self; | |
8921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
8922 | return NULL; | |
8923 | if (_argo0) { | |
8924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
8926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
8927 | return NULL; | |
8928 | } | |
8929 | } | |
8930 | { | |
8931 | wxPy_BEGIN_ALLOW_THREADS; | |
8932 | wxMimeTypesManager_ClearData(_arg0); | |
8933 | ||
8934 | wxPy_END_ALLOW_THREADS; | |
8935 | } Py_INCREF(Py_None); | |
8936 | _resultobj = Py_None; | |
8937 | return _resultobj; | |
8938 | } | |
8939 | ||
8940 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
8941 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8942 | PyObject * _resultobj; | |
8943 | wxFileType * _result; | |
8944 | wxMimeTypesManager * _arg0; | |
8945 | wxString * _arg1; | |
8946 | PyObject * _argo0 = 0; | |
8947 | PyObject * _obj1 = 0; | |
8948 | char *_kwnames[] = { "self","ext", NULL }; | |
8949 | char _ptemp[128]; | |
8950 | ||
8951 | self = self; | |
8952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
8953 | return NULL; | |
8954 | if (_argo0) { | |
8955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
8957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
8958 | return NULL; | |
8959 | } | |
8960 | } | |
8961 | { | |
8962 | #if PYTHON_API_VERSION >= 1009 | |
8963 | char* tmpPtr; int tmpSize; | |
8964 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8965 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8966 | return NULL; | |
8967 | } | |
8968 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8969 | return NULL; | |
8970 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8971 | #else | |
8972 | if (!PyString_Check(_obj1)) { | |
8973 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8974 | return NULL; | |
8975 | } | |
8976 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8977 | #endif | |
8978 | } | |
8979 | { | |
8980 | wxPy_BEGIN_ALLOW_THREADS; | |
8981 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); | |
8982 | ||
8983 | wxPy_END_ALLOW_THREADS; | |
8984 | } if (_result) { | |
8985 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8986 | _resultobj = Py_BuildValue("s",_ptemp); | |
8987 | } else { | |
8988 | Py_INCREF(Py_None); | |
8989 | _resultobj = Py_None; | |
8990 | } | |
8991 | { | |
8992 | if (_obj1) | |
8993 | delete _arg1; | |
8994 | } | |
8995 | return _resultobj; | |
8996 | } | |
8997 | ||
8998 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
8999 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9000 | PyObject * _resultobj; | |
9001 | wxFileType * _result; | |
9002 | wxMimeTypesManager * _arg0; | |
9003 | wxString * _arg1; | |
9004 | PyObject * _argo0 = 0; | |
9005 | PyObject * _obj1 = 0; | |
9006 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9007 | char _ptemp[128]; | |
9008 | ||
9009 | self = self; | |
9010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9011 | return NULL; | |
9012 | if (_argo0) { | |
9013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9016 | return NULL; | |
9017 | } | |
9018 | } | |
9019 | { | |
9020 | #if PYTHON_API_VERSION >= 1009 | |
9021 | char* tmpPtr; int tmpSize; | |
9022 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9023 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9024 | return NULL; | |
9025 | } | |
9026 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9027 | return NULL; | |
9028 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9029 | #else | |
9030 | if (!PyString_Check(_obj1)) { | |
9031 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9032 | return NULL; | |
9033 | } | |
9034 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9035 | #endif | |
9036 | } | |
9037 | { | |
9038 | wxPy_BEGIN_ALLOW_THREADS; | |
9039 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); | |
9040 | ||
9041 | wxPy_END_ALLOW_THREADS; | |
9042 | } if (_result) { | |
9043 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9044 | _resultobj = Py_BuildValue("s",_ptemp); | |
9045 | } else { | |
9046 | Py_INCREF(Py_None); | |
9047 | _resultobj = Py_None; | |
9048 | } | |
9049 | { | |
9050 | if (_obj1) | |
9051 | delete _arg1; | |
9052 | } | |
9053 | return _resultobj; | |
9054 | } | |
9055 | ||
9056 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9057 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9058 | PyObject * _resultobj; | |
9059 | bool _result; | |
9060 | wxMimeTypesManager * _arg0; | |
9061 | wxString * _arg1; | |
9062 | bool _arg2 = (bool ) FALSE; | |
9063 | PyObject * _argo0 = 0; | |
9064 | PyObject * _obj1 = 0; | |
9065 | int tempbool2 = (int) FALSE; | |
9066 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9067 | ||
9068 | self = self; | |
9069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9070 | return NULL; | |
9071 | if (_argo0) { | |
9072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9075 | return NULL; | |
9076 | } | |
9077 | } | |
9078 | { | |
9079 | #if PYTHON_API_VERSION >= 1009 | |
9080 | char* tmpPtr; int tmpSize; | |
9081 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9082 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9083 | return NULL; | |
9084 | } | |
9085 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9086 | return NULL; | |
9087 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9088 | #else | |
9089 | if (!PyString_Check(_obj1)) { | |
9090 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9091 | return NULL; | |
9092 | } | |
9093 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9094 | #endif | |
9095 | } | |
9096 | _arg2 = (bool ) tempbool2; | |
9097 | { | |
9098 | wxPy_BEGIN_ALLOW_THREADS; | |
9099 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); | |
9100 | ||
9101 | wxPy_END_ALLOW_THREADS; | |
9102 | } _resultobj = Py_BuildValue("i",_result); | |
9103 | { | |
9104 | if (_obj1) | |
9105 | delete _arg1; | |
9106 | } | |
9107 | return _resultobj; | |
9108 | } | |
9109 | ||
9110 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9111 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9112 | PyObject * _resultobj; | |
9113 | bool _result; | |
9114 | wxMimeTypesManager * _arg0; | |
9115 | wxString * _arg1; | |
9116 | PyObject * _argo0 = 0; | |
9117 | PyObject * _obj1 = 0; | |
9118 | char *_kwnames[] = { "self","filename", NULL }; | |
9119 | ||
9120 | self = self; | |
9121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9122 | return NULL; | |
9123 | if (_argo0) { | |
9124 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9125 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9127 | return NULL; | |
9128 | } | |
9129 | } | |
9130 | { | |
9131 | #if PYTHON_API_VERSION >= 1009 | |
9132 | char* tmpPtr; int tmpSize; | |
9133 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9134 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9135 | return NULL; | |
9136 | } | |
9137 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9138 | return NULL; | |
9139 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9140 | #else | |
9141 | if (!PyString_Check(_obj1)) { | |
9142 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9143 | return NULL; | |
9144 | } | |
9145 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9146 | #endif | |
9147 | } | |
9148 | { | |
9149 | wxPy_BEGIN_ALLOW_THREADS; | |
9150 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); | |
9151 | ||
9152 | wxPy_END_ALLOW_THREADS; | |
9153 | } _resultobj = Py_BuildValue("i",_result); | |
9154 | { | |
9155 | if (_obj1) | |
9156 | delete _arg1; | |
9157 | } | |
9158 | return _resultobj; | |
9159 | } | |
9160 | ||
9161 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9162 | wxArrayString arr; | |
9163 | self->EnumAllFileTypes(arr); | |
9164 | return wxArrayString2PyList_helper(arr); | |
9165 | } | |
9166 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9167 | PyObject * _resultobj; | |
9168 | PyObject * _result; | |
9169 | wxMimeTypesManager * _arg0; | |
9170 | PyObject * _argo0 = 0; | |
9171 | char *_kwnames[] = { "self", NULL }; | |
9172 | ||
9173 | self = self; | |
9174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9175 | return NULL; | |
9176 | if (_argo0) { | |
9177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9180 | return NULL; | |
9181 | } | |
9182 | } | |
9183 | { | |
9184 | wxPy_BEGIN_ALLOW_THREADS; | |
9185 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); | |
9186 | ||
9187 | wxPy_END_ALLOW_THREADS; | |
9188 | }{ | |
9189 | _resultobj = _result; | |
9190 | } | |
9191 | return _resultobj; | |
9192 | } | |
9193 | ||
9194 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9195 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9196 | PyObject * _resultobj; | |
9197 | wxMimeTypesManager * _arg0; | |
9198 | wxFileTypeInfo * _arg1; | |
9199 | PyObject * _argo0 = 0; | |
9200 | PyObject * _argo1 = 0; | |
9201 | char *_kwnames[] = { "self","ft", NULL }; | |
9202 | ||
9203 | self = self; | |
9204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9205 | return NULL; | |
9206 | if (_argo0) { | |
9207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9210 | return NULL; | |
9211 | } | |
9212 | } | |
9213 | if (_argo1) { | |
9214 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9215 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9217 | return NULL; | |
9218 | } | |
9219 | } | |
9220 | { | |
9221 | wxPy_BEGIN_ALLOW_THREADS; | |
9222 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); | |
9223 | ||
9224 | wxPy_END_ALLOW_THREADS; | |
9225 | } Py_INCREF(Py_None); | |
9226 | _resultobj = Py_None; | |
9227 | return _resultobj; | |
9228 | } | |
9229 | ||
9230 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9231 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9232 | PyObject * _resultobj; | |
9233 | wxFileType * _result; | |
9234 | wxMimeTypesManager * _arg0; | |
9235 | wxFileTypeInfo * _arg1; | |
9236 | PyObject * _argo0 = 0; | |
9237 | PyObject * _argo1 = 0; | |
9238 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9239 | char _ptemp[128]; | |
9240 | ||
9241 | self = self; | |
9242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9243 | return NULL; | |
9244 | if (_argo0) { | |
9245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9248 | return NULL; | |
9249 | } | |
9250 | } | |
9251 | if (_argo1) { | |
9252 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9253 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9255 | return NULL; | |
9256 | } | |
9257 | } | |
9258 | { | |
9259 | wxPy_BEGIN_ALLOW_THREADS; | |
9260 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); | |
9261 | ||
9262 | wxPy_END_ALLOW_THREADS; | |
9263 | } if (_result) { | |
9264 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9265 | _resultobj = Py_BuildValue("s",_ptemp); | |
9266 | } else { | |
9267 | Py_INCREF(Py_None); | |
9268 | _resultobj = Py_None; | |
9269 | } | |
9270 | return _resultobj; | |
9271 | } | |
9272 | ||
9273 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9274 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9275 | PyObject * _resultobj; | |
9276 | bool _result; | |
9277 | wxMimeTypesManager * _arg0; | |
9278 | wxFileType * _arg1; | |
9279 | PyObject * _argo0 = 0; | |
9280 | PyObject * _argo1 = 0; | |
9281 | char *_kwnames[] = { "self","ft", NULL }; | |
9282 | ||
9283 | self = self; | |
9284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9285 | return NULL; | |
9286 | if (_argo0) { | |
9287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9290 | return NULL; | |
9291 | } | |
9292 | } | |
9293 | if (_argo1) { | |
9294 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9295 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9297 | return NULL; | |
9298 | } | |
9299 | } | |
9300 | { | |
9301 | wxPy_BEGIN_ALLOW_THREADS; | |
9302 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); | |
9303 | ||
9304 | wxPy_END_ALLOW_THREADS; | |
9305 | } _resultobj = Py_BuildValue("i",_result); | |
9306 | return _resultobj; | |
9307 | } | |
9308 | ||
9309 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9310 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9311 | PyObject * _resultobj; | |
9312 | wxMimeTypesManager * _arg0; | |
9313 | PyObject * _argo0 = 0; | |
9314 | char *_kwnames[] = { "self", NULL }; | |
9315 | ||
9316 | self = self; | |
9317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
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 delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9323 | return NULL; | |
9324 | } | |
9325 | } | |
9326 | { | |
9327 | wxPy_BEGIN_ALLOW_THREADS; | |
9328 | delete_wxMimeTypesManager(_arg0); | |
9329 | ||
9330 | wxPy_END_ALLOW_THREADS; | |
9331 | } Py_INCREF(Py_None); | |
9332 | _resultobj = Py_None; | |
9333 | return _resultobj; | |
9334 | } | |
9335 | ||
742fc581 RD |
9336 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
9337 | wxFileHistory *src; | |
9338 | wxObject *dest; | |
9339 | src = (wxFileHistory *) ptr; | |
9340 | dest = (wxObject *) src; | |
9341 | return (void *) dest; | |
9342 | } | |
9343 | ||
9344 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
9345 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9346 | PyObject * _resultobj; | |
9347 | wxFileHistory * _result; | |
9348 | int _arg0 = (int ) 9; | |
9349 | char *_kwnames[] = { "maxFiles", NULL }; | |
9350 | char _ptemp[128]; | |
9351 | ||
9352 | self = self; | |
9353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
9354 | return NULL; | |
9355 | { | |
9356 | wxPy_BEGIN_ALLOW_THREADS; | |
9357 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); | |
9358 | ||
9359 | wxPy_END_ALLOW_THREADS; | |
9360 | } if (_result) { | |
9361 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
9362 | _resultobj = Py_BuildValue("s",_ptemp); | |
9363 | } else { | |
9364 | Py_INCREF(Py_None); | |
9365 | _resultobj = Py_None; | |
9366 | } | |
9367 | return _resultobj; | |
9368 | } | |
9369 | ||
9370 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
9371 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9372 | PyObject * _resultobj; | |
9373 | wxFileHistory * _arg0; | |
9374 | PyObject * _argo0 = 0; | |
9375 | char *_kwnames[] = { "self", NULL }; | |
9376 | ||
9377 | self = self; | |
9378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
9379 | return NULL; | |
9380 | if (_argo0) { | |
9381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
9384 | return NULL; | |
9385 | } | |
9386 | } | |
9387 | { | |
9388 | wxPy_BEGIN_ALLOW_THREADS; | |
9389 | delete_wxFileHistory(_arg0); | |
9390 | ||
9391 | wxPy_END_ALLOW_THREADS; | |
9392 | } Py_INCREF(Py_None); | |
9393 | _resultobj = Py_None; | |
9394 | return _resultobj; | |
9395 | } | |
9396 | ||
9397 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
9398 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9399 | PyObject * _resultobj; | |
9400 | wxFileHistory * _arg0; | |
9401 | wxString * _arg1; | |
9402 | PyObject * _argo0 = 0; | |
9403 | PyObject * _obj1 = 0; | |
9404 | char *_kwnames[] = { "self","file", NULL }; | |
9405 | ||
9406 | self = self; | |
9407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
9408 | return NULL; | |
9409 | if (_argo0) { | |
9410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
9413 | return NULL; | |
9414 | } | |
9415 | } | |
9416 | { | |
9417 | #if PYTHON_API_VERSION >= 1009 | |
9418 | char* tmpPtr; int tmpSize; | |
9419 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9420 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9421 | return NULL; | |
9422 | } | |
9423 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9424 | return NULL; | |
9425 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9426 | #else | |
9427 | if (!PyString_Check(_obj1)) { | |
9428 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9429 | return NULL; | |
9430 | } | |
9431 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9432 | #endif | |
9433 | } | |
9434 | { | |
9435 | wxPy_BEGIN_ALLOW_THREADS; | |
9436 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); | |
9437 | ||
9438 | wxPy_END_ALLOW_THREADS; | |
9439 | } Py_INCREF(Py_None); | |
9440 | _resultobj = Py_None; | |
9441 | { | |
9442 | if (_obj1) | |
9443 | delete _arg1; | |
9444 | } | |
9445 | return _resultobj; | |
9446 | } | |
9447 | ||
9448 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
9449 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9450 | PyObject * _resultobj; | |
9451 | wxFileHistory * _arg0; | |
9452 | int _arg1; | |
9453 | PyObject * _argo0 = 0; | |
9454 | char *_kwnames[] = { "self","i", NULL }; | |
9455 | ||
9456 | self = self; | |
9457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
9458 | return NULL; | |
9459 | if (_argo0) { | |
9460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
9463 | return NULL; | |
9464 | } | |
9465 | } | |
9466 | { | |
9467 | wxPy_BEGIN_ALLOW_THREADS; | |
9468 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); | |
9469 | ||
9470 | wxPy_END_ALLOW_THREADS; | |
9471 | } Py_INCREF(Py_None); | |
9472 | _resultobj = Py_None; | |
9473 | return _resultobj; | |
9474 | } | |
9475 | ||
9476 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
9477 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9478 | PyObject * _resultobj; | |
9479 | int _result; | |
9480 | wxFileHistory * _arg0; | |
9481 | PyObject * _argo0 = 0; | |
9482 | char *_kwnames[] = { "self", NULL }; | |
9483 | ||
9484 | self = self; | |
9485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
9486 | return NULL; | |
9487 | if (_argo0) { | |
9488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
9491 | return NULL; | |
9492 | } | |
9493 | } | |
9494 | { | |
9495 | wxPy_BEGIN_ALLOW_THREADS; | |
9496 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); | |
9497 | ||
9498 | wxPy_END_ALLOW_THREADS; | |
9499 | } _resultobj = Py_BuildValue("i",_result); | |
9500 | return _resultobj; | |
9501 | } | |
9502 | ||
9503 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
9504 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9505 | PyObject * _resultobj; | |
9506 | wxFileHistory * _arg0; | |
9507 | wxMenu * _arg1; | |
9508 | PyObject * _argo0 = 0; | |
9509 | PyObject * _argo1 = 0; | |
9510 | char *_kwnames[] = { "self","menu", NULL }; | |
9511 | ||
9512 | self = self; | |
9513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
9514 | return NULL; | |
9515 | if (_argo0) { | |
9516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
9519 | return NULL; | |
9520 | } | |
9521 | } | |
9522 | if (_argo1) { | |
9523 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9524 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
9526 | return NULL; | |
9527 | } | |
9528 | } | |
9529 | { | |
9530 | wxPy_BEGIN_ALLOW_THREADS; | |
9531 | wxFileHistory_UseMenu(_arg0,_arg1); | |
9532 | ||
9533 | wxPy_END_ALLOW_THREADS; | |
9534 | } Py_INCREF(Py_None); | |
9535 | _resultobj = Py_None; | |
9536 | return _resultobj; | |
9537 | } | |
9538 | ||
9539 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
9540 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9541 | PyObject * _resultobj; | |
9542 | wxFileHistory * _arg0; | |
9543 | wxMenu * _arg1; | |
9544 | PyObject * _argo0 = 0; | |
9545 | PyObject * _argo1 = 0; | |
9546 | char *_kwnames[] = { "self","menu", NULL }; | |
9547 | ||
9548 | self = self; | |
9549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
9550 | return NULL; | |
9551 | if (_argo0) { | |
9552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
9555 | return NULL; | |
9556 | } | |
9557 | } | |
9558 | if (_argo1) { | |
9559 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9560 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
9562 | return NULL; | |
9563 | } | |
9564 | } | |
9565 | { | |
9566 | wxPy_BEGIN_ALLOW_THREADS; | |
9567 | wxFileHistory_RemoveMenu(_arg0,_arg1); | |
9568 | ||
9569 | wxPy_END_ALLOW_THREADS; | |
9570 | } Py_INCREF(Py_None); | |
9571 | _resultobj = Py_None; | |
9572 | return _resultobj; | |
9573 | } | |
9574 | ||
9575 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
9576 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9577 | PyObject * _resultobj; | |
9578 | wxFileHistory * _arg0; | |
9579 | wxConfigBase * _arg1; | |
9580 | PyObject * _argo0 = 0; | |
9581 | PyObject * _argo1 = 0; | |
9582 | char *_kwnames[] = { "self","config", NULL }; | |
9583 | ||
9584 | self = self; | |
9585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
9586 | return NULL; | |
9587 | if (_argo0) { | |
9588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
9591 | return NULL; | |
9592 | } | |
9593 | } | |
9594 | if (_argo1) { | |
9595 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9596 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
9598 | return NULL; | |
9599 | } | |
9600 | } | |
9601 | { | |
9602 | wxPy_BEGIN_ALLOW_THREADS; | |
9603 | wxFileHistory_Load(_arg0,*_arg1); | |
9604 | ||
9605 | wxPy_END_ALLOW_THREADS; | |
9606 | } Py_INCREF(Py_None); | |
9607 | _resultobj = Py_None; | |
9608 | return _resultobj; | |
9609 | } | |
9610 | ||
9611 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
9612 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9613 | PyObject * _resultobj; | |
9614 | wxFileHistory * _arg0; | |
9615 | wxConfigBase * _arg1; | |
9616 | PyObject * _argo0 = 0; | |
9617 | PyObject * _argo1 = 0; | |
9618 | char *_kwnames[] = { "self","config", NULL }; | |
9619 | ||
9620 | self = self; | |
9621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
9622 | return NULL; | |
9623 | if (_argo0) { | |
9624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
9627 | return NULL; | |
9628 | } | |
9629 | } | |
9630 | if (_argo1) { | |
9631 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9632 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
9634 | return NULL; | |
9635 | } | |
9636 | } | |
9637 | { | |
9638 | wxPy_BEGIN_ALLOW_THREADS; | |
9639 | wxFileHistory_Save(_arg0,*_arg1); | |
9640 | ||
9641 | wxPy_END_ALLOW_THREADS; | |
9642 | } Py_INCREF(Py_None); | |
9643 | _resultobj = Py_None; | |
9644 | return _resultobj; | |
9645 | } | |
9646 | ||
9647 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
9648 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9649 | PyObject * _resultobj; | |
9650 | wxFileHistory * _arg0; | |
9651 | PyObject * _argo0 = 0; | |
9652 | char *_kwnames[] = { "self", NULL }; | |
9653 | ||
9654 | self = self; | |
9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
9656 | return NULL; | |
9657 | if (_argo0) { | |
9658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
9661 | return NULL; | |
9662 | } | |
9663 | } | |
9664 | { | |
9665 | wxPy_BEGIN_ALLOW_THREADS; | |
9666 | wxFileHistory_AddFilesToMenu(_arg0); | |
9667 | ||
9668 | wxPy_END_ALLOW_THREADS; | |
9669 | } Py_INCREF(Py_None); | |
9670 | _resultobj = Py_None; | |
9671 | return _resultobj; | |
9672 | } | |
9673 | ||
9674 | #define wxFileHistory_AddFilesToSingleMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) | |
9675 | static PyObject *_wrap_wxFileHistory_AddFilesToSingleMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9676 | PyObject * _resultobj; | |
9677 | wxFileHistory * _arg0; | |
9678 | wxMenu * _arg1; | |
9679 | PyObject * _argo0 = 0; | |
9680 | PyObject * _argo1 = 0; | |
9681 | char *_kwnames[] = { "self","menu", NULL }; | |
9682 | ||
9683 | self = self; | |
9684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToSingleMenu",_kwnames,&_argo0,&_argo1)) | |
9685 | return NULL; | |
9686 | if (_argo0) { | |
9687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToSingleMenu. Expected _wxFileHistory_p."); | |
9690 | return NULL; | |
9691 | } | |
9692 | } | |
9693 | if (_argo1) { | |
9694 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9695 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToSingleMenu. Expected _wxMenu_p."); | |
9697 | return NULL; | |
9698 | } | |
9699 | } | |
9700 | { | |
9701 | wxPy_BEGIN_ALLOW_THREADS; | |
9702 | wxFileHistory_AddFilesToSingleMenu(_arg0,_arg1); | |
9703 | ||
9704 | wxPy_END_ALLOW_THREADS; | |
9705 | } Py_INCREF(Py_None); | |
9706 | _resultobj = Py_None; | |
9707 | return _resultobj; | |
9708 | } | |
9709 | ||
9710 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
9711 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9712 | PyObject * _resultobj; | |
9713 | wxString * _result; | |
9714 | wxFileHistory * _arg0; | |
9715 | int _arg1; | |
9716 | PyObject * _argo0 = 0; | |
9717 | char *_kwnames[] = { "self","i", NULL }; | |
9718 | ||
9719 | self = self; | |
9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
9721 | return NULL; | |
9722 | if (_argo0) { | |
9723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
9726 | return NULL; | |
9727 | } | |
9728 | } | |
9729 | { | |
9730 | wxPy_BEGIN_ALLOW_THREADS; | |
9731 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); | |
9732 | ||
9733 | wxPy_END_ALLOW_THREADS; | |
9734 | }{ | |
9735 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9736 | } | |
9737 | { | |
9738 | delete _result; | |
9739 | } | |
9740 | return _resultobj; | |
9741 | } | |
9742 | ||
9743 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
9744 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9745 | PyObject * _resultobj; | |
9746 | int _result; | |
9747 | wxFileHistory * _arg0; | |
9748 | PyObject * _argo0 = 0; | |
9749 | char *_kwnames[] = { "self", NULL }; | |
9750 | ||
9751 | self = self; | |
9752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
9753 | return NULL; | |
9754 | if (_argo0) { | |
9755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
9758 | return NULL; | |
9759 | } | |
9760 | } | |
9761 | { | |
9762 | wxPy_BEGIN_ALLOW_THREADS; | |
9763 | _result = (int )wxFileHistory_GetCount(_arg0); | |
9764 | ||
9765 | wxPy_END_ALLOW_THREADS; | |
9766 | } _resultobj = Py_BuildValue("i",_result); | |
9767 | return _resultobj; | |
9768 | } | |
9769 | ||
9770 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
9771 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9772 | PyObject * _resultobj; | |
9773 | int _result; | |
9774 | wxFileHistory * _arg0; | |
9775 | PyObject * _argo0 = 0; | |
9776 | char *_kwnames[] = { "self", NULL }; | |
9777 | ||
9778 | self = self; | |
9779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
9780 | return NULL; | |
9781 | if (_argo0) { | |
9782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
9785 | return NULL; | |
9786 | } | |
9787 | } | |
9788 | { | |
9789 | wxPy_BEGIN_ALLOW_THREADS; | |
9790 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); | |
9791 | ||
9792 | wxPy_END_ALLOW_THREADS; | |
9793 | } _resultobj = Py_BuildValue("i",_result); | |
9794 | return _resultobj; | |
9795 | } | |
9796 | ||
e6056257 | 9797 | static PyMethodDef misc2cMethods[] = { |
742fc581 RD |
9798 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, |
9799 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
9800 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
9801 | { "wxFileHistory_AddFilesToSingleMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToSingleMenu, METH_VARARGS | METH_KEYWORDS }, | |
9802 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
9803 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
9804 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
9805 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
9806 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
9807 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
9808 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
9809 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
9810 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
9811 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
b6e5c445 RD |
9812 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
9813 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
9814 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
9815 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
9816 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
9817 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
9818 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
9819 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9820 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
9821 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
9822 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
9823 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
9824 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
9825 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
9826 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
9827 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
9828 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
9829 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
9830 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
9831 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
9832 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
9833 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
9834 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
9835 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
9836 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
9837 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
9838 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9839 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
9840 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
9841 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
9842 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
9843 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
9844 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
9845 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
9846 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
9847 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
9848 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9849 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
9850 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
9851 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
9852 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
9853 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
9854 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
9855 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
9856 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9857 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
9858 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
9859 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, | |
9860 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
9861 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
9862 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
9863 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
9864 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
9865 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
9866 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
9867 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
9868 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
9869 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
9870 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
9871 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
9872 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
9873 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
9874 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
9875 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
9876 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
9877 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
9878 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
9879 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
9880 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
9881 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
9882 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
9883 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
9884 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
9885 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
9886 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
9887 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
9888 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
9889 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
9890 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9891 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
9892 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
9893 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
9894 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
9895 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
9896 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
9897 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
9898 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
9899 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
9900 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
9901 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, | |
9902 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, | |
9903 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, | |
9904 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
9905 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
9906 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
9907 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
9908 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
9909 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
9910 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
9911 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
9912 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9913 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
9914 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
9915 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
9916 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
9917 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
9918 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
9919 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
9920 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
9921 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
9922 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
9923 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, | |
9924 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
9925 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9926 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
9927 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
9928 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
9929 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
9930 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
9931 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
9932 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9933 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
9934 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
9935 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
9936 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
9937 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
9938 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
9939 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
9940 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, | |
9941 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9942 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9943 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
9944 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
9945 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
9946 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
9947 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9948 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9949 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
9950 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
9951 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
9952 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
9953 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
9954 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
9955 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
9956 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
9957 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
9958 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
9959 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
9960 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
9961 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
9962 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b6e5c445 RD |
9963 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
9964 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
9965 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
9966 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
9967 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, | |
e6056257 RD |
9968 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
9969 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
9970 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
9971 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
9972 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
9973 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
9974 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
9975 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
9976 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
9977 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
9978 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
9979 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
9980 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
9981 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
9982 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
9983 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
9984 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9985 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
9986 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, | |
9987 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
9988 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
9989 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
9990 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, | |
9991 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
9992 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
9993 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
9994 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
9995 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
9996 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
9997 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
9998 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
9999 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
10000 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
10001 | { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, | |
10002 | { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
10003 | { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, | |
10004 | { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
10005 | { "wxFontEnumerator__setCallbackInfo", (PyCFunction) _wrap_wxFontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
10006 | { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
10007 | { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
10008 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, | |
10009 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
10010 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10011 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10012 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, | |
10013 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10014 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10015 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10016 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10017 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10018 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10019 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10020 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10021 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10022 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10023 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, | |
10024 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
10025 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10026 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10027 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
10028 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10029 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, | |
10030 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, | |
10031 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, | |
10032 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
10033 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
10034 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10035 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
10036 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
10037 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
10038 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
10039 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
10040 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
10041 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
10042 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
10043 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
10044 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, | |
10045 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
10046 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
10047 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
10048 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, | |
10049 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, | |
10050 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
10051 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
10052 | { "wxSystemSettings_GetSystemMetric", (PyCFunction) _wrap_wxSystemSettings_GetSystemMetric, METH_VARARGS | METH_KEYWORDS }, | |
10053 | { "wxSystemSettings_GetSystemFont", (PyCFunction) _wrap_wxSystemSettings_GetSystemFont, METH_VARARGS | METH_KEYWORDS }, | |
10054 | { "wxSystemSettings_GetSystemColour", (PyCFunction) _wrap_wxSystemSettings_GetSystemColour, METH_VARARGS | METH_KEYWORDS }, | |
10055 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, | |
10056 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
10057 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
10058 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10059 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10060 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
10061 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10062 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
10063 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10064 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
10065 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
10066 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, | |
10067 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
10068 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
10069 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
10070 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, | |
10071 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
10072 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
10073 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10074 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10075 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10076 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10077 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
10078 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
10079 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
10080 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10081 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
10082 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
10083 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
10084 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10085 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10086 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
10087 | { NULL, NULL } | |
10088 | }; | |
10089 | #ifdef __cplusplus | |
10090 | } | |
10091 | #endif | |
10092 | /* | |
10093 | * This table is used by the pointer type-checker | |
10094 | */ | |
10095 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
10096 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, | |
10097 | { "_signed_long","_long",0}, | |
10098 | { "_wxPrintQuality","_wxCoord",0}, | |
10099 | { "_wxPrintQuality","_int",0}, | |
10100 | { "_wxPrintQuality","_signed_int",0}, | |
10101 | { "_wxPrintQuality","_unsigned_int",0}, | |
10102 | { "_wxPrintQuality","_wxWindowID",0}, | |
10103 | { "_wxPrintQuality","_uint",0}, | |
10104 | { "_wxPrintQuality","_EBool",0}, | |
10105 | { "_wxPrintQuality","_size_t",0}, | |
10106 | { "_wxPrintQuality","_time_t",0}, | |
10107 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, | |
10108 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
10109 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, | |
10110 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, | |
10111 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, | |
10112 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, | |
10113 | { "_byte","_unsigned_char",0}, | |
10114 | { "_long","_unsigned_long",0}, | |
10115 | { "_long","_signed_long",0}, | |
10116 | { "_size_t","_wxCoord",0}, | |
10117 | { "_size_t","_wxPrintQuality",0}, | |
10118 | { "_size_t","_time_t",0}, | |
10119 | { "_size_t","_unsigned_int",0}, | |
10120 | { "_size_t","_int",0}, | |
10121 | { "_size_t","_wxWindowID",0}, | |
10122 | { "_size_t","_uint",0}, | |
10123 | { "_uint","_wxCoord",0}, | |
10124 | { "_uint","_wxPrintQuality",0}, | |
10125 | { "_uint","_time_t",0}, | |
10126 | { "_uint","_size_t",0}, | |
10127 | { "_uint","_unsigned_int",0}, | |
10128 | { "_uint","_int",0}, | |
10129 | { "_uint","_wxWindowID",0}, | |
10130 | { "_wxChar","_char",0}, | |
10131 | { "_char","_wxChar",0}, | |
10132 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, | |
10133 | { "_EBool","_wxCoord",0}, | |
10134 | { "_EBool","_wxPrintQuality",0}, | |
10135 | { "_EBool","_signed_int",0}, | |
10136 | { "_EBool","_int",0}, | |
10137 | { "_EBool","_wxWindowID",0}, | |
10138 | { "_unsigned_long","_long",0}, | |
10139 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, | |
10140 | { "_signed_int","_wxCoord",0}, | |
10141 | { "_signed_int","_wxPrintQuality",0}, | |
10142 | { "_signed_int","_EBool",0}, | |
10143 | { "_signed_int","_wxWindowID",0}, | |
10144 | { "_signed_int","_int",0}, | |
742fc581 | 10145 | { "_WXTYPE","_wxDateTime_t",0}, |
e6056257 RD |
10146 | { "_WXTYPE","_short",0}, |
10147 | { "_WXTYPE","_signed_short",0}, | |
10148 | { "_WXTYPE","_unsigned_short",0}, | |
10149 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, | |
742fc581 | 10150 | { "_unsigned_short","_wxDateTime_t",0}, |
e6056257 RD |
10151 | { "_unsigned_short","_WXTYPE",0}, |
10152 | { "_unsigned_short","_short",0}, | |
742fc581 | 10153 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
e6056257 RD |
10154 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
10155 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, | |
10156 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, | |
10157 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, | |
10158 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, | |
10159 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, | |
10160 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, | |
10161 | { "_signed_short","_WXTYPE",0}, | |
10162 | { "_signed_short","_short",0}, | |
10163 | { "_unsigned_char","_byte",0}, | |
10164 | { "_unsigned_int","_wxCoord",0}, | |
10165 | { "_unsigned_int","_wxPrintQuality",0}, | |
10166 | { "_unsigned_int","_time_t",0}, | |
10167 | { "_unsigned_int","_size_t",0}, | |
10168 | { "_unsigned_int","_uint",0}, | |
10169 | { "_unsigned_int","_wxWindowID",0}, | |
10170 | { "_unsigned_int","_int",0}, | |
742fc581 | 10171 | { "_short","_wxDateTime_t",0}, |
e6056257 RD |
10172 | { "_short","_WXTYPE",0}, |
10173 | { "_short","_unsigned_short",0}, | |
10174 | { "_short","_signed_short",0}, | |
10175 | { "_wxWindowID","_wxCoord",0}, | |
10176 | { "_wxWindowID","_wxPrintQuality",0}, | |
10177 | { "_wxWindowID","_time_t",0}, | |
10178 | { "_wxWindowID","_size_t",0}, | |
10179 | { "_wxWindowID","_EBool",0}, | |
10180 | { "_wxWindowID","_uint",0}, | |
10181 | { "_wxWindowID","_int",0}, | |
10182 | { "_wxWindowID","_signed_int",0}, | |
10183 | { "_wxWindowID","_unsigned_int",0}, | |
10184 | { "_int","_wxCoord",0}, | |
10185 | { "_int","_wxPrintQuality",0}, | |
10186 | { "_int","_time_t",0}, | |
10187 | { "_int","_size_t",0}, | |
10188 | { "_int","_EBool",0}, | |
10189 | { "_int","_uint",0}, | |
10190 | { "_int","_wxWindowID",0}, | |
10191 | { "_int","_unsigned_int",0}, | |
10192 | { "_int","_signed_int",0}, | |
742fc581 RD |
10193 | { "_wxDateTime_t","_unsigned_short",0}, |
10194 | { "_wxDateTime_t","_short",0}, | |
10195 | { "_wxDateTime_t","_WXTYPE",0}, | |
e6056257 RD |
10196 | { "_time_t","_wxCoord",0}, |
10197 | { "_time_t","_wxPrintQuality",0}, | |
10198 | { "_time_t","_unsigned_int",0}, | |
10199 | { "_time_t","_int",0}, | |
10200 | { "_time_t","_wxWindowID",0}, | |
10201 | { "_time_t","_uint",0}, | |
10202 | { "_time_t","_size_t",0}, | |
10203 | { "_wxCoord","_int",0}, | |
10204 | { "_wxCoord","_signed_int",0}, | |
10205 | { "_wxCoord","_unsigned_int",0}, | |
10206 | { "_wxCoord","_wxWindowID",0}, | |
10207 | { "_wxCoord","_uint",0}, | |
10208 | { "_wxCoord","_EBool",0}, | |
10209 | { "_wxCoord","_size_t",0}, | |
10210 | { "_wxCoord","_time_t",0}, | |
10211 | { "_wxCoord","_wxPrintQuality",0}, | |
10212 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, | |
10213 | {0,0,0}}; | |
10214 | ||
10215 | static PyObject *SWIG_globals; | |
10216 | #ifdef __cplusplus | |
10217 | extern "C" | |
10218 | #endif | |
10219 | SWIGEXPORT(void) initmisc2c() { | |
10220 | PyObject *m, *d; | |
10221 | SWIG_globals = SWIG_newvarlink(); | |
10222 | m = Py_InitModule("misc2c", misc2cMethods); | |
10223 | d = PyModule_GetDict(m); | |
10224 | PyDict_SetItemString(d,"wxSYS_WHITE_BRUSH", PyInt_FromLong((long) wxSYS_WHITE_BRUSH)); | |
10225 | PyDict_SetItemString(d,"wxSYS_LTGRAY_BRUSH", PyInt_FromLong((long) wxSYS_LTGRAY_BRUSH)); | |
10226 | PyDict_SetItemString(d,"wxSYS_GRAY_BRUSH", PyInt_FromLong((long) wxSYS_GRAY_BRUSH)); | |
10227 | PyDict_SetItemString(d,"wxSYS_DKGRAY_BRUSH", PyInt_FromLong((long) wxSYS_DKGRAY_BRUSH)); | |
10228 | PyDict_SetItemString(d,"wxSYS_BLACK_BRUSH", PyInt_FromLong((long) wxSYS_BLACK_BRUSH)); | |
10229 | PyDict_SetItemString(d,"wxSYS_NULL_BRUSH", PyInt_FromLong((long) wxSYS_NULL_BRUSH)); | |
10230 | PyDict_SetItemString(d,"wxSYS_HOLLOW_BRUSH", PyInt_FromLong((long) wxSYS_HOLLOW_BRUSH)); | |
10231 | PyDict_SetItemString(d,"wxSYS_WHITE_PEN", PyInt_FromLong((long) wxSYS_WHITE_PEN)); | |
10232 | PyDict_SetItemString(d,"wxSYS_BLACK_PEN", PyInt_FromLong((long) wxSYS_BLACK_PEN)); | |
10233 | PyDict_SetItemString(d,"wxSYS_NULL_PEN", PyInt_FromLong((long) wxSYS_NULL_PEN)); | |
10234 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); | |
10235 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
10236 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
10237 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
10238 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
10239 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
10240 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
10241 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
10242 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
10243 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
10244 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); | |
10245 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
10246 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
10247 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
10248 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
10249 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
10250 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
10251 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
10252 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
10253 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
10254 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
10255 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
10256 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
10257 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
10258 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); | |
10259 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); | |
10260 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
10261 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
10262 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
10263 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); | |
10264 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
10265 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
10266 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
10267 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); | |
10268 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); | |
10269 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); | |
10270 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
10271 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
10272 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); | |
10273 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); | |
10274 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
10275 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
10276 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
10277 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
10278 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
10279 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
10280 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
10281 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
10282 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
10283 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
10284 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
10285 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
10286 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
10287 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
10288 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
10289 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
10290 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
10291 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
10292 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
10293 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
10294 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
10295 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
10296 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
10297 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
10298 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
10299 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
10300 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
10301 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
10302 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
10303 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
10304 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
10305 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
10306 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
10307 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
10308 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
10309 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
10310 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); | |
10311 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
10312 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
10313 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
10314 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
10315 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
10316 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
10317 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
10318 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
10319 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
10320 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); | |
b6e5c445 RD |
10321 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
10322 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
10323 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
10324 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
10325 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
10326 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
10327 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
e6056257 RD |
10328 | |
10329 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
10330 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
10331 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
10332 | { | |
10333 | int i; | |
10334 | for (i = 0; _swig_mapping[i].n1; i++) | |
10335 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10336 | } | |
10337 | } |