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