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