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