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