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