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