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