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