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