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