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