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