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