]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/misc2.cpp
0d19b32cbe2026f705fd92369b7034c0c606a1da
[wxWidgets.git] / wxPython / src / msw / misc2.cpp
1 /*
2 * FILE : src/msw/misc2.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initmisc2c
55
56 #define SWIG_name "misc2c"
57
58 #include "helpers.h"
59 #include <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
74 #include <wx/mimetype.h>
75
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() {
148 #ifdef WXP_WITH_THREAD
149 return wxThread::IsMain();
150 #else
151 return TRUE;
152 #endif
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 }
297
298 #if 0
299 extern wxMimeTypesManager * wxTheMimeTypesManager;
300
301 #endif
302
303 #include <wx/docview.h>
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_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) {
1417 PyObject * _resultobj;
1418 bool _result;
1419 wxWindow * _arg0;
1420 PyObject * _argo0 = 0;
1421 char *_kwnames[] = { "wnd", NULL };
1422
1423 self = self;
1424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0))
1425 return NULL;
1426 if (_argo0) {
1427 if (_argo0 == Py_None) { _arg0 = NULL; }
1428 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1429 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p.");
1430 return NULL;
1431 }
1432 }
1433 {
1434 wxPy_BEGIN_ALLOW_THREADS;
1435 _result = (bool )wxCheckForInterrupt(_arg0);
1436
1437 wxPy_END_ALLOW_THREADS;
1438 } _resultobj = Py_BuildValue("i",_result);
1439 return _resultobj;
1440 }
1441
1442 static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
1443 PyObject * _resultobj;
1444 char *_kwnames[] = { NULL };
1445
1446 self = self;
1447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames))
1448 return NULL;
1449 {
1450 wxPy_BEGIN_ALLOW_THREADS;
1451 wxFlushEvents();
1452
1453 wxPy_END_ALLOW_THREADS;
1454 } Py_INCREF(Py_None);
1455 _resultobj = Py_None;
1456 return _resultobj;
1457 }
1458
1459 static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) {
1460 PyObject * _resultobj;
1461 bool _result;
1462 char * _arg0;
1463 int _arg1;
1464 char *_kwnames[] = { "name","value", NULL };
1465
1466 self = self;
1467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1))
1468 return NULL;
1469 {
1470 wxPy_BEGIN_ALLOW_THREADS;
1471 _result = (bool )wxResourceAddIdentifier(_arg0,_arg1);
1472
1473 wxPy_END_ALLOW_THREADS;
1474 } _resultobj = Py_BuildValue("i",_result);
1475 return _resultobj;
1476 }
1477
1478 static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) {
1479 PyObject * _resultobj;
1480 char *_kwnames[] = { NULL };
1481
1482 self = self;
1483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames))
1484 return NULL;
1485 {
1486 wxPy_BEGIN_ALLOW_THREADS;
1487 wxResourceClear();
1488
1489 wxPy_END_ALLOW_THREADS;
1490 } Py_INCREF(Py_None);
1491 _resultobj = Py_None;
1492 return _resultobj;
1493 }
1494
1495 static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1496 PyObject * _resultobj;
1497 wxBitmap * _result;
1498 char * _arg0;
1499 char *_kwnames[] = { "resource", NULL };
1500 char _ptemp[128];
1501
1502 self = self;
1503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0))
1504 return NULL;
1505 {
1506 wxPy_BEGIN_ALLOW_THREADS;
1507 _result = new wxBitmap (wxResourceCreateBitmap(_arg0));
1508
1509 wxPy_END_ALLOW_THREADS;
1510 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1511 _resultobj = Py_BuildValue("s",_ptemp);
1512 return _resultobj;
1513 }
1514
1515 static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1516 PyObject * _resultobj;
1517 wxIcon * _result;
1518 char * _arg0;
1519 char *_kwnames[] = { "resource", NULL };
1520 char _ptemp[128];
1521
1522 self = self;
1523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0))
1524 return NULL;
1525 {
1526 wxPy_BEGIN_ALLOW_THREADS;
1527 _result = new wxIcon (wxResourceCreateIcon(_arg0));
1528
1529 wxPy_END_ALLOW_THREADS;
1530 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
1531 _resultobj = Py_BuildValue("s",_ptemp);
1532 return _resultobj;
1533 }
1534
1535 static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1536 PyObject * _resultobj;
1537 wxMenuBar * _result;
1538 char * _arg0;
1539 char *_kwnames[] = { "resource", NULL };
1540
1541 self = self;
1542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0))
1543 return NULL;
1544 {
1545 wxPy_BEGIN_ALLOW_THREADS;
1546 _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0);
1547
1548 wxPy_END_ALLOW_THREADS;
1549 }{ _resultobj = wxPyMake_wxObject(_result); }
1550 return _resultobj;
1551 }
1552
1553 static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) {
1554 PyObject * _resultobj;
1555 int _result;
1556 char * _arg0;
1557 char *_kwnames[] = { "name", NULL };
1558
1559 self = self;
1560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0))
1561 return NULL;
1562 {
1563 wxPy_BEGIN_ALLOW_THREADS;
1564 _result = (int )wxResourceGetIdentifier(_arg0);
1565
1566 wxPy_END_ALLOW_THREADS;
1567 } _resultobj = Py_BuildValue("i",_result);
1568 return _resultobj;
1569 }
1570
1571 static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) {
1572 PyObject * _resultobj;
1573 bool _result;
1574 char * _arg0;
1575 wxResourceTable * _arg1 = (wxResourceTable *) NULL;
1576 PyObject * _argo1 = 0;
1577 char *_kwnames[] = { "resource","table", NULL };
1578
1579 self = self;
1580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1))
1581 return NULL;
1582 if (_argo1) {
1583 if (_argo1 == Py_None) { _arg1 = NULL; }
1584 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) {
1585 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p.");
1586 return NULL;
1587 }
1588 }
1589 {
1590 wxPy_BEGIN_ALLOW_THREADS;
1591 _result = (bool )wxResourceParseData(_arg0,_arg1);
1592
1593 wxPy_END_ALLOW_THREADS;
1594 } _resultobj = Py_BuildValue("i",_result);
1595 return _resultobj;
1596 }
1597
1598 static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1599 PyObject * _resultobj;
1600 bool _result;
1601 char * _arg0;
1602 wxResourceTable * _arg1 = (wxResourceTable *) NULL;
1603 PyObject * _argo1 = 0;
1604 char *_kwnames[] = { "filename","table", NULL };
1605
1606 self = self;
1607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1))
1608 return NULL;
1609 if (_argo1) {
1610 if (_argo1 == Py_None) { _arg1 = NULL; }
1611 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) {
1612 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p.");
1613 return NULL;
1614 }
1615 }
1616 {
1617 wxPy_BEGIN_ALLOW_THREADS;
1618 _result = (bool )wxResourceParseFile(_arg0,_arg1);
1619
1620 wxPy_END_ALLOW_THREADS;
1621 } _resultobj = Py_BuildValue("i",_result);
1622 return _resultobj;
1623 }
1624
1625 static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) {
1626 PyObject * _resultobj;
1627 bool _result;
1628 char * _arg0;
1629 wxResourceTable * _arg1 = (wxResourceTable *) NULL;
1630 PyObject * _argo1 = 0;
1631 char *_kwnames[] = { "resource","table", NULL };
1632
1633 self = self;
1634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1))
1635 return NULL;
1636 if (_argo1) {
1637 if (_argo1 == Py_None) { _arg1 = NULL; }
1638 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) {
1639 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p.");
1640 return NULL;
1641 }
1642 }
1643 {
1644 wxPy_BEGIN_ALLOW_THREADS;
1645 _result = (bool )wxResourceParseString(_arg0,_arg1);
1646
1647 wxPy_END_ALLOW_THREADS;
1648 } _resultobj = Py_BuildValue("i",_result);
1649 return _resultobj;
1650 }
1651
1652 static PyObject *_wrap_wxSystemSettings_GetSystemColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1653 PyObject * _resultobj;
1654 wxColour * _result;
1655 int _arg0;
1656 char *_kwnames[] = { "index", NULL };
1657 char _ptemp[128];
1658
1659 self = self;
1660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemColour",_kwnames,&_arg0))
1661 return NULL;
1662 {
1663 wxPy_BEGIN_ALLOW_THREADS;
1664 _result = new wxColour (wxSystemSettings_GetSystemColour(_arg0));
1665
1666 wxPy_END_ALLOW_THREADS;
1667 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1668 _resultobj = Py_BuildValue("s",_ptemp);
1669 return _resultobj;
1670 }
1671
1672 static PyObject *_wrap_wxSystemSettings_GetSystemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1673 PyObject * _resultobj;
1674 wxFont * _result;
1675 int _arg0;
1676 char *_kwnames[] = { "index", NULL };
1677 char _ptemp[128];
1678
1679 self = self;
1680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemFont",_kwnames,&_arg0))
1681 return NULL;
1682 {
1683 wxPy_BEGIN_ALLOW_THREADS;
1684 _result = new wxFont (wxSystemSettings_GetSystemFont(_arg0));
1685
1686 wxPy_END_ALLOW_THREADS;
1687 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
1688 _resultobj = Py_BuildValue("s",_ptemp);
1689 return _resultobj;
1690 }
1691
1692 static PyObject *_wrap_wxSystemSettings_GetSystemMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1693 PyObject * _resultobj;
1694 int _result;
1695 int _arg0;
1696 char *_kwnames[] = { "index", NULL };
1697
1698 self = self;
1699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemMetric",_kwnames,&_arg0))
1700 return NULL;
1701 {
1702 wxPy_BEGIN_ALLOW_THREADS;
1703 _result = (int )wxSystemSettings_GetSystemMetric(_arg0);
1704
1705 wxPy_END_ALLOW_THREADS;
1706 } _resultobj = Py_BuildValue("i",_result);
1707 return _resultobj;
1708 }
1709
1710 static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
1711 PyObject * _resultobj;
1712 int _result;
1713 char *_kwnames[] = { NULL };
1714
1715 self = self;
1716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames))
1717 return NULL;
1718 {
1719 wxPy_BEGIN_ALLOW_THREADS;
1720 _result = (int )wxCaret_GetBlinkTime();
1721
1722 wxPy_END_ALLOW_THREADS;
1723 } _resultobj = Py_BuildValue("i",_result);
1724 return _resultobj;
1725 }
1726
1727 static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
1728 PyObject * _resultobj;
1729 int _arg0;
1730 char *_kwnames[] = { "milliseconds", NULL };
1731
1732 self = self;
1733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0))
1734 return NULL;
1735 {
1736 wxPy_BEGIN_ALLOW_THREADS;
1737 wxCaret_SetBlinkTime(_arg0);
1738
1739 wxPy_END_ALLOW_THREADS;
1740 } Py_INCREF(Py_None);
1741 _resultobj = Py_None;
1742 return _resultobj;
1743 }
1744
1745 static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) {
1746 PyObject * _resultobj;
1747 bool _result;
1748 wxWindow * _arg0 = (wxWindow *) NULL;
1749 PyObject * _argo0 = 0;
1750 char *_kwnames[] = { "win", NULL };
1751
1752 self = self;
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0))
1754 return NULL;
1755 if (_argo0) {
1756 if (_argo0 == Py_None) { _arg0 = NULL; }
1757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p.");
1759 return NULL;
1760 }
1761 }
1762 {
1763 wxPy_BEGIN_ALLOW_THREADS;
1764 _result = (bool )wxSafeYield(_arg0);
1765
1766 wxPy_END_ALLOW_THREADS;
1767 } _resultobj = Py_BuildValue("i",_result);
1768 return _resultobj;
1769 }
1770
1771 static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
1772 PyObject * _resultobj;
1773 wxEvtHandler * _arg0;
1774 wxEvent * _arg1;
1775 PyObject * _argo0 = 0;
1776 PyObject * _argo1 = 0;
1777 char *_kwnames[] = { "dest","event", NULL };
1778
1779 self = self;
1780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1))
1781 return NULL;
1782 if (_argo0) {
1783 if (_argo0 == Py_None) { _arg0 = NULL; }
1784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
1785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p.");
1786 return NULL;
1787 }
1788 }
1789 if (_argo1) {
1790 if (_argo1 == Py_None) { _arg1 = NULL; }
1791 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
1792 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p.");
1793 return NULL;
1794 }
1795 }
1796 {
1797 wxPy_BEGIN_ALLOW_THREADS;
1798 wxPostEvent(_arg0,*_arg1);
1799
1800 wxPy_END_ALLOW_THREADS;
1801 } Py_INCREF(Py_None);
1802 _resultobj = Py_None;
1803 return _resultobj;
1804 }
1805
1806 static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
1807 PyObject * _resultobj;
1808 char *_kwnames[] = { NULL };
1809
1810 self = self;
1811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames))
1812 return NULL;
1813 {
1814 wxPy_BEGIN_ALLOW_THREADS;
1815 wxWakeUpIdle();
1816
1817 wxPy_END_ALLOW_THREADS;
1818 } Py_INCREF(Py_None);
1819 _resultobj = Py_None;
1820 return _resultobj;
1821 }
1822
1823 static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
1824 PyObject * _resultobj;
1825 char *_kwnames[] = { NULL };
1826
1827 self = self;
1828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames))
1829 return NULL;
1830 {
1831 wxPy_BEGIN_ALLOW_THREADS;
1832 wxWakeUpMainThread();
1833
1834 wxPy_END_ALLOW_THREADS;
1835 } Py_INCREF(Py_None);
1836 _resultobj = Py_None;
1837 return _resultobj;
1838 }
1839
1840 static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
1841 PyObject * _resultobj;
1842 char *_kwnames[] = { NULL };
1843
1844 self = self;
1845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames))
1846 return NULL;
1847 {
1848 wxPy_BEGIN_ALLOW_THREADS;
1849 wxMutexGuiEnter();
1850
1851 wxPy_END_ALLOW_THREADS;
1852 } Py_INCREF(Py_None);
1853 _resultobj = Py_None;
1854 return _resultobj;
1855 }
1856
1857 static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
1858 PyObject * _resultobj;
1859 char *_kwnames[] = { NULL };
1860
1861 self = self;
1862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames))
1863 return NULL;
1864 {
1865 wxPy_BEGIN_ALLOW_THREADS;
1866 wxMutexGuiLeave();
1867
1868 wxPy_END_ALLOW_THREADS;
1869 } Py_INCREF(Py_None);
1870 _resultobj = Py_None;
1871 return _resultobj;
1872 }
1873
1874 static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
1875 PyObject * _resultobj;
1876 bool _result;
1877 char *_kwnames[] = { NULL };
1878
1879 self = self;
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames))
1881 return NULL;
1882 {
1883 wxPy_BEGIN_ALLOW_THREADS;
1884 _result = (bool )wxThread_IsMain();
1885
1886 wxPy_END_ALLOW_THREADS;
1887 } _resultobj = Py_BuildValue("i",_result);
1888 return _resultobj;
1889 }
1890
1891 static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
1892 PyObject * _resultobj;
1893 bool _result;
1894 wxWindow * _arg0;
1895 wxTipProvider * _arg1;
1896 bool _arg2 = (bool ) TRUE;
1897 PyObject * _argo0 = 0;
1898 PyObject * _argo1 = 0;
1899 int tempbool2 = (int) TRUE;
1900 char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL };
1901
1902 self = self;
1903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2))
1904 return NULL;
1905 if (_argo0) {
1906 if (_argo0 == Py_None) { _arg0 = NULL; }
1907 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1908 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p.");
1909 return NULL;
1910 }
1911 }
1912 if (_argo1) {
1913 if (_argo1 == Py_None) { _arg1 = NULL; }
1914 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) {
1915 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p.");
1916 return NULL;
1917 }
1918 }
1919 _arg2 = (bool ) tempbool2;
1920 {
1921 wxPy_BEGIN_ALLOW_THREADS;
1922 _result = (bool )wxShowTip(_arg0,_arg1,_arg2);
1923
1924 wxPy_END_ALLOW_THREADS;
1925 } _resultobj = Py_BuildValue("i",_result);
1926 return _resultobj;
1927 }
1928
1929 static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject * _resultobj;
1931 wxTipProvider * _result;
1932 wxString * _arg0;
1933 size_t _arg1;
1934 PyObject * _obj0 = 0;
1935 char *_kwnames[] = { "filename","currentTip", NULL };
1936 char _ptemp[128];
1937
1938 self = self;
1939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1))
1940 return NULL;
1941 {
1942 #if PYTHON_API_VERSION >= 1009
1943 char* tmpPtr; int tmpSize;
1944 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1945 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1946 return NULL;
1947 }
1948 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1949 return NULL;
1950 _arg0 = new wxString(tmpPtr, tmpSize);
1951 #else
1952 if (!PyString_Check(_obj0)) {
1953 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1954 return NULL;
1955 }
1956 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1957 #endif
1958 }
1959 {
1960 wxPy_BEGIN_ALLOW_THREADS;
1961 _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1);
1962
1963 wxPy_END_ALLOW_THREADS;
1964 } if (_result) {
1965 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p");
1966 _resultobj = Py_BuildValue("s",_ptemp);
1967 } else {
1968 Py_INCREF(Py_None);
1969 _resultobj = Py_None;
1970 }
1971 {
1972 if (_obj0)
1973 delete _arg0;
1974 }
1975 return _resultobj;
1976 }
1977
1978 static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
1979 PyObject * _resultobj;
1980 unsigned long _result;
1981 char *_kwnames[] = { NULL };
1982
1983 self = self;
1984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames))
1985 return NULL;
1986 {
1987 wxPy_BEGIN_ALLOW_THREADS;
1988 _result = (unsigned long )wxSysErrorCode();
1989
1990 wxPy_END_ALLOW_THREADS;
1991 } _resultobj = Py_BuildValue("l",_result);
1992 return _resultobj;
1993 }
1994
1995 static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
1996 PyObject * _resultobj;
1997 char * _result;
1998 unsigned long _arg0 = (unsigned long ) 0;
1999 char *_kwnames[] = { "nErrCode", NULL };
2000
2001 self = self;
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0))
2003 return NULL;
2004 {
2005 wxPy_BEGIN_ALLOW_THREADS;
2006 _result = (char *)wxSysErrorMsg(_arg0);
2007
2008 wxPy_END_ALLOW_THREADS;
2009 } _resultobj = Py_BuildValue("s", _result);
2010 return _resultobj;
2011 }
2012
2013 static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
2014 PyObject * _resultobj;
2015 char * _arg0;
2016 char *_kwnames[] = { "szFormat", NULL };
2017
2018 self = self;
2019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogFatalError",_kwnames,&_arg0))
2020 return NULL;
2021 {
2022 wxPy_BEGIN_ALLOW_THREADS;
2023 wxLogFatalError(_arg0);
2024
2025 wxPy_END_ALLOW_THREADS;
2026 } Py_INCREF(Py_None);
2027 _resultobj = Py_None;
2028 return _resultobj;
2029 }
2030
2031 static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) {
2032 PyObject * _resultobj;
2033 char * _arg0;
2034 char *_kwnames[] = { "szFormat", NULL };
2035
2036 self = self;
2037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogError",_kwnames,&_arg0))
2038 return NULL;
2039 {
2040 wxPy_BEGIN_ALLOW_THREADS;
2041 wxLogError(_arg0);
2042
2043 wxPy_END_ALLOW_THREADS;
2044 } Py_INCREF(Py_None);
2045 _resultobj = Py_None;
2046 return _resultobj;
2047 }
2048
2049 static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
2050 PyObject * _resultobj;
2051 char * _arg0;
2052 char *_kwnames[] = { "szFormat", NULL };
2053
2054 self = self;
2055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogWarning",_kwnames,&_arg0))
2056 return NULL;
2057 {
2058 wxPy_BEGIN_ALLOW_THREADS;
2059 wxLogWarning(_arg0);
2060
2061 wxPy_END_ALLOW_THREADS;
2062 } Py_INCREF(Py_None);
2063 _resultobj = Py_None;
2064 return _resultobj;
2065 }
2066
2067 static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
2068 PyObject * _resultobj;
2069 char * _arg0;
2070 char *_kwnames[] = { "szFormat", NULL };
2071
2072 self = self;
2073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogMessage",_kwnames,&_arg0))
2074 return NULL;
2075 {
2076 wxPy_BEGIN_ALLOW_THREADS;
2077 wxLogMessage(_arg0);
2078
2079 wxPy_END_ALLOW_THREADS;
2080 } Py_INCREF(Py_None);
2081 _resultobj = Py_None;
2082 return _resultobj;
2083 }
2084
2085 static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2086 PyObject * _resultobj;
2087 char * _arg0;
2088 char *_kwnames[] = { "szFormat", NULL };
2089
2090 self = self;
2091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogInfo",_kwnames,&_arg0))
2092 return NULL;
2093 {
2094 wxPy_BEGIN_ALLOW_THREADS;
2095 wxLogInfo(_arg0);
2096
2097 wxPy_END_ALLOW_THREADS;
2098 } Py_INCREF(Py_None);
2099 _resultobj = Py_None;
2100 return _resultobj;
2101 }
2102
2103 static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
2104 PyObject * _resultobj;
2105 char * _arg0;
2106 char *_kwnames[] = { "szFormat", NULL };
2107
2108 self = self;
2109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogVerbose",_kwnames,&_arg0))
2110 return NULL;
2111 {
2112 wxPy_BEGIN_ALLOW_THREADS;
2113 wxLogVerbose(_arg0);
2114
2115 wxPy_END_ALLOW_THREADS;
2116 } Py_INCREF(Py_None);
2117 _resultobj = Py_None;
2118 return _resultobj;
2119 }
2120
2121 static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
2122 PyObject * _resultobj;
2123 char * _arg0;
2124 char *_kwnames[] = { "szFormat", NULL };
2125
2126 self = self;
2127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogStatus",_kwnames,&_arg0))
2128 return NULL;
2129 {
2130 wxPy_BEGIN_ALLOW_THREADS;
2131 wxLogStatus(_arg0);
2132
2133 wxPy_END_ALLOW_THREADS;
2134 } Py_INCREF(Py_None);
2135 _resultobj = Py_None;
2136 return _resultobj;
2137 }
2138
2139 static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
2140 PyObject * _resultobj;
2141 wxFrame * _arg0;
2142 char * _arg1;
2143 PyObject * _argo0 = 0;
2144 char *_kwnames[] = { "pFrame","szFormat", NULL };
2145
2146 self = self;
2147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxLogStatusFrame",_kwnames,&_argo0,&_arg1))
2148 return NULL;
2149 if (_argo0) {
2150 if (_argo0 == Py_None) { _arg0 = NULL; }
2151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
2152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p.");
2153 return NULL;
2154 }
2155 }
2156 {
2157 wxPy_BEGIN_ALLOW_THREADS;
2158 wxLogStatus(_arg0,_arg1);
2159
2160 wxPy_END_ALLOW_THREADS;
2161 } Py_INCREF(Py_None);
2162 _resultobj = Py_None;
2163 return _resultobj;
2164 }
2165
2166 static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
2167 PyObject * _resultobj;
2168 char * _arg0;
2169 char *_kwnames[] = { "szFormat", NULL };
2170
2171 self = self;
2172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogSysError",_kwnames,&_arg0))
2173 return NULL;
2174 {
2175 wxPy_BEGIN_ALLOW_THREADS;
2176 wxLogSysError(_arg0);
2177
2178 wxPy_END_ALLOW_THREADS;
2179 } Py_INCREF(Py_None);
2180 _resultobj = Py_None;
2181 return _resultobj;
2182 }
2183
2184 static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) {
2185 PyObject * _resultobj;
2186 long _result;
2187 wxString * _arg0;
2188 int _arg1 = (int ) FALSE;
2189 wxPyProcess * _arg2 = (wxPyProcess *) NULL;
2190 PyObject * _obj0 = 0;
2191 PyObject * _argo2 = 0;
2192 char *_kwnames[] = { "command","sync","process", NULL };
2193
2194 self = self;
2195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2))
2196 return NULL;
2197 {
2198 #if PYTHON_API_VERSION >= 1009
2199 char* tmpPtr; int tmpSize;
2200 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2201 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2202 return NULL;
2203 }
2204 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2205 return NULL;
2206 _arg0 = new wxString(tmpPtr, tmpSize);
2207 #else
2208 if (!PyString_Check(_obj0)) {
2209 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2210 return NULL;
2211 }
2212 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2213 #endif
2214 }
2215 if (_argo2) {
2216 if (_argo2 == Py_None) { _arg2 = NULL; }
2217 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) {
2218 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p.");
2219 return NULL;
2220 }
2221 }
2222 {
2223 wxPy_BEGIN_ALLOW_THREADS;
2224 _result = (long )wxExecute(*_arg0,_arg1,_arg2);
2225
2226 wxPy_END_ALLOW_THREADS;
2227 } _resultobj = Py_BuildValue("l",_result);
2228 {
2229 if (_obj0)
2230 delete _arg0;
2231 }
2232 return _resultobj;
2233 }
2234
2235 static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) {
2236 PyObject * _resultobj;
2237 wxWave * _result;
2238 wxString * _arg0;
2239 PyObject * _obj0 = 0;
2240 char *_kwnames[] = { "data", NULL };
2241 char _ptemp[128];
2242
2243 self = self;
2244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0))
2245 return NULL;
2246 {
2247 #if PYTHON_API_VERSION >= 1009
2248 char* tmpPtr; int tmpSize;
2249 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2250 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2251 return NULL;
2252 }
2253 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2254 return NULL;
2255 _arg0 = new wxString(tmpPtr, tmpSize);
2256 #else
2257 if (!PyString_Check(_obj0)) {
2258 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2259 return NULL;
2260 }
2261 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2262 #endif
2263 }
2264 {
2265 wxPy_BEGIN_ALLOW_THREADS;
2266 _result = (wxWave *)wxWaveData(*_arg0);
2267
2268 wxPy_END_ALLOW_THREADS;
2269 } if (_result) {
2270 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p");
2271 _resultobj = Py_BuildValue("s",_ptemp);
2272 } else {
2273 Py_INCREF(Py_None);
2274 _resultobj = Py_None;
2275 }
2276 {
2277 if (_obj0)
2278 delete _arg0;
2279 }
2280 return _resultobj;
2281 }
2282
2283 static int _wrap_wxTheMimeTypesManager_set(PyObject *val) {
2284
2285 PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only.");
2286 return 1;
2287 }
2288
2289 static PyObject *_wrap_wxTheMimeTypesManager_get() {
2290 PyObject * pyobj;
2291 char ptemp[128];
2292
2293 SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p");
2294 pyobj = PyString_FromString(ptemp);
2295 return pyobj;
2296 }
2297
2298 static void *SwigwxToolTipTowxObject(void *ptr) {
2299 wxToolTip *src;
2300 wxObject *dest;
2301 src = (wxToolTip *) ptr;
2302 dest = (wxObject *) src;
2303 return (void *) dest;
2304 }
2305
2306 #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0))
2307 static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
2308 PyObject * _resultobj;
2309 wxToolTip * _result;
2310 wxString * _arg0;
2311 PyObject * _obj0 = 0;
2312 char *_kwnames[] = { "tip", NULL };
2313 char _ptemp[128];
2314
2315 self = self;
2316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0))
2317 return NULL;
2318 {
2319 #if PYTHON_API_VERSION >= 1009
2320 char* tmpPtr; int tmpSize;
2321 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2322 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2323 return NULL;
2324 }
2325 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2326 return NULL;
2327 _arg0 = new wxString(tmpPtr, tmpSize);
2328 #else
2329 if (!PyString_Check(_obj0)) {
2330 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2331 return NULL;
2332 }
2333 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2334 #endif
2335 }
2336 {
2337 wxPy_BEGIN_ALLOW_THREADS;
2338 _result = (wxToolTip *)new_wxToolTip(*_arg0);
2339
2340 wxPy_END_ALLOW_THREADS;
2341 } if (_result) {
2342 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p");
2343 _resultobj = Py_BuildValue("s",_ptemp);
2344 } else {
2345 Py_INCREF(Py_None);
2346 _resultobj = Py_None;
2347 }
2348 {
2349 if (_obj0)
2350 delete _arg0;
2351 }
2352 return _resultobj;
2353 }
2354
2355 #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0))
2356 static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
2357 PyObject * _resultobj;
2358 wxToolTip * _arg0;
2359 wxString * _arg1;
2360 PyObject * _argo0 = 0;
2361 PyObject * _obj1 = 0;
2362 char *_kwnames[] = { "self","tip", NULL };
2363
2364 self = self;
2365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1))
2366 return NULL;
2367 if (_argo0) {
2368 if (_argo0 == Py_None) { _arg0 = NULL; }
2369 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) {
2370 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p.");
2371 return NULL;
2372 }
2373 }
2374 {
2375 #if PYTHON_API_VERSION >= 1009
2376 char* tmpPtr; int tmpSize;
2377 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2378 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2379 return NULL;
2380 }
2381 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2382 return NULL;
2383 _arg1 = new wxString(tmpPtr, tmpSize);
2384 #else
2385 if (!PyString_Check(_obj1)) {
2386 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2387 return NULL;
2388 }
2389 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2390 #endif
2391 }
2392 {
2393 wxPy_BEGIN_ALLOW_THREADS;
2394 wxToolTip_SetTip(_arg0,*_arg1);
2395
2396 wxPy_END_ALLOW_THREADS;
2397 } Py_INCREF(Py_None);
2398 _resultobj = Py_None;
2399 {
2400 if (_obj1)
2401 delete _arg1;
2402 }
2403 return _resultobj;
2404 }
2405
2406 #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip())
2407 static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
2408 PyObject * _resultobj;
2409 wxString * _result;
2410 wxToolTip * _arg0;
2411 PyObject * _argo0 = 0;
2412 char *_kwnames[] = { "self", NULL };
2413
2414 self = self;
2415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0))
2416 return NULL;
2417 if (_argo0) {
2418 if (_argo0 == Py_None) { _arg0 = NULL; }
2419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) {
2420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p.");
2421 return NULL;
2422 }
2423 }
2424 {
2425 wxPy_BEGIN_ALLOW_THREADS;
2426 _result = new wxString (wxToolTip_GetTip(_arg0));
2427
2428 wxPy_END_ALLOW_THREADS;
2429 }{
2430 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2431 }
2432 {
2433 delete _result;
2434 }
2435 return _resultobj;
2436 }
2437
2438 #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow())
2439 static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2440 PyObject * _resultobj;
2441 wxWindow * _result;
2442 wxToolTip * _arg0;
2443 PyObject * _argo0 = 0;
2444 char *_kwnames[] = { "self", NULL };
2445
2446 self = self;
2447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0))
2448 return NULL;
2449 if (_argo0) {
2450 if (_argo0 == Py_None) { _arg0 = NULL; }
2451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) {
2452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p.");
2453 return NULL;
2454 }
2455 }
2456 {
2457 wxPy_BEGIN_ALLOW_THREADS;
2458 _result = (wxWindow *)wxToolTip_GetWindow(_arg0);
2459
2460 wxPy_END_ALLOW_THREADS;
2461 }{ _resultobj = wxPyMake_wxObject(_result); }
2462 return _resultobj;
2463 }
2464
2465 static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
2466 PyObject * _resultobj;
2467 bool _arg0;
2468 int tempbool0;
2469 char *_kwnames[] = { "flag", NULL };
2470
2471 self = self;
2472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0))
2473 return NULL;
2474 _arg0 = (bool ) tempbool0;
2475 {
2476 wxPy_BEGIN_ALLOW_THREADS;
2477 wxToolTip::Enable(_arg0);
2478
2479 wxPy_END_ALLOW_THREADS;
2480 } Py_INCREF(Py_None);
2481 _resultobj = Py_None;
2482 return _resultobj;
2483 }
2484
2485 static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
2486 PyObject * _resultobj;
2487 long _arg0;
2488 char *_kwnames[] = { "milliseconds", NULL };
2489
2490 self = self;
2491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0))
2492 return NULL;
2493 {
2494 wxPy_BEGIN_ALLOW_THREADS;
2495 wxToolTip::SetDelay(_arg0);
2496
2497 wxPy_END_ALLOW_THREADS;
2498 } Py_INCREF(Py_None);
2499 _resultobj = Py_None;
2500 return _resultobj;
2501 }
2502
2503 #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1))
2504 static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
2505 PyObject * _resultobj;
2506 wxCaret * _result;
2507 wxWindow * _arg0;
2508 wxSize * _arg1;
2509 PyObject * _argo0 = 0;
2510 wxSize temp;
2511 PyObject * _obj1 = 0;
2512 char *_kwnames[] = { "window","size", NULL };
2513 char _ptemp[128];
2514
2515 self = self;
2516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1))
2517 return NULL;
2518 if (_argo0) {
2519 if (_argo0 == Py_None) { _arg0 = NULL; }
2520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p.");
2522 return NULL;
2523 }
2524 }
2525 {
2526 _arg1 = &temp;
2527 if (! wxSize_helper(_obj1, &_arg1))
2528 return NULL;
2529 }
2530 {
2531 wxPy_BEGIN_ALLOW_THREADS;
2532 _result = (wxCaret *)new_wxCaret(_arg0,*_arg1);
2533
2534 wxPy_END_ALLOW_THREADS;
2535 } if (_result) {
2536 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p");
2537 _resultobj = Py_BuildValue("s",_ptemp);
2538 } else {
2539 Py_INCREF(Py_None);
2540 _resultobj = Py_None;
2541 }
2542 return _resultobj;
2543 }
2544
2545 #define delete_wxCaret(_swigobj) (delete _swigobj)
2546 static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
2547 PyObject * _resultobj;
2548 wxCaret * _arg0;
2549 PyObject * _argo0 = 0;
2550 char *_kwnames[] = { "self", NULL };
2551
2552 self = self;
2553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0))
2554 return NULL;
2555 if (_argo0) {
2556 if (_argo0 == Py_None) { _arg0 = NULL; }
2557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p.");
2559 return NULL;
2560 }
2561 }
2562 {
2563 wxPy_BEGIN_ALLOW_THREADS;
2564 delete_wxCaret(_arg0);
2565
2566 wxPy_END_ALLOW_THREADS;
2567 } Py_INCREF(Py_None);
2568 _resultobj = Py_None;
2569 return _resultobj;
2570 }
2571
2572 #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk())
2573 static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
2574 PyObject * _resultobj;
2575 bool _result;
2576 wxCaret * _arg0;
2577 PyObject * _argo0 = 0;
2578 char *_kwnames[] = { "self", NULL };
2579
2580 self = self;
2581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0))
2582 return NULL;
2583 if (_argo0) {
2584 if (_argo0 == Py_None) { _arg0 = NULL; }
2585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p.");
2587 return NULL;
2588 }
2589 }
2590 {
2591 wxPy_BEGIN_ALLOW_THREADS;
2592 _result = (bool )wxCaret_IsOk(_arg0);
2593
2594 wxPy_END_ALLOW_THREADS;
2595 } _resultobj = Py_BuildValue("i",_result);
2596 return _resultobj;
2597 }
2598
2599 #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible())
2600 static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
2601 PyObject * _resultobj;
2602 bool _result;
2603 wxCaret * _arg0;
2604 PyObject * _argo0 = 0;
2605 char *_kwnames[] = { "self", NULL };
2606
2607 self = self;
2608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0))
2609 return NULL;
2610 if (_argo0) {
2611 if (_argo0 == Py_None) { _arg0 = NULL; }
2612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p.");
2614 return NULL;
2615 }
2616 }
2617 {
2618 wxPy_BEGIN_ALLOW_THREADS;
2619 _result = (bool )wxCaret_IsVisible(_arg0);
2620
2621 wxPy_END_ALLOW_THREADS;
2622 } _resultobj = Py_BuildValue("i",_result);
2623 return _resultobj;
2624 }
2625
2626 #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2627 static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2628 PyObject * _resultobj;
2629 wxCaret * _arg0;
2630 int * _arg1;
2631 int temp;
2632 int * _arg2;
2633 int temp0;
2634 PyObject * _argo0 = 0;
2635 char *_kwnames[] = { "self", NULL };
2636
2637 self = self;
2638 {
2639 _arg1 = &temp;
2640 }
2641 {
2642 _arg2 = &temp0;
2643 }
2644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0))
2645 return NULL;
2646 if (_argo0) {
2647 if (_argo0 == Py_None) { _arg0 = NULL; }
2648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p.");
2650 return NULL;
2651 }
2652 }
2653 {
2654 wxPy_BEGIN_ALLOW_THREADS;
2655 wxCaret_GetPositionTuple(_arg0,_arg1,_arg2);
2656
2657 wxPy_END_ALLOW_THREADS;
2658 } Py_INCREF(Py_None);
2659 _resultobj = Py_None;
2660 {
2661 PyObject *o;
2662 o = PyInt_FromLong((long) (*_arg1));
2663 _resultobj = t_output_helper(_resultobj, o);
2664 }
2665 {
2666 PyObject *o;
2667 o = PyInt_FromLong((long) (*_arg2));
2668 _resultobj = t_output_helper(_resultobj, o);
2669 }
2670 return _resultobj;
2671 }
2672
2673 #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition())
2674 static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2675 PyObject * _resultobj;
2676 wxPoint * _result;
2677 wxCaret * _arg0;
2678 PyObject * _argo0 = 0;
2679 char *_kwnames[] = { "self", NULL };
2680 char _ptemp[128];
2681
2682 self = self;
2683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0))
2684 return NULL;
2685 if (_argo0) {
2686 if (_argo0 == Py_None) { _arg0 = NULL; }
2687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p.");
2689 return NULL;
2690 }
2691 }
2692 {
2693 wxPy_BEGIN_ALLOW_THREADS;
2694 _result = new wxPoint (wxCaret_GetPosition(_arg0));
2695
2696 wxPy_END_ALLOW_THREADS;
2697 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2698 _resultobj = Py_BuildValue("s",_ptemp);
2699 return _resultobj;
2700 }
2701
2702 #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2703 static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2704 PyObject * _resultobj;
2705 wxCaret * _arg0;
2706 int * _arg1;
2707 int temp;
2708 int * _arg2;
2709 int temp0;
2710 PyObject * _argo0 = 0;
2711 char *_kwnames[] = { "self", NULL };
2712
2713 self = self;
2714 {
2715 _arg1 = &temp;
2716 }
2717 {
2718 _arg2 = &temp0;
2719 }
2720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0))
2721 return NULL;
2722 if (_argo0) {
2723 if (_argo0 == Py_None) { _arg0 = NULL; }
2724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p.");
2726 return NULL;
2727 }
2728 }
2729 {
2730 wxPy_BEGIN_ALLOW_THREADS;
2731 wxCaret_GetSizeTuple(_arg0,_arg1,_arg2);
2732
2733 wxPy_END_ALLOW_THREADS;
2734 } Py_INCREF(Py_None);
2735 _resultobj = Py_None;
2736 {
2737 PyObject *o;
2738 o = PyInt_FromLong((long) (*_arg1));
2739 _resultobj = t_output_helper(_resultobj, o);
2740 }
2741 {
2742 PyObject *o;
2743 o = PyInt_FromLong((long) (*_arg2));
2744 _resultobj = t_output_helper(_resultobj, o);
2745 }
2746 return _resultobj;
2747 }
2748
2749 #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize())
2750 static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2751 PyObject * _resultobj;
2752 wxSize * _result;
2753 wxCaret * _arg0;
2754 PyObject * _argo0 = 0;
2755 char *_kwnames[] = { "self", NULL };
2756 char _ptemp[128];
2757
2758 self = self;
2759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0))
2760 return NULL;
2761 if (_argo0) {
2762 if (_argo0 == Py_None) { _arg0 = NULL; }
2763 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2764 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p.");
2765 return NULL;
2766 }
2767 }
2768 {
2769 wxPy_BEGIN_ALLOW_THREADS;
2770 _result = new wxSize (wxCaret_GetSize(_arg0));
2771
2772 wxPy_END_ALLOW_THREADS;
2773 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2774 _resultobj = Py_BuildValue("s",_ptemp);
2775 return _resultobj;
2776 }
2777
2778 #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow())
2779 static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2780 PyObject * _resultobj;
2781 wxWindow * _result;
2782 wxCaret * _arg0;
2783 PyObject * _argo0 = 0;
2784 char *_kwnames[] = { "self", NULL };
2785
2786 self = self;
2787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0))
2788 return NULL;
2789 if (_argo0) {
2790 if (_argo0 == Py_None) { _arg0 = NULL; }
2791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p.");
2793 return NULL;
2794 }
2795 }
2796 {
2797 wxPy_BEGIN_ALLOW_THREADS;
2798 _result = (wxWindow *)wxCaret_GetWindow(_arg0);
2799
2800 wxPy_END_ALLOW_THREADS;
2801 }{ _resultobj = wxPyMake_wxObject(_result); }
2802 return _resultobj;
2803 }
2804
2805 #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
2806 static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2807 PyObject * _resultobj;
2808 wxCaret * _arg0;
2809 int _arg1;
2810 int _arg2;
2811 PyObject * _argo0 = 0;
2812 char *_kwnames[] = { "self","x","y", NULL };
2813
2814 self = self;
2815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2))
2816 return NULL;
2817 if (_argo0) {
2818 if (_argo0 == Py_None) { _arg0 = NULL; }
2819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2820 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p.");
2821 return NULL;
2822 }
2823 }
2824 {
2825 wxPy_BEGIN_ALLOW_THREADS;
2826 wxCaret_MoveXY(_arg0,_arg1,_arg2);
2827
2828 wxPy_END_ALLOW_THREADS;
2829 } Py_INCREF(Py_None);
2830 _resultobj = Py_None;
2831 return _resultobj;
2832 }
2833
2834 #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
2835 static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
2836 PyObject * _resultobj;
2837 wxCaret * _arg0;
2838 wxPoint * _arg1;
2839 PyObject * _argo0 = 0;
2840 wxPoint temp;
2841 PyObject * _obj1 = 0;
2842 char *_kwnames[] = { "self","pt", NULL };
2843
2844 self = self;
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1))
2846 return NULL;
2847 if (_argo0) {
2848 if (_argo0 == Py_None) { _arg0 = NULL; }
2849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p.");
2851 return NULL;
2852 }
2853 }
2854 {
2855 _arg1 = &temp;
2856 if (! wxPoint_helper(_obj1, &_arg1))
2857 return NULL;
2858 }
2859 {
2860 wxPy_BEGIN_ALLOW_THREADS;
2861 wxCaret_Move(_arg0,*_arg1);
2862
2863 wxPy_END_ALLOW_THREADS;
2864 } Py_INCREF(Py_None);
2865 _resultobj = Py_None;
2866 return _resultobj;
2867 }
2868
2869 #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1))
2870 static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
2871 PyObject * _resultobj;
2872 wxCaret * _arg0;
2873 int _arg1;
2874 int _arg2;
2875 PyObject * _argo0 = 0;
2876 char *_kwnames[] = { "self","width","height", NULL };
2877
2878 self = self;
2879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
2880 return NULL;
2881 if (_argo0) {
2882 if (_argo0 == Py_None) { _arg0 = NULL; }
2883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p.");
2885 return NULL;
2886 }
2887 }
2888 {
2889 wxPy_BEGIN_ALLOW_THREADS;
2890 wxCaret_SetSizeWH(_arg0,_arg1,_arg2);
2891
2892 wxPy_END_ALLOW_THREADS;
2893 } Py_INCREF(Py_None);
2894 _resultobj = Py_None;
2895 return _resultobj;
2896 }
2897
2898 #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2899 static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2900 PyObject * _resultobj;
2901 wxCaret * _arg0;
2902 wxSize * _arg1;
2903 PyObject * _argo0 = 0;
2904 wxSize temp;
2905 PyObject * _obj1 = 0;
2906 char *_kwnames[] = { "self","size", NULL };
2907
2908 self = self;
2909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1))
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_SetSize. Expected _wxCaret_p.");
2915 return NULL;
2916 }
2917 }
2918 {
2919 _arg1 = &temp;
2920 if (! wxSize_helper(_obj1, &_arg1))
2921 return NULL;
2922 }
2923 {
2924 wxPy_BEGIN_ALLOW_THREADS;
2925 wxCaret_SetSize(_arg0,*_arg1);
2926
2927 wxPy_END_ALLOW_THREADS;
2928 } Py_INCREF(Py_None);
2929 _resultobj = Py_None;
2930 return _resultobj;
2931 }
2932
2933 #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
2934 static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2935 PyObject * _resultobj;
2936 wxCaret * _arg0;
2937 int _arg1 = (int ) TRUE;
2938 PyObject * _argo0 = 0;
2939 char *_kwnames[] = { "self","show", NULL };
2940
2941 self = self;
2942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1))
2943 return NULL;
2944 if (_argo0) {
2945 if (_argo0 == Py_None) { _arg0 = NULL; }
2946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p.");
2948 return NULL;
2949 }
2950 }
2951 {
2952 wxPy_BEGIN_ALLOW_THREADS;
2953 wxCaret_Show(_arg0,_arg1);
2954
2955 wxPy_END_ALLOW_THREADS;
2956 } Py_INCREF(Py_None);
2957 _resultobj = Py_None;
2958 return _resultobj;
2959 }
2960
2961 #define wxCaret_Hide(_swigobj) (_swigobj->Hide())
2962 static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
2963 PyObject * _resultobj;
2964 wxCaret * _arg0;
2965 PyObject * _argo0 = 0;
2966 char *_kwnames[] = { "self", NULL };
2967
2968 self = self;
2969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0))
2970 return NULL;
2971 if (_argo0) {
2972 if (_argo0 == Py_None) { _arg0 = NULL; }
2973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p.");
2975 return NULL;
2976 }
2977 }
2978 {
2979 wxPy_BEGIN_ALLOW_THREADS;
2980 wxCaret_Hide(_arg0);
2981
2982 wxPy_END_ALLOW_THREADS;
2983 } Py_INCREF(Py_None);
2984 _resultobj = Py_None;
2985 return _resultobj;
2986 }
2987
2988 #define new_wxFontEnumerator() (new wxPyFontEnumerator())
2989 static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
2990 PyObject * _resultobj;
2991 wxPyFontEnumerator * _result;
2992 char *_kwnames[] = { NULL };
2993 char _ptemp[128];
2994
2995 self = self;
2996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames))
2997 return NULL;
2998 {
2999 wxPy_BEGIN_ALLOW_THREADS;
3000 _result = (wxPyFontEnumerator *)new_wxFontEnumerator();
3001
3002 wxPy_END_ALLOW_THREADS;
3003 } if (_result) {
3004 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p");
3005 _resultobj = Py_BuildValue("s",_ptemp);
3006 } else {
3007 Py_INCREF(Py_None);
3008 _resultobj = Py_None;
3009 }
3010 return _resultobj;
3011 }
3012
3013 #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj)
3014 static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
3015 PyObject * _resultobj;
3016 wxPyFontEnumerator * _arg0;
3017 PyObject * _argo0 = 0;
3018 char *_kwnames[] = { "self", NULL };
3019
3020 self = self;
3021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0))
3022 return NULL;
3023 if (_argo0) {
3024 if (_argo0 == Py_None) { _arg0 = NULL; }
3025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p.");
3027 return NULL;
3028 }
3029 }
3030 {
3031 wxPy_BEGIN_ALLOW_THREADS;
3032 delete_wxPyFontEnumerator(_arg0);
3033
3034 wxPy_END_ALLOW_THREADS;
3035 } Py_INCREF(Py_None);
3036 _resultobj = Py_None;
3037 return _resultobj;
3038 }
3039
3040 #define wxFontEnumerator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3041 static PyObject *_wrap_wxFontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3042 PyObject * _resultobj;
3043 wxPyFontEnumerator * _arg0;
3044 PyObject * _arg1;
3045 PyObject * _arg2;
3046 PyObject * _argo0 = 0;
3047 PyObject * _obj1 = 0;
3048 PyObject * _obj2 = 0;
3049 char *_kwnames[] = { "self","self","_class", NULL };
3050
3051 self = self;
3052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxFontEnumerator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
3053 return NULL;
3054 if (_argo0) {
3055 if (_argo0 == Py_None) { _arg0 = NULL; }
3056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setCallbackInfo. Expected _wxPyFontEnumerator_p.");
3058 return NULL;
3059 }
3060 }
3061 {
3062 _arg1 = _obj1;
3063 }
3064 {
3065 _arg2 = _obj2;
3066 }
3067 {
3068 wxPy_BEGIN_ALLOW_THREADS;
3069 wxFontEnumerator__setCallbackInfo(_arg0,_arg1,_arg2);
3070
3071 wxPy_END_ALLOW_THREADS;
3072 } Py_INCREF(Py_None);
3073 _resultobj = Py_None;
3074 return _resultobj;
3075 }
3076
3077 #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1))
3078 static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
3079 PyObject * _resultobj;
3080 bool _result;
3081 wxPyFontEnumerator * _arg0;
3082 wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM;
3083 bool _arg2 = (bool ) FALSE;
3084 PyObject * _argo0 = 0;
3085 int tempbool2 = (int) FALSE;
3086 char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL };
3087
3088 self = self;
3089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2))
3090 return NULL;
3091 if (_argo0) {
3092 if (_argo0 == Py_None) { _arg0 = NULL; }
3093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p.");
3095 return NULL;
3096 }
3097 }
3098 _arg2 = (bool ) tempbool2;
3099 {
3100 wxPy_BEGIN_ALLOW_THREADS;
3101 _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2);
3102
3103 wxPy_END_ALLOW_THREADS;
3104 } _resultobj = Py_BuildValue("i",_result);
3105 return _resultobj;
3106 }
3107
3108 #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0))
3109 static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
3110 PyObject * _resultobj;
3111 bool _result;
3112 wxPyFontEnumerator * _arg0;
3113 char * _arg1 = (char *) "";
3114 PyObject * _argo0 = 0;
3115 char *_kwnames[] = { "self","facename", NULL };
3116
3117 self = self;
3118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1))
3119 return NULL;
3120 if (_argo0) {
3121 if (_argo0 == Py_None) { _arg0 = NULL; }
3122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p.");
3124 return NULL;
3125 }
3126 }
3127 {
3128 wxPy_BEGIN_ALLOW_THREADS;
3129 _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1);
3130
3131 wxPy_END_ALLOW_THREADS;
3132 } _resultobj = Py_BuildValue("i",_result);
3133 return _resultobj;
3134 }
3135
3136 static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) {
3137 wxArrayString* arr = self->GetEncodings();
3138 return wxArrayString2PyList_helper(arr);
3139 }
3140 static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
3141 PyObject * _resultobj;
3142 PyObject * _result;
3143 wxPyFontEnumerator * _arg0;
3144 PyObject * _argo0 = 0;
3145 char *_kwnames[] = { "self", NULL };
3146
3147 self = self;
3148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0))
3149 return NULL;
3150 if (_argo0) {
3151 if (_argo0 == Py_None) { _arg0 = NULL; }
3152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p.");
3154 return NULL;
3155 }
3156 }
3157 {
3158 wxPy_BEGIN_ALLOW_THREADS;
3159 _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0);
3160
3161 wxPy_END_ALLOW_THREADS;
3162 }{
3163 _resultobj = _result;
3164 }
3165 return _resultobj;
3166 }
3167
3168 static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) {
3169 wxArrayString* arr = self->GetFacenames();
3170 return wxArrayString2PyList_helper(arr);
3171 }
3172 static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
3173 PyObject * _resultobj;
3174 PyObject * _result;
3175 wxPyFontEnumerator * _arg0;
3176 PyObject * _argo0 = 0;
3177 char *_kwnames[] = { "self", NULL };
3178
3179 self = self;
3180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0))
3181 return NULL;
3182 if (_argo0) {
3183 if (_argo0 == Py_None) { _arg0 = NULL; }
3184 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3185 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p.");
3186 return NULL;
3187 }
3188 }
3189 {
3190 wxPy_BEGIN_ALLOW_THREADS;
3191 _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0);
3192
3193 wxPy_END_ALLOW_THREADS;
3194 }{
3195 _resultobj = _result;
3196 }
3197 return _resultobj;
3198 }
3199
3200 #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0))
3201 static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3202 PyObject * _resultobj;
3203 wxBusyCursor * _result;
3204 wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR;
3205 PyObject * _argo0 = 0;
3206 char *_kwnames[] = { "cursor", NULL };
3207 char _ptemp[128];
3208
3209 self = self;
3210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0))
3211 return NULL;
3212 if (_argo0) {
3213 if (_argo0 == Py_None) { _arg0 = NULL; }
3214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p.");
3216 return NULL;
3217 }
3218 }
3219 {
3220 wxPy_BEGIN_ALLOW_THREADS;
3221 _result = (wxBusyCursor *)new_wxBusyCursor(_arg0);
3222
3223 wxPy_END_ALLOW_THREADS;
3224 } if (_result) {
3225 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p");
3226 _resultobj = Py_BuildValue("s",_ptemp);
3227 } else {
3228 Py_INCREF(Py_None);
3229 _resultobj = Py_None;
3230 }
3231 return _resultobj;
3232 }
3233
3234 #define delete_wxBusyCursor(_swigobj) (delete _swigobj)
3235 static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3236 PyObject * _resultobj;
3237 wxBusyCursor * _arg0;
3238 PyObject * _argo0 = 0;
3239 char *_kwnames[] = { "self", NULL };
3240
3241 self = self;
3242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0))
3243 return NULL;
3244 if (_argo0) {
3245 if (_argo0 == Py_None) { _arg0 = NULL; }
3246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) {
3247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p.");
3248 return NULL;
3249 }
3250 }
3251 {
3252 wxPy_BEGIN_ALLOW_THREADS;
3253 delete_wxBusyCursor(_arg0);
3254
3255 wxPy_END_ALLOW_THREADS;
3256 } Py_INCREF(Py_None);
3257 _resultobj = Py_None;
3258 return _resultobj;
3259 }
3260
3261 #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0))
3262 static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
3263 PyObject * _resultobj;
3264 wxWindowDisabler * _result;
3265 wxWindow * _arg0 = (wxWindow *) NULL;
3266 PyObject * _argo0 = 0;
3267 char *_kwnames[] = { "winToSkip", NULL };
3268 char _ptemp[128];
3269
3270 self = self;
3271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0))
3272 return NULL;
3273 if (_argo0) {
3274 if (_argo0 == Py_None) { _arg0 = NULL; }
3275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p.");
3277 return NULL;
3278 }
3279 }
3280 {
3281 wxPy_BEGIN_ALLOW_THREADS;
3282 _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0);
3283
3284 wxPy_END_ALLOW_THREADS;
3285 } if (_result) {
3286 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p");
3287 _resultobj = Py_BuildValue("s",_ptemp);
3288 } else {
3289 Py_INCREF(Py_None);
3290 _resultobj = Py_None;
3291 }
3292 return _resultobj;
3293 }
3294
3295 #define delete_wxWindowDisabler(_swigobj) (delete _swigobj)
3296 static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
3297 PyObject * _resultobj;
3298 wxWindowDisabler * _arg0;
3299 PyObject * _argo0 = 0;
3300 char *_kwnames[] = { "self", NULL };
3301
3302 self = self;
3303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0))
3304 return NULL;
3305 if (_argo0) {
3306 if (_argo0 == Py_None) { _arg0 = NULL; }
3307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) {
3308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p.");
3309 return NULL;
3310 }
3311 }
3312 {
3313 wxPy_BEGIN_ALLOW_THREADS;
3314 delete_wxWindowDisabler(_arg0);
3315
3316 wxPy_END_ALLOW_THREADS;
3317 } Py_INCREF(Py_None);
3318 _resultobj = Py_None;
3319 return _resultobj;
3320 }
3321
3322 #define new_wxMutexGuiLocker() (new wxMutexGuiLocker())
3323 static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
3324 PyObject * _resultobj;
3325 wxMutexGuiLocker * _result;
3326 char *_kwnames[] = { NULL };
3327 char _ptemp[128];
3328
3329 self = self;
3330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames))
3331 return NULL;
3332 {
3333 wxPy_BEGIN_ALLOW_THREADS;
3334 _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker();
3335
3336 wxPy_END_ALLOW_THREADS;
3337 } if (_result) {
3338 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p");
3339 _resultobj = Py_BuildValue("s",_ptemp);
3340 } else {
3341 Py_INCREF(Py_None);
3342 _resultobj = Py_None;
3343 }
3344 return _resultobj;
3345 }
3346
3347 #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj)
3348 static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
3349 PyObject * _resultobj;
3350 wxMutexGuiLocker * _arg0;
3351 PyObject * _argo0 = 0;
3352 char *_kwnames[] = { "self", NULL };
3353
3354 self = self;
3355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0))
3356 return NULL;
3357 if (_argo0) {
3358 if (_argo0 == Py_None) { _arg0 = NULL; }
3359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) {
3360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p.");
3361 return NULL;
3362 }
3363 }
3364 {
3365 wxPy_BEGIN_ALLOW_THREADS;
3366 delete_wxMutexGuiLocker(_arg0);
3367
3368 wxPy_END_ALLOW_THREADS;
3369 } Py_INCREF(Py_None);
3370 _resultobj = Py_None;
3371 return _resultobj;
3372 }
3373
3374 #define delete_wxTipProvider(_swigobj) (delete _swigobj)
3375 static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
3376 PyObject * _resultobj;
3377 wxTipProvider * _arg0;
3378 PyObject * _argo0 = 0;
3379 char *_kwnames[] = { "self", NULL };
3380
3381 self = self;
3382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_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 delete_wxTipProvider. Expected _wxTipProvider_p.");
3388 return NULL;
3389 }
3390 }
3391 {
3392 wxPy_BEGIN_ALLOW_THREADS;
3393 delete_wxTipProvider(_arg0);
3394
3395 wxPy_END_ALLOW_THREADS;
3396 } Py_INCREF(Py_None);
3397 _resultobj = Py_None;
3398 return _resultobj;
3399 }
3400
3401 #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip())
3402 static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3403 PyObject * _resultobj;
3404 wxString * _result;
3405 wxTipProvider * _arg0;
3406 PyObject * _argo0 = 0;
3407 char *_kwnames[] = { "self", NULL };
3408
3409 self = self;
3410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0))
3411 return NULL;
3412 if (_argo0) {
3413 if (_argo0 == Py_None) { _arg0 = NULL; }
3414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) {
3415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p.");
3416 return NULL;
3417 }
3418 }
3419 {
3420 wxPy_BEGIN_ALLOW_THREADS;
3421 _result = new wxString (wxTipProvider_GetTip(_arg0));
3422
3423 wxPy_END_ALLOW_THREADS;
3424 }{
3425 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3426 }
3427 {
3428 delete _result;
3429 }
3430 return _resultobj;
3431 }
3432
3433 #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip())
3434 static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject * _resultobj;
3436 size_t _result;
3437 wxTipProvider * _arg0;
3438 PyObject * _argo0 = 0;
3439 char *_kwnames[] = { "self", NULL };
3440
3441 self = self;
3442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0))
3443 return NULL;
3444 if (_argo0) {
3445 if (_argo0 == Py_None) { _arg0 = NULL; }
3446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) {
3447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p.");
3448 return NULL;
3449 }
3450 }
3451 {
3452 wxPy_BEGIN_ALLOW_THREADS;
3453 _result = (size_t )wxTipProvider_GetCurrentTip(_arg0);
3454
3455 wxPy_END_ALLOW_THREADS;
3456 } _resultobj = Py_BuildValue("i",_result);
3457 return _resultobj;
3458 }
3459
3460 static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) {
3461 wxPyTipProvider *src;
3462 wxTipProvider *dest;
3463 src = (wxPyTipProvider *) ptr;
3464 dest = (wxTipProvider *) src;
3465 return (void *) dest;
3466 }
3467
3468 #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0))
3469 static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
3470 PyObject * _resultobj;
3471 wxPyTipProvider * _result;
3472 size_t _arg0;
3473 char *_kwnames[] = { "currentTip", NULL };
3474 char _ptemp[128];
3475
3476 self = self;
3477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0))
3478 return NULL;
3479 {
3480 wxPy_BEGIN_ALLOW_THREADS;
3481 _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0);
3482
3483 wxPy_END_ALLOW_THREADS;
3484 } if (_result) {
3485 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p");
3486 _resultobj = Py_BuildValue("s",_ptemp);
3487 } else {
3488 Py_INCREF(Py_None);
3489 _resultobj = Py_None;
3490 }
3491 return _resultobj;
3492 }
3493
3494 static void *SwigwxGenericDragImageTowxObject(void *ptr) {
3495 wxGenericDragImage *src;
3496 wxObject *dest;
3497 src = (wxGenericDragImage *) ptr;
3498 dest = (wxObject *) src;
3499 return (void *) dest;
3500 }
3501
3502 #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1))
3503 static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3504 PyObject * _resultobj;
3505 wxGenericDragImage * _result;
3506 wxBitmap * _arg0;
3507 wxCursor * _arg1 = (wxCursor *) &wxNullCursor;
3508 PyObject * _argo0 = 0;
3509 PyObject * _argo1 = 0;
3510 char *_kwnames[] = { "image","cursor", NULL };
3511 char _ptemp[128];
3512
3513 self = self;
3514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1))
3515 return NULL;
3516 if (_argo0) {
3517 if (_argo0 == Py_None) { _arg0 = NULL; }
3518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
3519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p.");
3520 return NULL;
3521 }
3522 }
3523 if (_argo1) {
3524 if (_argo1 == Py_None) { _arg1 = NULL; }
3525 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
3526 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p.");
3527 return NULL;
3528 }
3529 }
3530 {
3531 wxPy_BEGIN_ALLOW_THREADS;
3532 _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1);
3533
3534 wxPy_END_ALLOW_THREADS;
3535 } if (_result) {
3536 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p");
3537 _resultobj = Py_BuildValue("s",_ptemp);
3538 } else {
3539 Py_INCREF(Py_None);
3540 _resultobj = Py_None;
3541 }
3542 return _resultobj;
3543 }
3544
3545 #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1))
3546 static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3547 PyObject * _resultobj;
3548 wxGenericDragImage * _result;
3549 wxIcon * _arg0;
3550 wxCursor * _arg1 = (wxCursor *) &wxNullCursor;
3551 PyObject * _argo0 = 0;
3552 PyObject * _argo1 = 0;
3553 char *_kwnames[] = { "image","cursor", NULL };
3554 char _ptemp[128];
3555
3556 self = self;
3557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1))
3558 return NULL;
3559 if (_argo0) {
3560 if (_argo0 == Py_None) { _arg0 = NULL; }
3561 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
3562 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p.");
3563 return NULL;
3564 }
3565 }
3566 if (_argo1) {
3567 if (_argo1 == Py_None) { _arg1 = NULL; }
3568 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
3569 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p.");
3570 return NULL;
3571 }
3572 }
3573 {
3574 wxPy_BEGIN_ALLOW_THREADS;
3575 _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1);
3576
3577 wxPy_END_ALLOW_THREADS;
3578 } if (_result) {
3579 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p");
3580 _resultobj = Py_BuildValue("s",_ptemp);
3581 } else {
3582 Py_INCREF(Py_None);
3583 _resultobj = Py_None;
3584 }
3585 return _resultobj;
3586 }
3587
3588 #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1))
3589 static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) {
3590 PyObject * _resultobj;
3591 wxGenericDragImage * _result;
3592 wxString * _arg0;
3593 wxCursor * _arg1 = (wxCursor *) &wxNullCursor;
3594 PyObject * _obj0 = 0;
3595 PyObject * _argo1 = 0;
3596 char *_kwnames[] = { "str","cursor", NULL };
3597 char _ptemp[128];
3598
3599 self = self;
3600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1))
3601 return NULL;
3602 {
3603 #if PYTHON_API_VERSION >= 1009
3604 char* tmpPtr; int tmpSize;
3605 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
3606 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3607 return NULL;
3608 }
3609 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
3610 return NULL;
3611 _arg0 = new wxString(tmpPtr, tmpSize);
3612 #else
3613 if (!PyString_Check(_obj0)) {
3614 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3615 return NULL;
3616 }
3617 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
3618 #endif
3619 }
3620 if (_argo1) {
3621 if (_argo1 == Py_None) { _arg1 = NULL; }
3622 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
3623 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p.");
3624 return NULL;
3625 }
3626 }
3627 {
3628 wxPy_BEGIN_ALLOW_THREADS;
3629 _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1);
3630
3631 wxPy_END_ALLOW_THREADS;
3632 } if (_result) {
3633 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p");
3634 _resultobj = Py_BuildValue("s",_ptemp);
3635 } else {
3636 Py_INCREF(Py_None);
3637 _resultobj = Py_None;
3638 }
3639 {
3640 if (_obj0)
3641 delete _arg0;
3642 }
3643 return _resultobj;
3644 }
3645
3646 #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1))
3647 static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3648 PyObject * _resultobj;
3649 wxGenericDragImage * _result;
3650 wxTreeCtrl * _arg0;
3651 wxTreeItemId * _arg1;
3652 PyObject * _argo0 = 0;
3653 PyObject * _argo1 = 0;
3654 char *_kwnames[] = { "treeCtrl","id", NULL };
3655 char _ptemp[128];
3656
3657 self = self;
3658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1))
3659 return NULL;
3660 if (_argo0) {
3661 if (_argo0 == Py_None) { _arg0 = NULL; }
3662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p.");
3664 return NULL;
3665 }
3666 }
3667 if (_argo1) {
3668 if (_argo1 == Py_None) { _arg1 = NULL; }
3669 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3670 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p.");
3671 return NULL;
3672 }
3673 }
3674 {
3675 wxPy_BEGIN_ALLOW_THREADS;
3676 _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1);
3677
3678 wxPy_END_ALLOW_THREADS;
3679 } if (_result) {
3680 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p");
3681 _resultobj = Py_BuildValue("s",_ptemp);
3682 } else {
3683 Py_INCREF(Py_None);
3684 _resultobj = Py_None;
3685 }
3686 return _resultobj;
3687 }
3688
3689 #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1))
3690 static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3691 PyObject * _resultobj;
3692 wxGenericDragImage * _result;
3693 wxListCtrl * _arg0;
3694 long _arg1;
3695 PyObject * _argo0 = 0;
3696 char *_kwnames[] = { "listCtrl","id", NULL };
3697 char _ptemp[128];
3698
3699 self = self;
3700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1))
3701 return NULL;
3702 if (_argo0) {
3703 if (_argo0 == Py_None) { _arg0 = NULL; }
3704 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
3705 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p.");
3706 return NULL;
3707 }
3708 }
3709 {
3710 wxPy_BEGIN_ALLOW_THREADS;
3711 _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1);
3712
3713 wxPy_END_ALLOW_THREADS;
3714 } if (_result) {
3715 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p");
3716 _resultobj = Py_BuildValue("s",_ptemp);
3717 } else {
3718 Py_INCREF(Py_None);
3719 _resultobj = Py_None;
3720 }
3721 return _resultobj;
3722 }
3723
3724 #define delete_wxGenericDragImage(_swigobj) (delete _swigobj)
3725 static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3726 PyObject * _resultobj;
3727 wxGenericDragImage * _arg0;
3728 PyObject * _argo0 = 0;
3729 char *_kwnames[] = { "self", NULL };
3730
3731 self = self;
3732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0))
3733 return NULL;
3734 if (_argo0) {
3735 if (_argo0 == Py_None) { _arg0 = NULL; }
3736 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3737 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p.");
3738 return NULL;
3739 }
3740 }
3741 {
3742 wxPy_BEGIN_ALLOW_THREADS;
3743 delete_wxGenericDragImage(_arg0);
3744
3745 wxPy_END_ALLOW_THREADS;
3746 } Py_INCREF(Py_None);
3747 _resultobj = Py_None;
3748 return _resultobj;
3749 }
3750
3751 #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0))
3752 static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3753 PyObject * _resultobj;
3754 wxGenericDragImage * _arg0;
3755 wxBitmap * _arg1;
3756 PyObject * _argo0 = 0;
3757 PyObject * _argo1 = 0;
3758 char *_kwnames[] = { "self","bitmap", NULL };
3759
3760 self = self;
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1))
3762 return NULL;
3763 if (_argo0) {
3764 if (_argo0 == Py_None) { _arg0 = NULL; }
3765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p.");
3767 return NULL;
3768 }
3769 }
3770 if (_argo1) {
3771 if (_argo1 == Py_None) { _arg1 = NULL; }
3772 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
3773 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p.");
3774 return NULL;
3775 }
3776 }
3777 {
3778 wxPy_BEGIN_ALLOW_THREADS;
3779 wxDragImage_SetBackingBitmap(_arg0,_arg1);
3780
3781 wxPy_END_ALLOW_THREADS;
3782 } Py_INCREF(Py_None);
3783 _resultobj = Py_None;
3784 return _resultobj;
3785 }
3786
3787 #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3788 static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
3789 PyObject * _resultobj;
3790 bool _result;
3791 wxGenericDragImage * _arg0;
3792 wxPoint * _arg1;
3793 wxWindow * _arg2;
3794 bool _arg3 = (bool ) FALSE;
3795 wxRect * _arg4 = (wxRect *) NULL;
3796 PyObject * _argo0 = 0;
3797 wxPoint temp;
3798 PyObject * _obj1 = 0;
3799 PyObject * _argo2 = 0;
3800 int tempbool3 = (int) FALSE;
3801 wxRect temp0;
3802 PyObject * _obj4 = 0;
3803 char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL };
3804
3805 self = self;
3806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4))
3807 return NULL;
3808 if (_argo0) {
3809 if (_argo0 == Py_None) { _arg0 = NULL; }
3810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p.");
3812 return NULL;
3813 }
3814 }
3815 {
3816 _arg1 = &temp;
3817 if (! wxPoint_helper(_obj1, &_arg1))
3818 return NULL;
3819 }
3820 if (_argo2) {
3821 if (_argo2 == Py_None) { _arg2 = NULL; }
3822 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
3823 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p.");
3824 return NULL;
3825 }
3826 }
3827 _arg3 = (bool ) tempbool3;
3828 if (_obj4)
3829 {
3830 _arg4 = &temp0;
3831 if (! wxRect_helper(_obj4, &_arg4))
3832 return NULL;
3833 }
3834 {
3835 wxPy_BEGIN_ALLOW_THREADS;
3836 _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4);
3837
3838 wxPy_END_ALLOW_THREADS;
3839 } _resultobj = Py_BuildValue("i",_result);
3840 return _resultobj;
3841 }
3842
3843 #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2))
3844 static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) {
3845 PyObject * _resultobj;
3846 bool _result;
3847 wxGenericDragImage * _arg0;
3848 wxPoint * _arg1;
3849 wxWindow * _arg2;
3850 wxWindow * _arg3;
3851 PyObject * _argo0 = 0;
3852 wxPoint temp;
3853 PyObject * _obj1 = 0;
3854 PyObject * _argo2 = 0;
3855 PyObject * _argo3 = 0;
3856 char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL };
3857
3858 self = self;
3859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3))
3860 return NULL;
3861 if (_argo0) {
3862 if (_argo0 == Py_None) { _arg0 = NULL; }
3863 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3864 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p.");
3865 return NULL;
3866 }
3867 }
3868 {
3869 _arg1 = &temp;
3870 if (! wxPoint_helper(_obj1, &_arg1))
3871 return NULL;
3872 }
3873 if (_argo2) {
3874 if (_argo2 == Py_None) { _arg2 = NULL; }
3875 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
3876 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p.");
3877 return NULL;
3878 }
3879 }
3880 if (_argo3) {
3881 if (_argo3 == Py_None) { _arg3 = NULL; }
3882 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
3883 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p.");
3884 return NULL;
3885 }
3886 }
3887 {
3888 wxPy_BEGIN_ALLOW_THREADS;
3889 _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3);
3890
3891 wxPy_END_ALLOW_THREADS;
3892 } _resultobj = Py_BuildValue("i",_result);
3893 return _resultobj;
3894 }
3895
3896 #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag())
3897 static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
3898 PyObject * _resultobj;
3899 bool _result;
3900 wxGenericDragImage * _arg0;
3901 PyObject * _argo0 = 0;
3902 char *_kwnames[] = { "self", NULL };
3903
3904 self = self;
3905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0))
3906 return NULL;
3907 if (_argo0) {
3908 if (_argo0 == Py_None) { _arg0 = NULL; }
3909 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3910 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p.");
3911 return NULL;
3912 }
3913 }
3914 {
3915 wxPy_BEGIN_ALLOW_THREADS;
3916 _result = (bool )wxDragImage_EndDrag(_arg0);
3917
3918 wxPy_END_ALLOW_THREADS;
3919 } _resultobj = Py_BuildValue("i",_result);
3920 return _resultobj;
3921 }
3922
3923 #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3924 static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
3925 PyObject * _resultobj;
3926 bool _result;
3927 wxGenericDragImage * _arg0;
3928 wxPoint * _arg1;
3929 PyObject * _argo0 = 0;
3930 wxPoint temp;
3931 PyObject * _obj1 = 0;
3932 char *_kwnames[] = { "self","pt", NULL };
3933
3934 self = self;
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1))
3936 return NULL;
3937 if (_argo0) {
3938 if (_argo0 == Py_None) { _arg0 = NULL; }
3939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p.");
3941 return NULL;
3942 }
3943 }
3944 {
3945 _arg1 = &temp;
3946 if (! wxPoint_helper(_obj1, &_arg1))
3947 return NULL;
3948 }
3949 {
3950 wxPy_BEGIN_ALLOW_THREADS;
3951 _result = (bool )wxDragImage_Move(_arg0,*_arg1);
3952
3953 wxPy_END_ALLOW_THREADS;
3954 } _resultobj = Py_BuildValue("i",_result);
3955 return _resultobj;
3956 }
3957
3958 #define wxDragImage_Show(_swigobj) (_swigobj->Show())
3959 static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
3960 PyObject * _resultobj;
3961 bool _result;
3962 wxGenericDragImage * _arg0;
3963 PyObject * _argo0 = 0;
3964 char *_kwnames[] = { "self", NULL };
3965
3966 self = self;
3967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0))
3968 return NULL;
3969 if (_argo0) {
3970 if (_argo0 == Py_None) { _arg0 = NULL; }
3971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p.");
3973 return NULL;
3974 }
3975 }
3976 {
3977 wxPy_BEGIN_ALLOW_THREADS;
3978 _result = (bool )wxDragImage_Show(_arg0);
3979
3980 wxPy_END_ALLOW_THREADS;
3981 } _resultobj = Py_BuildValue("i",_result);
3982 return _resultobj;
3983 }
3984
3985 #define wxDragImage_Hide(_swigobj) (_swigobj->Hide())
3986 static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
3987 PyObject * _resultobj;
3988 bool _result;
3989 wxGenericDragImage * _arg0;
3990 PyObject * _argo0 = 0;
3991 char *_kwnames[] = { "self", NULL };
3992
3993 self = self;
3994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0))
3995 return NULL;
3996 if (_argo0) {
3997 if (_argo0 == Py_None) { _arg0 = NULL; }
3998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p.");
4000 return NULL;
4001 }
4002 }
4003 {
4004 wxPy_BEGIN_ALLOW_THREADS;
4005 _result = (bool )wxDragImage_Hide(_arg0);
4006
4007 wxPy_END_ALLOW_THREADS;
4008 } _resultobj = Py_BuildValue("i",_result);
4009 return _resultobj;
4010 }
4011
4012 #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0))
4013 static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4014 PyObject * _resultobj;
4015 wxRect * _result;
4016 wxGenericDragImage * _arg0;
4017 wxPoint * _arg1;
4018 PyObject * _argo0 = 0;
4019 wxPoint temp;
4020 PyObject * _obj1 = 0;
4021 char *_kwnames[] = { "self","pos", NULL };
4022 char _ptemp[128];
4023
4024 self = self;
4025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1))
4026 return NULL;
4027 if (_argo0) {
4028 if (_argo0 == Py_None) { _arg0 = NULL; }
4029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
4030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p.");
4031 return NULL;
4032 }
4033 }
4034 {
4035 _arg1 = &temp;
4036 if (! wxPoint_helper(_obj1, &_arg1))
4037 return NULL;
4038 }
4039 {
4040 wxPy_BEGIN_ALLOW_THREADS;
4041 _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1));
4042
4043 wxPy_END_ALLOW_THREADS;
4044 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
4045 _resultobj = Py_BuildValue("s",_ptemp);
4046 return _resultobj;
4047 }
4048
4049 #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4050 static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4051 PyObject * _resultobj;
4052 bool _result;
4053 wxGenericDragImage * _arg0;
4054 wxPoint * _arg1;
4055 wxPoint * _arg2;
4056 bool _arg3;
4057 bool _arg4;
4058 PyObject * _argo0 = 0;
4059 wxPoint temp;
4060 PyObject * _obj1 = 0;
4061 wxPoint temp0;
4062 PyObject * _obj2 = 0;
4063 int tempbool3;
4064 int tempbool4;
4065 char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL };
4066
4067 self = self;
4068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4))
4069 return NULL;
4070 if (_argo0) {
4071 if (_argo0 == Py_None) { _arg0 = NULL; }
4072 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
4073 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p.");
4074 return NULL;
4075 }
4076 }
4077 {
4078 _arg1 = &temp;
4079 if (! wxPoint_helper(_obj1, &_arg1))
4080 return NULL;
4081 }
4082 {
4083 _arg2 = &temp0;
4084 if (! wxPoint_helper(_obj2, &_arg2))
4085 return NULL;
4086 }
4087 _arg3 = (bool ) tempbool3;
4088 _arg4 = (bool ) tempbool4;
4089 {
4090 wxPy_BEGIN_ALLOW_THREADS;
4091 _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4);
4092
4093 wxPy_END_ALLOW_THREADS;
4094 } _resultobj = Py_BuildValue("i",_result);
4095 return _resultobj;
4096 }
4097
4098 static void *SwigwxPyTimerTowxObject(void *ptr) {
4099 wxPyTimer *src;
4100 wxObject *dest;
4101 src = (wxPyTimer *) ptr;
4102 dest = (wxObject *) src;
4103 return (void *) dest;
4104 }
4105
4106 #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0))
4107 static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
4108 PyObject * _resultobj;
4109 wxPyTimer * _result;
4110 PyObject * _arg0;
4111 PyObject * _obj0 = 0;
4112 char *_kwnames[] = { "notify", NULL };
4113 char _ptemp[128];
4114
4115 self = self;
4116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0))
4117 return NULL;
4118 {
4119 _arg0 = _obj0;
4120 }
4121 {
4122 wxPy_BEGIN_ALLOW_THREADS;
4123 _result = (wxPyTimer *)new_wxPyTimer(_arg0);
4124
4125 wxPy_END_ALLOW_THREADS;
4126 } if (_result) {
4127 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p");
4128 _resultobj = Py_BuildValue("s",_ptemp);
4129 } else {
4130 Py_INCREF(Py_None);
4131 _resultobj = Py_None;
4132 }
4133 return _resultobj;
4134 }
4135
4136 #define delete_wxPyTimer(_swigobj) (delete _swigobj)
4137 static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
4138 PyObject * _resultobj;
4139 wxPyTimer * _arg0;
4140 PyObject * _argo0 = 0;
4141 char *_kwnames[] = { "self", NULL };
4142
4143 self = self;
4144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0))
4145 return NULL;
4146 if (_argo0) {
4147 if (_argo0 == Py_None) { _arg0 = NULL; }
4148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p.");
4150 return NULL;
4151 }
4152 }
4153 {
4154 wxPy_BEGIN_ALLOW_THREADS;
4155 delete_wxPyTimer(_arg0);
4156
4157 wxPy_END_ALLOW_THREADS;
4158 } Py_INCREF(Py_None);
4159 _resultobj = Py_None;
4160 return _resultobj;
4161 }
4162
4163 #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval())
4164 static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
4165 PyObject * _resultobj;
4166 int _result;
4167 wxPyTimer * _arg0;
4168 PyObject * _argo0 = 0;
4169 char *_kwnames[] = { "self", NULL };
4170
4171 self = self;
4172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0))
4173 return NULL;
4174 if (_argo0) {
4175 if (_argo0 == Py_None) { _arg0 = NULL; }
4176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p.");
4178 return NULL;
4179 }
4180 }
4181 {
4182 wxPy_BEGIN_ALLOW_THREADS;
4183 _result = (int )wxPyTimer_GetInterval(_arg0);
4184
4185 wxPy_END_ALLOW_THREADS;
4186 } _resultobj = Py_BuildValue("i",_result);
4187 return _resultobj;
4188 }
4189
4190 #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot())
4191 static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
4192 PyObject * _resultobj;
4193 bool _result;
4194 wxPyTimer * _arg0;
4195 PyObject * _argo0 = 0;
4196 char *_kwnames[] = { "self", NULL };
4197
4198 self = self;
4199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0))
4200 return NULL;
4201 if (_argo0) {
4202 if (_argo0 == Py_None) { _arg0 = NULL; }
4203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p.");
4205 return NULL;
4206 }
4207 }
4208 {
4209 wxPy_BEGIN_ALLOW_THREADS;
4210 _result = (bool )wxPyTimer_IsOneShot(_arg0);
4211
4212 wxPy_END_ALLOW_THREADS;
4213 } _resultobj = Py_BuildValue("i",_result);
4214 return _resultobj;
4215 }
4216
4217 #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning())
4218 static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
4219 PyObject * _resultobj;
4220 bool _result;
4221 wxPyTimer * _arg0;
4222 PyObject * _argo0 = 0;
4223 char *_kwnames[] = { "self", NULL };
4224
4225 self = self;
4226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0))
4227 return NULL;
4228 if (_argo0) {
4229 if (_argo0 == Py_None) { _arg0 = NULL; }
4230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p.");
4232 return NULL;
4233 }
4234 }
4235 {
4236 wxPy_BEGIN_ALLOW_THREADS;
4237 _result = (bool )wxPyTimer_IsRunning(_arg0);
4238
4239 wxPy_END_ALLOW_THREADS;
4240 } _resultobj = Py_BuildValue("i",_result);
4241 return _resultobj;
4242 }
4243
4244 #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1))
4245 static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
4246 PyObject * _resultobj;
4247 wxPyTimer * _arg0;
4248 wxEvtHandler * _arg1;
4249 int _arg2 = (int ) -1;
4250 PyObject * _argo0 = 0;
4251 PyObject * _argo1 = 0;
4252 char *_kwnames[] = { "self","owner","id", NULL };
4253
4254 self = self;
4255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2))
4256 return NULL;
4257 if (_argo0) {
4258 if (_argo0 == Py_None) { _arg0 = NULL; }
4259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p.");
4261 return NULL;
4262 }
4263 }
4264 if (_argo1) {
4265 if (_argo1 == Py_None) { _arg1 = NULL; }
4266 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
4267 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p.");
4268 return NULL;
4269 }
4270 }
4271 {
4272 wxPy_BEGIN_ALLOW_THREADS;
4273 wxPyTimer_SetOwner(_arg0,_arg1,_arg2);
4274
4275 wxPy_END_ALLOW_THREADS;
4276 } Py_INCREF(Py_None);
4277 _resultobj = Py_None;
4278 return _resultobj;
4279 }
4280
4281 #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1))
4282 static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
4283 PyObject * _resultobj;
4284 wxPyTimer * _arg0;
4285 int _arg1 = (int ) -1;
4286 int _arg2 = (int ) FALSE;
4287 PyObject * _argo0 = 0;
4288 char *_kwnames[] = { "self","milliseconds","oneShot", NULL };
4289
4290 self = self;
4291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2))
4292 return NULL;
4293 if (_argo0) {
4294 if (_argo0 == Py_None) { _arg0 = NULL; }
4295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p.");
4297 return NULL;
4298 }
4299 }
4300 {
4301 wxPy_BEGIN_ALLOW_THREADS;
4302 wxPyTimer_Start(_arg0,_arg1,_arg2);
4303
4304 wxPy_END_ALLOW_THREADS;
4305 } Py_INCREF(Py_None);
4306 _resultobj = Py_None;
4307 return _resultobj;
4308 }
4309
4310 #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop())
4311 static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
4312 PyObject * _resultobj;
4313 wxPyTimer * _arg0;
4314 PyObject * _argo0 = 0;
4315 char *_kwnames[] = { "self", NULL };
4316
4317 self = self;
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0))
4319 return NULL;
4320 if (_argo0) {
4321 if (_argo0 == Py_None) { _arg0 = NULL; }
4322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p.");
4324 return NULL;
4325 }
4326 }
4327 {
4328 wxPy_BEGIN_ALLOW_THREADS;
4329 wxPyTimer_Stop(_arg0);
4330
4331 wxPy_END_ALLOW_THREADS;
4332 } Py_INCREF(Py_None);
4333 _resultobj = Py_None;
4334 return _resultobj;
4335 }
4336
4337 #define new_wxStopWatch() (new wxStopWatch())
4338 static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
4339 PyObject * _resultobj;
4340 wxStopWatch * _result;
4341 char *_kwnames[] = { NULL };
4342 char _ptemp[128];
4343
4344 self = self;
4345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames))
4346 return NULL;
4347 {
4348 wxPy_BEGIN_ALLOW_THREADS;
4349 _result = (wxStopWatch *)new_wxStopWatch();
4350
4351 wxPy_END_ALLOW_THREADS;
4352 } if (_result) {
4353 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p");
4354 _resultobj = Py_BuildValue("s",_ptemp);
4355 } else {
4356 Py_INCREF(Py_None);
4357 _resultobj = Py_None;
4358 }
4359 return _resultobj;
4360 }
4361
4362 #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0))
4363 static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
4364 PyObject * _resultobj;
4365 wxStopWatch * _arg0;
4366 long _arg1 = (long ) 0;
4367 PyObject * _argo0 = 0;
4368 char *_kwnames[] = { "self","t", NULL };
4369
4370 self = self;
4371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1))
4372 return NULL;
4373 if (_argo0) {
4374 if (_argo0 == Py_None) { _arg0 = NULL; }
4375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) {
4376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p.");
4377 return NULL;
4378 }
4379 }
4380 {
4381 wxPy_BEGIN_ALLOW_THREADS;
4382 wxStopWatch_Start(_arg0,_arg1);
4383
4384 wxPy_END_ALLOW_THREADS;
4385 } Py_INCREF(Py_None);
4386 _resultobj = Py_None;
4387 return _resultobj;
4388 }
4389
4390 #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause())
4391 static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
4392 PyObject * _resultobj;
4393 wxStopWatch * _arg0;
4394 PyObject * _argo0 = 0;
4395 char *_kwnames[] = { "self", NULL };
4396
4397 self = self;
4398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0))
4399 return NULL;
4400 if (_argo0) {
4401 if (_argo0 == Py_None) { _arg0 = NULL; }
4402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) {
4403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p.");
4404 return NULL;
4405 }
4406 }
4407 {
4408 wxPy_BEGIN_ALLOW_THREADS;
4409 wxStopWatch_Pause(_arg0);
4410
4411 wxPy_END_ALLOW_THREADS;
4412 } Py_INCREF(Py_None);
4413 _resultobj = Py_None;
4414 return _resultobj;
4415 }
4416
4417 #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume())
4418 static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
4419 PyObject * _resultobj;
4420 wxStopWatch * _arg0;
4421 PyObject * _argo0 = 0;
4422 char *_kwnames[] = { "self", NULL };
4423
4424 self = self;
4425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0))
4426 return NULL;
4427 if (_argo0) {
4428 if (_argo0 == Py_None) { _arg0 = NULL; }
4429 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) {
4430 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p.");
4431 return NULL;
4432 }
4433 }
4434 {
4435 wxPy_BEGIN_ALLOW_THREADS;
4436 wxStopWatch_Resume(_arg0);
4437
4438 wxPy_END_ALLOW_THREADS;
4439 } Py_INCREF(Py_None);
4440 _resultobj = Py_None;
4441 return _resultobj;
4442 }
4443
4444 #define wxStopWatch_Time(_swigobj) (_swigobj->Time())
4445 static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
4446 PyObject * _resultobj;
4447 long _result;
4448 wxStopWatch * _arg0;
4449 PyObject * _argo0 = 0;
4450 char *_kwnames[] = { "self", NULL };
4451
4452 self = self;
4453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0))
4454 return NULL;
4455 if (_argo0) {
4456 if (_argo0 == Py_None) { _arg0 = NULL; }
4457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) {
4458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p.");
4459 return NULL;
4460 }
4461 }
4462 {
4463 wxPy_BEGIN_ALLOW_THREADS;
4464 _result = (long )wxStopWatch_Time(_arg0);
4465
4466 wxPy_END_ALLOW_THREADS;
4467 } _resultobj = Py_BuildValue("l",_result);
4468 return _resultobj;
4469 }
4470
4471 #define new_wxLog() (new wxLog())
4472 static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) {
4473 PyObject * _resultobj;
4474 wxLog * _result;
4475 char *_kwnames[] = { NULL };
4476 char _ptemp[128];
4477
4478 self = self;
4479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames))
4480 return NULL;
4481 {
4482 wxPy_BEGIN_ALLOW_THREADS;
4483 _result = (wxLog *)new_wxLog();
4484
4485 wxPy_END_ALLOW_THREADS;
4486 } if (_result) {
4487 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
4488 _resultobj = Py_BuildValue("s",_ptemp);
4489 } else {
4490 Py_INCREF(Py_None);
4491 _resultobj = Py_None;
4492 }
4493 return _resultobj;
4494 }
4495
4496 static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
4497 PyObject * _resultobj;
4498 bool _result;
4499 char *_kwnames[] = { NULL };
4500
4501 self = self;
4502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames))
4503 return NULL;
4504 {
4505 wxPy_BEGIN_ALLOW_THREADS;
4506 _result = (bool )wxLog::IsEnabled();
4507
4508 wxPy_END_ALLOW_THREADS;
4509 } _resultobj = Py_BuildValue("i",_result);
4510 return _resultobj;
4511 }
4512
4513 static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
4514 PyObject * _resultobj;
4515 bool _result;
4516 bool _arg0 = (bool ) TRUE;
4517 int tempbool0 = (int) TRUE;
4518 char *_kwnames[] = { "doIt", NULL };
4519
4520 self = self;
4521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0))
4522 return NULL;
4523 _arg0 = (bool ) tempbool0;
4524 {
4525 wxPy_BEGIN_ALLOW_THREADS;
4526 _result = (bool )wxLog::EnableLogging(_arg0);
4527
4528 wxPy_END_ALLOW_THREADS;
4529 } _resultobj = Py_BuildValue("i",_result);
4530 return _resultobj;
4531 }
4532
4533 static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
4534 PyObject * _resultobj;
4535 wxLogLevel * _arg0;
4536 char * _arg1;
4537 int _arg2 = (int ) 0;
4538 PyObject * _argo0 = 0;
4539 char *_kwnames[] = { "level","szString","t", NULL };
4540
4541 self = self;
4542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|i:wxLog_OnLog",_kwnames,&_argo0,&_arg1,&_arg2))
4543 return NULL;
4544 if (_argo0) {
4545 if (_argo0 == Py_None) { _arg0 = NULL; }
4546 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) {
4547 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p.");
4548 return NULL;
4549 }
4550 }
4551 {
4552 wxPy_BEGIN_ALLOW_THREADS;
4553 wxLog::OnLog(*_arg0,_arg1,_arg2);
4554
4555 wxPy_END_ALLOW_THREADS;
4556 } Py_INCREF(Py_None);
4557 _resultobj = Py_None;
4558 return _resultobj;
4559 }
4560
4561 #define wxLog_Flush(_swigobj) (_swigobj->Flush())
4562 static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
4563 PyObject * _resultobj;
4564 wxLog * _arg0;
4565 PyObject * _argo0 = 0;
4566 char *_kwnames[] = { "self", NULL };
4567
4568 self = self;
4569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0))
4570 return NULL;
4571 if (_argo0) {
4572 if (_argo0 == Py_None) { _arg0 = NULL; }
4573 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4574 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p.");
4575 return NULL;
4576 }
4577 }
4578 {
4579 wxPy_BEGIN_ALLOW_THREADS;
4580 wxLog_Flush(_arg0);
4581
4582 wxPy_END_ALLOW_THREADS;
4583 } Py_INCREF(Py_None);
4584 _resultobj = Py_None;
4585 return _resultobj;
4586 }
4587
4588 #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages())
4589 static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
4590 PyObject * _resultobj;
4591 bool _result;
4592 wxLog * _arg0;
4593 PyObject * _argo0 = 0;
4594 char *_kwnames[] = { "self", NULL };
4595
4596 self = self;
4597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0))
4598 return NULL;
4599 if (_argo0) {
4600 if (_argo0 == Py_None) { _arg0 = NULL; }
4601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p.");
4603 return NULL;
4604 }
4605 }
4606 {
4607 wxPy_BEGIN_ALLOW_THREADS;
4608 _result = (bool )wxLog_HasPendingMessages(_arg0);
4609
4610 wxPy_END_ALLOW_THREADS;
4611 } _resultobj = Py_BuildValue("i",_result);
4612 return _resultobj;
4613 }
4614
4615 static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
4616 PyObject * _resultobj;
4617 char *_kwnames[] = { NULL };
4618
4619 self = self;
4620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames))
4621 return NULL;
4622 {
4623 wxPy_BEGIN_ALLOW_THREADS;
4624 wxLog::FlushActive();
4625
4626 wxPy_END_ALLOW_THREADS;
4627 } Py_INCREF(Py_None);
4628 _resultobj = Py_None;
4629 return _resultobj;
4630 }
4631
4632 static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
4633 PyObject * _resultobj;
4634 wxLog * _result;
4635 char *_kwnames[] = { NULL };
4636 char _ptemp[128];
4637
4638 self = self;
4639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames))
4640 return NULL;
4641 {
4642 wxPy_BEGIN_ALLOW_THREADS;
4643 _result = (wxLog *)wxLog::GetActiveTarget();
4644
4645 wxPy_END_ALLOW_THREADS;
4646 } if (_result) {
4647 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
4648 _resultobj = Py_BuildValue("s",_ptemp);
4649 } else {
4650 Py_INCREF(Py_None);
4651 _resultobj = Py_None;
4652 }
4653 return _resultobj;
4654 }
4655
4656 static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
4657 PyObject * _resultobj;
4658 wxLog * _result;
4659 wxLog * _arg0;
4660 PyObject * _argo0 = 0;
4661 char *_kwnames[] = { "pLogger", NULL };
4662 char _ptemp[128];
4663
4664 self = self;
4665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0))
4666 return NULL;
4667 if (_argo0) {
4668 if (_argo0 == Py_None) { _arg0 = NULL; }
4669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p.");
4671 return NULL;
4672 }
4673 }
4674 {
4675 wxPy_BEGIN_ALLOW_THREADS;
4676 _result = (wxLog *)wxLog::SetActiveTarget(_arg0);
4677
4678 wxPy_END_ALLOW_THREADS;
4679 } if (_result) {
4680 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
4681 _resultobj = Py_BuildValue("s",_ptemp);
4682 } else {
4683 Py_INCREF(Py_None);
4684 _resultobj = Py_None;
4685 }
4686 return _resultobj;
4687 }
4688
4689 static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
4690 PyObject * _resultobj;
4691 char *_kwnames[] = { NULL };
4692
4693 self = self;
4694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames))
4695 return NULL;
4696 {
4697 wxPy_BEGIN_ALLOW_THREADS;
4698 wxLog::Suspend();
4699
4700 wxPy_END_ALLOW_THREADS;
4701 } Py_INCREF(Py_None);
4702 _resultobj = Py_None;
4703 return _resultobj;
4704 }
4705
4706 static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
4707 PyObject * _resultobj;
4708 char *_kwnames[] = { NULL };
4709
4710 self = self;
4711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames))
4712 return NULL;
4713 {
4714 wxPy_BEGIN_ALLOW_THREADS;
4715 wxLog::Resume();
4716
4717 wxPy_END_ALLOW_THREADS;
4718 } Py_INCREF(Py_None);
4719 _resultobj = Py_None;
4720 return _resultobj;
4721 }
4722
4723 #define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0))
4724 static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
4725 PyObject * _resultobj;
4726 wxLog * _arg0;
4727 bool _arg1 = (bool ) TRUE;
4728 PyObject * _argo0 = 0;
4729 int tempbool1 = (int) TRUE;
4730 char *_kwnames[] = { "self","bVerbose", NULL };
4731
4732 self = self;
4733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1))
4734 return NULL;
4735 if (_argo0) {
4736 if (_argo0 == Py_None) { _arg0 = NULL; }
4737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p.");
4739 return NULL;
4740 }
4741 }
4742 _arg1 = (bool ) tempbool1;
4743 {
4744 wxPy_BEGIN_ALLOW_THREADS;
4745 wxLog_SetVerbose(_arg0,_arg1);
4746
4747 wxPy_END_ALLOW_THREADS;
4748 } Py_INCREF(Py_None);
4749 _resultobj = Py_None;
4750 return _resultobj;
4751 }
4752
4753 static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
4754 PyObject * _resultobj;
4755 char *_kwnames[] = { NULL };
4756
4757 self = self;
4758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames))
4759 return NULL;
4760 {
4761 wxPy_BEGIN_ALLOW_THREADS;
4762 wxLog::DontCreateOnDemand();
4763
4764 wxPy_END_ALLOW_THREADS;
4765 } Py_INCREF(Py_None);
4766 _resultobj = Py_None;
4767 return _resultobj;
4768 }
4769
4770 static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4771 PyObject * _resultobj;
4772 wxTraceMask * _arg0;
4773 PyObject * _argo0 = 0;
4774 char *_kwnames[] = { "ulMask", NULL };
4775
4776 self = self;
4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0))
4778 return NULL;
4779 if (_argo0) {
4780 if (_argo0 == Py_None) { _arg0 = NULL; }
4781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) {
4782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p.");
4783 return NULL;
4784 }
4785 }
4786 {
4787 wxPy_BEGIN_ALLOW_THREADS;
4788 wxLog::SetTraceMask(*_arg0);
4789
4790 wxPy_END_ALLOW_THREADS;
4791 } Py_INCREF(Py_None);
4792 _resultobj = Py_None;
4793 return _resultobj;
4794 }
4795
4796 static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4797 PyObject * _resultobj;
4798 wxString * _arg0;
4799 PyObject * _obj0 = 0;
4800 char *_kwnames[] = { "str", NULL };
4801
4802 self = self;
4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0))
4804 return NULL;
4805 {
4806 #if PYTHON_API_VERSION >= 1009
4807 char* tmpPtr; int tmpSize;
4808 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
4809 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4810 return NULL;
4811 }
4812 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
4813 return NULL;
4814 _arg0 = new wxString(tmpPtr, tmpSize);
4815 #else
4816 if (!PyString_Check(_obj0)) {
4817 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4818 return NULL;
4819 }
4820 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
4821 #endif
4822 }
4823 {
4824 wxPy_BEGIN_ALLOW_THREADS;
4825 wxLog::AddTraceMask(*_arg0);
4826
4827 wxPy_END_ALLOW_THREADS;
4828 } Py_INCREF(Py_None);
4829 _resultobj = Py_None;
4830 {
4831 if (_obj0)
4832 delete _arg0;
4833 }
4834 return _resultobj;
4835 }
4836
4837 static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4838 PyObject * _resultobj;
4839 wxString * _arg0;
4840 PyObject * _obj0 = 0;
4841 char *_kwnames[] = { "str", NULL };
4842
4843 self = self;
4844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0))
4845 return NULL;
4846 {
4847 #if PYTHON_API_VERSION >= 1009
4848 char* tmpPtr; int tmpSize;
4849 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
4850 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4851 return NULL;
4852 }
4853 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
4854 return NULL;
4855 _arg0 = new wxString(tmpPtr, tmpSize);
4856 #else
4857 if (!PyString_Check(_obj0)) {
4858 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4859 return NULL;
4860 }
4861 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
4862 #endif
4863 }
4864 {
4865 wxPy_BEGIN_ALLOW_THREADS;
4866 wxLog::RemoveTraceMask(*_arg0);
4867
4868 wxPy_END_ALLOW_THREADS;
4869 } Py_INCREF(Py_None);
4870 _resultobj = Py_None;
4871 {
4872 if (_obj0)
4873 delete _arg0;
4874 }
4875 return _resultobj;
4876 }
4877
4878 static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
4879 PyObject * _resultobj;
4880 char *_kwnames[] = { NULL };
4881
4882 self = self;
4883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames))
4884 return NULL;
4885 {
4886 wxPy_BEGIN_ALLOW_THREADS;
4887 wxLog::ClearTraceMasks();
4888
4889 wxPy_END_ALLOW_THREADS;
4890 } Py_INCREF(Py_None);
4891 _resultobj = Py_None;
4892 return _resultobj;
4893 }
4894
4895 static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
4896 PyObject * _resultobj;
4897 wxChar * _arg0;
4898 char *_kwnames[] = { "ts", NULL };
4899
4900 self = self;
4901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_SetTimestamp",_kwnames,&_arg0))
4902 return NULL;
4903 {
4904 wxPy_BEGIN_ALLOW_THREADS;
4905 wxLog::SetTimestamp(_arg0);
4906
4907 wxPy_END_ALLOW_THREADS;
4908 } Py_INCREF(Py_None);
4909 _resultobj = Py_None;
4910 return _resultobj;
4911 }
4912
4913 static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
4914 PyObject * _resultobj;
4915 wxChar * _result;
4916 char *_kwnames[] = { NULL };
4917
4918 self = self;
4919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames))
4920 return NULL;
4921 {
4922 wxPy_BEGIN_ALLOW_THREADS;
4923 _result = (wxChar *)wxLog::GetTimestamp();
4924
4925 wxPy_END_ALLOW_THREADS;
4926 } _resultobj = Py_BuildValue("s", _result);
4927 return _resultobj;
4928 }
4929
4930 #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose())
4931 static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
4932 PyObject * _resultobj;
4933 bool _result;
4934 wxLog * _arg0;
4935 PyObject * _argo0 = 0;
4936 char *_kwnames[] = { "self", NULL };
4937
4938 self = self;
4939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0))
4940 return NULL;
4941 if (_argo0) {
4942 if (_argo0 == Py_None) { _arg0 = NULL; }
4943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p.");
4945 return NULL;
4946 }
4947 }
4948 {
4949 wxPy_BEGIN_ALLOW_THREADS;
4950 _result = (bool )wxLog_GetVerbose(_arg0);
4951
4952 wxPy_END_ALLOW_THREADS;
4953 } _resultobj = Py_BuildValue("i",_result);
4954 return _resultobj;
4955 }
4956
4957 static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4958 PyObject * _resultobj;
4959 wxTraceMask * _result;
4960 char *_kwnames[] = { NULL };
4961 char _ptemp[128];
4962
4963 self = self;
4964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames))
4965 return NULL;
4966 {
4967 wxPy_BEGIN_ALLOW_THREADS;
4968 _result = new wxTraceMask (wxLog::GetTraceMask());
4969
4970 wxPy_END_ALLOW_THREADS;
4971 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p");
4972 _resultobj = Py_BuildValue("s",_ptemp);
4973 return _resultobj;
4974 }
4975
4976 static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4977 PyObject * _resultobj;
4978 bool _result;
4979 char * _arg0;
4980 char *_kwnames[] = { "mask", NULL };
4981
4982 self = self;
4983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_IsAllowedTraceMask",_kwnames,&_arg0))
4984 return NULL;
4985 {
4986 wxPy_BEGIN_ALLOW_THREADS;
4987 _result = (bool )wxLog::IsAllowedTraceMask(_arg0);
4988
4989 wxPy_END_ALLOW_THREADS;
4990 } _resultobj = Py_BuildValue("i",_result);
4991 return _resultobj;
4992 }
4993
4994 static wxString wxLog_TimeStamp(wxLog *self) {
4995 wxString msg;
4996 wxLog::TimeStamp(&msg);
4997 return msg;
4998 }
4999 static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
5000 PyObject * _resultobj;
5001 wxString * _result;
5002 wxLog * _arg0;
5003 PyObject * _argo0 = 0;
5004 char *_kwnames[] = { "self", NULL };
5005
5006 self = self;
5007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0))
5008 return NULL;
5009 if (_argo0) {
5010 if (_argo0 == Py_None) { _arg0 = NULL; }
5011 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
5012 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p.");
5013 return NULL;
5014 }
5015 }
5016 {
5017 wxPy_BEGIN_ALLOW_THREADS;
5018 _result = new wxString (wxLog_TimeStamp(_arg0));
5019
5020 wxPy_END_ALLOW_THREADS;
5021 }{
5022 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5023 }
5024 {
5025 delete _result;
5026 }
5027 return _resultobj;
5028 }
5029
5030 static void *SwigwxLogStderrTowxLog(void *ptr) {
5031 wxLogStderr *src;
5032 wxLog *dest;
5033 src = (wxLogStderr *) ptr;
5034 dest = (wxLog *) src;
5035 return (void *) dest;
5036 }
5037
5038 #define new_wxLogStderr() (new wxLogStderr())
5039 static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
5040 PyObject * _resultobj;
5041 wxLogStderr * _result;
5042 char *_kwnames[] = { NULL };
5043 char _ptemp[128];
5044
5045 self = self;
5046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames))
5047 return NULL;
5048 {
5049 wxPy_BEGIN_ALLOW_THREADS;
5050 _result = (wxLogStderr *)new_wxLogStderr();
5051
5052 wxPy_END_ALLOW_THREADS;
5053 } if (_result) {
5054 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p");
5055 _resultobj = Py_BuildValue("s",_ptemp);
5056 } else {
5057 Py_INCREF(Py_None);
5058 _resultobj = Py_None;
5059 }
5060 return _resultobj;
5061 }
5062
5063 static void *SwigwxLogTextCtrlTowxLog(void *ptr) {
5064 wxLogTextCtrl *src;
5065 wxLog *dest;
5066 src = (wxLogTextCtrl *) ptr;
5067 dest = (wxLog *) src;
5068 return (void *) dest;
5069 }
5070
5071 #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0))
5072 static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
5073 PyObject * _resultobj;
5074 wxLogTextCtrl * _result;
5075 wxTextCtrl * _arg0;
5076 PyObject * _argo0 = 0;
5077 char *_kwnames[] = { "pTextCtrl", NULL };
5078 char _ptemp[128];
5079
5080 self = self;
5081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0))
5082 return NULL;
5083 if (_argo0) {
5084 if (_argo0 == Py_None) { _arg0 = NULL; }
5085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p.");
5087 return NULL;
5088 }
5089 }
5090 {
5091 wxPy_BEGIN_ALLOW_THREADS;
5092 _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0);
5093
5094 wxPy_END_ALLOW_THREADS;
5095 } if (_result) {
5096 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p");
5097 _resultobj = Py_BuildValue("s",_ptemp);
5098 } else {
5099 Py_INCREF(Py_None);
5100 _resultobj = Py_None;
5101 }
5102 return _resultobj;
5103 }
5104
5105 static void *SwigwxLogGuiTowxLog(void *ptr) {
5106 wxLogGui *src;
5107 wxLog *dest;
5108 src = (wxLogGui *) ptr;
5109 dest = (wxLog *) src;
5110 return (void *) dest;
5111 }
5112
5113 #define new_wxLogGui() (new wxLogGui())
5114 static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
5115 PyObject * _resultobj;
5116 wxLogGui * _result;
5117 char *_kwnames[] = { NULL };
5118 char _ptemp[128];
5119
5120 self = self;
5121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames))
5122 return NULL;
5123 {
5124 wxPy_BEGIN_ALLOW_THREADS;
5125 _result = (wxLogGui *)new_wxLogGui();
5126
5127 wxPy_END_ALLOW_THREADS;
5128 } if (_result) {
5129 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p");
5130 _resultobj = Py_BuildValue("s",_ptemp);
5131 } else {
5132 Py_INCREF(Py_None);
5133 _resultobj = Py_None;
5134 }
5135 return _resultobj;
5136 }
5137
5138 static void *SwigwxLogWindowTowxLog(void *ptr) {
5139 wxLogWindow *src;
5140 wxLog *dest;
5141 src = (wxLogWindow *) ptr;
5142 dest = (wxLog *) src;
5143 return (void *) dest;
5144 }
5145
5146 #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5147 static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5148 PyObject * _resultobj;
5149 wxLogWindow * _result;
5150 wxFrame * _arg0;
5151 char * _arg1;
5152 bool _arg2 = (bool ) TRUE;
5153 bool _arg3 = (bool ) TRUE;
5154 PyObject * _argo0 = 0;
5155 int tempbool2 = (int) TRUE;
5156 int tempbool3 = (int) TRUE;
5157 char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL };
5158 char _ptemp[128];
5159
5160 self = self;
5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|ii:new_wxLogWindow",_kwnames,&_argo0,&_arg1,&tempbool2,&tempbool3))
5162 return NULL;
5163 if (_argo0) {
5164 if (_argo0 == Py_None) { _arg0 = NULL; }
5165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
5166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p.");
5167 return NULL;
5168 }
5169 }
5170 _arg2 = (bool ) tempbool2;
5171 _arg3 = (bool ) tempbool3;
5172 {
5173 wxPy_BEGIN_ALLOW_THREADS;
5174 _result = (wxLogWindow *)new_wxLogWindow(_arg0,_arg1,_arg2,_arg3);
5175
5176 wxPy_END_ALLOW_THREADS;
5177 } if (_result) {
5178 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p");
5179 _resultobj = Py_BuildValue("s",_ptemp);
5180 } else {
5181 Py_INCREF(Py_None);
5182 _resultobj = Py_None;
5183 }
5184 return _resultobj;
5185 }
5186
5187 #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
5188 static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5189 PyObject * _resultobj;
5190 wxLogWindow * _arg0;
5191 bool _arg1 = (bool ) TRUE;
5192 PyObject * _argo0 = 0;
5193 int tempbool1 = (int) TRUE;
5194 char *_kwnames[] = { "self","bShow", NULL };
5195
5196 self = self;
5197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1))
5198 return NULL;
5199 if (_argo0) {
5200 if (_argo0 == Py_None) { _arg0 = NULL; }
5201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p.");
5203 return NULL;
5204 }
5205 }
5206 _arg1 = (bool ) tempbool1;
5207 {
5208 wxPy_BEGIN_ALLOW_THREADS;
5209 wxLogWindow_Show(_arg0,_arg1);
5210
5211 wxPy_END_ALLOW_THREADS;
5212 } Py_INCREF(Py_None);
5213 _resultobj = Py_None;
5214 return _resultobj;
5215 }
5216
5217 #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame())
5218 static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
5219 PyObject * _resultobj;
5220 wxFrame * _result;
5221 wxLogWindow * _arg0;
5222 PyObject * _argo0 = 0;
5223 char *_kwnames[] = { "self", NULL };
5224
5225 self = self;
5226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0))
5227 return NULL;
5228 if (_argo0) {
5229 if (_argo0 == Py_None) { _arg0 = NULL; }
5230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p.");
5232 return NULL;
5233 }
5234 }
5235 {
5236 wxPy_BEGIN_ALLOW_THREADS;
5237 _result = (wxFrame *)wxLogWindow_GetFrame(_arg0);
5238
5239 wxPy_END_ALLOW_THREADS;
5240 }{ _resultobj = wxPyMake_wxObject(_result); }
5241 return _resultobj;
5242 }
5243
5244 #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog())
5245 static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5246 PyObject * _resultobj;
5247 wxLog * _result;
5248 wxLogWindow * _arg0;
5249 PyObject * _argo0 = 0;
5250 char *_kwnames[] = { "self", NULL };
5251 char _ptemp[128];
5252
5253 self = self;
5254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0))
5255 return NULL;
5256 if (_argo0) {
5257 if (_argo0 == Py_None) { _arg0 = NULL; }
5258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p.");
5260 return NULL;
5261 }
5262 }
5263 {
5264 wxPy_BEGIN_ALLOW_THREADS;
5265 _result = (wxLog *)wxLogWindow_GetOldLog(_arg0);
5266
5267 wxPy_END_ALLOW_THREADS;
5268 } if (_result) {
5269 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
5270 _resultobj = Py_BuildValue("s",_ptemp);
5271 } else {
5272 Py_INCREF(Py_None);
5273 _resultobj = Py_None;
5274 }
5275 return _resultobj;
5276 }
5277
5278 #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages())
5279 static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5280 PyObject * _resultobj;
5281 bool _result;
5282 wxLogWindow * _arg0;
5283 PyObject * _argo0 = 0;
5284 char *_kwnames[] = { "self", NULL };
5285
5286 self = self;
5287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0))
5288 return NULL;
5289 if (_argo0) {
5290 if (_argo0 == Py_None) { _arg0 = NULL; }
5291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p.");
5293 return NULL;
5294 }
5295 }
5296 {
5297 wxPy_BEGIN_ALLOW_THREADS;
5298 _result = (bool )wxLogWindow_IsPassingMessages(_arg0);
5299
5300 wxPy_END_ALLOW_THREADS;
5301 } _resultobj = Py_BuildValue("i",_result);
5302 return _resultobj;
5303 }
5304
5305 #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0))
5306 static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5307 PyObject * _resultobj;
5308 wxLogWindow * _arg0;
5309 bool _arg1;
5310 PyObject * _argo0 = 0;
5311 int tempbool1;
5312 char *_kwnames[] = { "self","bDoPass", NULL };
5313
5314 self = self;
5315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1))
5316 return NULL;
5317 if (_argo0) {
5318 if (_argo0 == Py_None) { _arg0 = NULL; }
5319 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5320 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p.");
5321 return NULL;
5322 }
5323 }
5324 _arg1 = (bool ) tempbool1;
5325 {
5326 wxPy_BEGIN_ALLOW_THREADS;
5327 wxLogWindow_PassMessages(_arg0,_arg1);
5328
5329 wxPy_END_ALLOW_THREADS;
5330 } Py_INCREF(Py_None);
5331 _resultobj = Py_None;
5332 return _resultobj;
5333 }
5334
5335 #define new_wxLogNull() (new wxLogNull())
5336 static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
5337 PyObject * _resultobj;
5338 wxLogNull * _result;
5339 char *_kwnames[] = { NULL };
5340 char _ptemp[128];
5341
5342 self = self;
5343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames))
5344 return NULL;
5345 {
5346 wxPy_BEGIN_ALLOW_THREADS;
5347 _result = (wxLogNull *)new_wxLogNull();
5348
5349 wxPy_END_ALLOW_THREADS;
5350 } if (_result) {
5351 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p");
5352 _resultobj = Py_BuildValue("s",_ptemp);
5353 } else {
5354 Py_INCREF(Py_None);
5355 _resultobj = Py_None;
5356 }
5357 return _resultobj;
5358 }
5359
5360 #define delete_wxLogNull(_swigobj) (delete _swigobj)
5361 static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
5362 PyObject * _resultobj;
5363 wxLogNull * _arg0;
5364 PyObject * _argo0 = 0;
5365 char *_kwnames[] = { "self", NULL };
5366
5367 self = self;
5368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0))
5369 return NULL;
5370 if (_argo0) {
5371 if (_argo0 == Py_None) { _arg0 = NULL; }
5372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) {
5373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p.");
5374 return NULL;
5375 }
5376 }
5377 {
5378 wxPy_BEGIN_ALLOW_THREADS;
5379 delete_wxLogNull(_arg0);
5380
5381 wxPy_END_ALLOW_THREADS;
5382 } Py_INCREF(Py_None);
5383 _resultobj = Py_None;
5384 return _resultobj;
5385 }
5386
5387 static void *SwigwxLogChainTowxLog(void *ptr) {
5388 wxLogChain *src;
5389 wxLog *dest;
5390 src = (wxLogChain *) ptr;
5391 dest = (wxLog *) src;
5392 return (void *) dest;
5393 }
5394
5395 #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0))
5396 static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
5397 PyObject * _resultobj;
5398 wxLogChain * _result;
5399 wxLog * _arg0;
5400 PyObject * _argo0 = 0;
5401 char *_kwnames[] = { "logger", NULL };
5402 char _ptemp[128];
5403
5404 self = self;
5405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0))
5406 return NULL;
5407 if (_argo0) {
5408 if (_argo0 == Py_None) { _arg0 = NULL; }
5409 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
5410 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p.");
5411 return NULL;
5412 }
5413 }
5414 {
5415 wxPy_BEGIN_ALLOW_THREADS;
5416 _result = (wxLogChain *)new_wxLogChain(_arg0);
5417
5418 wxPy_END_ALLOW_THREADS;
5419 } if (_result) {
5420 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p");
5421 _resultobj = Py_BuildValue("s",_ptemp);
5422 } else {
5423 Py_INCREF(Py_None);
5424 _resultobj = Py_None;
5425 }
5426 return _resultobj;
5427 }
5428
5429 #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0))
5430 static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5431 PyObject * _resultobj;
5432 wxLogChain * _arg0;
5433 wxLog * _arg1;
5434 PyObject * _argo0 = 0;
5435 PyObject * _argo1 = 0;
5436 char *_kwnames[] = { "self","logger", NULL };
5437
5438 self = self;
5439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1))
5440 return NULL;
5441 if (_argo0) {
5442 if (_argo0 == Py_None) { _arg0 = NULL; }
5443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p.");
5445 return NULL;
5446 }
5447 }
5448 if (_argo1) {
5449 if (_argo1 == Py_None) { _arg1 = NULL; }
5450 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) {
5451 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p.");
5452 return NULL;
5453 }
5454 }
5455 {
5456 wxPy_BEGIN_ALLOW_THREADS;
5457 wxLogChain_SetLog(_arg0,_arg1);
5458
5459 wxPy_END_ALLOW_THREADS;
5460 } Py_INCREF(Py_None);
5461 _resultobj = Py_None;
5462 return _resultobj;
5463 }
5464
5465 #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0))
5466 static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5467 PyObject * _resultobj;
5468 wxLogChain * _arg0;
5469 bool _arg1;
5470 PyObject * _argo0 = 0;
5471 int tempbool1;
5472 char *_kwnames[] = { "self","bDoPass", NULL };
5473
5474 self = self;
5475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1))
5476 return NULL;
5477 if (_argo0) {
5478 if (_argo0 == Py_None) { _arg0 = NULL; }
5479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p.");
5481 return NULL;
5482 }
5483 }
5484 _arg1 = (bool ) tempbool1;
5485 {
5486 wxPy_BEGIN_ALLOW_THREADS;
5487 wxLogChain_PassMessages(_arg0,_arg1);
5488
5489 wxPy_END_ALLOW_THREADS;
5490 } Py_INCREF(Py_None);
5491 _resultobj = Py_None;
5492 return _resultobj;
5493 }
5494
5495 #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages())
5496 static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5497 PyObject * _resultobj;
5498 bool _result;
5499 wxLogChain * _arg0;
5500 PyObject * _argo0 = 0;
5501 char *_kwnames[] = { "self", NULL };
5502
5503 self = self;
5504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0))
5505 return NULL;
5506 if (_argo0) {
5507 if (_argo0 == Py_None) { _arg0 = NULL; }
5508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p.");
5510 return NULL;
5511 }
5512 }
5513 {
5514 wxPy_BEGIN_ALLOW_THREADS;
5515 _result = (bool )wxLogChain_IsPassingMessages(_arg0);
5516
5517 wxPy_END_ALLOW_THREADS;
5518 } _resultobj = Py_BuildValue("i",_result);
5519 return _resultobj;
5520 }
5521
5522 #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog())
5523 static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5524 PyObject * _resultobj;
5525 wxLog * _result;
5526 wxLogChain * _arg0;
5527 PyObject * _argo0 = 0;
5528 char *_kwnames[] = { "self", NULL };
5529 char _ptemp[128];
5530
5531 self = self;
5532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0))
5533 return NULL;
5534 if (_argo0) {
5535 if (_argo0 == Py_None) { _arg0 = NULL; }
5536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p.");
5538 return NULL;
5539 }
5540 }
5541 {
5542 wxPy_BEGIN_ALLOW_THREADS;
5543 _result = (wxLog *)wxLogChain_GetOldLog(_arg0);
5544
5545 wxPy_END_ALLOW_THREADS;
5546 } if (_result) {
5547 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
5548 _resultobj = Py_BuildValue("s",_ptemp);
5549 } else {
5550 Py_INCREF(Py_None);
5551 _resultobj = Py_None;
5552 }
5553 return _resultobj;
5554 }
5555
5556 static void *SwigwxPyLogTowxLog(void *ptr) {
5557 wxPyLog *src;
5558 wxLog *dest;
5559 src = (wxPyLog *) ptr;
5560 dest = (wxLog *) src;
5561 return (void *) dest;
5562 }
5563
5564 #define new_wxPyLog() (new wxPyLog())
5565 static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5566 PyObject * _resultobj;
5567 wxPyLog * _result;
5568 char *_kwnames[] = { NULL };
5569 char _ptemp[128];
5570
5571 self = self;
5572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames))
5573 return NULL;
5574 {
5575 wxPy_BEGIN_ALLOW_THREADS;
5576 _result = (wxPyLog *)new_wxPyLog();
5577
5578 wxPy_END_ALLOW_THREADS;
5579 } if (_result) {
5580 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p");
5581 _resultobj = Py_BuildValue("s",_ptemp);
5582 } else {
5583 Py_INCREF(Py_None);
5584 _resultobj = Py_None;
5585 }
5586 return _resultobj;
5587 }
5588
5589 #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
5590 static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5591 PyObject * _resultobj;
5592 wxPyLog * _arg0;
5593 PyObject * _arg1;
5594 PyObject * _arg2;
5595 PyObject * _argo0 = 0;
5596 PyObject * _obj1 = 0;
5597 PyObject * _obj2 = 0;
5598 char *_kwnames[] = { "self","self","_class", NULL };
5599
5600 self = self;
5601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
5602 return NULL;
5603 if (_argo0) {
5604 if (_argo0 == Py_None) { _arg0 = NULL; }
5605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) {
5606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p.");
5607 return NULL;
5608 }
5609 }
5610 {
5611 _arg1 = _obj1;
5612 }
5613 {
5614 _arg2 = _obj2;
5615 }
5616 {
5617 wxPy_BEGIN_ALLOW_THREADS;
5618 wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2);
5619
5620 wxPy_END_ALLOW_THREADS;
5621 } Py_INCREF(Py_None);
5622 _resultobj = Py_None;
5623 return _resultobj;
5624 }
5625
5626 static void wxPyLog_Destroy(wxPyLog *self) { delete self; }
5627 static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
5628 PyObject * _resultobj;
5629 wxPyLog * _arg0;
5630 PyObject * _argo0 = 0;
5631 char *_kwnames[] = { "self", NULL };
5632
5633 self = self;
5634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0))
5635 return NULL;
5636 if (_argo0) {
5637 if (_argo0 == Py_None) { _arg0 = NULL; }
5638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) {
5639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p.");
5640 return NULL;
5641 }
5642 }
5643 {
5644 wxPy_BEGIN_ALLOW_THREADS;
5645 wxPyLog_Destroy(_arg0);
5646
5647 wxPy_END_ALLOW_THREADS;
5648 } Py_INCREF(Py_None);
5649 _resultobj = Py_None;
5650 return _resultobj;
5651 }
5652
5653 static void *SwigwxProcessEventTowxEvent(void *ptr) {
5654 wxProcessEvent *src;
5655 wxEvent *dest;
5656 src = (wxProcessEvent *) ptr;
5657 dest = (wxEvent *) src;
5658 return (void *) dest;
5659 }
5660
5661 static void *SwigwxProcessEventTowxObject(void *ptr) {
5662 wxProcessEvent *src;
5663 wxObject *dest;
5664 src = (wxProcessEvent *) ptr;
5665 dest = (wxObject *) src;
5666 return (void *) dest;
5667 }
5668
5669 #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2))
5670 static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
5671 PyObject * _resultobj;
5672 wxProcessEvent * _result;
5673 int _arg0 = (int ) 0;
5674 int _arg1 = (int ) 0;
5675 int _arg2 = (int ) 0;
5676 char *_kwnames[] = { "id","pid","exitcode", NULL };
5677 char _ptemp[128];
5678
5679 self = self;
5680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2))
5681 return NULL;
5682 {
5683 wxPy_BEGIN_ALLOW_THREADS;
5684 _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2);
5685
5686 wxPy_END_ALLOW_THREADS;
5687 } if (_result) {
5688 SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p");
5689 _resultobj = Py_BuildValue("s",_ptemp);
5690 } else {
5691 Py_INCREF(Py_None);
5692 _resultobj = Py_None;
5693 }
5694 return _resultobj;
5695 }
5696
5697 #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid())
5698 static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
5699 PyObject * _resultobj;
5700 int _result;
5701 wxProcessEvent * _arg0;
5702 PyObject * _argo0 = 0;
5703 char *_kwnames[] = { "self", NULL };
5704
5705 self = self;
5706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0))
5707 return NULL;
5708 if (_argo0) {
5709 if (_argo0 == Py_None) { _arg0 = NULL; }
5710 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5711 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p.");
5712 return NULL;
5713 }
5714 }
5715 {
5716 wxPy_BEGIN_ALLOW_THREADS;
5717 _result = (int )wxProcessEvent_GetPid(_arg0);
5718
5719 wxPy_END_ALLOW_THREADS;
5720 } _resultobj = Py_BuildValue("i",_result);
5721 return _resultobj;
5722 }
5723
5724 #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode())
5725 static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5726 PyObject * _resultobj;
5727 int _result;
5728 wxProcessEvent * _arg0;
5729 PyObject * _argo0 = 0;
5730 char *_kwnames[] = { "self", NULL };
5731
5732 self = self;
5733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0))
5734 return NULL;
5735 if (_argo0) {
5736 if (_argo0 == Py_None) { _arg0 = NULL; }
5737 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5738 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p.");
5739 return NULL;
5740 }
5741 }
5742 {
5743 wxPy_BEGIN_ALLOW_THREADS;
5744 _result = (int )wxProcessEvent_GetExitCode(_arg0);
5745
5746 wxPy_END_ALLOW_THREADS;
5747 } _resultobj = Py_BuildValue("i",_result);
5748 return _resultobj;
5749 }
5750
5751 #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval)
5752 static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5753 PyObject * _resultobj;
5754 int _result;
5755 wxProcessEvent * _arg0;
5756 int _arg1;
5757 PyObject * _argo0 = 0;
5758 char *_kwnames[] = { "self","m_pid", NULL };
5759
5760 self = self;
5761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1))
5762 return NULL;
5763 if (_argo0) {
5764 if (_argo0 == Py_None) { _arg0 = NULL; }
5765 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5766 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p.");
5767 return NULL;
5768 }
5769 }
5770 {
5771 wxPy_BEGIN_ALLOW_THREADS;
5772 _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1);
5773
5774 wxPy_END_ALLOW_THREADS;
5775 } _resultobj = Py_BuildValue("i",_result);
5776 return _resultobj;
5777 }
5778
5779 #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid)
5780 static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5781 PyObject * _resultobj;
5782 int _result;
5783 wxProcessEvent * _arg0;
5784 PyObject * _argo0 = 0;
5785 char *_kwnames[] = { "self", NULL };
5786
5787 self = self;
5788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0))
5789 return NULL;
5790 if (_argo0) {
5791 if (_argo0 == Py_None) { _arg0 = NULL; }
5792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p.");
5794 return NULL;
5795 }
5796 }
5797 {
5798 wxPy_BEGIN_ALLOW_THREADS;
5799 _result = (int )wxProcessEvent_m_pid_get(_arg0);
5800
5801 wxPy_END_ALLOW_THREADS;
5802 } _resultobj = Py_BuildValue("i",_result);
5803 return _resultobj;
5804 }
5805
5806 #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval)
5807 static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5808 PyObject * _resultobj;
5809 int _result;
5810 wxProcessEvent * _arg0;
5811 int _arg1;
5812 PyObject * _argo0 = 0;
5813 char *_kwnames[] = { "self","m_exitcode", NULL };
5814
5815 self = self;
5816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1))
5817 return NULL;
5818 if (_argo0) {
5819 if (_argo0 == Py_None) { _arg0 = NULL; }
5820 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5821 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p.");
5822 return NULL;
5823 }
5824 }
5825 {
5826 wxPy_BEGIN_ALLOW_THREADS;
5827 _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1);
5828
5829 wxPy_END_ALLOW_THREADS;
5830 } _resultobj = Py_BuildValue("i",_result);
5831 return _resultobj;
5832 }
5833
5834 #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode)
5835 static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5836 PyObject * _resultobj;
5837 int _result;
5838 wxProcessEvent * _arg0;
5839 PyObject * _argo0 = 0;
5840 char *_kwnames[] = { "self", NULL };
5841
5842 self = self;
5843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0))
5844 return NULL;
5845 if (_argo0) {
5846 if (_argo0 == Py_None) { _arg0 = NULL; }
5847 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5848 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p.");
5849 return NULL;
5850 }
5851 }
5852 {
5853 wxPy_BEGIN_ALLOW_THREADS;
5854 _result = (int )wxProcessEvent_m_exitcode_get(_arg0);
5855
5856 wxPy_END_ALLOW_THREADS;
5857 } _resultobj = Py_BuildValue("i",_result);
5858 return _resultobj;
5859 }
5860
5861 static void *SwigwxPyProcessTowxEvtHandler(void *ptr) {
5862 wxPyProcess *src;
5863 wxEvtHandler *dest;
5864 src = (wxPyProcess *) ptr;
5865 dest = (wxEvtHandler *) src;
5866 return (void *) dest;
5867 }
5868
5869 static void *SwigwxPyProcessTowxObject(void *ptr) {
5870 wxPyProcess *src;
5871 wxObject *dest;
5872 src = (wxPyProcess *) ptr;
5873 dest = (wxObject *) src;
5874 return (void *) dest;
5875 }
5876
5877 #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1))
5878 static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) {
5879 PyObject * _resultobj;
5880 wxPyProcess * _result;
5881 wxEvtHandler * _arg0 = (wxEvtHandler *) NULL;
5882 int _arg1 = (int ) -1;
5883 PyObject * _argo0 = 0;
5884 char *_kwnames[] = { "parent","id", NULL };
5885 char _ptemp[128];
5886
5887 self = self;
5888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1))
5889 return NULL;
5890 if (_argo0) {
5891 if (_argo0 == Py_None) { _arg0 = NULL; }
5892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
5893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p.");
5894 return NULL;
5895 }
5896 }
5897 {
5898 wxPy_BEGIN_ALLOW_THREADS;
5899 _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1);
5900
5901 wxPy_END_ALLOW_THREADS;
5902 } if (_result) {
5903 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p");
5904 _resultobj = Py_BuildValue("s",_ptemp);
5905 } else {
5906 Py_INCREF(Py_None);
5907 _resultobj = Py_None;
5908 }
5909 return _resultobj;
5910 }
5911
5912 static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; }
5913 static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
5914 PyObject * _resultobj;
5915 wxPyProcess * _arg0;
5916 PyObject * _argo0 = 0;
5917 char *_kwnames[] = { "self", NULL };
5918
5919 self = self;
5920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0))
5921 return NULL;
5922 if (_argo0) {
5923 if (_argo0 == Py_None) { _arg0 = NULL; }
5924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
5925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p.");
5926 return NULL;
5927 }
5928 }
5929 {
5930 wxPy_BEGIN_ALLOW_THREADS;
5931 wxPyProcess_Destroy(_arg0);
5932
5933 wxPy_END_ALLOW_THREADS;
5934 } Py_INCREF(Py_None);
5935 _resultobj = Py_None;
5936 return _resultobj;
5937 }
5938
5939 #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
5940 static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5941 PyObject * _resultobj;
5942 wxPyProcess * _arg0;
5943 PyObject * _arg1;
5944 PyObject * _arg2;
5945 PyObject * _argo0 = 0;
5946 PyObject * _obj1 = 0;
5947 PyObject * _obj2 = 0;
5948 char *_kwnames[] = { "self","self","_class", NULL };
5949
5950 self = self;
5951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
5952 return NULL;
5953 if (_argo0) {
5954 if (_argo0 == Py_None) { _arg0 = NULL; }
5955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
5956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p.");
5957 return NULL;
5958 }
5959 }
5960 {
5961 _arg1 = _obj1;
5962 }
5963 {
5964 _arg2 = _obj2;
5965 }
5966 {
5967 wxPy_BEGIN_ALLOW_THREADS;
5968 wxProcess__setCallbackInfo(_arg0,_arg1,_arg2);
5969
5970 wxPy_END_ALLOW_THREADS;
5971 } Py_INCREF(Py_None);
5972 _resultobj = Py_None;
5973 return _resultobj;
5974 }
5975
5976 #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1))
5977 static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
5978 PyObject * _resultobj;
5979 wxPyProcess * _arg0;
5980 int _arg1;
5981 int _arg2;
5982 PyObject * _argo0 = 0;
5983 char *_kwnames[] = { "self","pid","status", NULL };
5984
5985 self = self;
5986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2))
5987 return NULL;
5988 if (_argo0) {
5989 if (_argo0 == Py_None) { _arg0 = NULL; }
5990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
5991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p.");
5992 return NULL;
5993 }
5994 }
5995 {
5996 wxPy_BEGIN_ALLOW_THREADS;
5997 wxProcess_base_OnTerminate(_arg0,_arg1,_arg2);
5998
5999 wxPy_END_ALLOW_THREADS;
6000 } Py_INCREF(Py_None);
6001 _resultobj = Py_None;
6002 return _resultobj;
6003 }
6004
6005 #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect())
6006 static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
6007 PyObject * _resultobj;
6008 wxPyProcess * _arg0;
6009 PyObject * _argo0 = 0;
6010 char *_kwnames[] = { "self", NULL };
6011
6012 self = self;
6013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0))
6014 return NULL;
6015 if (_argo0) {
6016 if (_argo0 == Py_None) { _arg0 = NULL; }
6017 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6018 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p.");
6019 return NULL;
6020 }
6021 }
6022 {
6023 wxPy_BEGIN_ALLOW_THREADS;
6024 wxProcess_Redirect(_arg0);
6025
6026 wxPy_END_ALLOW_THREADS;
6027 } Py_INCREF(Py_None);
6028 _resultobj = Py_None;
6029 return _resultobj;
6030 }
6031
6032 #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected())
6033 static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
6034 PyObject * _resultobj;
6035 bool _result;
6036 wxPyProcess * _arg0;
6037 PyObject * _argo0 = 0;
6038 char *_kwnames[] = { "self", NULL };
6039
6040 self = self;
6041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0))
6042 return NULL;
6043 if (_argo0) {
6044 if (_argo0 == Py_None) { _arg0 = NULL; }
6045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p.");
6047 return NULL;
6048 }
6049 }
6050 {
6051 wxPy_BEGIN_ALLOW_THREADS;
6052 _result = (bool )wxProcess_IsRedirected(_arg0);
6053
6054 wxPy_END_ALLOW_THREADS;
6055 } _resultobj = Py_BuildValue("i",_result);
6056 return _resultobj;
6057 }
6058
6059 #define wxProcess_Detach(_swigobj) (_swigobj->Detach())
6060 static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
6061 PyObject * _resultobj;
6062 wxPyProcess * _arg0;
6063 PyObject * _argo0 = 0;
6064 char *_kwnames[] = { "self", NULL };
6065
6066 self = self;
6067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0))
6068 return NULL;
6069 if (_argo0) {
6070 if (_argo0 == Py_None) { _arg0 = NULL; }
6071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p.");
6073 return NULL;
6074 }
6075 }
6076 {
6077 wxPy_BEGIN_ALLOW_THREADS;
6078 wxProcess_Detach(_arg0);
6079
6080 wxPy_END_ALLOW_THREADS;
6081 } Py_INCREF(Py_None);
6082 _resultobj = Py_None;
6083 return _resultobj;
6084 }
6085
6086 #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream())
6087 static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6088 PyObject * _resultobj;
6089 wxInputStream * _result;
6090 wxPyProcess * _arg0;
6091 PyObject * _argo0 = 0;
6092 char *_kwnames[] = { "self", NULL };
6093
6094 self = self;
6095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0))
6096 return NULL;
6097 if (_argo0) {
6098 if (_argo0 == Py_None) { _arg0 = NULL; }
6099 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6100 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p.");
6101 return NULL;
6102 }
6103 }
6104 {
6105 wxPy_BEGIN_ALLOW_THREADS;
6106 _result = (wxInputStream *)wxProcess_GetInputStream(_arg0);
6107
6108 wxPy_END_ALLOW_THREADS;
6109 }{
6110 wxPyInputStream * _ptr = NULL;
6111
6112 if (_result) {
6113 _ptr = new wxPyInputStream(_result);
6114 }
6115 _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE);
6116 }
6117 return _resultobj;
6118 }
6119
6120 #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream())
6121 static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6122 PyObject * _resultobj;
6123 wxInputStream * _result;
6124 wxPyProcess * _arg0;
6125 PyObject * _argo0 = 0;
6126 char *_kwnames[] = { "self", NULL };
6127
6128 self = self;
6129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0))
6130 return NULL;
6131 if (_argo0) {
6132 if (_argo0 == Py_None) { _arg0 = NULL; }
6133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p.");
6135 return NULL;
6136 }
6137 }
6138 {
6139 wxPy_BEGIN_ALLOW_THREADS;
6140 _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0);
6141
6142 wxPy_END_ALLOW_THREADS;
6143 }{
6144 wxPyInputStream * _ptr = NULL;
6145
6146 if (_result) {
6147 _ptr = new wxPyInputStream(_result);
6148 }
6149 _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE);
6150 }
6151 return _resultobj;
6152 }
6153
6154 #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream())
6155 static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6156 PyObject * _resultobj;
6157 wxOutputStream * _result;
6158 wxPyProcess * _arg0;
6159 PyObject * _argo0 = 0;
6160 char *_kwnames[] = { "self", NULL };
6161 char _ptemp[128];
6162
6163 self = self;
6164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0))
6165 return NULL;
6166 if (_argo0) {
6167 if (_argo0 == Py_None) { _arg0 = NULL; }
6168 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6169 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p.");
6170 return NULL;
6171 }
6172 }
6173 {
6174 wxPy_BEGIN_ALLOW_THREADS;
6175 _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0);
6176
6177 wxPy_END_ALLOW_THREADS;
6178 } if (_result) {
6179 SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p");
6180 _resultobj = Py_BuildValue("s",_ptemp);
6181 } else {
6182 Py_INCREF(Py_None);
6183 _resultobj = Py_None;
6184 }
6185 return _resultobj;
6186 }
6187
6188 #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput())
6189 static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
6190 PyObject * _resultobj;
6191 wxPyProcess * _arg0;
6192 PyObject * _argo0 = 0;
6193 char *_kwnames[] = { "self", NULL };
6194
6195 self = self;
6196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0))
6197 return NULL;
6198 if (_argo0) {
6199 if (_argo0 == Py_None) { _arg0 = NULL; }
6200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p.");
6202 return NULL;
6203 }
6204 }
6205 {
6206 wxPy_BEGIN_ALLOW_THREADS;
6207 wxProcess_CloseOutput(_arg0);
6208
6209 wxPy_END_ALLOW_THREADS;
6210 } Py_INCREF(Py_None);
6211 _resultobj = Py_None;
6212 return _resultobj;
6213 }
6214
6215 static void *SwigwxJoystickTowxObject(void *ptr) {
6216 wxJoystick *src;
6217 wxObject *dest;
6218 src = (wxJoystick *) ptr;
6219 dest = (wxObject *) src;
6220 return (void *) dest;
6221 }
6222
6223 #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0))
6224 static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
6225 PyObject * _resultobj;
6226 wxJoystick * _result;
6227 int _arg0 = (int ) wxJOYSTICK1;
6228 char *_kwnames[] = { "joystick", NULL };
6229 char _ptemp[128];
6230
6231 self = self;
6232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0))
6233 return NULL;
6234 {
6235 wxPy_BEGIN_ALLOW_THREADS;
6236 _result = (wxJoystick *)new_wxJoystick(_arg0);
6237
6238 wxPy_END_ALLOW_THREADS;
6239 } if (_result) {
6240 SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p");
6241 _resultobj = Py_BuildValue("s",_ptemp);
6242 } else {
6243 Py_INCREF(Py_None);
6244 _resultobj = Py_None;
6245 }
6246 return _resultobj;
6247 }
6248
6249 #define delete_wxJoystick(_swigobj) (delete _swigobj)
6250 static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
6251 PyObject * _resultobj;
6252 wxJoystick * _arg0;
6253 PyObject * _argo0 = 0;
6254 char *_kwnames[] = { "self", NULL };
6255
6256 self = self;
6257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0))
6258 return NULL;
6259 if (_argo0) {
6260 if (_argo0 == Py_None) { _arg0 = NULL; }
6261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p.");
6263 return NULL;
6264 }
6265 }
6266 {
6267 wxPy_BEGIN_ALLOW_THREADS;
6268 delete_wxJoystick(_arg0);
6269
6270 wxPy_END_ALLOW_THREADS;
6271 } Py_INCREF(Py_None);
6272 _resultobj = Py_None;
6273 return _resultobj;
6274 }
6275
6276 #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition())
6277 static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6278 PyObject * _resultobj;
6279 wxPoint * _result;
6280 wxJoystick * _arg0;
6281 PyObject * _argo0 = 0;
6282 char *_kwnames[] = { "self", NULL };
6283 char _ptemp[128];
6284
6285 self = self;
6286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0))
6287 return NULL;
6288 if (_argo0) {
6289 if (_argo0 == Py_None) { _arg0 = NULL; }
6290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p.");
6292 return NULL;
6293 }
6294 }
6295 {
6296 wxPy_BEGIN_ALLOW_THREADS;
6297 _result = new wxPoint (wxJoystick_GetPosition(_arg0));
6298
6299 wxPy_END_ALLOW_THREADS;
6300 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
6301 _resultobj = Py_BuildValue("s",_ptemp);
6302 return _resultobj;
6303 }
6304
6305 #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition())
6306 static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6307 PyObject * _resultobj;
6308 int _result;
6309 wxJoystick * _arg0;
6310 PyObject * _argo0 = 0;
6311 char *_kwnames[] = { "self", NULL };
6312
6313 self = self;
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0))
6315 return NULL;
6316 if (_argo0) {
6317 if (_argo0 == Py_None) { _arg0 = NULL; }
6318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p.");
6320 return NULL;
6321 }
6322 }
6323 {
6324 wxPy_BEGIN_ALLOW_THREADS;
6325 _result = (int )wxJoystick_GetZPosition(_arg0);
6326
6327 wxPy_END_ALLOW_THREADS;
6328 } _resultobj = Py_BuildValue("i",_result);
6329 return _resultobj;
6330 }
6331
6332 #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState())
6333 static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
6334 PyObject * _resultobj;
6335 int _result;
6336 wxJoystick * _arg0;
6337 PyObject * _argo0 = 0;
6338 char *_kwnames[] = { "self", NULL };
6339
6340 self = self;
6341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0))
6342 return NULL;
6343 if (_argo0) {
6344 if (_argo0 == Py_None) { _arg0 = NULL; }
6345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p.");
6347 return NULL;
6348 }
6349 }
6350 {
6351 wxPy_BEGIN_ALLOW_THREADS;
6352 _result = (int )wxJoystick_GetButtonState(_arg0);
6353
6354 wxPy_END_ALLOW_THREADS;
6355 } _resultobj = Py_BuildValue("i",_result);
6356 return _resultobj;
6357 }
6358
6359 #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition())
6360 static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6361 PyObject * _resultobj;
6362 int _result;
6363 wxJoystick * _arg0;
6364 PyObject * _argo0 = 0;
6365 char *_kwnames[] = { "self", NULL };
6366
6367 self = self;
6368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0))
6369 return NULL;
6370 if (_argo0) {
6371 if (_argo0 == Py_None) { _arg0 = NULL; }
6372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p.");
6374 return NULL;
6375 }
6376 }
6377 {
6378 wxPy_BEGIN_ALLOW_THREADS;
6379 _result = (int )wxJoystick_GetPOVPosition(_arg0);
6380
6381 wxPy_END_ALLOW_THREADS;
6382 } _resultobj = Py_BuildValue("i",_result);
6383 return _resultobj;
6384 }
6385
6386 #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition())
6387 static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6388 PyObject * _resultobj;
6389 int _result;
6390 wxJoystick * _arg0;
6391 PyObject * _argo0 = 0;
6392 char *_kwnames[] = { "self", NULL };
6393
6394 self = self;
6395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0))
6396 return NULL;
6397 if (_argo0) {
6398 if (_argo0 == Py_None) { _arg0 = NULL; }
6399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p.");
6401 return NULL;
6402 }
6403 }
6404 {
6405 wxPy_BEGIN_ALLOW_THREADS;
6406 _result = (int )wxJoystick_GetPOVCTSPosition(_arg0);
6407
6408 wxPy_END_ALLOW_THREADS;
6409 } _resultobj = Py_BuildValue("i",_result);
6410 return _resultobj;
6411 }
6412
6413 #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition())
6414 static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6415 PyObject * _resultobj;
6416 int _result;
6417 wxJoystick * _arg0;
6418 PyObject * _argo0 = 0;
6419 char *_kwnames[] = { "self", NULL };
6420
6421 self = self;
6422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0))
6423 return NULL;
6424 if (_argo0) {
6425 if (_argo0 == Py_None) { _arg0 = NULL; }
6426 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6427 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p.");
6428 return NULL;
6429 }
6430 }
6431 {
6432 wxPy_BEGIN_ALLOW_THREADS;
6433 _result = (int )wxJoystick_GetRudderPosition(_arg0);
6434
6435 wxPy_END_ALLOW_THREADS;
6436 } _resultobj = Py_BuildValue("i",_result);
6437 return _resultobj;
6438 }
6439
6440 #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition())
6441 static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6442 PyObject * _resultobj;
6443 int _result;
6444 wxJoystick * _arg0;
6445 PyObject * _argo0 = 0;
6446 char *_kwnames[] = { "self", NULL };
6447
6448 self = self;
6449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0))
6450 return NULL;
6451 if (_argo0) {
6452 if (_argo0 == Py_None) { _arg0 = NULL; }
6453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p.");
6455 return NULL;
6456 }
6457 }
6458 {
6459 wxPy_BEGIN_ALLOW_THREADS;
6460 _result = (int )wxJoystick_GetUPosition(_arg0);
6461
6462 wxPy_END_ALLOW_THREADS;
6463 } _resultobj = Py_BuildValue("i",_result);
6464 return _resultobj;
6465 }
6466
6467 #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition())
6468 static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6469 PyObject * _resultobj;
6470 int _result;
6471 wxJoystick * _arg0;
6472 PyObject * _argo0 = 0;
6473 char *_kwnames[] = { "self", NULL };
6474
6475 self = self;
6476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0))
6477 return NULL;
6478 if (_argo0) {
6479 if (_argo0 == Py_None) { _arg0 = NULL; }
6480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p.");
6482 return NULL;
6483 }
6484 }
6485 {
6486 wxPy_BEGIN_ALLOW_THREADS;
6487 _result = (int )wxJoystick_GetVPosition(_arg0);
6488
6489 wxPy_END_ALLOW_THREADS;
6490 } _resultobj = Py_BuildValue("i",_result);
6491 return _resultobj;
6492 }
6493
6494 #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold())
6495 static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
6496 PyObject * _resultobj;
6497 int _result;
6498 wxJoystick * _arg0;
6499 PyObject * _argo0 = 0;
6500 char *_kwnames[] = { "self", NULL };
6501
6502 self = self;
6503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0))
6504 return NULL;
6505 if (_argo0) {
6506 if (_argo0 == Py_None) { _arg0 = NULL; }
6507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p.");
6509 return NULL;
6510 }
6511 }
6512 {
6513 wxPy_BEGIN_ALLOW_THREADS;
6514 _result = (int )wxJoystick_GetMovementThreshold(_arg0);
6515
6516 wxPy_END_ALLOW_THREADS;
6517 } _resultobj = Py_BuildValue("i",_result);
6518 return _resultobj;
6519 }
6520
6521 #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0))
6522 static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
6523 PyObject * _resultobj;
6524 wxJoystick * _arg0;
6525 int _arg1;
6526 PyObject * _argo0 = 0;
6527 char *_kwnames[] = { "self","threshold", NULL };
6528
6529 self = self;
6530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1))
6531 return NULL;
6532 if (_argo0) {
6533 if (_argo0 == Py_None) { _arg0 = NULL; }
6534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p.");
6536 return NULL;
6537 }
6538 }
6539 {
6540 wxPy_BEGIN_ALLOW_THREADS;
6541 wxJoystick_SetMovementThreshold(_arg0,_arg1);
6542
6543 wxPy_END_ALLOW_THREADS;
6544 } Py_INCREF(Py_None);
6545 _resultobj = Py_None;
6546 return _resultobj;
6547 }
6548
6549 #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk())
6550 static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
6551 PyObject * _resultobj;
6552 bool _result;
6553 wxJoystick * _arg0;
6554 PyObject * _argo0 = 0;
6555 char *_kwnames[] = { "self", NULL };
6556
6557 self = self;
6558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0))
6559 return NULL;
6560 if (_argo0) {
6561 if (_argo0 == Py_None) { _arg0 = NULL; }
6562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p.");
6564 return NULL;
6565 }
6566 }
6567 {
6568 wxPy_BEGIN_ALLOW_THREADS;
6569 _result = (bool )wxJoystick_IsOk(_arg0);
6570
6571 wxPy_END_ALLOW_THREADS;
6572 } _resultobj = Py_BuildValue("i",_result);
6573 return _resultobj;
6574 }
6575
6576 #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks())
6577 static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
6578 PyObject * _resultobj;
6579 int _result;
6580 wxJoystick * _arg0;
6581 PyObject * _argo0 = 0;
6582 char *_kwnames[] = { "self", NULL };
6583
6584 self = self;
6585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0))
6586 return NULL;
6587 if (_argo0) {
6588 if (_argo0 == Py_None) { _arg0 = NULL; }
6589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p.");
6591 return NULL;
6592 }
6593 }
6594 {
6595 wxPy_BEGIN_ALLOW_THREADS;
6596 _result = (int )wxJoystick_GetNumberJoysticks(_arg0);
6597
6598 wxPy_END_ALLOW_THREADS;
6599 } _resultobj = Py_BuildValue("i",_result);
6600 return _resultobj;
6601 }
6602
6603 #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId())
6604 static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
6605 PyObject * _resultobj;
6606 int _result;
6607 wxJoystick * _arg0;
6608 PyObject * _argo0 = 0;
6609 char *_kwnames[] = { "self", NULL };
6610
6611 self = self;
6612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0))
6613 return NULL;
6614 if (_argo0) {
6615 if (_argo0 == Py_None) { _arg0 = NULL; }
6616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p.");
6618 return NULL;
6619 }
6620 }
6621 {
6622 wxPy_BEGIN_ALLOW_THREADS;
6623 _result = (int )wxJoystick_GetManufacturerId(_arg0);
6624
6625 wxPy_END_ALLOW_THREADS;
6626 } _resultobj = Py_BuildValue("i",_result);
6627 return _resultobj;
6628 }
6629
6630 #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId())
6631 static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
6632 PyObject * _resultobj;
6633 int _result;
6634 wxJoystick * _arg0;
6635 PyObject * _argo0 = 0;
6636 char *_kwnames[] = { "self", NULL };
6637
6638 self = self;
6639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0))
6640 return NULL;
6641 if (_argo0) {
6642 if (_argo0 == Py_None) { _arg0 = NULL; }
6643 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6644 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p.");
6645 return NULL;
6646 }
6647 }
6648 {
6649 wxPy_BEGIN_ALLOW_THREADS;
6650 _result = (int )wxJoystick_GetProductId(_arg0);
6651
6652 wxPy_END_ALLOW_THREADS;
6653 } _resultobj = Py_BuildValue("i",_result);
6654 return _resultobj;
6655 }
6656
6657 #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName())
6658 static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
6659 PyObject * _resultobj;
6660 wxString * _result;
6661 wxJoystick * _arg0;
6662 PyObject * _argo0 = 0;
6663 char *_kwnames[] = { "self", NULL };
6664
6665 self = self;
6666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0))
6667 return NULL;
6668 if (_argo0) {
6669 if (_argo0 == Py_None) { _arg0 = NULL; }
6670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p.");
6672 return NULL;
6673 }
6674 }
6675 {
6676 wxPy_BEGIN_ALLOW_THREADS;
6677 _result = new wxString (wxJoystick_GetProductName(_arg0));
6678
6679 wxPy_END_ALLOW_THREADS;
6680 }{
6681 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6682 }
6683 {
6684 delete _result;
6685 }
6686 return _resultobj;
6687 }
6688
6689 #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin())
6690 static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
6691 PyObject * _resultobj;
6692 int _result;
6693 wxJoystick * _arg0;
6694 PyObject * _argo0 = 0;
6695 char *_kwnames[] = { "self", NULL };
6696
6697 self = self;
6698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0))
6699 return NULL;
6700 if (_argo0) {
6701 if (_argo0 == Py_None) { _arg0 = NULL; }
6702 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6703 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p.");
6704 return NULL;
6705 }
6706 }
6707 {
6708 wxPy_BEGIN_ALLOW_THREADS;
6709 _result = (int )wxJoystick_GetXMin(_arg0);
6710
6711 wxPy_END_ALLOW_THREADS;
6712 } _resultobj = Py_BuildValue("i",_result);
6713 return _resultobj;
6714 }
6715
6716 #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin())
6717 static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
6718 PyObject * _resultobj;
6719 int _result;
6720 wxJoystick * _arg0;
6721 PyObject * _argo0 = 0;
6722 char *_kwnames[] = { "self", NULL };
6723
6724 self = self;
6725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0))
6726 return NULL;
6727 if (_argo0) {
6728 if (_argo0 == Py_None) { _arg0 = NULL; }
6729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p.");
6731 return NULL;
6732 }
6733 }
6734 {
6735 wxPy_BEGIN_ALLOW_THREADS;
6736 _result = (int )wxJoystick_GetYMin(_arg0);
6737
6738 wxPy_END_ALLOW_THREADS;
6739 } _resultobj = Py_BuildValue("i",_result);
6740 return _resultobj;
6741 }
6742
6743 #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin())
6744 static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
6745 PyObject * _resultobj;
6746 int _result;
6747 wxJoystick * _arg0;
6748 PyObject * _argo0 = 0;
6749 char *_kwnames[] = { "self", NULL };
6750
6751 self = self;
6752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0))
6753 return NULL;
6754 if (_argo0) {
6755 if (_argo0 == Py_None) { _arg0 = NULL; }
6756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p.");
6758 return NULL;
6759 }
6760 }
6761 {
6762 wxPy_BEGIN_ALLOW_THREADS;
6763 _result = (int )wxJoystick_GetZMin(_arg0);
6764
6765 wxPy_END_ALLOW_THREADS;
6766 } _resultobj = Py_BuildValue("i",_result);
6767 return _resultobj;
6768 }
6769
6770 #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax())
6771 static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
6772 PyObject * _resultobj;
6773 int _result;
6774 wxJoystick * _arg0;
6775 PyObject * _argo0 = 0;
6776 char *_kwnames[] = { "self", NULL };
6777
6778 self = self;
6779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0))
6780 return NULL;
6781 if (_argo0) {
6782 if (_argo0 == Py_None) { _arg0 = NULL; }
6783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p.");
6785 return NULL;
6786 }
6787 }
6788 {
6789 wxPy_BEGIN_ALLOW_THREADS;
6790 _result = (int )wxJoystick_GetXMax(_arg0);
6791
6792 wxPy_END_ALLOW_THREADS;
6793 } _resultobj = Py_BuildValue("i",_result);
6794 return _resultobj;
6795 }
6796
6797 #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax())
6798 static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
6799 PyObject * _resultobj;
6800 int _result;
6801 wxJoystick * _arg0;
6802 PyObject * _argo0 = 0;
6803 char *_kwnames[] = { "self", NULL };
6804
6805 self = self;
6806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0))
6807 return NULL;
6808 if (_argo0) {
6809 if (_argo0 == Py_None) { _arg0 = NULL; }
6810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p.");
6812 return NULL;
6813 }
6814 }
6815 {
6816 wxPy_BEGIN_ALLOW_THREADS;
6817 _result = (int )wxJoystick_GetYMax(_arg0);
6818
6819 wxPy_END_ALLOW_THREADS;
6820 } _resultobj = Py_BuildValue("i",_result);
6821 return _resultobj;
6822 }
6823
6824 #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax())
6825 static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
6826 PyObject * _resultobj;
6827 int _result;
6828 wxJoystick * _arg0;
6829 PyObject * _argo0 = 0;
6830 char *_kwnames[] = { "self", NULL };
6831
6832 self = self;
6833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0))
6834 return NULL;
6835 if (_argo0) {
6836 if (_argo0 == Py_None) { _arg0 = NULL; }
6837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p.");
6839 return NULL;
6840 }
6841 }
6842 {
6843 wxPy_BEGIN_ALLOW_THREADS;
6844 _result = (int )wxJoystick_GetZMax(_arg0);
6845
6846 wxPy_END_ALLOW_THREADS;
6847 } _resultobj = Py_BuildValue("i",_result);
6848 return _resultobj;
6849 }
6850
6851 #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons())
6852 static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
6853 PyObject * _resultobj;
6854 int _result;
6855 wxJoystick * _arg0;
6856 PyObject * _argo0 = 0;
6857 char *_kwnames[] = { "self", NULL };
6858
6859 self = self;
6860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0))
6861 return NULL;
6862 if (_argo0) {
6863 if (_argo0 == Py_None) { _arg0 = NULL; }
6864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p.");
6866 return NULL;
6867 }
6868 }
6869 {
6870 wxPy_BEGIN_ALLOW_THREADS;
6871 _result = (int )wxJoystick_GetNumberButtons(_arg0);
6872
6873 wxPy_END_ALLOW_THREADS;
6874 } _resultobj = Py_BuildValue("i",_result);
6875 return _resultobj;
6876 }
6877
6878 #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes())
6879 static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
6880 PyObject * _resultobj;
6881 int _result;
6882 wxJoystick * _arg0;
6883 PyObject * _argo0 = 0;
6884 char *_kwnames[] = { "self", NULL };
6885
6886 self = self;
6887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0))
6888 return NULL;
6889 if (_argo0) {
6890 if (_argo0 == Py_None) { _arg0 = NULL; }
6891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p.");
6893 return NULL;
6894 }
6895 }
6896 {
6897 wxPy_BEGIN_ALLOW_THREADS;
6898 _result = (int )wxJoystick_GetNumberAxes(_arg0);
6899
6900 wxPy_END_ALLOW_THREADS;
6901 } _resultobj = Py_BuildValue("i",_result);
6902 return _resultobj;
6903 }
6904
6905 #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons())
6906 static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
6907 PyObject * _resultobj;
6908 int _result;
6909 wxJoystick * _arg0;
6910 PyObject * _argo0 = 0;
6911 char *_kwnames[] = { "self", NULL };
6912
6913 self = self;
6914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0))
6915 return NULL;
6916 if (_argo0) {
6917 if (_argo0 == Py_None) { _arg0 = NULL; }
6918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p.");
6920 return NULL;
6921 }
6922 }
6923 {
6924 wxPy_BEGIN_ALLOW_THREADS;
6925 _result = (int )wxJoystick_GetMaxButtons(_arg0);
6926
6927 wxPy_END_ALLOW_THREADS;
6928 } _resultobj = Py_BuildValue("i",_result);
6929 return _resultobj;
6930 }
6931
6932 #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes())
6933 static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
6934 PyObject * _resultobj;
6935 int _result;
6936 wxJoystick * _arg0;
6937 PyObject * _argo0 = 0;
6938 char *_kwnames[] = { "self", NULL };
6939
6940 self = self;
6941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0))
6942 return NULL;
6943 if (_argo0) {
6944 if (_argo0 == Py_None) { _arg0 = NULL; }
6945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p.");
6947 return NULL;
6948 }
6949 }
6950 {
6951 wxPy_BEGIN_ALLOW_THREADS;
6952 _result = (int )wxJoystick_GetMaxAxes(_arg0);
6953
6954 wxPy_END_ALLOW_THREADS;
6955 } _resultobj = Py_BuildValue("i",_result);
6956 return _resultobj;
6957 }
6958
6959 #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin())
6960 static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
6961 PyObject * _resultobj;
6962 int _result;
6963 wxJoystick * _arg0;
6964 PyObject * _argo0 = 0;
6965 char *_kwnames[] = { "self", NULL };
6966
6967 self = self;
6968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0))
6969 return NULL;
6970 if (_argo0) {
6971 if (_argo0 == Py_None) { _arg0 = NULL; }
6972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p.");
6974 return NULL;
6975 }
6976 }
6977 {
6978 wxPy_BEGIN_ALLOW_THREADS;
6979 _result = (int )wxJoystick_GetPollingMin(_arg0);
6980
6981 wxPy_END_ALLOW_THREADS;
6982 } _resultobj = Py_BuildValue("i",_result);
6983 return _resultobj;
6984 }
6985
6986 #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax())
6987 static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
6988 PyObject * _resultobj;
6989 int _result;
6990 wxJoystick * _arg0;
6991 PyObject * _argo0 = 0;
6992 char *_kwnames[] = { "self", NULL };
6993
6994 self = self;
6995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0))
6996 return NULL;
6997 if (_argo0) {
6998 if (_argo0 == Py_None) { _arg0 = NULL; }
6999 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7000 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p.");
7001 return NULL;
7002 }
7003 }
7004 {
7005 wxPy_BEGIN_ALLOW_THREADS;
7006 _result = (int )wxJoystick_GetPollingMax(_arg0);
7007
7008 wxPy_END_ALLOW_THREADS;
7009 } _resultobj = Py_BuildValue("i",_result);
7010 return _resultobj;
7011 }
7012
7013 #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin())
7014 static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
7015 PyObject * _resultobj;
7016 int _result;
7017 wxJoystick * _arg0;
7018 PyObject * _argo0 = 0;
7019 char *_kwnames[] = { "self", NULL };
7020
7021 self = self;
7022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0))
7023 return NULL;
7024 if (_argo0) {
7025 if (_argo0 == Py_None) { _arg0 = NULL; }
7026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p.");
7028 return NULL;
7029 }
7030 }
7031 {
7032 wxPy_BEGIN_ALLOW_THREADS;
7033 _result = (int )wxJoystick_GetRudderMin(_arg0);
7034
7035 wxPy_END_ALLOW_THREADS;
7036 } _resultobj = Py_BuildValue("i",_result);
7037 return _resultobj;
7038 }
7039
7040 #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax())
7041 static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7042 PyObject * _resultobj;
7043 int _result;
7044 wxJoystick * _arg0;
7045 PyObject * _argo0 = 0;
7046 char *_kwnames[] = { "self", NULL };
7047
7048 self = self;
7049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0))
7050 return NULL;
7051 if (_argo0) {
7052 if (_argo0 == Py_None) { _arg0 = NULL; }
7053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p.");
7055 return NULL;
7056 }
7057 }
7058 {
7059 wxPy_BEGIN_ALLOW_THREADS;
7060 _result = (int )wxJoystick_GetRudderMax(_arg0);
7061
7062 wxPy_END_ALLOW_THREADS;
7063 } _resultobj = Py_BuildValue("i",_result);
7064 return _resultobj;
7065 }
7066
7067 #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin())
7068 static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
7069 PyObject * _resultobj;
7070 int _result;
7071 wxJoystick * _arg0;
7072 PyObject * _argo0 = 0;
7073 char *_kwnames[] = { "self", NULL };
7074
7075 self = self;
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0))
7077 return NULL;
7078 if (_argo0) {
7079 if (_argo0 == Py_None) { _arg0 = NULL; }
7080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p.");
7082 return NULL;
7083 }
7084 }
7085 {
7086 wxPy_BEGIN_ALLOW_THREADS;
7087 _result = (int )wxJoystick_GetUMin(_arg0);
7088
7089 wxPy_END_ALLOW_THREADS;
7090 } _resultobj = Py_BuildValue("i",_result);
7091 return _resultobj;
7092 }
7093
7094 #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax())
7095 static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7096 PyObject * _resultobj;
7097 int _result;
7098 wxJoystick * _arg0;
7099 PyObject * _argo0 = 0;
7100 char *_kwnames[] = { "self", NULL };
7101
7102 self = self;
7103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0))
7104 return NULL;
7105 if (_argo0) {
7106 if (_argo0 == Py_None) { _arg0 = NULL; }
7107 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7108 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p.");
7109 return NULL;
7110 }
7111 }
7112 {
7113 wxPy_BEGIN_ALLOW_THREADS;
7114 _result = (int )wxJoystick_GetUMax(_arg0);
7115
7116 wxPy_END_ALLOW_THREADS;
7117 } _resultobj = Py_BuildValue("i",_result);
7118 return _resultobj;
7119 }
7120
7121 #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin())
7122 static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
7123 PyObject * _resultobj;
7124 int _result;
7125 wxJoystick * _arg0;
7126 PyObject * _argo0 = 0;
7127 char *_kwnames[] = { "self", NULL };
7128
7129 self = self;
7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0))
7131 return NULL;
7132 if (_argo0) {
7133 if (_argo0 == Py_None) { _arg0 = NULL; }
7134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p.");
7136 return NULL;
7137 }
7138 }
7139 {
7140 wxPy_BEGIN_ALLOW_THREADS;
7141 _result = (int )wxJoystick_GetVMin(_arg0);
7142
7143 wxPy_END_ALLOW_THREADS;
7144 } _resultobj = Py_BuildValue("i",_result);
7145 return _resultobj;
7146 }
7147
7148 #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax())
7149 static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7150 PyObject * _resultobj;
7151 int _result;
7152 wxJoystick * _arg0;
7153 PyObject * _argo0 = 0;
7154 char *_kwnames[] = { "self", NULL };
7155
7156 self = self;
7157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0))
7158 return NULL;
7159 if (_argo0) {
7160 if (_argo0 == Py_None) { _arg0 = NULL; }
7161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p.");
7163 return NULL;
7164 }
7165 }
7166 {
7167 wxPy_BEGIN_ALLOW_THREADS;
7168 _result = (int )wxJoystick_GetVMax(_arg0);
7169
7170 wxPy_END_ALLOW_THREADS;
7171 } _resultobj = Py_BuildValue("i",_result);
7172 return _resultobj;
7173 }
7174
7175 #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder())
7176 static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
7177 PyObject * _resultobj;
7178 bool _result;
7179 wxJoystick * _arg0;
7180 PyObject * _argo0 = 0;
7181 char *_kwnames[] = { "self", NULL };
7182
7183 self = self;
7184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0))
7185 return NULL;
7186 if (_argo0) {
7187 if (_argo0 == Py_None) { _arg0 = NULL; }
7188 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7189 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p.");
7190 return NULL;
7191 }
7192 }
7193 {
7194 wxPy_BEGIN_ALLOW_THREADS;
7195 _result = (bool )wxJoystick_HasRudder(_arg0);
7196
7197 wxPy_END_ALLOW_THREADS;
7198 } _resultobj = Py_BuildValue("i",_result);
7199 return _resultobj;
7200 }
7201
7202 #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ())
7203 static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
7204 PyObject * _resultobj;
7205 bool _result;
7206 wxJoystick * _arg0;
7207 PyObject * _argo0 = 0;
7208 char *_kwnames[] = { "self", NULL };
7209
7210 self = self;
7211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0))
7212 return NULL;
7213 if (_argo0) {
7214 if (_argo0 == Py_None) { _arg0 = NULL; }
7215 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7216 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p.");
7217 return NULL;
7218 }
7219 }
7220 {
7221 wxPy_BEGIN_ALLOW_THREADS;
7222 _result = (bool )wxJoystick_HasZ(_arg0);
7223
7224 wxPy_END_ALLOW_THREADS;
7225 } _resultobj = Py_BuildValue("i",_result);
7226 return _resultobj;
7227 }
7228
7229 #define wxJoystick_HasU(_swigobj) (_swigobj->HasU())
7230 static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
7231 PyObject * _resultobj;
7232 bool _result;
7233 wxJoystick * _arg0;
7234 PyObject * _argo0 = 0;
7235 char *_kwnames[] = { "self", NULL };
7236
7237 self = self;
7238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0))
7239 return NULL;
7240 if (_argo0) {
7241 if (_argo0 == Py_None) { _arg0 = NULL; }
7242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p.");
7244 return NULL;
7245 }
7246 }
7247 {
7248 wxPy_BEGIN_ALLOW_THREADS;
7249 _result = (bool )wxJoystick_HasU(_arg0);
7250
7251 wxPy_END_ALLOW_THREADS;
7252 } _resultobj = Py_BuildValue("i",_result);
7253 return _resultobj;
7254 }
7255
7256 #define wxJoystick_HasV(_swigobj) (_swigobj->HasV())
7257 static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
7258 PyObject * _resultobj;
7259 bool _result;
7260 wxJoystick * _arg0;
7261 PyObject * _argo0 = 0;
7262 char *_kwnames[] = { "self", NULL };
7263
7264 self = self;
7265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0))
7266 return NULL;
7267 if (_argo0) {
7268 if (_argo0 == Py_None) { _arg0 = NULL; }
7269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p.");
7271 return NULL;
7272 }
7273 }
7274 {
7275 wxPy_BEGIN_ALLOW_THREADS;
7276 _result = (bool )wxJoystick_HasV(_arg0);
7277
7278 wxPy_END_ALLOW_THREADS;
7279 } _resultobj = Py_BuildValue("i",_result);
7280 return _resultobj;
7281 }
7282
7283 #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV())
7284 static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
7285 PyObject * _resultobj;
7286 bool _result;
7287 wxJoystick * _arg0;
7288 PyObject * _argo0 = 0;
7289 char *_kwnames[] = { "self", NULL };
7290
7291 self = self;
7292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0))
7293 return NULL;
7294 if (_argo0) {
7295 if (_argo0 == Py_None) { _arg0 = NULL; }
7296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p.");
7298 return NULL;
7299 }
7300 }
7301 {
7302 wxPy_BEGIN_ALLOW_THREADS;
7303 _result = (bool )wxJoystick_HasPOV(_arg0);
7304
7305 wxPy_END_ALLOW_THREADS;
7306 } _resultobj = Py_BuildValue("i",_result);
7307 return _resultobj;
7308 }
7309
7310 #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir())
7311 static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
7312 PyObject * _resultobj;
7313 bool _result;
7314 wxJoystick * _arg0;
7315 PyObject * _argo0 = 0;
7316 char *_kwnames[] = { "self", NULL };
7317
7318 self = self;
7319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0))
7320 return NULL;
7321 if (_argo0) {
7322 if (_argo0 == Py_None) { _arg0 = NULL; }
7323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p.");
7325 return NULL;
7326 }
7327 }
7328 {
7329 wxPy_BEGIN_ALLOW_THREADS;
7330 _result = (bool )wxJoystick_HasPOV4Dir(_arg0);
7331
7332 wxPy_END_ALLOW_THREADS;
7333 } _resultobj = Py_BuildValue("i",_result);
7334 return _resultobj;
7335 }
7336
7337 #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS())
7338 static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
7339 PyObject * _resultobj;
7340 bool _result;
7341 wxJoystick * _arg0;
7342 PyObject * _argo0 = 0;
7343 char *_kwnames[] = { "self", NULL };
7344
7345 self = self;
7346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0))
7347 return NULL;
7348 if (_argo0) {
7349 if (_argo0 == Py_None) { _arg0 = NULL; }
7350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p.");
7352 return NULL;
7353 }
7354 }
7355 {
7356 wxPy_BEGIN_ALLOW_THREADS;
7357 _result = (bool )wxJoystick_HasPOVCTS(_arg0);
7358
7359 wxPy_END_ALLOW_THREADS;
7360 } _resultobj = Py_BuildValue("i",_result);
7361 return _resultobj;
7362 }
7363
7364 #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1))
7365 static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
7366 PyObject * _resultobj;
7367 bool _result;
7368 wxJoystick * _arg0;
7369 wxWindow * _arg1;
7370 int _arg2 = (int ) 0;
7371 PyObject * _argo0 = 0;
7372 PyObject * _argo1 = 0;
7373 char *_kwnames[] = { "self","win","pollingFreq", NULL };
7374
7375 self = self;
7376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2))
7377 return NULL;
7378 if (_argo0) {
7379 if (_argo0 == Py_None) { _arg0 = NULL; }
7380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p.");
7382 return NULL;
7383 }
7384 }
7385 if (_argo1) {
7386 if (_argo1 == Py_None) { _arg1 = NULL; }
7387 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7388 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p.");
7389 return NULL;
7390 }
7391 }
7392 {
7393 wxPy_BEGIN_ALLOW_THREADS;
7394 _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2);
7395
7396 wxPy_END_ALLOW_THREADS;
7397 } _resultobj = Py_BuildValue("i",_result);
7398 return _resultobj;
7399 }
7400
7401 #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture())
7402 static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
7403 PyObject * _resultobj;
7404 bool _result;
7405 wxJoystick * _arg0;
7406 PyObject * _argo0 = 0;
7407 char *_kwnames[] = { "self", NULL };
7408
7409 self = self;
7410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0))
7411 return NULL;
7412 if (_argo0) {
7413 if (_argo0 == Py_None) { _arg0 = NULL; }
7414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p.");
7416 return NULL;
7417 }
7418 }
7419 {
7420 wxPy_BEGIN_ALLOW_THREADS;
7421 _result = (bool )wxJoystick_ReleaseCapture(_arg0);
7422
7423 wxPy_END_ALLOW_THREADS;
7424 } _resultobj = Py_BuildValue("i",_result);
7425 return _resultobj;
7426 }
7427
7428 static void *SwigwxWaveTowxObject(void *ptr) {
7429 wxWave *src;
7430 wxObject *dest;
7431 src = (wxWave *) ptr;
7432 dest = (wxObject *) src;
7433 return (void *) dest;
7434 }
7435
7436 #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1))
7437 static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) {
7438 PyObject * _resultobj;
7439 wxWave * _result;
7440 wxString * _arg0;
7441 bool _arg1 = (bool ) FALSE;
7442 PyObject * _obj0 = 0;
7443 int tempbool1 = (int) FALSE;
7444 char *_kwnames[] = { "fileName","isResource", NULL };
7445 char _ptemp[128];
7446
7447 self = self;
7448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1))
7449 return NULL;
7450 {
7451 #if PYTHON_API_VERSION >= 1009
7452 char* tmpPtr; int tmpSize;
7453 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7454 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7455 return NULL;
7456 }
7457 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
7458 return NULL;
7459 _arg0 = new wxString(tmpPtr, tmpSize);
7460 #else
7461 if (!PyString_Check(_obj0)) {
7462 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7463 return NULL;
7464 }
7465 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
7466 #endif
7467 }
7468 _arg1 = (bool ) tempbool1;
7469 {
7470 wxPy_BEGIN_ALLOW_THREADS;
7471 _result = (wxWave *)new_wxWave(*_arg0,_arg1);
7472
7473 wxPy_END_ALLOW_THREADS;
7474 } if (_result) {
7475 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p");
7476 _resultobj = Py_BuildValue("s",_ptemp);
7477 } else {
7478 Py_INCREF(Py_None);
7479 _resultobj = Py_None;
7480 }
7481 {
7482 if (_obj0)
7483 delete _arg0;
7484 }
7485 return _resultobj;
7486 }
7487
7488 #define delete_wxWave(_swigobj) (delete _swigobj)
7489 static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) {
7490 PyObject * _resultobj;
7491 wxWave * _arg0;
7492 PyObject * _argo0 = 0;
7493 char *_kwnames[] = { "self", NULL };
7494
7495 self = self;
7496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0))
7497 return NULL;
7498 if (_argo0) {
7499 if (_argo0 == Py_None) { _arg0 = NULL; }
7500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) {
7501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p.");
7502 return NULL;
7503 }
7504 }
7505 {
7506 wxPy_BEGIN_ALLOW_THREADS;
7507 delete_wxWave(_arg0);
7508
7509 wxPy_END_ALLOW_THREADS;
7510 } Py_INCREF(Py_None);
7511 _resultobj = Py_None;
7512 return _resultobj;
7513 }
7514
7515 #define wxWave_IsOk(_swigobj) (_swigobj->IsOk())
7516 static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
7517 PyObject * _resultobj;
7518 bool _result;
7519 wxWave * _arg0;
7520 PyObject * _argo0 = 0;
7521 char *_kwnames[] = { "self", NULL };
7522
7523 self = self;
7524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0))
7525 return NULL;
7526 if (_argo0) {
7527 if (_argo0 == Py_None) { _arg0 = NULL; }
7528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) {
7529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p.");
7530 return NULL;
7531 }
7532 }
7533 {
7534 wxPy_BEGIN_ALLOW_THREADS;
7535 _result = (bool )wxWave_IsOk(_arg0);
7536
7537 wxPy_END_ALLOW_THREADS;
7538 } _resultobj = Py_BuildValue("i",_result);
7539 return _resultobj;
7540 }
7541
7542 #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1))
7543 static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
7544 PyObject * _resultobj;
7545 bool _result;
7546 wxWave * _arg0;
7547 bool _arg1 = (bool ) TRUE;
7548 bool _arg2 = (bool ) FALSE;
7549 PyObject * _argo0 = 0;
7550 int tempbool1 = (int) TRUE;
7551 int tempbool2 = (int) FALSE;
7552 char *_kwnames[] = { "self","async","looped", NULL };
7553
7554 self = self;
7555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2))
7556 return NULL;
7557 if (_argo0) {
7558 if (_argo0 == Py_None) { _arg0 = NULL; }
7559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) {
7560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p.");
7561 return NULL;
7562 }
7563 }
7564 _arg1 = (bool ) tempbool1;
7565 _arg2 = (bool ) tempbool2;
7566 {
7567 wxPy_BEGIN_ALLOW_THREADS;
7568 _result = (bool )wxWave_Play(_arg0,_arg1,_arg2);
7569
7570 wxPy_END_ALLOW_THREADS;
7571 } _resultobj = Py_BuildValue("i",_result);
7572 return _resultobj;
7573 }
7574
7575 #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7576 static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7577 PyObject * _resultobj;
7578 wxFileTypeInfo * _result;
7579 char * _arg0;
7580 char * _arg1;
7581 char * _arg2;
7582 char * _arg3;
7583 char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL };
7584 char _ptemp[128];
7585
7586 self = self;
7587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
7588 return NULL;
7589 {
7590 wxPy_BEGIN_ALLOW_THREADS;
7591 _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3);
7592
7593 wxPy_END_ALLOW_THREADS;
7594 } if (_result) {
7595 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p");
7596 _resultobj = Py_BuildValue("s",_ptemp);
7597 } else {
7598 Py_INCREF(Py_None);
7599 _resultobj = Py_None;
7600 }
7601 return _resultobj;
7602 }
7603
7604 #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0))
7605 static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
7606 PyObject * _resultobj;
7607 wxFileTypeInfo * _result;
7608 wxArrayString * _arg0;
7609 PyObject * _obj0 = 0;
7610 char *_kwnames[] = { "sArray", NULL };
7611 char _ptemp[128];
7612
7613 self = self;
7614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0))
7615 return NULL;
7616 {
7617 if (! PySequence_Check(_obj0)) {
7618 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
7619 return NULL;
7620 }
7621 _arg0 = new wxArrayString;
7622 int i, len=PySequence_Length(_obj0);
7623 for (i=0; i<len; i++) {
7624 PyObject* item = PySequence_GetItem(_obj0, i);
7625 PyObject* str = PyObject_Str(item);
7626 _arg0->Add(PyString_AsString(item));
7627 Py_DECREF(item);
7628 Py_DECREF(str);
7629 }
7630 }
7631 {
7632 wxPy_BEGIN_ALLOW_THREADS;
7633 _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0);
7634
7635 wxPy_END_ALLOW_THREADS;
7636 } if (_result) {
7637 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p");
7638 _resultobj = Py_BuildValue("s",_ptemp);
7639 } else {
7640 Py_INCREF(Py_None);
7641 _resultobj = Py_None;
7642 }
7643 {
7644 if (_obj0)
7645 delete _arg0;
7646 }
7647 return _resultobj;
7648 }
7649
7650 #define new_wxNullFileTypeInfo() (new wxFileTypeInfo())
7651 static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7652 PyObject * _resultobj;
7653 wxFileTypeInfo * _result;
7654 char *_kwnames[] = { NULL };
7655 char _ptemp[128];
7656
7657 self = self;
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames))
7659 return NULL;
7660 {
7661 wxPy_BEGIN_ALLOW_THREADS;
7662 _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo();
7663
7664 wxPy_END_ALLOW_THREADS;
7665 } if (_result) {
7666 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p");
7667 _resultobj = Py_BuildValue("s",_ptemp);
7668 } else {
7669 Py_INCREF(Py_None);
7670 _resultobj = Py_None;
7671 }
7672 return _resultobj;
7673 }
7674
7675 #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid())
7676 static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
7677 PyObject * _resultobj;
7678 bool _result;
7679 wxFileTypeInfo * _arg0;
7680 PyObject * _argo0 = 0;
7681 char *_kwnames[] = { "self", NULL };
7682
7683 self = self;
7684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0))
7685 return NULL;
7686 if (_argo0) {
7687 if (_argo0 == Py_None) { _arg0 = NULL; }
7688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
7689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p.");
7690 return NULL;
7691 }
7692 }
7693 {
7694 wxPy_BEGIN_ALLOW_THREADS;
7695 _result = (bool )wxFileTypeInfo_IsValid(_arg0);
7696
7697 wxPy_END_ALLOW_THREADS;
7698 } _resultobj = Py_BuildValue("i",_result);
7699 return _resultobj;
7700 }
7701
7702 #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1))
7703 static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
7704 PyObject * _resultobj;
7705 wxFileTypeInfo * _arg0;
7706 wxString * _arg1;
7707 int _arg2 = (int ) 0;
7708 PyObject * _argo0 = 0;
7709 PyObject * _obj1 = 0;
7710 char *_kwnames[] = { "self","iconFile","iconIndex", NULL };
7711
7712 self = self;
7713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2))
7714 return NULL;
7715 if (_argo0) {
7716 if (_argo0 == Py_None) { _arg0 = NULL; }
7717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
7718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p.");
7719 return NULL;
7720 }
7721 }
7722 {
7723 #if PYTHON_API_VERSION >= 1009
7724 char* tmpPtr; int tmpSize;
7725 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7726 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7727 return NULL;
7728 }
7729 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7730 return NULL;
7731 _arg1 = new wxString(tmpPtr, tmpSize);
7732 #else
7733 if (!PyString_Check(_obj1)) {
7734 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7735 return NULL;
7736 }
7737 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7738 #endif
7739 }
7740 {
7741 wxPy_BEGIN_ALLOW_THREADS;
7742 wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2);
7743
7744 wxPy_END_ALLOW_THREADS;
7745 } Py_INCREF(Py_None);
7746 _resultobj = Py_None;
7747 {
7748 if (_obj1)
7749 delete _arg1;
7750 }
7751 return _resultobj;
7752 }
7753
7754 #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0))
7755 static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7756 PyObject * _resultobj;
7757 wxFileTypeInfo * _arg0;
7758 wxString * _arg1;
7759 PyObject * _argo0 = 0;
7760 PyObject * _obj1 = 0;
7761 char *_kwnames[] = { "self","shortDesc", NULL };
7762
7763 self = self;
7764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1))
7765 return NULL;
7766 if (_argo0) {
7767 if (_argo0 == Py_None) { _arg0 = NULL; }
7768 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
7769 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p.");
7770 return NULL;
7771 }
7772 }
7773 {
7774 #if PYTHON_API_VERSION >= 1009
7775 char* tmpPtr; int tmpSize;
7776 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7777 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7778 return NULL;
7779 }
7780 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7781 return NULL;
7782 _arg1 = new wxString(tmpPtr, tmpSize);
7783 #else
7784 if (!PyString_Check(_obj1)) {
7785 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7786 return NULL;
7787 }
7788 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7789 #endif
7790 }
7791 {
7792 wxPy_BEGIN_ALLOW_THREADS;
7793 wxFileTypeInfo_SetShortDesc(_arg0,*_arg1);
7794
7795 wxPy_END_ALLOW_THREADS;
7796 } Py_INCREF(Py_None);
7797 _resultobj = Py_None;
7798 {
7799 if (_obj1)
7800 delete _arg1;
7801 }
7802 return _resultobj;
7803 }
7804
7805 #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType())
7806 static PyObject *_wrap_wxFileTypeInfo_GetMimeType(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_GetMimeType",_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_GetMimeType. Expected _wxFileTypeInfo_p.");
7820 return NULL;
7821 }
7822 }
7823 {
7824 wxPy_BEGIN_ALLOW_THREADS;
7825 const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_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_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand())
7836 static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(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_GetOpenCommand",_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_GetOpenCommand. Expected _wxFileTypeInfo_p.");
7850 return NULL;
7851 }
7852 }
7853 {
7854 wxPy_BEGIN_ALLOW_THREADS;
7855 const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_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_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand())
7866 static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(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_GetPrintCommand",_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_GetPrintCommand. Expected _wxFileTypeInfo_p.");
7880 return NULL;
7881 }
7882 }
7883 {
7884 wxPy_BEGIN_ALLOW_THREADS;
7885 const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_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 #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc())
7896 static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7897 PyObject * _resultobj;
7898 wxString * _result;
7899 wxFileTypeInfo * _arg0;
7900 PyObject * _argo0 = 0;
7901 char *_kwnames[] = { "self", NULL };
7902
7903 self = self;
7904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0))
7905 return NULL;
7906 if (_argo0) {
7907 if (_argo0 == Py_None) { _arg0 = NULL; }
7908 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
7909 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p.");
7910 return NULL;
7911 }
7912 }
7913 {
7914 wxPy_BEGIN_ALLOW_THREADS;
7915 const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0);
7916 _result = (wxString *) &_result_ref;
7917
7918 wxPy_END_ALLOW_THREADS;
7919 }{
7920 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7921 }
7922 return _resultobj;
7923 }
7924
7925 #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription())
7926 static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7927 PyObject * _resultobj;
7928 wxString * _result;
7929 wxFileTypeInfo * _arg0;
7930 PyObject * _argo0 = 0;
7931 char *_kwnames[] = { "self", NULL };
7932
7933 self = self;
7934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0))
7935 return NULL;
7936 if (_argo0) {
7937 if (_argo0 == Py_None) { _arg0 = NULL; }
7938 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
7939 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p.");
7940 return NULL;
7941 }
7942 }
7943 {
7944 wxPy_BEGIN_ALLOW_THREADS;
7945 const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0);
7946 _result = (wxString *) &_result_ref;
7947
7948 wxPy_END_ALLOW_THREADS;
7949 }{
7950 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7951 }
7952 return _resultobj;
7953 }
7954
7955 static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) {
7956 wxArrayString& arr = (wxArrayString&)self->GetExtensions();
7957 return wxArrayString2PyList_helper(arr);
7958 }
7959 static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
7960 PyObject * _resultobj;
7961 PyObject * _result;
7962 wxFileTypeInfo * _arg0;
7963 PyObject * _argo0 = 0;
7964 char *_kwnames[] = { "self", NULL };
7965
7966 self = self;
7967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0))
7968 return NULL;
7969 if (_argo0) {
7970 if (_argo0 == Py_None) { _arg0 = NULL; }
7971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
7972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p.");
7973 return NULL;
7974 }
7975 }
7976 {
7977 wxPy_BEGIN_ALLOW_THREADS;
7978 _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0);
7979
7980 wxPy_END_ALLOW_THREADS;
7981 }{
7982 _resultobj = _result;
7983 }
7984 return _resultobj;
7985 }
7986
7987 #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount())
7988 static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7989 PyObject * _resultobj;
7990 int _result;
7991 wxFileTypeInfo * _arg0;
7992 PyObject * _argo0 = 0;
7993 char *_kwnames[] = { "self", NULL };
7994
7995 self = self;
7996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0))
7997 return NULL;
7998 if (_argo0) {
7999 if (_argo0 == Py_None) { _arg0 = NULL; }
8000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p.");
8002 return NULL;
8003 }
8004 }
8005 {
8006 wxPy_BEGIN_ALLOW_THREADS;
8007 _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0);
8008
8009 wxPy_END_ALLOW_THREADS;
8010 } _resultobj = Py_BuildValue("i",_result);
8011 return _resultobj;
8012 }
8013
8014 #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile())
8015 static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8016 PyObject * _resultobj;
8017 wxString * _result;
8018 wxFileTypeInfo * _arg0;
8019 PyObject * _argo0 = 0;
8020 char *_kwnames[] = { "self", NULL };
8021
8022 self = self;
8023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0))
8024 return NULL;
8025 if (_argo0) {
8026 if (_argo0 == Py_None) { _arg0 = NULL; }
8027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p.");
8029 return NULL;
8030 }
8031 }
8032 {
8033 wxPy_BEGIN_ALLOW_THREADS;
8034 const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0);
8035 _result = (wxString *) &_result_ref;
8036
8037 wxPy_END_ALLOW_THREADS;
8038 }{
8039 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8040 }
8041 return _resultobj;
8042 }
8043
8044 #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex())
8045 static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
8046 PyObject * _resultobj;
8047 int _result;
8048 wxFileTypeInfo * _arg0;
8049 PyObject * _argo0 = 0;
8050 char *_kwnames[] = { "self", NULL };
8051
8052 self = self;
8053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0))
8054 return NULL;
8055 if (_argo0) {
8056 if (_argo0 == Py_None) { _arg0 = NULL; }
8057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p.");
8059 return NULL;
8060 }
8061 }
8062 {
8063 wxPy_BEGIN_ALLOW_THREADS;
8064 _result = (int )wxFileTypeInfo_GetIconIndex(_arg0);
8065
8066 wxPy_END_ALLOW_THREADS;
8067 } _resultobj = Py_BuildValue("i",_result);
8068 return _resultobj;
8069 }
8070
8071 #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0))
8072 static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) {
8073 PyObject * _resultobj;
8074 wxFileType * _result;
8075 wxFileTypeInfo * _arg0;
8076 PyObject * _argo0 = 0;
8077 char *_kwnames[] = { "ftInfo", NULL };
8078 char _ptemp[128];
8079
8080 self = self;
8081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0))
8082 return NULL;
8083 if (_argo0) {
8084 if (_argo0 == Py_None) { _arg0 = NULL; }
8085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p.");
8087 return NULL;
8088 }
8089 }
8090 {
8091 wxPy_BEGIN_ALLOW_THREADS;
8092 _result = (wxFileType *)new_wxFileType(*_arg0);
8093
8094 wxPy_END_ALLOW_THREADS;
8095 } if (_result) {
8096 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
8097 _resultobj = Py_BuildValue("s",_ptemp);
8098 } else {
8099 Py_INCREF(Py_None);
8100 _resultobj = Py_None;
8101 }
8102 return _resultobj;
8103 }
8104
8105 static PyObject * wxFileType_GetMimeType(wxFileType *self) {
8106 wxString str;
8107 if (self->GetMimeType(&str))
8108 return PyString_FromString(str.c_str());
8109 else
8110 RETURN_NONE();
8111 }
8112 static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8113 PyObject * _resultobj;
8114 PyObject * _result;
8115 wxFileType * _arg0;
8116 PyObject * _argo0 = 0;
8117 char *_kwnames[] = { "self", NULL };
8118
8119 self = self;
8120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0))
8121 return NULL;
8122 if (_argo0) {
8123 if (_argo0 == Py_None) { _arg0 = NULL; }
8124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p.");
8126 return NULL;
8127 }
8128 }
8129 {
8130 wxPy_BEGIN_ALLOW_THREADS;
8131 _result = (PyObject *)wxFileType_GetMimeType(_arg0);
8132
8133 wxPy_END_ALLOW_THREADS;
8134 }{
8135 _resultobj = _result;
8136 }
8137 return _resultobj;
8138 }
8139
8140 static PyObject * wxFileType_GetMimeTypes(wxFileType *self) {
8141 wxArrayString arr;
8142 if (self->GetMimeTypes(arr))
8143 return wxArrayString2PyList_helper(arr);
8144 else
8145 RETURN_NONE();
8146 }
8147 static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
8148 PyObject * _resultobj;
8149 PyObject * _result;
8150 wxFileType * _arg0;
8151 PyObject * _argo0 = 0;
8152 char *_kwnames[] = { "self", NULL };
8153
8154 self = self;
8155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0))
8156 return NULL;
8157 if (_argo0) {
8158 if (_argo0 == Py_None) { _arg0 = NULL; }
8159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p.");
8161 return NULL;
8162 }
8163 }
8164 {
8165 wxPy_BEGIN_ALLOW_THREADS;
8166 _result = (PyObject *)wxFileType_GetMimeTypes(_arg0);
8167
8168 wxPy_END_ALLOW_THREADS;
8169 }{
8170 _resultobj = _result;
8171 }
8172 return _resultobj;
8173 }
8174
8175 static PyObject * wxFileType_GetExtensions(wxFileType *self) {
8176 wxArrayString arr;
8177 if (self->GetExtensions(arr))
8178 return wxArrayString2PyList_helper(arr);
8179 else
8180 RETURN_NONE();
8181 }
8182 static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
8183 PyObject * _resultobj;
8184 PyObject * _result;
8185 wxFileType * _arg0;
8186 PyObject * _argo0 = 0;
8187 char *_kwnames[] = { "self", NULL };
8188
8189 self = self;
8190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0))
8191 return NULL;
8192 if (_argo0) {
8193 if (_argo0 == Py_None) { _arg0 = NULL; }
8194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p.");
8196 return NULL;
8197 }
8198 }
8199 {
8200 wxPy_BEGIN_ALLOW_THREADS;
8201 _result = (PyObject *)wxFileType_GetExtensions(_arg0);
8202
8203 wxPy_END_ALLOW_THREADS;
8204 }{
8205 _resultobj = _result;
8206 }
8207 return _resultobj;
8208 }
8209
8210 static wxIcon * wxFileType_GetIcon(wxFileType *self) {
8211 wxIcon icon;
8212 if (self->GetIcon(&icon))
8213 return new wxIcon(icon);
8214 else
8215 return NULL;
8216 }
8217 static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8218 PyObject * _resultobj;
8219 wxIcon * _result;
8220 wxFileType * _arg0;
8221 PyObject * _argo0 = 0;
8222 char *_kwnames[] = { "self", NULL };
8223 char _ptemp[128];
8224
8225 self = self;
8226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0))
8227 return NULL;
8228 if (_argo0) {
8229 if (_argo0 == Py_None) { _arg0 = NULL; }
8230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p.");
8232 return NULL;
8233 }
8234 }
8235 {
8236 wxPy_BEGIN_ALLOW_THREADS;
8237 _result = (wxIcon *)wxFileType_GetIcon(_arg0);
8238
8239 wxPy_END_ALLOW_THREADS;
8240 } if (_result) {
8241 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
8242 _resultobj = Py_BuildValue("s",_ptemp);
8243 } else {
8244 Py_INCREF(Py_None);
8245 _resultobj = Py_None;
8246 }
8247 return _resultobj;
8248 }
8249
8250 static PyObject * wxFileType_GetIconInfo(wxFileType *self) {
8251 wxIcon icon;
8252 wxString iconFile;
8253 int iconIndex;
8254 if (self->GetIcon(&icon, &iconFile, &iconIndex)) {
8255 wxPyTState* state = wxPyBeginBlockThreads();
8256 PyObject* tuple = PyTuple_New(3);
8257 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon),
8258 "wxIcon", TRUE));
8259 PyTuple_SetItem(tuple, 1, PyString_FromString(iconFile.c_str()));
8260 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
8261 wxPyEndBlockThreads(state);
8262 return tuple;
8263 }
8264 else
8265 RETURN_NONE();
8266 }
8267 static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8268 PyObject * _resultobj;
8269 PyObject * _result;
8270 wxFileType * _arg0;
8271 PyObject * _argo0 = 0;
8272 char *_kwnames[] = { "self", NULL };
8273
8274 self = self;
8275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0))
8276 return NULL;
8277 if (_argo0) {
8278 if (_argo0 == Py_None) { _arg0 = NULL; }
8279 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8280 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p.");
8281 return NULL;
8282 }
8283 }
8284 {
8285 wxPy_BEGIN_ALLOW_THREADS;
8286 _result = (PyObject *)wxFileType_GetIconInfo(_arg0);
8287
8288 wxPy_END_ALLOW_THREADS;
8289 }{
8290 _resultobj = _result;
8291 }
8292 return _resultobj;
8293 }
8294
8295 static PyObject * wxFileType_GetDescription(wxFileType *self) {
8296 wxString str;
8297 if (self->GetDescription(&str))
8298 return PyString_FromString(str.c_str());
8299 else
8300 RETURN_NONE();
8301 }
8302 static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
8303 PyObject * _resultobj;
8304 PyObject * _result;
8305 wxFileType * _arg0;
8306 PyObject * _argo0 = 0;
8307 char *_kwnames[] = { "self", NULL };
8308
8309 self = self;
8310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0))
8311 return NULL;
8312 if (_argo0) {
8313 if (_argo0 == Py_None) { _arg0 = NULL; }
8314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p.");
8316 return NULL;
8317 }
8318 }
8319 {
8320 wxPy_BEGIN_ALLOW_THREADS;
8321 _result = (PyObject *)wxFileType_GetDescription(_arg0);
8322
8323 wxPy_END_ALLOW_THREADS;
8324 }{
8325 _resultobj = _result;
8326 }
8327 return _resultobj;
8328 }
8329
8330 static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) {
8331 wxString str;
8332 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
8333 return PyString_FromString(str.c_str());
8334 else
8335 RETURN_NONE();
8336 }
8337 static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8338 PyObject * _resultobj;
8339 PyObject * _result;
8340 wxFileType * _arg0;
8341 wxString * _arg1;
8342 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
8343 PyObject * _argo0 = 0;
8344 PyObject * _obj1 = 0;
8345 PyObject * _obj2 = 0;
8346 char *_kwnames[] = { "self","filename","mimetype", NULL };
8347
8348 self = self;
8349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2))
8350 return NULL;
8351 if (_argo0) {
8352 if (_argo0 == Py_None) { _arg0 = NULL; }
8353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p.");
8355 return NULL;
8356 }
8357 }
8358 {
8359 #if PYTHON_API_VERSION >= 1009
8360 char* tmpPtr; int tmpSize;
8361 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8362 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8363 return NULL;
8364 }
8365 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8366 return NULL;
8367 _arg1 = new wxString(tmpPtr, tmpSize);
8368 #else
8369 if (!PyString_Check(_obj1)) {
8370 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8371 return NULL;
8372 }
8373 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8374 #endif
8375 }
8376 if (_obj2)
8377 {
8378 #if PYTHON_API_VERSION >= 1009
8379 char* tmpPtr; int tmpSize;
8380 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8381 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8382 return NULL;
8383 }
8384 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8385 return NULL;
8386 _arg2 = new wxString(tmpPtr, tmpSize);
8387 #else
8388 if (!PyString_Check(_obj2)) {
8389 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8390 return NULL;
8391 }
8392 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8393 #endif
8394 }
8395 {
8396 wxPy_BEGIN_ALLOW_THREADS;
8397 _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2);
8398
8399 wxPy_END_ALLOW_THREADS;
8400 }{
8401 _resultobj = _result;
8402 }
8403 {
8404 if (_obj1)
8405 delete _arg1;
8406 }
8407 {
8408 if (_obj2)
8409 delete _arg2;
8410 }
8411 return _resultobj;
8412 }
8413
8414 static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) {
8415 wxString str;
8416 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
8417 return PyString_FromString(str.c_str());
8418 else
8419 RETURN_NONE();
8420 }
8421 static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8422 PyObject * _resultobj;
8423 PyObject * _result;
8424 wxFileType * _arg0;
8425 wxString * _arg1;
8426 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
8427 PyObject * _argo0 = 0;
8428 PyObject * _obj1 = 0;
8429 PyObject * _obj2 = 0;
8430 char *_kwnames[] = { "self","filename","mimetype", NULL };
8431
8432 self = self;
8433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2))
8434 return NULL;
8435 if (_argo0) {
8436 if (_argo0 == Py_None) { _arg0 = NULL; }
8437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p.");
8439 return NULL;
8440 }
8441 }
8442 {
8443 #if PYTHON_API_VERSION >= 1009
8444 char* tmpPtr; int tmpSize;
8445 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8446 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8447 return NULL;
8448 }
8449 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8450 return NULL;
8451 _arg1 = new wxString(tmpPtr, tmpSize);
8452 #else
8453 if (!PyString_Check(_obj1)) {
8454 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8455 return NULL;
8456 }
8457 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8458 #endif
8459 }
8460 if (_obj2)
8461 {
8462 #if PYTHON_API_VERSION >= 1009
8463 char* tmpPtr; int tmpSize;
8464 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8465 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8466 return NULL;
8467 }
8468 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8469 return NULL;
8470 _arg2 = new wxString(tmpPtr, tmpSize);
8471 #else
8472 if (!PyString_Check(_obj2)) {
8473 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8474 return NULL;
8475 }
8476 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8477 #endif
8478 }
8479 {
8480 wxPy_BEGIN_ALLOW_THREADS;
8481 _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2);
8482
8483 wxPy_END_ALLOW_THREADS;
8484 }{
8485 _resultobj = _result;
8486 }
8487 {
8488 if (_obj1)
8489 delete _arg1;
8490 }
8491 {
8492 if (_obj2)
8493 delete _arg2;
8494 }
8495 return _resultobj;
8496 }
8497
8498 static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) {
8499 wxArrayString verbs;
8500 wxArrayString commands;
8501 if (self->GetAllCommands(&verbs, &commands,
8502 wxFileType::MessageParameters(filename, mimetype))) {
8503 wxPyTState* state = wxPyBeginBlockThreads();
8504 PyObject* tuple = PyTuple_New(2);
8505 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
8506 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
8507 wxPyEndBlockThreads(state);
8508 return tuple;
8509 }
8510 else
8511 RETURN_NONE();
8512 }
8513 static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
8514 PyObject * _resultobj;
8515 PyObject * _result;
8516 wxFileType * _arg0;
8517 wxString * _arg1;
8518 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
8519 PyObject * _argo0 = 0;
8520 PyObject * _obj1 = 0;
8521 PyObject * _obj2 = 0;
8522 char *_kwnames[] = { "self","filename","mimetype", NULL };
8523
8524 self = self;
8525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2))
8526 return NULL;
8527 if (_argo0) {
8528 if (_argo0 == Py_None) { _arg0 = NULL; }
8529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p.");
8531 return NULL;
8532 }
8533 }
8534 {
8535 #if PYTHON_API_VERSION >= 1009
8536 char* tmpPtr; int tmpSize;
8537 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8538 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8539 return NULL;
8540 }
8541 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8542 return NULL;
8543 _arg1 = new wxString(tmpPtr, tmpSize);
8544 #else
8545 if (!PyString_Check(_obj1)) {
8546 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8547 return NULL;
8548 }
8549 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8550 #endif
8551 }
8552 if (_obj2)
8553 {
8554 #if PYTHON_API_VERSION >= 1009
8555 char* tmpPtr; int tmpSize;
8556 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8557 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8558 return NULL;
8559 }
8560 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8561 return NULL;
8562 _arg2 = new wxString(tmpPtr, tmpSize);
8563 #else
8564 if (!PyString_Check(_obj2)) {
8565 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8566 return NULL;
8567 }
8568 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8569 #endif
8570 }
8571 {
8572 wxPy_BEGIN_ALLOW_THREADS;
8573 _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2);
8574
8575 wxPy_END_ALLOW_THREADS;
8576 }{
8577 _resultobj = _result;
8578 }
8579 {
8580 if (_obj1)
8581 delete _arg1;
8582 }
8583 {
8584 if (_obj2)
8585 delete _arg2;
8586 }
8587 return _resultobj;
8588 }
8589
8590 #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2))
8591 static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8592 PyObject * _resultobj;
8593 bool _result;
8594 wxFileType * _arg0;
8595 wxString * _arg1;
8596 wxString * _arg2;
8597 bool _arg3 = (bool ) TRUE;
8598 PyObject * _argo0 = 0;
8599 PyObject * _obj1 = 0;
8600 PyObject * _obj2 = 0;
8601 int tempbool3 = (int) TRUE;
8602 char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL };
8603
8604 self = self;
8605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3))
8606 return NULL;
8607 if (_argo0) {
8608 if (_argo0 == Py_None) { _arg0 = NULL; }
8609 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8610 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p.");
8611 return NULL;
8612 }
8613 }
8614 {
8615 #if PYTHON_API_VERSION >= 1009
8616 char* tmpPtr; int tmpSize;
8617 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8618 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8619 return NULL;
8620 }
8621 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8622 return NULL;
8623 _arg1 = new wxString(tmpPtr, tmpSize);
8624 #else
8625 if (!PyString_Check(_obj1)) {
8626 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8627 return NULL;
8628 }
8629 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8630 #endif
8631 }
8632 {
8633 #if PYTHON_API_VERSION >= 1009
8634 char* tmpPtr; int tmpSize;
8635 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8636 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8637 return NULL;
8638 }
8639 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8640 return NULL;
8641 _arg2 = new wxString(tmpPtr, tmpSize);
8642 #else
8643 if (!PyString_Check(_obj2)) {
8644 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8645 return NULL;
8646 }
8647 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8648 #endif
8649 }
8650 _arg3 = (bool ) tempbool3;
8651 {
8652 wxPy_BEGIN_ALLOW_THREADS;
8653 _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3);
8654
8655 wxPy_END_ALLOW_THREADS;
8656 } _resultobj = Py_BuildValue("i",_result);
8657 {
8658 if (_obj1)
8659 delete _arg1;
8660 }
8661 {
8662 if (_obj2)
8663 delete _arg2;
8664 }
8665 return _resultobj;
8666 }
8667
8668 #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1))
8669 static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8670 PyObject * _resultobj;
8671 bool _result;
8672 wxFileType * _arg0;
8673 wxString * _arg1 = (wxString *) &wxEmptyString;
8674 int _arg2 = (int ) 0;
8675 PyObject * _argo0 = 0;
8676 PyObject * _obj1 = 0;
8677 char *_kwnames[] = { "self","cmd","index", NULL };
8678
8679 self = self;
8680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2))
8681 return NULL;
8682 if (_argo0) {
8683 if (_argo0 == Py_None) { _arg0 = NULL; }
8684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p.");
8686 return NULL;
8687 }
8688 }
8689 if (_obj1)
8690 {
8691 #if PYTHON_API_VERSION >= 1009
8692 char* tmpPtr; int tmpSize;
8693 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8694 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8695 return NULL;
8696 }
8697 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8698 return NULL;
8699 _arg1 = new wxString(tmpPtr, tmpSize);
8700 #else
8701 if (!PyString_Check(_obj1)) {
8702 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8703 return NULL;
8704 }
8705 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8706 #endif
8707 }
8708 {
8709 wxPy_BEGIN_ALLOW_THREADS;
8710 _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2);
8711
8712 wxPy_END_ALLOW_THREADS;
8713 } _resultobj = Py_BuildValue("i",_result);
8714 {
8715 if (_obj1)
8716 delete _arg1;
8717 }
8718 return _resultobj;
8719 }
8720
8721 #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate())
8722 static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
8723 PyObject * _resultobj;
8724 bool _result;
8725 wxFileType * _arg0;
8726 PyObject * _argo0 = 0;
8727 char *_kwnames[] = { "self", NULL };
8728
8729 self = self;
8730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0))
8731 return NULL;
8732 if (_argo0) {
8733 if (_argo0 == Py_None) { _arg0 = NULL; }
8734 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8735 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p.");
8736 return NULL;
8737 }
8738 }
8739 {
8740 wxPy_BEGIN_ALLOW_THREADS;
8741 _result = (bool )wxFileType_Unassociate(_arg0);
8742
8743 wxPy_END_ALLOW_THREADS;
8744 } _resultobj = Py_BuildValue("i",_result);
8745 return _resultobj;
8746 }
8747
8748 static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8749 PyObject * _resultobj;
8750 wxString * _result;
8751 wxString * _arg0;
8752 wxFileType::MessageParameters * _arg1;
8753 PyObject * _obj0 = 0;
8754 PyObject * _argo1 = 0;
8755 char *_kwnames[] = { "command","params", NULL };
8756
8757 self = self;
8758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1))
8759 return NULL;
8760 {
8761 #if PYTHON_API_VERSION >= 1009
8762 char* tmpPtr; int tmpSize;
8763 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
8764 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8765 return NULL;
8766 }
8767 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
8768 return NULL;
8769 _arg0 = new wxString(tmpPtr, tmpSize);
8770 #else
8771 if (!PyString_Check(_obj0)) {
8772 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8773 return NULL;
8774 }
8775 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
8776 #endif
8777 }
8778 if (_argo1) {
8779 if (_argo1 == Py_None) { _arg1 = NULL; }
8780 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) {
8781 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p.");
8782 return NULL;
8783 }
8784 }
8785 {
8786 wxPy_BEGIN_ALLOW_THREADS;
8787 _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1));
8788
8789 wxPy_END_ALLOW_THREADS;
8790 }{
8791 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8792 }
8793 {
8794 if (_obj0)
8795 delete _arg0;
8796 }
8797 {
8798 delete _result;
8799 }
8800 return _resultobj;
8801 }
8802
8803 #define delete_wxFileType(_swigobj) (delete _swigobj)
8804 static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) {
8805 PyObject * _resultobj;
8806 wxFileType * _arg0;
8807 PyObject * _argo0 = 0;
8808 char *_kwnames[] = { "self", NULL };
8809
8810 self = self;
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0))
8812 return NULL;
8813 if (_argo0) {
8814 if (_argo0 == Py_None) { _arg0 = NULL; }
8815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p.");
8817 return NULL;
8818 }
8819 }
8820 {
8821 wxPy_BEGIN_ALLOW_THREADS;
8822 delete_wxFileType(_arg0);
8823
8824 wxPy_END_ALLOW_THREADS;
8825 } Py_INCREF(Py_None);
8826 _resultobj = Py_None;
8827 return _resultobj;
8828 }
8829
8830 static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
8831 PyObject * _resultobj;
8832 bool _result;
8833 wxString * _arg0;
8834 wxString * _arg1;
8835 PyObject * _obj0 = 0;
8836 PyObject * _obj1 = 0;
8837 char *_kwnames[] = { "mimeType","wildcard", NULL };
8838
8839 self = self;
8840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1))
8841 return NULL;
8842 {
8843 #if PYTHON_API_VERSION >= 1009
8844 char* tmpPtr; int tmpSize;
8845 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
8846 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8847 return NULL;
8848 }
8849 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
8850 return NULL;
8851 _arg0 = new wxString(tmpPtr, tmpSize);
8852 #else
8853 if (!PyString_Check(_obj0)) {
8854 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8855 return NULL;
8856 }
8857 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
8858 #endif
8859 }
8860 {
8861 #if PYTHON_API_VERSION >= 1009
8862 char* tmpPtr; int tmpSize;
8863 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8864 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8865 return NULL;
8866 }
8867 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8868 return NULL;
8869 _arg1 = new wxString(tmpPtr, tmpSize);
8870 #else
8871 if (!PyString_Check(_obj1)) {
8872 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8873 return NULL;
8874 }
8875 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8876 #endif
8877 }
8878 {
8879 wxPy_BEGIN_ALLOW_THREADS;
8880 _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1);
8881
8882 wxPy_END_ALLOW_THREADS;
8883 } _resultobj = Py_BuildValue("i",_result);
8884 {
8885 if (_obj0)
8886 delete _arg0;
8887 }
8888 {
8889 if (_obj1)
8890 delete _arg1;
8891 }
8892 return _resultobj;
8893 }
8894
8895 #define new_wxMimeTypesManager() (new wxMimeTypesManager())
8896 static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
8897 PyObject * _resultobj;
8898 wxMimeTypesManager * _result;
8899 char *_kwnames[] = { NULL };
8900 char _ptemp[128];
8901
8902 self = self;
8903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames))
8904 return NULL;
8905 {
8906 wxPy_BEGIN_ALLOW_THREADS;
8907 _result = (wxMimeTypesManager *)new_wxMimeTypesManager();
8908
8909 wxPy_END_ALLOW_THREADS;
8910 } if (_result) {
8911 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p");
8912 _resultobj = Py_BuildValue("s",_ptemp);
8913 } else {
8914 Py_INCREF(Py_None);
8915 _resultobj = Py_None;
8916 }
8917 return _resultobj;
8918 }
8919
8920 #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1))
8921 static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
8922 PyObject * _resultobj;
8923 wxMimeTypesManager * _arg0;
8924 int _arg1 = (int ) (wxMAILCAP_STANDARD);
8925 wxString * _arg2 = (wxString *) &wxEmptyString;
8926 PyObject * _argo0 = 0;
8927 PyObject * _obj2 = 0;
8928 char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL };
8929
8930 self = self;
8931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2))
8932 return NULL;
8933 if (_argo0) {
8934 if (_argo0 == Py_None) { _arg0 = NULL; }
8935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
8936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p.");
8937 return NULL;
8938 }
8939 }
8940 if (_obj2)
8941 {
8942 #if PYTHON_API_VERSION >= 1009
8943 char* tmpPtr; int tmpSize;
8944 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8945 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8946 return NULL;
8947 }
8948 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8949 return NULL;
8950 _arg2 = new wxString(tmpPtr, tmpSize);
8951 #else
8952 if (!PyString_Check(_obj2)) {
8953 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8954 return NULL;
8955 }
8956 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8957 #endif
8958 }
8959 {
8960 wxPy_BEGIN_ALLOW_THREADS;
8961 wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2);
8962
8963 wxPy_END_ALLOW_THREADS;
8964 } Py_INCREF(Py_None);
8965 _resultobj = Py_None;
8966 {
8967 if (_obj2)
8968 delete _arg2;
8969 }
8970 return _resultobj;
8971 }
8972
8973 #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData())
8974 static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
8975 PyObject * _resultobj;
8976 wxMimeTypesManager * _arg0;
8977 PyObject * _argo0 = 0;
8978 char *_kwnames[] = { "self", NULL };
8979
8980 self = self;
8981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0))
8982 return NULL;
8983 if (_argo0) {
8984 if (_argo0 == Py_None) { _arg0 = NULL; }
8985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
8986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p.");
8987 return NULL;
8988 }
8989 }
8990 {
8991 wxPy_BEGIN_ALLOW_THREADS;
8992 wxMimeTypesManager_ClearData(_arg0);
8993
8994 wxPy_END_ALLOW_THREADS;
8995 } Py_INCREF(Py_None);
8996 _resultobj = Py_None;
8997 return _resultobj;
8998 }
8999
9000 #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0))
9001 static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
9002 PyObject * _resultobj;
9003 wxFileType * _result;
9004 wxMimeTypesManager * _arg0;
9005 wxString * _arg1;
9006 PyObject * _argo0 = 0;
9007 PyObject * _obj1 = 0;
9008 char *_kwnames[] = { "self","ext", NULL };
9009 char _ptemp[128];
9010
9011 self = self;
9012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1))
9013 return NULL;
9014 if (_argo0) {
9015 if (_argo0 == Py_None) { _arg0 = NULL; }
9016 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9017 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p.");
9018 return NULL;
9019 }
9020 }
9021 {
9022 #if PYTHON_API_VERSION >= 1009
9023 char* tmpPtr; int tmpSize;
9024 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9025 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9026 return NULL;
9027 }
9028 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9029 return NULL;
9030 _arg1 = new wxString(tmpPtr, tmpSize);
9031 #else
9032 if (!PyString_Check(_obj1)) {
9033 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9034 return NULL;
9035 }
9036 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9037 #endif
9038 }
9039 {
9040 wxPy_BEGIN_ALLOW_THREADS;
9041 _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1);
9042
9043 wxPy_END_ALLOW_THREADS;
9044 } if (_result) {
9045 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
9046 _resultobj = Py_BuildValue("s",_ptemp);
9047 } else {
9048 Py_INCREF(Py_None);
9049 _resultobj = Py_None;
9050 }
9051 {
9052 if (_obj1)
9053 delete _arg1;
9054 }
9055 return _resultobj;
9056 }
9057
9058 #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0))
9059 static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
9060 PyObject * _resultobj;
9061 wxFileType * _result;
9062 wxMimeTypesManager * _arg0;
9063 wxString * _arg1;
9064 PyObject * _argo0 = 0;
9065 PyObject * _obj1 = 0;
9066 char *_kwnames[] = { "self","mimeType", NULL };
9067 char _ptemp[128];
9068
9069 self = self;
9070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1))
9071 return NULL;
9072 if (_argo0) {
9073 if (_argo0 == Py_None) { _arg0 = NULL; }
9074 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9075 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p.");
9076 return NULL;
9077 }
9078 }
9079 {
9080 #if PYTHON_API_VERSION >= 1009
9081 char* tmpPtr; int tmpSize;
9082 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9083 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9084 return NULL;
9085 }
9086 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9087 return NULL;
9088 _arg1 = new wxString(tmpPtr, tmpSize);
9089 #else
9090 if (!PyString_Check(_obj1)) {
9091 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9092 return NULL;
9093 }
9094 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9095 #endif
9096 }
9097 {
9098 wxPy_BEGIN_ALLOW_THREADS;
9099 _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1);
9100
9101 wxPy_END_ALLOW_THREADS;
9102 } if (_result) {
9103 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
9104 _resultobj = Py_BuildValue("s",_ptemp);
9105 } else {
9106 Py_INCREF(Py_None);
9107 _resultobj = Py_None;
9108 }
9109 {
9110 if (_obj1)
9111 delete _arg1;
9112 }
9113 return _resultobj;
9114 }
9115
9116 #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1))
9117 static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
9118 PyObject * _resultobj;
9119 bool _result;
9120 wxMimeTypesManager * _arg0;
9121 wxString * _arg1;
9122 bool _arg2 = (bool ) FALSE;
9123 PyObject * _argo0 = 0;
9124 PyObject * _obj1 = 0;
9125 int tempbool2 = (int) FALSE;
9126 char *_kwnames[] = { "self","filename","fallback", NULL };
9127
9128 self = self;
9129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2))
9130 return NULL;
9131 if (_argo0) {
9132 if (_argo0 == Py_None) { _arg0 = NULL; }
9133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p.");
9135 return NULL;
9136 }
9137 }
9138 {
9139 #if PYTHON_API_VERSION >= 1009
9140 char* tmpPtr; int tmpSize;
9141 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9142 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9143 return NULL;
9144 }
9145 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9146 return NULL;
9147 _arg1 = new wxString(tmpPtr, tmpSize);
9148 #else
9149 if (!PyString_Check(_obj1)) {
9150 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9151 return NULL;
9152 }
9153 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9154 #endif
9155 }
9156 _arg2 = (bool ) tempbool2;
9157 {
9158 wxPy_BEGIN_ALLOW_THREADS;
9159 _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2);
9160
9161 wxPy_END_ALLOW_THREADS;
9162 } _resultobj = Py_BuildValue("i",_result);
9163 {
9164 if (_obj1)
9165 delete _arg1;
9166 }
9167 return _resultobj;
9168 }
9169
9170 #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0))
9171 static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
9172 PyObject * _resultobj;
9173 bool _result;
9174 wxMimeTypesManager * _arg0;
9175 wxString * _arg1;
9176 PyObject * _argo0 = 0;
9177 PyObject * _obj1 = 0;
9178 char *_kwnames[] = { "self","filename", NULL };
9179
9180 self = self;
9181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1))
9182 return NULL;
9183 if (_argo0) {
9184 if (_argo0 == Py_None) { _arg0 = NULL; }
9185 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9186 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p.");
9187 return NULL;
9188 }
9189 }
9190 {
9191 #if PYTHON_API_VERSION >= 1009
9192 char* tmpPtr; int tmpSize;
9193 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9194 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9195 return NULL;
9196 }
9197 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9198 return NULL;
9199 _arg1 = new wxString(tmpPtr, tmpSize);
9200 #else
9201 if (!PyString_Check(_obj1)) {
9202 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9203 return NULL;
9204 }
9205 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9206 #endif
9207 }
9208 {
9209 wxPy_BEGIN_ALLOW_THREADS;
9210 _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1);
9211
9212 wxPy_END_ALLOW_THREADS;
9213 } _resultobj = Py_BuildValue("i",_result);
9214 {
9215 if (_obj1)
9216 delete _arg1;
9217 }
9218 return _resultobj;
9219 }
9220
9221 static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) {
9222 wxArrayString arr;
9223 self->EnumAllFileTypes(arr);
9224 return wxArrayString2PyList_helper(arr);
9225 }
9226 static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
9227 PyObject * _resultobj;
9228 PyObject * _result;
9229 wxMimeTypesManager * _arg0;
9230 PyObject * _argo0 = 0;
9231 char *_kwnames[] = { "self", NULL };
9232
9233 self = self;
9234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0))
9235 return NULL;
9236 if (_argo0) {
9237 if (_argo0 == Py_None) { _arg0 = NULL; }
9238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p.");
9240 return NULL;
9241 }
9242 }
9243 {
9244 wxPy_BEGIN_ALLOW_THREADS;
9245 _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0);
9246
9247 wxPy_END_ALLOW_THREADS;
9248 }{
9249 _resultobj = _result;
9250 }
9251 return _resultobj;
9252 }
9253
9254 #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0))
9255 static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
9256 PyObject * _resultobj;
9257 wxMimeTypesManager * _arg0;
9258 wxFileTypeInfo * _arg1;
9259 PyObject * _argo0 = 0;
9260 PyObject * _argo1 = 0;
9261 char *_kwnames[] = { "self","ft", NULL };
9262
9263 self = self;
9264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1))
9265 return NULL;
9266 if (_argo0) {
9267 if (_argo0 == Py_None) { _arg0 = NULL; }
9268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p.");
9270 return NULL;
9271 }
9272 }
9273 if (_argo1) {
9274 if (_argo1 == Py_None) { _arg1 = NULL; }
9275 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) {
9276 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p.");
9277 return NULL;
9278 }
9279 }
9280 {
9281 wxPy_BEGIN_ALLOW_THREADS;
9282 wxMimeTypesManager_AddFallback(_arg0,*_arg1);
9283
9284 wxPy_END_ALLOW_THREADS;
9285 } Py_INCREF(Py_None);
9286 _resultobj = Py_None;
9287 return _resultobj;
9288 }
9289
9290 #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0))
9291 static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
9292 PyObject * _resultobj;
9293 wxFileType * _result;
9294 wxMimeTypesManager * _arg0;
9295 wxFileTypeInfo * _arg1;
9296 PyObject * _argo0 = 0;
9297 PyObject * _argo1 = 0;
9298 char *_kwnames[] = { "self","ftInfo", NULL };
9299 char _ptemp[128];
9300
9301 self = self;
9302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1))
9303 return NULL;
9304 if (_argo0) {
9305 if (_argo0 == Py_None) { _arg0 = NULL; }
9306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p.");
9308 return NULL;
9309 }
9310 }
9311 if (_argo1) {
9312 if (_argo1 == Py_None) { _arg1 = NULL; }
9313 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) {
9314 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p.");
9315 return NULL;
9316 }
9317 }
9318 {
9319 wxPy_BEGIN_ALLOW_THREADS;
9320 _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1);
9321
9322 wxPy_END_ALLOW_THREADS;
9323 } if (_result) {
9324 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
9325 _resultobj = Py_BuildValue("s",_ptemp);
9326 } else {
9327 Py_INCREF(Py_None);
9328 _resultobj = Py_None;
9329 }
9330 return _resultobj;
9331 }
9332
9333 #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0))
9334 static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
9335 PyObject * _resultobj;
9336 bool _result;
9337 wxMimeTypesManager * _arg0;
9338 wxFileType * _arg1;
9339 PyObject * _argo0 = 0;
9340 PyObject * _argo1 = 0;
9341 char *_kwnames[] = { "self","ft", NULL };
9342
9343 self = self;
9344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1))
9345 return NULL;
9346 if (_argo0) {
9347 if (_argo0 == Py_None) { _arg0 = NULL; }
9348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p.");
9350 return NULL;
9351 }
9352 }
9353 if (_argo1) {
9354 if (_argo1 == Py_None) { _arg1 = NULL; }
9355 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) {
9356 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p.");
9357 return NULL;
9358 }
9359 }
9360 {
9361 wxPy_BEGIN_ALLOW_THREADS;
9362 _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1);
9363
9364 wxPy_END_ALLOW_THREADS;
9365 } _resultobj = Py_BuildValue("i",_result);
9366 return _resultobj;
9367 }
9368
9369 #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj)
9370 static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
9371 PyObject * _resultobj;
9372 wxMimeTypesManager * _arg0;
9373 PyObject * _argo0 = 0;
9374 char *_kwnames[] = { "self", NULL };
9375
9376 self = self;
9377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0))
9378 return NULL;
9379 if (_argo0) {
9380 if (_argo0 == Py_None) { _arg0 = NULL; }
9381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p.");
9383 return NULL;
9384 }
9385 }
9386 {
9387 wxPy_BEGIN_ALLOW_THREADS;
9388 delete_wxMimeTypesManager(_arg0);
9389
9390 wxPy_END_ALLOW_THREADS;
9391 } Py_INCREF(Py_None);
9392 _resultobj = Py_None;
9393 return _resultobj;
9394 }
9395
9396 static void *SwigwxFileHistoryTowxObject(void *ptr) {
9397 wxFileHistory *src;
9398 wxObject *dest;
9399 src = (wxFileHistory *) ptr;
9400 dest = (wxObject *) src;
9401 return (void *) dest;
9402 }
9403
9404 #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0))
9405 static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
9406 PyObject * _resultobj;
9407 wxFileHistory * _result;
9408 int _arg0 = (int ) 9;
9409 char *_kwnames[] = { "maxFiles", NULL };
9410 char _ptemp[128];
9411
9412 self = self;
9413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0))
9414 return NULL;
9415 {
9416 wxPy_BEGIN_ALLOW_THREADS;
9417 _result = (wxFileHistory *)new_wxFileHistory(_arg0);
9418
9419 wxPy_END_ALLOW_THREADS;
9420 } if (_result) {
9421 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p");
9422 _resultobj = Py_BuildValue("s",_ptemp);
9423 } else {
9424 Py_INCREF(Py_None);
9425 _resultobj = Py_None;
9426 }
9427 return _resultobj;
9428 }
9429
9430 #define delete_wxFileHistory(_swigobj) (delete _swigobj)
9431 static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
9432 PyObject * _resultobj;
9433 wxFileHistory * _arg0;
9434 PyObject * _argo0 = 0;
9435 char *_kwnames[] = { "self", NULL };
9436
9437 self = self;
9438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0))
9439 return NULL;
9440 if (_argo0) {
9441 if (_argo0 == Py_None) { _arg0 = NULL; }
9442 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9443 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p.");
9444 return NULL;
9445 }
9446 }
9447 {
9448 wxPy_BEGIN_ALLOW_THREADS;
9449 delete_wxFileHistory(_arg0);
9450
9451 wxPy_END_ALLOW_THREADS;
9452 } Py_INCREF(Py_None);
9453 _resultobj = Py_None;
9454 return _resultobj;
9455 }
9456
9457 #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0))
9458 static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
9459 PyObject * _resultobj;
9460 wxFileHistory * _arg0;
9461 wxString * _arg1;
9462 PyObject * _argo0 = 0;
9463 PyObject * _obj1 = 0;
9464 char *_kwnames[] = { "self","file", NULL };
9465
9466 self = self;
9467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1))
9468 return NULL;
9469 if (_argo0) {
9470 if (_argo0 == Py_None) { _arg0 = NULL; }
9471 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9472 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p.");
9473 return NULL;
9474 }
9475 }
9476 {
9477 #if PYTHON_API_VERSION >= 1009
9478 char* tmpPtr; int tmpSize;
9479 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9480 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9481 return NULL;
9482 }
9483 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9484 return NULL;
9485 _arg1 = new wxString(tmpPtr, tmpSize);
9486 #else
9487 if (!PyString_Check(_obj1)) {
9488 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9489 return NULL;
9490 }
9491 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9492 #endif
9493 }
9494 {
9495 wxPy_BEGIN_ALLOW_THREADS;
9496 wxFileHistory_AddFileToHistory(_arg0,*_arg1);
9497
9498 wxPy_END_ALLOW_THREADS;
9499 } Py_INCREF(Py_None);
9500 _resultobj = Py_None;
9501 {
9502 if (_obj1)
9503 delete _arg1;
9504 }
9505 return _resultobj;
9506 }
9507
9508 #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0))
9509 static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
9510 PyObject * _resultobj;
9511 wxFileHistory * _arg0;
9512 int _arg1;
9513 PyObject * _argo0 = 0;
9514 char *_kwnames[] = { "self","i", NULL };
9515
9516 self = self;
9517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1))
9518 return NULL;
9519 if (_argo0) {
9520 if (_argo0 == Py_None) { _arg0 = NULL; }
9521 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p.");
9523 return NULL;
9524 }
9525 }
9526 {
9527 wxPy_BEGIN_ALLOW_THREADS;
9528 wxFileHistory_RemoveFileFromHistory(_arg0,_arg1);
9529
9530 wxPy_END_ALLOW_THREADS;
9531 } Py_INCREF(Py_None);
9532 _resultobj = Py_None;
9533 return _resultobj;
9534 }
9535
9536 #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles())
9537 static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
9538 PyObject * _resultobj;
9539 int _result;
9540 wxFileHistory * _arg0;
9541 PyObject * _argo0 = 0;
9542 char *_kwnames[] = { "self", NULL };
9543
9544 self = self;
9545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0))
9546 return NULL;
9547 if (_argo0) {
9548 if (_argo0 == Py_None) { _arg0 = NULL; }
9549 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9550 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p.");
9551 return NULL;
9552 }
9553 }
9554 {
9555 wxPy_BEGIN_ALLOW_THREADS;
9556 _result = (int )wxFileHistory_GetMaxFiles(_arg0);
9557
9558 wxPy_END_ALLOW_THREADS;
9559 } _resultobj = Py_BuildValue("i",_result);
9560 return _resultobj;
9561 }
9562
9563 #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0))
9564 static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9565 PyObject * _resultobj;
9566 wxFileHistory * _arg0;
9567 wxMenu * _arg1;
9568 PyObject * _argo0 = 0;
9569 PyObject * _argo1 = 0;
9570 char *_kwnames[] = { "self","menu", NULL };
9571
9572 self = self;
9573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1))
9574 return NULL;
9575 if (_argo0) {
9576 if (_argo0 == Py_None) { _arg0 = NULL; }
9577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p.");
9579 return NULL;
9580 }
9581 }
9582 if (_argo1) {
9583 if (_argo1 == Py_None) { _arg1 = NULL; }
9584 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9585 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p.");
9586 return NULL;
9587 }
9588 }
9589 {
9590 wxPy_BEGIN_ALLOW_THREADS;
9591 wxFileHistory_UseMenu(_arg0,_arg1);
9592
9593 wxPy_END_ALLOW_THREADS;
9594 } Py_INCREF(Py_None);
9595 _resultobj = Py_None;
9596 return _resultobj;
9597 }
9598
9599 #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0))
9600 static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9601 PyObject * _resultobj;
9602 wxFileHistory * _arg0;
9603 wxMenu * _arg1;
9604 PyObject * _argo0 = 0;
9605 PyObject * _argo1 = 0;
9606 char *_kwnames[] = { "self","menu", NULL };
9607
9608 self = self;
9609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1))
9610 return NULL;
9611 if (_argo0) {
9612 if (_argo0 == Py_None) { _arg0 = NULL; }
9613 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9614 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p.");
9615 return NULL;
9616 }
9617 }
9618 if (_argo1) {
9619 if (_argo1 == Py_None) { _arg1 = NULL; }
9620 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9621 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p.");
9622 return NULL;
9623 }
9624 }
9625 {
9626 wxPy_BEGIN_ALLOW_THREADS;
9627 wxFileHistory_RemoveMenu(_arg0,_arg1);
9628
9629 wxPy_END_ALLOW_THREADS;
9630 } Py_INCREF(Py_None);
9631 _resultobj = Py_None;
9632 return _resultobj;
9633 }
9634
9635 #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
9636 static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
9637 PyObject * _resultobj;
9638 wxFileHistory * _arg0;
9639 wxConfigBase * _arg1;
9640 PyObject * _argo0 = 0;
9641 PyObject * _argo1 = 0;
9642 char *_kwnames[] = { "self","config", NULL };
9643
9644 self = self;
9645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1))
9646 return NULL;
9647 if (_argo0) {
9648 if (_argo0 == Py_None) { _arg0 = NULL; }
9649 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p.");
9651 return NULL;
9652 }
9653 }
9654 if (_argo1) {
9655 if (_argo1 == Py_None) { _arg1 = NULL; }
9656 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
9657 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p.");
9658 return NULL;
9659 }
9660 }
9661 {
9662 wxPy_BEGIN_ALLOW_THREADS;
9663 wxFileHistory_Load(_arg0,*_arg1);
9664
9665 wxPy_END_ALLOW_THREADS;
9666 } Py_INCREF(Py_None);
9667 _resultobj = Py_None;
9668 return _resultobj;
9669 }
9670
9671 #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0))
9672 static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
9673 PyObject * _resultobj;
9674 wxFileHistory * _arg0;
9675 wxConfigBase * _arg1;
9676 PyObject * _argo0 = 0;
9677 PyObject * _argo1 = 0;
9678 char *_kwnames[] = { "self","config", NULL };
9679
9680 self = self;
9681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1))
9682 return NULL;
9683 if (_argo0) {
9684 if (_argo0 == Py_None) { _arg0 = NULL; }
9685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p.");
9687 return NULL;
9688 }
9689 }
9690 if (_argo1) {
9691 if (_argo1 == Py_None) { _arg1 = NULL; }
9692 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
9693 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p.");
9694 return NULL;
9695 }
9696 }
9697 {
9698 wxPy_BEGIN_ALLOW_THREADS;
9699 wxFileHistory_Save(_arg0,*_arg1);
9700
9701 wxPy_END_ALLOW_THREADS;
9702 } Py_INCREF(Py_None);
9703 _resultobj = Py_None;
9704 return _resultobj;
9705 }
9706
9707 #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu())
9708 static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9709 PyObject * _resultobj;
9710 wxFileHistory * _arg0;
9711 PyObject * _argo0 = 0;
9712 char *_kwnames[] = { "self", NULL };
9713
9714 self = self;
9715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0))
9716 return NULL;
9717 if (_argo0) {
9718 if (_argo0 == Py_None) { _arg0 = NULL; }
9719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p.");
9721 return NULL;
9722 }
9723 }
9724 {
9725 wxPy_BEGIN_ALLOW_THREADS;
9726 wxFileHistory_AddFilesToMenu(_arg0);
9727
9728 wxPy_END_ALLOW_THREADS;
9729 } Py_INCREF(Py_None);
9730 _resultobj = Py_None;
9731 return _resultobj;
9732 }
9733
9734 #define wxFileHistory_AddFilesToSingleMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0))
9735 static PyObject *_wrap_wxFileHistory_AddFilesToSingleMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9736 PyObject * _resultobj;
9737 wxFileHistory * _arg0;
9738 wxMenu * _arg1;
9739 PyObject * _argo0 = 0;
9740 PyObject * _argo1 = 0;
9741 char *_kwnames[] = { "self","menu", NULL };
9742
9743 self = self;
9744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToSingleMenu",_kwnames,&_argo0,&_argo1))
9745 return NULL;
9746 if (_argo0) {
9747 if (_argo0 == Py_None) { _arg0 = NULL; }
9748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToSingleMenu. Expected _wxFileHistory_p.");
9750 return NULL;
9751 }
9752 }
9753 if (_argo1) {
9754 if (_argo1 == Py_None) { _arg1 = NULL; }
9755 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9756 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToSingleMenu. Expected _wxMenu_p.");
9757 return NULL;
9758 }
9759 }
9760 {
9761 wxPy_BEGIN_ALLOW_THREADS;
9762 wxFileHistory_AddFilesToSingleMenu(_arg0,_arg1);
9763
9764 wxPy_END_ALLOW_THREADS;
9765 } Py_INCREF(Py_None);
9766 _resultobj = Py_None;
9767 return _resultobj;
9768 }
9769
9770 #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0))
9771 static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9772 PyObject * _resultobj;
9773 wxString * _result;
9774 wxFileHistory * _arg0;
9775 int _arg1;
9776 PyObject * _argo0 = 0;
9777 char *_kwnames[] = { "self","i", NULL };
9778
9779 self = self;
9780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1))
9781 return NULL;
9782 if (_argo0) {
9783 if (_argo0 == Py_None) { _arg0 = NULL; }
9784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p.");
9786 return NULL;
9787 }
9788 }
9789 {
9790 wxPy_BEGIN_ALLOW_THREADS;
9791 _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1));
9792
9793 wxPy_END_ALLOW_THREADS;
9794 }{
9795 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9796 }
9797 {
9798 delete _result;
9799 }
9800 return _resultobj;
9801 }
9802
9803 #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount())
9804 static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9805 PyObject * _resultobj;
9806 int _result;
9807 wxFileHistory * _arg0;
9808 PyObject * _argo0 = 0;
9809 char *_kwnames[] = { "self", NULL };
9810
9811 self = self;
9812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0))
9813 return NULL;
9814 if (_argo0) {
9815 if (_argo0 == Py_None) { _arg0 = NULL; }
9816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p.");
9818 return NULL;
9819 }
9820 }
9821 {
9822 wxPy_BEGIN_ALLOW_THREADS;
9823 _result = (int )wxFileHistory_GetCount(_arg0);
9824
9825 wxPy_END_ALLOW_THREADS;
9826 } _resultobj = Py_BuildValue("i",_result);
9827 return _resultobj;
9828 }
9829
9830 #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles())
9831 static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
9832 PyObject * _resultobj;
9833 int _result;
9834 wxFileHistory * _arg0;
9835 PyObject * _argo0 = 0;
9836 char *_kwnames[] = { "self", NULL };
9837
9838 self = self;
9839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0))
9840 return NULL;
9841 if (_argo0) {
9842 if (_argo0 == Py_None) { _arg0 = NULL; }
9843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p.");
9845 return NULL;
9846 }
9847 }
9848 {
9849 wxPy_BEGIN_ALLOW_THREADS;
9850 _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0);
9851
9852 wxPy_END_ALLOW_THREADS;
9853 } _resultobj = Py_BuildValue("i",_result);
9854 return _resultobj;
9855 }
9856
9857 static PyMethodDef misc2cMethods[] = {
9858 { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS },
9859 { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
9860 { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
9861 { "wxFileHistory_AddFilesToSingleMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToSingleMenu, METH_VARARGS | METH_KEYWORDS },
9862 { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
9863 { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS },
9864 { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS },
9865 { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
9866 { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
9867 { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
9868 { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
9869 { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
9870 { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS },
9871 { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS },
9872 { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS },
9873 { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
9874 { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
9875 { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
9876 { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
9877 { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
9878 { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
9879 { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
9880 { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
9881 { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
9882 { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
9883 { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS },
9884 { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
9885 { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS },
9886 { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
9887 { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
9888 { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
9889 { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
9890 { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
9891 { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
9892 { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
9893 { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
9894 { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
9895 { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
9896 { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
9897 { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
9898 { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
9899 { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS },
9900 { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
9901 { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
9902 { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
9903 { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
9904 { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
9905 { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
9906 { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
9907 { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
9908 { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
9909 { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
9910 { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
9911 { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
9912 { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
9913 { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
9914 { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
9915 { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS },
9916 { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS },
9917 { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS },
9918 { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS },
9919 { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
9920 { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
9921 { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
9922 { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
9923 { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
9924 { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS },
9925 { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS },
9926 { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS },
9927 { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
9928 { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
9929 { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
9930 { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
9931 { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
9932 { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
9933 { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
9934 { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
9935 { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
9936 { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
9937 { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
9938 { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
9939 { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
9940 { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
9941 { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
9942 { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
9943 { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
9944 { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
9945 { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
9946 { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
9947 { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
9948 { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
9949 { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
9950 { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS },
9951 { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
9952 { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
9953 { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
9954 { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
9955 { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
9956 { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
9957 { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
9958 { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
9959 { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
9960 { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
9961 { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS },
9962 { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS },
9963 { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS },
9964 { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
9965 { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
9966 { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS },
9967 { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS },
9968 { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS },
9969 { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS },
9970 { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
9971 { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
9972 { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS },
9973 { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS },
9974 { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
9975 { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
9976 { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
9977 { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
9978 { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
9979 { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
9980 { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS },
9981 { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS },
9982 { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
9983 { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS },
9984 { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
9985 { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
9986 { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
9987 { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
9988 { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS },
9989 { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS },
9990 { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS },
9991 { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
9992 { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
9993 { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
9994 { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
9995 { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS },
9996 { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS },
9997 { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS },
9998 { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS },
9999 { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS },
10000 { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS },
10001 { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
10002 { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
10003 { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS },
10004 { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
10005 { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
10006 { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
10007 { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
10008 { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
10009 { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
10010 { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
10011 { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS },
10012 { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS },
10013 { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS },
10014 { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
10015 { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
10016 { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS },
10017 { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS },
10018 { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS },
10019 { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS },
10020 { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS },
10021 { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS },
10022 { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS },
10023 { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS },
10024 { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
10025 { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
10026 { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS },
10027 { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS },
10028 { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS },
10029 { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS },
10030 { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS },
10031 { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS },
10032 { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
10033 { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS },
10034 { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS },
10035 { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS },
10036 { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
10037 { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
10038 { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS },
10039 { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS },
10040 { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS },
10041 { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
10042 { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS },
10043 { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
10044 { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
10045 { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS },
10046 { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS },
10047 { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS },
10048 { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS },
10049 { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS },
10050 { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS },
10051 { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS },
10052 { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
10053 { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
10054 { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS },
10055 { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
10056 { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
10057 { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS },
10058 { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS },
10059 { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS },
10060 { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS },
10061 { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
10062 { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
10063 { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
10064 { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
10065 { "wxFontEnumerator__setCallbackInfo", (PyCFunction) _wrap_wxFontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
10066 { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS },
10067 { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS },
10068 { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS },
10069 { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS },
10070 { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS },
10071 { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
10072 { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS },
10073 { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS },
10074 { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS },
10075 { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS },
10076 { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
10077 { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS },
10078 { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
10079 { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS },
10080 { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS },
10081 { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS },
10082 { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS },
10083 { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
10084 { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
10085 { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
10086 { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
10087 { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
10088 { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS },
10089 { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS },
10090 { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS },
10091 { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS },
10092 { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS },
10093 { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS },
10094 { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS },
10095 { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS },
10096 { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS },
10097 { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS },
10098 { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS },
10099 { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS },
10100 { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS },
10101 { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS },
10102 { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
10103 { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS },
10104 { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS },
10105 { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
10106 { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
10107 { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
10108 { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS },
10109 { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS },
10110 { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS },
10111 { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
10112 { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
10113 { "wxSystemSettings_GetSystemMetric", (PyCFunction) _wrap_wxSystemSettings_GetSystemMetric, METH_VARARGS | METH_KEYWORDS },
10114 { "wxSystemSettings_GetSystemFont", (PyCFunction) _wrap_wxSystemSettings_GetSystemFont, METH_VARARGS | METH_KEYWORDS },
10115 { "wxSystemSettings_GetSystemColour", (PyCFunction) _wrap_wxSystemSettings_GetSystemColour, METH_VARARGS | METH_KEYWORDS },
10116 { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS },
10117 { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS },
10118 { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS },
10119 { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS },
10120 { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS },
10121 { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS },
10122 { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS },
10123 { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS },
10124 { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS },
10125 { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS },
10126 { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS },
10127 { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
10128 { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
10129 { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS },
10130 { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
10131 { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS },
10132 { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS },
10133 { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS },
10134 { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
10135 { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
10136 { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
10137 { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
10138 { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS },
10139 { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS },
10140 { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
10141 { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS },
10142 { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS },
10143 { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
10144 { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS },
10145 { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
10146 { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS },
10147 { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
10148 { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS },
10149 { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS },
10150 { NULL, NULL }
10151 };
10152 #ifdef __cplusplus
10153 }
10154 #endif
10155 /*
10156 * This table is used by the pointer type-checker
10157 */
10158 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
10159 { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent},
10160 { "_signed_long","_long",0},
10161 { "_wxPrintQuality","_wxCoord",0},
10162 { "_wxPrintQuality","_int",0},
10163 { "_wxPrintQuality","_signed_int",0},
10164 { "_wxPrintQuality","_unsigned_int",0},
10165 { "_wxPrintQuality","_wxWindowID",0},
10166 { "_wxPrintQuality","_uint",0},
10167 { "_wxPrintQuality","_EBool",0},
10168 { "_wxPrintQuality","_size_t",0},
10169 { "_wxPrintQuality","_time_t",0},
10170 { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog},
10171 { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog},
10172 { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog},
10173 { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog},
10174 { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog},
10175 { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog},
10176 { "_byte","_unsigned_char",0},
10177 { "_long","_unsigned_long",0},
10178 { "_long","_signed_long",0},
10179 { "_size_t","_wxCoord",0},
10180 { "_size_t","_wxPrintQuality",0},
10181 { "_size_t","_time_t",0},
10182 { "_size_t","_unsigned_int",0},
10183 { "_size_t","_int",0},
10184 { "_size_t","_wxWindowID",0},
10185 { "_size_t","_uint",0},
10186 { "_uint","_wxCoord",0},
10187 { "_uint","_wxPrintQuality",0},
10188 { "_uint","_time_t",0},
10189 { "_uint","_size_t",0},
10190 { "_uint","_unsigned_int",0},
10191 { "_uint","_int",0},
10192 { "_uint","_wxWindowID",0},
10193 { "_wxChar","_char",0},
10194 { "_char","_wxChar",0},
10195 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10196 { "_EBool","_wxCoord",0},
10197 { "_EBool","_wxPrintQuality",0},
10198 { "_EBool","_signed_int",0},
10199 { "_EBool","_int",0},
10200 { "_EBool","_wxWindowID",0},
10201 { "_unsigned_long","_long",0},
10202 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10203 { "_signed_int","_wxCoord",0},
10204 { "_signed_int","_wxPrintQuality",0},
10205 { "_signed_int","_EBool",0},
10206 { "_signed_int","_wxWindowID",0},
10207 { "_signed_int","_int",0},
10208 { "_WXTYPE","_wxDateTime_t",0},
10209 { "_WXTYPE","_short",0},
10210 { "_WXTYPE","_signed_short",0},
10211 { "_WXTYPE","_unsigned_short",0},
10212 { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider},
10213 { "_unsigned_short","_wxDateTime_t",0},
10214 { "_unsigned_short","_WXTYPE",0},
10215 { "_unsigned_short","_short",0},
10216 { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject},
10217 { "_wxObject","_wxWave",SwigwxWaveTowxObject},
10218 { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject},
10219 { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject},
10220 { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject},
10221 { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject},
10222 { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject},
10223 { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject},
10224 { "_signed_short","_WXTYPE",0},
10225 { "_signed_short","_short",0},
10226 { "_unsigned_char","_byte",0},
10227 { "_unsigned_int","_wxCoord",0},
10228 { "_unsigned_int","_wxPrintQuality",0},
10229 { "_unsigned_int","_time_t",0},
10230 { "_unsigned_int","_size_t",0},
10231 { "_unsigned_int","_uint",0},
10232 { "_unsigned_int","_wxWindowID",0},
10233 { "_unsigned_int","_int",0},
10234 { "_short","_wxDateTime_t",0},
10235 { "_short","_WXTYPE",0},
10236 { "_short","_unsigned_short",0},
10237 { "_short","_signed_short",0},
10238 { "_wxWindowID","_wxCoord",0},
10239 { "_wxWindowID","_wxPrintQuality",0},
10240 { "_wxWindowID","_time_t",0},
10241 { "_wxWindowID","_size_t",0},
10242 { "_wxWindowID","_EBool",0},
10243 { "_wxWindowID","_uint",0},
10244 { "_wxWindowID","_int",0},
10245 { "_wxWindowID","_signed_int",0},
10246 { "_wxWindowID","_unsigned_int",0},
10247 { "_int","_wxCoord",0},
10248 { "_int","_wxPrintQuality",0},
10249 { "_int","_time_t",0},
10250 { "_int","_size_t",0},
10251 { "_int","_EBool",0},
10252 { "_int","_uint",0},
10253 { "_int","_wxWindowID",0},
10254 { "_int","_unsigned_int",0},
10255 { "_int","_signed_int",0},
10256 { "_wxDateTime_t","_unsigned_short",0},
10257 { "_wxDateTime_t","_short",0},
10258 { "_wxDateTime_t","_WXTYPE",0},
10259 { "_time_t","_wxCoord",0},
10260 { "_time_t","_wxPrintQuality",0},
10261 { "_time_t","_unsigned_int",0},
10262 { "_time_t","_int",0},
10263 { "_time_t","_wxWindowID",0},
10264 { "_time_t","_uint",0},
10265 { "_time_t","_size_t",0},
10266 { "_wxCoord","_int",0},
10267 { "_wxCoord","_signed_int",0},
10268 { "_wxCoord","_unsigned_int",0},
10269 { "_wxCoord","_wxWindowID",0},
10270 { "_wxCoord","_uint",0},
10271 { "_wxCoord","_EBool",0},
10272 { "_wxCoord","_size_t",0},
10273 { "_wxCoord","_time_t",0},
10274 { "_wxCoord","_wxPrintQuality",0},
10275 { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler},
10276 {0,0,0}};
10277
10278 static PyObject *SWIG_globals;
10279 #ifdef __cplusplus
10280 extern "C"
10281 #endif
10282 SWIGEXPORT(void) initmisc2c() {
10283 PyObject *m, *d;
10284 SWIG_globals = SWIG_newvarlink();
10285 m = Py_InitModule("misc2c", misc2cMethods);
10286 d = PyModule_GetDict(m);
10287 PyDict_SetItemString(d,"wxSYS_WHITE_BRUSH", PyInt_FromLong((long) wxSYS_WHITE_BRUSH));
10288 PyDict_SetItemString(d,"wxSYS_LTGRAY_BRUSH", PyInt_FromLong((long) wxSYS_LTGRAY_BRUSH));
10289 PyDict_SetItemString(d,"wxSYS_GRAY_BRUSH", PyInt_FromLong((long) wxSYS_GRAY_BRUSH));
10290 PyDict_SetItemString(d,"wxSYS_DKGRAY_BRUSH", PyInt_FromLong((long) wxSYS_DKGRAY_BRUSH));
10291 PyDict_SetItemString(d,"wxSYS_BLACK_BRUSH", PyInt_FromLong((long) wxSYS_BLACK_BRUSH));
10292 PyDict_SetItemString(d,"wxSYS_NULL_BRUSH", PyInt_FromLong((long) wxSYS_NULL_BRUSH));
10293 PyDict_SetItemString(d,"wxSYS_HOLLOW_BRUSH", PyInt_FromLong((long) wxSYS_HOLLOW_BRUSH));
10294 PyDict_SetItemString(d,"wxSYS_WHITE_PEN", PyInt_FromLong((long) wxSYS_WHITE_PEN));
10295 PyDict_SetItemString(d,"wxSYS_BLACK_PEN", PyInt_FromLong((long) wxSYS_BLACK_PEN));
10296 PyDict_SetItemString(d,"wxSYS_NULL_PEN", PyInt_FromLong((long) wxSYS_NULL_PEN));
10297 PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT));
10298 PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT));
10299 PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT));
10300 PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT));
10301 PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT));
10302 PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE));
10303 PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT));
10304 PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT));
10305 PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR));
10306 PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND));
10307 PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION));
10308 PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION));
10309 PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU));
10310 PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW));
10311 PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME));
10312 PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT));
10313 PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT));
10314 PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT));
10315 PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER));
10316 PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER));
10317 PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE));
10318 PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT));
10319 PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT));
10320 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE));
10321 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW));
10322 PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT));
10323 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT));
10324 PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT));
10325 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT));
10326 PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW));
10327 PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT));
10328 PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT));
10329 PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK));
10330 PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP));
10331 PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE));
10332 PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW));
10333 PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT));
10334 PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT));
10335 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT));
10336 PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS));
10337 PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X));
10338 PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y));
10339 PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X));
10340 PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y));
10341 PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X));
10342 PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y));
10343 PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X));
10344 PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y));
10345 PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X));
10346 PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y));
10347 PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X));
10348 PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y));
10349 PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X));
10350 PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X));
10351 PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y));
10352 PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X));
10353 PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y));
10354 PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X));
10355 PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y));
10356 PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X));
10357 PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y));
10358 PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X));
10359 PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y));
10360 PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X));
10361 PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y));
10362 PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y));
10363 PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X));
10364 PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X));
10365 PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y));
10366 PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y));
10367 PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y));
10368 PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y));
10369 PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT));
10370 PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT));
10371 PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS));
10372 PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS));
10373 PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError));
10374 PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error));
10375 PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning));
10376 PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message));
10377 PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info));
10378 PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status));
10379 PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug));
10380 PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace));
10381 PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress));
10382 PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User));
10383 PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS));
10384 PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD));
10385 PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE));
10386 PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE));
10387 PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME));
10388 PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL));
10389 PyDict_SetItemString(d,"cvar", SWIG_globals);
10390 SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set);
10391
10392 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
10393 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
10394 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
10395 {
10396 int i;
10397 for (i = 0; _swig_mapping[i].n1; i++)
10398 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
10399 }
10400 }