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