]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/misc2.cpp
SWIGged updates for wxGTK
[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 #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages())
4688 static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
4689 PyObject * _resultobj;
4690 bool _result;
4691 wxLog * _arg0;
4692 PyObject * _argo0 = 0;
4693 char *_kwnames[] = { "self", NULL };
4694
4695 self = self;
4696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0))
4697 return NULL;
4698 if (_argo0) {
4699 if (_argo0 == Py_None) { _arg0 = NULL; }
4700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p.");
4702 return NULL;
4703 }
4704 }
4705 {
4706 PyThreadState* __tstate = wxPyBeginAllowThreads();
4707 _result = (bool )wxLog_HasPendingMessages(_arg0);
4708
4709 wxPyEndAllowThreads(__tstate);
4710 if (PyErr_Occurred()) return NULL;
4711 } _resultobj = Py_BuildValue("i",_result);
4712 return _resultobj;
4713 }
4714
4715 static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
4716 PyObject * _resultobj;
4717 char *_kwnames[] = { NULL };
4718
4719 self = self;
4720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames))
4721 return NULL;
4722 {
4723 PyThreadState* __tstate = wxPyBeginAllowThreads();
4724 wxLog::FlushActive();
4725
4726 wxPyEndAllowThreads(__tstate);
4727 if (PyErr_Occurred()) return NULL;
4728 } Py_INCREF(Py_None);
4729 _resultobj = Py_None;
4730 return _resultobj;
4731 }
4732
4733 static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
4734 PyObject * _resultobj;
4735 wxLog * _result;
4736 char *_kwnames[] = { NULL };
4737 char _ptemp[128];
4738
4739 self = self;
4740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames))
4741 return NULL;
4742 {
4743 PyThreadState* __tstate = wxPyBeginAllowThreads();
4744 _result = (wxLog *)wxLog::GetActiveTarget();
4745
4746 wxPyEndAllowThreads(__tstate);
4747 if (PyErr_Occurred()) return NULL;
4748 } if (_result) {
4749 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
4750 _resultobj = Py_BuildValue("s",_ptemp);
4751 } else {
4752 Py_INCREF(Py_None);
4753 _resultobj = Py_None;
4754 }
4755 return _resultobj;
4756 }
4757
4758 static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
4759 PyObject * _resultobj;
4760 wxLog * _result;
4761 wxLog * _arg0;
4762 PyObject * _argo0 = 0;
4763 char *_kwnames[] = { "pLogger", NULL };
4764 char _ptemp[128];
4765
4766 self = self;
4767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0))
4768 return NULL;
4769 if (_argo0) {
4770 if (_argo0 == Py_None) { _arg0 = NULL; }
4771 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4772 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p.");
4773 return NULL;
4774 }
4775 }
4776 {
4777 PyThreadState* __tstate = wxPyBeginAllowThreads();
4778 _result = (wxLog *)wxLog::SetActiveTarget(_arg0);
4779
4780 wxPyEndAllowThreads(__tstate);
4781 if (PyErr_Occurred()) return NULL;
4782 } if (_result) {
4783 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
4784 _resultobj = Py_BuildValue("s",_ptemp);
4785 } else {
4786 Py_INCREF(Py_None);
4787 _resultobj = Py_None;
4788 }
4789 return _resultobj;
4790 }
4791
4792 static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
4793 PyObject * _resultobj;
4794 char *_kwnames[] = { NULL };
4795
4796 self = self;
4797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames))
4798 return NULL;
4799 {
4800 PyThreadState* __tstate = wxPyBeginAllowThreads();
4801 wxLog::Suspend();
4802
4803 wxPyEndAllowThreads(__tstate);
4804 if (PyErr_Occurred()) return NULL;
4805 } Py_INCREF(Py_None);
4806 _resultobj = Py_None;
4807 return _resultobj;
4808 }
4809
4810 static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
4811 PyObject * _resultobj;
4812 char *_kwnames[] = { NULL };
4813
4814 self = self;
4815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames))
4816 return NULL;
4817 {
4818 PyThreadState* __tstate = wxPyBeginAllowThreads();
4819 wxLog::Resume();
4820
4821 wxPyEndAllowThreads(__tstate);
4822 if (PyErr_Occurred()) return NULL;
4823 } Py_INCREF(Py_None);
4824 _resultobj = Py_None;
4825 return _resultobj;
4826 }
4827
4828 static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
4829 PyObject * _resultobj;
4830 bool _arg0 = (bool ) TRUE;
4831 int tempbool0 = (int) TRUE;
4832 char *_kwnames[] = { "bVerbose", NULL };
4833
4834 self = self;
4835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_SetVerbose",_kwnames,&tempbool0))
4836 return NULL;
4837 _arg0 = (bool ) tempbool0;
4838 {
4839 PyThreadState* __tstate = wxPyBeginAllowThreads();
4840 wxLog::SetVerbose(_arg0);
4841
4842 wxPyEndAllowThreads(__tstate);
4843 if (PyErr_Occurred()) return NULL;
4844 } Py_INCREF(Py_None);
4845 _resultobj = Py_None;
4846 return _resultobj;
4847 }
4848
4849 static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
4850 PyObject * _resultobj;
4851 char *_kwnames[] = { NULL };
4852
4853 self = self;
4854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames))
4855 return NULL;
4856 {
4857 PyThreadState* __tstate = wxPyBeginAllowThreads();
4858 wxLog::DontCreateOnDemand();
4859
4860 wxPyEndAllowThreads(__tstate);
4861 if (PyErr_Occurred()) return NULL;
4862 } Py_INCREF(Py_None);
4863 _resultobj = Py_None;
4864 return _resultobj;
4865 }
4866
4867 static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4868 PyObject * _resultobj;
4869 long _arg0;
4870 char *_kwnames[] = { "ulMask", NULL };
4871
4872 self = self;
4873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxLog_SetTraceMask",_kwnames,&_arg0))
4874 return NULL;
4875 {
4876 PyThreadState* __tstate = wxPyBeginAllowThreads();
4877 wxLog::SetTraceMask(_arg0);
4878
4879 wxPyEndAllowThreads(__tstate);
4880 if (PyErr_Occurred()) return NULL;
4881 } Py_INCREF(Py_None);
4882 _resultobj = Py_None;
4883 return _resultobj;
4884 }
4885
4886 static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4887 PyObject * _resultobj;
4888 wxString * _arg0;
4889 PyObject * _obj0 = 0;
4890 char *_kwnames[] = { "str", NULL };
4891
4892 self = self;
4893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0))
4894 return NULL;
4895 {
4896 _arg0 = wxString_in_helper(_obj0);
4897 if (_arg0 == NULL)
4898 return NULL;
4899 }
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 wxLog::AddTraceMask(*_arg0);
4903
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) return NULL;
4906 } Py_INCREF(Py_None);
4907 _resultobj = Py_None;
4908 {
4909 if (_obj0)
4910 delete _arg0;
4911 }
4912 return _resultobj;
4913 }
4914
4915 static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4916 PyObject * _resultobj;
4917 wxString * _arg0;
4918 PyObject * _obj0 = 0;
4919 char *_kwnames[] = { "str", NULL };
4920
4921 self = self;
4922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0))
4923 return NULL;
4924 {
4925 _arg0 = wxString_in_helper(_obj0);
4926 if (_arg0 == NULL)
4927 return NULL;
4928 }
4929 {
4930 PyThreadState* __tstate = wxPyBeginAllowThreads();
4931 wxLog::RemoveTraceMask(*_arg0);
4932
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) return NULL;
4935 } Py_INCREF(Py_None);
4936 _resultobj = Py_None;
4937 {
4938 if (_obj0)
4939 delete _arg0;
4940 }
4941 return _resultobj;
4942 }
4943
4944 static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
4945 PyObject * _resultobj;
4946 char *_kwnames[] = { NULL };
4947
4948 self = self;
4949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames))
4950 return NULL;
4951 {
4952 PyThreadState* __tstate = wxPyBeginAllowThreads();
4953 wxLog::ClearTraceMasks();
4954
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) return NULL;
4957 } Py_INCREF(Py_None);
4958 _resultobj = Py_None;
4959 return _resultobj;
4960 }
4961
4962 static PyObject *_wrap_wxLog_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
4963 PyObject * _resultobj;
4964 wxArrayString * _result;
4965 char *_kwnames[] = { NULL };
4966 char _ptemp[128];
4967
4968 self = self;
4969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMasks",_kwnames))
4970 return NULL;
4971 {
4972 PyThreadState* __tstate = wxPyBeginAllowThreads();
4973 const wxArrayString & _result_ref = wxLog::GetTraceMasks();
4974 _result = (wxArrayString *) &_result_ref;
4975
4976 wxPyEndAllowThreads(__tstate);
4977 if (PyErr_Occurred()) return NULL;
4978 } if (_result) {
4979 SWIG_MakePtr(_ptemp, (char *) _result,"_wxArrayString_p");
4980 _resultobj = Py_BuildValue("s",_ptemp);
4981 } else {
4982 Py_INCREF(Py_None);
4983 _resultobj = Py_None;
4984 }
4985 return _resultobj;
4986 }
4987
4988 static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
4989 PyObject * _resultobj;
4990 wxString * _arg0;
4991 PyObject * _obj0 = 0;
4992 char *_kwnames[] = { "ts", NULL };
4993
4994 self = self;
4995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTimestamp",_kwnames,&_obj0))
4996 return NULL;
4997 {
4998 _arg0 = wxString_in_helper(_obj0);
4999 if (_arg0 == NULL)
5000 return NULL;
5001 }
5002 {
5003 PyThreadState* __tstate = wxPyBeginAllowThreads();
5004 wxLog::SetTimestamp(*_arg0);
5005
5006 wxPyEndAllowThreads(__tstate);
5007 if (PyErr_Occurred()) return NULL;
5008 } Py_INCREF(Py_None);
5009 _resultobj = Py_None;
5010 {
5011 if (_obj0)
5012 delete _arg0;
5013 }
5014 return _resultobj;
5015 }
5016
5017 static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
5018 PyObject * _resultobj;
5019 wxString * _result;
5020 char *_kwnames[] = { NULL };
5021
5022 self = self;
5023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames))
5024 return NULL;
5025 {
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 const wxString & _result_ref = wxLog::GetTimestamp();
5028 _result = (wxString *) &_result_ref;
5029
5030 wxPyEndAllowThreads(__tstate);
5031 if (PyErr_Occurred()) return NULL;
5032 }{
5033 #if wxUSE_UNICODE
5034 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
5035 #else
5036 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5037 #endif
5038 }
5039 return _resultobj;
5040 }
5041
5042 #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose())
5043 static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
5044 PyObject * _resultobj;
5045 bool _result;
5046 wxLog * _arg0;
5047 PyObject * _argo0 = 0;
5048 char *_kwnames[] = { "self", NULL };
5049
5050 self = self;
5051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0))
5052 return NULL;
5053 if (_argo0) {
5054 if (_argo0 == Py_None) { _arg0 = NULL; }
5055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
5056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p.");
5057 return NULL;
5058 }
5059 }
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 _result = (bool )wxLog_GetVerbose(_arg0);
5063
5064 wxPyEndAllowThreads(__tstate);
5065 if (PyErr_Occurred()) return NULL;
5066 } _resultobj = Py_BuildValue("i",_result);
5067 return _resultobj;
5068 }
5069
5070 static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
5071 PyObject * _resultobj;
5072 unsigned long _result;
5073 char *_kwnames[] = { NULL };
5074
5075 self = self;
5076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames))
5077 return NULL;
5078 {
5079 PyThreadState* __tstate = wxPyBeginAllowThreads();
5080 _result = (unsigned long )wxLog::GetTraceMask();
5081
5082 wxPyEndAllowThreads(__tstate);
5083 if (PyErr_Occurred()) return NULL;
5084 } _resultobj = Py_BuildValue("l",_result);
5085 return _resultobj;
5086 }
5087
5088 static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
5089 PyObject * _resultobj;
5090 bool _result;
5091 wxString * _arg0;
5092 PyObject * _obj0 = 0;
5093 char *_kwnames[] = { "mask", NULL };
5094
5095 self = self;
5096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_IsAllowedTraceMask",_kwnames,&_obj0))
5097 return NULL;
5098 {
5099 _arg0 = wxString_in_helper(_obj0);
5100 if (_arg0 == NULL)
5101 return NULL;
5102 }
5103 {
5104 PyThreadState* __tstate = wxPyBeginAllowThreads();
5105 _result = (bool )wxLog::IsAllowedTraceMask(*_arg0);
5106
5107 wxPyEndAllowThreads(__tstate);
5108 if (PyErr_Occurred()) return NULL;
5109 } _resultobj = Py_BuildValue("i",_result);
5110 {
5111 if (_obj0)
5112 delete _arg0;
5113 }
5114 return _resultobj;
5115 }
5116
5117 static PyObject *_wrap_wxLog_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
5118 PyObject * _resultobj;
5119 unsigned long _arg0;
5120 char *_kwnames[] = { "logLevel", NULL };
5121
5122 self = self;
5123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxLog_SetLogLevel",_kwnames,&_arg0))
5124 return NULL;
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 wxLog::SetLogLevel(_arg0);
5128
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) return NULL;
5131 } Py_INCREF(Py_None);
5132 _resultobj = Py_None;
5133 return _resultobj;
5134 }
5135
5136 static PyObject *_wrap_wxLog_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
5137 PyObject * _resultobj;
5138 unsigned long _result;
5139 char *_kwnames[] = { NULL };
5140
5141 self = self;
5142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetLogLevel",_kwnames))
5143 return NULL;
5144 {
5145 PyThreadState* __tstate = wxPyBeginAllowThreads();
5146 _result = (unsigned long )wxLog::GetLogLevel();
5147
5148 wxPyEndAllowThreads(__tstate);
5149 if (PyErr_Occurred()) return NULL;
5150 } _resultobj = Py_BuildValue("l",_result);
5151 return _resultobj;
5152 }
5153
5154 static wxString wxLog_TimeStamp(wxLog *self) {
5155 wxString msg;
5156 wxLog::TimeStamp(&msg);
5157 return msg;
5158 }
5159 static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
5160 PyObject * _resultobj;
5161 wxString * _result;
5162 wxLog * _arg0;
5163 PyObject * _argo0 = 0;
5164 char *_kwnames[] = { "self", NULL };
5165
5166 self = self;
5167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0))
5168 return NULL;
5169 if (_argo0) {
5170 if (_argo0 == Py_None) { _arg0 = NULL; }
5171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
5172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p.");
5173 return NULL;
5174 }
5175 }
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 _result = new wxString (wxLog_TimeStamp(_arg0));
5179
5180 wxPyEndAllowThreads(__tstate);
5181 if (PyErr_Occurred()) return NULL;
5182 }{
5183 #if wxUSE_UNICODE
5184 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
5185 #else
5186 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5187 #endif
5188 }
5189 {
5190 delete _result;
5191 }
5192 return _resultobj;
5193 }
5194
5195 static void *SwigwxLogStderrTowxLog(void *ptr) {
5196 wxLogStderr *src;
5197 wxLog *dest;
5198 src = (wxLogStderr *) ptr;
5199 dest = (wxLog *) src;
5200 return (void *) dest;
5201 }
5202
5203 #define new_wxLogStderr() (new wxLogStderr())
5204 static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
5205 PyObject * _resultobj;
5206 wxLogStderr * _result;
5207 char *_kwnames[] = { NULL };
5208 char _ptemp[128];
5209
5210 self = self;
5211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames))
5212 return NULL;
5213 {
5214 PyThreadState* __tstate = wxPyBeginAllowThreads();
5215 _result = (wxLogStderr *)new_wxLogStderr();
5216
5217 wxPyEndAllowThreads(__tstate);
5218 if (PyErr_Occurred()) return NULL;
5219 } if (_result) {
5220 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p");
5221 _resultobj = Py_BuildValue("s",_ptemp);
5222 } else {
5223 Py_INCREF(Py_None);
5224 _resultobj = Py_None;
5225 }
5226 return _resultobj;
5227 }
5228
5229 static void *SwigwxLogTextCtrlTowxLog(void *ptr) {
5230 wxLogTextCtrl *src;
5231 wxLog *dest;
5232 src = (wxLogTextCtrl *) ptr;
5233 dest = (wxLog *) src;
5234 return (void *) dest;
5235 }
5236
5237 #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0))
5238 static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
5239 PyObject * _resultobj;
5240 wxLogTextCtrl * _result;
5241 wxTextCtrl * _arg0;
5242 PyObject * _argo0 = 0;
5243 char *_kwnames[] = { "pTextCtrl", NULL };
5244 char _ptemp[128];
5245
5246 self = self;
5247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0))
5248 return NULL;
5249 if (_argo0) {
5250 if (_argo0 == Py_None) { _arg0 = NULL; }
5251 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5252 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p.");
5253 return NULL;
5254 }
5255 }
5256 {
5257 PyThreadState* __tstate = wxPyBeginAllowThreads();
5258 _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0);
5259
5260 wxPyEndAllowThreads(__tstate);
5261 if (PyErr_Occurred()) return NULL;
5262 } if (_result) {
5263 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p");
5264 _resultobj = Py_BuildValue("s",_ptemp);
5265 } else {
5266 Py_INCREF(Py_None);
5267 _resultobj = Py_None;
5268 }
5269 return _resultobj;
5270 }
5271
5272 static void *SwigwxLogGuiTowxLog(void *ptr) {
5273 wxLogGui *src;
5274 wxLog *dest;
5275 src = (wxLogGui *) ptr;
5276 dest = (wxLog *) src;
5277 return (void *) dest;
5278 }
5279
5280 #define new_wxLogGui() (new wxLogGui())
5281 static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
5282 PyObject * _resultobj;
5283 wxLogGui * _result;
5284 char *_kwnames[] = { NULL };
5285 char _ptemp[128];
5286
5287 self = self;
5288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames))
5289 return NULL;
5290 {
5291 PyThreadState* __tstate = wxPyBeginAllowThreads();
5292 _result = (wxLogGui *)new_wxLogGui();
5293
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) return NULL;
5296 } if (_result) {
5297 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p");
5298 _resultobj = Py_BuildValue("s",_ptemp);
5299 } else {
5300 Py_INCREF(Py_None);
5301 _resultobj = Py_None;
5302 }
5303 return _resultobj;
5304 }
5305
5306 static void *SwigwxLogWindowTowxLog(void *ptr) {
5307 wxLogWindow *src;
5308 wxLog *dest;
5309 src = (wxLogWindow *) ptr;
5310 dest = (wxLog *) src;
5311 return (void *) dest;
5312 }
5313
5314 #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5315 static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5316 PyObject * _resultobj;
5317 wxLogWindow * _result;
5318 wxFrame * _arg0;
5319 wxString * _arg1;
5320 bool _arg2 = (bool ) TRUE;
5321 bool _arg3 = (bool ) TRUE;
5322 PyObject * _argo0 = 0;
5323 PyObject * _obj1 = 0;
5324 int tempbool2 = (int) TRUE;
5325 int tempbool3 = (int) TRUE;
5326 char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL };
5327 char _ptemp[128];
5328
5329 self = self;
5330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:new_wxLogWindow",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3))
5331 return NULL;
5332 if (_argo0) {
5333 if (_argo0 == Py_None) { _arg0 = NULL; }
5334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
5335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p.");
5336 return NULL;
5337 }
5338 }
5339 {
5340 _arg1 = wxString_in_helper(_obj1);
5341 if (_arg1 == NULL)
5342 return NULL;
5343 }
5344 _arg2 = (bool ) tempbool2;
5345 _arg3 = (bool ) tempbool3;
5346 {
5347 PyThreadState* __tstate = wxPyBeginAllowThreads();
5348 _result = (wxLogWindow *)new_wxLogWindow(_arg0,*_arg1,_arg2,_arg3);
5349
5350 wxPyEndAllowThreads(__tstate);
5351 if (PyErr_Occurred()) return NULL;
5352 } if (_result) {
5353 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p");
5354 _resultobj = Py_BuildValue("s",_ptemp);
5355 } else {
5356 Py_INCREF(Py_None);
5357 _resultobj = Py_None;
5358 }
5359 {
5360 if (_obj1)
5361 delete _arg1;
5362 }
5363 return _resultobj;
5364 }
5365
5366 #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
5367 static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5368 PyObject * _resultobj;
5369 wxLogWindow * _arg0;
5370 bool _arg1 = (bool ) TRUE;
5371 PyObject * _argo0 = 0;
5372 int tempbool1 = (int) TRUE;
5373 char *_kwnames[] = { "self","bShow", NULL };
5374
5375 self = self;
5376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1))
5377 return NULL;
5378 if (_argo0) {
5379 if (_argo0 == Py_None) { _arg0 = NULL; }
5380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p.");
5382 return NULL;
5383 }
5384 }
5385 _arg1 = (bool ) tempbool1;
5386 {
5387 PyThreadState* __tstate = wxPyBeginAllowThreads();
5388 wxLogWindow_Show(_arg0,_arg1);
5389
5390 wxPyEndAllowThreads(__tstate);
5391 if (PyErr_Occurred()) return NULL;
5392 } Py_INCREF(Py_None);
5393 _resultobj = Py_None;
5394 return _resultobj;
5395 }
5396
5397 #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame())
5398 static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
5399 PyObject * _resultobj;
5400 wxFrame * _result;
5401 wxLogWindow * _arg0;
5402 PyObject * _argo0 = 0;
5403 char *_kwnames[] = { "self", NULL };
5404
5405 self = self;
5406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0))
5407 return NULL;
5408 if (_argo0) {
5409 if (_argo0 == Py_None) { _arg0 = NULL; }
5410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p.");
5412 return NULL;
5413 }
5414 }
5415 {
5416 PyThreadState* __tstate = wxPyBeginAllowThreads();
5417 _result = (wxFrame *)wxLogWindow_GetFrame(_arg0);
5418
5419 wxPyEndAllowThreads(__tstate);
5420 if (PyErr_Occurred()) return NULL;
5421 }{ _resultobj = wxPyMake_wxObject(_result); }
5422 return _resultobj;
5423 }
5424
5425 #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog())
5426 static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5427 PyObject * _resultobj;
5428 wxLog * _result;
5429 wxLogWindow * _arg0;
5430 PyObject * _argo0 = 0;
5431 char *_kwnames[] = { "self", NULL };
5432 char _ptemp[128];
5433
5434 self = self;
5435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0))
5436 return NULL;
5437 if (_argo0) {
5438 if (_argo0 == Py_None) { _arg0 = NULL; }
5439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p.");
5441 return NULL;
5442 }
5443 }
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 _result = (wxLog *)wxLogWindow_GetOldLog(_arg0);
5447
5448 wxPyEndAllowThreads(__tstate);
5449 if (PyErr_Occurred()) return NULL;
5450 } if (_result) {
5451 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
5452 _resultobj = Py_BuildValue("s",_ptemp);
5453 } else {
5454 Py_INCREF(Py_None);
5455 _resultobj = Py_None;
5456 }
5457 return _resultobj;
5458 }
5459
5460 #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages())
5461 static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5462 PyObject * _resultobj;
5463 bool _result;
5464 wxLogWindow * _arg0;
5465 PyObject * _argo0 = 0;
5466 char *_kwnames[] = { "self", NULL };
5467
5468 self = self;
5469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0))
5470 return NULL;
5471 if (_argo0) {
5472 if (_argo0 == Py_None) { _arg0 = NULL; }
5473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p.");
5475 return NULL;
5476 }
5477 }
5478 {
5479 PyThreadState* __tstate = wxPyBeginAllowThreads();
5480 _result = (bool )wxLogWindow_IsPassingMessages(_arg0);
5481
5482 wxPyEndAllowThreads(__tstate);
5483 if (PyErr_Occurred()) return NULL;
5484 } _resultobj = Py_BuildValue("i",_result);
5485 return _resultobj;
5486 }
5487
5488 #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0))
5489 static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5490 PyObject * _resultobj;
5491 wxLogWindow * _arg0;
5492 bool _arg1;
5493 PyObject * _argo0 = 0;
5494 int tempbool1;
5495 char *_kwnames[] = { "self","bDoPass", NULL };
5496
5497 self = self;
5498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1))
5499 return NULL;
5500 if (_argo0) {
5501 if (_argo0 == Py_None) { _arg0 = NULL; }
5502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p.");
5504 return NULL;
5505 }
5506 }
5507 _arg1 = (bool ) tempbool1;
5508 {
5509 PyThreadState* __tstate = wxPyBeginAllowThreads();
5510 wxLogWindow_PassMessages(_arg0,_arg1);
5511
5512 wxPyEndAllowThreads(__tstate);
5513 if (PyErr_Occurred()) return NULL;
5514 } Py_INCREF(Py_None);
5515 _resultobj = Py_None;
5516 return _resultobj;
5517 }
5518
5519 static void *SwigwxLogChainTowxLog(void *ptr) {
5520 wxLogChain *src;
5521 wxLog *dest;
5522 src = (wxLogChain *) ptr;
5523 dest = (wxLog *) src;
5524 return (void *) dest;
5525 }
5526
5527 #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0))
5528 static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
5529 PyObject * _resultobj;
5530 wxLogChain * _result;
5531 wxLog * _arg0;
5532 PyObject * _argo0 = 0;
5533 char *_kwnames[] = { "logger", NULL };
5534 char _ptemp[128];
5535
5536 self = self;
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0))
5538 return NULL;
5539 if (_argo0) {
5540 if (_argo0 == Py_None) { _arg0 = NULL; }
5541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
5542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p.");
5543 return NULL;
5544 }
5545 }
5546 {
5547 PyThreadState* __tstate = wxPyBeginAllowThreads();
5548 _result = (wxLogChain *)new_wxLogChain(_arg0);
5549
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) return NULL;
5552 } if (_result) {
5553 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p");
5554 _resultobj = Py_BuildValue("s",_ptemp);
5555 } else {
5556 Py_INCREF(Py_None);
5557 _resultobj = Py_None;
5558 }
5559 return _resultobj;
5560 }
5561
5562 #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0))
5563 static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5564 PyObject * _resultobj;
5565 wxLogChain * _arg0;
5566 wxLog * _arg1;
5567 PyObject * _argo0 = 0;
5568 PyObject * _argo1 = 0;
5569 char *_kwnames[] = { "self","logger", NULL };
5570
5571 self = self;
5572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1))
5573 return NULL;
5574 if (_argo0) {
5575 if (_argo0 == Py_None) { _arg0 = NULL; }
5576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p.");
5578 return NULL;
5579 }
5580 }
5581 if (_argo1) {
5582 if (_argo1 == Py_None) { _arg1 = NULL; }
5583 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) {
5584 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p.");
5585 return NULL;
5586 }
5587 }
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 wxLogChain_SetLog(_arg0,_arg1);
5591
5592 wxPyEndAllowThreads(__tstate);
5593 if (PyErr_Occurred()) return NULL;
5594 } Py_INCREF(Py_None);
5595 _resultobj = Py_None;
5596 return _resultobj;
5597 }
5598
5599 #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0))
5600 static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5601 PyObject * _resultobj;
5602 wxLogChain * _arg0;
5603 bool _arg1;
5604 PyObject * _argo0 = 0;
5605 int tempbool1;
5606 char *_kwnames[] = { "self","bDoPass", NULL };
5607
5608 self = self;
5609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1))
5610 return NULL;
5611 if (_argo0) {
5612 if (_argo0 == Py_None) { _arg0 = NULL; }
5613 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5614 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p.");
5615 return NULL;
5616 }
5617 }
5618 _arg1 = (bool ) tempbool1;
5619 {
5620 PyThreadState* __tstate = wxPyBeginAllowThreads();
5621 wxLogChain_PassMessages(_arg0,_arg1);
5622
5623 wxPyEndAllowThreads(__tstate);
5624 if (PyErr_Occurred()) return NULL;
5625 } Py_INCREF(Py_None);
5626 _resultobj = Py_None;
5627 return _resultobj;
5628 }
5629
5630 #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages())
5631 static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5632 PyObject * _resultobj;
5633 bool _result;
5634 wxLogChain * _arg0;
5635 PyObject * _argo0 = 0;
5636 char *_kwnames[] = { "self", NULL };
5637
5638 self = self;
5639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0))
5640 return NULL;
5641 if (_argo0) {
5642 if (_argo0 == Py_None) { _arg0 = NULL; }
5643 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5644 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p.");
5645 return NULL;
5646 }
5647 }
5648 {
5649 PyThreadState* __tstate = wxPyBeginAllowThreads();
5650 _result = (bool )wxLogChain_IsPassingMessages(_arg0);
5651
5652 wxPyEndAllowThreads(__tstate);
5653 if (PyErr_Occurred()) return NULL;
5654 } _resultobj = Py_BuildValue("i",_result);
5655 return _resultobj;
5656 }
5657
5658 #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog())
5659 static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5660 PyObject * _resultobj;
5661 wxLog * _result;
5662 wxLogChain * _arg0;
5663 PyObject * _argo0 = 0;
5664 char *_kwnames[] = { "self", NULL };
5665 char _ptemp[128];
5666
5667 self = self;
5668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0))
5669 return NULL;
5670 if (_argo0) {
5671 if (_argo0 == Py_None) { _arg0 = NULL; }
5672 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5673 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p.");
5674 return NULL;
5675 }
5676 }
5677 {
5678 PyThreadState* __tstate = wxPyBeginAllowThreads();
5679 _result = (wxLog *)wxLogChain_GetOldLog(_arg0);
5680
5681 wxPyEndAllowThreads(__tstate);
5682 if (PyErr_Occurred()) return NULL;
5683 } if (_result) {
5684 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
5685 _resultobj = Py_BuildValue("s",_ptemp);
5686 } else {
5687 Py_INCREF(Py_None);
5688 _resultobj = Py_None;
5689 }
5690 return _resultobj;
5691 }
5692
5693 #define new_wxLogNull() (new wxLogNull())
5694 static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
5695 PyObject * _resultobj;
5696 wxLogNull * _result;
5697 char *_kwnames[] = { NULL };
5698 char _ptemp[128];
5699
5700 self = self;
5701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames))
5702 return NULL;
5703 {
5704 PyThreadState* __tstate = wxPyBeginAllowThreads();
5705 _result = (wxLogNull *)new_wxLogNull();
5706
5707 wxPyEndAllowThreads(__tstate);
5708 if (PyErr_Occurred()) return NULL;
5709 } if (_result) {
5710 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p");
5711 _resultobj = Py_BuildValue("s",_ptemp);
5712 } else {
5713 Py_INCREF(Py_None);
5714 _resultobj = Py_None;
5715 }
5716 return _resultobj;
5717 }
5718
5719 #define delete_wxLogNull(_swigobj) (delete _swigobj)
5720 static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
5721 PyObject * _resultobj;
5722 wxLogNull * _arg0;
5723 PyObject * _argo0 = 0;
5724 char *_kwnames[] = { "self", NULL };
5725
5726 self = self;
5727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0))
5728 return NULL;
5729 if (_argo0) {
5730 if (_argo0 == Py_None) { _arg0 = NULL; }
5731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) {
5732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p.");
5733 return NULL;
5734 }
5735 }
5736 {
5737 PyThreadState* __tstate = wxPyBeginAllowThreads();
5738 delete_wxLogNull(_arg0);
5739
5740 wxPyEndAllowThreads(__tstate);
5741 if (PyErr_Occurred()) return NULL;
5742 } Py_INCREF(Py_None);
5743 _resultobj = Py_None;
5744 return _resultobj;
5745 }
5746
5747 static void *SwigwxPyLogTowxLog(void *ptr) {
5748 wxPyLog *src;
5749 wxLog *dest;
5750 src = (wxPyLog *) ptr;
5751 dest = (wxLog *) src;
5752 return (void *) dest;
5753 }
5754
5755 #define new_wxPyLog() (new wxPyLog())
5756 static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5757 PyObject * _resultobj;
5758 wxPyLog * _result;
5759 char *_kwnames[] = { NULL };
5760 char _ptemp[128];
5761
5762 self = self;
5763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames))
5764 return NULL;
5765 {
5766 PyThreadState* __tstate = wxPyBeginAllowThreads();
5767 _result = (wxPyLog *)new_wxPyLog();
5768
5769 wxPyEndAllowThreads(__tstate);
5770 if (PyErr_Occurred()) return NULL;
5771 } if (_result) {
5772 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p");
5773 _resultobj = Py_BuildValue("s",_ptemp);
5774 } else {
5775 Py_INCREF(Py_None);
5776 _resultobj = Py_None;
5777 }
5778 return _resultobj;
5779 }
5780
5781 #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
5782 static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5783 PyObject * _resultobj;
5784 wxPyLog * _arg0;
5785 PyObject * _arg1;
5786 PyObject * _arg2;
5787 PyObject * _argo0 = 0;
5788 PyObject * _obj1 = 0;
5789 PyObject * _obj2 = 0;
5790 char *_kwnames[] = { "self","self","_class", NULL };
5791
5792 self = self;
5793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
5794 return NULL;
5795 if (_argo0) {
5796 if (_argo0 == Py_None) { _arg0 = NULL; }
5797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) {
5798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p.");
5799 return NULL;
5800 }
5801 }
5802 {
5803 _arg1 = _obj1;
5804 }
5805 {
5806 _arg2 = _obj2;
5807 }
5808 {
5809 PyThreadState* __tstate = wxPyBeginAllowThreads();
5810 wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2);
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 wxPyLog_Destroy(wxPyLog *self) { delete self; }
5820 static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
5821 PyObject * _resultobj;
5822 wxPyLog * _arg0;
5823 PyObject * _argo0 = 0;
5824 char *_kwnames[] = { "self", NULL };
5825
5826 self = self;
5827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0))
5828 return NULL;
5829 if (_argo0) {
5830 if (_argo0 == Py_None) { _arg0 = NULL; }
5831 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) {
5832 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p.");
5833 return NULL;
5834 }
5835 }
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 wxPyLog_Destroy(_arg0);
5839
5840 wxPyEndAllowThreads(__tstate);
5841 if (PyErr_Occurred()) return NULL;
5842 } Py_INCREF(Py_None);
5843 _resultobj = Py_None;
5844 return _resultobj;
5845 }
5846
5847 static void *SwigwxProcessEventTowxEvent(void *ptr) {
5848 wxProcessEvent *src;
5849 wxEvent *dest;
5850 src = (wxProcessEvent *) ptr;
5851 dest = (wxEvent *) src;
5852 return (void *) dest;
5853 }
5854
5855 static void *SwigwxProcessEventTowxObject(void *ptr) {
5856 wxProcessEvent *src;
5857 wxObject *dest;
5858 src = (wxProcessEvent *) ptr;
5859 dest = (wxObject *) src;
5860 return (void *) dest;
5861 }
5862
5863 #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2))
5864 static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
5865 PyObject * _resultobj;
5866 wxProcessEvent * _result;
5867 int _arg0 = (int ) 0;
5868 int _arg1 = (int ) 0;
5869 int _arg2 = (int ) 0;
5870 char *_kwnames[] = { "id","pid","exitcode", NULL };
5871 char _ptemp[128];
5872
5873 self = self;
5874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2))
5875 return NULL;
5876 {
5877 PyThreadState* __tstate = wxPyBeginAllowThreads();
5878 _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2);
5879
5880 wxPyEndAllowThreads(__tstate);
5881 if (PyErr_Occurred()) return NULL;
5882 } if (_result) {
5883 SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p");
5884 _resultobj = Py_BuildValue("s",_ptemp);
5885 } else {
5886 Py_INCREF(Py_None);
5887 _resultobj = Py_None;
5888 }
5889 return _resultobj;
5890 }
5891
5892 #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid())
5893 static PyObject *_wrap_wxProcessEvent_GetPid(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_GetPid",_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_GetPid. Expected _wxProcessEvent_p.");
5907 return NULL;
5908 }
5909 }
5910 {
5911 PyThreadState* __tstate = wxPyBeginAllowThreads();
5912 _result = (int )wxProcessEvent_GetPid(_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_GetExitCode(_swigobj) (_swigobj->GetExitCode())
5921 static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5922 PyObject * _resultobj;
5923 int _result;
5924 wxProcessEvent * _arg0;
5925 PyObject * _argo0 = 0;
5926 char *_kwnames[] = { "self", NULL };
5927
5928 self = self;
5929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0))
5930 return NULL;
5931 if (_argo0) {
5932 if (_argo0 == Py_None) { _arg0 = NULL; }
5933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p.");
5935 return NULL;
5936 }
5937 }
5938 {
5939 PyThreadState* __tstate = wxPyBeginAllowThreads();
5940 _result = (int )wxProcessEvent_GetExitCode(_arg0);
5941
5942 wxPyEndAllowThreads(__tstate);
5943 if (PyErr_Occurred()) return NULL;
5944 } _resultobj = Py_BuildValue("i",_result);
5945 return _resultobj;
5946 }
5947
5948 #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval)
5949 static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5950 PyObject * _resultobj;
5951 int _result;
5952 wxProcessEvent * _arg0;
5953 int _arg1;
5954 PyObject * _argo0 = 0;
5955 char *_kwnames[] = { "self","m_pid", NULL };
5956
5957 self = self;
5958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1))
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_set. Expected _wxProcessEvent_p.");
5964 return NULL;
5965 }
5966 }
5967 {
5968 PyThreadState* __tstate = wxPyBeginAllowThreads();
5969 _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1);
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_pid_get(_swigobj) ((int ) _swigobj->m_pid)
5978 static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5979 PyObject * _resultobj;
5980 int _result;
5981 wxProcessEvent * _arg0;
5982 PyObject * _argo0 = 0;
5983 char *_kwnames[] = { "self", NULL };
5984
5985 self = self;
5986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0))
5987 return NULL;
5988 if (_argo0) {
5989 if (_argo0 == Py_None) { _arg0 = NULL; }
5990 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5991 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p.");
5992 return NULL;
5993 }
5994 }
5995 {
5996 PyThreadState* __tstate = wxPyBeginAllowThreads();
5997 _result = (int )wxProcessEvent_m_pid_get(_arg0);
5998
5999 wxPyEndAllowThreads(__tstate);
6000 if (PyErr_Occurred()) return NULL;
6001 } _resultobj = Py_BuildValue("i",_result);
6002 return _resultobj;
6003 }
6004
6005 #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval)
6006 static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6007 PyObject * _resultobj;
6008 int _result;
6009 wxProcessEvent * _arg0;
6010 int _arg1;
6011 PyObject * _argo0 = 0;
6012 char *_kwnames[] = { "self","m_exitcode", NULL };
6013
6014 self = self;
6015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1))
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_set. Expected _wxProcessEvent_p.");
6021 return NULL;
6022 }
6023 }
6024 {
6025 PyThreadState* __tstate = wxPyBeginAllowThreads();
6026 _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1);
6027
6028 wxPyEndAllowThreads(__tstate);
6029 if (PyErr_Occurred()) return NULL;
6030 } _resultobj = Py_BuildValue("i",_result);
6031 return _resultobj;
6032 }
6033
6034 #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode)
6035 static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6036 PyObject * _resultobj;
6037 int _result;
6038 wxProcessEvent * _arg0;
6039 PyObject * _argo0 = 0;
6040 char *_kwnames[] = { "self", NULL };
6041
6042 self = self;
6043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0))
6044 return NULL;
6045 if (_argo0) {
6046 if (_argo0 == Py_None) { _arg0 = NULL; }
6047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
6048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p.");
6049 return NULL;
6050 }
6051 }
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 _result = (int )wxProcessEvent_m_exitcode_get(_arg0);
6055
6056 wxPyEndAllowThreads(__tstate);
6057 if (PyErr_Occurred()) return NULL;
6058 } _resultobj = Py_BuildValue("i",_result);
6059 return _resultobj;
6060 }
6061
6062 static void *SwigwxPyProcessTowxEvtHandler(void *ptr) {
6063 wxPyProcess *src;
6064 wxEvtHandler *dest;
6065 src = (wxPyProcess *) ptr;
6066 dest = (wxEvtHandler *) src;
6067 return (void *) dest;
6068 }
6069
6070 static void *SwigwxPyProcessTowxObject(void *ptr) {
6071 wxPyProcess *src;
6072 wxObject *dest;
6073 src = (wxPyProcess *) ptr;
6074 dest = (wxObject *) src;
6075 return (void *) dest;
6076 }
6077
6078 static PyObject *_wrap_wxProcess_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
6079 PyObject * _resultobj;
6080 wxKillError _result;
6081 int _arg0;
6082 wxSignal _arg1 = (wxSignal ) (wxSIGTERM);
6083 char *_kwnames[] = { "pid","sig", NULL };
6084
6085 self = self;
6086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxProcess_Kill",_kwnames,&_arg0,&_arg1))
6087 return NULL;
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 _result = (wxKillError )wxPyProcess::Kill(_arg0,_arg1);
6091
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) return NULL;
6094 } _resultobj = Py_BuildValue("i",_result);
6095 return _resultobj;
6096 }
6097
6098 static PyObject *_wrap_wxProcess_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
6099 PyObject * _resultobj;
6100 bool _result;
6101 int _arg0;
6102 char *_kwnames[] = { "pid", NULL };
6103
6104 self = self;
6105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxProcess_Exists",_kwnames,&_arg0))
6106 return NULL;
6107 {
6108 PyThreadState* __tstate = wxPyBeginAllowThreads();
6109 _result = (bool )wxPyProcess::Exists(_arg0);
6110
6111 wxPyEndAllowThreads(__tstate);
6112 if (PyErr_Occurred()) return NULL;
6113 } _resultobj = Py_BuildValue("i",_result);
6114 return _resultobj;
6115 }
6116
6117 static PyObject *_wrap_wxProcess_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
6118 PyObject * _resultobj;
6119 wxPyProcess * _result;
6120 wxString * _arg0;
6121 int _arg1 = (int ) wxEXEC_ASYNC;
6122 PyObject * _obj0 = 0;
6123 char *_kwnames[] = { "cmd","flags", NULL };
6124 char _ptemp[128];
6125
6126 self = self;
6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxProcess_Open",_kwnames,&_obj0,&_arg1))
6128 return NULL;
6129 {
6130 _arg0 = wxString_in_helper(_obj0);
6131 if (_arg0 == NULL)
6132 return NULL;
6133 }
6134 {
6135 PyThreadState* __tstate = wxPyBeginAllowThreads();
6136 _result = (wxPyProcess *)wxPyProcess::Open(*_arg0,_arg1);
6137
6138 wxPyEndAllowThreads(__tstate);
6139 if (PyErr_Occurred()) return NULL;
6140 } if (_result) {
6141 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p");
6142 _resultobj = Py_BuildValue("s",_ptemp);
6143 } else {
6144 Py_INCREF(Py_None);
6145 _resultobj = Py_None;
6146 }
6147 {
6148 if (_obj0)
6149 delete _arg0;
6150 }
6151 return _resultobj;
6152 }
6153
6154 #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1))
6155 static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) {
6156 PyObject * _resultobj;
6157 wxPyProcess * _result;
6158 wxEvtHandler * _arg0 = (wxEvtHandler *) NULL;
6159 int _arg1 = (int ) -1;
6160 PyObject * _argo0 = 0;
6161 char *_kwnames[] = { "parent","id", NULL };
6162 char _ptemp[128];
6163
6164 self = self;
6165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1))
6166 return NULL;
6167 if (_argo0) {
6168 if (_argo0 == Py_None) { _arg0 = NULL; }
6169 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
6170 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p.");
6171 return NULL;
6172 }
6173 }
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1);
6177
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) return NULL;
6180 } if (_result) {
6181 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p");
6182 _resultobj = Py_BuildValue("s",_ptemp);
6183 } else {
6184 Py_INCREF(Py_None);
6185 _resultobj = Py_None;
6186 }
6187 return _resultobj;
6188 }
6189
6190 static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; }
6191 static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6192 PyObject * _resultobj;
6193 wxPyProcess * _arg0;
6194 PyObject * _argo0 = 0;
6195 char *_kwnames[] = { "self", NULL };
6196
6197 self = self;
6198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0))
6199 return NULL;
6200 if (_argo0) {
6201 if (_argo0 == Py_None) { _arg0 = NULL; }
6202 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6203 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p.");
6204 return NULL;
6205 }
6206 }
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 wxPyProcess_Destroy(_arg0);
6210
6211 wxPyEndAllowThreads(__tstate);
6212 if (PyErr_Occurred()) return NULL;
6213 } Py_INCREF(Py_None);
6214 _resultobj = Py_None;
6215 return _resultobj;
6216 }
6217
6218 #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
6219 static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6220 PyObject * _resultobj;
6221 wxPyProcess * _arg0;
6222 PyObject * _arg1;
6223 PyObject * _arg2;
6224 PyObject * _argo0 = 0;
6225 PyObject * _obj1 = 0;
6226 PyObject * _obj2 = 0;
6227 char *_kwnames[] = { "self","self","_class", NULL };
6228
6229 self = self;
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
6231 return NULL;
6232 if (_argo0) {
6233 if (_argo0 == Py_None) { _arg0 = NULL; }
6234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p.");
6236 return NULL;
6237 }
6238 }
6239 {
6240 _arg1 = _obj1;
6241 }
6242 {
6243 _arg2 = _obj2;
6244 }
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 wxProcess__setCallbackInfo(_arg0,_arg1,_arg2);
6248
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) return NULL;
6251 } Py_INCREF(Py_None);
6252 _resultobj = Py_None;
6253 return _resultobj;
6254 }
6255
6256 #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1))
6257 static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
6258 PyObject * _resultobj;
6259 wxPyProcess * _arg0;
6260 int _arg1;
6261 int _arg2;
6262 PyObject * _argo0 = 0;
6263 char *_kwnames[] = { "self","pid","status", NULL };
6264
6265 self = self;
6266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2))
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_base_OnTerminate. Expected _wxPyProcess_p.");
6272 return NULL;
6273 }
6274 }
6275 {
6276 PyThreadState* __tstate = wxPyBeginAllowThreads();
6277 wxProcess_base_OnTerminate(_arg0,_arg1,_arg2);
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_Redirect(_swigobj) (_swigobj->Redirect())
6287 static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
6288 PyObject * _resultobj;
6289 wxPyProcess * _arg0;
6290 PyObject * _argo0 = 0;
6291 char *_kwnames[] = { "self", NULL };
6292
6293 self = self;
6294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0))
6295 return NULL;
6296 if (_argo0) {
6297 if (_argo0 == Py_None) { _arg0 = NULL; }
6298 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6299 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p.");
6300 return NULL;
6301 }
6302 }
6303 {
6304 PyThreadState* __tstate = wxPyBeginAllowThreads();
6305 wxProcess_Redirect(_arg0);
6306
6307 wxPyEndAllowThreads(__tstate);
6308 if (PyErr_Occurred()) return NULL;
6309 } Py_INCREF(Py_None);
6310 _resultobj = Py_None;
6311 return _resultobj;
6312 }
6313
6314 #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected())
6315 static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
6316 PyObject * _resultobj;
6317 bool _result;
6318 wxPyProcess * _arg0;
6319 PyObject * _argo0 = 0;
6320 char *_kwnames[] = { "self", NULL };
6321
6322 self = self;
6323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0))
6324 return NULL;
6325 if (_argo0) {
6326 if (_argo0 == Py_None) { _arg0 = NULL; }
6327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p.");
6329 return NULL;
6330 }
6331 }
6332 {
6333 PyThreadState* __tstate = wxPyBeginAllowThreads();
6334 _result = (bool )wxProcess_IsRedirected(_arg0);
6335
6336 wxPyEndAllowThreads(__tstate);
6337 if (PyErr_Occurred()) return NULL;
6338 } _resultobj = Py_BuildValue("i",_result);
6339 return _resultobj;
6340 }
6341
6342 #define wxProcess_Detach(_swigobj) (_swigobj->Detach())
6343 static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
6344 PyObject * _resultobj;
6345 wxPyProcess * _arg0;
6346 PyObject * _argo0 = 0;
6347 char *_kwnames[] = { "self", NULL };
6348
6349 self = self;
6350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0))
6351 return NULL;
6352 if (_argo0) {
6353 if (_argo0 == Py_None) { _arg0 = NULL; }
6354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p.");
6356 return NULL;
6357 }
6358 }
6359 {
6360 PyThreadState* __tstate = wxPyBeginAllowThreads();
6361 wxProcess_Detach(_arg0);
6362
6363 wxPyEndAllowThreads(__tstate);
6364 if (PyErr_Occurred()) return NULL;
6365 } Py_INCREF(Py_None);
6366 _resultobj = Py_None;
6367 return _resultobj;
6368 }
6369
6370 #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream())
6371 static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6372 PyObject * _resultobj;
6373 wxInputStream * _result;
6374 wxPyProcess * _arg0;
6375 PyObject * _argo0 = 0;
6376 char *_kwnames[] = { "self", NULL };
6377
6378 self = self;
6379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0))
6380 return NULL;
6381 if (_argo0) {
6382 if (_argo0 == Py_None) { _arg0 = NULL; }
6383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p.");
6385 return NULL;
6386 }
6387 }
6388 {
6389 PyThreadState* __tstate = wxPyBeginAllowThreads();
6390 _result = (wxInputStream *)wxProcess_GetInputStream(_arg0);
6391
6392 wxPyEndAllowThreads(__tstate);
6393 if (PyErr_Occurred()) return NULL;
6394 }{
6395 wxPyInputStream * _ptr = NULL;
6396
6397 if (_result) {
6398 _ptr = new wxPyInputStream(_result);
6399 }
6400 _resultobj = wxPyConstructObject(_ptr, wxT("wxInputStream"), TRUE);
6401 }
6402 return _resultobj;
6403 }
6404
6405 #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream())
6406 static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6407 PyObject * _resultobj;
6408 wxInputStream * _result;
6409 wxPyProcess * _arg0;
6410 PyObject * _argo0 = 0;
6411 char *_kwnames[] = { "self", NULL };
6412
6413 self = self;
6414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0))
6415 return NULL;
6416 if (_argo0) {
6417 if (_argo0 == Py_None) { _arg0 = NULL; }
6418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p.");
6420 return NULL;
6421 }
6422 }
6423 {
6424 PyThreadState* __tstate = wxPyBeginAllowThreads();
6425 _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0);
6426
6427 wxPyEndAllowThreads(__tstate);
6428 if (PyErr_Occurred()) return NULL;
6429 }{
6430 wxPyInputStream * _ptr = NULL;
6431
6432 if (_result) {
6433 _ptr = new wxPyInputStream(_result);
6434 }
6435 _resultobj = wxPyConstructObject(_ptr, wxT("wxInputStream"), TRUE);
6436 }
6437 return _resultobj;
6438 }
6439
6440 #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream())
6441 static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6442 PyObject * _resultobj;
6443 wxOutputStream * _result;
6444 wxPyProcess * _arg0;
6445 PyObject * _argo0 = 0;
6446 char *_kwnames[] = { "self", NULL };
6447 char _ptemp[128];
6448
6449 self = self;
6450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0))
6451 return NULL;
6452 if (_argo0) {
6453 if (_argo0 == Py_None) { _arg0 = NULL; }
6454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p.");
6456 return NULL;
6457 }
6458 }
6459 {
6460 PyThreadState* __tstate = wxPyBeginAllowThreads();
6461 _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0);
6462
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) return NULL;
6465 } if (_result) {
6466 SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p");
6467 _resultobj = Py_BuildValue("s",_ptemp);
6468 } else {
6469 Py_INCREF(Py_None);
6470 _resultobj = Py_None;
6471 }
6472 return _resultobj;
6473 }
6474
6475 #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput())
6476 static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
6477 PyObject * _resultobj;
6478 wxPyProcess * _arg0;
6479 PyObject * _argo0 = 0;
6480 char *_kwnames[] = { "self", NULL };
6481
6482 self = self;
6483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0))
6484 return NULL;
6485 if (_argo0) {
6486 if (_argo0 == Py_None) { _arg0 = NULL; }
6487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p.");
6489 return NULL;
6490 }
6491 }
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 wxProcess_CloseOutput(_arg0);
6495
6496 wxPyEndAllowThreads(__tstate);
6497 if (PyErr_Occurred()) return NULL;
6498 } Py_INCREF(Py_None);
6499 _resultobj = Py_None;
6500 return _resultobj;
6501 }
6502
6503 #define wxProcess_IsInputOpened(_swigobj) (_swigobj->IsInputOpened())
6504 static PyObject *_wrap_wxProcess_IsInputOpened(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_IsInputOpened",_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_IsInputOpened. Expected _wxPyProcess_p.");
6518 return NULL;
6519 }
6520 }
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 _result = (bool )wxProcess_IsInputOpened(_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_IsInputAvailable(_swigobj) (_swigobj->IsInputAvailable())
6532 static PyObject *_wrap_wxProcess_IsInputAvailable(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_IsInputAvailable",_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_IsInputAvailable. Expected _wxPyProcess_p.");
6546 return NULL;
6547 }
6548 }
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 _result = (bool )wxProcess_IsInputAvailable(_arg0);
6552
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) return NULL;
6555 } _resultobj = Py_BuildValue("i",_result);
6556 return _resultobj;
6557 }
6558
6559 #define wxProcess_IsErrorAvailable(_swigobj) (_swigobj->IsErrorAvailable())
6560 static PyObject *_wrap_wxProcess_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6561 PyObject * _resultobj;
6562 bool _result;
6563 wxPyProcess * _arg0;
6564 PyObject * _argo0 = 0;
6565 char *_kwnames[] = { "self", NULL };
6566
6567 self = self;
6568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsErrorAvailable",_kwnames,&_argo0))
6569 return NULL;
6570 if (_argo0) {
6571 if (_argo0 == Py_None) { _arg0 = NULL; }
6572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsErrorAvailable. Expected _wxPyProcess_p.");
6574 return NULL;
6575 }
6576 }
6577 {
6578 PyThreadState* __tstate = wxPyBeginAllowThreads();
6579 _result = (bool )wxProcess_IsErrorAvailable(_arg0);
6580
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) return NULL;
6583 } _resultobj = Py_BuildValue("i",_result);
6584 return _resultobj;
6585 }
6586
6587 static void *SwigwxJoystickTowxObject(void *ptr) {
6588 wxJoystick *src;
6589 wxObject *dest;
6590 src = (wxJoystick *) ptr;
6591 dest = (wxObject *) src;
6592 return (void *) dest;
6593 }
6594
6595 #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0))
6596 static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
6597 PyObject * _resultobj;
6598 wxJoystick * _result;
6599 int _arg0 = (int ) (wxJOYSTICK1);
6600 char *_kwnames[] = { "joystick", NULL };
6601 char _ptemp[128];
6602
6603 self = self;
6604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0))
6605 return NULL;
6606 {
6607 PyThreadState* __tstate = wxPyBeginAllowThreads();
6608 _result = (wxJoystick *)new_wxJoystick(_arg0);
6609
6610 wxPyEndAllowThreads(__tstate);
6611 if (PyErr_Occurred()) return NULL;
6612 } if (_result) {
6613 SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p");
6614 _resultobj = Py_BuildValue("s",_ptemp);
6615 } else {
6616 Py_INCREF(Py_None);
6617 _resultobj = Py_None;
6618 }
6619 return _resultobj;
6620 }
6621
6622 #define delete_wxJoystick(_swigobj) (delete _swigobj)
6623 static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
6624 PyObject * _resultobj;
6625 wxJoystick * _arg0;
6626 PyObject * _argo0 = 0;
6627 char *_kwnames[] = { "self", NULL };
6628
6629 self = self;
6630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0))
6631 return NULL;
6632 if (_argo0) {
6633 if (_argo0 == Py_None) { _arg0 = NULL; }
6634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p.");
6636 return NULL;
6637 }
6638 }
6639 {
6640 PyThreadState* __tstate = wxPyBeginAllowThreads();
6641 delete_wxJoystick(_arg0);
6642
6643 wxPyEndAllowThreads(__tstate);
6644 if (PyErr_Occurred()) return NULL;
6645 } Py_INCREF(Py_None);
6646 _resultobj = Py_None;
6647 return _resultobj;
6648 }
6649
6650 #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition())
6651 static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6652 PyObject * _resultobj;
6653 wxPoint * _result;
6654 wxJoystick * _arg0;
6655 PyObject * _argo0 = 0;
6656 char *_kwnames[] = { "self", NULL };
6657 char _ptemp[128];
6658
6659 self = self;
6660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0))
6661 return NULL;
6662 if (_argo0) {
6663 if (_argo0 == Py_None) { _arg0 = NULL; }
6664 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6665 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p.");
6666 return NULL;
6667 }
6668 }
6669 {
6670 PyThreadState* __tstate = wxPyBeginAllowThreads();
6671 _result = new wxPoint (wxJoystick_GetPosition(_arg0));
6672
6673 wxPyEndAllowThreads(__tstate);
6674 if (PyErr_Occurred()) return NULL;
6675 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
6676 _resultobj = Py_BuildValue("s",_ptemp);
6677 return _resultobj;
6678 }
6679
6680 #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition())
6681 static PyObject *_wrap_wxJoystick_GetZPosition(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_GetZPosition",_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_GetZPosition. Expected _wxJoystick_p.");
6695 return NULL;
6696 }
6697 }
6698 {
6699 PyThreadState* __tstate = wxPyBeginAllowThreads();
6700 _result = (int )wxJoystick_GetZPosition(_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_GetButtonState(_swigobj) (_swigobj->GetButtonState())
6709 static PyObject *_wrap_wxJoystick_GetButtonState(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_GetButtonState",_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_GetButtonState. Expected _wxJoystick_p.");
6723 return NULL;
6724 }
6725 }
6726 {
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 _result = (int )wxJoystick_GetButtonState(_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_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition())
6737 static PyObject *_wrap_wxJoystick_GetPOVPosition(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_GetPOVPosition",_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_GetPOVPosition. Expected _wxJoystick_p.");
6751 return NULL;
6752 }
6753 }
6754 {
6755 PyThreadState* __tstate = wxPyBeginAllowThreads();
6756 _result = (int )wxJoystick_GetPOVPosition(_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_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition())
6765 static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(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_GetPOVCTSPosition",_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_GetPOVCTSPosition. Expected _wxJoystick_p.");
6779 return NULL;
6780 }
6781 }
6782 {
6783 PyThreadState* __tstate = wxPyBeginAllowThreads();
6784 _result = (int )wxJoystick_GetPOVCTSPosition(_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_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition())
6793 static PyObject *_wrap_wxJoystick_GetRudderPosition(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_GetRudderPosition",_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_GetRudderPosition. Expected _wxJoystick_p.");
6807 return NULL;
6808 }
6809 }
6810 {
6811 PyThreadState* __tstate = wxPyBeginAllowThreads();
6812 _result = (int )wxJoystick_GetRudderPosition(_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_GetUPosition(_swigobj) (_swigobj->GetUPosition())
6821 static PyObject *_wrap_wxJoystick_GetUPosition(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_GetUPosition",_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_GetUPosition. Expected _wxJoystick_p.");
6835 return NULL;
6836 }
6837 }
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 _result = (int )wxJoystick_GetUPosition(_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_GetVPosition(_swigobj) (_swigobj->GetVPosition())
6849 static PyObject *_wrap_wxJoystick_GetVPosition(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_GetVPosition",_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_GetVPosition. Expected _wxJoystick_p.");
6863 return NULL;
6864 }
6865 }
6866 {
6867 PyThreadState* __tstate = wxPyBeginAllowThreads();
6868 _result = (int )wxJoystick_GetVPosition(_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_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold())
6877 static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
6878 PyObject * _resultobj;
6879 int _result;
6880 wxJoystick * _arg0;
6881 PyObject * _argo0 = 0;
6882 char *_kwnames[] = { "self", NULL };
6883
6884 self = self;
6885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0))
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_GetMovementThreshold. Expected _wxJoystick_p.");
6891 return NULL;
6892 }
6893 }
6894 {
6895 PyThreadState* __tstate = wxPyBeginAllowThreads();
6896 _result = (int )wxJoystick_GetMovementThreshold(_arg0);
6897
6898 wxPyEndAllowThreads(__tstate);
6899 if (PyErr_Occurred()) return NULL;
6900 } _resultobj = Py_BuildValue("i",_result);
6901 return _resultobj;
6902 }
6903
6904 #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0))
6905 static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
6906 PyObject * _resultobj;
6907 wxJoystick * _arg0;
6908 int _arg1;
6909 PyObject * _argo0 = 0;
6910 char *_kwnames[] = { "self","threshold", NULL };
6911
6912 self = self;
6913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1))
6914 return NULL;
6915 if (_argo0) {
6916 if (_argo0 == Py_None) { _arg0 = NULL; }
6917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p.");
6919 return NULL;
6920 }
6921 }
6922 {
6923 PyThreadState* __tstate = wxPyBeginAllowThreads();
6924 wxJoystick_SetMovementThreshold(_arg0,_arg1);
6925
6926 wxPyEndAllowThreads(__tstate);
6927 if (PyErr_Occurred()) return NULL;
6928 } Py_INCREF(Py_None);
6929 _resultobj = Py_None;
6930 return _resultobj;
6931 }
6932
6933 #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk())
6934 static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
6935 PyObject * _resultobj;
6936 bool _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_IsOk",_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_IsOk. Expected _wxJoystick_p.");
6948 return NULL;
6949 }
6950 }
6951 {
6952 PyThreadState* __tstate = wxPyBeginAllowThreads();
6953 _result = (bool )wxJoystick_IsOk(_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_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks())
6962 static PyObject *_wrap_wxJoystick_GetNumberJoysticks(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_GetNumberJoysticks",_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_GetNumberJoysticks. Expected _wxJoystick_p.");
6976 return NULL;
6977 }
6978 }
6979 {
6980 PyThreadState* __tstate = wxPyBeginAllowThreads();
6981 _result = (int )wxJoystick_GetNumberJoysticks(_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_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId())
6990 static PyObject *_wrap_wxJoystick_GetManufacturerId(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_GetManufacturerId",_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_GetManufacturerId. Expected _wxJoystick_p.");
7004 return NULL;
7005 }
7006 }
7007 {
7008 PyThreadState* __tstate = wxPyBeginAllowThreads();
7009 _result = (int )wxJoystick_GetManufacturerId(_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_GetProductId(_swigobj) (_swigobj->GetProductId())
7018 static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
7019 PyObject * _resultobj;
7020 int _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_GetProductId",_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_GetProductId. Expected _wxJoystick_p.");
7032 return NULL;
7033 }
7034 }
7035 {
7036 PyThreadState* __tstate = wxPyBeginAllowThreads();
7037 _result = (int )wxJoystick_GetProductId(_arg0);
7038
7039 wxPyEndAllowThreads(__tstate);
7040 if (PyErr_Occurred()) return NULL;
7041 } _resultobj = Py_BuildValue("i",_result);
7042 return _resultobj;
7043 }
7044
7045 #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName())
7046 static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
7047 PyObject * _resultobj;
7048 wxString * _result;
7049 wxJoystick * _arg0;
7050 PyObject * _argo0 = 0;
7051 char *_kwnames[] = { "self", NULL };
7052
7053 self = self;
7054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0))
7055 return NULL;
7056 if (_argo0) {
7057 if (_argo0 == Py_None) { _arg0 = NULL; }
7058 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7059 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p.");
7060 return NULL;
7061 }
7062 }
7063 {
7064 PyThreadState* __tstate = wxPyBeginAllowThreads();
7065 _result = new wxString (wxJoystick_GetProductName(_arg0));
7066
7067 wxPyEndAllowThreads(__tstate);
7068 if (PyErr_Occurred()) return NULL;
7069 }{
7070 #if wxUSE_UNICODE
7071 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
7072 #else
7073 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
7074 #endif
7075 }
7076 {
7077 delete _result;
7078 }
7079 return _resultobj;
7080 }
7081
7082 #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin())
7083 static PyObject *_wrap_wxJoystick_GetXMin(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_GetXMin",_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_GetXMin. Expected _wxJoystick_p.");
7097 return NULL;
7098 }
7099 }
7100 {
7101 PyThreadState* __tstate = wxPyBeginAllowThreads();
7102 _result = (int )wxJoystick_GetXMin(_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_GetYMin(_swigobj) (_swigobj->GetYMin())
7111 static PyObject *_wrap_wxJoystick_GetYMin(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_GetYMin",_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_GetYMin. Expected _wxJoystick_p.");
7125 return NULL;
7126 }
7127 }
7128 {
7129 PyThreadState* __tstate = wxPyBeginAllowThreads();
7130 _result = (int )wxJoystick_GetYMin(_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_GetZMin(_swigobj) (_swigobj->GetZMin())
7139 static PyObject *_wrap_wxJoystick_GetZMin(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_GetZMin",_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_GetZMin. Expected _wxJoystick_p.");
7153 return NULL;
7154 }
7155 }
7156 {
7157 PyThreadState* __tstate = wxPyBeginAllowThreads();
7158 _result = (int )wxJoystick_GetZMin(_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_GetXMax(_swigobj) (_swigobj->GetXMax())
7167 static PyObject *_wrap_wxJoystick_GetXMax(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_GetXMax",_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_GetXMax. Expected _wxJoystick_p.");
7181 return NULL;
7182 }
7183 }
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 _result = (int )wxJoystick_GetXMax(_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_GetYMax(_swigobj) (_swigobj->GetYMax())
7195 static PyObject *_wrap_wxJoystick_GetYMax(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_GetYMax",_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_GetYMax. Expected _wxJoystick_p.");
7209 return NULL;
7210 }
7211 }
7212 {
7213 PyThreadState* __tstate = wxPyBeginAllowThreads();
7214 _result = (int )wxJoystick_GetYMax(_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_GetZMax(_swigobj) (_swigobj->GetZMax())
7223 static PyObject *_wrap_wxJoystick_GetZMax(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_GetZMax",_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_GetZMax. Expected _wxJoystick_p.");
7237 return NULL;
7238 }
7239 }
7240 {
7241 PyThreadState* __tstate = wxPyBeginAllowThreads();
7242 _result = (int )wxJoystick_GetZMax(_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_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons())
7251 static PyObject *_wrap_wxJoystick_GetNumberButtons(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_GetNumberButtons",_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_GetNumberButtons. Expected _wxJoystick_p.");
7265 return NULL;
7266 }
7267 }
7268 {
7269 PyThreadState* __tstate = wxPyBeginAllowThreads();
7270 _result = (int )wxJoystick_GetNumberButtons(_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_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes())
7279 static PyObject *_wrap_wxJoystick_GetNumberAxes(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_GetNumberAxes",_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_GetNumberAxes. Expected _wxJoystick_p.");
7293 return NULL;
7294 }
7295 }
7296 {
7297 PyThreadState* __tstate = wxPyBeginAllowThreads();
7298 _result = (int )wxJoystick_GetNumberAxes(_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_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons())
7307 static PyObject *_wrap_wxJoystick_GetMaxButtons(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_GetMaxButtons",_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_GetMaxButtons. Expected _wxJoystick_p.");
7321 return NULL;
7322 }
7323 }
7324 {
7325 PyThreadState* __tstate = wxPyBeginAllowThreads();
7326 _result = (int )wxJoystick_GetMaxButtons(_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_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes())
7335 static PyObject *_wrap_wxJoystick_GetMaxAxes(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_GetMaxAxes",_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_GetMaxAxes. Expected _wxJoystick_p.");
7349 return NULL;
7350 }
7351 }
7352 {
7353 PyThreadState* __tstate = wxPyBeginAllowThreads();
7354 _result = (int )wxJoystick_GetMaxAxes(_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_GetPollingMin(_swigobj) (_swigobj->GetPollingMin())
7363 static PyObject *_wrap_wxJoystick_GetPollingMin(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_GetPollingMin",_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_GetPollingMin. Expected _wxJoystick_p.");
7377 return NULL;
7378 }
7379 }
7380 {
7381 PyThreadState* __tstate = wxPyBeginAllowThreads();
7382 _result = (int )wxJoystick_GetPollingMin(_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_GetPollingMax(_swigobj) (_swigobj->GetPollingMax())
7391 static PyObject *_wrap_wxJoystick_GetPollingMax(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_GetPollingMax",_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_GetPollingMax. Expected _wxJoystick_p.");
7405 return NULL;
7406 }
7407 }
7408 {
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 _result = (int )wxJoystick_GetPollingMax(_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_GetRudderMin(_swigobj) (_swigobj->GetRudderMin())
7419 static PyObject *_wrap_wxJoystick_GetRudderMin(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_GetRudderMin",_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_GetRudderMin. Expected _wxJoystick_p.");
7433 return NULL;
7434 }
7435 }
7436 {
7437 PyThreadState* __tstate = wxPyBeginAllowThreads();
7438 _result = (int )wxJoystick_GetRudderMin(_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_GetRudderMax(_swigobj) (_swigobj->GetRudderMax())
7447 static PyObject *_wrap_wxJoystick_GetRudderMax(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_GetRudderMax",_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_GetRudderMax. Expected _wxJoystick_p.");
7461 return NULL;
7462 }
7463 }
7464 {
7465 PyThreadState* __tstate = wxPyBeginAllowThreads();
7466 _result = (int )wxJoystick_GetRudderMax(_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_GetUMin(_swigobj) (_swigobj->GetUMin())
7475 static PyObject *_wrap_wxJoystick_GetUMin(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_GetUMin",_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_GetUMin. Expected _wxJoystick_p.");
7489 return NULL;
7490 }
7491 }
7492 {
7493 PyThreadState* __tstate = wxPyBeginAllowThreads();
7494 _result = (int )wxJoystick_GetUMin(_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_GetUMax(_swigobj) (_swigobj->GetUMax())
7503 static PyObject *_wrap_wxJoystick_GetUMax(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_GetUMax",_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_GetUMax. Expected _wxJoystick_p.");
7517 return NULL;
7518 }
7519 }
7520 {
7521 PyThreadState* __tstate = wxPyBeginAllowThreads();
7522 _result = (int )wxJoystick_GetUMax(_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_GetVMin(_swigobj) (_swigobj->GetVMin())
7531 static PyObject *_wrap_wxJoystick_GetVMin(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_GetVMin",_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_GetVMin. Expected _wxJoystick_p.");
7545 return NULL;
7546 }
7547 }
7548 {
7549 PyThreadState* __tstate = wxPyBeginAllowThreads();
7550 _result = (int )wxJoystick_GetVMin(_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_GetVMax(_swigobj) (_swigobj->GetVMax())
7559 static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7560 PyObject * _resultobj;
7561 int _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_GetVMax",_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_GetVMax. Expected _wxJoystick_p.");
7573 return NULL;
7574 }
7575 }
7576 {
7577 PyThreadState* __tstate = wxPyBeginAllowThreads();
7578 _result = (int )wxJoystick_GetVMax(_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_HasRudder(_swigobj) (_swigobj->HasRudder())
7587 static PyObject *_wrap_wxJoystick_HasRudder(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_HasRudder",_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_HasRudder. Expected _wxJoystick_p.");
7601 return NULL;
7602 }
7603 }
7604 {
7605 PyThreadState* __tstate = wxPyBeginAllowThreads();
7606 _result = (bool )wxJoystick_HasRudder(_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_HasZ(_swigobj) (_swigobj->HasZ())
7615 static PyObject *_wrap_wxJoystick_HasZ(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_HasZ",_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_HasZ. Expected _wxJoystick_p.");
7629 return NULL;
7630 }
7631 }
7632 {
7633 PyThreadState* __tstate = wxPyBeginAllowThreads();
7634 _result = (bool )wxJoystick_HasZ(_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_HasU(_swigobj) (_swigobj->HasU())
7643 static PyObject *_wrap_wxJoystick_HasU(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_HasU",_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_HasU. Expected _wxJoystick_p.");
7657 return NULL;
7658 }
7659 }
7660 {
7661 PyThreadState* __tstate = wxPyBeginAllowThreads();
7662 _result = (bool )wxJoystick_HasU(_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_HasV(_swigobj) (_swigobj->HasV())
7671 static PyObject *_wrap_wxJoystick_HasV(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_HasV",_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_HasV. Expected _wxJoystick_p.");
7685 return NULL;
7686 }
7687 }
7688 {
7689 PyThreadState* __tstate = wxPyBeginAllowThreads();
7690 _result = (bool )wxJoystick_HasV(_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_HasPOV(_swigobj) (_swigobj->HasPOV())
7699 static PyObject *_wrap_wxJoystick_HasPOV(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_HasPOV",_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_HasPOV. Expected _wxJoystick_p.");
7713 return NULL;
7714 }
7715 }
7716 {
7717 PyThreadState* __tstate = wxPyBeginAllowThreads();
7718 _result = (bool )wxJoystick_HasPOV(_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_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir())
7727 static PyObject *_wrap_wxJoystick_HasPOV4Dir(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_HasPOV4Dir",_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_HasPOV4Dir. Expected _wxJoystick_p.");
7741 return NULL;
7742 }
7743 }
7744 {
7745 PyThreadState* __tstate = wxPyBeginAllowThreads();
7746 _result = (bool )wxJoystick_HasPOV4Dir(_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_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS())
7755 static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
7756 PyObject * _resultobj;
7757 bool _result;
7758 wxJoystick * _arg0;
7759 PyObject * _argo0 = 0;
7760 char *_kwnames[] = { "self", NULL };
7761
7762 self = self;
7763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0))
7764 return NULL;
7765 if (_argo0) {
7766 if (_argo0 == Py_None) { _arg0 = NULL; }
7767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p.");
7769 return NULL;
7770 }
7771 }
7772 {
7773 PyThreadState* __tstate = wxPyBeginAllowThreads();
7774 _result = (bool )wxJoystick_HasPOVCTS(_arg0);
7775
7776 wxPyEndAllowThreads(__tstate);
7777 if (PyErr_Occurred()) return NULL;
7778 } _resultobj = Py_BuildValue("i",_result);
7779 return _resultobj;
7780 }
7781
7782 #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1))
7783 static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
7784 PyObject * _resultobj;
7785 bool _result;
7786 wxJoystick * _arg0;
7787 wxWindow * _arg1;
7788 int _arg2 = (int ) 0;
7789 PyObject * _argo0 = 0;
7790 PyObject * _argo1 = 0;
7791 char *_kwnames[] = { "self","win","pollingFreq", NULL };
7792
7793 self = self;
7794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2))
7795 return NULL;
7796 if (_argo0) {
7797 if (_argo0 == Py_None) { _arg0 = NULL; }
7798 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7799 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p.");
7800 return NULL;
7801 }
7802 }
7803 if (_argo1) {
7804 if (_argo1 == Py_None) { _arg1 = NULL; }
7805 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7806 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p.");
7807 return NULL;
7808 }
7809 }
7810 {
7811 PyThreadState* __tstate = wxPyBeginAllowThreads();
7812 _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2);
7813
7814 wxPyEndAllowThreads(__tstate);
7815 if (PyErr_Occurred()) return NULL;
7816 } _resultobj = Py_BuildValue("i",_result);
7817 return _resultobj;
7818 }
7819
7820 #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture())
7821 static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
7822 PyObject * _resultobj;
7823 bool _result;
7824 wxJoystick * _arg0;
7825 PyObject * _argo0 = 0;
7826 char *_kwnames[] = { "self", NULL };
7827
7828 self = self;
7829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0))
7830 return NULL;
7831 if (_argo0) {
7832 if (_argo0 == Py_None) { _arg0 = NULL; }
7833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p.");
7835 return NULL;
7836 }
7837 }
7838 {
7839 PyThreadState* __tstate = wxPyBeginAllowThreads();
7840 _result = (bool )wxJoystick_ReleaseCapture(_arg0);
7841
7842 wxPyEndAllowThreads(__tstate);
7843 if (PyErr_Occurred()) return NULL;
7844 } _resultobj = Py_BuildValue("i",_result);
7845 return _resultobj;
7846 }
7847
7848 static void *SwigwxWaveTowxObject(void *ptr) {
7849 wxWave *src;
7850 wxObject *dest;
7851 src = (wxWave *) ptr;
7852 dest = (wxObject *) src;
7853 return (void *) dest;
7854 }
7855
7856 #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1))
7857 static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) {
7858 PyObject * _resultobj;
7859 wxWave * _result;
7860 wxString * _arg0;
7861 bool _arg1 = (bool ) FALSE;
7862 PyObject * _obj0 = 0;
7863 int tempbool1 = (int) FALSE;
7864 char *_kwnames[] = { "fileName","isResource", NULL };
7865 char _ptemp[128];
7866
7867 self = self;
7868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1))
7869 return NULL;
7870 {
7871 _arg0 = wxString_in_helper(_obj0);
7872 if (_arg0 == NULL)
7873 return NULL;
7874 }
7875 _arg1 = (bool ) tempbool1;
7876 {
7877 PyThreadState* __tstate = wxPyBeginAllowThreads();
7878 _result = (wxWave *)new_wxWave(*_arg0,_arg1);
7879
7880 wxPyEndAllowThreads(__tstate);
7881 if (PyErr_Occurred()) return NULL;
7882 } if (_result) {
7883 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p");
7884 _resultobj = Py_BuildValue("s",_ptemp);
7885 } else {
7886 Py_INCREF(Py_None);
7887 _resultobj = Py_None;
7888 }
7889 {
7890 if (_obj0)
7891 delete _arg0;
7892 }
7893 return _resultobj;
7894 }
7895
7896 #define delete_wxWave(_swigobj) (delete _swigobj)
7897 static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) {
7898 PyObject * _resultobj;
7899 wxWave * _arg0;
7900 PyObject * _argo0 = 0;
7901 char *_kwnames[] = { "self", NULL };
7902
7903 self = self;
7904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0))
7905 return NULL;
7906 if (_argo0) {
7907 if (_argo0 == Py_None) { _arg0 = NULL; }
7908 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) {
7909 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p.");
7910 return NULL;
7911 }
7912 }
7913 {
7914 PyThreadState* __tstate = wxPyBeginAllowThreads();
7915 delete_wxWave(_arg0);
7916
7917 wxPyEndAllowThreads(__tstate);
7918 if (PyErr_Occurred()) return NULL;
7919 } Py_INCREF(Py_None);
7920 _resultobj = Py_None;
7921 return _resultobj;
7922 }
7923
7924 #define wxWave_IsOk(_swigobj) (_swigobj->IsOk())
7925 static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
7926 PyObject * _resultobj;
7927 bool _result;
7928 wxWave * _arg0;
7929 PyObject * _argo0 = 0;
7930 char *_kwnames[] = { "self", NULL };
7931
7932 self = self;
7933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0))
7934 return NULL;
7935 if (_argo0) {
7936 if (_argo0 == Py_None) { _arg0 = NULL; }
7937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) {
7938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p.");
7939 return NULL;
7940 }
7941 }
7942 {
7943 PyThreadState* __tstate = wxPyBeginAllowThreads();
7944 _result = (bool )wxWave_IsOk(_arg0);
7945
7946 wxPyEndAllowThreads(__tstate);
7947 if (PyErr_Occurred()) return NULL;
7948 } _resultobj = Py_BuildValue("i",_result);
7949 return _resultobj;
7950 }
7951
7952 #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1))
7953 static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
7954 PyObject * _resultobj;
7955 bool _result;
7956 wxWave * _arg0;
7957 bool _arg1 = (bool ) TRUE;
7958 bool _arg2 = (bool ) FALSE;
7959 PyObject * _argo0 = 0;
7960 int tempbool1 = (int) TRUE;
7961 int tempbool2 = (int) FALSE;
7962 char *_kwnames[] = { "self","async","looped", NULL };
7963
7964 self = self;
7965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2))
7966 return NULL;
7967 if (_argo0) {
7968 if (_argo0 == Py_None) { _arg0 = NULL; }
7969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) {
7970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p.");
7971 return NULL;
7972 }
7973 }
7974 _arg1 = (bool ) tempbool1;
7975 _arg2 = (bool ) tempbool2;
7976 {
7977 PyThreadState* __tstate = wxPyBeginAllowThreads();
7978 _result = (bool )wxWave_Play(_arg0,_arg1,_arg2);
7979
7980 wxPyEndAllowThreads(__tstate);
7981 if (PyErr_Occurred()) return NULL;
7982 } _resultobj = Py_BuildValue("i",_result);
7983 return _resultobj;
7984 }
7985
7986 #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7987 static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7988 PyObject * _resultobj;
7989 wxFileTypeInfo * _result;
7990 wxString * _arg0;
7991 wxString * _arg1;
7992 wxString * _arg2;
7993 wxString * _arg3;
7994 PyObject * _obj0 = 0;
7995 PyObject * _obj1 = 0;
7996 PyObject * _obj2 = 0;
7997 PyObject * _obj3 = 0;
7998 char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL };
7999 char _ptemp[128];
8000
8001 self = self;
8002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:new_wxFileTypeInfo",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3))
8003 return NULL;
8004 {
8005 _arg0 = wxString_in_helper(_obj0);
8006 if (_arg0 == NULL)
8007 return NULL;
8008 }
8009 {
8010 _arg1 = wxString_in_helper(_obj1);
8011 if (_arg1 == NULL)
8012 return NULL;
8013 }
8014 {
8015 _arg2 = wxString_in_helper(_obj2);
8016 if (_arg2 == NULL)
8017 return NULL;
8018 }
8019 {
8020 _arg3 = wxString_in_helper(_obj3);
8021 if (_arg3 == NULL)
8022 return NULL;
8023 }
8024 {
8025 PyThreadState* __tstate = wxPyBeginAllowThreads();
8026 _result = (wxFileTypeInfo *)new_wxFileTypeInfo(*_arg0,*_arg1,*_arg2,*_arg3);
8027
8028 wxPyEndAllowThreads(__tstate);
8029 if (PyErr_Occurred()) return NULL;
8030 } if (_result) {
8031 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p");
8032 _resultobj = Py_BuildValue("s",_ptemp);
8033 } else {
8034 Py_INCREF(Py_None);
8035 _resultobj = Py_None;
8036 }
8037 {
8038 if (_obj0)
8039 delete _arg0;
8040 }
8041 {
8042 if (_obj1)
8043 delete _arg1;
8044 }
8045 {
8046 if (_obj2)
8047 delete _arg2;
8048 }
8049 {
8050 if (_obj3)
8051 delete _arg3;
8052 }
8053 return _resultobj;
8054 }
8055
8056 #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0))
8057 static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
8058 PyObject * _resultobj;
8059 wxFileTypeInfo * _result;
8060 wxArrayString * _arg0;
8061 PyObject * _obj0 = 0;
8062 char *_kwnames[] = { "sArray", NULL };
8063 char _ptemp[128];
8064
8065 self = self;
8066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0))
8067 return NULL;
8068 {
8069 if (! PySequence_Check(_obj0)) {
8070 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8071 return NULL;
8072 }
8073 _arg0 = new wxArrayString;
8074 int i, len=PySequence_Length(_obj0);
8075 for (i=0; i<len; i++) {
8076 PyObject* item = PySequence_GetItem(_obj0, i);
8077 #if wxUSE_UNICODE
8078 PyObject* str = PyObject_Unicode(item);
8079 #else
8080 PyObject* str = PyObject_Str(item);
8081 #endif
8082 _arg0->Add(Py2wxString(str));
8083 Py_DECREF(item);
8084 Py_DECREF(str);
8085 }
8086 }
8087 {
8088 PyThreadState* __tstate = wxPyBeginAllowThreads();
8089 _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0);
8090
8091 wxPyEndAllowThreads(__tstate);
8092 if (PyErr_Occurred()) return NULL;
8093 } if (_result) {
8094 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p");
8095 _resultobj = Py_BuildValue("s",_ptemp);
8096 } else {
8097 Py_INCREF(Py_None);
8098 _resultobj = Py_None;
8099 }
8100 {
8101 if (_obj0)
8102 delete _arg0;
8103 }
8104 return _resultobj;
8105 }
8106
8107 #define new_wxNullFileTypeInfo() (new wxFileTypeInfo())
8108 static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8109 PyObject * _resultobj;
8110 wxFileTypeInfo * _result;
8111 char *_kwnames[] = { NULL };
8112 char _ptemp[128];
8113
8114 self = self;
8115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames))
8116 return NULL;
8117 {
8118 PyThreadState* __tstate = wxPyBeginAllowThreads();
8119 _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo();
8120
8121 wxPyEndAllowThreads(__tstate);
8122 if (PyErr_Occurred()) return NULL;
8123 } if (_result) {
8124 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p");
8125 _resultobj = Py_BuildValue("s",_ptemp);
8126 } else {
8127 Py_INCREF(Py_None);
8128 _resultobj = Py_None;
8129 }
8130 return _resultobj;
8131 }
8132
8133 #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid())
8134 static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
8135 PyObject * _resultobj;
8136 bool _result;
8137 wxFileTypeInfo * _arg0;
8138 PyObject * _argo0 = 0;
8139 char *_kwnames[] = { "self", NULL };
8140
8141 self = self;
8142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0))
8143 return NULL;
8144 if (_argo0) {
8145 if (_argo0 == Py_None) { _arg0 = NULL; }
8146 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8147 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p.");
8148 return NULL;
8149 }
8150 }
8151 {
8152 PyThreadState* __tstate = wxPyBeginAllowThreads();
8153 _result = (bool )wxFileTypeInfo_IsValid(_arg0);
8154
8155 wxPyEndAllowThreads(__tstate);
8156 if (PyErr_Occurred()) return NULL;
8157 } _resultobj = Py_BuildValue("i",_result);
8158 return _resultobj;
8159 }
8160
8161 #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1))
8162 static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8163 PyObject * _resultobj;
8164 wxFileTypeInfo * _arg0;
8165 wxString * _arg1;
8166 int _arg2 = (int ) 0;
8167 PyObject * _argo0 = 0;
8168 PyObject * _obj1 = 0;
8169 char *_kwnames[] = { "self","iconFile","iconIndex", NULL };
8170
8171 self = self;
8172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2))
8173 return NULL;
8174 if (_argo0) {
8175 if (_argo0 == Py_None) { _arg0 = NULL; }
8176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p.");
8178 return NULL;
8179 }
8180 }
8181 {
8182 _arg1 = wxString_in_helper(_obj1);
8183 if (_arg1 == NULL)
8184 return NULL;
8185 }
8186 {
8187 PyThreadState* __tstate = wxPyBeginAllowThreads();
8188 wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2);
8189
8190 wxPyEndAllowThreads(__tstate);
8191 if (PyErr_Occurred()) return NULL;
8192 } Py_INCREF(Py_None);
8193 _resultobj = Py_None;
8194 {
8195 if (_obj1)
8196 delete _arg1;
8197 }
8198 return _resultobj;
8199 }
8200
8201 #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0))
8202 static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8203 PyObject * _resultobj;
8204 wxFileTypeInfo * _arg0;
8205 wxString * _arg1;
8206 PyObject * _argo0 = 0;
8207 PyObject * _obj1 = 0;
8208 char *_kwnames[] = { "self","shortDesc", NULL };
8209
8210 self = self;
8211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1))
8212 return NULL;
8213 if (_argo0) {
8214 if (_argo0 == Py_None) { _arg0 = NULL; }
8215 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8216 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p.");
8217 return NULL;
8218 }
8219 }
8220 {
8221 _arg1 = wxString_in_helper(_obj1);
8222 if (_arg1 == NULL)
8223 return NULL;
8224 }
8225 {
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 wxFileTypeInfo_SetShortDesc(_arg0,*_arg1);
8228
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) return NULL;
8231 } Py_INCREF(Py_None);
8232 _resultobj = Py_None;
8233 {
8234 if (_obj1)
8235 delete _arg1;
8236 }
8237 return _resultobj;
8238 }
8239
8240 #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType())
8241 static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8242 PyObject * _resultobj;
8243 wxString * _result;
8244 wxFileTypeInfo * _arg0;
8245 PyObject * _argo0 = 0;
8246 char *_kwnames[] = { "self", NULL };
8247
8248 self = self;
8249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0))
8250 return NULL;
8251 if (_argo0) {
8252 if (_argo0 == Py_None) { _arg0 = NULL; }
8253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p.");
8255 return NULL;
8256 }
8257 }
8258 {
8259 PyThreadState* __tstate = wxPyBeginAllowThreads();
8260 const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0);
8261 _result = (wxString *) &_result_ref;
8262
8263 wxPyEndAllowThreads(__tstate);
8264 if (PyErr_Occurred()) return NULL;
8265 }{
8266 #if wxUSE_UNICODE
8267 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
8268 #else
8269 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8270 #endif
8271 }
8272 return _resultobj;
8273 }
8274
8275 #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand())
8276 static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8277 PyObject * _resultobj;
8278 wxString * _result;
8279 wxFileTypeInfo * _arg0;
8280 PyObject * _argo0 = 0;
8281 char *_kwnames[] = { "self", NULL };
8282
8283 self = self;
8284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0))
8285 return NULL;
8286 if (_argo0) {
8287 if (_argo0 == Py_None) { _arg0 = NULL; }
8288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p.");
8290 return NULL;
8291 }
8292 }
8293 {
8294 PyThreadState* __tstate = wxPyBeginAllowThreads();
8295 const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0);
8296 _result = (wxString *) &_result_ref;
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) return NULL;
8300 }{
8301 #if wxUSE_UNICODE
8302 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
8303 #else
8304 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8305 #endif
8306 }
8307 return _resultobj;
8308 }
8309
8310 #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand())
8311 static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8312 PyObject * _resultobj;
8313 wxString * _result;
8314 wxFileTypeInfo * _arg0;
8315 PyObject * _argo0 = 0;
8316 char *_kwnames[] = { "self", NULL };
8317
8318 self = self;
8319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0))
8320 return NULL;
8321 if (_argo0) {
8322 if (_argo0 == Py_None) { _arg0 = NULL; }
8323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p.");
8325 return NULL;
8326 }
8327 }
8328 {
8329 PyThreadState* __tstate = wxPyBeginAllowThreads();
8330 const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0);
8331 _result = (wxString *) &_result_ref;
8332
8333 wxPyEndAllowThreads(__tstate);
8334 if (PyErr_Occurred()) return NULL;
8335 }{
8336 #if wxUSE_UNICODE
8337 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
8338 #else
8339 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8340 #endif
8341 }
8342 return _resultobj;
8343 }
8344
8345 #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc())
8346 static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8347 PyObject * _resultobj;
8348 wxString * _result;
8349 wxFileTypeInfo * _arg0;
8350 PyObject * _argo0 = 0;
8351 char *_kwnames[] = { "self", NULL };
8352
8353 self = self;
8354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0))
8355 return NULL;
8356 if (_argo0) {
8357 if (_argo0 == Py_None) { _arg0 = NULL; }
8358 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p.");
8360 return NULL;
8361 }
8362 }
8363 {
8364 PyThreadState* __tstate = wxPyBeginAllowThreads();
8365 const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0);
8366 _result = (wxString *) &_result_ref;
8367
8368 wxPyEndAllowThreads(__tstate);
8369 if (PyErr_Occurred()) return NULL;
8370 }{
8371 #if wxUSE_UNICODE
8372 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
8373 #else
8374 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8375 #endif
8376 }
8377 return _resultobj;
8378 }
8379
8380 #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription())
8381 static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
8382 PyObject * _resultobj;
8383 wxString * _result;
8384 wxFileTypeInfo * _arg0;
8385 PyObject * _argo0 = 0;
8386 char *_kwnames[] = { "self", NULL };
8387
8388 self = self;
8389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0))
8390 return NULL;
8391 if (_argo0) {
8392 if (_argo0 == Py_None) { _arg0 = NULL; }
8393 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8394 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p.");
8395 return NULL;
8396 }
8397 }
8398 {
8399 PyThreadState* __tstate = wxPyBeginAllowThreads();
8400 const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0);
8401 _result = (wxString *) &_result_ref;
8402
8403 wxPyEndAllowThreads(__tstate);
8404 if (PyErr_Occurred()) return NULL;
8405 }{
8406 #if wxUSE_UNICODE
8407 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
8408 #else
8409 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8410 #endif
8411 }
8412 return _resultobj;
8413 }
8414
8415 static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) {
8416 wxArrayString& arr = (wxArrayString&)self->GetExtensions();
8417 return wxArrayString2PyList_helper(arr);
8418 }
8419 static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
8420 PyObject * _resultobj;
8421 PyObject * _result;
8422 wxFileTypeInfo * _arg0;
8423 PyObject * _argo0 = 0;
8424 char *_kwnames[] = { "self", NULL };
8425
8426 self = self;
8427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0))
8428 return NULL;
8429 if (_argo0) {
8430 if (_argo0 == Py_None) { _arg0 = NULL; }
8431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p.");
8433 return NULL;
8434 }
8435 }
8436 {
8437 PyThreadState* __tstate = wxPyBeginAllowThreads();
8438 _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0);
8439
8440 wxPyEndAllowThreads(__tstate);
8441 if (PyErr_Occurred()) return NULL;
8442 }{
8443 _resultobj = _result;
8444 }
8445 return _resultobj;
8446 }
8447
8448 #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount())
8449 static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8450 PyObject * _resultobj;
8451 int _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_GetExtensionsCount",_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_GetExtensionsCount. Expected _wxFileTypeInfo_p.");
8463 return NULL;
8464 }
8465 }
8466 {
8467 PyThreadState* __tstate = wxPyBeginAllowThreads();
8468 _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0);
8469
8470 wxPyEndAllowThreads(__tstate);
8471 if (PyErr_Occurred()) return NULL;
8472 } _resultobj = Py_BuildValue("i",_result);
8473 return _resultobj;
8474 }
8475
8476 #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile())
8477 static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8478 PyObject * _resultobj;
8479 wxString * _result;
8480 wxFileTypeInfo * _arg0;
8481 PyObject * _argo0 = 0;
8482 char *_kwnames[] = { "self", NULL };
8483
8484 self = self;
8485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0))
8486 return NULL;
8487 if (_argo0) {
8488 if (_argo0 == Py_None) { _arg0 = NULL; }
8489 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8490 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p.");
8491 return NULL;
8492 }
8493 }
8494 {
8495 PyThreadState* __tstate = wxPyBeginAllowThreads();
8496 const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0);
8497 _result = (wxString *) &_result_ref;
8498
8499 wxPyEndAllowThreads(__tstate);
8500 if (PyErr_Occurred()) return NULL;
8501 }{
8502 #if wxUSE_UNICODE
8503 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
8504 #else
8505 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8506 #endif
8507 }
8508 return _resultobj;
8509 }
8510
8511 #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex())
8512 static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
8513 PyObject * _resultobj;
8514 int _result;
8515 wxFileTypeInfo * _arg0;
8516 PyObject * _argo0 = 0;
8517 char *_kwnames[] = { "self", NULL };
8518
8519 self = self;
8520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0))
8521 return NULL;
8522 if (_argo0) {
8523 if (_argo0 == Py_None) { _arg0 = NULL; }
8524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p.");
8526 return NULL;
8527 }
8528 }
8529 {
8530 PyThreadState* __tstate = wxPyBeginAllowThreads();
8531 _result = (int )wxFileTypeInfo_GetIconIndex(_arg0);
8532
8533 wxPyEndAllowThreads(__tstate);
8534 if (PyErr_Occurred()) return NULL;
8535 } _resultobj = Py_BuildValue("i",_result);
8536 return _resultobj;
8537 }
8538
8539 #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0))
8540 static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) {
8541 PyObject * _resultobj;
8542 wxFileType * _result;
8543 wxFileTypeInfo * _arg0;
8544 PyObject * _argo0 = 0;
8545 char *_kwnames[] = { "ftInfo", NULL };
8546 char _ptemp[128];
8547
8548 self = self;
8549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0))
8550 return NULL;
8551 if (_argo0) {
8552 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p.");
8554 return NULL;
8555 }
8556 }
8557 {
8558 PyThreadState* __tstate = wxPyBeginAllowThreads();
8559 _result = (wxFileType *)new_wxFileType(*_arg0);
8560
8561 wxPyEndAllowThreads(__tstate);
8562 if (PyErr_Occurred()) return NULL;
8563 } if (_result) {
8564 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
8565 _resultobj = Py_BuildValue("s",_ptemp);
8566 } else {
8567 Py_INCREF(Py_None);
8568 _resultobj = Py_None;
8569 }
8570 return _resultobj;
8571 }
8572
8573 static PyObject * wxFileType_GetMimeType(wxFileType *self) {
8574 wxString str;
8575 if (self->GetMimeType(&str)) {
8576 #if wxUSE_UNICODE
8577 return PyUnicode_FromWideChar(str.c_str(), str.Len());
8578 #else
8579 return PyString_FromStringAndSize(str.c_str(), str.Len());
8580 #endif
8581 }
8582 else
8583 RETURN_NONE();
8584 }
8585 static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8586 PyObject * _resultobj;
8587 PyObject * _result;
8588 wxFileType * _arg0;
8589 PyObject * _argo0 = 0;
8590 char *_kwnames[] = { "self", NULL };
8591
8592 self = self;
8593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0))
8594 return NULL;
8595 if (_argo0) {
8596 if (_argo0 == Py_None) { _arg0 = NULL; }
8597 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8598 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p.");
8599 return NULL;
8600 }
8601 }
8602 {
8603 PyThreadState* __tstate = wxPyBeginAllowThreads();
8604 _result = (PyObject *)wxFileType_GetMimeType(_arg0);
8605
8606 wxPyEndAllowThreads(__tstate);
8607 if (PyErr_Occurred()) return NULL;
8608 }{
8609 _resultobj = _result;
8610 }
8611 return _resultobj;
8612 }
8613
8614 static PyObject * wxFileType_GetMimeTypes(wxFileType *self) {
8615 wxArrayString arr;
8616 if (self->GetMimeTypes(arr))
8617 return wxArrayString2PyList_helper(arr);
8618 else
8619 RETURN_NONE();
8620 }
8621 static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
8622 PyObject * _resultobj;
8623 PyObject * _result;
8624 wxFileType * _arg0;
8625 PyObject * _argo0 = 0;
8626 char *_kwnames[] = { "self", NULL };
8627
8628 self = self;
8629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0))
8630 return NULL;
8631 if (_argo0) {
8632 if (_argo0 == Py_None) { _arg0 = NULL; }
8633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p.");
8635 return NULL;
8636 }
8637 }
8638 {
8639 PyThreadState* __tstate = wxPyBeginAllowThreads();
8640 _result = (PyObject *)wxFileType_GetMimeTypes(_arg0);
8641
8642 wxPyEndAllowThreads(__tstate);
8643 if (PyErr_Occurred()) return NULL;
8644 }{
8645 _resultobj = _result;
8646 }
8647 return _resultobj;
8648 }
8649
8650 static PyObject * wxFileType_GetExtensions(wxFileType *self) {
8651 wxArrayString arr;
8652 if (self->GetExtensions(arr))
8653 return wxArrayString2PyList_helper(arr);
8654 else
8655 RETURN_NONE();
8656 }
8657 static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
8658 PyObject * _resultobj;
8659 PyObject * _result;
8660 wxFileType * _arg0;
8661 PyObject * _argo0 = 0;
8662 char *_kwnames[] = { "self", NULL };
8663
8664 self = self;
8665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0))
8666 return NULL;
8667 if (_argo0) {
8668 if (_argo0 == Py_None) { _arg0 = NULL; }
8669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p.");
8671 return NULL;
8672 }
8673 }
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 _result = (PyObject *)wxFileType_GetExtensions(_arg0);
8677
8678 wxPyEndAllowThreads(__tstate);
8679 if (PyErr_Occurred()) return NULL;
8680 }{
8681 _resultobj = _result;
8682 }
8683 return _resultobj;
8684 }
8685
8686 static wxIcon * wxFileType_GetIcon(wxFileType *self) {
8687 wxIcon icon;
8688 if (self->GetIcon(&icon))
8689 return new wxIcon(icon);
8690 else
8691 return NULL;
8692 }
8693 static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8694 PyObject * _resultobj;
8695 wxIcon * _result;
8696 wxFileType * _arg0;
8697 PyObject * _argo0 = 0;
8698 char *_kwnames[] = { "self", NULL };
8699 char _ptemp[128];
8700
8701 self = self;
8702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0))
8703 return NULL;
8704 if (_argo0) {
8705 if (_argo0 == Py_None) { _arg0 = NULL; }
8706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p.");
8708 return NULL;
8709 }
8710 }
8711 {
8712 PyThreadState* __tstate = wxPyBeginAllowThreads();
8713 _result = (wxIcon *)wxFileType_GetIcon(_arg0);
8714
8715 wxPyEndAllowThreads(__tstate);
8716 if (PyErr_Occurred()) return NULL;
8717 } if (_result) {
8718 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
8719 _resultobj = Py_BuildValue("s",_ptemp);
8720 } else {
8721 Py_INCREF(Py_None);
8722 _resultobj = Py_None;
8723 }
8724 return _resultobj;
8725 }
8726
8727 static PyObject * wxFileType_GetIconInfo(wxFileType *self) {
8728 wxIcon icon;
8729 wxString iconFile;
8730 int iconIndex;
8731 if (self->GetIcon(&icon, &iconFile, &iconIndex)) {
8732 wxPyBeginBlockThreads();
8733 PyObject* tuple = PyTuple_New(3);
8734 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon),
8735 wxT("wxIcon"), TRUE));
8736 #if wxUSE_UNICODE
8737 PyTuple_SetItem(tuple, 1, PyUnicode_FromWideChar(iconFile.c_str(), iconFile.Len()));
8738 #else
8739 PyTuple_SetItem(tuple, 1, PyString_FromStringAndSize(iconFile.c_str(), iconFile.Len()));
8740 #endif
8741 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
8742 wxPyEndBlockThreads();
8743 return tuple;
8744 }
8745 else
8746 RETURN_NONE();
8747 }
8748 static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8749 PyObject * _resultobj;
8750 PyObject * _result;
8751 wxFileType * _arg0;
8752 PyObject * _argo0 = 0;
8753 char *_kwnames[] = { "self", NULL };
8754
8755 self = self;
8756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0))
8757 return NULL;
8758 if (_argo0) {
8759 if (_argo0 == Py_None) { _arg0 = NULL; }
8760 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8761 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p.");
8762 return NULL;
8763 }
8764 }
8765 {
8766 PyThreadState* __tstate = wxPyBeginAllowThreads();
8767 _result = (PyObject *)wxFileType_GetIconInfo(_arg0);
8768
8769 wxPyEndAllowThreads(__tstate);
8770 if (PyErr_Occurred()) return NULL;
8771 }{
8772 _resultobj = _result;
8773 }
8774 return _resultobj;
8775 }
8776
8777 static PyObject * wxFileType_GetDescription(wxFileType *self) {
8778 wxString str;
8779 if (self->GetDescription(&str)) {
8780 #if wxUSE_UNICODE
8781 return PyUnicode_FromWideChar(str.c_str(), str.Len());
8782 #else
8783 return PyString_FromStringAndSize(str.c_str(), str.Len());
8784 #endif
8785 } else
8786 RETURN_NONE();
8787 }
8788 static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
8789 PyObject * _resultobj;
8790 PyObject * _result;
8791 wxFileType * _arg0;
8792 PyObject * _argo0 = 0;
8793 char *_kwnames[] = { "self", NULL };
8794
8795 self = self;
8796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0))
8797 return NULL;
8798 if (_argo0) {
8799 if (_argo0 == Py_None) { _arg0 = NULL; }
8800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p.");
8802 return NULL;
8803 }
8804 }
8805 {
8806 PyThreadState* __tstate = wxPyBeginAllowThreads();
8807 _result = (PyObject *)wxFileType_GetDescription(_arg0);
8808
8809 wxPyEndAllowThreads(__tstate);
8810 if (PyErr_Occurred()) return NULL;
8811 }{
8812 _resultobj = _result;
8813 }
8814 return _resultobj;
8815 }
8816
8817 static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) {
8818 wxString str;
8819 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) {
8820 #if wxUSE_UNICODE
8821 return PyUnicode_FromWideChar(str.c_str(), str.Len());
8822 #else
8823 return PyString_FromStringAndSize(str.c_str(), str.Len());
8824 #endif
8825 } else
8826 RETURN_NONE();
8827 }
8828 static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8829 PyObject * _resultobj;
8830 PyObject * _result;
8831 wxFileType * _arg0;
8832 wxString * _arg1;
8833 wxString * _arg2 = (wxString *) &wxPyEmptyString;
8834 PyObject * _argo0 = 0;
8835 PyObject * _obj1 = 0;
8836 PyObject * _obj2 = 0;
8837 char *_kwnames[] = { "self","filename","mimetype", NULL };
8838
8839 self = self;
8840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2))
8841 return NULL;
8842 if (_argo0) {
8843 if (_argo0 == Py_None) { _arg0 = NULL; }
8844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p.");
8846 return NULL;
8847 }
8848 }
8849 {
8850 _arg1 = wxString_in_helper(_obj1);
8851 if (_arg1 == NULL)
8852 return NULL;
8853 }
8854 if (_obj2)
8855 {
8856 _arg2 = wxString_in_helper(_obj2);
8857 if (_arg2 == NULL)
8858 return NULL;
8859 }
8860 {
8861 PyThreadState* __tstate = wxPyBeginAllowThreads();
8862 _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2);
8863
8864 wxPyEndAllowThreads(__tstate);
8865 if (PyErr_Occurred()) return NULL;
8866 }{
8867 _resultobj = _result;
8868 }
8869 {
8870 if (_obj1)
8871 delete _arg1;
8872 }
8873 {
8874 if (_obj2)
8875 delete _arg2;
8876 }
8877 return _resultobj;
8878 }
8879
8880 static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) {
8881 wxString str;
8882 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) {
8883 #if wxUSE_UNICODE
8884 return PyUnicode_FromWideChar(str.c_str(), str.Len());
8885 #else
8886 return PyString_FromStringAndSize(str.c_str(), str.Len());
8887 #endif
8888 } else
8889 RETURN_NONE();
8890 }
8891 static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8892 PyObject * _resultobj;
8893 PyObject * _result;
8894 wxFileType * _arg0;
8895 wxString * _arg1;
8896 wxString * _arg2 = (wxString *) &wxPyEmptyString;
8897 PyObject * _argo0 = 0;
8898 PyObject * _obj1 = 0;
8899 PyObject * _obj2 = 0;
8900 char *_kwnames[] = { "self","filename","mimetype", NULL };
8901
8902 self = self;
8903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2))
8904 return NULL;
8905 if (_argo0) {
8906 if (_argo0 == Py_None) { _arg0 = NULL; }
8907 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8908 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p.");
8909 return NULL;
8910 }
8911 }
8912 {
8913 _arg1 = wxString_in_helper(_obj1);
8914 if (_arg1 == NULL)
8915 return NULL;
8916 }
8917 if (_obj2)
8918 {
8919 _arg2 = wxString_in_helper(_obj2);
8920 if (_arg2 == NULL)
8921 return NULL;
8922 }
8923 {
8924 PyThreadState* __tstate = wxPyBeginAllowThreads();
8925 _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2);
8926
8927 wxPyEndAllowThreads(__tstate);
8928 if (PyErr_Occurred()) return NULL;
8929 }{
8930 _resultobj = _result;
8931 }
8932 {
8933 if (_obj1)
8934 delete _arg1;
8935 }
8936 {
8937 if (_obj2)
8938 delete _arg2;
8939 }
8940 return _resultobj;
8941 }
8942
8943 static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) {
8944 wxArrayString verbs;
8945 wxArrayString commands;
8946 if (self->GetAllCommands(&verbs, &commands,
8947 wxFileType::MessageParameters(filename, mimetype))) {
8948 wxPyBeginBlockThreads();
8949 PyObject* tuple = PyTuple_New(2);
8950 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
8951 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
8952 wxPyEndBlockThreads();
8953 return tuple;
8954 }
8955 else
8956 RETURN_NONE();
8957 }
8958 static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
8959 PyObject * _resultobj;
8960 PyObject * _result;
8961 wxFileType * _arg0;
8962 wxString * _arg1;
8963 wxString * _arg2 = (wxString *) &wxPyEmptyString;
8964 PyObject * _argo0 = 0;
8965 PyObject * _obj1 = 0;
8966 PyObject * _obj2 = 0;
8967 char *_kwnames[] = { "self","filename","mimetype", NULL };
8968
8969 self = self;
8970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2))
8971 return NULL;
8972 if (_argo0) {
8973 if (_argo0 == Py_None) { _arg0 = NULL; }
8974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p.");
8976 return NULL;
8977 }
8978 }
8979 {
8980 _arg1 = wxString_in_helper(_obj1);
8981 if (_arg1 == NULL)
8982 return NULL;
8983 }
8984 if (_obj2)
8985 {
8986 _arg2 = wxString_in_helper(_obj2);
8987 if (_arg2 == NULL)
8988 return NULL;
8989 }
8990 {
8991 PyThreadState* __tstate = wxPyBeginAllowThreads();
8992 _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2);
8993
8994 wxPyEndAllowThreads(__tstate);
8995 if (PyErr_Occurred()) return NULL;
8996 }{
8997 _resultobj = _result;
8998 }
8999 {
9000 if (_obj1)
9001 delete _arg1;
9002 }
9003 {
9004 if (_obj2)
9005 delete _arg2;
9006 }
9007 return _resultobj;
9008 }
9009
9010 #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2))
9011 static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
9012 PyObject * _resultobj;
9013 bool _result;
9014 wxFileType * _arg0;
9015 wxString * _arg1;
9016 wxString * _arg2;
9017 bool _arg3 = (bool ) TRUE;
9018 PyObject * _argo0 = 0;
9019 PyObject * _obj1 = 0;
9020 PyObject * _obj2 = 0;
9021 int tempbool3 = (int) TRUE;
9022 char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL };
9023
9024 self = self;
9025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3))
9026 return NULL;
9027 if (_argo0) {
9028 if (_argo0 == Py_None) { _arg0 = NULL; }
9029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
9030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p.");
9031 return NULL;
9032 }
9033 }
9034 {
9035 _arg1 = wxString_in_helper(_obj1);
9036 if (_arg1 == NULL)
9037 return NULL;
9038 }
9039 {
9040 _arg2 = wxString_in_helper(_obj2);
9041 if (_arg2 == NULL)
9042 return NULL;
9043 }
9044 _arg3 = (bool ) tempbool3;
9045 {
9046 PyThreadState* __tstate = wxPyBeginAllowThreads();
9047 _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3);
9048
9049 wxPyEndAllowThreads(__tstate);
9050 if (PyErr_Occurred()) return NULL;
9051 } _resultobj = Py_BuildValue("i",_result);
9052 {
9053 if (_obj1)
9054 delete _arg1;
9055 }
9056 {
9057 if (_obj2)
9058 delete _arg2;
9059 }
9060 return _resultobj;
9061 }
9062
9063 #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1))
9064 static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9065 PyObject * _resultobj;
9066 bool _result;
9067 wxFileType * _arg0;
9068 wxString * _arg1 = (wxString *) &wxPyEmptyString;
9069 int _arg2 = (int ) 0;
9070 PyObject * _argo0 = 0;
9071 PyObject * _obj1 = 0;
9072 char *_kwnames[] = { "self","cmd","index", NULL };
9073
9074 self = self;
9075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2))
9076 return NULL;
9077 if (_argo0) {
9078 if (_argo0 == Py_None) { _arg0 = NULL; }
9079 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
9080 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p.");
9081 return NULL;
9082 }
9083 }
9084 if (_obj1)
9085 {
9086 _arg1 = wxString_in_helper(_obj1);
9087 if (_arg1 == NULL)
9088 return NULL;
9089 }
9090 {
9091 PyThreadState* __tstate = wxPyBeginAllowThreads();
9092 _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2);
9093
9094 wxPyEndAllowThreads(__tstate);
9095 if (PyErr_Occurred()) return NULL;
9096 } _resultobj = Py_BuildValue("i",_result);
9097 {
9098 if (_obj1)
9099 delete _arg1;
9100 }
9101 return _resultobj;
9102 }
9103
9104 #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate())
9105 static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
9106 PyObject * _resultobj;
9107 bool _result;
9108 wxFileType * _arg0;
9109 PyObject * _argo0 = 0;
9110 char *_kwnames[] = { "self", NULL };
9111
9112 self = self;
9113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0))
9114 return NULL;
9115 if (_argo0) {
9116 if (_argo0 == Py_None) { _arg0 = NULL; }
9117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
9118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p.");
9119 return NULL;
9120 }
9121 }
9122 {
9123 PyThreadState* __tstate = wxPyBeginAllowThreads();
9124 _result = (bool )wxFileType_Unassociate(_arg0);
9125
9126 wxPyEndAllowThreads(__tstate);
9127 if (PyErr_Occurred()) return NULL;
9128 } _resultobj = Py_BuildValue("i",_result);
9129 return _resultobj;
9130 }
9131
9132 static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
9133 PyObject * _resultobj;
9134 wxString * _result;
9135 wxString * _arg0;
9136 wxFileType::MessageParameters * _arg1;
9137 PyObject * _obj0 = 0;
9138 PyObject * _argo1 = 0;
9139 char *_kwnames[] = { "command","params", NULL };
9140
9141 self = self;
9142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1))
9143 return NULL;
9144 {
9145 _arg0 = wxString_in_helper(_obj0);
9146 if (_arg0 == NULL)
9147 return NULL;
9148 }
9149 if (_argo1) {
9150 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) {
9151 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p.");
9152 return NULL;
9153 }
9154 }
9155 {
9156 PyThreadState* __tstate = wxPyBeginAllowThreads();
9157 _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1));
9158
9159 wxPyEndAllowThreads(__tstate);
9160 if (PyErr_Occurred()) return NULL;
9161 }{
9162 #if wxUSE_UNICODE
9163 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
9164 #else
9165 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9166 #endif
9167 }
9168 {
9169 if (_obj0)
9170 delete _arg0;
9171 }
9172 {
9173 delete _result;
9174 }
9175 return _resultobj;
9176 }
9177
9178 #define delete_wxFileType(_swigobj) (delete _swigobj)
9179 static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) {
9180 PyObject * _resultobj;
9181 wxFileType * _arg0;
9182 PyObject * _argo0 = 0;
9183 char *_kwnames[] = { "self", NULL };
9184
9185 self = self;
9186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0))
9187 return NULL;
9188 if (_argo0) {
9189 if (_argo0 == Py_None) { _arg0 = NULL; }
9190 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
9191 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p.");
9192 return NULL;
9193 }
9194 }
9195 {
9196 PyThreadState* __tstate = wxPyBeginAllowThreads();
9197 delete_wxFileType(_arg0);
9198
9199 wxPyEndAllowThreads(__tstate);
9200 if (PyErr_Occurred()) return NULL;
9201 } Py_INCREF(Py_None);
9202 _resultobj = Py_None;
9203 return _resultobj;
9204 }
9205
9206 static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
9207 PyObject * _resultobj;
9208 bool _result;
9209 wxString * _arg0;
9210 wxString * _arg1;
9211 PyObject * _obj0 = 0;
9212 PyObject * _obj1 = 0;
9213 char *_kwnames[] = { "mimeType","wildcard", NULL };
9214
9215 self = self;
9216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1))
9217 return NULL;
9218 {
9219 _arg0 = wxString_in_helper(_obj0);
9220 if (_arg0 == NULL)
9221 return NULL;
9222 }
9223 {
9224 _arg1 = wxString_in_helper(_obj1);
9225 if (_arg1 == NULL)
9226 return NULL;
9227 }
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
9230 _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1);
9231
9232 wxPyEndAllowThreads(__tstate);
9233 if (PyErr_Occurred()) return NULL;
9234 } _resultobj = Py_BuildValue("i",_result);
9235 {
9236 if (_obj0)
9237 delete _arg0;
9238 }
9239 {
9240 if (_obj1)
9241 delete _arg1;
9242 }
9243 return _resultobj;
9244 }
9245
9246 #define new_wxMimeTypesManager() (new wxMimeTypesManager())
9247 static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
9248 PyObject * _resultobj;
9249 wxMimeTypesManager * _result;
9250 char *_kwnames[] = { NULL };
9251 char _ptemp[128];
9252
9253 self = self;
9254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames))
9255 return NULL;
9256 {
9257 PyThreadState* __tstate = wxPyBeginAllowThreads();
9258 _result = (wxMimeTypesManager *)new_wxMimeTypesManager();
9259
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) return NULL;
9262 } if (_result) {
9263 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p");
9264 _resultobj = Py_BuildValue("s",_ptemp);
9265 } else {
9266 Py_INCREF(Py_None);
9267 _resultobj = Py_None;
9268 }
9269 return _resultobj;
9270 }
9271
9272 #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1))
9273 static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
9274 PyObject * _resultobj;
9275 wxMimeTypesManager * _arg0;
9276 int _arg1 = (int ) (wxMAILCAP_STANDARD);
9277 wxString * _arg2 = (wxString *) &wxPyEmptyString;
9278 PyObject * _argo0 = 0;
9279 PyObject * _obj2 = 0;
9280 char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL };
9281
9282 self = self;
9283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2))
9284 return NULL;
9285 if (_argo0) {
9286 if (_argo0 == Py_None) { _arg0 = NULL; }
9287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p.");
9289 return NULL;
9290 }
9291 }
9292 if (_obj2)
9293 {
9294 _arg2 = wxString_in_helper(_obj2);
9295 if (_arg2 == NULL)
9296 return NULL;
9297 }
9298 {
9299 PyThreadState* __tstate = wxPyBeginAllowThreads();
9300 wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2);
9301
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) return NULL;
9304 } Py_INCREF(Py_None);
9305 _resultobj = Py_None;
9306 {
9307 if (_obj2)
9308 delete _arg2;
9309 }
9310 return _resultobj;
9311 }
9312
9313 #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData())
9314 static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
9315 PyObject * _resultobj;
9316 wxMimeTypesManager * _arg0;
9317 PyObject * _argo0 = 0;
9318 char *_kwnames[] = { "self", NULL };
9319
9320 self = self;
9321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0))
9322 return NULL;
9323 if (_argo0) {
9324 if (_argo0 == Py_None) { _arg0 = NULL; }
9325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p.");
9327 return NULL;
9328 }
9329 }
9330 {
9331 PyThreadState* __tstate = wxPyBeginAllowThreads();
9332 wxMimeTypesManager_ClearData(_arg0);
9333
9334 wxPyEndAllowThreads(__tstate);
9335 if (PyErr_Occurred()) return NULL;
9336 } Py_INCREF(Py_None);
9337 _resultobj = Py_None;
9338 return _resultobj;
9339 }
9340
9341 #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0))
9342 static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
9343 PyObject * _resultobj;
9344 wxFileType * _result;
9345 wxMimeTypesManager * _arg0;
9346 wxString * _arg1;
9347 PyObject * _argo0 = 0;
9348 PyObject * _obj1 = 0;
9349 char *_kwnames[] = { "self","ext", NULL };
9350 char _ptemp[128];
9351
9352 self = self;
9353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1))
9354 return NULL;
9355 if (_argo0) {
9356 if (_argo0 == Py_None) { _arg0 = NULL; }
9357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p.");
9359 return NULL;
9360 }
9361 }
9362 {
9363 _arg1 = wxString_in_helper(_obj1);
9364 if (_arg1 == NULL)
9365 return NULL;
9366 }
9367 {
9368 PyThreadState* __tstate = wxPyBeginAllowThreads();
9369 _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1);
9370
9371 wxPyEndAllowThreads(__tstate);
9372 if (PyErr_Occurred()) return NULL;
9373 } if (_result) {
9374 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
9375 _resultobj = Py_BuildValue("s",_ptemp);
9376 } else {
9377 Py_INCREF(Py_None);
9378 _resultobj = Py_None;
9379 }
9380 {
9381 if (_obj1)
9382 delete _arg1;
9383 }
9384 return _resultobj;
9385 }
9386
9387 #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0))
9388 static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
9389 PyObject * _resultobj;
9390 wxFileType * _result;
9391 wxMimeTypesManager * _arg0;
9392 wxString * _arg1;
9393 PyObject * _argo0 = 0;
9394 PyObject * _obj1 = 0;
9395 char *_kwnames[] = { "self","mimeType", NULL };
9396 char _ptemp[128];
9397
9398 self = self;
9399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1))
9400 return NULL;
9401 if (_argo0) {
9402 if (_argo0 == Py_None) { _arg0 = NULL; }
9403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p.");
9405 return NULL;
9406 }
9407 }
9408 {
9409 _arg1 = wxString_in_helper(_obj1);
9410 if (_arg1 == NULL)
9411 return NULL;
9412 }
9413 {
9414 PyThreadState* __tstate = wxPyBeginAllowThreads();
9415 _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1);
9416
9417 wxPyEndAllowThreads(__tstate);
9418 if (PyErr_Occurred()) return NULL;
9419 } if (_result) {
9420 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
9421 _resultobj = Py_BuildValue("s",_ptemp);
9422 } else {
9423 Py_INCREF(Py_None);
9424 _resultobj = Py_None;
9425 }
9426 {
9427 if (_obj1)
9428 delete _arg1;
9429 }
9430 return _resultobj;
9431 }
9432
9433 #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1))
9434 static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
9435 PyObject * _resultobj;
9436 bool _result;
9437 wxMimeTypesManager * _arg0;
9438 wxString * _arg1;
9439 bool _arg2 = (bool ) FALSE;
9440 PyObject * _argo0 = 0;
9441 PyObject * _obj1 = 0;
9442 int tempbool2 = (int) FALSE;
9443 char *_kwnames[] = { "self","filename","fallback", NULL };
9444
9445 self = self;
9446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2))
9447 return NULL;
9448 if (_argo0) {
9449 if (_argo0 == Py_None) { _arg0 = NULL; }
9450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p.");
9452 return NULL;
9453 }
9454 }
9455 {
9456 _arg1 = wxString_in_helper(_obj1);
9457 if (_arg1 == NULL)
9458 return NULL;
9459 }
9460 _arg2 = (bool ) tempbool2;
9461 {
9462 PyThreadState* __tstate = wxPyBeginAllowThreads();
9463 _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2);
9464
9465 wxPyEndAllowThreads(__tstate);
9466 if (PyErr_Occurred()) return NULL;
9467 } _resultobj = Py_BuildValue("i",_result);
9468 {
9469 if (_obj1)
9470 delete _arg1;
9471 }
9472 return _resultobj;
9473 }
9474
9475 #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0))
9476 static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
9477 PyObject * _resultobj;
9478 bool _result;
9479 wxMimeTypesManager * _arg0;
9480 wxString * _arg1;
9481 PyObject * _argo0 = 0;
9482 PyObject * _obj1 = 0;
9483 char *_kwnames[] = { "self","filename", NULL };
9484
9485 self = self;
9486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1))
9487 return NULL;
9488 if (_argo0) {
9489 if (_argo0 == Py_None) { _arg0 = NULL; }
9490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p.");
9492 return NULL;
9493 }
9494 }
9495 {
9496 _arg1 = wxString_in_helper(_obj1);
9497 if (_arg1 == NULL)
9498 return NULL;
9499 }
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1);
9503
9504 wxPyEndAllowThreads(__tstate);
9505 if (PyErr_Occurred()) return NULL;
9506 } _resultobj = Py_BuildValue("i",_result);
9507 {
9508 if (_obj1)
9509 delete _arg1;
9510 }
9511 return _resultobj;
9512 }
9513
9514 static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) {
9515 wxArrayString arr;
9516 self->EnumAllFileTypes(arr);
9517 return wxArrayString2PyList_helper(arr);
9518 }
9519 static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
9520 PyObject * _resultobj;
9521 PyObject * _result;
9522 wxMimeTypesManager * _arg0;
9523 PyObject * _argo0 = 0;
9524 char *_kwnames[] = { "self", NULL };
9525
9526 self = self;
9527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0))
9528 return NULL;
9529 if (_argo0) {
9530 if (_argo0 == Py_None) { _arg0 = NULL; }
9531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p.");
9533 return NULL;
9534 }
9535 }
9536 {
9537 PyThreadState* __tstate = wxPyBeginAllowThreads();
9538 _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0);
9539
9540 wxPyEndAllowThreads(__tstate);
9541 if (PyErr_Occurred()) return NULL;
9542 }{
9543 _resultobj = _result;
9544 }
9545 return _resultobj;
9546 }
9547
9548 #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0))
9549 static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
9550 PyObject * _resultobj;
9551 wxMimeTypesManager * _arg0;
9552 wxFileTypeInfo * _arg1;
9553 PyObject * _argo0 = 0;
9554 PyObject * _argo1 = 0;
9555 char *_kwnames[] = { "self","ft", NULL };
9556
9557 self = self;
9558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1))
9559 return NULL;
9560 if (_argo0) {
9561 if (_argo0 == Py_None) { _arg0 = NULL; }
9562 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9563 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p.");
9564 return NULL;
9565 }
9566 }
9567 if (_argo1) {
9568 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) {
9569 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p.");
9570 return NULL;
9571 }
9572 }
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
9575 wxMimeTypesManager_AddFallback(_arg0,*_arg1);
9576
9577 wxPyEndAllowThreads(__tstate);
9578 if (PyErr_Occurred()) return NULL;
9579 } Py_INCREF(Py_None);
9580 _resultobj = Py_None;
9581 return _resultobj;
9582 }
9583
9584 #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0))
9585 static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
9586 PyObject * _resultobj;
9587 wxFileType * _result;
9588 wxMimeTypesManager * _arg0;
9589 wxFileTypeInfo * _arg1;
9590 PyObject * _argo0 = 0;
9591 PyObject * _argo1 = 0;
9592 char *_kwnames[] = { "self","ftInfo", NULL };
9593 char _ptemp[128];
9594
9595 self = self;
9596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1))
9597 return NULL;
9598 if (_argo0) {
9599 if (_argo0 == Py_None) { _arg0 = NULL; }
9600 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9601 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p.");
9602 return NULL;
9603 }
9604 }
9605 if (_argo1) {
9606 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) {
9607 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p.");
9608 return NULL;
9609 }
9610 }
9611 {
9612 PyThreadState* __tstate = wxPyBeginAllowThreads();
9613 _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1);
9614
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) return NULL;
9617 } if (_result) {
9618 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
9619 _resultobj = Py_BuildValue("s",_ptemp);
9620 } else {
9621 Py_INCREF(Py_None);
9622 _resultobj = Py_None;
9623 }
9624 return _resultobj;
9625 }
9626
9627 #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0))
9628 static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
9629 PyObject * _resultobj;
9630 bool _result;
9631 wxMimeTypesManager * _arg0;
9632 wxFileType * _arg1;
9633 PyObject * _argo0 = 0;
9634 PyObject * _argo1 = 0;
9635 char *_kwnames[] = { "self","ft", NULL };
9636
9637 self = self;
9638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1))
9639 return NULL;
9640 if (_argo0) {
9641 if (_argo0 == Py_None) { _arg0 = NULL; }
9642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p.");
9644 return NULL;
9645 }
9646 }
9647 if (_argo1) {
9648 if (_argo1 == Py_None) { _arg1 = NULL; }
9649 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) {
9650 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p.");
9651 return NULL;
9652 }
9653 }
9654 {
9655 PyThreadState* __tstate = wxPyBeginAllowThreads();
9656 _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1);
9657
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) return NULL;
9660 } _resultobj = Py_BuildValue("i",_result);
9661 return _resultobj;
9662 }
9663
9664 #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj)
9665 static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
9666 PyObject * _resultobj;
9667 wxMimeTypesManager * _arg0;
9668 PyObject * _argo0 = 0;
9669 char *_kwnames[] = { "self", NULL };
9670
9671 self = self;
9672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0))
9673 return NULL;
9674 if (_argo0) {
9675 if (_argo0 == Py_None) { _arg0 = NULL; }
9676 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9677 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p.");
9678 return NULL;
9679 }
9680 }
9681 {
9682 PyThreadState* __tstate = wxPyBeginAllowThreads();
9683 delete_wxMimeTypesManager(_arg0);
9684
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) return NULL;
9687 } Py_INCREF(Py_None);
9688 _resultobj = Py_None;
9689 return _resultobj;
9690 }
9691
9692 static void *SwigwxPyArtProviderTowxObject(void *ptr) {
9693 wxPyArtProvider *src;
9694 wxObject *dest;
9695 src = (wxPyArtProvider *) ptr;
9696 dest = (wxObject *) src;
9697 return (void *) dest;
9698 }
9699
9700 #define new_wxArtProvider() (new wxPyArtProvider())
9701 static PyObject *_wrap_new_wxArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
9702 PyObject * _resultobj;
9703 wxPyArtProvider * _result;
9704 char *_kwnames[] = { NULL };
9705 char _ptemp[128];
9706
9707 self = self;
9708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxArtProvider",_kwnames))
9709 return NULL;
9710 {
9711 PyThreadState* __tstate = wxPyBeginAllowThreads();
9712 _result = (wxPyArtProvider *)new_wxArtProvider();
9713
9714 wxPyEndAllowThreads(__tstate);
9715 if (PyErr_Occurred()) return NULL;
9716 } if (_result) {
9717 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyArtProvider_p");
9718 _resultobj = Py_BuildValue("s",_ptemp);
9719 } else {
9720 Py_INCREF(Py_None);
9721 _resultobj = Py_None;
9722 }
9723 return _resultobj;
9724 }
9725
9726 #define wxArtProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
9727 static PyObject *_wrap_wxArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9728 PyObject * _resultobj;
9729 wxPyArtProvider * _arg0;
9730 PyObject * _arg1;
9731 PyObject * _arg2;
9732 PyObject * _argo0 = 0;
9733 PyObject * _obj1 = 0;
9734 PyObject * _obj2 = 0;
9735 char *_kwnames[] = { "self","self","_class", NULL };
9736
9737 self = self;
9738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxArtProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
9739 return NULL;
9740 if (_argo0) {
9741 if (_argo0 == Py_None) { _arg0 = NULL; }
9742 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) {
9743 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider__setCallbackInfo. Expected _wxPyArtProvider_p.");
9744 return NULL;
9745 }
9746 }
9747 {
9748 _arg1 = _obj1;
9749 }
9750 {
9751 _arg2 = _obj2;
9752 }
9753 {
9754 PyThreadState* __tstate = wxPyBeginAllowThreads();
9755 wxArtProvider__setCallbackInfo(_arg0,_arg1,_arg2);
9756
9757 wxPyEndAllowThreads(__tstate);
9758 if (PyErr_Occurred()) return NULL;
9759 } Py_INCREF(Py_None);
9760 _resultobj = Py_None;
9761 return _resultobj;
9762 }
9763
9764 static PyObject *_wrap_wxArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
9765 PyObject * _resultobj;
9766 wxPyArtProvider * _arg0;
9767 PyObject * _argo0 = 0;
9768 char *_kwnames[] = { "provider", NULL };
9769
9770 self = self;
9771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_PushProvider",_kwnames,&_argo0))
9772 return NULL;
9773 if (_argo0) {
9774 if (_argo0 == Py_None) { _arg0 = NULL; }
9775 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) {
9776 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_PushProvider. Expected _wxPyArtProvider_p.");
9777 return NULL;
9778 }
9779 }
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 wxPyArtProvider::PushProvider(_arg0);
9783
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) return NULL;
9786 } Py_INCREF(Py_None);
9787 _resultobj = Py_None;
9788 return _resultobj;
9789 }
9790
9791 static PyObject *_wrap_wxArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
9792 PyObject * _resultobj;
9793 bool _result;
9794 char *_kwnames[] = { NULL };
9795
9796 self = self;
9797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_PopProvider",_kwnames))
9798 return NULL;
9799 {
9800 PyThreadState* __tstate = wxPyBeginAllowThreads();
9801 _result = (bool )wxPyArtProvider::PopProvider();
9802
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) return NULL;
9805 } _resultobj = Py_BuildValue("i",_result);
9806 return _resultobj;
9807 }
9808
9809 static PyObject *_wrap_wxArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
9810 PyObject * _resultobj;
9811 bool _result;
9812 wxPyArtProvider * _arg0;
9813 PyObject * _argo0 = 0;
9814 char *_kwnames[] = { "provider", NULL };
9815
9816 self = self;
9817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_RemoveProvider",_kwnames,&_argo0))
9818 return NULL;
9819 if (_argo0) {
9820 if (_argo0 == Py_None) { _arg0 = NULL; }
9821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) {
9822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_RemoveProvider. Expected _wxPyArtProvider_p.");
9823 return NULL;
9824 }
9825 }
9826 {
9827 PyThreadState* __tstate = wxPyBeginAllowThreads();
9828 _result = (bool )wxPyArtProvider::RemoveProvider(_arg0);
9829
9830 wxPyEndAllowThreads(__tstate);
9831 if (PyErr_Occurred()) return NULL;
9832 } _resultobj = Py_BuildValue("i",_result);
9833 return _resultobj;
9834 }
9835
9836 static PyObject *_wrap_wxArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9837 PyObject * _resultobj;
9838 wxBitmap * _result;
9839 wxString * _arg0;
9840 wxString * _arg1 = (wxString *) &wxPyART_OTHER;
9841 wxSize * _arg2 = (wxSize *) &wxDefaultSize;
9842 PyObject * _obj0 = 0;
9843 PyObject * _obj1 = 0;
9844 wxSize temp;
9845 PyObject * _obj2 = 0;
9846 char *_kwnames[] = { "id","client","size", NULL };
9847 char _ptemp[128];
9848
9849 self = self;
9850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetBitmap",_kwnames,&_obj0,&_obj1,&_obj2))
9851 return NULL;
9852 {
9853 _arg0 = wxString_in_helper(_obj0);
9854 if (_arg0 == NULL)
9855 return NULL;
9856 }
9857 if (_obj1)
9858 {
9859 _arg1 = wxString_in_helper(_obj1);
9860 if (_arg1 == NULL)
9861 return NULL;
9862 }
9863 if (_obj2)
9864 {
9865 _arg2 = &temp;
9866 if (! wxSize_helper(_obj2, &_arg2))
9867 return NULL;
9868 }
9869 {
9870 PyThreadState* __tstate = wxPyBeginAllowThreads();
9871 _result = new wxBitmap (wxPyArtProvider::GetBitmap(*_arg0,*_arg1,*_arg2));
9872
9873 wxPyEndAllowThreads(__tstate);
9874 if (PyErr_Occurred()) return NULL;
9875 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
9876 _resultobj = Py_BuildValue("s",_ptemp);
9877 {
9878 if (_obj0)
9879 delete _arg0;
9880 }
9881 {
9882 if (_obj1)
9883 delete _arg1;
9884 }
9885 return _resultobj;
9886 }
9887
9888 static PyObject *_wrap_wxArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9889 PyObject * _resultobj;
9890 wxIcon * _result;
9891 wxString * _arg0;
9892 wxString * _arg1 = (wxString *) &wxPyART_OTHER;
9893 wxSize * _arg2 = (wxSize *) &wxDefaultSize;
9894 PyObject * _obj0 = 0;
9895 PyObject * _obj1 = 0;
9896 wxSize temp;
9897 PyObject * _obj2 = 0;
9898 char *_kwnames[] = { "id","client","size", NULL };
9899 char _ptemp[128];
9900
9901 self = self;
9902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetIcon",_kwnames,&_obj0,&_obj1,&_obj2))
9903 return NULL;
9904 {
9905 _arg0 = wxString_in_helper(_obj0);
9906 if (_arg0 == NULL)
9907 return NULL;
9908 }
9909 if (_obj1)
9910 {
9911 _arg1 = wxString_in_helper(_obj1);
9912 if (_arg1 == NULL)
9913 return NULL;
9914 }
9915 if (_obj2)
9916 {
9917 _arg2 = &temp;
9918 if (! wxSize_helper(_obj2, &_arg2))
9919 return NULL;
9920 }
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 _result = new wxIcon (wxPyArtProvider::GetIcon(*_arg0,*_arg1,*_arg2));
9924
9925 wxPyEndAllowThreads(__tstate);
9926 if (PyErr_Occurred()) return NULL;
9927 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
9928 _resultobj = Py_BuildValue("s",_ptemp);
9929 {
9930 if (_obj0)
9931 delete _arg0;
9932 }
9933 {
9934 if (_obj1)
9935 delete _arg1;
9936 }
9937 return _resultobj;
9938 }
9939
9940 static void *SwigwxFileHistoryTowxObject(void *ptr) {
9941 wxFileHistory *src;
9942 wxObject *dest;
9943 src = (wxFileHistory *) ptr;
9944 dest = (wxObject *) src;
9945 return (void *) dest;
9946 }
9947
9948 #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0))
9949 static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
9950 PyObject * _resultobj;
9951 wxFileHistory * _result;
9952 int _arg0 = (int ) 9;
9953 char *_kwnames[] = { "maxFiles", NULL };
9954 char _ptemp[128];
9955
9956 self = self;
9957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0))
9958 return NULL;
9959 {
9960 PyThreadState* __tstate = wxPyBeginAllowThreads();
9961 _result = (wxFileHistory *)new_wxFileHistory(_arg0);
9962
9963 wxPyEndAllowThreads(__tstate);
9964 if (PyErr_Occurred()) return NULL;
9965 } if (_result) {
9966 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p");
9967 _resultobj = Py_BuildValue("s",_ptemp);
9968 } else {
9969 Py_INCREF(Py_None);
9970 _resultobj = Py_None;
9971 }
9972 return _resultobj;
9973 }
9974
9975 #define delete_wxFileHistory(_swigobj) (delete _swigobj)
9976 static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
9977 PyObject * _resultobj;
9978 wxFileHistory * _arg0;
9979 PyObject * _argo0 = 0;
9980 char *_kwnames[] = { "self", NULL };
9981
9982 self = self;
9983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0))
9984 return NULL;
9985 if (_argo0) {
9986 if (_argo0 == Py_None) { _arg0 = NULL; }
9987 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9988 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p.");
9989 return NULL;
9990 }
9991 }
9992 {
9993 PyThreadState* __tstate = wxPyBeginAllowThreads();
9994 delete_wxFileHistory(_arg0);
9995
9996 wxPyEndAllowThreads(__tstate);
9997 if (PyErr_Occurred()) return NULL;
9998 } Py_INCREF(Py_None);
9999 _resultobj = Py_None;
10000 return _resultobj;
10001 }
10002
10003 #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0))
10004 static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
10005 PyObject * _resultobj;
10006 wxFileHistory * _arg0;
10007 wxString * _arg1;
10008 PyObject * _argo0 = 0;
10009 PyObject * _obj1 = 0;
10010 char *_kwnames[] = { "self","file", NULL };
10011
10012 self = self;
10013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1))
10014 return NULL;
10015 if (_argo0) {
10016 if (_argo0 == Py_None) { _arg0 = NULL; }
10017 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10018 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p.");
10019 return NULL;
10020 }
10021 }
10022 {
10023 _arg1 = wxString_in_helper(_obj1);
10024 if (_arg1 == NULL)
10025 return NULL;
10026 }
10027 {
10028 PyThreadState* __tstate = wxPyBeginAllowThreads();
10029 wxFileHistory_AddFileToHistory(_arg0,*_arg1);
10030
10031 wxPyEndAllowThreads(__tstate);
10032 if (PyErr_Occurred()) return NULL;
10033 } Py_INCREF(Py_None);
10034 _resultobj = Py_None;
10035 {
10036 if (_obj1)
10037 delete _arg1;
10038 }
10039 return _resultobj;
10040 }
10041
10042 #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0))
10043 static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
10044 PyObject * _resultobj;
10045 wxFileHistory * _arg0;
10046 int _arg1;
10047 PyObject * _argo0 = 0;
10048 char *_kwnames[] = { "self","i", NULL };
10049
10050 self = self;
10051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1))
10052 return NULL;
10053 if (_argo0) {
10054 if (_argo0 == Py_None) { _arg0 = NULL; }
10055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p.");
10057 return NULL;
10058 }
10059 }
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 wxFileHistory_RemoveFileFromHistory(_arg0,_arg1);
10063
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) return NULL;
10066 } Py_INCREF(Py_None);
10067 _resultobj = Py_None;
10068 return _resultobj;
10069 }
10070
10071 #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles())
10072 static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
10073 PyObject * _resultobj;
10074 int _result;
10075 wxFileHistory * _arg0;
10076 PyObject * _argo0 = 0;
10077 char *_kwnames[] = { "self", NULL };
10078
10079 self = self;
10080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0))
10081 return NULL;
10082 if (_argo0) {
10083 if (_argo0 == Py_None) { _arg0 = NULL; }
10084 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10085 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p.");
10086 return NULL;
10087 }
10088 }
10089 {
10090 PyThreadState* __tstate = wxPyBeginAllowThreads();
10091 _result = (int )wxFileHistory_GetMaxFiles(_arg0);
10092
10093 wxPyEndAllowThreads(__tstate);
10094 if (PyErr_Occurred()) return NULL;
10095 } _resultobj = Py_BuildValue("i",_result);
10096 return _resultobj;
10097 }
10098
10099 #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0))
10100 static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
10101 PyObject * _resultobj;
10102 wxFileHistory * _arg0;
10103 wxMenu * _arg1;
10104 PyObject * _argo0 = 0;
10105 PyObject * _argo1 = 0;
10106 char *_kwnames[] = { "self","menu", NULL };
10107
10108 self = self;
10109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1))
10110 return NULL;
10111 if (_argo0) {
10112 if (_argo0 == Py_None) { _arg0 = NULL; }
10113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p.");
10115 return NULL;
10116 }
10117 }
10118 if (_argo1) {
10119 if (_argo1 == Py_None) { _arg1 = NULL; }
10120 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
10121 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p.");
10122 return NULL;
10123 }
10124 }
10125 {
10126 PyThreadState* __tstate = wxPyBeginAllowThreads();
10127 wxFileHistory_UseMenu(_arg0,_arg1);
10128
10129 wxPyEndAllowThreads(__tstate);
10130 if (PyErr_Occurred()) return NULL;
10131 } Py_INCREF(Py_None);
10132 _resultobj = Py_None;
10133 return _resultobj;
10134 }
10135
10136 #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0))
10137 static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
10138 PyObject * _resultobj;
10139 wxFileHistory * _arg0;
10140 wxMenu * _arg1;
10141 PyObject * _argo0 = 0;
10142 PyObject * _argo1 = 0;
10143 char *_kwnames[] = { "self","menu", NULL };
10144
10145 self = self;
10146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1))
10147 return NULL;
10148 if (_argo0) {
10149 if (_argo0 == Py_None) { _arg0 = NULL; }
10150 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10151 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p.");
10152 return NULL;
10153 }
10154 }
10155 if (_argo1) {
10156 if (_argo1 == Py_None) { _arg1 = NULL; }
10157 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
10158 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p.");
10159 return NULL;
10160 }
10161 }
10162 {
10163 PyThreadState* __tstate = wxPyBeginAllowThreads();
10164 wxFileHistory_RemoveMenu(_arg0,_arg1);
10165
10166 wxPyEndAllowThreads(__tstate);
10167 if (PyErr_Occurred()) return NULL;
10168 } Py_INCREF(Py_None);
10169 _resultobj = Py_None;
10170 return _resultobj;
10171 }
10172
10173 #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
10174 static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
10175 PyObject * _resultobj;
10176 wxFileHistory * _arg0;
10177 wxConfigBase * _arg1;
10178 PyObject * _argo0 = 0;
10179 PyObject * _argo1 = 0;
10180 char *_kwnames[] = { "self","config", NULL };
10181
10182 self = self;
10183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1))
10184 return NULL;
10185 if (_argo0) {
10186 if (_argo0 == Py_None) { _arg0 = NULL; }
10187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p.");
10189 return NULL;
10190 }
10191 }
10192 if (_argo1) {
10193 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
10194 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p.");
10195 return NULL;
10196 }
10197 }
10198 {
10199 PyThreadState* __tstate = wxPyBeginAllowThreads();
10200 wxFileHistory_Load(_arg0,*_arg1);
10201
10202 wxPyEndAllowThreads(__tstate);
10203 if (PyErr_Occurred()) return NULL;
10204 } Py_INCREF(Py_None);
10205 _resultobj = Py_None;
10206 return _resultobj;
10207 }
10208
10209 #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0))
10210 static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
10211 PyObject * _resultobj;
10212 wxFileHistory * _arg0;
10213 wxConfigBase * _arg1;
10214 PyObject * _argo0 = 0;
10215 PyObject * _argo1 = 0;
10216 char *_kwnames[] = { "self","config", NULL };
10217
10218 self = self;
10219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1))
10220 return NULL;
10221 if (_argo0) {
10222 if (_argo0 == Py_None) { _arg0 = NULL; }
10223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p.");
10225 return NULL;
10226 }
10227 }
10228 if (_argo1) {
10229 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
10230 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p.");
10231 return NULL;
10232 }
10233 }
10234 {
10235 PyThreadState* __tstate = wxPyBeginAllowThreads();
10236 wxFileHistory_Save(_arg0,*_arg1);
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_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu())
10246 static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
10247 PyObject * _resultobj;
10248 wxFileHistory * _arg0;
10249 PyObject * _argo0 = 0;
10250 char *_kwnames[] = { "self", NULL };
10251
10252 self = self;
10253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0))
10254 return NULL;
10255 if (_argo0) {
10256 if (_argo0 == Py_None) { _arg0 = NULL; }
10257 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p.");
10259 return NULL;
10260 }
10261 }
10262 {
10263 PyThreadState* __tstate = wxPyBeginAllowThreads();
10264 wxFileHistory_AddFilesToMenu(_arg0);
10265
10266 wxPyEndAllowThreads(__tstate);
10267 if (PyErr_Occurred()) return NULL;
10268 } Py_INCREF(Py_None);
10269 _resultobj = Py_None;
10270 return _resultobj;
10271 }
10272
10273 #define wxFileHistory_AddFilesToThisMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0))
10274 static PyObject *_wrap_wxFileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
10275 PyObject * _resultobj;
10276 wxFileHistory * _arg0;
10277 wxMenu * _arg1;
10278 PyObject * _argo0 = 0;
10279 PyObject * _argo1 = 0;
10280 char *_kwnames[] = { "self","menu", NULL };
10281
10282 self = self;
10283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToThisMenu",_kwnames,&_argo0,&_argo1))
10284 return NULL;
10285 if (_argo0) {
10286 if (_argo0 == Py_None) { _arg0 = NULL; }
10287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToThisMenu. Expected _wxFileHistory_p.");
10289 return NULL;
10290 }
10291 }
10292 if (_argo1) {
10293 if (_argo1 == Py_None) { _arg1 = NULL; }
10294 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
10295 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToThisMenu. Expected _wxMenu_p.");
10296 return NULL;
10297 }
10298 }
10299 {
10300 PyThreadState* __tstate = wxPyBeginAllowThreads();
10301 wxFileHistory_AddFilesToThisMenu(_arg0,_arg1);
10302
10303 wxPyEndAllowThreads(__tstate);
10304 if (PyErr_Occurred()) return NULL;
10305 } Py_INCREF(Py_None);
10306 _resultobj = Py_None;
10307 return _resultobj;
10308 }
10309
10310 #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0))
10311 static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10312 PyObject * _resultobj;
10313 wxString * _result;
10314 wxFileHistory * _arg0;
10315 int _arg1;
10316 PyObject * _argo0 = 0;
10317 char *_kwnames[] = { "self","i", NULL };
10318
10319 self = self;
10320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1))
10321 return NULL;
10322 if (_argo0) {
10323 if (_argo0 == Py_None) { _arg0 = NULL; }
10324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p.");
10326 return NULL;
10327 }
10328 }
10329 {
10330 PyThreadState* __tstate = wxPyBeginAllowThreads();
10331 _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1));
10332
10333 wxPyEndAllowThreads(__tstate);
10334 if (PyErr_Occurred()) return NULL;
10335 }{
10336 #if wxUSE_UNICODE
10337 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
10338 #else
10339 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10340 #endif
10341 }
10342 {
10343 delete _result;
10344 }
10345 return _resultobj;
10346 }
10347
10348 #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount())
10349 static PyObject *_wrap_wxFileHistory_GetCount(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_GetCount",_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_GetCount. Expected _wxFileHistory_p.");
10363 return NULL;
10364 }
10365 }
10366 {
10367 PyThreadState* __tstate = wxPyBeginAllowThreads();
10368 _result = (int )wxFileHistory_GetCount(_arg0);
10369
10370 wxPyEndAllowThreads(__tstate);
10371 if (PyErr_Occurred()) return NULL;
10372 } _resultobj = Py_BuildValue("i",_result);
10373 return _resultobj;
10374 }
10375
10376 #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles())
10377 static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
10378 PyObject * _resultobj;
10379 int _result;
10380 wxFileHistory * _arg0;
10381 PyObject * _argo0 = 0;
10382 char *_kwnames[] = { "self", NULL };
10383
10384 self = self;
10385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0))
10386 return NULL;
10387 if (_argo0) {
10388 if (_argo0 == Py_None) { _arg0 = NULL; }
10389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p.");
10391 return NULL;
10392 }
10393 }
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0);
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) return NULL;
10400 } _resultobj = Py_BuildValue("i",_result);
10401 return _resultobj;
10402 }
10403
10404 static void *SwigwxEffectsTowxObject(void *ptr) {
10405 wxEffects *src;
10406 wxObject *dest;
10407 src = (wxEffects *) ptr;
10408 dest = (wxObject *) src;
10409 return (void *) dest;
10410 }
10411
10412 #define new_wxEffects() (new wxEffects())
10413 static PyObject *_wrap_new_wxEffects(PyObject *self, PyObject *args, PyObject *kwargs) {
10414 PyObject * _resultobj;
10415 wxEffects * _result;
10416 char *_kwnames[] = { NULL };
10417 char _ptemp[128];
10418
10419 self = self;
10420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEffects",_kwnames))
10421 return NULL;
10422 {
10423 PyThreadState* __tstate = wxPyBeginAllowThreads();
10424 _result = (wxEffects *)new_wxEffects();
10425
10426 wxPyEndAllowThreads(__tstate);
10427 if (PyErr_Occurred()) return NULL;
10428 } if (_result) {
10429 SWIG_MakePtr(_ptemp, (char *) _result,"_wxEffects_p");
10430 _resultobj = Py_BuildValue("s",_ptemp);
10431 } else {
10432 Py_INCREF(Py_None);
10433 _resultobj = Py_None;
10434 }
10435 return _resultobj;
10436 }
10437
10438 #define wxEffects_GetHighlightColour(_swigobj) (_swigobj->GetHighlightColour())
10439 static PyObject *_wrap_wxEffects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10440 PyObject * _resultobj;
10441 wxColour * _result;
10442 wxEffects * _arg0;
10443 PyObject * _argo0 = 0;
10444 char *_kwnames[] = { "self", NULL };
10445 char _ptemp[128];
10446
10447 self = self;
10448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetHighlightColour",_kwnames,&_argo0))
10449 return NULL;
10450 if (_argo0) {
10451 if (_argo0 == Py_None) { _arg0 = NULL; }
10452 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10453 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetHighlightColour. Expected _wxEffects_p.");
10454 return NULL;
10455 }
10456 }
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 _result = new wxColour (wxEffects_GetHighlightColour(_arg0));
10460
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) return NULL;
10463 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
10464 _resultobj = Py_BuildValue("s",_ptemp);
10465 return _resultobj;
10466 }
10467
10468 #define wxEffects_GetLightShadow(_swigobj) (_swigobj->GetLightShadow())
10469 static PyObject *_wrap_wxEffects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
10470 PyObject * _resultobj;
10471 wxColour * _result;
10472 wxEffects * _arg0;
10473 PyObject * _argo0 = 0;
10474 char *_kwnames[] = { "self", NULL };
10475 char _ptemp[128];
10476
10477 self = self;
10478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetLightShadow",_kwnames,&_argo0))
10479 return NULL;
10480 if (_argo0) {
10481 if (_argo0 == Py_None) { _arg0 = NULL; }
10482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetLightShadow. Expected _wxEffects_p.");
10484 return NULL;
10485 }
10486 }
10487 {
10488 PyThreadState* __tstate = wxPyBeginAllowThreads();
10489 _result = new wxColour (wxEffects_GetLightShadow(_arg0));
10490
10491 wxPyEndAllowThreads(__tstate);
10492 if (PyErr_Occurred()) return NULL;
10493 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
10494 _resultobj = Py_BuildValue("s",_ptemp);
10495 return _resultobj;
10496 }
10497
10498 #define wxEffects_GetFaceColour(_swigobj) (_swigobj->GetFaceColour())
10499 static PyObject *_wrap_wxEffects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10500 PyObject * _resultobj;
10501 wxColour * _result;
10502 wxEffects * _arg0;
10503 PyObject * _argo0 = 0;
10504 char *_kwnames[] = { "self", NULL };
10505 char _ptemp[128];
10506
10507 self = self;
10508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetFaceColour",_kwnames,&_argo0))
10509 return NULL;
10510 if (_argo0) {
10511 if (_argo0 == Py_None) { _arg0 = NULL; }
10512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetFaceColour. Expected _wxEffects_p.");
10514 return NULL;
10515 }
10516 }
10517 {
10518 PyThreadState* __tstate = wxPyBeginAllowThreads();
10519 _result = new wxColour (wxEffects_GetFaceColour(_arg0));
10520
10521 wxPyEndAllowThreads(__tstate);
10522 if (PyErr_Occurred()) return NULL;
10523 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
10524 _resultobj = Py_BuildValue("s",_ptemp);
10525 return _resultobj;
10526 }
10527
10528 #define wxEffects_GetMediumShadow(_swigobj) (_swigobj->GetMediumShadow())
10529 static PyObject *_wrap_wxEffects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
10530 PyObject * _resultobj;
10531 wxColour * _result;
10532 wxEffects * _arg0;
10533 PyObject * _argo0 = 0;
10534 char *_kwnames[] = { "self", NULL };
10535 char _ptemp[128];
10536
10537 self = self;
10538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetMediumShadow",_kwnames,&_argo0))
10539 return NULL;
10540 if (_argo0) {
10541 if (_argo0 == Py_None) { _arg0 = NULL; }
10542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetMediumShadow. Expected _wxEffects_p.");
10544 return NULL;
10545 }
10546 }
10547 {
10548 PyThreadState* __tstate = wxPyBeginAllowThreads();
10549 _result = new wxColour (wxEffects_GetMediumShadow(_arg0));
10550
10551 wxPyEndAllowThreads(__tstate);
10552 if (PyErr_Occurred()) return NULL;
10553 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
10554 _resultobj = Py_BuildValue("s",_ptemp);
10555 return _resultobj;
10556 }
10557
10558 #define wxEffects_GetDarkShadow(_swigobj) (_swigobj->GetDarkShadow())
10559 static PyObject *_wrap_wxEffects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
10560 PyObject * _resultobj;
10561 wxColour * _result;
10562 wxEffects * _arg0;
10563 PyObject * _argo0 = 0;
10564 char *_kwnames[] = { "self", NULL };
10565 char _ptemp[128];
10566
10567 self = self;
10568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetDarkShadow",_kwnames,&_argo0))
10569 return NULL;
10570 if (_argo0) {
10571 if (_argo0 == Py_None) { _arg0 = NULL; }
10572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetDarkShadow. Expected _wxEffects_p.");
10574 return NULL;
10575 }
10576 }
10577 {
10578 PyThreadState* __tstate = wxPyBeginAllowThreads();
10579 _result = new wxColour (wxEffects_GetDarkShadow(_arg0));
10580
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) return NULL;
10583 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
10584 _resultobj = Py_BuildValue("s",_ptemp);
10585 return _resultobj;
10586 }
10587
10588 #define wxEffects_SetHighlightColour(_swigobj,_swigarg0) (_swigobj->SetHighlightColour(_swigarg0))
10589 static PyObject *_wrap_wxEffects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10590 PyObject * _resultobj;
10591 wxEffects * _arg0;
10592 wxColour * _arg1;
10593 PyObject * _argo0 = 0;
10594 wxColour temp;
10595 PyObject * _obj1 = 0;
10596 char *_kwnames[] = { "self","c", NULL };
10597
10598 self = self;
10599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetHighlightColour",_kwnames,&_argo0,&_obj1))
10600 return NULL;
10601 if (_argo0) {
10602 if (_argo0 == Py_None) { _arg0 = NULL; }
10603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetHighlightColour. Expected _wxEffects_p.");
10605 return NULL;
10606 }
10607 }
10608 {
10609 _arg1 = &temp;
10610 if (! wxColour_helper(_obj1, &_arg1))
10611 return NULL;
10612 }
10613 {
10614 PyThreadState* __tstate = wxPyBeginAllowThreads();
10615 wxEffects_SetHighlightColour(_arg0,*_arg1);
10616
10617 wxPyEndAllowThreads(__tstate);
10618 if (PyErr_Occurred()) return NULL;
10619 } Py_INCREF(Py_None);
10620 _resultobj = Py_None;
10621 return _resultobj;
10622 }
10623
10624 #define wxEffects_SetLightShadow(_swigobj,_swigarg0) (_swigobj->SetLightShadow(_swigarg0))
10625 static PyObject *_wrap_wxEffects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
10626 PyObject * _resultobj;
10627 wxEffects * _arg0;
10628 wxColour * _arg1;
10629 PyObject * _argo0 = 0;
10630 wxColour temp;
10631 PyObject * _obj1 = 0;
10632 char *_kwnames[] = { "self","c", NULL };
10633
10634 self = self;
10635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetLightShadow",_kwnames,&_argo0,&_obj1))
10636 return NULL;
10637 if (_argo0) {
10638 if (_argo0 == Py_None) { _arg0 = NULL; }
10639 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10640 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetLightShadow. Expected _wxEffects_p.");
10641 return NULL;
10642 }
10643 }
10644 {
10645 _arg1 = &temp;
10646 if (! wxColour_helper(_obj1, &_arg1))
10647 return NULL;
10648 }
10649 {
10650 PyThreadState* __tstate = wxPyBeginAllowThreads();
10651 wxEffects_SetLightShadow(_arg0,*_arg1);
10652
10653 wxPyEndAllowThreads(__tstate);
10654 if (PyErr_Occurred()) return NULL;
10655 } Py_INCREF(Py_None);
10656 _resultobj = Py_None;
10657 return _resultobj;
10658 }
10659
10660 #define wxEffects_SetFaceColour(_swigobj,_swigarg0) (_swigobj->SetFaceColour(_swigarg0))
10661 static PyObject *_wrap_wxEffects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10662 PyObject * _resultobj;
10663 wxEffects * _arg0;
10664 wxColour * _arg1;
10665 PyObject * _argo0 = 0;
10666 wxColour temp;
10667 PyObject * _obj1 = 0;
10668 char *_kwnames[] = { "self","c", NULL };
10669
10670 self = self;
10671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetFaceColour",_kwnames,&_argo0,&_obj1))
10672 return NULL;
10673 if (_argo0) {
10674 if (_argo0 == Py_None) { _arg0 = NULL; }
10675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetFaceColour. Expected _wxEffects_p.");
10677 return NULL;
10678 }
10679 }
10680 {
10681 _arg1 = &temp;
10682 if (! wxColour_helper(_obj1, &_arg1))
10683 return NULL;
10684 }
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 wxEffects_SetFaceColour(_arg0,*_arg1);
10688
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) return NULL;
10691 } Py_INCREF(Py_None);
10692 _resultobj = Py_None;
10693 return _resultobj;
10694 }
10695
10696 #define wxEffects_SetMediumShadow(_swigobj,_swigarg0) (_swigobj->SetMediumShadow(_swigarg0))
10697 static PyObject *_wrap_wxEffects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
10698 PyObject * _resultobj;
10699 wxEffects * _arg0;
10700 wxColour * _arg1;
10701 PyObject * _argo0 = 0;
10702 wxColour temp;
10703 PyObject * _obj1 = 0;
10704 char *_kwnames[] = { "self","c", NULL };
10705
10706 self = self;
10707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetMediumShadow",_kwnames,&_argo0,&_obj1))
10708 return NULL;
10709 if (_argo0) {
10710 if (_argo0 == Py_None) { _arg0 = NULL; }
10711 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10712 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetMediumShadow. Expected _wxEffects_p.");
10713 return NULL;
10714 }
10715 }
10716 {
10717 _arg1 = &temp;
10718 if (! wxColour_helper(_obj1, &_arg1))
10719 return NULL;
10720 }
10721 {
10722 PyThreadState* __tstate = wxPyBeginAllowThreads();
10723 wxEffects_SetMediumShadow(_arg0,*_arg1);
10724
10725 wxPyEndAllowThreads(__tstate);
10726 if (PyErr_Occurred()) return NULL;
10727 } Py_INCREF(Py_None);
10728 _resultobj = Py_None;
10729 return _resultobj;
10730 }
10731
10732 #define wxEffects_SetDarkShadow(_swigobj,_swigarg0) (_swigobj->SetDarkShadow(_swigarg0))
10733 static PyObject *_wrap_wxEffects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
10734 PyObject * _resultobj;
10735 wxEffects * _arg0;
10736 wxColour * _arg1;
10737 PyObject * _argo0 = 0;
10738 wxColour temp;
10739 PyObject * _obj1 = 0;
10740 char *_kwnames[] = { "self","c", NULL };
10741
10742 self = self;
10743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetDarkShadow",_kwnames,&_argo0,&_obj1))
10744 return NULL;
10745 if (_argo0) {
10746 if (_argo0 == Py_None) { _arg0 = NULL; }
10747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetDarkShadow. Expected _wxEffects_p.");
10749 return NULL;
10750 }
10751 }
10752 {
10753 _arg1 = &temp;
10754 if (! wxColour_helper(_obj1, &_arg1))
10755 return NULL;
10756 }
10757 {
10758 PyThreadState* __tstate = wxPyBeginAllowThreads();
10759 wxEffects_SetDarkShadow(_arg0,*_arg1);
10760
10761 wxPyEndAllowThreads(__tstate);
10762 if (PyErr_Occurred()) return NULL;
10763 } Py_INCREF(Py_None);
10764 _resultobj = Py_None;
10765 return _resultobj;
10766 }
10767
10768 #define wxEffects_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
10769 static PyObject *_wrap_wxEffects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
10770 PyObject * _resultobj;
10771 wxEffects * _arg0;
10772 wxColour * _arg1;
10773 wxColour * _arg2;
10774 wxColour * _arg3;
10775 wxColour * _arg4;
10776 wxColour * _arg5;
10777 PyObject * _argo0 = 0;
10778 wxColour temp;
10779 PyObject * _obj1 = 0;
10780 wxColour temp0;
10781 PyObject * _obj2 = 0;
10782 wxColour temp1;
10783 PyObject * _obj3 = 0;
10784 wxColour temp2;
10785 PyObject * _obj4 = 0;
10786 wxColour temp3;
10787 PyObject * _obj5 = 0;
10788 char *_kwnames[] = { "self","highlightColour","lightShadow","faceColour","mediumShadow","darkShadow", NULL };
10789
10790 self = self;
10791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOOO:wxEffects_Set",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4,&_obj5))
10792 return NULL;
10793 if (_argo0) {
10794 if (_argo0 == Py_None) { _arg0 = NULL; }
10795 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10796 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_Set. Expected _wxEffects_p.");
10797 return NULL;
10798 }
10799 }
10800 {
10801 _arg1 = &temp;
10802 if (! wxColour_helper(_obj1, &_arg1))
10803 return NULL;
10804 }
10805 {
10806 _arg2 = &temp0;
10807 if (! wxColour_helper(_obj2, &_arg2))
10808 return NULL;
10809 }
10810 {
10811 _arg3 = &temp1;
10812 if (! wxColour_helper(_obj3, &_arg3))
10813 return NULL;
10814 }
10815 {
10816 _arg4 = &temp2;
10817 if (! wxColour_helper(_obj4, &_arg4))
10818 return NULL;
10819 }
10820 {
10821 _arg5 = &temp3;
10822 if (! wxColour_helper(_obj5, &_arg5))
10823 return NULL;
10824 }
10825 {
10826 PyThreadState* __tstate = wxPyBeginAllowThreads();
10827 wxEffects_Set(_arg0,*_arg1,*_arg2,*_arg3,*_arg4,*_arg5);
10828
10829 wxPyEndAllowThreads(__tstate);
10830 if (PyErr_Occurred()) return NULL;
10831 } Py_INCREF(Py_None);
10832 _resultobj = Py_None;
10833 return _resultobj;
10834 }
10835
10836 #define wxEffects_DrawSunkenEdge(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawSunkenEdge(_swigarg0,_swigarg1,_swigarg2))
10837 static PyObject *_wrap_wxEffects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
10838 PyObject * _resultobj;
10839 wxEffects * _arg0;
10840 wxDC * _arg1;
10841 wxRect * _arg2;
10842 int _arg3 = (int ) 1;
10843 PyObject * _argo0 = 0;
10844 PyObject * _argo1 = 0;
10845 wxRect temp;
10846 PyObject * _obj2 = 0;
10847 char *_kwnames[] = { "self","dc","rect","borderSize", NULL };
10848
10849 self = self;
10850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxEffects_DrawSunkenEdge",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3))
10851 return NULL;
10852 if (_argo0) {
10853 if (_argo0 == Py_None) { _arg0 = NULL; }
10854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_DrawSunkenEdge. Expected _wxEffects_p.");
10856 return NULL;
10857 }
10858 }
10859 if (_argo1) {
10860 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) {
10861 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEffects_DrawSunkenEdge. Expected _wxDC_p.");
10862 return NULL;
10863 }
10864 }
10865 {
10866 _arg2 = &temp;
10867 if (! wxRect_helper(_obj2, &_arg2))
10868 return NULL;
10869 }
10870 {
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 wxEffects_DrawSunkenEdge(_arg0,*_arg1,*_arg2,_arg3);
10873
10874 wxPyEndAllowThreads(__tstate);
10875 if (PyErr_Occurred()) return NULL;
10876 } Py_INCREF(Py_None);
10877 _resultobj = Py_None;
10878 return _resultobj;
10879 }
10880
10881 #define wxEffects_TileBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->TileBitmap(_swigarg0,_swigarg1,_swigarg2))
10882 static PyObject *_wrap_wxEffects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10883 PyObject * _resultobj;
10884 bool _result;
10885 wxEffects * _arg0;
10886 wxRect * _arg1;
10887 wxDC * _arg2;
10888 wxBitmap * _arg3;
10889 PyObject * _argo0 = 0;
10890 wxRect temp;
10891 PyObject * _obj1 = 0;
10892 PyObject * _argo2 = 0;
10893 PyObject * _argo3 = 0;
10894 char *_kwnames[] = { "self","rect","dc","bitmap", NULL };
10895
10896 self = self;
10897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxEffects_TileBitmap",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3))
10898 return NULL;
10899 if (_argo0) {
10900 if (_argo0 == Py_None) { _arg0 = NULL; }
10901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) {
10902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_TileBitmap. Expected _wxEffects_p.");
10903 return NULL;
10904 }
10905 }
10906 {
10907 _arg1 = &temp;
10908 if (! wxRect_helper(_obj1, &_arg1))
10909 return NULL;
10910 }
10911 if (_argo2) {
10912 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
10913 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxEffects_TileBitmap. Expected _wxDC_p.");
10914 return NULL;
10915 }
10916 }
10917 if (_argo3) {
10918 if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
10919 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxEffects_TileBitmap. Expected _wxBitmap_p.");
10920 return NULL;
10921 }
10922 }
10923 {
10924 PyThreadState* __tstate = wxPyBeginAllowThreads();
10925 _result = (bool )wxEffects_TileBitmap(_arg0,*_arg1,*_arg2,*_arg3);
10926
10927 wxPyEndAllowThreads(__tstate);
10928 if (PyErr_Occurred()) return NULL;
10929 } _resultobj = Py_BuildValue("i",_result);
10930 return _resultobj;
10931 }
10932
10933 #define new_wxSingleInstanceChecker(_swigarg0,_swigarg1) (new wxSingleInstanceChecker(_swigarg0,_swigarg1))
10934 static PyObject *_wrap_new_wxSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
10935 PyObject * _resultobj;
10936 wxSingleInstanceChecker * _result;
10937 wxString * _arg0;
10938 wxString * _arg1 = (wxString *) &wxPyEmptyString;
10939 PyObject * _obj0 = 0;
10940 PyObject * _obj1 = 0;
10941 char *_kwnames[] = { "name","path", NULL };
10942 char _ptemp[128];
10943
10944 self = self;
10945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxSingleInstanceChecker",_kwnames,&_obj0,&_obj1))
10946 return NULL;
10947 {
10948 _arg0 = wxString_in_helper(_obj0);
10949 if (_arg0 == NULL)
10950 return NULL;
10951 }
10952 if (_obj1)
10953 {
10954 _arg1 = wxString_in_helper(_obj1);
10955 if (_arg1 == NULL)
10956 return NULL;
10957 }
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 _result = (wxSingleInstanceChecker *)new_wxSingleInstanceChecker(*_arg0,*_arg1);
10961
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) return NULL;
10964 } if (_result) {
10965 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleInstanceChecker_p");
10966 _resultobj = Py_BuildValue("s",_ptemp);
10967 } else {
10968 Py_INCREF(Py_None);
10969 _resultobj = Py_None;
10970 }
10971 {
10972 if (_obj0)
10973 delete _arg0;
10974 }
10975 {
10976 if (_obj1)
10977 delete _arg1;
10978 }
10979 return _resultobj;
10980 }
10981
10982 #define new_wxPreSingleInstanceChecker() (new wxSingleInstanceChecker())
10983 static PyObject *_wrap_new_wxPreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
10984 PyObject * _resultobj;
10985 wxSingleInstanceChecker * _result;
10986 char *_kwnames[] = { NULL };
10987 char _ptemp[128];
10988
10989 self = self;
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSingleInstanceChecker",_kwnames))
10991 return NULL;
10992 {
10993 PyThreadState* __tstate = wxPyBeginAllowThreads();
10994 _result = (wxSingleInstanceChecker *)new_wxPreSingleInstanceChecker();
10995
10996 wxPyEndAllowThreads(__tstate);
10997 if (PyErr_Occurred()) return NULL;
10998 } if (_result) {
10999 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleInstanceChecker_p");
11000 _resultobj = Py_BuildValue("s",_ptemp);
11001 } else {
11002 Py_INCREF(Py_None);
11003 _resultobj = Py_None;
11004 }
11005 return _resultobj;
11006 }
11007
11008 #define delete_wxSingleInstanceChecker(_swigobj) (delete _swigobj)
11009 static PyObject *_wrap_delete_wxSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
11010 PyObject * _resultobj;
11011 wxSingleInstanceChecker * _arg0;
11012 PyObject * _argo0 = 0;
11013 char *_kwnames[] = { "self", NULL };
11014
11015 self = self;
11016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxSingleInstanceChecker",_kwnames,&_argo0))
11017 return NULL;
11018 if (_argo0) {
11019 if (_argo0 == Py_None) { _arg0 = NULL; }
11020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) {
11021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxSingleInstanceChecker. Expected _wxSingleInstanceChecker_p.");
11022 return NULL;
11023 }
11024 }
11025 {
11026 PyThreadState* __tstate = wxPyBeginAllowThreads();
11027 delete_wxSingleInstanceChecker(_arg0);
11028
11029 wxPyEndAllowThreads(__tstate);
11030 if (PyErr_Occurred()) return NULL;
11031 } Py_INCREF(Py_None);
11032 _resultobj = Py_None;
11033 return _resultobj;
11034 }
11035
11036 #define wxSingleInstanceChecker_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1))
11037 static PyObject *_wrap_wxSingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11038 PyObject * _resultobj;
11039 bool _result;
11040 wxSingleInstanceChecker * _arg0;
11041 wxString * _arg1;
11042 wxString * _arg2 = (wxString *) &wxPyEmptyString;
11043 PyObject * _argo0 = 0;
11044 PyObject * _obj1 = 0;
11045 PyObject * _obj2 = 0;
11046 char *_kwnames[] = { "self","name","path", NULL };
11047
11048 self = self;
11049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxSingleInstanceChecker_Create",_kwnames,&_argo0,&_obj1,&_obj2))
11050 return NULL;
11051 if (_argo0) {
11052 if (_argo0 == Py_None) { _arg0 = NULL; }
11053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) {
11054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleInstanceChecker_Create. Expected _wxSingleInstanceChecker_p.");
11055 return NULL;
11056 }
11057 }
11058 {
11059 _arg1 = wxString_in_helper(_obj1);
11060 if (_arg1 == NULL)
11061 return NULL;
11062 }
11063 if (_obj2)
11064 {
11065 _arg2 = wxString_in_helper(_obj2);
11066 if (_arg2 == NULL)
11067 return NULL;
11068 }
11069 {
11070 PyThreadState* __tstate = wxPyBeginAllowThreads();
11071 _result = (bool )wxSingleInstanceChecker_Create(_arg0,*_arg1,*_arg2);
11072
11073 wxPyEndAllowThreads(__tstate);
11074 if (PyErr_Occurred()) return NULL;
11075 } _resultobj = Py_BuildValue("i",_result);
11076 {
11077 if (_obj1)
11078 delete _arg1;
11079 }
11080 {
11081 if (_obj2)
11082 delete _arg2;
11083 }
11084 return _resultobj;
11085 }
11086
11087 #define wxSingleInstanceChecker_IsAnotherRunning(_swigobj) (_swigobj->IsAnotherRunning())
11088 static PyObject *_wrap_wxSingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
11089 PyObject * _resultobj;
11090 bool _result;
11091 wxSingleInstanceChecker * _arg0;
11092 PyObject * _argo0 = 0;
11093 char *_kwnames[] = { "self", NULL };
11094
11095 self = self;
11096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleInstanceChecker_IsAnotherRunning",_kwnames,&_argo0))
11097 return NULL;
11098 if (_argo0) {
11099 if (_argo0 == Py_None) { _arg0 = NULL; }
11100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) {
11101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleInstanceChecker_IsAnotherRunning. Expected _wxSingleInstanceChecker_p.");
11102 return NULL;
11103 }
11104 }
11105 {
11106 PyThreadState* __tstate = wxPyBeginAllowThreads();
11107 _result = (bool )wxSingleInstanceChecker_IsAnotherRunning(_arg0);
11108
11109 wxPyEndAllowThreads(__tstate);
11110 if (PyErr_Occurred()) return NULL;
11111 } _resultobj = Py_BuildValue("i",_result);
11112 return _resultobj;
11113 }
11114
11115 static PyMethodDef misc2cMethods[] = {
11116 { "wxSingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_wxSingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
11117 { "wxSingleInstanceChecker_Create", (PyCFunction) _wrap_wxSingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
11118 { "delete_wxSingleInstanceChecker", (PyCFunction) _wrap_delete_wxSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
11119 { "new_wxPreSingleInstanceChecker", (PyCFunction) _wrap_new_wxPreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
11120 { "new_wxSingleInstanceChecker", (PyCFunction) _wrap_new_wxSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
11121 { "wxEffects_TileBitmap", (PyCFunction) _wrap_wxEffects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
11122 { "wxEffects_DrawSunkenEdge", (PyCFunction) _wrap_wxEffects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
11123 { "wxEffects_Set", (PyCFunction) _wrap_wxEffects_Set, METH_VARARGS | METH_KEYWORDS },
11124 { "wxEffects_SetDarkShadow", (PyCFunction) _wrap_wxEffects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
11125 { "wxEffects_SetMediumShadow", (PyCFunction) _wrap_wxEffects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
11126 { "wxEffects_SetFaceColour", (PyCFunction) _wrap_wxEffects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
11127 { "wxEffects_SetLightShadow", (PyCFunction) _wrap_wxEffects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
11128 { "wxEffects_SetHighlightColour", (PyCFunction) _wrap_wxEffects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
11129 { "wxEffects_GetDarkShadow", (PyCFunction) _wrap_wxEffects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
11130 { "wxEffects_GetMediumShadow", (PyCFunction) _wrap_wxEffects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
11131 { "wxEffects_GetFaceColour", (PyCFunction) _wrap_wxEffects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
11132 { "wxEffects_GetLightShadow", (PyCFunction) _wrap_wxEffects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
11133 { "wxEffects_GetHighlightColour", (PyCFunction) _wrap_wxEffects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
11134 { "new_wxEffects", (PyCFunction) _wrap_new_wxEffects, METH_VARARGS | METH_KEYWORDS },
11135 { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS },
11136 { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
11137 { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
11138 { "wxFileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
11139 { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
11140 { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS },
11141 { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS },
11142 { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
11143 { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
11144 { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
11145 { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
11146 { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
11147 { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS },
11148 { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS },
11149 { "wxArtProvider_GetIcon", (PyCFunction) _wrap_wxArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
11150 { "wxArtProvider_GetBitmap", (PyCFunction) _wrap_wxArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
11151 { "wxArtProvider_RemoveProvider", (PyCFunction) _wrap_wxArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
11152 { "wxArtProvider_PopProvider", (PyCFunction) _wrap_wxArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
11153 { "wxArtProvider_PushProvider", (PyCFunction) _wrap_wxArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
11154 { "wxArtProvider__setCallbackInfo", (PyCFunction) _wrap_wxArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
11155 { "new_wxArtProvider", (PyCFunction) _wrap_new_wxArtProvider, METH_VARARGS | METH_KEYWORDS },
11156 { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS },
11157 { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
11158 { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
11159 { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
11160 { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
11161 { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
11162 { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
11163 { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
11164 { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
11165 { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
11166 { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
11167 { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS },
11168 { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
11169 { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS },
11170 { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
11171 { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
11172 { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
11173 { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
11174 { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
11175 { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
11176 { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
11177 { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
11178 { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
11179 { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
11180 { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
11181 { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
11182 { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
11183 { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS },
11184 { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
11185 { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
11186 { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
11187 { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
11188 { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
11189 { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
11190 { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
11191 { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
11192 { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
11193 { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
11194 { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
11195 { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
11196 { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
11197 { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
11198 { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
11199 { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS },
11200 { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS },
11201 { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS },
11202 { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS },
11203 { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
11204 { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
11205 { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
11206 { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
11207 { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
11208 { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS },
11209 { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS },
11210 { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS },
11211 { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
11212 { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
11213 { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
11214 { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
11215 { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
11216 { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
11217 { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
11218 { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
11219 { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
11220 { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
11221 { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
11222 { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
11223 { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
11224 { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
11225 { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
11226 { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
11227 { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
11228 { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
11229 { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
11230 { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
11231 { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
11232 { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
11233 { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
11234 { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS },
11235 { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
11236 { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
11237 { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
11238 { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
11239 { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
11240 { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
11241 { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
11242 { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
11243 { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
11244 { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
11245 { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS },
11246 { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS },
11247 { "wxProcess_IsErrorAvailable", (PyCFunction) _wrap_wxProcess_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
11248 { "wxProcess_IsInputAvailable", (PyCFunction) _wrap_wxProcess_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
11249 { "wxProcess_IsInputOpened", (PyCFunction) _wrap_wxProcess_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
11250 { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS },
11251 { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
11252 { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
11253 { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS },
11254 { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS },
11255 { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS },
11256 { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS },
11257 { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
11258 { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
11259 { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS },
11260 { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS },
11261 { "wxProcess_Open", (PyCFunction) _wrap_wxProcess_Open, METH_VARARGS | METH_KEYWORDS },
11262 { "wxProcess_Exists", (PyCFunction) _wrap_wxProcess_Exists, METH_VARARGS | METH_KEYWORDS },
11263 { "wxProcess_Kill", (PyCFunction) _wrap_wxProcess_Kill, METH_VARARGS | METH_KEYWORDS },
11264 { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
11265 { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
11266 { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
11267 { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
11268 { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
11269 { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
11270 { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS },
11271 { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS },
11272 { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
11273 { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS },
11274 { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS },
11275 { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS },
11276 { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
11277 { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
11278 { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
11279 { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
11280 { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS },
11281 { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
11282 { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
11283 { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
11284 { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
11285 { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS },
11286 { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS },
11287 { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS },
11288 { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS },
11289 { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS },
11290 { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS },
11291 { "wxLog_GetLogLevel", (PyCFunction) _wrap_wxLog_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
11292 { "wxLog_SetLogLevel", (PyCFunction) _wrap_wxLog_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
11293 { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
11294 { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
11295 { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS },
11296 { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
11297 { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
11298 { "wxLog_GetTraceMasks", (PyCFunction) _wrap_wxLog_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
11299 { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
11300 { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
11301 { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
11302 { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
11303 { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
11304 { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS },
11305 { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS },
11306 { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS },
11307 { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
11308 { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
11309 { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS },
11310 { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS },
11311 { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS },
11312 { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS },
11313 { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS },
11314 { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS },
11315 { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS },
11316 { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS },
11317 { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
11318 { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
11319 { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS },
11320 { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS },
11321 { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS },
11322 { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS },
11323 { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS },
11324 { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS },
11325 { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS },
11326 { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
11327 { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS },
11328 { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS },
11329 { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS },
11330 { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
11331 { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
11332 { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS },
11333 { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS },
11334 { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS },
11335 { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
11336 { "wxDragImage_BeginDragBounded", (PyCFunction) _wrap_wxDragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS },
11337 { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
11338 { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
11339 { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS },
11340 { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS },
11341 { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS },
11342 { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS },
11343 { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS },
11344 { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS },
11345 { "wxPyTipProvider__setCallbackInfo", (PyCFunction) _wrap_wxPyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
11346 { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS },
11347 { "wxTipProvider_PreprocessTip", (PyCFunction) _wrap_wxTipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
11348 { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
11349 { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
11350 { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS },
11351 { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
11352 { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
11353 { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS },
11354 { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS },
11355 { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS },
11356 { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS },
11357 { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS },
11358 { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS },
11359 { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS },
11360 { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
11361 { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS },
11362 { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS },
11363 { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS },
11364 { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS },
11365 { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
11366 { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS },
11367 { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
11368 { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS },
11369 { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS },
11370 { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS },
11371 { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS },
11372 { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
11373 { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
11374 { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
11375 { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
11376 { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
11377 { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS },
11378 { "wxSystemSettings_SetScreenType", (PyCFunction) _wrap_wxSystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
11379 { "wxSystemSettings_GetScreenType", (PyCFunction) _wrap_wxSystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
11380 { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
11381 { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
11382 { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
11383 { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
11384 { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS },
11385 { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS },
11386 { "wxSafeShowMessage", (PyCFunction) _wrap_wxSafeShowMessage, METH_VARARGS | METH_KEYWORDS },
11387 { "wxLogGeneric", (PyCFunction) _wrap_wxLogGeneric, METH_VARARGS | METH_KEYWORDS },
11388 { "wxLogTraceMask", (PyCFunction) _wrap_wxLogTraceMask, METH_VARARGS | METH_KEYWORDS },
11389 { "wxLogTrace", (PyCFunction) _wrap_wxLogTrace, METH_VARARGS | METH_KEYWORDS },
11390 { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS },
11391 { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS },
11392 { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS },
11393 { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS },
11394 { "wxLogDebug", (PyCFunction) _wrap_wxLogDebug, METH_VARARGS | METH_KEYWORDS },
11395 { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS },
11396 { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS },
11397 { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS },
11398 { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS },
11399 { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS },
11400 { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS },
11401 { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS },
11402 { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
11403 { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS },
11404 { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS },
11405 { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
11406 { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
11407 { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
11408 { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS },
11409 { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS },
11410 { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS },
11411 { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
11412 { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
11413 { "wxGetTopLevelParent", (PyCFunction) _wrap_wxGetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
11414 { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS },
11415 { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS },
11416 { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
11417 { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
11418 { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS },
11419 { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
11420 { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS },
11421 { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
11422 { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
11423 { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
11424 { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
11425 { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS },
11426 { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS },
11427 { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
11428 { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS },
11429 { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS },
11430 { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
11431 { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS },
11432 { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
11433 { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS },
11434 { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
11435 { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS },
11436 { "wxDirSelector", (PyCFunction) _wrap_wxDirSelector, METH_VARARGS | METH_KEYWORDS },
11437 { "wxSaveFileSelector", (PyCFunction) _wrap_wxSaveFileSelector, METH_VARARGS | METH_KEYWORDS },
11438 { "wxLoadFileSelector", (PyCFunction) _wrap_wxLoadFileSelector, METH_VARARGS | METH_KEYWORDS },
11439 { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS },
11440 { NULL, NULL }
11441 };
11442 #ifdef __cplusplus
11443 }
11444 #endif
11445 /*
11446 * This table is used by the pointer type-checker
11447 */
11448 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
11449 { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent},
11450 { "_signed_long","_long",0},
11451 { "_wxPrintQuality","_wxCoord",0},
11452 { "_wxPrintQuality","_int",0},
11453 { "_wxPrintQuality","_signed_int",0},
11454 { "_wxPrintQuality","_unsigned_int",0},
11455 { "_wxPrintQuality","_wxWindowID",0},
11456 { "_wxPrintQuality","_uint",0},
11457 { "_wxPrintQuality","_EBool",0},
11458 { "_wxPrintQuality","_size_t",0},
11459 { "_wxPrintQuality","_time_t",0},
11460 { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog},
11461 { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog},
11462 { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog},
11463 { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog},
11464 { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog},
11465 { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog},
11466 { "_byte","_unsigned_char",0},
11467 { "_long","_unsigned_long",0},
11468 { "_long","_signed_long",0},
11469 { "_size_t","_wxCoord",0},
11470 { "_size_t","_wxPrintQuality",0},
11471 { "_size_t","_time_t",0},
11472 { "_size_t","_unsigned_int",0},
11473 { "_size_t","_int",0},
11474 { "_size_t","_wxWindowID",0},
11475 { "_size_t","_uint",0},
11476 { "_uint","_wxCoord",0},
11477 { "_uint","_wxPrintQuality",0},
11478 { "_uint","_time_t",0},
11479 { "_uint","_size_t",0},
11480 { "_uint","_unsigned_int",0},
11481 { "_uint","_int",0},
11482 { "_uint","_wxWindowID",0},
11483 { "_wxChar","_char",0},
11484 { "_char","_wxChar",0},
11485 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
11486 { "_EBool","_wxCoord",0},
11487 { "_EBool","_wxPrintQuality",0},
11488 { "_EBool","_signed_int",0},
11489 { "_EBool","_int",0},
11490 { "_EBool","_wxWindowID",0},
11491 { "_unsigned_long","_long",0},
11492 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
11493 { "_signed_int","_wxCoord",0},
11494 { "_signed_int","_wxPrintQuality",0},
11495 { "_signed_int","_EBool",0},
11496 { "_signed_int","_wxWindowID",0},
11497 { "_signed_int","_int",0},
11498 { "_WXTYPE","_wxDateTime_t",0},
11499 { "_WXTYPE","_short",0},
11500 { "_WXTYPE","_signed_short",0},
11501 { "_WXTYPE","_unsigned_short",0},
11502 { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider},
11503 { "_unsigned_short","_wxDateTime_t",0},
11504 { "_unsigned_short","_WXTYPE",0},
11505 { "_unsigned_short","_short",0},
11506 { "_wxObject","_wxEffects",SwigwxEffectsTowxObject},
11507 { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject},
11508 { "_wxObject","_wxPyArtProvider",SwigwxPyArtProviderTowxObject},
11509 { "_wxObject","_wxWave",SwigwxWaveTowxObject},
11510 { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject},
11511 { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject},
11512 { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject},
11513 { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject},
11514 { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject},
11515 { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject},
11516 { "_signed_short","_WXTYPE",0},
11517 { "_signed_short","_short",0},
11518 { "_unsigned_char","_byte",0},
11519 { "_unsigned_int","_wxCoord",0},
11520 { "_unsigned_int","_wxPrintQuality",0},
11521 { "_unsigned_int","_time_t",0},
11522 { "_unsigned_int","_size_t",0},
11523 { "_unsigned_int","_uint",0},
11524 { "_unsigned_int","_wxWindowID",0},
11525 { "_unsigned_int","_int",0},
11526 { "_short","_wxDateTime_t",0},
11527 { "_short","_WXTYPE",0},
11528 { "_short","_unsigned_short",0},
11529 { "_short","_signed_short",0},
11530 { "_wxWindowID","_wxCoord",0},
11531 { "_wxWindowID","_wxPrintQuality",0},
11532 { "_wxWindowID","_time_t",0},
11533 { "_wxWindowID","_size_t",0},
11534 { "_wxWindowID","_EBool",0},
11535 { "_wxWindowID","_uint",0},
11536 { "_wxWindowID","_int",0},
11537 { "_wxWindowID","_signed_int",0},
11538 { "_wxWindowID","_unsigned_int",0},
11539 { "_int","_wxCoord",0},
11540 { "_int","_wxPrintQuality",0},
11541 { "_int","_time_t",0},
11542 { "_int","_size_t",0},
11543 { "_int","_EBool",0},
11544 { "_int","_uint",0},
11545 { "_int","_wxWindowID",0},
11546 { "_int","_unsigned_int",0},
11547 { "_int","_signed_int",0},
11548 { "_wxDateTime_t","_unsigned_short",0},
11549 { "_wxDateTime_t","_short",0},
11550 { "_wxDateTime_t","_WXTYPE",0},
11551 { "_time_t","_wxCoord",0},
11552 { "_time_t","_wxPrintQuality",0},
11553 { "_time_t","_unsigned_int",0},
11554 { "_time_t","_int",0},
11555 { "_time_t","_wxWindowID",0},
11556 { "_time_t","_uint",0},
11557 { "_time_t","_size_t",0},
11558 { "_wxCoord","_int",0},
11559 { "_wxCoord","_signed_int",0},
11560 { "_wxCoord","_unsigned_int",0},
11561 { "_wxCoord","_wxWindowID",0},
11562 { "_wxCoord","_uint",0},
11563 { "_wxCoord","_EBool",0},
11564 { "_wxCoord","_size_t",0},
11565 { "_wxCoord","_time_t",0},
11566 { "_wxCoord","_wxPrintQuality",0},
11567 { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler},
11568 {0,0,0}};
11569
11570 static PyObject *SWIG_globals;
11571 #ifdef __cplusplus
11572 extern "C"
11573 #endif
11574 SWIGEXPORT(void) initmisc2c() {
11575 PyObject *m, *d;
11576 SWIG_globals = SWIG_newvarlink();
11577 m = Py_InitModule("misc2c", misc2cMethods);
11578 d = PyModule_GetDict(m);
11579 PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT));
11580 PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT));
11581 PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT));
11582 PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT));
11583 PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT));
11584 PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE));
11585 PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT));
11586 PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT));
11587 PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR));
11588 PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND));
11589 PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP));
11590 PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION));
11591 PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION));
11592 PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU));
11593 PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW));
11594 PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME));
11595 PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT));
11596 PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT));
11597 PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT));
11598 PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER));
11599 PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER));
11600 PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE));
11601 PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT));
11602 PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT));
11603 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE));
11604 PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE));
11605 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW));
11606 PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW));
11607 PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT));
11608 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT));
11609 PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT));
11610 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT));
11611 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT));
11612 PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT));
11613 PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT));
11614 PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW));
11615 PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT));
11616 PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT));
11617 PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK));
11618 PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX));
11619 PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT));
11620 PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION));
11621 PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
11622 PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT));
11623 PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR));
11624 PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX));
11625 PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS));
11626 PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X));
11627 PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y));
11628 PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X));
11629 PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y));
11630 PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X));
11631 PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y));
11632 PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X));
11633 PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y));
11634 PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X));
11635 PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y));
11636 PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X));
11637 PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y));
11638 PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X));
11639 PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X));
11640 PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y));
11641 PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X));
11642 PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y));
11643 PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X));
11644 PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y));
11645 PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X));
11646 PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y));
11647 PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X));
11648 PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y));
11649 PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X));
11650 PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y));
11651 PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y));
11652 PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X));
11653 PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X));
11654 PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y));
11655 PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y));
11656 PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y));
11657 PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y));
11658 PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT));
11659 PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT));
11660 PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS));
11661 PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS));
11662 PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS));
11663 PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME));
11664 PyDict_SetItemString(d,"wxSYS_SCREEN_NONE", PyInt_FromLong((long) wxSYS_SCREEN_NONE));
11665 PyDict_SetItemString(d,"wxSYS_SCREEN_TINY", PyInt_FromLong((long) wxSYS_SCREEN_TINY));
11666 PyDict_SetItemString(d,"wxSYS_SCREEN_PDA", PyInt_FromLong((long) wxSYS_SCREEN_PDA));
11667 PyDict_SetItemString(d,"wxSYS_SCREEN_SMALL", PyInt_FromLong((long) wxSYS_SCREEN_SMALL));
11668 PyDict_SetItemString(d,"wxSYS_SCREEN_DESKTOP", PyInt_FromLong((long) wxSYS_SCREEN_DESKTOP));
11669 PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError));
11670 PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error));
11671 PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning));
11672 PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message));
11673 PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info));
11674 PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status));
11675 PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug));
11676 PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace));
11677 PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress));
11678 PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User));
11679 PyDict_SetItemString(d,"wxTRACE_MemAlloc", PyString_FromString("memalloc"));
11680 PyDict_SetItemString(d,"wxTRACE_Messages", PyString_FromString("messages"));
11681 PyDict_SetItemString(d,"wxTRACE_ResAlloc", PyString_FromString("resalloc"));
11682 PyDict_SetItemString(d,"wxTRACE_RefCount", PyString_FromString("refcount"));
11683 PyDict_SetItemString(d,"wxTRACE_OleCalls", PyString_FromString("ole"));
11684 PyDict_SetItemString(d,"wxTraceMemAlloc", PyInt_FromLong((long) wxTraceMemAlloc));
11685 PyDict_SetItemString(d,"wxTraceMessages", PyInt_FromLong((long) wxTraceMessages));
11686 PyDict_SetItemString(d,"wxTraceResAlloc", PyInt_FromLong((long) wxTraceResAlloc));
11687 PyDict_SetItemString(d,"wxTraceRefCount", PyInt_FromLong((long) wxTraceRefCount));
11688 PyDict_SetItemString(d,"wxTraceOleCalls", PyInt_FromLong((long) wxTraceOleCalls));
11689 PyDict_SetItemString(d,"wxKILL_OK", PyInt_FromLong((long) wxKILL_OK));
11690 PyDict_SetItemString(d,"wxKILL_BAD_SIGNAL", PyInt_FromLong((long) wxKILL_BAD_SIGNAL));
11691 PyDict_SetItemString(d,"wxKILL_ACCESS_DENIED", PyInt_FromLong((long) wxKILL_ACCESS_DENIED));
11692 PyDict_SetItemString(d,"wxKILL_NO_PROCESS", PyInt_FromLong((long) wxKILL_NO_PROCESS));
11693 PyDict_SetItemString(d,"wxKILL_ERROR", PyInt_FromLong((long) wxKILL_ERROR));
11694 PyDict_SetItemString(d,"wxSIGNONE", PyInt_FromLong((long) wxSIGNONE));
11695 PyDict_SetItemString(d,"wxSIGHUP", PyInt_FromLong((long) wxSIGHUP));
11696 PyDict_SetItemString(d,"wxSIGINT", PyInt_FromLong((long) wxSIGINT));
11697 PyDict_SetItemString(d,"wxSIGQUIT", PyInt_FromLong((long) wxSIGQUIT));
11698 PyDict_SetItemString(d,"wxSIGILL", PyInt_FromLong((long) wxSIGILL));
11699 PyDict_SetItemString(d,"wxSIGTRAP", PyInt_FromLong((long) wxSIGTRAP));
11700 PyDict_SetItemString(d,"wxSIGABRT", PyInt_FromLong((long) wxSIGABRT));
11701 PyDict_SetItemString(d,"wxSIGIOT", PyInt_FromLong((long) wxSIGIOT));
11702 PyDict_SetItemString(d,"wxSIGEMT", PyInt_FromLong((long) wxSIGEMT));
11703 PyDict_SetItemString(d,"wxSIGFPE", PyInt_FromLong((long) wxSIGFPE));
11704 PyDict_SetItemString(d,"wxSIGKILL", PyInt_FromLong((long) wxSIGKILL));
11705 PyDict_SetItemString(d,"wxSIGBUS", PyInt_FromLong((long) wxSIGBUS));
11706 PyDict_SetItemString(d,"wxSIGSEGV", PyInt_FromLong((long) wxSIGSEGV));
11707 PyDict_SetItemString(d,"wxSIGSYS", PyInt_FromLong((long) wxSIGSYS));
11708 PyDict_SetItemString(d,"wxSIGPIPE", PyInt_FromLong((long) wxSIGPIPE));
11709 PyDict_SetItemString(d,"wxSIGALRM", PyInt_FromLong((long) wxSIGALRM));
11710 PyDict_SetItemString(d,"wxSIGTERM", PyInt_FromLong((long) wxSIGTERM));
11711 PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS));
11712 PyDict_SetItemString(d,"wxEXEC_ASYNC", PyInt_FromLong((long) wxEXEC_ASYNC));
11713 PyDict_SetItemString(d,"wxEXEC_SYNC", PyInt_FromLong((long) wxEXEC_SYNC));
11714 PyDict_SetItemString(d,"wxEXEC_NOHIDE", PyInt_FromLong((long) wxEXEC_NOHIDE));
11715 PyDict_SetItemString(d,"wxEXEC_MAKE_GROUP_LEADER", PyInt_FromLong((long) wxEXEC_MAKE_GROUP_LEADER));
11716 PyDict_SetItemString(d,"wxJOYSTICK1", PyInt_FromLong((long) wxJOYSTICK1));
11717 PyDict_SetItemString(d,"wxJOYSTICK2", PyInt_FromLong((long) wxJOYSTICK2));
11718 PyDict_SetItemString(d,"wxJOY_BUTTON_ANY", PyInt_FromLong((long) wxJOY_BUTTON_ANY));
11719 PyDict_SetItemString(d,"wxJOY_BUTTON1", PyInt_FromLong((long) wxJOY_BUTTON1));
11720 PyDict_SetItemString(d,"wxJOY_BUTTON2", PyInt_FromLong((long) wxJOY_BUTTON2));
11721 PyDict_SetItemString(d,"wxJOY_BUTTON3", PyInt_FromLong((long) wxJOY_BUTTON3));
11722 PyDict_SetItemString(d,"wxJOY_BUTTON4", PyInt_FromLong((long) wxJOY_BUTTON4));
11723 PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD));
11724 PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE));
11725 PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE));
11726 PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME));
11727 PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL));
11728 PyDict_SetItemString(d,"cvar", SWIG_globals);
11729 SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set);
11730
11731 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
11732 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
11733 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
11734
11735 {
11736 int i;
11737 for (i = 0; _swig_mapping[i].n1; i++)
11738 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
11739 }
11740 }