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