]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_misc_wrap.cpp
compilation fix for gcc-3.4
[wxWidgets.git] / wxPython / src / mac / _misc_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
82#else
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
85#endif
86
87#ifdef SWIG_GLOBAL
88# define SWIGRUNTIME(a) SWIGEXPORT(a)
89#else
90# define SWIGRUNTIME(a) static a
91#endif
92
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122#ifdef __cplusplus
123}
124#endif
125
126/***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136#include "Python.h"
137
138#ifdef __cplusplus
139extern "C" {
140#endif
141
142#define SWIG_PY_INT 1
143#define SWIG_PY_FLOAT 2
144#define SWIG_PY_STRING 3
145#define SWIG_PY_POINTER 4
146#define SWIG_PY_BINARY 5
147
148/* Flags for pointer conversion */
149
150#define SWIG_POINTER_EXCEPTION 0x1
151#define SWIG_POINTER_DISOWN 0x2
152
153/* Exception handling in wrappers */
154#define SWIG_fail goto fail
155
156/* Constant information structure */
157typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164} swig_const_info;
165
166/* Common SWIG API */
167#define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169#define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171#define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174/* Python-specific SWIG API */
175#define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177#define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181#define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183#define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198/* Contract support */
199
200#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202#ifdef __cplusplus
203}
204#endif
205
206
207/* -------- TYPES TABLE (BEGIN) -------- */
208
209#define SWIGTYPE_p_wxLogChain swig_types[0]
210#define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211#define SWIGTYPE_p_wxMetafile swig_types[2]
212#define SWIGTYPE_p_wxFileHistory swig_types[3]
213#define SWIGTYPE_p_wxLog swig_types[4]
214#define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
215#define SWIGTYPE_p_wxMenu swig_types[6]
216#define SWIGTYPE_p_wxEvent swig_types[7]
217#define SWIGTYPE_p_wxConfigBase swig_types[8]
218#define SWIGTYPE_p_wxDisplay swig_types[9]
219#define SWIGTYPE_p_wxFileType swig_types[10]
220#define SWIGTYPE_p_wxLogGui swig_types[11]
221#define SWIGTYPE_p_wxFont swig_types[12]
222#define SWIGTYPE_p_wxDataFormat swig_types[13]
223#define SWIGTYPE_p_wxTimerEvent swig_types[14]
224#define SWIGTYPE_p_wxCaret swig_types[15]
225#define SWIGTYPE_p_int swig_types[16]
226#define SWIGTYPE_p_wxSize swig_types[17]
227#define SWIGTYPE_p_wxClipboard swig_types[18]
228#define SWIGTYPE_p_wxStopWatch swig_types[19]
229#define SWIGTYPE_p_wxDC swig_types[20]
230#define SWIGTYPE_p_wxClipboardLocker swig_types[21]
231#define SWIGTYPE_p_wxIcon swig_types[22]
232#define SWIGTYPE_p_wxLogStderr swig_types[23]
233#define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
234#define SWIGTYPE_p_wxTextCtrl swig_types[25]
235#define SWIGTYPE_p_wxBusyCursor swig_types[26]
0346c964
RD
236#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
237#define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
238#define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
239#define SWIGTYPE_p_wxTextDataObject swig_types[30]
240#define SWIGTYPE_p_wxDataObject swig_types[31]
d55e5bfc
RD
241#define SWIGTYPE_p_wxFileDataObject swig_types[32]
242#define SWIGTYPE_p_wxCustomDataObject swig_types[33]
243#define SWIGTYPE_p_wxURLDataObject swig_types[34]
244#define SWIGTYPE_p_wxMetafileDataObject swig_types[35]
245#define SWIGTYPE_p_wxSound swig_types[36]
246#define SWIGTYPE_p_wxTimerRunner swig_types[37]
247#define SWIGTYPE_p_wxLogWindow swig_types[38]
248#define SWIGTYPE_p_wxTimeSpan swig_types[39]
249#define SWIGTYPE_p_wxArrayString swig_types[40]
250#define SWIGTYPE_p_wxWindowDisabler swig_types[41]
251#define SWIGTYPE_p_wxToolTip swig_types[42]
252#define SWIGTYPE_p_wxDataObjectComposite swig_types[43]
253#define SWIGTYPE_p_wxFileConfig swig_types[44]
254#define SWIGTYPE_p_wxSystemSettings swig_types[45]
255#define SWIGTYPE_p_wxVideoMode swig_types[46]
256#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47]
257#define SWIGTYPE_p_wxDataObjectSimple swig_types[48]
258#define SWIGTYPE_p_wxEvtHandler swig_types[49]
259#define SWIGTYPE_p_wxRect swig_types[50]
260#define SWIGTYPE_p_char swig_types[51]
261#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52]
262#define SWIGTYPE_p_wxFileTypeInfo swig_types[53]
263#define SWIGTYPE_p_wxFrame swig_types[54]
264#define SWIGTYPE_p_wxTimer swig_types[55]
265#define SWIGTYPE_p_wxMimeTypesManager swig_types[56]
266#define SWIGTYPE_p_wxPyArtProvider swig_types[57]
267#define SWIGTYPE_p_wxPyTipProvider swig_types[58]
268#define SWIGTYPE_p_wxTipProvider swig_types[59]
269#define SWIGTYPE_p_wxJoystick swig_types[60]
270#define SWIGTYPE_p_wxSystemOptions swig_types[61]
271#define SWIGTYPE_p_wxPoint swig_types[62]
272#define SWIGTYPE_p_wxJoystickEvent swig_types[63]
273#define SWIGTYPE_p_wxCursor swig_types[64]
274#define SWIGTYPE_p_wxObject swig_types[65]
275#define SWIGTYPE_p_wxOutputStream swig_types[66]
276#define SWIGTYPE_p_wxDateTime swig_types[67]
277#define SWIGTYPE_p_wxPyDropSource swig_types[68]
278#define SWIGTYPE_p_wxWindow swig_types[69]
279#define SWIGTYPE_p_wxString swig_types[70]
280#define SWIGTYPE_p_wxPyProcess swig_types[71]
281#define SWIGTYPE_p_wxBitmap swig_types[72]
282#define SWIGTYPE_p_wxConfig swig_types[73]
283#define SWIGTYPE_p_wxChar swig_types[74]
284#define SWIGTYPE_p_wxBusyInfo swig_types[75]
285#define SWIGTYPE_p_wxPyDropTarget swig_types[76]
286#define SWIGTYPE_p_wxPyTextDropTarget swig_types[77]
287#define SWIGTYPE_p_wxPyFileDropTarget swig_types[78]
288#define SWIGTYPE_p_wxProcessEvent swig_types[79]
289#define SWIGTYPE_p_wxPyLog swig_types[80]
290#define SWIGTYPE_p_wxLogNull swig_types[81]
291#define SWIGTYPE_p_wxColour swig_types[82]
0346c964
RD
292#define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
293#define SWIGTYPE_p_wxPyTimer swig_types[84]
294#define SWIGTYPE_p_wxDateSpan swig_types[85]
295static swig_type_info *swig_types[87];
d55e5bfc
RD
296
297/* -------- TYPES TABLE (END) -------- */
298
299
300/*-----------------------------------------------
301 @(target):= _misc_.so
302 ------------------------------------------------*/
303#define SWIG_init init_misc_
304
305#define SWIG_name "_misc_"
306
307/* Auxiliar swig macros */
308
309#ifdef __cplusplus
310#define SWIGSTATICINLINE(a) static inline a
311#define SWIGSTATIC(a) static a
312#define swig_new_array(type, size) (new type[(size)])
313#define swig_delete_array(cptr) delete[] cptr
314#define swig_const_cast(type,a) const_cast<type>(a)
315#define swig_static_cast(type,a) static_cast<type>(a)
316#define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
317
318#ifdef HAVE_NUMERIC_CAST
319#define swig_numeric_cast(type,a) numeric_cast<type>(a)
320#else
321#define swig_numeric_cast(type,a) static_cast<type>(a)
322#endif
323
324#else /* C case */
325
326#define SWIGSTATICINLINE(a) static a
327#define SWIGSTATIC(a) static a
328#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
329#define swig_delete_array(cptr) free((char*)cptr)
330#define swig_const_cast(type,a) (type)(a)
331#define swig_static_cast(type,a) (type)(a)
332#define swig_reinterpret_cast(type,a) (type)(a)
333#define swig_numeric_cast(type,a) (type)(a)
334
335#endif /* __cplusplus */
336
337
338#define SWIG_FromSignedChar PyInt_FromLong
339#define SWIG_FromUnsignedChar PyInt_FromLong
340#define SWIG_FromShort PyInt_FromLong
341#define SWIG_FromUnsignedShort PyInt_FromLong
342#define SWIG_FromInt PyInt_FromLong
343#define SWIG_FromLong PyInt_FromLong
344#define SWIG_FromFloat PyFloat_FromDouble
345#define SWIG_FromDouble PyFloat_FromDouble
346#define SWIG_FromFloat PyFloat_FromDouble
347#define SWIG_FromDouble PyFloat_FromDouble
348
349
350#include "wx/wxPython/wxPython.h"
351#include "wx/wxPython/pyclasses.h"
352#include "wx/wxPython/pyistream.h"
353
354
355 static const wxString wxPyEmptyString(wxEmptyString);
356
357
358
359#include <limits.h>
360
361
362SWIGSTATICINLINE(long)
363SWIG_CheckLongInRange(long value, const char* type,
364 long min_value, long max_value)
365{
366 if (!PyErr_Occurred()) {
367 if (value < min_value) {
368 PyObject *err =
369 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
370 value, type, min_value);
371
372 PyErr_SetObject(PyExc_OverflowError, err);
373 Py_DECREF(err);
374 } else if (value > max_value) {
375 PyObject *err =
376 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
377 value, type, max_value);
378 PyErr_SetObject(PyExc_OverflowError, err);
379 Py_DECREF(err);
380 }
381 }
382 return value;
383}
384
385
386SWIGSTATICINLINE(long)
387SWIG_AsLong(PyObject * obj)
388{
389 if (PyNumber_Check(obj))
390 return PyInt_AsLong(obj);
391 else {
392 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
393 obj->ob_type->tp_name);
394 PyErr_SetObject(PyExc_TypeError, errmsg);
395 Py_DECREF(errmsg);
396 return 0;
397 }
398}
399
400
401#if INT_MAX != LONG_MAX
402SWIGSTATICINLINE(int)
403SWIG_AsInt(PyObject *obj)
404{
405 return swig_numeric_cast(int,
406 SWIG_CheckLongInRange(SWIG_AsLong(obj),
407 "int", INT_MIN, INT_MAX));
408}
409#else
410#define SWIG_AsInt SWIG_AsLong
411#endif
412
413
414SWIGSTATICINLINE(int)
415SWIG_CheckInt(PyObject* obj)
416{
417 SWIG_AsInt(obj);
418 if (PyErr_Occurred()) {
419 PyErr_Clear();
420 return 0;
421 } else {
422 return 1;
423 }
424}
425
426 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
427 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
428 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
429
430SWIGSTATICINLINE(int)
431SWIG_CheckLong(PyObject* obj)
432{
433 SWIG_AsLong(obj);
434 if (PyErr_Occurred()) {
435 PyErr_Clear();
436 return 0;
437 } else {
438 return 1;
439 }
440}
441
442
443SWIGSTATICINLINE(bool)
444SWIG_AsBool(PyObject *obj)
445{
446 return PyObject_IsTrue(obj) ? true : false;
447}
448
449
450SWIGSTATICINLINE(int)
451SWIG_CheckBool(PyObject* obj)
452{
453 SWIG_AsBool(obj);
454 if (PyErr_Occurred()) {
455 PyErr_Clear();
456 return 0;
457 } else {
458 return 1;
459 }
460}
461
462
463static PyObject* t_output_helper(PyObject* target, PyObject* o) {
464 PyObject* o2;
465 PyObject* o3;
466
467 if (!target) {
468 target = o;
469 } else if (target == Py_None) {
470 Py_DECREF(Py_None);
471 target = o;
472 } else {
473 if (!PyTuple_Check(target)) {
474 o2 = target;
475 target = PyTuple_New(1);
476 PyTuple_SetItem(target, 0, o2);
477 }
478 o3 = PyTuple_New(1);
479 PyTuple_SetItem(o3, 0, o);
480
481 o2 = target;
482 target = PySequence_Concat(o2, o3);
483 Py_DECREF(o2);
484 Py_DECREF(o3);
485 }
486 return target;
487}
488
489
490SWIGSTATICINLINE(unsigned long)
491SWIG_AsUnsignedLong(PyObject * obj)
492{
493 if (PyLong_Check(obj)) {
494 return PyLong_AsUnsignedLong(obj);
495 } else {
496 long i = SWIG_AsLong(obj);
497 if ( !PyErr_Occurred() && (i < 0)) {
498 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
499 }
500 return i;
501 }
502}
503
504
505SWIGSTATICINLINE(int)
506SWIG_CheckUnsignedLong(PyObject* obj)
507{
508 SWIG_AsUnsignedLong(obj);
509 if (PyErr_Occurred()) {
510 PyErr_Clear();
511 return 0;
512 } else {
513 return 1;
514 }
515}
516
517
518SWIGSTATICINLINE(PyObject* )
519SWIG_FromUnsignedLong(unsigned long value)
520{
521 return (value > LONG_MAX) ?
522 PyLong_FromUnsignedLong(value)
523 : PyInt_FromLong(swig_numeric_cast(long,value));
524}
525
526
527 bool wxThread_IsMain() {
528#ifdef WXP_WITH_THREAD
529 return wxThread::IsMain();
530#else
531 return True;
532#endif
533 }
534
535
536 int wxCaret_GetBlinkTime() {
537 return wxCaret::GetBlinkTime();
538 }
539
540 void wxCaret_SetBlinkTime(int milliseconds) {
541 wxCaret::SetBlinkTime(milliseconds);
542 }
543
544
545#include <wx/snglinst.h>
546
547
548#ifdef __WXMSW__
549#include <wx/msw/private.h>
550#include <wx/dynload.h>
551#endif
552
553
554
555void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
556{
557#ifdef __WXMSW__
558
559 switch (method)
560 {
561 case 1:
562 // This one only partially works. Appears to be an undocumented
563 // "standard" convention that not all widgets adhear to. For
564 // example, for some widgets backgrounds or non-client areas may
565 // not be painted.
566 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
567 break;
568
569 case 2:
570 // This one works much better, except for on XP. On Win2k nearly
571 // all widgets and their children are captured correctly[**]. On
572 // XP with Themes activated most native widgets draw only
573 // partially, if at all. Without themes it works just like on
574 // Win2k.
575 //
576 // ** For example the radio buttons in a wxRadioBox are not its
577 // children by default, but you can capture it via the panel
578 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
579 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
580 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
581 PRF_ERASEBKGND | PRF_OWNED );
582 break;
583
584 case 3:
585 // This one is only defined in the latest SDK and is only
586 // available on XP. MSDN says it is similar to sending WM_PRINT
587 // so I expect that it will work similar to the above. Since it
588 // is avaialble only on XP, it can't be compiled like this and
589 // will have to be loaded dynamically.
590 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
591
592 // fall through
593
594 case 4:
595 // Use PrintWindow if available, or fallback to WM_PRINT
596 // otherwise. Unfortunately using PrintWindow is even worse than
597 // WM_PRINT. For most native widgets nothing is drawn to the dc
598 // at all, with or without Themes.
599 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
600 static bool s_triedToLoad = False;
601 static PrintWindow_t pfnPrintWindow = NULL;
602 if ( !s_triedToLoad )
603 {
604
605 s_triedToLoad = True;
606 wxDynamicLibrary dllUser32(_T("user32.dll"));
607 if ( dllUser32.IsLoaded() )
608 {
609 wxLogNull nolog; // Don't report errors here
610 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
611 }
612 }
613 if (pfnPrintWindow)
614 {
615 printf("Using PrintWindow\n");
616 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
617 }
618 else
619 {
620 printf("Using WM_PRINT\n");
621 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
622 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
623 }
624 }
625#endif
626}
627
628
629
630#include <wx/tipdlg.h>
631
632
633class wxPyTipProvider : public wxTipProvider {
634public:
635 wxPyTipProvider(size_t currentTip)
636 : wxTipProvider(currentTip) {}
637
638 DEC_PYCALLBACK_STRING__pure(GetTip);
639 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
640 PYPRIVATE;
641};
642
643IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
644IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
645
646
647//IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
648
1a6bba1e
RD
649IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
650
d55e5bfc
RD
651void wxPyTimer::Notify() {
652 bool found;
653 bool blocked = wxPyBeginBlockThreads();
654 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
655 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
656 wxPyEndBlockThreads(blocked);
657 if (! found)
658 wxTimer::Notify();
659}
660void wxPyTimer::base_Notify() {
661 wxTimer::Notify();
662}
663
664
665
666SWIGSTATICINLINE(PyObject *)
667SWIG_FromCharPtr(const char* cptr)
668{
669 size_t size = cptr ? strlen(cptr) : 0;
670 if (cptr) {
671 if (size > INT_MAX) {
672 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
673 SWIG_TypeQuery("char *"), 0);
674 } else {
675 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
676 }
677 } else {
678 Py_INCREF(Py_None);
679 return Py_None;
680 }
681}
682
683
684SWIGSTATICINLINE(unsigned long)
685SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
686 unsigned long max_value)
687{
688 if (!PyErr_Occurred()) {
689 if (value > max_value) {
690 PyObject *err =
691 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
692 value, type, max_value);
693 PyErr_SetObject(PyExc_OverflowError, err);
694 Py_DECREF(err);
695 }
696 }
697 return value;
698}
699
700
701#if UINT_MAX != ULONG_MAX
702SWIGSTATICINLINE(unsigned int)
703SWIG_AsUnsignedInt(PyObject *obj)
704{
705 return swig_numeric_cast(unsigned int,
706 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
707 "unsigned int", UINT_MAX));
708}
709#else
710#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
711#endif
712
713
714SWIGSTATICINLINE(int)
715SWIG_CheckUnsignedInt(PyObject* obj)
716{
717 SWIG_AsUnsignedInt(obj);
718 if (PyErr_Occurred()) {
719 PyErr_Clear();
720 return 0;
721 } else {
722 return 1;
723 }
724}
725
726wxString Log_TimeStamp(){
727 wxString msg;
728 wxLog::TimeStamp(&msg);
729 return msg;
730 }
731void wxLog_Destroy(wxLog *self){ delete self; }
732
733// A wxLog class that can be derived from in wxPython
734class wxPyLog : public wxLog {
735public:
736 wxPyLog() : wxLog() {}
737
738 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
739 bool found;
740 bool blocked = wxPyBeginBlockThreads();
741 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
742 PyObject* s = wx2PyString(szString);
743 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
744 Py_DECREF(s);
745 }
746 wxPyEndBlockThreads(blocked);
747 if (! found)
748 wxLog::DoLog(level, szString, t);
749 }
750
751 virtual void DoLogString(const wxChar *szString, time_t t) {
752 bool found;
753 bool blocked = wxPyBeginBlockThreads();
754 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
755 PyObject* s = wx2PyString(szString);
756 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
757 Py_DECREF(s);
758 }
759 wxPyEndBlockThreads(blocked);
760 if (! found)
761 wxLog::DoLogString(szString, t);
762 }
763
764 PYPRIVATE;
765};
766
767
768
769
770IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
771
772
773#include <wx/joystick.h>
774
775
776#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
777// A C++ stub class for wxJoystick for platforms that don't have it.
778class wxJoystick : public wxObject {
779public:
780 wxJoystick(int joystick = wxJOYSTICK1) {
781 bool blocked = wxPyBeginBlockThreads();
782 PyErr_SetString(PyExc_NotImplementedError,
783 "wxJoystick is not available on this platform.");
784 wxPyEndBlockThreads(blocked);
785 }
786 wxPoint GetPosition() { return wxPoint(-1,-1); }
787 int GetZPosition() { return -1; }
788 int GetButtonState() { return -1; }
789 int GetPOVPosition() { return -1; }
790 int GetPOVCTSPosition() { return -1; }
791 int GetRudderPosition() { return -1; }
792 int GetUPosition() { return -1; }
793 int GetVPosition() { return -1; }
794 int GetMovementThreshold() { return -1; }
795 void SetMovementThreshold(int threshold) {}
796
797 bool IsOk(void) { return False; }
798 int GetNumberJoysticks() { return -1; }
799 int GetManufacturerId() { return -1; }
800 int GetProductId() { return -1; }
15817c7e 801 wxString GetProductName() { return wxEmptyString; }
d55e5bfc
RD
802 int GetXMin() { return -1; }
803 int GetYMin() { return -1; }
804 int GetZMin() { return -1; }
805 int GetXMax() { return -1; }
806 int GetYMax() { return -1; }
807 int GetZMax() { return -1; }
808 int GetNumberButtons() { return -1; }
809 int GetNumberAxes() { return -1; }
810 int GetMaxButtons() { return -1; }
811 int GetMaxAxes() { return -1; }
812 int GetPollingMin() { return -1; }
813 int GetPollingMax() { return -1; }
814 int GetRudderMin() { return -1; }
815 int GetRudderMax() { return -1; }
816 int GetUMin() { return -1; }
817 int GetUMax() { return -1; }
818 int GetVMin() { return -1; }
819 int GetVMax() { return -1; }
820
821 bool HasRudder() { return False; }
822 bool HasZ() { return False; }
823 bool HasU() { return False; }
824 bool HasV() { return False; }
825 bool HasPOV() { return False; }
826 bool HasPOV4Dir() { return False; }
827 bool HasPOVCTS() { return False; }
828
829 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
830 bool ReleaseCapture() { return False; }
831};
832#endif
833
834
835#include <wx/sound.h>
836
837
838#if !wxUSE_SOUND
839// A C++ stub class for wxWave for platforms that don't have it.
840class wxSound : public wxObject
841{
842public:
843 wxSound() {
844 bool blocked = wxPyBeginBlockThreads();
845 PyErr_SetString(PyExc_NotImplementedError,
846 "wxSound is not available on this platform.");
847 wxPyEndBlockThreads(blocked);
848 }
0346c964 849 wxSound(const wxString&/*, bool*/) {
d55e5bfc
RD
850 bool blocked = wxPyBeginBlockThreads();
851 PyErr_SetString(PyExc_NotImplementedError,
852 "wxSound is not available on this platform.");
853 wxPyEndBlockThreads(blocked);
854 }
855 wxSound(int, const wxByte*) {
856 bool blocked = wxPyBeginBlockThreads();
857 PyErr_SetString(PyExc_NotImplementedError,
858 "wxSound is not available on this platform.");
859 wxPyEndBlockThreads(blocked);
860 }
861
862 ~wxSound() {};
863
0346c964 864 bool Create(const wxString&/*, bool*/) { return false; }
d55e5bfc
RD
865 bool Create(int, const wxByte*) { return false; };
866 bool IsOk() { return false; };
867 bool Play(unsigned) const { return false; }
868 static bool Play(const wxString&, unsigned) { return false; }
869 static void Stop() {}
870};
871
872#endif
873
0346c964
RD
874wxSound *new_wxSound(wxString const &fileName){
875 if (fileName.Length() == 0)
876 return new wxSound;
877 else
878 return new wxSound(fileName);
879 }
880wxSound *new_wxSound(PyObject *data){
881 unsigned char* buffer; int size;
882 wxSound *sound = NULL;
883
d55e5bfc 884 bool blocked = wxPyBeginBlockThreads();
0346c964
RD
885 if (!PyArg_Parse(data, "t#", &buffer, &size))
886 goto done;
887 sound = new wxSound(size, buffer);
888 done:
d55e5bfc 889 wxPyEndBlockThreads(blocked);
0346c964
RD
890 return sound;
891 }
892bool wxSound_CreateFromData(wxSound *self,PyObject *data){
893 #ifndef __WXMAC__
894 unsigned char* buffer;
895 int size;
896 bool rv = False;
897
898 bool blocked = wxPyBeginBlockThreads();
899 if (!PyArg_Parse(data, "t#", &buffer, &size))
900 goto done;
901 rv = self->Create(size, buffer);
902 done:
903 wxPyEndBlockThreads(blocked);
904 return rv;
905 #else
906 bool blocked = wxPyBeginBlockThreads();
907 PyErr_SetString(PyExc_NotImplementedError,
908 "Create from data is not available on this platform.");
909 wxPyEndBlockThreads(blocked);
910 return False;
911 #endif
d55e5bfc
RD
912 }
913void Sound_Stop(){ wxPyRaiseNotImplemented(); }
914
915#include <wx/mimetype.h>
916
917PyObject *wxFileType_GetMimeType(wxFileType *self){
918 wxString str;
919 if (self->GetMimeType(&str))
920 return wx2PyString(str);
921 else
922 RETURN_NONE();
923 }
924PyObject *wxFileType_GetMimeTypes(wxFileType *self){
925 wxArrayString arr;
926 if (self->GetMimeTypes(arr))
927 return wxArrayString2PyList_helper(arr);
928 else
929 RETURN_NONE();
930 }
931PyObject *wxFileType_GetExtensions(wxFileType *self){
932 wxArrayString arr;
933 if (self->GetExtensions(arr))
934 return wxArrayString2PyList_helper(arr);
935 else
936 RETURN_NONE();
937 }
938wxIcon *wxFileType_GetIcon(wxFileType *self){
939 wxIconLocation loc;
940 if (self->GetIcon(&loc))
941 return new wxIcon(loc);
942 else
943 return NULL;
944 }
945PyObject *wxFileType_GetIconInfo(wxFileType *self){
946 wxIconLocation loc;
947 if (self->GetIcon(&loc)) {
948 wxString iconFile = loc.GetFileName();
949 int iconIndex = -1;
950
951
952
953 // Make a tuple and put the values in it
954 bool blocked = wxPyBeginBlockThreads();
955 PyObject* tuple = PyTuple_New(3);
956 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
957 wxT("wxIcon"), True));
958 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
959 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
960 wxPyEndBlockThreads(blocked);
961 return tuple;
962 }
963 else
964 RETURN_NONE();
965 }
966PyObject *wxFileType_GetDescription(wxFileType *self){
967 wxString str;
968 if (self->GetDescription(&str))
969 return wx2PyString(str);
970 else
971 RETURN_NONE();
972 }
973PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
974 wxString str;
975 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
976 return wx2PyString(str);
977 else
978 RETURN_NONE();
979 }
980PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
981 wxString str;
982 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
983 return wx2PyString(str);
984 else
985 RETURN_NONE();
986 }
987PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
988 wxArrayString verbs;
989 wxArrayString commands;
990 if (self->GetAllCommands(&verbs, &commands,
991 wxFileType::MessageParameters(filename, mimetype))) {
992 bool blocked = wxPyBeginBlockThreads();
993 PyObject* tuple = PyTuple_New(2);
994 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
995 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
996 wxPyEndBlockThreads(blocked);
997 return tuple;
998 }
999 else
1000 RETURN_NONE();
1001 }
1002wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1003 return wxFileType::ExpandCommand(command,
1004 wxFileType::MessageParameters(filename, mimetype));
1005 }
1006PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1007 wxArrayString arr;
1008 self->EnumAllFileTypes(arr);
1009 return wxArrayString2PyList_helper(arr);
1010 }
1011
1012#include <wx/artprov.h>
1013
1014 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1015 static const wxString wxPyART_MENU(wxART_MENU);
1016 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1017 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1018 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1019 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1020 static const wxString wxPyART_OTHER(wxART_OTHER);
1021 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1022 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1023 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1024 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1025 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1026 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1027 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1028 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1029 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1030 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1031 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1032 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1033 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1034 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1035 static const wxString wxPyART_PRINT(wxART_PRINT);
1036 static const wxString wxPyART_HELP(wxART_HELP);
1037 static const wxString wxPyART_TIP(wxART_TIP);
1038 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1039 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1040 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1041 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1042 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1043 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1044 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1045 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1046 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1047 static const wxString wxPyART_ERROR(wxART_ERROR);
1048 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1049 static const wxString wxPyART_WARNING(wxART_WARNING);
1050 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1051 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1052 // Python aware wxArtProvider
1053class wxPyArtProvider : public wxArtProvider {
1054public:
1055
1056 virtual wxBitmap CreateBitmap(const wxArtID& id,
1057 const wxArtClient& client,
1058 const wxSize& size) {
1059 wxBitmap rval = wxNullBitmap;
1060 bool blocked = wxPyBeginBlockThreads();
1061 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1062 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1063 PyObject* ro;
1064 wxBitmap* ptr;
1065 PyObject* s1, *s2;
1066 s1 = wx2PyString(id);
1067 s2 = wx2PyString(client);
1068 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1069 Py_DECREF(so);
1070 Py_DECREF(s1);
1071 Py_DECREF(s2);
1072 if (ro) {
1073 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1074 rval = *ptr;
1075 Py_DECREF(ro);
1076 }
1077 }
1078 wxPyEndBlockThreads(blocked);
1079 return rval;
1080 }
1081
1082 PYPRIVATE;
1083};
1084
1085void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1086
1087
1088
1089 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1090 PyObject* ret = PyTuple_New(3);
1091 if (ret) {
1092 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1093 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1094 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1095 }
1096 return ret;
1097 }
1098
1099PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1100 bool cont;
1101 long index = 0;
1102 wxString value;
1103
1104 cont = self->GetFirstGroup(value, index);
1105 return __EnumerationHelper(cont, value, index);
1106 }
1107PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1108 bool cont;
1109 wxString value;
1110
1111 cont = self->GetNextGroup(value, index);
1112 return __EnumerationHelper(cont, value, index);
1113 }
1114PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1115 bool cont;
1116 long index = 0;
1117 wxString value;
1118
1119 cont = self->GetFirstEntry(value, index);
1120 return __EnumerationHelper(cont, value, index);
1121 }
1122PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1123 bool cont;
1124 wxString value;
1125
1126 cont = self->GetNextEntry(value, index);
1127 return __EnumerationHelper(cont, value, index);
1128 }
1129long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1130 long rv;
1131 self->Read(key, &rv, defaultVal);
1132 return rv;
1133 }
1134
1135SWIGSTATICINLINE(double)
1136SWIG_AsDouble(PyObject *obj)
1137{
1138 if (PyNumber_Check(obj))
1139 return PyFloat_AsDouble(obj);
1140 else {
1141 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1142 obj->ob_type->tp_name);
1143 PyErr_SetObject(PyExc_TypeError, errmsg);
1144 Py_DECREF(errmsg);
1145 return 0;
1146 }
1147}
1148
1149
1150SWIGSTATICINLINE(int)
1151SWIG_CheckDouble(PyObject* obj)
1152{
1153 SWIG_AsDouble(obj);
1154 if (PyErr_Occurred()) {
1155 PyErr_Clear();
1156 return 0;
1157 } else {
1158 return 1;
1159 }
1160}
1161
1162double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1163 double rv;
1164 self->Read(key, &rv, defaultVal);
1165 return rv;
1166 }
1167bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1168 bool rv;
1169 self->Read(key, &rv, defaultVal);
1170 return rv;
1171 }
1172
1173#include <wx/datetime.h>
1174
1175
1176 static const wxString wxPyDateFormatStr(wxT("%c"));
1177 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1178
1179#define LOCAL_TZ wxDateTime::Local
1180
1181
1182#if UINT_MAX < LONG_MAX
1183#define SWIG_FromUnsignedInt SWIG_FromLong
1184#else
1185#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1186#endif
1187
1188wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1189wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1190wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1191wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1192wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1193bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1194 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1195 return (*self < *other);
1196 }
1197bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1198 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1199 return (*self <= *other);
1200 }
1201bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1202 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1203 return (*self > *other);
1204 }
1205bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1206 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1207 return (*self >= *other);
1208 }
1209bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1210 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1211 return (*self == *other);
1212 }
1213bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1214 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1215 return (*self != *other);
1216 }
1217int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1218 const wxChar* rv;
1219 const wxChar* _date = date;
1220 rv = self->ParseRfc822Date(_date);
1221 if (rv == NULL) return -1;
1222 return rv - _date;
1223 }
1224int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1225 const wxChar* rv;
1226 const wxChar* _date = date;
1227 rv = self->ParseFormat(_date, format, dateDef);
1228 if (rv == NULL) return -1;
1229 return rv - _date;
1230 }
1231int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1232 const wxChar* rv;
1233 const wxChar* _datetime = datetime;
1234 rv = self->ParseDateTime(_datetime);
1235 if (rv == NULL) return -1;
1236 return rv - _datetime;
1237 }
1238int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1239 const wxChar* rv;
1240 const wxChar* _date = date;
1241 rv = self->ParseDate(_date);
1242 if (rv == NULL) return -1;
1243 return rv - _date;
1244 }
1245int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1246 const wxChar* rv;
1247 const wxChar* _time = time;
1248 rv = self->ParseTime(_time);
1249 if (rv == NULL) return -1;
1250 return rv - _time;
1251 }
1252wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1253wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1254wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1255wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1256bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1257bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1258bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1259bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1260bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1261bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1262wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1263wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1264wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1265wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1266bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1267bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1268
1269#include <wx/dataobj.h>
1270
68e533f8
RD
1271PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1272 size_t count = self->GetFormatCount(dir);
1273 wxDataFormat* formats = new wxDataFormat[count];
1274 self->GetAllFormats(formats, dir);
1275
1276 bool blocked = wxPyBeginBlockThreads();
1277 PyObject* list = PyList_New(count);
1278 for (size_t i=0; i<count; i++) {
1279 wxDataFormat* format = new wxDataFormat(formats[i]);
1280 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1281 PyList_Append(list, obj);
1282 Py_DECREF(obj);
1283 }
1284 wxPyEndBlockThreads(blocked);
1285 delete [] formats;
1286 return list;
1287 }
1288PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1289 PyObject* rval = NULL;
1290 size_t size = self->GetDataSize(format);
1291 bool blocked = wxPyBeginBlockThreads();
1292 if (size) {
1293 char* buf = new char[size];
1294 if (self->GetDataHere(format, buf))
1295 rval = PyString_FromStringAndSize(buf, size);
1296 delete [] buf;
1297 }
1298 if (! rval) {
1299 rval = Py_None;
1300 Py_INCREF(rval);
1301 }
1302 wxPyEndBlockThreads(blocked);
1303 return rval;
1304 }
1305bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1306 bool rval;
1307 bool blocked = wxPyBeginBlockThreads();
1308 if (PyString_Check(data)) {
1309 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1310 }
1311 else {
1312 // raise a TypeError if not a string
1313 PyErr_SetString(PyExc_TypeError, "String expected.");
1314 rval = False;
1315 }
1316 wxPyEndBlockThreads(blocked);
1317 return rval;
1318 }
1319PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1320 PyObject* rval = NULL;
1321 size_t size = self->GetDataSize();
1322 bool blocked = wxPyBeginBlockThreads();
1323 if (size) {
1324 char* buf = new char[size];
1325 if (self->GetDataHere(buf))
1326 rval = PyString_FromStringAndSize(buf, size);
1327 delete [] buf;
1328 }
1329 if (! rval) {
1330 rval = Py_None;
1331 Py_INCREF(rval);
1332 }
1333 wxPyEndBlockThreads(blocked);
1334 return rval;
1335 }
1336bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1337 bool rval;
1338 bool blocked = wxPyBeginBlockThreads();
1339 if (PyString_Check(data)) {
1340 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1341 }
1342 else {
1343 // raise a TypeError if not a string
1344 PyErr_SetString(PyExc_TypeError, "String expected.");
1345 rval = False;
1346 }
1347 wxPyEndBlockThreads(blocked);
1348 return rval;
1349 }
d55e5bfc
RD
1350 // Create a new class for wxPython to use
1351class wxPyDataObjectSimple : public wxDataObjectSimple {
1352public:
1353 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1354 : wxDataObjectSimple(format) {}
1355
1356 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1357 bool GetDataHere(void *buf) const;
1358 bool SetData(size_t len, const void *buf) const;
1359 PYPRIVATE;
1360};
1361
1362IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1363
1364bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1365 // We need to get the data for this object and write it to buf. I think
1366 // the best way to do this for wxPython is to have the Python method
1367 // return either a string or None and then act appropriately with the
1368 // C++ version.
1369
1370 bool rval = False;
1371 bool blocked = wxPyBeginBlockThreads();
1372 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1373 PyObject* ro;
1374 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1375 if (ro) {
1376 rval = (ro != Py_None && PyString_Check(ro));
1377 if (rval)
1378 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1379 Py_DECREF(ro);
1380 }
1381 }
1382 wxPyEndBlockThreads(blocked);
1383 return rval;
1384}
1385
1386bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1387 // For this one we simply need to make a string from buf and len
1388 // and send it to the Python method.
1389 bool rval = False;
1390 bool blocked = wxPyBeginBlockThreads();
1391 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1392 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1393 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1394 Py_DECREF(data);
1395 }
1396 wxPyEndBlockThreads(blocked);
1397 return rval;
1398}
1399
1400 // Create a new class for wxPython to use
1401class wxPyTextDataObject : public wxTextDataObject {
1402public:
1403 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1404 : wxTextDataObject(text) {}
1405
1406 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1407 DEC_PYCALLBACK_STRING__const(GetText);
1408 DEC_PYCALLBACK__STRING(SetText);
1409 PYPRIVATE;
1410};
1411
1412IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1413IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1414IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1415
1416
1417 // Create a new class for wxPython to use
1418class wxPyBitmapDataObject : public wxBitmapDataObject {
1419public:
1420 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1421 : wxBitmapDataObject(bitmap) {}
1422
1423 wxBitmap GetBitmap() const;
1424 void SetBitmap(const wxBitmap& bitmap);
1425 PYPRIVATE;
1426};
1427
1428wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1429 wxBitmap* rval = &wxNullBitmap;
1430 bool blocked = wxPyBeginBlockThreads();
1431 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1432 PyObject* ro;
1433 wxBitmap* ptr;
1434 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1435 if (ro) {
1436 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1437 rval = ptr;
1438 Py_DECREF(ro);
1439 }
1440 }
1441 wxPyEndBlockThreads(blocked);
1442 return *rval;
1443}
68e533f8 1444
d55e5bfc
RD
1445void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1446 bool blocked = wxPyBeginBlockThreads();
1447 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1448 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1449 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1450 Py_DECREF(bo);
1451 }
1452 wxPyEndBlockThreads(blocked);
1453}
1454
d55e5bfc 1455bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
68e533f8
RD
1456 bool rval;
1457 bool blocked = wxPyBeginBlockThreads();
d55e5bfc 1458 if (PyString_Check(data)) {
68e533f8 1459 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
d55e5bfc
RD
1460 }
1461 else {
1462 // raise a TypeError if not a string
1463 PyErr_SetString(PyExc_TypeError, "String expected.");
68e533f8 1464 rval = False;
d55e5bfc 1465 }
68e533f8
RD
1466 wxPyEndBlockThreads(blocked);
1467 return rval;
d55e5bfc
RD
1468 }
1469PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
68e533f8
RD
1470 PyObject* obj;
1471 bool blocked = wxPyBeginBlockThreads();
1472 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
a07a67e6
RD
1473 wxPyEndBlockThreads(blocked);
1474 return obj;
d55e5bfc
RD
1475 }
1476
1477#include <wx/metafile.h>
1478
1479
1480IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1481
1482
1483IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1484IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1485IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1486IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1487IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1488
1489
1490class wxPyTextDropTarget : public wxTextDropTarget {
1491public:
1492 wxPyTextDropTarget() {}
1493
1494 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1495
1496 DEC_PYCALLBACK__(OnLeave);
1497 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1498 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1499 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1500 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1501
1502 PYPRIVATE;
1503};
1504
1505IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1506IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1507IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1508IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1509IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1510IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1511
1512
1513
1514class wxPyFileDropTarget : public wxFileDropTarget {
1515public:
1516 wxPyFileDropTarget() {}
1517
1518 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1519
1520 DEC_PYCALLBACK__(OnLeave);
1521 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1522 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1523 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1524 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1525
1526 PYPRIVATE;
1527};
1528
1529bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1530 const wxArrayString& filenames) {
1531 bool rval = False;
1532 bool blocked = wxPyBeginBlockThreads();
1533 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1534 PyObject* list = wxArrayString2PyList_helper(filenames);
1535 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1536 Py_DECREF(list);
1537 }
1538 wxPyEndBlockThreads(blocked);
1539 return rval;
1540}
1541
1542
1543
1544IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1545IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1546IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1547IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1548IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1549
1550
1551
1552
1553bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1554
1555#include "wx/display.h"
1556
1557bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1558bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1559int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1560PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1561 PyObject* pyList = NULL;
1562 wxArrayVideoModes arr = self->GetModes(mode);
1563 bool blocked = wxPyBeginBlockThreads();
1564 pyList = PyList_New(0);
1565 for (int i=0; i < arr.GetCount(); i++) {
1566 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1567 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1568 PyList_Append(pyList, pyObj);
68e533f8 1569 Py_DECREF(pyObj);
d55e5bfc
RD
1570 }
1571 wxPyEndBlockThreads(blocked);
1572 return pyList;
1573 }
1574#ifdef __cplusplus
1575extern "C" {
1576#endif
1577static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1578 PyObject *resultobj;
1579 int arg1 ;
1580 wxColour result;
1581 PyObject * obj0 = 0 ;
1582 char *kwnames[] = {
1583 (char *) "index", NULL
1584 };
1585
1586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1587 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1588 if (PyErr_Occurred()) SWIG_fail;
1589 {
1590 PyThreadState* __tstate = wxPyBeginAllowThreads();
1591 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1592
1593 wxPyEndAllowThreads(__tstate);
1594 if (PyErr_Occurred()) SWIG_fail;
1595 }
1596 {
1597 wxColour * resultptr;
1598 resultptr = new wxColour((wxColour &) result);
1599 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1600 }
1601 return resultobj;
1602 fail:
1603 return NULL;
1604}
1605
1606
1607static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1608 PyObject *resultobj;
1609 int arg1 ;
1610 wxFont result;
1611 PyObject * obj0 = 0 ;
1612 char *kwnames[] = {
1613 (char *) "index", NULL
1614 };
1615
1616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1617 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1618 if (PyErr_Occurred()) SWIG_fail;
1619 {
1620 PyThreadState* __tstate = wxPyBeginAllowThreads();
1621 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1622
1623 wxPyEndAllowThreads(__tstate);
1624 if (PyErr_Occurred()) SWIG_fail;
1625 }
1626 {
1627 wxFont * resultptr;
1628 resultptr = new wxFont((wxFont &) result);
1629 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1630 }
1631 return resultobj;
1632 fail:
1633 return NULL;
1634}
1635
1636
1637static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1638 PyObject *resultobj;
1639 int arg1 ;
1640 int result;
1641 PyObject * obj0 = 0 ;
1642 char *kwnames[] = {
1643 (char *) "index", NULL
1644 };
1645
1646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1647 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1648 if (PyErr_Occurred()) SWIG_fail;
1649 {
1650 PyThreadState* __tstate = wxPyBeginAllowThreads();
1651 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1652
1653 wxPyEndAllowThreads(__tstate);
1654 if (PyErr_Occurred()) SWIG_fail;
1655 }
1656 resultobj = SWIG_FromInt((int)result);
1657 return resultobj;
1658 fail:
1659 return NULL;
1660}
1661
1662
1663static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1664 PyObject *resultobj;
1665 int arg1 ;
1666 bool result;
1667 PyObject * obj0 = 0 ;
1668 char *kwnames[] = {
1669 (char *) "index", NULL
1670 };
1671
1672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1673 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1674 if (PyErr_Occurred()) SWIG_fail;
1675 {
1676 PyThreadState* __tstate = wxPyBeginAllowThreads();
1677 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1678
1679 wxPyEndAllowThreads(__tstate);
1680 if (PyErr_Occurred()) SWIG_fail;
1681 }
1682 {
1683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1684 }
1685 return resultobj;
1686 fail:
1687 return NULL;
1688}
1689
1690
1691static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1692 PyObject *resultobj;
1693 int result;
1694 char *kwnames[] = {
1695 NULL
1696 };
1697
1698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1699 {
1700 PyThreadState* __tstate = wxPyBeginAllowThreads();
1701 result = (int)wxSystemSettings::GetScreenType();
1702
1703 wxPyEndAllowThreads(__tstate);
1704 if (PyErr_Occurred()) SWIG_fail;
1705 }
1706 resultobj = SWIG_FromInt((int)result);
1707 return resultobj;
1708 fail:
1709 return NULL;
1710}
1711
1712
1713static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1714 PyObject *resultobj;
1715 int arg1 ;
1716 PyObject * obj0 = 0 ;
1717 char *kwnames[] = {
1718 (char *) "screen", NULL
1719 };
1720
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1722 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1723 if (PyErr_Occurred()) SWIG_fail;
1724 {
1725 PyThreadState* __tstate = wxPyBeginAllowThreads();
1726 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1727
1728 wxPyEndAllowThreads(__tstate);
1729 if (PyErr_Occurred()) SWIG_fail;
1730 }
1731 Py_INCREF(Py_None); resultobj = Py_None;
1732 return resultobj;
1733 fail:
1734 return NULL;
1735}
1736
1737
1738static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1739 PyObject *obj;
1740 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1741 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1742 Py_INCREF(obj);
1743 return Py_BuildValue((char *)"");
1744}
1745static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1746 PyObject *resultobj;
1747 wxSystemOptions *result;
1748 char *kwnames[] = {
1749 NULL
1750 };
1751
1752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1753 {
1754 PyThreadState* __tstate = wxPyBeginAllowThreads();
1755 result = (wxSystemOptions *)new wxSystemOptions();
1756
1757 wxPyEndAllowThreads(__tstate);
1758 if (PyErr_Occurred()) SWIG_fail;
1759 }
1760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1761 return resultobj;
1762 fail:
1763 return NULL;
1764}
1765
1766
1767static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1768 PyObject *resultobj;
1769 wxString *arg1 = 0 ;
1770 wxString *arg2 = 0 ;
1771 bool temp1 = False ;
1772 bool temp2 = False ;
1773 PyObject * obj0 = 0 ;
1774 PyObject * obj1 = 0 ;
1775 char *kwnames[] = {
1776 (char *) "name",(char *) "value", NULL
1777 };
1778
1779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1780 {
1781 arg1 = wxString_in_helper(obj0);
1782 if (arg1 == NULL) SWIG_fail;
1783 temp1 = True;
1784 }
1785 {
1786 arg2 = wxString_in_helper(obj1);
1787 if (arg2 == NULL) SWIG_fail;
1788 temp2 = True;
1789 }
1790 {
1791 PyThreadState* __tstate = wxPyBeginAllowThreads();
1792 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1793
1794 wxPyEndAllowThreads(__tstate);
1795 if (PyErr_Occurred()) SWIG_fail;
1796 }
1797 Py_INCREF(Py_None); resultobj = Py_None;
1798 {
1799 if (temp1)
1800 delete arg1;
1801 }
1802 {
1803 if (temp2)
1804 delete arg2;
1805 }
1806 return resultobj;
1807 fail:
1808 {
1809 if (temp1)
1810 delete arg1;
1811 }
1812 {
1813 if (temp2)
1814 delete arg2;
1815 }
1816 return NULL;
1817}
1818
1819
1820static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1821 PyObject *resultobj;
1822 wxString *arg1 = 0 ;
1823 int arg2 ;
1824 bool temp1 = False ;
1825 PyObject * obj0 = 0 ;
1826 PyObject * obj1 = 0 ;
1827 char *kwnames[] = {
1828 (char *) "name",(char *) "value", NULL
1829 };
1830
1831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1832 {
1833 arg1 = wxString_in_helper(obj0);
1834 if (arg1 == NULL) SWIG_fail;
1835 temp1 = True;
1836 }
1837 arg2 = (int) SWIG_AsInt(obj1);
1838 if (PyErr_Occurred()) SWIG_fail;
1839 {
1840 PyThreadState* __tstate = wxPyBeginAllowThreads();
1841 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1842
1843 wxPyEndAllowThreads(__tstate);
1844 if (PyErr_Occurred()) SWIG_fail;
1845 }
1846 Py_INCREF(Py_None); resultobj = Py_None;
1847 {
1848 if (temp1)
1849 delete arg1;
1850 }
1851 return resultobj;
1852 fail:
1853 {
1854 if (temp1)
1855 delete arg1;
1856 }
1857 return NULL;
1858}
1859
1860
1861static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1862 PyObject *resultobj;
1863 wxString *arg1 = 0 ;
1864 wxString result;
1865 bool temp1 = False ;
1866 PyObject * obj0 = 0 ;
1867 char *kwnames[] = {
1868 (char *) "name", NULL
1869 };
1870
1871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1872 {
1873 arg1 = wxString_in_helper(obj0);
1874 if (arg1 == NULL) SWIG_fail;
1875 temp1 = True;
1876 }
1877 {
1878 PyThreadState* __tstate = wxPyBeginAllowThreads();
1879 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1880
1881 wxPyEndAllowThreads(__tstate);
1882 if (PyErr_Occurred()) SWIG_fail;
1883 }
1884 {
1885#if wxUSE_UNICODE
1886 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1887#else
1888 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1889#endif
1890 }
1891 {
1892 if (temp1)
1893 delete arg1;
1894 }
1895 return resultobj;
1896 fail:
1897 {
1898 if (temp1)
1899 delete arg1;
1900 }
1901 return NULL;
1902}
1903
1904
1905static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1906 PyObject *resultobj;
1907 wxString *arg1 = 0 ;
1908 int result;
1909 bool temp1 = False ;
1910 PyObject * obj0 = 0 ;
1911 char *kwnames[] = {
1912 (char *) "name", NULL
1913 };
1914
1915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1916 {
1917 arg1 = wxString_in_helper(obj0);
1918 if (arg1 == NULL) SWIG_fail;
1919 temp1 = True;
1920 }
1921 {
1922 PyThreadState* __tstate = wxPyBeginAllowThreads();
1923 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1924
1925 wxPyEndAllowThreads(__tstate);
1926 if (PyErr_Occurred()) SWIG_fail;
1927 }
1928 resultobj = SWIG_FromInt((int)result);
1929 {
1930 if (temp1)
1931 delete arg1;
1932 }
1933 return resultobj;
1934 fail:
1935 {
1936 if (temp1)
1937 delete arg1;
1938 }
1939 return NULL;
1940}
1941
1942
1943static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1944 PyObject *resultobj;
1945 wxString *arg1 = 0 ;
1946 bool result;
1947 bool temp1 = False ;
1948 PyObject * obj0 = 0 ;
1949 char *kwnames[] = {
1950 (char *) "name", NULL
1951 };
1952
1953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1954 {
1955 arg1 = wxString_in_helper(obj0);
1956 if (arg1 == NULL) SWIG_fail;
1957 temp1 = True;
1958 }
1959 {
1960 PyThreadState* __tstate = wxPyBeginAllowThreads();
1961 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1962
1963 wxPyEndAllowThreads(__tstate);
1964 if (PyErr_Occurred()) SWIG_fail;
1965 }
1966 {
1967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1968 }
1969 {
1970 if (temp1)
1971 delete arg1;
1972 }
1973 return resultobj;
1974 fail:
1975 {
1976 if (temp1)
1977 delete arg1;
1978 }
1979 return NULL;
1980}
1981
1982
1983static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1984 PyObject *obj;
1985 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1986 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1987 Py_INCREF(obj);
1988 return Py_BuildValue((char *)"");
1989}
1990static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
1991 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1992 return 1;
1993}
1994
1995
1996static PyObject *_wrap_FileSelectorPromptStr_get() {
1997 PyObject *pyobj;
1998
1999 {
2000#if wxUSE_UNICODE
2001 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2002#else
2003 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2004#endif
2005 }
2006 return pyobj;
2007}
2008
2009
2010static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
2011 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2012 return 1;
2013}
2014
2015
2016static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2017 PyObject *pyobj;
2018
2019 {
2020#if wxUSE_UNICODE
2021 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2022#else
2023 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2024#endif
2025 }
2026 return pyobj;
2027}
2028
2029
2030static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
2031 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2032 return 1;
2033}
2034
2035
2036static PyObject *_wrap_DirSelectorPromptStr_get() {
2037 PyObject *pyobj;
2038
2039 {
2040#if wxUSE_UNICODE
2041 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2042#else
2043 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2044#endif
2045 }
2046 return pyobj;
2047}
2048
2049
2050static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
2051 PyObject *resultobj;
2052 long result;
2053 char *kwnames[] = {
2054 NULL
2055 };
2056
2057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2058 {
2059 PyThreadState* __tstate = wxPyBeginAllowThreads();
2060 result = (long)wxNewId();
2061
2062 wxPyEndAllowThreads(__tstate);
2063 if (PyErr_Occurred()) SWIG_fail;
2064 }
2065 resultobj = SWIG_FromLong((long)result);
2066 return resultobj;
2067 fail:
2068 return NULL;
2069}
2070
2071
2072static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2073 PyObject *resultobj;
2074 long arg1 ;
2075 PyObject * obj0 = 0 ;
2076 char *kwnames[] = {
2077 (char *) "id", NULL
2078 };
2079
2080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2081 arg1 = (long) SWIG_AsLong(obj0);
2082 if (PyErr_Occurred()) SWIG_fail;
2083 {
2084 PyThreadState* __tstate = wxPyBeginAllowThreads();
2085 wxRegisterId(arg1);
2086
2087 wxPyEndAllowThreads(__tstate);
2088 if (PyErr_Occurred()) SWIG_fail;
2089 }
2090 Py_INCREF(Py_None); resultobj = Py_None;
2091 return resultobj;
2092 fail:
2093 return NULL;
2094}
2095
2096
2097static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2098 PyObject *resultobj;
2099 long result;
2100 char *kwnames[] = {
2101 NULL
2102 };
2103
2104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2105 {
2106 PyThreadState* __tstate = wxPyBeginAllowThreads();
2107 result = (long)wxGetCurrentId();
2108
2109 wxPyEndAllowThreads(__tstate);
2110 if (PyErr_Occurred()) SWIG_fail;
2111 }
2112 resultobj = SWIG_FromLong((long)result);
2113 return resultobj;
2114 fail:
2115 return NULL;
2116}
2117
2118
2119static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2120 PyObject *resultobj;
2121 char *kwnames[] = {
2122 NULL
2123 };
2124
2125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2126 {
2127 PyThreadState* __tstate = wxPyBeginAllowThreads();
2128 wxBell();
2129
2130 wxPyEndAllowThreads(__tstate);
2131 if (PyErr_Occurred()) SWIG_fail;
2132 }
2133 Py_INCREF(Py_None); resultobj = Py_None;
2134 return resultobj;
2135 fail:
2136 return NULL;
2137}
2138
2139
2140static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2141 PyObject *resultobj;
2142 char *kwnames[] = {
2143 NULL
2144 };
2145
2146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2147 {
2148 PyThreadState* __tstate = wxPyBeginAllowThreads();
2149 wxEndBusyCursor();
2150
2151 wxPyEndAllowThreads(__tstate);
2152 if (PyErr_Occurred()) SWIG_fail;
2153 }
2154 Py_INCREF(Py_None); resultobj = Py_None;
2155 return resultobj;
2156 fail:
2157 return NULL;
2158}
2159
2160
2161static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2162 PyObject *resultobj;
2163 bool arg1 = (bool) True ;
2164 long result;
2165 PyObject * obj0 = 0 ;
2166 char *kwnames[] = {
2167 (char *) "resetTimer", NULL
2168 };
2169
2170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2171 if (obj0) {
2172 arg1 = (bool) SWIG_AsBool(obj0);
2173 if (PyErr_Occurred()) SWIG_fail;
2174 }
2175 {
2176 PyThreadState* __tstate = wxPyBeginAllowThreads();
2177 result = (long)wxGetElapsedTime(arg1);
2178
2179 wxPyEndAllowThreads(__tstate);
2180 if (PyErr_Occurred()) SWIG_fail;
2181 }
2182 resultobj = SWIG_FromLong((long)result);
2183 return resultobj;
2184 fail:
2185 return NULL;
2186}
2187
2188
2189static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2190 PyObject *resultobj;
2191 int *arg1 = (int *) 0 ;
2192 int *arg2 = (int *) 0 ;
2193 int temp1 ;
2194 int temp2 ;
2195 char *kwnames[] = {
2196 NULL
2197 };
2198
2199 arg1 = &temp1;
2200 arg2 = &temp2;
2201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2202 {
2203 PyThreadState* __tstate = wxPyBeginAllowThreads();
2204 wxGetMousePosition(arg1,arg2);
2205
2206 wxPyEndAllowThreads(__tstate);
2207 if (PyErr_Occurred()) SWIG_fail;
2208 }
2209 Py_INCREF(Py_None); resultobj = Py_None;
2210 {
2211 PyObject *o = PyInt_FromLong((long) (*arg1));
2212 resultobj = t_output_helper(resultobj,o);
2213 }
2214 {
2215 PyObject *o = PyInt_FromLong((long) (*arg2));
2216 resultobj = t_output_helper(resultobj,o);
2217 }
2218 return resultobj;
2219 fail:
2220 return NULL;
2221}
2222
2223
2224static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2225 PyObject *resultobj;
2226 bool result;
2227 char *kwnames[] = {
2228 NULL
2229 };
2230
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2232 {
2233 PyThreadState* __tstate = wxPyBeginAllowThreads();
2234 result = (bool)wxIsBusy();
2235
2236 wxPyEndAllowThreads(__tstate);
2237 if (PyErr_Occurred()) SWIG_fail;
2238 }
2239 {
2240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2241 }
2242 return resultobj;
2243 fail:
2244 return NULL;
2245}
2246
2247
2248static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2249 PyObject *resultobj;
2250 wxString result;
2251 char *kwnames[] = {
2252 NULL
2253 };
2254
2255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2256 {
2257 PyThreadState* __tstate = wxPyBeginAllowThreads();
2258 result = wxNow();
2259
2260 wxPyEndAllowThreads(__tstate);
2261 if (PyErr_Occurred()) SWIG_fail;
2262 }
2263 {
2264#if wxUSE_UNICODE
2265 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2266#else
2267 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2268#endif
2269 }
2270 return resultobj;
2271 fail:
2272 return NULL;
2273}
2274
2275
2276static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2277 PyObject *resultobj;
2278 wxString const &arg1_defvalue = wxPyEmptyString ;
2279 wxString *arg1 = (wxString *) &arg1_defvalue ;
2280 bool result;
2281 bool temp1 = False ;
2282 PyObject * obj0 = 0 ;
2283 char *kwnames[] = {
2284 (char *) "command", NULL
2285 };
2286
2287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2288 if (obj0) {
2289 {
2290 arg1 = wxString_in_helper(obj0);
2291 if (arg1 == NULL) SWIG_fail;
2292 temp1 = True;
2293 }
2294 }
2295 {
2296 PyThreadState* __tstate = wxPyBeginAllowThreads();
2297 result = (bool)wxShell((wxString const &)*arg1);
2298
2299 wxPyEndAllowThreads(__tstate);
2300 if (PyErr_Occurred()) SWIG_fail;
2301 }
2302 {
2303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2304 }
2305 {
2306 if (temp1)
2307 delete arg1;
2308 }
2309 return resultobj;
2310 fail:
2311 {
2312 if (temp1)
2313 delete arg1;
2314 }
2315 return NULL;
2316}
2317
2318
2319static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2320 PyObject *resultobj;
2321 char *kwnames[] = {
2322 NULL
2323 };
2324
2325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2326 {
2327 PyThreadState* __tstate = wxPyBeginAllowThreads();
2328 wxStartTimer();
2329
2330 wxPyEndAllowThreads(__tstate);
2331 if (PyErr_Occurred()) SWIG_fail;
2332 }
2333 Py_INCREF(Py_None); resultobj = Py_None;
2334 return resultobj;
2335 fail:
2336 return NULL;
2337}
2338
2339
2340static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2341 PyObject *resultobj;
2342 int *arg1 = (int *) 0 ;
2343 int *arg2 = (int *) 0 ;
2344 int result;
2345 int temp1 ;
2346 int temp2 ;
2347 char *kwnames[] = {
2348 NULL
2349 };
2350
2351 arg1 = &temp1;
2352 arg2 = &temp2;
2353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2354 {
2355 PyThreadState* __tstate = wxPyBeginAllowThreads();
2356 result = (int)wxGetOsVersion(arg1,arg2);
2357
2358 wxPyEndAllowThreads(__tstate);
2359 if (PyErr_Occurred()) SWIG_fail;
2360 }
2361 resultobj = SWIG_FromInt((int)result);
2362 {
2363 PyObject *o = PyInt_FromLong((long) (*arg1));
2364 resultobj = t_output_helper(resultobj,o);
2365 }
2366 {
2367 PyObject *o = PyInt_FromLong((long) (*arg2));
2368 resultobj = t_output_helper(resultobj,o);
2369 }
2370 return resultobj;
2371 fail:
2372 return NULL;
2373}
2374
2375
2376static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2377 PyObject *resultobj;
2378 wxString result;
2379 char *kwnames[] = {
2380 NULL
2381 };
2382
2383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2384 {
2385 PyThreadState* __tstate = wxPyBeginAllowThreads();
2386 result = wxGetOsDescription();
2387
2388 wxPyEndAllowThreads(__tstate);
2389 if (PyErr_Occurred()) SWIG_fail;
2390 }
2391 {
2392#if wxUSE_UNICODE
2393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2394#else
2395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2396#endif
2397 }
2398 return resultobj;
2399 fail:
2400 return NULL;
2401}
2402
2403
2404static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2405 PyObject *resultobj;
2406 long result;
2407 char *kwnames[] = {
2408 NULL
2409 };
2410
2411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2412 {
2413 PyThreadState* __tstate = wxPyBeginAllowThreads();
2414 result = (long)wxGetFreeMemory();
2415
2416 wxPyEndAllowThreads(__tstate);
2417 if (PyErr_Occurred()) SWIG_fail;
2418 }
2419 resultobj = SWIG_FromLong((long)result);
2420 return resultobj;
2421 fail:
2422 return NULL;
2423}
2424
2425
2426static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2427 PyObject *resultobj;
2428 int arg1 ;
2429 bool result;
2430 PyObject * obj0 = 0 ;
2431 char *kwnames[] = {
2432 (char *) "wFlags", NULL
2433 };
2434
2435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2436 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 {
2439 PyThreadState* __tstate = wxPyBeginAllowThreads();
2440 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2441
2442 wxPyEndAllowThreads(__tstate);
2443 if (PyErr_Occurred()) SWIG_fail;
2444 }
2445 {
2446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2447 }
2448 return resultobj;
2449 fail:
2450 return NULL;
2451}
2452
2453
2454static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2455 PyObject *resultobj;
2456 int arg1 ;
2457 PyObject * obj0 = 0 ;
2458 char *kwnames[] = {
2459 (char *) "secs", NULL
2460 };
2461
2462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2463 arg1 = (int) SWIG_AsInt(obj0);
2464 if (PyErr_Occurred()) SWIG_fail;
2465 {
2466 PyThreadState* __tstate = wxPyBeginAllowThreads();
2467 wxSleep(arg1);
2468
2469 wxPyEndAllowThreads(__tstate);
2470 if (PyErr_Occurred()) SWIG_fail;
2471 }
2472 Py_INCREF(Py_None); resultobj = Py_None;
2473 return resultobj;
2474 fail:
2475 return NULL;
2476}
2477
2478
2479static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 unsigned long arg1 ;
2482 PyObject * obj0 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "milliseconds", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2488 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 {
2491 PyThreadState* __tstate = wxPyBeginAllowThreads();
2492 wxUsleep(arg1);
2493
2494 wxPyEndAllowThreads(__tstate);
2495 if (PyErr_Occurred()) SWIG_fail;
2496 }
2497 Py_INCREF(Py_None); resultobj = Py_None;
2498 return resultobj;
2499 fail:
2500 return NULL;
2501}
2502
2503
2504static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2505 PyObject *resultobj;
2506 bool arg1 ;
2507 PyObject * obj0 = 0 ;
2508 char *kwnames[] = {
2509 (char *) "enable", NULL
2510 };
2511
2512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2513 arg1 = (bool) SWIG_AsBool(obj0);
2514 if (PyErr_Occurred()) SWIG_fail;
2515 {
2516 PyThreadState* __tstate = wxPyBeginAllowThreads();
2517 wxEnableTopLevelWindows(arg1);
2518
2519 wxPyEndAllowThreads(__tstate);
2520 if (PyErr_Occurred()) SWIG_fail;
2521 }
2522 Py_INCREF(Py_None); resultobj = Py_None;
2523 return resultobj;
2524 fail:
2525 return NULL;
2526}
2527
2528
2529static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2530 PyObject *resultobj;
2531 wxString *arg1 = 0 ;
2532 wxString result;
2533 bool temp1 = False ;
2534 PyObject * obj0 = 0 ;
2535 char *kwnames[] = {
2536 (char *) "in", NULL
2537 };
2538
2539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2540 {
2541 arg1 = wxString_in_helper(obj0);
2542 if (arg1 == NULL) SWIG_fail;
2543 temp1 = True;
2544 }
2545 {
2546 PyThreadState* __tstate = wxPyBeginAllowThreads();
2547 result = wxStripMenuCodes((wxString const &)*arg1);
2548
2549 wxPyEndAllowThreads(__tstate);
2550 if (PyErr_Occurred()) SWIG_fail;
2551 }
2552 {
2553#if wxUSE_UNICODE
2554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2555#else
2556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2557#endif
2558 }
2559 {
2560 if (temp1)
2561 delete arg1;
2562 }
2563 return resultobj;
2564 fail:
2565 {
2566 if (temp1)
2567 delete arg1;
2568 }
2569 return NULL;
2570}
2571
2572
2573static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2574 PyObject *resultobj;
2575 wxString result;
2576 char *kwnames[] = {
2577 NULL
2578 };
2579
2580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2581 {
2582 PyThreadState* __tstate = wxPyBeginAllowThreads();
2583 result = wxGetEmailAddress();
2584
2585 wxPyEndAllowThreads(__tstate);
2586 if (PyErr_Occurred()) SWIG_fail;
2587 }
2588 {
2589#if wxUSE_UNICODE
2590 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2591#else
2592 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2593#endif
2594 }
2595 return resultobj;
2596 fail:
2597 return NULL;
2598}
2599
2600
2601static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2602 PyObject *resultobj;
2603 wxString result;
2604 char *kwnames[] = {
2605 NULL
2606 };
2607
2608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2609 {
2610 PyThreadState* __tstate = wxPyBeginAllowThreads();
2611 result = wxGetHostName();
2612
2613 wxPyEndAllowThreads(__tstate);
2614 if (PyErr_Occurred()) SWIG_fail;
2615 }
2616 {
2617#if wxUSE_UNICODE
2618 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2619#else
2620 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2621#endif
2622 }
2623 return resultobj;
2624 fail:
2625 return NULL;
2626}
2627
2628
2629static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2630 PyObject *resultobj;
2631 wxString result;
2632 char *kwnames[] = {
2633 NULL
2634 };
2635
2636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2637 {
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 result = wxGetFullHostName();
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) SWIG_fail;
2643 }
2644 {
2645#if wxUSE_UNICODE
2646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2647#else
2648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2649#endif
2650 }
2651 return resultobj;
2652 fail:
2653 return NULL;
2654}
2655
2656
2657static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2658 PyObject *resultobj;
2659 wxString result;
2660 char *kwnames[] = {
2661 NULL
2662 };
2663
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2665 {
2666 PyThreadState* __tstate = wxPyBeginAllowThreads();
2667 result = wxGetUserId();
2668
2669 wxPyEndAllowThreads(__tstate);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 }
2672 {
2673#if wxUSE_UNICODE
2674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2675#else
2676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2677#endif
2678 }
2679 return resultobj;
2680 fail:
2681 return NULL;
2682}
2683
2684
2685static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2686 PyObject *resultobj;
2687 wxString result;
2688 char *kwnames[] = {
2689 NULL
2690 };
2691
2692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2693 {
2694 PyThreadState* __tstate = wxPyBeginAllowThreads();
2695 result = wxGetUserName();
2696
2697 wxPyEndAllowThreads(__tstate);
2698 if (PyErr_Occurred()) SWIG_fail;
2699 }
2700 {
2701#if wxUSE_UNICODE
2702 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2703#else
2704 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2705#endif
2706 }
2707 return resultobj;
2708 fail:
2709 return NULL;
2710}
2711
2712
2713static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2714 PyObject *resultobj;
2715 wxString result;
2716 char *kwnames[] = {
2717 NULL
2718 };
2719
2720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2721 {
2722 PyThreadState* __tstate = wxPyBeginAllowThreads();
2723 result = wxGetHomeDir();
2724
2725 wxPyEndAllowThreads(__tstate);
2726 if (PyErr_Occurred()) SWIG_fail;
2727 }
2728 {
2729#if wxUSE_UNICODE
2730 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2731#else
2732 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2733#endif
2734 }
2735 return resultobj;
2736 fail:
2737 return NULL;
2738}
2739
2740
2741static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2742 PyObject *resultobj;
2743 wxString const &arg1_defvalue = wxPyEmptyString ;
2744 wxString *arg1 = (wxString *) &arg1_defvalue ;
2745 wxString result;
2746 bool temp1 = False ;
2747 PyObject * obj0 = 0 ;
2748 char *kwnames[] = {
2749 (char *) "user", NULL
2750 };
2751
2752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2753 if (obj0) {
2754 {
2755 arg1 = wxString_in_helper(obj0);
2756 if (arg1 == NULL) SWIG_fail;
2757 temp1 = True;
2758 }
2759 }
2760 {
2761 PyThreadState* __tstate = wxPyBeginAllowThreads();
2762 result = wxGetUserHome((wxString const &)*arg1);
2763
2764 wxPyEndAllowThreads(__tstate);
2765 if (PyErr_Occurred()) SWIG_fail;
2766 }
2767 {
2768#if wxUSE_UNICODE
2769 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2770#else
2771 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2772#endif
2773 }
2774 {
2775 if (temp1)
2776 delete arg1;
2777 }
2778 return resultobj;
2779 fail:
2780 {
2781 if (temp1)
2782 delete arg1;
2783 }
2784 return NULL;
2785}
2786
2787
2788static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2789 PyObject *resultobj;
2790 unsigned long result;
2791 char *kwnames[] = {
2792 NULL
2793 };
2794
2795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2796 {
2797 PyThreadState* __tstate = wxPyBeginAllowThreads();
2798 result = (unsigned long)wxGetProcessId();
2799
2800 wxPyEndAllowThreads(__tstate);
2801 if (PyErr_Occurred()) SWIG_fail;
2802 }
2803 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2804 return resultobj;
2805 fail:
2806 return NULL;
2807}
2808
2809
2810static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2811 PyObject *resultobj;
2812 char *kwnames[] = {
2813 NULL
2814 };
2815
2816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2817 {
2818 PyThreadState* __tstate = wxPyBeginAllowThreads();
2819 wxTrap();
2820
2821 wxPyEndAllowThreads(__tstate);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 }
2824 Py_INCREF(Py_None); resultobj = Py_None;
2825 return resultobj;
2826 fail:
2827 return NULL;
2828}
2829
2830
2831static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2832 PyObject *resultobj;
2833 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2834 wxString *arg1 = (wxString *) &arg1_defvalue ;
2835 wxString const &arg2_defvalue = wxPyEmptyString ;
2836 wxString *arg2 = (wxString *) &arg2_defvalue ;
2837 wxString const &arg3_defvalue = wxPyEmptyString ;
2838 wxString *arg3 = (wxString *) &arg3_defvalue ;
2839 wxString const &arg4_defvalue = wxPyEmptyString ;
2840 wxString *arg4 = (wxString *) &arg4_defvalue ;
2841 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2842 wxString *arg5 = (wxString *) &arg5_defvalue ;
2843 int arg6 = (int) 0 ;
2844 wxWindow *arg7 = (wxWindow *) NULL ;
2845 int arg8 = (int) -1 ;
2846 int arg9 = (int) -1 ;
2847 wxString result;
2848 bool temp1 = False ;
2849 bool temp2 = False ;
2850 bool temp3 = False ;
2851 bool temp4 = False ;
2852 bool temp5 = False ;
2853 PyObject * obj0 = 0 ;
2854 PyObject * obj1 = 0 ;
2855 PyObject * obj2 = 0 ;
2856 PyObject * obj3 = 0 ;
2857 PyObject * obj4 = 0 ;
2858 PyObject * obj5 = 0 ;
2859 PyObject * obj6 = 0 ;
2860 PyObject * obj7 = 0 ;
2861 PyObject * obj8 = 0 ;
2862 char *kwnames[] = {
2863 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2864 };
2865
2866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2867 if (obj0) {
2868 {
2869 arg1 = wxString_in_helper(obj0);
2870 if (arg1 == NULL) SWIG_fail;
2871 temp1 = True;
2872 }
2873 }
2874 if (obj1) {
2875 {
2876 arg2 = wxString_in_helper(obj1);
2877 if (arg2 == NULL) SWIG_fail;
2878 temp2 = True;
2879 }
2880 }
2881 if (obj2) {
2882 {
2883 arg3 = wxString_in_helper(obj2);
2884 if (arg3 == NULL) SWIG_fail;
2885 temp3 = True;
2886 }
2887 }
2888 if (obj3) {
2889 {
2890 arg4 = wxString_in_helper(obj3);
2891 if (arg4 == NULL) SWIG_fail;
2892 temp4 = True;
2893 }
2894 }
2895 if (obj4) {
2896 {
2897 arg5 = wxString_in_helper(obj4);
2898 if (arg5 == NULL) SWIG_fail;
2899 temp5 = True;
2900 }
2901 }
2902 if (obj5) {
2903 arg6 = (int) SWIG_AsInt(obj5);
2904 if (PyErr_Occurred()) SWIG_fail;
2905 }
2906 if (obj6) {
2907 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2909 }
2910 if (obj7) {
2911 arg8 = (int) SWIG_AsInt(obj7);
2912 if (PyErr_Occurred()) SWIG_fail;
2913 }
2914 if (obj8) {
2915 arg9 = (int) SWIG_AsInt(obj8);
2916 if (PyErr_Occurred()) SWIG_fail;
2917 }
2918 {
2919 PyThreadState* __tstate = wxPyBeginAllowThreads();
2920 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2921
2922 wxPyEndAllowThreads(__tstate);
2923 if (PyErr_Occurred()) SWIG_fail;
2924 }
2925 {
2926#if wxUSE_UNICODE
2927 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2928#else
2929 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2930#endif
2931 }
2932 {
2933 if (temp1)
2934 delete arg1;
2935 }
2936 {
2937 if (temp2)
2938 delete arg2;
2939 }
2940 {
2941 if (temp3)
2942 delete arg3;
2943 }
2944 {
2945 if (temp4)
2946 delete arg4;
2947 }
2948 {
2949 if (temp5)
2950 delete arg5;
2951 }
2952 return resultobj;
2953 fail:
2954 {
2955 if (temp1)
2956 delete arg1;
2957 }
2958 {
2959 if (temp2)
2960 delete arg2;
2961 }
2962 {
2963 if (temp3)
2964 delete arg3;
2965 }
2966 {
2967 if (temp4)
2968 delete arg4;
2969 }
2970 {
2971 if (temp5)
2972 delete arg5;
2973 }
2974 return NULL;
2975}
2976
2977
2978static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2979 PyObject *resultobj;
2980 wxString *arg1 = 0 ;
2981 wxString *arg2 = 0 ;
2982 wxString const &arg3_defvalue = wxPyEmptyString ;
2983 wxString *arg3 = (wxString *) &arg3_defvalue ;
2984 wxWindow *arg4 = (wxWindow *) NULL ;
2985 wxString result;
2986 bool temp1 = False ;
2987 bool temp2 = False ;
2988 bool temp3 = False ;
2989 PyObject * obj0 = 0 ;
2990 PyObject * obj1 = 0 ;
2991 PyObject * obj2 = 0 ;
2992 PyObject * obj3 = 0 ;
2993 char *kwnames[] = {
2994 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2995 };
2996
2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2998 {
2999 arg1 = wxString_in_helper(obj0);
3000 if (arg1 == NULL) SWIG_fail;
3001 temp1 = True;
3002 }
3003 {
3004 arg2 = wxString_in_helper(obj1);
3005 if (arg2 == NULL) SWIG_fail;
3006 temp2 = True;
3007 }
3008 if (obj2) {
3009 {
3010 arg3 = wxString_in_helper(obj2);
3011 if (arg3 == NULL) SWIG_fail;
3012 temp3 = True;
3013 }
3014 }
3015 if (obj3) {
3016 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3018 }
3019 {
3020 PyThreadState* __tstate = wxPyBeginAllowThreads();
3021 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3022
3023 wxPyEndAllowThreads(__tstate);
3024 if (PyErr_Occurred()) SWIG_fail;
3025 }
3026 {
3027#if wxUSE_UNICODE
3028 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3029#else
3030 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3031#endif
3032 }
3033 {
3034 if (temp1)
3035 delete arg1;
3036 }
3037 {
3038 if (temp2)
3039 delete arg2;
3040 }
3041 {
3042 if (temp3)
3043 delete arg3;
3044 }
3045 return resultobj;
3046 fail:
3047 {
3048 if (temp1)
3049 delete arg1;
3050 }
3051 {
3052 if (temp2)
3053 delete arg2;
3054 }
3055 {
3056 if (temp3)
3057 delete arg3;
3058 }
3059 return NULL;
3060}
3061
3062
3063static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3064 PyObject *resultobj;
3065 wxString *arg1 = 0 ;
3066 wxString *arg2 = 0 ;
3067 wxString const &arg3_defvalue = wxPyEmptyString ;
3068 wxString *arg3 = (wxString *) &arg3_defvalue ;
3069 wxWindow *arg4 = (wxWindow *) NULL ;
3070 wxString result;
3071 bool temp1 = False ;
3072 bool temp2 = False ;
3073 bool temp3 = False ;
3074 PyObject * obj0 = 0 ;
3075 PyObject * obj1 = 0 ;
3076 PyObject * obj2 = 0 ;
3077 PyObject * obj3 = 0 ;
3078 char *kwnames[] = {
3079 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3080 };
3081
3082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3083 {
3084 arg1 = wxString_in_helper(obj0);
3085 if (arg1 == NULL) SWIG_fail;
3086 temp1 = True;
3087 }
3088 {
3089 arg2 = wxString_in_helper(obj1);
3090 if (arg2 == NULL) SWIG_fail;
3091 temp2 = True;
3092 }
3093 if (obj2) {
3094 {
3095 arg3 = wxString_in_helper(obj2);
3096 if (arg3 == NULL) SWIG_fail;
3097 temp3 = True;
3098 }
3099 }
3100 if (obj3) {
3101 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3103 }
3104 {
3105 PyThreadState* __tstate = wxPyBeginAllowThreads();
3106 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3107
3108 wxPyEndAllowThreads(__tstate);
3109 if (PyErr_Occurred()) SWIG_fail;
3110 }
3111 {
3112#if wxUSE_UNICODE
3113 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3114#else
3115 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3116#endif
3117 }
3118 {
3119 if (temp1)
3120 delete arg1;
3121 }
3122 {
3123 if (temp2)
3124 delete arg2;
3125 }
3126 {
3127 if (temp3)
3128 delete arg3;
3129 }
3130 return resultobj;
3131 fail:
3132 {
3133 if (temp1)
3134 delete arg1;
3135 }
3136 {
3137 if (temp2)
3138 delete arg2;
3139 }
3140 {
3141 if (temp3)
3142 delete arg3;
3143 }
3144 return NULL;
3145}
3146
3147
3148static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3149 PyObject *resultobj;
3150 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3151 wxString *arg1 = (wxString *) &arg1_defvalue ;
3152 wxString const &arg2_defvalue = wxPyEmptyString ;
3153 wxString *arg2 = (wxString *) &arg2_defvalue ;
3154 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3155 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3156 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3157 wxWindow *arg5 = (wxWindow *) NULL ;
3158 wxString result;
3159 bool temp1 = False ;
3160 bool temp2 = False ;
3161 wxPoint temp4 ;
3162 PyObject * obj0 = 0 ;
3163 PyObject * obj1 = 0 ;
3164 PyObject * obj2 = 0 ;
3165 PyObject * obj3 = 0 ;
3166 PyObject * obj4 = 0 ;
3167 char *kwnames[] = {
3168 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3169 };
3170
3171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3172 if (obj0) {
3173 {
3174 arg1 = wxString_in_helper(obj0);
3175 if (arg1 == NULL) SWIG_fail;
3176 temp1 = True;
3177 }
3178 }
3179 if (obj1) {
3180 {
3181 arg2 = wxString_in_helper(obj1);
3182 if (arg2 == NULL) SWIG_fail;
3183 temp2 = True;
3184 }
3185 }
3186 if (obj2) {
3187 arg3 = (long) SWIG_AsLong(obj2);
3188 if (PyErr_Occurred()) SWIG_fail;
3189 }
3190 if (obj3) {
3191 {
3192 arg4 = &temp4;
3193 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3194 }
3195 }
3196 if (obj4) {
3197 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3199 }
3200 {
3201 PyThreadState* __tstate = wxPyBeginAllowThreads();
3202 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3203
3204 wxPyEndAllowThreads(__tstate);
3205 if (PyErr_Occurred()) SWIG_fail;
3206 }
3207 {
3208#if wxUSE_UNICODE
3209 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3210#else
3211 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3212#endif
3213 }
3214 {
3215 if (temp1)
3216 delete arg1;
3217 }
3218 {
3219 if (temp2)
3220 delete arg2;
3221 }
3222 return resultobj;
3223 fail:
3224 {
3225 if (temp1)
3226 delete arg1;
3227 }
3228 {
3229 if (temp2)
3230 delete arg2;
3231 }
3232 return NULL;
3233}
3234
3235
3236static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3237 PyObject *resultobj;
3238 wxString *arg1 = 0 ;
3239 wxString const &arg2_defvalue = wxPyEmptyString ;
3240 wxString *arg2 = (wxString *) &arg2_defvalue ;
3241 wxString const &arg3_defvalue = wxPyEmptyString ;
3242 wxString *arg3 = (wxString *) &arg3_defvalue ;
3243 wxWindow *arg4 = (wxWindow *) NULL ;
3244 int arg5 = (int) -1 ;
3245 int arg6 = (int) -1 ;
3246 bool arg7 = (bool) True ;
3247 wxString result;
3248 bool temp1 = False ;
3249 bool temp2 = False ;
3250 bool temp3 = False ;
3251 PyObject * obj0 = 0 ;
3252 PyObject * obj1 = 0 ;
3253 PyObject * obj2 = 0 ;
3254 PyObject * obj3 = 0 ;
3255 PyObject * obj4 = 0 ;
3256 PyObject * obj5 = 0 ;
3257 PyObject * obj6 = 0 ;
3258 char *kwnames[] = {
3259 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3260 };
3261
3262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3263 {
3264 arg1 = wxString_in_helper(obj0);
3265 if (arg1 == NULL) SWIG_fail;
3266 temp1 = True;
3267 }
3268 if (obj1) {
3269 {
3270 arg2 = wxString_in_helper(obj1);
3271 if (arg2 == NULL) SWIG_fail;
3272 temp2 = True;
3273 }
3274 }
3275 if (obj2) {
3276 {
3277 arg3 = wxString_in_helper(obj2);
3278 if (arg3 == NULL) SWIG_fail;
3279 temp3 = True;
3280 }
3281 }
3282 if (obj3) {
3283 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3285 }
3286 if (obj4) {
3287 arg5 = (int) SWIG_AsInt(obj4);
3288 if (PyErr_Occurred()) SWIG_fail;
3289 }
3290 if (obj5) {
3291 arg6 = (int) SWIG_AsInt(obj5);
3292 if (PyErr_Occurred()) SWIG_fail;
3293 }
3294 if (obj6) {
3295 arg7 = (bool) SWIG_AsBool(obj6);
3296 if (PyErr_Occurred()) SWIG_fail;
3297 }
3298 {
3299 PyThreadState* __tstate = wxPyBeginAllowThreads();
3300 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3301
3302 wxPyEndAllowThreads(__tstate);
3303 if (PyErr_Occurred()) SWIG_fail;
3304 }
3305 {
3306#if wxUSE_UNICODE
3307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3308#else
3309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3310#endif
3311 }
3312 {
3313 if (temp1)
3314 delete arg1;
3315 }
3316 {
3317 if (temp2)
3318 delete arg2;
3319 }
3320 {
3321 if (temp3)
3322 delete arg3;
3323 }
3324 return resultobj;
3325 fail:
3326 {
3327 if (temp1)
3328 delete arg1;
3329 }
3330 {
3331 if (temp2)
3332 delete arg2;
3333 }
3334 {
3335 if (temp3)
3336 delete arg3;
3337 }
3338 return NULL;
3339}
3340
3341
3342static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3343 PyObject *resultobj;
3344 wxString *arg1 = 0 ;
3345 wxString const &arg2_defvalue = wxPyEmptyString ;
3346 wxString *arg2 = (wxString *) &arg2_defvalue ;
3347 wxString const &arg3_defvalue = wxPyEmptyString ;
3348 wxString *arg3 = (wxString *) &arg3_defvalue ;
3349 wxWindow *arg4 = (wxWindow *) NULL ;
3350 wxString result;
3351 bool temp1 = False ;
3352 bool temp2 = False ;
3353 bool temp3 = False ;
3354 PyObject * obj0 = 0 ;
3355 PyObject * obj1 = 0 ;
3356 PyObject * obj2 = 0 ;
3357 PyObject * obj3 = 0 ;
3358 char *kwnames[] = {
3359 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3360 };
3361
3362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3363 {
3364 arg1 = wxString_in_helper(obj0);
3365 if (arg1 == NULL) SWIG_fail;
3366 temp1 = True;
3367 }
3368 if (obj1) {
3369 {
3370 arg2 = wxString_in_helper(obj1);
3371 if (arg2 == NULL) SWIG_fail;
3372 temp2 = True;
3373 }
3374 }
3375 if (obj2) {
3376 {
3377 arg3 = wxString_in_helper(obj2);
3378 if (arg3 == NULL) SWIG_fail;
3379 temp3 = True;
3380 }
3381 }
3382 if (obj3) {
3383 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3385 }
3386 {
3387 PyThreadState* __tstate = wxPyBeginAllowThreads();
3388 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3389
3390 wxPyEndAllowThreads(__tstate);
3391 if (PyErr_Occurred()) SWIG_fail;
3392 }
3393 {
3394#if wxUSE_UNICODE
3395 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3396#else
3397 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3398#endif
3399 }
3400 {
3401 if (temp1)
3402 delete arg1;
3403 }
3404 {
3405 if (temp2)
3406 delete arg2;
3407 }
3408 {
3409 if (temp3)
3410 delete arg3;
3411 }
3412 return resultobj;
3413 fail:
3414 {
3415 if (temp1)
3416 delete arg1;
3417 }
3418 {
3419 if (temp2)
3420 delete arg2;
3421 }
3422 {
3423 if (temp3)
3424 delete arg3;
3425 }
3426 return NULL;
3427}
3428
3429
3430static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3431 PyObject *resultobj;
3432 wxString *arg1 = 0 ;
3433 wxString *arg2 = 0 ;
3434 int arg3 ;
3435 wxString *arg4 = (wxString *) 0 ;
3436 wxWindow *arg5 = (wxWindow *) NULL ;
3437 int arg6 = (int) -1 ;
3438 int arg7 = (int) -1 ;
3439 bool arg8 = (bool) True ;
3440 int arg9 = (int) 150 ;
3441 int arg10 = (int) 200 ;
3442 wxString result;
3443 bool temp1 = False ;
3444 bool temp2 = False ;
3445 PyObject * obj0 = 0 ;
3446 PyObject * obj1 = 0 ;
3447 PyObject * obj2 = 0 ;
3448 PyObject * obj3 = 0 ;
3449 PyObject * obj4 = 0 ;
3450 PyObject * obj5 = 0 ;
3451 PyObject * obj6 = 0 ;
3452 PyObject * obj7 = 0 ;
3453 PyObject * obj8 = 0 ;
3454 char *kwnames[] = {
3455 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3456 };
3457
3458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3459 {
3460 arg1 = wxString_in_helper(obj0);
3461 if (arg1 == NULL) SWIG_fail;
3462 temp1 = True;
3463 }
3464 {
3465 arg2 = wxString_in_helper(obj1);
3466 if (arg2 == NULL) SWIG_fail;
3467 temp2 = True;
3468 }
3469 {
3470 arg3 = PyList_Size(obj2);
3471 arg4 = wxString_LIST_helper(obj2);
3472 if (arg4 == NULL) SWIG_fail;
3473 }
3474 if (obj3) {
3475 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3477 }
3478 if (obj4) {
3479 arg6 = (int) SWIG_AsInt(obj4);
3480 if (PyErr_Occurred()) SWIG_fail;
3481 }
3482 if (obj5) {
3483 arg7 = (int) SWIG_AsInt(obj5);
3484 if (PyErr_Occurred()) SWIG_fail;
3485 }
3486 if (obj6) {
3487 arg8 = (bool) SWIG_AsBool(obj6);
3488 if (PyErr_Occurred()) SWIG_fail;
3489 }
3490 if (obj7) {
3491 arg9 = (int) SWIG_AsInt(obj7);
3492 if (PyErr_Occurred()) SWIG_fail;
3493 }
3494 if (obj8) {
3495 arg10 = (int) SWIG_AsInt(obj8);
3496 if (PyErr_Occurred()) SWIG_fail;
3497 }
3498 {
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3501
3502 wxPyEndAllowThreads(__tstate);
3503 if (PyErr_Occurred()) SWIG_fail;
3504 }
3505 {
3506#if wxUSE_UNICODE
3507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3508#else
3509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3510#endif
3511 }
3512 {
3513 if (temp1)
3514 delete arg1;
3515 }
3516 {
3517 if (temp2)
3518 delete arg2;
3519 }
3520 {
3521 if (arg4) delete [] arg4;
3522 }
3523 return resultobj;
3524 fail:
3525 {
3526 if (temp1)
3527 delete arg1;
3528 }
3529 {
3530 if (temp2)
3531 delete arg2;
3532 }
3533 {
3534 if (arg4) delete [] arg4;
3535 }
3536 return NULL;
3537}
3538
3539
3540static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3541 PyObject *resultobj;
3542 wxString *arg1 = 0 ;
3543 wxString *arg2 = 0 ;
3544 int arg3 ;
3545 wxString *arg4 = (wxString *) 0 ;
3546 wxWindow *arg5 = (wxWindow *) NULL ;
3547 int arg6 = (int) -1 ;
3548 int arg7 = (int) -1 ;
3549 bool arg8 = (bool) True ;
3550 int arg9 = (int) 150 ;
3551 int arg10 = (int) 200 ;
3552 int result;
3553 bool temp1 = False ;
3554 bool temp2 = False ;
3555 PyObject * obj0 = 0 ;
3556 PyObject * obj1 = 0 ;
3557 PyObject * obj2 = 0 ;
3558 PyObject * obj3 = 0 ;
3559 PyObject * obj4 = 0 ;
3560 PyObject * obj5 = 0 ;
3561 PyObject * obj6 = 0 ;
3562 PyObject * obj7 = 0 ;
3563 PyObject * obj8 = 0 ;
3564 char *kwnames[] = {
3565 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3566 };
3567
3568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3569 {
3570 arg1 = wxString_in_helper(obj0);
3571 if (arg1 == NULL) SWIG_fail;
3572 temp1 = True;
3573 }
3574 {
3575 arg2 = wxString_in_helper(obj1);
3576 if (arg2 == NULL) SWIG_fail;
3577 temp2 = True;
3578 }
3579 {
3580 arg3 = PyList_Size(obj2);
3581 arg4 = wxString_LIST_helper(obj2);
3582 if (arg4 == NULL) SWIG_fail;
3583 }
3584 if (obj3) {
3585 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3587 }
3588 if (obj4) {
3589 arg6 = (int) SWIG_AsInt(obj4);
3590 if (PyErr_Occurred()) SWIG_fail;
3591 }
3592 if (obj5) {
3593 arg7 = (int) SWIG_AsInt(obj5);
3594 if (PyErr_Occurred()) SWIG_fail;
3595 }
3596 if (obj6) {
3597 arg8 = (bool) SWIG_AsBool(obj6);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 if (obj7) {
3601 arg9 = (int) SWIG_AsInt(obj7);
3602 if (PyErr_Occurred()) SWIG_fail;
3603 }
3604 if (obj8) {
3605 arg10 = (int) SWIG_AsInt(obj8);
3606 if (PyErr_Occurred()) SWIG_fail;
3607 }
3608 {
3609 PyThreadState* __tstate = wxPyBeginAllowThreads();
3610 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3611
3612 wxPyEndAllowThreads(__tstate);
3613 if (PyErr_Occurred()) SWIG_fail;
3614 }
3615 resultobj = SWIG_FromInt((int)result);
3616 {
3617 if (temp1)
3618 delete arg1;
3619 }
3620 {
3621 if (temp2)
3622 delete arg2;
3623 }
3624 {
3625 if (arg4) delete [] arg4;
3626 }
3627 return resultobj;
3628 fail:
3629 {
3630 if (temp1)
3631 delete arg1;
3632 }
3633 {
3634 if (temp2)
3635 delete arg2;
3636 }
3637 {
3638 if (arg4) delete [] arg4;
3639 }
3640 return NULL;
3641}
3642
3643
3644static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3645 PyObject *resultobj;
3646 wxString *arg1 = 0 ;
3647 wxString const &arg2_defvalue = wxPyEmptyString ;
3648 wxString *arg2 = (wxString *) &arg2_defvalue ;
3649 int arg3 = (int) wxOK|wxCENTRE ;
3650 wxWindow *arg4 = (wxWindow *) NULL ;
3651 int arg5 = (int) -1 ;
3652 int arg6 = (int) -1 ;
3653 int result;
3654 bool temp1 = False ;
3655 bool temp2 = False ;
3656 PyObject * obj0 = 0 ;
3657 PyObject * obj1 = 0 ;
3658 PyObject * obj2 = 0 ;
3659 PyObject * obj3 = 0 ;
3660 PyObject * obj4 = 0 ;
3661 PyObject * obj5 = 0 ;
3662 char *kwnames[] = {
3663 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3664 };
3665
3666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3667 {
3668 arg1 = wxString_in_helper(obj0);
3669 if (arg1 == NULL) SWIG_fail;
3670 temp1 = True;
3671 }
3672 if (obj1) {
3673 {
3674 arg2 = wxString_in_helper(obj1);
3675 if (arg2 == NULL) SWIG_fail;
3676 temp2 = True;
3677 }
3678 }
3679 if (obj2) {
3680 arg3 = (int) SWIG_AsInt(obj2);
3681 if (PyErr_Occurred()) SWIG_fail;
3682 }
3683 if (obj3) {
3684 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3686 }
3687 if (obj4) {
3688 arg5 = (int) SWIG_AsInt(obj4);
3689 if (PyErr_Occurred()) SWIG_fail;
3690 }
3691 if (obj5) {
3692 arg6 = (int) SWIG_AsInt(obj5);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 {
3696 PyThreadState* __tstate = wxPyBeginAllowThreads();
3697 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3698
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 }
3702 resultobj = SWIG_FromInt((int)result);
3703 {
3704 if (temp1)
3705 delete arg1;
3706 }
3707 {
3708 if (temp2)
3709 delete arg2;
3710 }
3711 return resultobj;
3712 fail:
3713 {
3714 if (temp1)
3715 delete arg1;
3716 }
3717 {
3718 if (temp2)
3719 delete arg2;
3720 }
3721 return NULL;
3722}
3723
3724
3725static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3726 PyObject *resultobj;
3727 wxString *arg1 = 0 ;
3728 wxString *arg2 = 0 ;
3729 wxString *arg3 = 0 ;
3730 long arg4 ;
3731 long arg5 = (long) 0 ;
3732 long arg6 = (long) 100 ;
3733 wxWindow *arg7 = (wxWindow *) NULL ;
3734 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3735 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3736 long result;
3737 bool temp1 = False ;
3738 bool temp2 = False ;
3739 bool temp3 = False ;
3740 wxPoint temp8 ;
3741 PyObject * obj0 = 0 ;
3742 PyObject * obj1 = 0 ;
3743 PyObject * obj2 = 0 ;
3744 PyObject * obj3 = 0 ;
3745 PyObject * obj4 = 0 ;
3746 PyObject * obj5 = 0 ;
3747 PyObject * obj6 = 0 ;
3748 PyObject * obj7 = 0 ;
3749 char *kwnames[] = {
3750 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3751 };
3752
3753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3754 {
3755 arg1 = wxString_in_helper(obj0);
3756 if (arg1 == NULL) SWIG_fail;
3757 temp1 = True;
3758 }
3759 {
3760 arg2 = wxString_in_helper(obj1);
3761 if (arg2 == NULL) SWIG_fail;
3762 temp2 = True;
3763 }
3764 {
3765 arg3 = wxString_in_helper(obj2);
3766 if (arg3 == NULL) SWIG_fail;
3767 temp3 = True;
3768 }
3769 arg4 = (long) SWIG_AsLong(obj3);
3770 if (PyErr_Occurred()) SWIG_fail;
3771 if (obj4) {
3772 arg5 = (long) SWIG_AsLong(obj4);
3773 if (PyErr_Occurred()) SWIG_fail;
3774 }
3775 if (obj5) {
3776 arg6 = (long) SWIG_AsLong(obj5);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 if (obj6) {
3780 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3782 }
3783 if (obj7) {
3784 {
3785 arg8 = &temp8;
3786 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3787 }
3788 }
3789 {
3790 PyThreadState* __tstate = wxPyBeginAllowThreads();
3791 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3792
3793 wxPyEndAllowThreads(__tstate);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 resultobj = SWIG_FromLong((long)result);
3797 {
3798 if (temp1)
3799 delete arg1;
3800 }
3801 {
3802 if (temp2)
3803 delete arg2;
3804 }
3805 {
3806 if (temp3)
3807 delete arg3;
3808 }
3809 return resultobj;
3810 fail:
3811 {
3812 if (temp1)
3813 delete arg1;
3814 }
3815 {
3816 if (temp2)
3817 delete arg2;
3818 }
3819 {
3820 if (temp3)
3821 delete arg3;
3822 }
3823 return NULL;
3824}
3825
3826
3827static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3828 PyObject *resultobj;
3829 bool result;
3830 char *kwnames[] = {
3831 NULL
3832 };
3833
3834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3835 {
3836 PyThreadState* __tstate = wxPyBeginAllowThreads();
3837 result = (bool)wxColourDisplay();
3838
3839 wxPyEndAllowThreads(__tstate);
3840 if (PyErr_Occurred()) SWIG_fail;
3841 }
3842 {
3843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3844 }
3845 return resultobj;
3846 fail:
3847 return NULL;
3848}
3849
3850
3851static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3852 PyObject *resultobj;
3853 int result;
3854 char *kwnames[] = {
3855 NULL
3856 };
3857
3858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3859 {
3860 PyThreadState* __tstate = wxPyBeginAllowThreads();
3861 result = (int)wxDisplayDepth();
3862
3863 wxPyEndAllowThreads(__tstate);
3864 if (PyErr_Occurred()) SWIG_fail;
3865 }
3866 resultobj = SWIG_FromInt((int)result);
3867 return resultobj;
3868 fail:
3869 return NULL;
3870}
3871
3872
3873static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3874 PyObject *resultobj;
3875 int result;
3876 char *kwnames[] = {
3877 NULL
3878 };
3879
3880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3881 {
3882 PyThreadState* __tstate = wxPyBeginAllowThreads();
3883 result = (int)wxGetDisplayDepth();
3884
3885 wxPyEndAllowThreads(__tstate);
3886 if (PyErr_Occurred()) SWIG_fail;
3887 }
3888 resultobj = SWIG_FromInt((int)result);
3889 return resultobj;
3890 fail:
3891 return NULL;
3892}
3893
3894
3895static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3896 PyObject *resultobj;
3897 int *arg1 = (int *) 0 ;
3898 int *arg2 = (int *) 0 ;
3899 int temp1 ;
3900 int temp2 ;
3901 char *kwnames[] = {
3902 NULL
3903 };
3904
3905 arg1 = &temp1;
3906 arg2 = &temp2;
3907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3908 {
3909 PyThreadState* __tstate = wxPyBeginAllowThreads();
3910 wxDisplaySize(arg1,arg2);
3911
3912 wxPyEndAllowThreads(__tstate);
3913 if (PyErr_Occurred()) SWIG_fail;
3914 }
3915 Py_INCREF(Py_None); resultobj = Py_None;
3916 {
3917 PyObject *o = PyInt_FromLong((long) (*arg1));
3918 resultobj = t_output_helper(resultobj,o);
3919 }
3920 {
3921 PyObject *o = PyInt_FromLong((long) (*arg2));
3922 resultobj = t_output_helper(resultobj,o);
3923 }
3924 return resultobj;
3925 fail:
3926 return NULL;
3927}
3928
3929
3930static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3931 PyObject *resultobj;
3932 wxSize result;
3933 char *kwnames[] = {
3934 NULL
3935 };
3936
3937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3938 {
3939 PyThreadState* __tstate = wxPyBeginAllowThreads();
3940 result = wxGetDisplaySize();
3941
3942 wxPyEndAllowThreads(__tstate);
3943 if (PyErr_Occurred()) SWIG_fail;
3944 }
3945 {
3946 wxSize * resultptr;
3947 resultptr = new wxSize((wxSize &) result);
3948 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3949 }
3950 return resultobj;
3951 fail:
3952 return NULL;
3953}
3954
3955
3956static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3957 PyObject *resultobj;
3958 int *arg1 = (int *) 0 ;
3959 int *arg2 = (int *) 0 ;
3960 int temp1 ;
3961 int temp2 ;
3962 char *kwnames[] = {
3963 NULL
3964 };
3965
3966 arg1 = &temp1;
3967 arg2 = &temp2;
3968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3969 {
3970 PyThreadState* __tstate = wxPyBeginAllowThreads();
3971 wxDisplaySizeMM(arg1,arg2);
3972
3973 wxPyEndAllowThreads(__tstate);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
3976 Py_INCREF(Py_None); resultobj = Py_None;
3977 {
3978 PyObject *o = PyInt_FromLong((long) (*arg1));
3979 resultobj = t_output_helper(resultobj,o);
3980 }
3981 {
3982 PyObject *o = PyInt_FromLong((long) (*arg2));
3983 resultobj = t_output_helper(resultobj,o);
3984 }
3985 return resultobj;
3986 fail:
3987 return NULL;
3988}
3989
3990
3991static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3992 PyObject *resultobj;
3993 wxSize result;
3994 char *kwnames[] = {
3995 NULL
3996 };
3997
3998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3999 {
4000 PyThreadState* __tstate = wxPyBeginAllowThreads();
4001 result = wxGetDisplaySizeMM();
4002
4003 wxPyEndAllowThreads(__tstate);
4004 if (PyErr_Occurred()) SWIG_fail;
4005 }
4006 {
4007 wxSize * resultptr;
4008 resultptr = new wxSize((wxSize &) result);
4009 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4010 }
4011 return resultobj;
4012 fail:
4013 return NULL;
4014}
4015
4016
4017static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4018 PyObject *resultobj;
4019 int *arg1 = (int *) 0 ;
4020 int *arg2 = (int *) 0 ;
4021 int *arg3 = (int *) 0 ;
4022 int *arg4 = (int *) 0 ;
4023 int temp1 ;
4024 int temp2 ;
4025 int temp3 ;
4026 int temp4 ;
4027 char *kwnames[] = {
4028 NULL
4029 };
4030
4031 arg1 = &temp1;
4032 arg2 = &temp2;
4033 arg3 = &temp3;
4034 arg4 = &temp4;
4035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4036 {
4037 PyThreadState* __tstate = wxPyBeginAllowThreads();
4038 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4039
4040 wxPyEndAllowThreads(__tstate);
4041 if (PyErr_Occurred()) SWIG_fail;
4042 }
4043 Py_INCREF(Py_None); resultobj = Py_None;
4044 {
4045 PyObject *o = PyInt_FromLong((long) (*arg1));
4046 resultobj = t_output_helper(resultobj,o);
4047 }
4048 {
4049 PyObject *o = PyInt_FromLong((long) (*arg2));
4050 resultobj = t_output_helper(resultobj,o);
4051 }
4052 {
4053 PyObject *o = PyInt_FromLong((long) (*arg3));
4054 resultobj = t_output_helper(resultobj,o);
4055 }
4056 {
4057 PyObject *o = PyInt_FromLong((long) (*arg4));
4058 resultobj = t_output_helper(resultobj,o);
4059 }
4060 return resultobj;
4061 fail:
4062 return NULL;
4063}
4064
4065
4066static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4067 PyObject *resultobj;
4068 wxRect result;
4069 char *kwnames[] = {
4070 NULL
4071 };
4072
4073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4074 {
4075 PyThreadState* __tstate = wxPyBeginAllowThreads();
4076 result = wxGetClientDisplayRect();
4077
4078 wxPyEndAllowThreads(__tstate);
4079 if (PyErr_Occurred()) SWIG_fail;
4080 }
4081 {
4082 wxRect * resultptr;
4083 resultptr = new wxRect((wxRect &) result);
4084 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4085 }
4086 return resultobj;
4087 fail:
4088 return NULL;
4089}
4090
4091
4092static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4093 PyObject *resultobj;
4094 wxCursor *arg1 = 0 ;
4095 PyObject * obj0 = 0 ;
4096 char *kwnames[] = {
4097 (char *) "cursor", NULL
4098 };
4099
4100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4102 SWIG_POINTER_EXCEPTION | 0)) == -1)
4103 SWIG_fail;
4104 if (arg1 == NULL) {
4105 PyErr_SetString(PyExc_TypeError,"null reference");
4106 SWIG_fail;
4107 }
4108 {
4109 PyThreadState* __tstate = wxPyBeginAllowThreads();
4110 wxSetCursor(*arg1);
4111
4112 wxPyEndAllowThreads(__tstate);
4113 if (PyErr_Occurred()) SWIG_fail;
4114 }
4115 Py_INCREF(Py_None); resultobj = Py_None;
4116 return resultobj;
4117 fail:
4118 return NULL;
4119}
4120
4121
4122static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4123 PyObject *resultobj;
4124 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4125 PyObject * obj0 = 0 ;
4126 char *kwnames[] = {
4127 (char *) "cursor", NULL
4128 };
4129
4130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4131 if (obj0) {
4132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4134 }
4135 {
4136 PyThreadState* __tstate = wxPyBeginAllowThreads();
4137 wxBeginBusyCursor(arg1);
4138
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 Py_INCREF(Py_None); resultobj = Py_None;
4143 return resultobj;
4144 fail:
4145 return NULL;
4146}
4147
4148
4149static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj;
4151 wxWindow *result;
4152 char *kwnames[] = {
4153 NULL
4154 };
4155
4156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
4159 result = (wxWindow *)wxGetActiveWindow();
4160
4161 wxPyEndAllowThreads(__tstate);
4162 if (PyErr_Occurred()) SWIG_fail;
4163 }
4164 {
4165 resultobj = wxPyMake_wxObject(result);
4166 }
4167 return resultobj;
4168 fail:
4169 return NULL;
4170}
4171
4172
4173static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4174 PyObject *resultobj;
4175 wxPoint *arg1 = 0 ;
4176 wxWindow *result;
4177 wxPoint temp1 ;
4178 PyObject * obj0 = 0 ;
4179 char *kwnames[] = {
4180 (char *) "pt", NULL
4181 };
4182
4183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4184 {
4185 arg1 = &temp1;
4186 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4187 }
4188 {
4189 PyThreadState* __tstate = wxPyBeginAllowThreads();
4190 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4191
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 {
4196 resultobj = wxPyMake_wxObject(result);
4197 }
4198 return resultobj;
4199 fail:
4200 return NULL;
4201}
4202
4203
4204static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4205 PyObject *resultobj;
4206 wxPoint *arg1 = 0 ;
4207 wxWindow *result;
4208 wxPoint temp1 ;
4209 PyObject * obj0 = 0 ;
4210 char *kwnames[] = {
4211 (char *) "pt", NULL
4212 };
4213
4214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4215 {
4216 arg1 = &temp1;
4217 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4218 }
4219 {
4220 PyThreadState* __tstate = wxPyBeginAllowThreads();
4221 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4222
4223 wxPyEndAllowThreads(__tstate);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
4226 {
4227 resultobj = wxPyMake_wxObject(result);
4228 }
4229 return resultobj;
4230 fail:
4231 return NULL;
4232}
4233
4234
4235static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj;
4237 wxWindow *arg1 = (wxWindow *) 0 ;
4238 wxWindow *result;
4239 PyObject * obj0 = 0 ;
4240 char *kwnames[] = {
4241 (char *) "win", NULL
4242 };
4243
4244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4247 {
4248 PyThreadState* __tstate = wxPyBeginAllowThreads();
4249 result = (wxWindow *)wxGetTopLevelParent(arg1);
4250
4251 wxPyEndAllowThreads(__tstate);
4252 if (PyErr_Occurred()) SWIG_fail;
4253 }
4254 {
4255 resultobj = wxPyMake_wxObject(result);
4256 }
4257 return resultobj;
4258 fail:
4259 return NULL;
4260}
4261
4262
4263static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4264 PyObject *resultobj;
4265 int arg1 ;
4266 bool result;
4267 PyObject * obj0 = 0 ;
4268 char *kwnames[] = {
4269 (char *) "key", NULL
4270 };
4271
4272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4273 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4274 if (PyErr_Occurred()) SWIG_fail;
4275 {
4276 PyThreadState* __tstate = wxPyBeginAllowThreads();
4277 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4278
4279 wxPyEndAllowThreads(__tstate);
4280 if (PyErr_Occurred()) SWIG_fail;
4281 }
4282 {
4283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4284 }
4285 return resultobj;
4286 fail:
4287 return NULL;
4288}
4289
4290
4291static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4292 PyObject *resultobj;
4293 char *kwnames[] = {
4294 NULL
4295 };
4296
4297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4298 {
4299 PyThreadState* __tstate = wxPyBeginAllowThreads();
4300 wxWakeUpMainThread();
4301
4302 wxPyEndAllowThreads(__tstate);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 Py_INCREF(Py_None); resultobj = Py_None;
4306 return resultobj;
4307 fail:
4308 return NULL;
4309}
4310
4311
4312static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4313 PyObject *resultobj;
4314 char *kwnames[] = {
4315 NULL
4316 };
4317
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4319 {
4320 PyThreadState* __tstate = wxPyBeginAllowThreads();
4321 wxMutexGuiEnter();
4322
4323 wxPyEndAllowThreads(__tstate);
4324 if (PyErr_Occurred()) SWIG_fail;
4325 }
4326 Py_INCREF(Py_None); resultobj = Py_None;
4327 return resultobj;
4328 fail:
4329 return NULL;
4330}
4331
4332
4333static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4334 PyObject *resultobj;
4335 char *kwnames[] = {
4336 NULL
4337 };
4338
4339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4340 {
4341 PyThreadState* __tstate = wxPyBeginAllowThreads();
4342 wxMutexGuiLeave();
4343
4344 wxPyEndAllowThreads(__tstate);
4345 if (PyErr_Occurred()) SWIG_fail;
4346 }
4347 Py_INCREF(Py_None); resultobj = Py_None;
4348 return resultobj;
4349 fail:
4350 return NULL;
4351}
4352
4353
4354static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4355 PyObject *resultobj;
4356 wxMutexGuiLocker *result;
4357 char *kwnames[] = {
4358 NULL
4359 };
4360
4361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4362 {
4363 PyThreadState* __tstate = wxPyBeginAllowThreads();
4364 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4365
4366 wxPyEndAllowThreads(__tstate);
4367 if (PyErr_Occurred()) SWIG_fail;
4368 }
4369 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4370 return resultobj;
4371 fail:
4372 return NULL;
4373}
4374
4375
4376static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4377 PyObject *resultobj;
4378 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4379 PyObject * obj0 = 0 ;
4380 char *kwnames[] = {
4381 (char *) "self", NULL
4382 };
4383
4384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4387 {
4388 PyThreadState* __tstate = wxPyBeginAllowThreads();
4389 delete arg1;
4390
4391 wxPyEndAllowThreads(__tstate);
4392 if (PyErr_Occurred()) SWIG_fail;
4393 }
4394 Py_INCREF(Py_None); resultobj = Py_None;
4395 return resultobj;
4396 fail:
4397 return NULL;
4398}
4399
4400
4401static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4402 PyObject *obj;
4403 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4404 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4405 Py_INCREF(obj);
4406 return Py_BuildValue((char *)"");
4407}
4408static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4409 PyObject *resultobj;
4410 bool result;
4411 char *kwnames[] = {
4412 NULL
4413 };
4414
4415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4416 {
4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
4418 result = (bool)wxThread_IsMain();
4419
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 {
4424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4425 }
4426 return resultobj;
4427 fail:
4428 return NULL;
4429}
4430
4431
4432static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4433 PyObject *resultobj;
4434 wxString *arg1 = 0 ;
4435 wxToolTip *result;
4436 bool temp1 = False ;
4437 PyObject * obj0 = 0 ;
4438 char *kwnames[] = {
4439 (char *) "tip", NULL
4440 };
4441
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4443 {
4444 arg1 = wxString_in_helper(obj0);
4445 if (arg1 == NULL) SWIG_fail;
4446 temp1 = True;
4447 }
4448 {
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4451
4452 wxPyEndAllowThreads(__tstate);
4453 if (PyErr_Occurred()) SWIG_fail;
4454 }
4455 {
4456 resultobj = wxPyMake_wxObject(result);
4457 }
4458 {
4459 if (temp1)
4460 delete arg1;
4461 }
4462 return resultobj;
4463 fail:
4464 {
4465 if (temp1)
4466 delete arg1;
4467 }
4468 return NULL;
4469}
4470
4471
4472static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4473 PyObject *resultobj;
4474 wxToolTip *arg1 = (wxToolTip *) 0 ;
4475 wxString *arg2 = 0 ;
4476 bool temp2 = False ;
4477 PyObject * obj0 = 0 ;
4478 PyObject * obj1 = 0 ;
4479 char *kwnames[] = {
4480 (char *) "self",(char *) "tip", NULL
4481 };
4482
4483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4486 {
4487 arg2 = wxString_in_helper(obj1);
4488 if (arg2 == NULL) SWIG_fail;
4489 temp2 = True;
4490 }
4491 {
4492 PyThreadState* __tstate = wxPyBeginAllowThreads();
4493 (arg1)->SetTip((wxString const &)*arg2);
4494
4495 wxPyEndAllowThreads(__tstate);
4496 if (PyErr_Occurred()) SWIG_fail;
4497 }
4498 Py_INCREF(Py_None); resultobj = Py_None;
4499 {
4500 if (temp2)
4501 delete arg2;
4502 }
4503 return resultobj;
4504 fail:
4505 {
4506 if (temp2)
4507 delete arg2;
4508 }
4509 return NULL;
4510}
4511
4512
4513static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj;
4515 wxToolTip *arg1 = (wxToolTip *) 0 ;
4516 wxString result;
4517 PyObject * obj0 = 0 ;
4518 char *kwnames[] = {
4519 (char *) "self", NULL
4520 };
4521
4522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 result = (arg1)->GetTip();
4528
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 {
4533#if wxUSE_UNICODE
4534 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4535#else
4536 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4537#endif
4538 }
4539 return resultobj;
4540 fail:
4541 return NULL;
4542}
4543
4544
4545static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4546 PyObject *resultobj;
4547 wxToolTip *arg1 = (wxToolTip *) 0 ;
4548 wxWindow *result;
4549 PyObject * obj0 = 0 ;
4550 char *kwnames[] = {
4551 (char *) "self", NULL
4552 };
4553
4554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4557 {
4558 PyThreadState* __tstate = wxPyBeginAllowThreads();
4559 result = (wxWindow *)(arg1)->GetWindow();
4560
4561 wxPyEndAllowThreads(__tstate);
4562 if (PyErr_Occurred()) SWIG_fail;
4563 }
4564 {
4565 resultobj = wxPyMake_wxObject(result);
4566 }
4567 return resultobj;
4568 fail:
4569 return NULL;
4570}
4571
4572
4573static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4574 PyObject *resultobj;
4575 bool arg1 ;
4576 PyObject * obj0 = 0 ;
4577 char *kwnames[] = {
4578 (char *) "flag", NULL
4579 };
4580
4581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4582 arg1 = (bool) SWIG_AsBool(obj0);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 {
4585 PyThreadState* __tstate = wxPyBeginAllowThreads();
4586 wxToolTip::Enable(arg1);
4587
4588 wxPyEndAllowThreads(__tstate);
4589 if (PyErr_Occurred()) SWIG_fail;
4590 }
4591 Py_INCREF(Py_None); resultobj = Py_None;
4592 return resultobj;
4593 fail:
4594 return NULL;
4595}
4596
4597
4598static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4599 PyObject *resultobj;
4600 long arg1 ;
4601 PyObject * obj0 = 0 ;
4602 char *kwnames[] = {
4603 (char *) "milliseconds", NULL
4604 };
4605
4606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4607 arg1 = (long) SWIG_AsLong(obj0);
4608 if (PyErr_Occurred()) SWIG_fail;
4609 {
4610 PyThreadState* __tstate = wxPyBeginAllowThreads();
4611 wxToolTip::SetDelay(arg1);
4612
4613 wxPyEndAllowThreads(__tstate);
4614 if (PyErr_Occurred()) SWIG_fail;
4615 }
4616 Py_INCREF(Py_None); resultobj = Py_None;
4617 return resultobj;
4618 fail:
4619 return NULL;
4620}
4621
4622
4623static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4624 PyObject *obj;
4625 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4626 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4627 Py_INCREF(obj);
4628 return Py_BuildValue((char *)"");
4629}
4630static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4631 PyObject *resultobj;
4632 wxWindow *arg1 = (wxWindow *) 0 ;
4633 wxSize *arg2 = 0 ;
4634 wxCaret *result;
4635 wxSize temp2 ;
4636 PyObject * obj0 = 0 ;
4637 PyObject * obj1 = 0 ;
4638 char *kwnames[] = {
4639 (char *) "window",(char *) "size", NULL
4640 };
4641
4642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4645 {
4646 arg2 = &temp2;
4647 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4648 }
4649 {
4650 PyThreadState* __tstate = wxPyBeginAllowThreads();
4651 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4652
4653 wxPyEndAllowThreads(__tstate);
4654 if (PyErr_Occurred()) SWIG_fail;
4655 }
4656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4657 return resultobj;
4658 fail:
4659 return NULL;
4660}
4661
4662
4663static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4664 PyObject *resultobj;
4665 wxCaret *arg1 = (wxCaret *) 0 ;
4666 PyObject * obj0 = 0 ;
4667 char *kwnames[] = {
4668 (char *) "self", NULL
4669 };
4670
4671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4674 {
4675 PyThreadState* __tstate = wxPyBeginAllowThreads();
4676 delete arg1;
4677
4678 wxPyEndAllowThreads(__tstate);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
4681 Py_INCREF(Py_None); resultobj = Py_None;
4682 return resultobj;
4683 fail:
4684 return NULL;
4685}
4686
4687
4688static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4689 PyObject *resultobj;
4690 wxCaret *arg1 = (wxCaret *) 0 ;
4691 bool result;
4692 PyObject * obj0 = 0 ;
4693 char *kwnames[] = {
4694 (char *) "self", NULL
4695 };
4696
4697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4700 {
4701 PyThreadState* __tstate = wxPyBeginAllowThreads();
4702 result = (bool)(arg1)->IsOk();
4703
4704 wxPyEndAllowThreads(__tstate);
4705 if (PyErr_Occurred()) SWIG_fail;
4706 }
4707 {
4708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4709 }
4710 return resultobj;
4711 fail:
4712 return NULL;
4713}
4714
4715
4716static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4717 PyObject *resultobj;
4718 wxCaret *arg1 = (wxCaret *) 0 ;
4719 bool result;
4720 PyObject * obj0 = 0 ;
4721 char *kwnames[] = {
4722 (char *) "self", NULL
4723 };
4724
4725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4728 {
4729 PyThreadState* __tstate = wxPyBeginAllowThreads();
4730 result = (bool)(arg1)->IsVisible();
4731
4732 wxPyEndAllowThreads(__tstate);
4733 if (PyErr_Occurred()) SWIG_fail;
4734 }
4735 {
4736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4737 }
4738 return resultobj;
4739 fail:
4740 return NULL;
4741}
4742
4743
4744static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4745 PyObject *resultobj;
4746 wxCaret *arg1 = (wxCaret *) 0 ;
4747 wxPoint result;
4748 PyObject * obj0 = 0 ;
4749 char *kwnames[] = {
4750 (char *) "self", NULL
4751 };
4752
4753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4756 {
4757 PyThreadState* __tstate = wxPyBeginAllowThreads();
4758 result = (arg1)->GetPosition();
4759
4760 wxPyEndAllowThreads(__tstate);
4761 if (PyErr_Occurred()) SWIG_fail;
4762 }
4763 {
4764 wxPoint * resultptr;
4765 resultptr = new wxPoint((wxPoint &) result);
4766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4767 }
4768 return resultobj;
4769 fail:
4770 return NULL;
4771}
4772
4773
4774static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj;
4776 wxCaret *arg1 = (wxCaret *) 0 ;
4777 int *arg2 = (int *) 0 ;
4778 int *arg3 = (int *) 0 ;
4779 int temp2 ;
4780 int temp3 ;
4781 PyObject * obj0 = 0 ;
4782 char *kwnames[] = {
4783 (char *) "self", NULL
4784 };
4785
4786 arg2 = &temp2;
4787 arg3 = &temp3;
4788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4791 {
4792 PyThreadState* __tstate = wxPyBeginAllowThreads();
4793 (arg1)->GetPosition(arg2,arg3);
4794
4795 wxPyEndAllowThreads(__tstate);
4796 if (PyErr_Occurred()) SWIG_fail;
4797 }
4798 Py_INCREF(Py_None); resultobj = Py_None;
4799 {
4800 PyObject *o = PyInt_FromLong((long) (*arg2));
4801 resultobj = t_output_helper(resultobj,o);
4802 }
4803 {
4804 PyObject *o = PyInt_FromLong((long) (*arg3));
4805 resultobj = t_output_helper(resultobj,o);
4806 }
4807 return resultobj;
4808 fail:
4809 return NULL;
4810}
4811
4812
4813static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4814 PyObject *resultobj;
4815 wxCaret *arg1 = (wxCaret *) 0 ;
4816 wxSize result;
4817 PyObject * obj0 = 0 ;
4818 char *kwnames[] = {
4819 (char *) "self", NULL
4820 };
4821
4822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4825 {
4826 PyThreadState* __tstate = wxPyBeginAllowThreads();
4827 result = (arg1)->GetSize();
4828
4829 wxPyEndAllowThreads(__tstate);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 {
4833 wxSize * resultptr;
4834 resultptr = new wxSize((wxSize &) result);
4835 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4836 }
4837 return resultobj;
4838 fail:
4839 return NULL;
4840}
4841
4842
4843static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4844 PyObject *resultobj;
4845 wxCaret *arg1 = (wxCaret *) 0 ;
4846 int *arg2 = (int *) 0 ;
4847 int *arg3 = (int *) 0 ;
4848 int temp2 ;
4849 int temp3 ;
4850 PyObject * obj0 = 0 ;
4851 char *kwnames[] = {
4852 (char *) "self", NULL
4853 };
4854
4855 arg2 = &temp2;
4856 arg3 = &temp3;
4857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4860 {
4861 PyThreadState* __tstate = wxPyBeginAllowThreads();
4862 (arg1)->GetSize(arg2,arg3);
4863
4864 wxPyEndAllowThreads(__tstate);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 Py_INCREF(Py_None); resultobj = Py_None;
4868 {
4869 PyObject *o = PyInt_FromLong((long) (*arg2));
4870 resultobj = t_output_helper(resultobj,o);
4871 }
4872 {
4873 PyObject *o = PyInt_FromLong((long) (*arg3));
4874 resultobj = t_output_helper(resultobj,o);
4875 }
4876 return resultobj;
4877 fail:
4878 return NULL;
4879}
4880
4881
4882static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4883 PyObject *resultobj;
4884 wxCaret *arg1 = (wxCaret *) 0 ;
4885 wxWindow *result;
4886 PyObject * obj0 = 0 ;
4887 char *kwnames[] = {
4888 (char *) "self", NULL
4889 };
4890
4891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4894 {
4895 PyThreadState* __tstate = wxPyBeginAllowThreads();
4896 result = (wxWindow *)(arg1)->GetWindow();
4897
4898 wxPyEndAllowThreads(__tstate);
4899 if (PyErr_Occurred()) SWIG_fail;
4900 }
4901 {
4902 resultobj = wxPyMake_wxObject(result);
4903 }
4904 return resultobj;
4905 fail:
4906 return NULL;
4907}
4908
4909
4910static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4911 PyObject *resultobj;
4912 wxCaret *arg1 = (wxCaret *) 0 ;
4913 int arg2 ;
4914 int arg3 ;
4915 PyObject * obj0 = 0 ;
4916 PyObject * obj1 = 0 ;
4917 PyObject * obj2 = 0 ;
4918 char *kwnames[] = {
4919 (char *) "self",(char *) "x",(char *) "y", NULL
4920 };
4921
4922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4925 arg2 = (int) SWIG_AsInt(obj1);
4926 if (PyErr_Occurred()) SWIG_fail;
4927 arg3 = (int) SWIG_AsInt(obj2);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 {
4930 PyThreadState* __tstate = wxPyBeginAllowThreads();
4931 (arg1)->Move(arg2,arg3);
4932
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 }
4936 Py_INCREF(Py_None); resultobj = Py_None;
4937 return resultobj;
4938 fail:
4939 return NULL;
4940}
4941
4942
4943static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4944 PyObject *resultobj;
4945 wxCaret *arg1 = (wxCaret *) 0 ;
4946 wxPoint *arg2 = 0 ;
4947 wxPoint temp2 ;
4948 PyObject * obj0 = 0 ;
4949 PyObject * obj1 = 0 ;
4950 char *kwnames[] = {
4951 (char *) "self",(char *) "pt", NULL
4952 };
4953
4954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4957 {
4958 arg2 = &temp2;
4959 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4960 }
4961 {
4962 PyThreadState* __tstate = wxPyBeginAllowThreads();
4963 (arg1)->Move((wxPoint const &)*arg2);
4964
4965 wxPyEndAllowThreads(__tstate);
4966 if (PyErr_Occurred()) SWIG_fail;
4967 }
4968 Py_INCREF(Py_None); resultobj = Py_None;
4969 return resultobj;
4970 fail:
4971 return NULL;
4972}
4973
4974
4975static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4976 PyObject *resultobj;
4977 wxCaret *arg1 = (wxCaret *) 0 ;
4978 int arg2 ;
4979 int arg3 ;
4980 PyObject * obj0 = 0 ;
4981 PyObject * obj1 = 0 ;
4982 PyObject * obj2 = 0 ;
4983 char *kwnames[] = {
4984 (char *) "self",(char *) "width",(char *) "height", NULL
4985 };
4986
4987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
4988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4990 arg2 = (int) SWIG_AsInt(obj1);
4991 if (PyErr_Occurred()) SWIG_fail;
4992 arg3 = (int) SWIG_AsInt(obj2);
4993 if (PyErr_Occurred()) SWIG_fail;
4994 {
4995 PyThreadState* __tstate = wxPyBeginAllowThreads();
4996 (arg1)->SetSize(arg2,arg3);
4997
4998 wxPyEndAllowThreads(__tstate);
4999 if (PyErr_Occurred()) SWIG_fail;
5000 }
5001 Py_INCREF(Py_None); resultobj = Py_None;
5002 return resultobj;
5003 fail:
5004 return NULL;
5005}
5006
5007
5008static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5009 PyObject *resultobj;
5010 wxCaret *arg1 = (wxCaret *) 0 ;
5011 wxSize *arg2 = 0 ;
5012 wxSize temp2 ;
5013 PyObject * obj0 = 0 ;
5014 PyObject * obj1 = 0 ;
5015 char *kwnames[] = {
5016 (char *) "self",(char *) "size", NULL
5017 };
5018
5019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5022 {
5023 arg2 = &temp2;
5024 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5025 }
5026 {
5027 PyThreadState* __tstate = wxPyBeginAllowThreads();
5028 (arg1)->SetSize((wxSize const &)*arg2);
5029
5030 wxPyEndAllowThreads(__tstate);
5031 if (PyErr_Occurred()) SWIG_fail;
5032 }
5033 Py_INCREF(Py_None); resultobj = Py_None;
5034 return resultobj;
5035 fail:
5036 return NULL;
5037}
5038
5039
5040static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5041 PyObject *resultobj;
5042 wxCaret *arg1 = (wxCaret *) 0 ;
5043 int arg2 = (int) True ;
5044 PyObject * obj0 = 0 ;
5045 PyObject * obj1 = 0 ;
5046 char *kwnames[] = {
5047 (char *) "self",(char *) "show", NULL
5048 };
5049
5050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5053 if (obj1) {
5054 arg2 = (int) SWIG_AsInt(obj1);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 {
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 (arg1)->Show(arg2);
5060
5061 wxPyEndAllowThreads(__tstate);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 }
5064 Py_INCREF(Py_None); resultobj = Py_None;
5065 return resultobj;
5066 fail:
5067 return NULL;
5068}
5069
5070
5071static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5072 PyObject *resultobj;
5073 wxCaret *arg1 = (wxCaret *) 0 ;
5074 PyObject * obj0 = 0 ;
5075 char *kwnames[] = {
5076 (char *) "self", NULL
5077 };
5078
5079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5082 {
5083 PyThreadState* __tstate = wxPyBeginAllowThreads();
5084 (arg1)->Hide();
5085
5086 wxPyEndAllowThreads(__tstate);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 }
5089 Py_INCREF(Py_None); resultobj = Py_None;
5090 return resultobj;
5091 fail:
5092 return NULL;
5093}
5094
5095
5096static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5097 PyObject *obj;
5098 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5099 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5100 Py_INCREF(obj);
5101 return Py_BuildValue((char *)"");
5102}
5103static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5104 PyObject *resultobj;
5105 int result;
5106 char *kwnames[] = {
5107 NULL
5108 };
5109
5110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5111 {
5112 PyThreadState* __tstate = wxPyBeginAllowThreads();
5113 result = (int)wxCaret_GetBlinkTime();
5114
5115 wxPyEndAllowThreads(__tstate);
5116 if (PyErr_Occurred()) SWIG_fail;
5117 }
5118 resultobj = SWIG_FromInt((int)result);
5119 return resultobj;
5120 fail:
5121 return NULL;
5122}
5123
5124
5125static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5126 PyObject *resultobj;
5127 int arg1 ;
5128 PyObject * obj0 = 0 ;
5129 char *kwnames[] = {
5130 (char *) "milliseconds", NULL
5131 };
5132
5133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5134 arg1 = (int) SWIG_AsInt(obj0);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 {
5137 PyThreadState* __tstate = wxPyBeginAllowThreads();
5138 wxCaret_SetBlinkTime(arg1);
5139
5140 wxPyEndAllowThreads(__tstate);
5141 if (PyErr_Occurred()) SWIG_fail;
5142 }
5143 Py_INCREF(Py_None); resultobj = Py_None;
5144 return resultobj;
5145 fail:
5146 return NULL;
5147}
5148
5149
5150static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5151 PyObject *resultobj;
5152 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5153 wxBusyCursor *result;
5154 PyObject * obj0 = 0 ;
5155 char *kwnames[] = {
5156 (char *) "cursor", NULL
5157 };
5158
5159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5160 if (obj0) {
5161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5163 }
5164 {
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5167
5168 wxPyEndAllowThreads(__tstate);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
5171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5172 return resultobj;
5173 fail:
5174 return NULL;
5175}
5176
5177
5178static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5179 PyObject *resultobj;
5180 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5181 PyObject * obj0 = 0 ;
5182 char *kwnames[] = {
5183 (char *) "self", NULL
5184 };
5185
5186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5189 {
5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
5191 delete arg1;
5192
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 Py_INCREF(Py_None); resultobj = Py_None;
5197 return resultobj;
5198 fail:
5199 return NULL;
5200}
5201
5202
5203static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5204 PyObject *obj;
5205 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5206 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5207 Py_INCREF(obj);
5208 return Py_BuildValue((char *)"");
5209}
5210static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5211 PyObject *resultobj;
5212 wxWindow *arg1 = (wxWindow *) NULL ;
5213 wxWindowDisabler *result;
5214 PyObject * obj0 = 0 ;
5215 char *kwnames[] = {
5216 (char *) "winToSkip", NULL
5217 };
5218
5219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5220 if (obj0) {
5221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5223 }
5224 {
5225 PyThreadState* __tstate = wxPyBeginAllowThreads();
5226 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5227
5228 wxPyEndAllowThreads(__tstate);
5229 if (PyErr_Occurred()) SWIG_fail;
5230 }
5231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5232 return resultobj;
5233 fail:
5234 return NULL;
5235}
5236
5237
5238static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5239 PyObject *resultobj;
5240 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5241 PyObject * obj0 = 0 ;
5242 char *kwnames[] = {
5243 (char *) "self", NULL
5244 };
5245
5246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 delete arg1;
5252
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) SWIG_fail;
5255 }
5256 Py_INCREF(Py_None); resultobj = Py_None;
5257 return resultobj;
5258 fail:
5259 return NULL;
5260}
5261
5262
5263static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5264 PyObject *obj;
5265 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5266 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5267 Py_INCREF(obj);
5268 return Py_BuildValue((char *)"");
5269}
5270static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5271 PyObject *resultobj;
5272 wxString *arg1 = 0 ;
5273 wxBusyInfo *result;
5274 bool temp1 = False ;
5275 PyObject * obj0 = 0 ;
5276 char *kwnames[] = {
5277 (char *) "message", NULL
5278 };
5279
5280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5281 {
5282 arg1 = wxString_in_helper(obj0);
5283 if (arg1 == NULL) SWIG_fail;
5284 temp1 = True;
5285 }
5286 {
5287 PyThreadState* __tstate = wxPyBeginAllowThreads();
5288 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5289
5290 wxPyEndAllowThreads(__tstate);
5291 if (PyErr_Occurred()) SWIG_fail;
5292 }
5293 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5294 {
5295 if (temp1)
5296 delete arg1;
5297 }
5298 return resultobj;
5299 fail:
5300 {
5301 if (temp1)
5302 delete arg1;
5303 }
5304 return NULL;
5305}
5306
5307
5308static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5309 PyObject *resultobj;
5310 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5311 PyObject * obj0 = 0 ;
5312 char *kwnames[] = {
5313 (char *) "self", NULL
5314 };
5315
5316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5319 {
5320 PyThreadState* __tstate = wxPyBeginAllowThreads();
5321 delete arg1;
5322
5323 wxPyEndAllowThreads(__tstate);
5324 if (PyErr_Occurred()) SWIG_fail;
5325 }
5326 Py_INCREF(Py_None); resultobj = Py_None;
5327 return resultobj;
5328 fail:
5329 return NULL;
5330}
5331
5332
5333static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5334 PyObject *obj;
5335 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5336 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5337 Py_INCREF(obj);
5338 return Py_BuildValue((char *)"");
5339}
5340static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5341 PyObject *resultobj;
5342 wxStopWatch *result;
5343 char *kwnames[] = {
5344 NULL
5345 };
5346
5347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5348 {
5349 PyThreadState* __tstate = wxPyBeginAllowThreads();
5350 result = (wxStopWatch *)new wxStopWatch();
5351
5352 wxPyEndAllowThreads(__tstate);
5353 if (PyErr_Occurred()) SWIG_fail;
5354 }
5355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5356 return resultobj;
5357 fail:
5358 return NULL;
5359}
5360
5361
5362static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5363 PyObject *resultobj;
5364 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5365 long arg2 = (long) 0 ;
5366 PyObject * obj0 = 0 ;
5367 PyObject * obj1 = 0 ;
5368 char *kwnames[] = {
5369 (char *) "self",(char *) "t0", NULL
5370 };
5371
5372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5375 if (obj1) {
5376 arg2 = (long) SWIG_AsLong(obj1);
5377 if (PyErr_Occurred()) SWIG_fail;
5378 }
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 (arg1)->Start(arg2);
5382
5383 wxPyEndAllowThreads(__tstate);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 }
5386 Py_INCREF(Py_None); resultobj = Py_None;
5387 return resultobj;
5388 fail:
5389 return NULL;
5390}
5391
5392
5393static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5394 PyObject *resultobj;
5395 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5396 PyObject * obj0 = 0 ;
5397 char *kwnames[] = {
5398 (char *) "self", NULL
5399 };
5400
5401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5404 {
5405 PyThreadState* __tstate = wxPyBeginAllowThreads();
5406 (arg1)->Pause();
5407
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 Py_INCREF(Py_None); resultobj = Py_None;
5412 return resultobj;
5413 fail:
5414 return NULL;
5415}
5416
5417
5418static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj;
5420 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5421 PyObject * obj0 = 0 ;
5422 char *kwnames[] = {
5423 (char *) "self", NULL
5424 };
5425
5426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5429 {
5430 PyThreadState* __tstate = wxPyBeginAllowThreads();
5431 (arg1)->Resume();
5432
5433 wxPyEndAllowThreads(__tstate);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 }
5436 Py_INCREF(Py_None); resultobj = Py_None;
5437 return resultobj;
5438 fail:
5439 return NULL;
5440}
5441
5442
5443static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5444 PyObject *resultobj;
5445 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5446 long result;
5447 PyObject * obj0 = 0 ;
5448 char *kwnames[] = {
5449 (char *) "self", NULL
5450 };
5451
5452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5455 {
5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
5457 result = (long)((wxStopWatch const *)arg1)->Time();
5458
5459 wxPyEndAllowThreads(__tstate);
5460 if (PyErr_Occurred()) SWIG_fail;
5461 }
5462 resultobj = SWIG_FromLong((long)result);
5463 return resultobj;
5464 fail:
5465 return NULL;
5466}
5467
5468
5469static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5470 PyObject *obj;
5471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5472 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5473 Py_INCREF(obj);
5474 return Py_BuildValue((char *)"");
5475}
5476static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj;
5478 int arg1 = (int) 9 ;
5479 wxFileHistory *result;
5480 PyObject * obj0 = 0 ;
5481 char *kwnames[] = {
5482 (char *) "maxFiles", NULL
5483 };
5484
5485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5486 if (obj0) {
5487 arg1 = (int) SWIG_AsInt(obj0);
5488 if (PyErr_Occurred()) SWIG_fail;
5489 }
5490 {
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 result = (wxFileHistory *)new wxFileHistory(arg1);
5493
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5498 return resultobj;
5499 fail:
5500 return NULL;
5501}
5502
5503
5504static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5505 PyObject *resultobj;
5506 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5507 PyObject * obj0 = 0 ;
5508 char *kwnames[] = {
5509 (char *) "self", NULL
5510 };
5511
5512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5515 {
5516 PyThreadState* __tstate = wxPyBeginAllowThreads();
5517 delete arg1;
5518
5519 wxPyEndAllowThreads(__tstate);
5520 if (PyErr_Occurred()) SWIG_fail;
5521 }
5522 Py_INCREF(Py_None); resultobj = Py_None;
5523 return resultobj;
5524 fail:
5525 return NULL;
5526}
5527
5528
5529static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj;
5531 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5532 wxString *arg2 = 0 ;
5533 bool temp2 = False ;
5534 PyObject * obj0 = 0 ;
5535 PyObject * obj1 = 0 ;
5536 char *kwnames[] = {
5537 (char *) "self",(char *) "file", NULL
5538 };
5539
5540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5543 {
5544 arg2 = wxString_in_helper(obj1);
5545 if (arg2 == NULL) SWIG_fail;
5546 temp2 = True;
5547 }
5548 {
5549 PyThreadState* __tstate = wxPyBeginAllowThreads();
5550 (arg1)->AddFileToHistory((wxString const &)*arg2);
5551
5552 wxPyEndAllowThreads(__tstate);
5553 if (PyErr_Occurred()) SWIG_fail;
5554 }
5555 Py_INCREF(Py_None); resultobj = Py_None;
5556 {
5557 if (temp2)
5558 delete arg2;
5559 }
5560 return resultobj;
5561 fail:
5562 {
5563 if (temp2)
5564 delete arg2;
5565 }
5566 return NULL;
5567}
5568
5569
5570static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5571 PyObject *resultobj;
5572 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5573 int arg2 ;
5574 PyObject * obj0 = 0 ;
5575 PyObject * obj1 = 0 ;
5576 char *kwnames[] = {
5577 (char *) "self",(char *) "i", NULL
5578 };
5579
5580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5583 arg2 = (int) SWIG_AsInt(obj1);
5584 if (PyErr_Occurred()) SWIG_fail;
5585 {
5586 PyThreadState* __tstate = wxPyBeginAllowThreads();
5587 (arg1)->RemoveFileFromHistory(arg2);
5588
5589 wxPyEndAllowThreads(__tstate);
5590 if (PyErr_Occurred()) SWIG_fail;
5591 }
5592 Py_INCREF(Py_None); resultobj = Py_None;
5593 return resultobj;
5594 fail:
5595 return NULL;
5596}
5597
5598
5599static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5600 PyObject *resultobj;
5601 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5602 int result;
5603 PyObject * obj0 = 0 ;
5604 char *kwnames[] = {
5605 (char *) "self", NULL
5606 };
5607
5608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5611 {
5612 PyThreadState* __tstate = wxPyBeginAllowThreads();
5613 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5614
5615 wxPyEndAllowThreads(__tstate);
5616 if (PyErr_Occurred()) SWIG_fail;
5617 }
5618 resultobj = SWIG_FromInt((int)result);
5619 return resultobj;
5620 fail:
5621 return NULL;
5622}
5623
5624
5625static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj;
5627 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5628 wxMenu *arg2 = (wxMenu *) 0 ;
5629 PyObject * obj0 = 0 ;
5630 PyObject * obj1 = 0 ;
5631 char *kwnames[] = {
5632 (char *) "self",(char *) "menu", NULL
5633 };
5634
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5640 {
5641 PyThreadState* __tstate = wxPyBeginAllowThreads();
5642 (arg1)->UseMenu(arg2);
5643
5644 wxPyEndAllowThreads(__tstate);
5645 if (PyErr_Occurred()) SWIG_fail;
5646 }
5647 Py_INCREF(Py_None); resultobj = Py_None;
5648 return resultobj;
5649 fail:
5650 return NULL;
5651}
5652
5653
5654static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5655 PyObject *resultobj;
5656 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5657 wxMenu *arg2 = (wxMenu *) 0 ;
5658 PyObject * obj0 = 0 ;
5659 PyObject * obj1 = 0 ;
5660 char *kwnames[] = {
5661 (char *) "self",(char *) "menu", NULL
5662 };
5663
5664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5667 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5669 {
5670 PyThreadState* __tstate = wxPyBeginAllowThreads();
5671 (arg1)->RemoveMenu(arg2);
5672
5673 wxPyEndAllowThreads(__tstate);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
5676 Py_INCREF(Py_None); resultobj = Py_None;
5677 return resultobj;
5678 fail:
5679 return NULL;
5680}
5681
5682
5683static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5684 PyObject *resultobj;
5685 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5686 wxConfigBase *arg2 = 0 ;
5687 PyObject * obj0 = 0 ;
5688 PyObject * obj1 = 0 ;
5689 char *kwnames[] = {
5690 (char *) "self",(char *) "config", NULL
5691 };
5692
5693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5696 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5697 SWIG_POINTER_EXCEPTION | 0)) == -1)
5698 SWIG_fail;
5699 if (arg2 == NULL) {
5700 PyErr_SetString(PyExc_TypeError,"null reference");
5701 SWIG_fail;
5702 }
5703 {
5704 PyThreadState* __tstate = wxPyBeginAllowThreads();
5705 (arg1)->Load(*arg2);
5706
5707 wxPyEndAllowThreads(__tstate);
5708 if (PyErr_Occurred()) SWIG_fail;
5709 }
5710 Py_INCREF(Py_None); resultobj = Py_None;
5711 return resultobj;
5712 fail:
5713 return NULL;
5714}
5715
5716
5717static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5718 PyObject *resultobj;
5719 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5720 wxConfigBase *arg2 = 0 ;
5721 PyObject * obj0 = 0 ;
5722 PyObject * obj1 = 0 ;
5723 char *kwnames[] = {
5724 (char *) "self",(char *) "config", NULL
5725 };
5726
5727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5731 SWIG_POINTER_EXCEPTION | 0)) == -1)
5732 SWIG_fail;
5733 if (arg2 == NULL) {
5734 PyErr_SetString(PyExc_TypeError,"null reference");
5735 SWIG_fail;
5736 }
5737 {
5738 PyThreadState* __tstate = wxPyBeginAllowThreads();
5739 (arg1)->Save(*arg2);
5740
5741 wxPyEndAllowThreads(__tstate);
5742 if (PyErr_Occurred()) SWIG_fail;
5743 }
5744 Py_INCREF(Py_None); resultobj = Py_None;
5745 return resultobj;
5746 fail:
5747 return NULL;
5748}
5749
5750
5751static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5752 PyObject *resultobj;
5753 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5754 PyObject * obj0 = 0 ;
5755 char *kwnames[] = {
5756 (char *) "self", NULL
5757 };
5758
5759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5762 {
5763 PyThreadState* __tstate = wxPyBeginAllowThreads();
5764 (arg1)->AddFilesToMenu();
5765
5766 wxPyEndAllowThreads(__tstate);
5767 if (PyErr_Occurred()) SWIG_fail;
5768 }
5769 Py_INCREF(Py_None); resultobj = Py_None;
5770 return resultobj;
5771 fail:
5772 return NULL;
5773}
5774
5775
5776static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5777 PyObject *resultobj;
5778 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5779 wxMenu *arg2 = (wxMenu *) 0 ;
5780 PyObject * obj0 = 0 ;
5781 PyObject * obj1 = 0 ;
5782 char *kwnames[] = {
5783 (char *) "self",(char *) "menu", NULL
5784 };
5785
5786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5789 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5791 {
5792 PyThreadState* __tstate = wxPyBeginAllowThreads();
5793 (arg1)->AddFilesToMenu(arg2);
5794
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) SWIG_fail;
5797 }
5798 Py_INCREF(Py_None); resultobj = Py_None;
5799 return resultobj;
5800 fail:
5801 return NULL;
5802}
5803
5804
5805static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5806 PyObject *resultobj;
5807 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5808 int arg2 ;
5809 wxString result;
5810 PyObject * obj0 = 0 ;
5811 PyObject * obj1 = 0 ;
5812 char *kwnames[] = {
5813 (char *) "self",(char *) "i", NULL
5814 };
5815
5816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5819 arg2 = (int) SWIG_AsInt(obj1);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 {
5822 PyThreadState* __tstate = wxPyBeginAllowThreads();
5823 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5824
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 {
5829#if wxUSE_UNICODE
5830 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5831#else
5832 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5833#endif
5834 }
5835 return resultobj;
5836 fail:
5837 return NULL;
5838}
5839
5840
5841static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5842 PyObject *resultobj;
5843 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5844 int result;
5845 PyObject * obj0 = 0 ;
5846 char *kwnames[] = {
5847 (char *) "self", NULL
5848 };
5849
5850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 result = (int)((wxFileHistory const *)arg1)->GetCount();
5856
5857 wxPyEndAllowThreads(__tstate);
5858 if (PyErr_Occurred()) SWIG_fail;
5859 }
5860 resultobj = SWIG_FromInt((int)result);
5861 return resultobj;
5862 fail:
5863 return NULL;
5864}
5865
5866
5867static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5868 PyObject *obj;
5869 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5870 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5871 Py_INCREF(obj);
5872 return Py_BuildValue((char *)"");
5873}
5874static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5875 PyObject *resultobj;
5876 wxString *arg1 = 0 ;
5877 wxString const &arg2_defvalue = wxPyEmptyString ;
5878 wxString *arg2 = (wxString *) &arg2_defvalue ;
5879 wxSingleInstanceChecker *result;
5880 bool temp1 = False ;
5881 bool temp2 = False ;
5882 PyObject * obj0 = 0 ;
5883 PyObject * obj1 = 0 ;
5884 char *kwnames[] = {
5885 (char *) "name",(char *) "path", NULL
5886 };
5887
5888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5889 {
5890 arg1 = wxString_in_helper(obj0);
5891 if (arg1 == NULL) SWIG_fail;
5892 temp1 = True;
5893 }
5894 if (obj1) {
5895 {
5896 arg2 = wxString_in_helper(obj1);
5897 if (arg2 == NULL) SWIG_fail;
5898 temp2 = True;
5899 }
5900 }
5901 {
5902 PyThreadState* __tstate = wxPyBeginAllowThreads();
5903 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5904
5905 wxPyEndAllowThreads(__tstate);
5906 if (PyErr_Occurred()) SWIG_fail;
5907 }
5908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5909 {
5910 if (temp1)
5911 delete arg1;
5912 }
5913 {
5914 if (temp2)
5915 delete arg2;
5916 }
5917 return resultobj;
5918 fail:
5919 {
5920 if (temp1)
5921 delete arg1;
5922 }
5923 {
5924 if (temp2)
5925 delete arg2;
5926 }
5927 return NULL;
5928}
5929
5930
5931static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5932 PyObject *resultobj;
5933 wxSingleInstanceChecker *result;
5934 char *kwnames[] = {
5935 NULL
5936 };
5937
5938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5939 {
5940 PyThreadState* __tstate = wxPyBeginAllowThreads();
5941 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5942
5943 wxPyEndAllowThreads(__tstate);
5944 if (PyErr_Occurred()) SWIG_fail;
5945 }
5946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5947 return resultobj;
5948 fail:
5949 return NULL;
5950}
5951
5952
5953static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5954 PyObject *resultobj;
5955 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5956 PyObject * obj0 = 0 ;
5957 char *kwnames[] = {
5958 (char *) "self", NULL
5959 };
5960
5961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5964 {
5965 PyThreadState* __tstate = wxPyBeginAllowThreads();
5966 delete arg1;
5967
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) SWIG_fail;
5970 }
5971 Py_INCREF(Py_None); resultobj = Py_None;
5972 return resultobj;
5973 fail:
5974 return NULL;
5975}
5976
5977
5978static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5979 PyObject *resultobj;
5980 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5981 wxString *arg2 = 0 ;
5982 wxString const &arg3_defvalue = wxPyEmptyString ;
5983 wxString *arg3 = (wxString *) &arg3_defvalue ;
5984 bool result;
5985 bool temp2 = False ;
5986 bool temp3 = False ;
5987 PyObject * obj0 = 0 ;
5988 PyObject * obj1 = 0 ;
5989 PyObject * obj2 = 0 ;
5990 char *kwnames[] = {
5991 (char *) "self",(char *) "name",(char *) "path", NULL
5992 };
5993
5994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5997 {
5998 arg2 = wxString_in_helper(obj1);
5999 if (arg2 == NULL) SWIG_fail;
6000 temp2 = True;
6001 }
6002 if (obj2) {
6003 {
6004 arg3 = wxString_in_helper(obj2);
6005 if (arg3 == NULL) SWIG_fail;
6006 temp3 = True;
6007 }
6008 }
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6012
6013 wxPyEndAllowThreads(__tstate);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 {
6017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6018 }
6019 {
6020 if (temp2)
6021 delete arg2;
6022 }
6023 {
6024 if (temp3)
6025 delete arg3;
6026 }
6027 return resultobj;
6028 fail:
6029 {
6030 if (temp2)
6031 delete arg2;
6032 }
6033 {
6034 if (temp3)
6035 delete arg3;
6036 }
6037 return NULL;
6038}
6039
6040
6041static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6042 PyObject *resultobj;
6043 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6044 bool result;
6045 PyObject * obj0 = 0 ;
6046 char *kwnames[] = {
6047 (char *) "self", NULL
6048 };
6049
6050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6053 {
6054 PyThreadState* __tstate = wxPyBeginAllowThreads();
6055 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6056
6057 wxPyEndAllowThreads(__tstate);
6058 if (PyErr_Occurred()) SWIG_fail;
6059 }
6060 {
6061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6062 }
6063 return resultobj;
6064 fail:
6065 return NULL;
6066}
6067
6068
6069static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6070 PyObject *obj;
6071 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6072 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6073 Py_INCREF(obj);
6074 return Py_BuildValue((char *)"");
6075}
6076static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6077 PyObject *resultobj;
6078 wxWindow *arg1 = (wxWindow *) 0 ;
6079 wxDC *arg2 = 0 ;
6080 int arg3 ;
6081 PyObject * obj0 = 0 ;
6082 PyObject * obj1 = 0 ;
6083 PyObject * obj2 = 0 ;
6084 char *kwnames[] = {
6085 (char *) "window",(char *) "dc",(char *) "method", NULL
6086 };
6087
6088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6091 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6092 SWIG_POINTER_EXCEPTION | 0)) == -1)
6093 SWIG_fail;
6094 if (arg2 == NULL) {
6095 PyErr_SetString(PyExc_TypeError,"null reference");
6096 SWIG_fail;
6097 }
6098 arg3 = (int) SWIG_AsInt(obj2);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 {
6101 PyThreadState* __tstate = wxPyBeginAllowThreads();
6102 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6103
6104 wxPyEndAllowThreads(__tstate);
6105 if (PyErr_Occurred()) SWIG_fail;
6106 }
6107 Py_INCREF(Py_None); resultobj = Py_None;
6108 return resultobj;
6109 fail:
6110 return NULL;
6111}
6112
6113
6114static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject *resultobj;
6116 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6117 PyObject * obj0 = 0 ;
6118 char *kwnames[] = {
6119 (char *) "self", NULL
6120 };
6121
6122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6125 {
6126 PyThreadState* __tstate = wxPyBeginAllowThreads();
6127 delete arg1;
6128
6129 wxPyEndAllowThreads(__tstate);
6130 if (PyErr_Occurred()) SWIG_fail;
6131 }
6132 Py_INCREF(Py_None); resultobj = Py_None;
6133 return resultobj;
6134 fail:
6135 return NULL;
6136}
6137
6138
6139static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6140 PyObject *resultobj;
6141 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6142 wxString result;
6143 PyObject * obj0 = 0 ;
6144 char *kwnames[] = {
6145 (char *) "self", NULL
6146 };
6147
6148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6151 {
6152 PyThreadState* __tstate = wxPyBeginAllowThreads();
6153 result = (arg1)->GetTip();
6154
6155 wxPyEndAllowThreads(__tstate);
6156 if (PyErr_Occurred()) SWIG_fail;
6157 }
6158 {
6159#if wxUSE_UNICODE
6160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6161#else
6162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6163#endif
6164 }
6165 return resultobj;
6166 fail:
6167 return NULL;
6168}
6169
6170
6171static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6172 PyObject *resultobj;
6173 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6174 size_t result;
6175 PyObject * obj0 = 0 ;
6176 char *kwnames[] = {
6177 (char *) "self", NULL
6178 };
6179
6180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6183 {
6184 PyThreadState* __tstate = wxPyBeginAllowThreads();
6185 result = (size_t)(arg1)->GetCurrentTip();
6186
6187 wxPyEndAllowThreads(__tstate);
6188 if (PyErr_Occurred()) SWIG_fail;
6189 }
6190 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6191 return resultobj;
6192 fail:
6193 return NULL;
6194}
6195
6196
6197static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6198 PyObject *resultobj;
6199 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6200 wxString *arg2 = 0 ;
6201 wxString result;
6202 bool temp2 = False ;
6203 PyObject * obj0 = 0 ;
6204 PyObject * obj1 = 0 ;
6205 char *kwnames[] = {
6206 (char *) "self",(char *) "tip", NULL
6207 };
6208
6209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6212 {
6213 arg2 = wxString_in_helper(obj1);
6214 if (arg2 == NULL) SWIG_fail;
6215 temp2 = True;
6216 }
6217 {
6218 PyThreadState* __tstate = wxPyBeginAllowThreads();
6219 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6220
6221 wxPyEndAllowThreads(__tstate);
6222 if (PyErr_Occurred()) SWIG_fail;
6223 }
6224 {
6225#if wxUSE_UNICODE
6226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6227#else
6228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6229#endif
6230 }
6231 {
6232 if (temp2)
6233 delete arg2;
6234 }
6235 return resultobj;
6236 fail:
6237 {
6238 if (temp2)
6239 delete arg2;
6240 }
6241 return NULL;
6242}
6243
6244
6245static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6246 PyObject *obj;
6247 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6248 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6249 Py_INCREF(obj);
6250 return Py_BuildValue((char *)"");
6251}
6252static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6253 PyObject *resultobj;
6254 size_t arg1 ;
6255 wxPyTipProvider *result;
6256 PyObject * obj0 = 0 ;
6257 char *kwnames[] = {
6258 (char *) "currentTip", NULL
6259 };
6260
6261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6262 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6263 if (PyErr_Occurred()) SWIG_fail;
6264 {
6265 PyThreadState* __tstate = wxPyBeginAllowThreads();
6266 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6267
6268 wxPyEndAllowThreads(__tstate);
6269 if (PyErr_Occurred()) SWIG_fail;
6270 }
6271 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6272 return resultobj;
6273 fail:
6274 return NULL;
6275}
6276
6277
6278static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6279 PyObject *resultobj;
6280 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6281 PyObject *arg2 = (PyObject *) 0 ;
6282 PyObject *arg3 = (PyObject *) 0 ;
6283 PyObject * obj0 = 0 ;
6284 PyObject * obj1 = 0 ;
6285 PyObject * obj2 = 0 ;
6286 char *kwnames[] = {
6287 (char *) "self",(char *) "self",(char *) "_class", NULL
6288 };
6289
6290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6293 arg2 = obj1;
6294 arg3 = obj2;
6295 {
6296 PyThreadState* __tstate = wxPyBeginAllowThreads();
6297 (arg1)->_setCallbackInfo(arg2,arg3);
6298
6299 wxPyEndAllowThreads(__tstate);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 Py_INCREF(Py_None); resultobj = Py_None;
6303 return resultobj;
6304 fail:
6305 return NULL;
6306}
6307
6308
6309static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6310 PyObject *obj;
6311 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6312 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6313 Py_INCREF(obj);
6314 return Py_BuildValue((char *)"");
6315}
6316static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj;
6318 wxWindow *arg1 = (wxWindow *) 0 ;
6319 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6320 bool arg3 = (bool) True ;
6321 bool result;
6322 PyObject * obj0 = 0 ;
6323 PyObject * obj1 = 0 ;
6324 PyObject * obj2 = 0 ;
6325 char *kwnames[] = {
6326 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6327 };
6328
6329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6332 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6334 if (obj2) {
6335 arg3 = (bool) SWIG_AsBool(obj2);
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 {
6339 PyThreadState* __tstate = wxPyBeginAllowThreads();
6340 result = (bool)wxShowTip(arg1,arg2,arg3);
6341
6342 wxPyEndAllowThreads(__tstate);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 }
6345 {
6346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6347 }
6348 return resultobj;
6349 fail:
6350 return NULL;
6351}
6352
6353
6354static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj;
6356 wxString *arg1 = 0 ;
6357 size_t arg2 ;
6358 wxTipProvider *result;
6359 bool temp1 = False ;
6360 PyObject * obj0 = 0 ;
6361 PyObject * obj1 = 0 ;
6362 char *kwnames[] = {
6363 (char *) "filename",(char *) "currentTip", NULL
6364 };
6365
6366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6367 {
6368 arg1 = wxString_in_helper(obj0);
6369 if (arg1 == NULL) SWIG_fail;
6370 temp1 = True;
6371 }
6372 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6377
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6382 {
6383 if (temp1)
6384 delete arg1;
6385 }
6386 return resultobj;
6387 fail:
6388 {
6389 if (temp1)
6390 delete arg1;
6391 }
6392 return NULL;
6393}
6394
6395
6396static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6397 PyObject *resultobj;
6398 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6399 int arg2 = (int) -1 ;
6400 wxPyTimer *result;
6401 PyObject * obj0 = 0 ;
6402 PyObject * obj1 = 0 ;
6403 char *kwnames[] = {
6404 (char *) "owner",(char *) "id", NULL
6405 };
6406
6407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6408 if (obj0) {
6409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6411 }
6412 if (obj1) {
6413 arg2 = (int) SWIG_AsInt(obj1);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 {
6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
6418 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6419
6420 wxPyEndAllowThreads(__tstate);
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6424 return resultobj;
6425 fail:
6426 return NULL;
6427}
6428
6429
6430static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6431 PyObject *resultobj;
6432 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6433 PyObject * obj0 = 0 ;
6434 char *kwnames[] = {
6435 (char *) "self", NULL
6436 };
6437
6438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6441 {
6442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6443 delete arg1;
6444
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 Py_INCREF(Py_None); resultobj = Py_None;
6449 return resultobj;
6450 fail:
6451 return NULL;
6452}
6453
6454
6455static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj;
6457 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6458 PyObject *arg2 = (PyObject *) 0 ;
6459 PyObject *arg3 = (PyObject *) 0 ;
6460 int arg4 = (int) 1 ;
6461 PyObject * obj0 = 0 ;
6462 PyObject * obj1 = 0 ;
6463 PyObject * obj2 = 0 ;
6464 PyObject * obj3 = 0 ;
6465 char *kwnames[] = {
6466 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6467 };
6468
6469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6472 arg2 = obj1;
6473 arg3 = obj2;
6474 if (obj3) {
6475 arg4 = (int) SWIG_AsInt(obj3);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 {
6479 PyThreadState* __tstate = wxPyBeginAllowThreads();
6480 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6481
6482 wxPyEndAllowThreads(__tstate);
6483 if (PyErr_Occurred()) SWIG_fail;
6484 }
6485 Py_INCREF(Py_None); resultobj = Py_None;
6486 return resultobj;
6487 fail:
6488 return NULL;
6489}
6490
6491
6492static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6493 PyObject *resultobj;
6494 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6495 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6496 int arg3 = (int) -1 ;
6497 PyObject * obj0 = 0 ;
6498 PyObject * obj1 = 0 ;
6499 PyObject * obj2 = 0 ;
6500 char *kwnames[] = {
6501 (char *) "self",(char *) "owner",(char *) "id", NULL
6502 };
6503
6504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6507 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6509 if (obj2) {
6510 arg3 = (int) SWIG_AsInt(obj2);
6511 if (PyErr_Occurred()) SWIG_fail;
6512 }
6513 {
6514 PyThreadState* __tstate = wxPyBeginAllowThreads();
6515 (arg1)->SetOwner(arg2,arg3);
6516
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 Py_INCREF(Py_None); resultobj = Py_None;
6521 return resultobj;
6522 fail:
6523 return NULL;
6524}
6525
6526
1a6bba1e
RD
6527static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6528 PyObject *resultobj;
6529 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6530 wxEvtHandler *result;
6531 PyObject * obj0 = 0 ;
6532 char *kwnames[] = {
6533 (char *) "self", NULL
6534 };
6535
6536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6539 {
6540 PyThreadState* __tstate = wxPyBeginAllowThreads();
6541 result = (wxEvtHandler *)(arg1)->GetOwner();
6542
6543 wxPyEndAllowThreads(__tstate);
6544 if (PyErr_Occurred()) SWIG_fail;
6545 }
6546 {
6547 resultobj = wxPyMake_wxObject(result);
6548 }
6549 return resultobj;
6550 fail:
6551 return NULL;
6552}
6553
6554
d55e5bfc
RD
6555static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6556 PyObject *resultobj;
6557 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6558 int arg2 = (int) -1 ;
6559 bool arg3 = (bool) False ;
6560 bool result;
6561 PyObject * obj0 = 0 ;
6562 PyObject * obj1 = 0 ;
6563 PyObject * obj2 = 0 ;
6564 char *kwnames[] = {
6565 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6566 };
6567
6568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6571 if (obj1) {
6572 arg2 = (int) SWIG_AsInt(obj1);
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 if (obj2) {
6576 arg3 = (bool) SWIG_AsBool(obj2);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 {
6580 PyThreadState* __tstate = wxPyBeginAllowThreads();
6581 result = (bool)(arg1)->Start(arg2,arg3);
6582
6583 wxPyEndAllowThreads(__tstate);
6584 if (PyErr_Occurred()) SWIG_fail;
6585 }
6586 {
6587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6588 }
6589 return resultobj;
6590 fail:
6591 return NULL;
6592}
6593
6594
6595static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6596 PyObject *resultobj;
6597 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6598 PyObject * obj0 = 0 ;
6599 char *kwnames[] = {
6600 (char *) "self", NULL
6601 };
6602
6603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6606 {
6607 PyThreadState* __tstate = wxPyBeginAllowThreads();
6608 (arg1)->Stop();
6609
6610 wxPyEndAllowThreads(__tstate);
6611 if (PyErr_Occurred()) SWIG_fail;
6612 }
6613 Py_INCREF(Py_None); resultobj = Py_None;
6614 return resultobj;
6615 fail:
6616 return NULL;
6617}
6618
6619
6620static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6621 PyObject *resultobj;
6622 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6623 bool result;
6624 PyObject * obj0 = 0 ;
6625 char *kwnames[] = {
6626 (char *) "self", NULL
6627 };
6628
6629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6632 {
6633 PyThreadState* __tstate = wxPyBeginAllowThreads();
6634 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6635
6636 wxPyEndAllowThreads(__tstate);
6637 if (PyErr_Occurred()) SWIG_fail;
6638 }
6639 {
6640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6641 }
6642 return resultobj;
6643 fail:
6644 return NULL;
6645}
6646
6647
6648static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6649 PyObject *resultobj;
6650 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6651 int result;
6652 PyObject * obj0 = 0 ;
6653 char *kwnames[] = {
6654 (char *) "self", NULL
6655 };
6656
6657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6660 {
6661 PyThreadState* __tstate = wxPyBeginAllowThreads();
6662 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6663
6664 wxPyEndAllowThreads(__tstate);
6665 if (PyErr_Occurred()) SWIG_fail;
6666 }
6667 resultobj = SWIG_FromInt((int)result);
6668 return resultobj;
6669 fail:
6670 return NULL;
6671}
6672
6673
6674static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6675 PyObject *resultobj;
6676 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6677 bool result;
6678 PyObject * obj0 = 0 ;
6679 char *kwnames[] = {
6680 (char *) "self", NULL
6681 };
6682
6683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6686 {
6687 PyThreadState* __tstate = wxPyBeginAllowThreads();
6688 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6689
6690 wxPyEndAllowThreads(__tstate);
6691 if (PyErr_Occurred()) SWIG_fail;
6692 }
6693 {
6694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6695 }
6696 return resultobj;
6697 fail:
6698 return NULL;
6699}
6700
6701
6702static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6703 PyObject *resultobj;
6704 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6705 int result;
6706 PyObject * obj0 = 0 ;
6707 char *kwnames[] = {
6708 (char *) "self", NULL
6709 };
6710
6711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6714 {
6715 PyThreadState* __tstate = wxPyBeginAllowThreads();
6716 result = (int)((wxPyTimer const *)arg1)->GetId();
6717
6718 wxPyEndAllowThreads(__tstate);
6719 if (PyErr_Occurred()) SWIG_fail;
6720 }
6721 resultobj = SWIG_FromInt((int)result);
6722 return resultobj;
6723 fail:
6724 return NULL;
6725}
6726
6727
6728static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6729 PyObject *obj;
6730 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6731 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6732 Py_INCREF(obj);
6733 return Py_BuildValue((char *)"");
6734}
6735static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6736 PyObject *resultobj;
6737 int arg1 = (int) 0 ;
6738 int arg2 = (int) 0 ;
6739 wxTimerEvent *result;
6740 PyObject * obj0 = 0 ;
6741 PyObject * obj1 = 0 ;
6742 char *kwnames[] = {
6743 (char *) "timerid",(char *) "interval", NULL
6744 };
6745
6746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6747 if (obj0) {
6748 arg1 = (int) SWIG_AsInt(obj0);
6749 if (PyErr_Occurred()) SWIG_fail;
6750 }
6751 if (obj1) {
6752 arg2 = (int) SWIG_AsInt(obj1);
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 {
6756 PyThreadState* __tstate = wxPyBeginAllowThreads();
6757 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6758
6759 wxPyEndAllowThreads(__tstate);
6760 if (PyErr_Occurred()) SWIG_fail;
6761 }
6762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6763 return resultobj;
6764 fail:
6765 return NULL;
6766}
6767
6768
6769static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6770 PyObject *resultobj;
6771 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6772 int result;
6773 PyObject * obj0 = 0 ;
6774 char *kwnames[] = {
6775 (char *) "self", NULL
6776 };
6777
6778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6781 {
6782 PyThreadState* __tstate = wxPyBeginAllowThreads();
6783 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6784
6785 wxPyEndAllowThreads(__tstate);
6786 if (PyErr_Occurred()) SWIG_fail;
6787 }
6788 resultobj = SWIG_FromInt((int)result);
6789 return resultobj;
6790 fail:
6791 return NULL;
6792}
6793
6794
6795static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6796 PyObject *obj;
6797 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6798 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6799 Py_INCREF(obj);
6800 return Py_BuildValue((char *)"");
6801}
6802static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6803 PyObject *resultobj;
6804 wxTimer *arg1 = 0 ;
6805 wxTimerRunner *result;
6806 PyObject * obj0 = 0 ;
6807
6808 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6810 SWIG_POINTER_EXCEPTION | 0)) == -1)
6811 SWIG_fail;
6812 if (arg1 == NULL) {
6813 PyErr_SetString(PyExc_TypeError,"null reference");
6814 SWIG_fail;
6815 }
6816 {
6817 PyThreadState* __tstate = wxPyBeginAllowThreads();
6818 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6819
6820 wxPyEndAllowThreads(__tstate);
6821 if (PyErr_Occurred()) SWIG_fail;
6822 }
6823 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6824 return resultobj;
6825 fail:
6826 return NULL;
6827}
6828
6829
6830static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6831 PyObject *resultobj;
6832 wxTimer *arg1 = 0 ;
6833 int arg2 ;
6834 bool arg3 = (bool) False ;
6835 wxTimerRunner *result;
6836 PyObject * obj0 = 0 ;
6837 PyObject * obj1 = 0 ;
6838 PyObject * obj2 = 0 ;
6839
6840 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6842 SWIG_POINTER_EXCEPTION | 0)) == -1)
6843 SWIG_fail;
6844 if (arg1 == NULL) {
6845 PyErr_SetString(PyExc_TypeError,"null reference");
6846 SWIG_fail;
6847 }
6848 arg2 = (int) SWIG_AsInt(obj1);
6849 if (PyErr_Occurred()) SWIG_fail;
6850 if (obj2) {
6851 arg3 = (bool) SWIG_AsBool(obj2);
6852 if (PyErr_Occurred()) SWIG_fail;
6853 }
6854 {
6855 PyThreadState* __tstate = wxPyBeginAllowThreads();
6856 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6857
6858 wxPyEndAllowThreads(__tstate);
6859 if (PyErr_Occurred()) SWIG_fail;
6860 }
6861 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6862 return resultobj;
6863 fail:
6864 return NULL;
6865}
6866
6867
6868static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6869 int argc;
6870 PyObject *argv[4];
6871 int ii;
6872
6873 argc = PyObject_Length(args);
6874 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6875 argv[ii] = PyTuple_GetItem(args,ii);
6876 }
6877 if (argc == 1) {
6878 int _v;
6879 {
6880 void *ptr;
6881 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6882 _v = 0;
6883 PyErr_Clear();
6884 } else {
6885 _v = 1;
6886 }
6887 }
6888 if (_v) {
6889 return _wrap_new_TimerRunner__SWIG_0(self,args);
6890 }
6891 }
6892 if ((argc >= 2) && (argc <= 3)) {
6893 int _v;
6894 {
6895 void *ptr;
6896 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6897 _v = 0;
6898 PyErr_Clear();
6899 } else {
6900 _v = 1;
6901 }
6902 }
6903 if (_v) {
6904 _v = SWIG_CheckInt(argv[1]);
6905 if (_v) {
6906 if (argc <= 2) {
6907 return _wrap_new_TimerRunner__SWIG_1(self,args);
6908 }
6909 _v = SWIG_CheckBool(argv[2]);
6910 if (_v) {
6911 return _wrap_new_TimerRunner__SWIG_1(self,args);
6912 }
6913 }
6914 }
6915 }
6916
6917 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6918 return NULL;
6919}
6920
6921
6922static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6923 PyObject *resultobj;
6924 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6925 PyObject * obj0 = 0 ;
6926 char *kwnames[] = {
6927 (char *) "self", NULL
6928 };
6929
6930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6933 {
6934 PyThreadState* __tstate = wxPyBeginAllowThreads();
6935 delete arg1;
6936
6937 wxPyEndAllowThreads(__tstate);
6938 if (PyErr_Occurred()) SWIG_fail;
6939 }
6940 Py_INCREF(Py_None); resultobj = Py_None;
6941 return resultobj;
6942 fail:
6943 return NULL;
6944}
6945
6946
6947static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6948 PyObject *resultobj;
6949 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6950 int arg2 ;
6951 bool arg3 = (bool) False ;
6952 PyObject * obj0 = 0 ;
6953 PyObject * obj1 = 0 ;
6954 PyObject * obj2 = 0 ;
6955 char *kwnames[] = {
6956 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6957 };
6958
6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6962 arg2 = (int) SWIG_AsInt(obj1);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 if (obj2) {
6965 arg3 = (bool) SWIG_AsBool(obj2);
6966 if (PyErr_Occurred()) SWIG_fail;
6967 }
6968 {
6969 PyThreadState* __tstate = wxPyBeginAllowThreads();
6970 (arg1)->Start(arg2,arg3);
6971
6972 wxPyEndAllowThreads(__tstate);
6973 if (PyErr_Occurred()) SWIG_fail;
6974 }
6975 Py_INCREF(Py_None); resultobj = Py_None;
6976 return resultobj;
6977 fail:
6978 return NULL;
6979}
6980
6981
6982static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6983 PyObject *obj;
6984 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6985 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6986 Py_INCREF(obj);
6987 return Py_BuildValue((char *)"");
6988}
6989static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6990 PyObject *resultobj;
6991 wxLog *result;
6992 char *kwnames[] = {
6993 NULL
6994 };
6995
6996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6997 {
6998 PyThreadState* __tstate = wxPyBeginAllowThreads();
6999 result = (wxLog *)new wxLog();
7000
7001 wxPyEndAllowThreads(__tstate);
7002 if (PyErr_Occurred()) SWIG_fail;
7003 }
7004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7005 return resultobj;
7006 fail:
7007 return NULL;
7008}
7009
7010
7011static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7012 PyObject *resultobj;
7013 bool result;
7014 char *kwnames[] = {
7015 NULL
7016 };
7017
7018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7019 {
7020 PyThreadState* __tstate = wxPyBeginAllowThreads();
7021 result = (bool)wxLog::IsEnabled();
7022
7023 wxPyEndAllowThreads(__tstate);
7024 if (PyErr_Occurred()) SWIG_fail;
7025 }
7026 {
7027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7028 }
7029 return resultobj;
7030 fail:
7031 return NULL;
7032}
7033
7034
7035static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
7036 PyObject *resultobj;
7037 bool arg1 = (bool) True ;
7038 bool result;
7039 PyObject * obj0 = 0 ;
7040 char *kwnames[] = {
7041 (char *) "doIt", NULL
7042 };
7043
7044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7045 if (obj0) {
7046 arg1 = (bool) SWIG_AsBool(obj0);
7047 if (PyErr_Occurred()) SWIG_fail;
7048 }
7049 {
7050 PyThreadState* __tstate = wxPyBeginAllowThreads();
7051 result = (bool)wxLog::EnableLogging(arg1);
7052
7053 wxPyEndAllowThreads(__tstate);
7054 if (PyErr_Occurred()) SWIG_fail;
7055 }
7056 {
7057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7058 }
7059 return resultobj;
7060 fail:
7061 return NULL;
7062}
7063
7064
7065static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7066 PyObject *resultobj;
7067 wxLogLevel arg1 ;
7068 wxChar *arg2 = (wxChar *) 0 ;
7069 time_t arg3 ;
7070 PyObject * obj0 = 0 ;
7071 PyObject * obj1 = 0 ;
7072 PyObject * obj2 = 0 ;
7073 char *kwnames[] = {
7074 (char *) "level",(char *) "szString",(char *) "t", NULL
7075 };
7076
7077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7078 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7079 if (PyErr_Occurred()) SWIG_fail;
7080 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7082 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7083 if (PyErr_Occurred()) SWIG_fail;
7084 {
7085 PyThreadState* __tstate = wxPyBeginAllowThreads();
7086 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7087
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 Py_INCREF(Py_None); resultobj = Py_None;
7092 return resultobj;
7093 fail:
7094 return NULL;
7095}
7096
7097
7098static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7099 PyObject *resultobj;
7100 wxLog *arg1 = (wxLog *) 0 ;
7101 PyObject * obj0 = 0 ;
7102 char *kwnames[] = {
7103 (char *) "self", NULL
7104 };
7105
7106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7109 {
7110 PyThreadState* __tstate = wxPyBeginAllowThreads();
7111 (arg1)->Flush();
7112
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 Py_INCREF(Py_None); resultobj = Py_None;
7117 return resultobj;
7118 fail:
7119 return NULL;
7120}
7121
7122
7123static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7124 PyObject *resultobj;
7125 char *kwnames[] = {
7126 NULL
7127 };
7128
7129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7130 {
7131 PyThreadState* __tstate = wxPyBeginAllowThreads();
7132 wxLog::FlushActive();
7133
7134 wxPyEndAllowThreads(__tstate);
7135 if (PyErr_Occurred()) SWIG_fail;
7136 }
7137 Py_INCREF(Py_None); resultobj = Py_None;
7138 return resultobj;
7139 fail:
7140 return NULL;
7141}
7142
7143
7144static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7145 PyObject *resultobj;
7146 wxLog *result;
7147 char *kwnames[] = {
7148 NULL
7149 };
7150
7151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7152 {
7153 PyThreadState* __tstate = wxPyBeginAllowThreads();
7154 result = (wxLog *)wxLog::GetActiveTarget();
7155
7156 wxPyEndAllowThreads(__tstate);
7157 if (PyErr_Occurred()) SWIG_fail;
7158 }
7159 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7160 return resultobj;
7161 fail:
7162 return NULL;
7163}
7164
7165
7166static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7167 PyObject *resultobj;
7168 wxLog *arg1 = (wxLog *) 0 ;
7169 wxLog *result;
7170 PyObject * obj0 = 0 ;
7171 char *kwnames[] = {
7172 (char *) "pLogger", NULL
7173 };
7174
7175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7178 {
7179 PyThreadState* __tstate = wxPyBeginAllowThreads();
7180 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7181
7182 wxPyEndAllowThreads(__tstate);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7186 return resultobj;
7187 fail:
7188 return NULL;
7189}
7190
7191
7192static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7193 PyObject *resultobj;
7194 char *kwnames[] = {
7195 NULL
7196 };
7197
7198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7199 {
7200 PyThreadState* __tstate = wxPyBeginAllowThreads();
7201 wxLog::Suspend();
7202
7203 wxPyEndAllowThreads(__tstate);
7204 if (PyErr_Occurred()) SWIG_fail;
7205 }
7206 Py_INCREF(Py_None); resultobj = Py_None;
7207 return resultobj;
7208 fail:
7209 return NULL;
7210}
7211
7212
7213static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7214 PyObject *resultobj;
7215 char *kwnames[] = {
7216 NULL
7217 };
7218
7219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7220 {
7221 PyThreadState* __tstate = wxPyBeginAllowThreads();
7222 wxLog::Resume();
7223
7224 wxPyEndAllowThreads(__tstate);
7225 if (PyErr_Occurred()) SWIG_fail;
7226 }
7227 Py_INCREF(Py_None); resultobj = Py_None;
7228 return resultobj;
7229 fail:
7230 return NULL;
7231}
7232
7233
7234static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7235 PyObject *resultobj;
7236 bool arg1 = (bool) True ;
7237 PyObject * obj0 = 0 ;
7238 char *kwnames[] = {
7239 (char *) "bVerbose", NULL
7240 };
7241
7242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7243 if (obj0) {
7244 arg1 = (bool) SWIG_AsBool(obj0);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 }
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 wxLog::SetVerbose(arg1);
7250
7251 wxPyEndAllowThreads(__tstate);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 Py_INCREF(Py_None); resultobj = Py_None;
7255 return resultobj;
7256 fail:
7257 return NULL;
7258}
7259
7260
7261static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7262 PyObject *resultobj;
7263 wxLogLevel arg1 ;
7264 PyObject * obj0 = 0 ;
7265 char *kwnames[] = {
7266 (char *) "logLevel", NULL
7267 };
7268
7269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7270 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7271 if (PyErr_Occurred()) SWIG_fail;
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 wxLog::SetLogLevel(arg1);
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
7278 }
7279 Py_INCREF(Py_None); resultobj = Py_None;
7280 return resultobj;
7281 fail:
7282 return NULL;
7283}
7284
7285
7286static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7287 PyObject *resultobj;
7288 char *kwnames[] = {
7289 NULL
7290 };
7291
7292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7293 {
7294 PyThreadState* __tstate = wxPyBeginAllowThreads();
7295 wxLog::DontCreateOnDemand();
7296
7297 wxPyEndAllowThreads(__tstate);
7298 if (PyErr_Occurred()) SWIG_fail;
7299 }
7300 Py_INCREF(Py_None); resultobj = Py_None;
7301 return resultobj;
7302 fail:
7303 return NULL;
7304}
7305
7306
7307static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7308 PyObject *resultobj;
7309 wxTraceMask arg1 ;
7310 PyObject * obj0 = 0 ;
7311 char *kwnames[] = {
7312 (char *) "ulMask", NULL
7313 };
7314
7315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7316 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7317 if (PyErr_Occurred()) SWIG_fail;
7318 {
7319 PyThreadState* __tstate = wxPyBeginAllowThreads();
7320 wxLog::SetTraceMask(arg1);
7321
7322 wxPyEndAllowThreads(__tstate);
7323 if (PyErr_Occurred()) SWIG_fail;
7324 }
7325 Py_INCREF(Py_None); resultobj = Py_None;
7326 return resultobj;
7327 fail:
7328 return NULL;
7329}
7330
7331
7332static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7333 PyObject *resultobj;
7334 wxString *arg1 = 0 ;
7335 bool temp1 = False ;
7336 PyObject * obj0 = 0 ;
7337 char *kwnames[] = {
7338 (char *) "str", NULL
7339 };
7340
7341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7342 {
7343 arg1 = wxString_in_helper(obj0);
7344 if (arg1 == NULL) SWIG_fail;
7345 temp1 = True;
7346 }
7347 {
7348 PyThreadState* __tstate = wxPyBeginAllowThreads();
7349 wxLog::AddTraceMask((wxString const &)*arg1);
7350
7351 wxPyEndAllowThreads(__tstate);
7352 if (PyErr_Occurred()) SWIG_fail;
7353 }
7354 Py_INCREF(Py_None); resultobj = Py_None;
7355 {
7356 if (temp1)
7357 delete arg1;
7358 }
7359 return resultobj;
7360 fail:
7361 {
7362 if (temp1)
7363 delete arg1;
7364 }
7365 return NULL;
7366}
7367
7368
7369static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7370 PyObject *resultobj;
7371 wxString *arg1 = 0 ;
7372 bool temp1 = False ;
7373 PyObject * obj0 = 0 ;
7374 char *kwnames[] = {
7375 (char *) "str", NULL
7376 };
7377
7378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7379 {
7380 arg1 = wxString_in_helper(obj0);
7381 if (arg1 == NULL) SWIG_fail;
7382 temp1 = True;
7383 }
7384 {
7385 PyThreadState* __tstate = wxPyBeginAllowThreads();
7386 wxLog::RemoveTraceMask((wxString const &)*arg1);
7387
7388 wxPyEndAllowThreads(__tstate);
7389 if (PyErr_Occurred()) SWIG_fail;
7390 }
7391 Py_INCREF(Py_None); resultobj = Py_None;
7392 {
7393 if (temp1)
7394 delete arg1;
7395 }
7396 return resultobj;
7397 fail:
7398 {
7399 if (temp1)
7400 delete arg1;
7401 }
7402 return NULL;
7403}
7404
7405
7406static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7407 PyObject *resultobj;
7408 char *kwnames[] = {
7409 NULL
7410 };
7411
7412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7413 {
7414 PyThreadState* __tstate = wxPyBeginAllowThreads();
7415 wxLog::ClearTraceMasks();
7416
7417 wxPyEndAllowThreads(__tstate);
7418 if (PyErr_Occurred()) SWIG_fail;
7419 }
7420 Py_INCREF(Py_None); resultobj = Py_None;
7421 return resultobj;
7422 fail:
7423 return NULL;
7424}
7425
7426
7427static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7428 PyObject *resultobj;
7429 wxArrayString *result;
7430 char *kwnames[] = {
7431 NULL
7432 };
7433
7434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7435 {
7436 PyThreadState* __tstate = wxPyBeginAllowThreads();
7437 {
7438 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7439 result = (wxArrayString *) &_result_ref;
7440 }
7441
7442 wxPyEndAllowThreads(__tstate);
7443 if (PyErr_Occurred()) SWIG_fail;
7444 }
7445 {
7446 resultobj = wxArrayString2PyList_helper(*result);
7447 }
7448 return resultobj;
7449 fail:
7450 return NULL;
7451}
7452
7453
7454static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7455 PyObject *resultobj;
7456 wxChar *arg1 = (wxChar *) 0 ;
7457 PyObject * obj0 = 0 ;
7458 char *kwnames[] = {
7459 (char *) "ts", NULL
7460 };
7461
7462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7465 {
7466 PyThreadState* __tstate = wxPyBeginAllowThreads();
7467 wxLog::SetTimestamp((wxChar const *)arg1);
7468
7469 wxPyEndAllowThreads(__tstate);
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 Py_INCREF(Py_None); resultobj = Py_None;
7473 return resultobj;
7474 fail:
7475 return NULL;
7476}
7477
7478
7479static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7480 PyObject *resultobj;
7481 bool result;
7482 char *kwnames[] = {
7483 NULL
7484 };
7485
7486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7487 {
7488 PyThreadState* __tstate = wxPyBeginAllowThreads();
7489 result = (bool)wxLog::GetVerbose();
7490
7491 wxPyEndAllowThreads(__tstate);
7492 if (PyErr_Occurred()) SWIG_fail;
7493 }
7494 {
7495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7496 }
7497 return resultobj;
7498 fail:
7499 return NULL;
7500}
7501
7502
7503static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7504 PyObject *resultobj;
7505 wxTraceMask result;
7506 char *kwnames[] = {
7507 NULL
7508 };
7509
7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7511 {
7512 PyThreadState* __tstate = wxPyBeginAllowThreads();
7513 result = (wxTraceMask)wxLog::GetTraceMask();
7514
7515 wxPyEndAllowThreads(__tstate);
7516 if (PyErr_Occurred()) SWIG_fail;
7517 }
7518 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7519 return resultobj;
7520 fail:
7521 return NULL;
7522}
7523
7524
7525static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7526 PyObject *resultobj;
7527 wxChar *arg1 = (wxChar *) 0 ;
7528 bool result;
7529 PyObject * obj0 = 0 ;
7530 char *kwnames[] = {
7531 (char *) "mask", NULL
7532 };
7533
7534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7537 {
7538 PyThreadState* __tstate = wxPyBeginAllowThreads();
7539 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7540
7541 wxPyEndAllowThreads(__tstate);
7542 if (PyErr_Occurred()) SWIG_fail;
7543 }
7544 {
7545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7546 }
7547 return resultobj;
7548 fail:
7549 return NULL;
7550}
7551
7552
7553static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7554 PyObject *resultobj;
7555 wxLogLevel result;
7556 char *kwnames[] = {
7557 NULL
7558 };
7559
7560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7561 {
7562 PyThreadState* __tstate = wxPyBeginAllowThreads();
7563 result = (wxLogLevel)wxLog::GetLogLevel();
7564
7565 wxPyEndAllowThreads(__tstate);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7569 return resultobj;
7570 fail:
7571 return NULL;
7572}
7573
7574
7575static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7576 PyObject *resultobj;
7577 wxChar *result;
7578 char *kwnames[] = {
7579 NULL
7580 };
7581
7582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7583 {
7584 PyThreadState* __tstate = wxPyBeginAllowThreads();
7585 result = (wxChar *)wxLog::GetTimestamp();
7586
7587 wxPyEndAllowThreads(__tstate);
7588 if (PyErr_Occurred()) SWIG_fail;
7589 }
7590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7591 return resultobj;
7592 fail:
7593 return NULL;
7594}
7595
7596
7597static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7598 PyObject *resultobj;
7599 wxString result;
7600 char *kwnames[] = {
7601 NULL
7602 };
7603
7604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7605 {
7606 PyThreadState* __tstate = wxPyBeginAllowThreads();
7607 result = Log_TimeStamp();
7608
7609 wxPyEndAllowThreads(__tstate);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 {
7613#if wxUSE_UNICODE
7614 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7615#else
7616 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7617#endif
7618 }
7619 return resultobj;
7620 fail:
7621 return NULL;
7622}
7623
7624
7625static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7626 PyObject *resultobj;
7627 wxLog *arg1 = (wxLog *) 0 ;
7628 PyObject * obj0 = 0 ;
7629 char *kwnames[] = {
7630 (char *) "self", NULL
7631 };
7632
7633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7636 {
7637 PyThreadState* __tstate = wxPyBeginAllowThreads();
7638 wxLog_Destroy(arg1);
7639
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 Py_INCREF(Py_None); resultobj = Py_None;
7644 return resultobj;
7645 fail:
7646 return NULL;
7647}
7648
7649
7650static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7651 PyObject *obj;
7652 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7653 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7654 Py_INCREF(obj);
7655 return Py_BuildValue((char *)"");
7656}
7657static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7658 PyObject *resultobj;
7659 wxLogStderr *result;
7660 char *kwnames[] = {
7661 NULL
7662 };
7663
7664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7665 {
7666 PyThreadState* __tstate = wxPyBeginAllowThreads();
7667 result = (wxLogStderr *)new wxLogStderr();
7668
7669 wxPyEndAllowThreads(__tstate);
7670 if (PyErr_Occurred()) SWIG_fail;
7671 }
7672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7673 return resultobj;
7674 fail:
7675 return NULL;
7676}
7677
7678
7679static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7680 PyObject *obj;
7681 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7682 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7683 Py_INCREF(obj);
7684 return Py_BuildValue((char *)"");
7685}
7686static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7687 PyObject *resultobj;
7688 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7689 wxLogTextCtrl *result;
7690 PyObject * obj0 = 0 ;
7691 char *kwnames[] = {
7692 (char *) "pTextCtrl", NULL
7693 };
7694
7695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7698 {
7699 PyThreadState* __tstate = wxPyBeginAllowThreads();
7700 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7701
7702 wxPyEndAllowThreads(__tstate);
7703 if (PyErr_Occurred()) SWIG_fail;
7704 }
7705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7706 return resultobj;
7707 fail:
7708 return NULL;
7709}
7710
7711
7712static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7713 PyObject *obj;
7714 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7715 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7716 Py_INCREF(obj);
7717 return Py_BuildValue((char *)"");
7718}
7719static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7720 PyObject *resultobj;
7721 wxLogGui *result;
7722 char *kwnames[] = {
7723 NULL
7724 };
7725
7726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7727 {
7728 PyThreadState* __tstate = wxPyBeginAllowThreads();
7729 result = (wxLogGui *)new wxLogGui();
7730
7731 wxPyEndAllowThreads(__tstate);
7732 if (PyErr_Occurred()) SWIG_fail;
7733 }
7734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7735 return resultobj;
7736 fail:
7737 return NULL;
7738}
7739
7740
7741static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7742 PyObject *obj;
7743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7744 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7745 Py_INCREF(obj);
7746 return Py_BuildValue((char *)"");
7747}
7748static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7749 PyObject *resultobj;
7750 wxFrame *arg1 = (wxFrame *) 0 ;
7751 wxString *arg2 = 0 ;
7752 bool arg3 = (bool) True ;
7753 bool arg4 = (bool) True ;
7754 wxLogWindow *result;
7755 bool temp2 = False ;
7756 PyObject * obj0 = 0 ;
7757 PyObject * obj1 = 0 ;
7758 PyObject * obj2 = 0 ;
7759 PyObject * obj3 = 0 ;
7760 char *kwnames[] = {
7761 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7762 };
7763
7764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7767 {
7768 arg2 = wxString_in_helper(obj1);
7769 if (arg2 == NULL) SWIG_fail;
7770 temp2 = True;
7771 }
7772 if (obj2) {
7773 arg3 = (bool) SWIG_AsBool(obj2);
7774 if (PyErr_Occurred()) SWIG_fail;
7775 }
7776 if (obj3) {
7777 arg4 = (bool) SWIG_AsBool(obj3);
7778 if (PyErr_Occurred()) SWIG_fail;
7779 }
7780 {
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7783
7784 wxPyEndAllowThreads(__tstate);
7785 if (PyErr_Occurred()) SWIG_fail;
7786 }
7787 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7788 {
7789 if (temp2)
7790 delete arg2;
7791 }
7792 return resultobj;
7793 fail:
7794 {
7795 if (temp2)
7796 delete arg2;
7797 }
7798 return NULL;
7799}
7800
7801
7802static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7803 PyObject *resultobj;
7804 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7805 bool arg2 = (bool) True ;
7806 PyObject * obj0 = 0 ;
7807 PyObject * obj1 = 0 ;
7808 char *kwnames[] = {
7809 (char *) "self",(char *) "bShow", NULL
7810 };
7811
7812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7815 if (obj1) {
7816 arg2 = (bool) SWIG_AsBool(obj1);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 {
7820 PyThreadState* __tstate = wxPyBeginAllowThreads();
7821 (arg1)->Show(arg2);
7822
7823 wxPyEndAllowThreads(__tstate);
7824 if (PyErr_Occurred()) SWIG_fail;
7825 }
7826 Py_INCREF(Py_None); resultobj = Py_None;
7827 return resultobj;
7828 fail:
7829 return NULL;
7830}
7831
7832
7833static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7834 PyObject *resultobj;
7835 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7836 wxFrame *result;
7837 PyObject * obj0 = 0 ;
7838 char *kwnames[] = {
7839 (char *) "self", NULL
7840 };
7841
7842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7845 {
7846 PyThreadState* __tstate = wxPyBeginAllowThreads();
7847 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7848
7849 wxPyEndAllowThreads(__tstate);
7850 if (PyErr_Occurred()) SWIG_fail;
7851 }
7852 {
7853 resultobj = wxPyMake_wxObject(result);
7854 }
7855 return resultobj;
7856 fail:
7857 return NULL;
7858}
7859
7860
7861static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7862 PyObject *resultobj;
7863 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7864 wxLog *result;
7865 PyObject * obj0 = 0 ;
7866 char *kwnames[] = {
7867 (char *) "self", NULL
7868 };
7869
7870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7873 {
7874 PyThreadState* __tstate = wxPyBeginAllowThreads();
7875 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7876
7877 wxPyEndAllowThreads(__tstate);
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
7880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7881 return resultobj;
7882 fail:
7883 return NULL;
7884}
7885
7886
7887static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7888 PyObject *resultobj;
7889 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7890 bool result;
7891 PyObject * obj0 = 0 ;
7892 char *kwnames[] = {
7893 (char *) "self", NULL
7894 };
7895
7896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7899 {
7900 PyThreadState* __tstate = wxPyBeginAllowThreads();
7901 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7902
7903 wxPyEndAllowThreads(__tstate);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 {
7907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7908 }
7909 return resultobj;
7910 fail:
7911 return NULL;
7912}
7913
7914
7915static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7916 PyObject *resultobj;
7917 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7918 bool arg2 ;
7919 PyObject * obj0 = 0 ;
7920 PyObject * obj1 = 0 ;
7921 char *kwnames[] = {
7922 (char *) "self",(char *) "bDoPass", NULL
7923 };
7924
7925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7928 arg2 = (bool) SWIG_AsBool(obj1);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 {
7931 PyThreadState* __tstate = wxPyBeginAllowThreads();
7932 (arg1)->PassMessages(arg2);
7933
7934 wxPyEndAllowThreads(__tstate);
7935 if (PyErr_Occurred()) SWIG_fail;
7936 }
7937 Py_INCREF(Py_None); resultobj = Py_None;
7938 return resultobj;
7939 fail:
7940 return NULL;
7941}
7942
7943
7944static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7945 PyObject *obj;
7946 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7947 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7948 Py_INCREF(obj);
7949 return Py_BuildValue((char *)"");
7950}
7951static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7952 PyObject *resultobj;
7953 wxLog *arg1 = (wxLog *) 0 ;
7954 wxLogChain *result;
7955 PyObject * obj0 = 0 ;
7956 char *kwnames[] = {
7957 (char *) "logger", NULL
7958 };
7959
7960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7963 {
7964 PyThreadState* __tstate = wxPyBeginAllowThreads();
7965 result = (wxLogChain *)new wxLogChain(arg1);
7966
7967 wxPyEndAllowThreads(__tstate);
7968 if (PyErr_Occurred()) SWIG_fail;
7969 }
7970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
7971 return resultobj;
7972 fail:
7973 return NULL;
7974}
7975
7976
7977static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7978 PyObject *resultobj;
7979 wxLogChain *arg1 = (wxLogChain *) 0 ;
7980 wxLog *arg2 = (wxLog *) 0 ;
7981 PyObject * obj0 = 0 ;
7982 PyObject * obj1 = 0 ;
7983 char *kwnames[] = {
7984 (char *) "self",(char *) "logger", NULL
7985 };
7986
7987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7990 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7992 {
7993 PyThreadState* __tstate = wxPyBeginAllowThreads();
7994 (arg1)->SetLog(arg2);
7995
7996 wxPyEndAllowThreads(__tstate);
7997 if (PyErr_Occurred()) SWIG_fail;
7998 }
7999 Py_INCREF(Py_None); resultobj = Py_None;
8000 return resultobj;
8001 fail:
8002 return NULL;
8003}
8004
8005
8006static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8007 PyObject *resultobj;
8008 wxLogChain *arg1 = (wxLogChain *) 0 ;
8009 bool arg2 ;
8010 PyObject * obj0 = 0 ;
8011 PyObject * obj1 = 0 ;
8012 char *kwnames[] = {
8013 (char *) "self",(char *) "bDoPass", NULL
8014 };
8015
8016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8019 arg2 = (bool) SWIG_AsBool(obj1);
8020 if (PyErr_Occurred()) SWIG_fail;
8021 {
8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
8023 (arg1)->PassMessages(arg2);
8024
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 Py_INCREF(Py_None); resultobj = Py_None;
8029 return resultobj;
8030 fail:
8031 return NULL;
8032}
8033
8034
8035static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj;
8037 wxLogChain *arg1 = (wxLogChain *) 0 ;
8038 bool result;
8039 PyObject * obj0 = 0 ;
8040 char *kwnames[] = {
8041 (char *) "self", NULL
8042 };
8043
8044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8047 {
8048 PyThreadState* __tstate = wxPyBeginAllowThreads();
8049 result = (bool)(arg1)->IsPassingMessages();
8050
8051 wxPyEndAllowThreads(__tstate);
8052 if (PyErr_Occurred()) SWIG_fail;
8053 }
8054 {
8055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8056 }
8057 return resultobj;
8058 fail:
8059 return NULL;
8060}
8061
8062
8063static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8064 PyObject *resultobj;
8065 wxLogChain *arg1 = (wxLogChain *) 0 ;
8066 wxLog *result;
8067 PyObject * obj0 = 0 ;
8068 char *kwnames[] = {
8069 (char *) "self", NULL
8070 };
8071
8072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8075 {
8076 PyThreadState* __tstate = wxPyBeginAllowThreads();
8077 result = (wxLog *)(arg1)->GetOldLog();
8078
8079 wxPyEndAllowThreads(__tstate);
8080 if (PyErr_Occurred()) SWIG_fail;
8081 }
8082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8083 return resultobj;
8084 fail:
8085 return NULL;
8086}
8087
8088
8089static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8090 PyObject *obj;
8091 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8092 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8093 Py_INCREF(obj);
8094 return Py_BuildValue((char *)"");
8095}
8096static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8097 PyObject *resultobj;
8098 unsigned long result;
8099 char *kwnames[] = {
8100 NULL
8101 };
8102
8103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8104 {
8105 PyThreadState* __tstate = wxPyBeginAllowThreads();
8106 result = (unsigned long)wxSysErrorCode();
8107
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8112 return resultobj;
8113 fail:
8114 return NULL;
8115}
8116
8117
8118static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8119 PyObject *resultobj;
8120 unsigned long arg1 = (unsigned long) 0 ;
8121 wxString result;
8122 PyObject * obj0 = 0 ;
8123 char *kwnames[] = {
8124 (char *) "nErrCode", NULL
8125 };
8126
8127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8128 if (obj0) {
8129 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8130 if (PyErr_Occurred()) SWIG_fail;
8131 }
8132 {
8133 PyThreadState* __tstate = wxPyBeginAllowThreads();
8134 result = wxSysErrorMsg(arg1);
8135
8136 wxPyEndAllowThreads(__tstate);
8137 if (PyErr_Occurred()) SWIG_fail;
8138 }
8139 {
8140#if wxUSE_UNICODE
8141 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8142#else
8143 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8144#endif
8145 }
8146 return resultobj;
8147 fail:
8148 return NULL;
8149}
8150
8151
8152static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8153 PyObject *resultobj;
8154 wxString *arg1 = 0 ;
8155 bool temp1 = False ;
8156 PyObject * obj0 = 0 ;
8157 char *kwnames[] = {
8158 (char *) "msg", NULL
8159 };
8160
8161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8162 {
8163 arg1 = wxString_in_helper(obj0);
8164 if (arg1 == NULL) SWIG_fail;
8165 temp1 = True;
8166 }
8167 {
8168 PyThreadState* __tstate = wxPyBeginAllowThreads();
8169 wxLogFatalError((wxString const &)*arg1);
8170
8171 wxPyEndAllowThreads(__tstate);
8172 if (PyErr_Occurred()) SWIG_fail;
8173 }
8174 Py_INCREF(Py_None); resultobj = Py_None;
8175 {
8176 if (temp1)
8177 delete arg1;
8178 }
8179 return resultobj;
8180 fail:
8181 {
8182 if (temp1)
8183 delete arg1;
8184 }
8185 return NULL;
8186}
8187
8188
8189static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8190 PyObject *resultobj;
8191 wxString *arg1 = 0 ;
8192 bool temp1 = False ;
8193 PyObject * obj0 = 0 ;
8194 char *kwnames[] = {
8195 (char *) "msg", NULL
8196 };
8197
8198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8199 {
8200 arg1 = wxString_in_helper(obj0);
8201 if (arg1 == NULL) SWIG_fail;
8202 temp1 = True;
8203 }
8204 {
8205 PyThreadState* __tstate = wxPyBeginAllowThreads();
8206 wxLogError((wxString const &)*arg1);
8207
8208 wxPyEndAllowThreads(__tstate);
8209 if (PyErr_Occurred()) SWIG_fail;
8210 }
8211 Py_INCREF(Py_None); resultobj = Py_None;
8212 {
8213 if (temp1)
8214 delete arg1;
8215 }
8216 return resultobj;
8217 fail:
8218 {
8219 if (temp1)
8220 delete arg1;
8221 }
8222 return NULL;
8223}
8224
8225
8226static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8227 PyObject *resultobj;
8228 wxString *arg1 = 0 ;
8229 bool temp1 = False ;
8230 PyObject * obj0 = 0 ;
8231 char *kwnames[] = {
8232 (char *) "msg", NULL
8233 };
8234
8235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8236 {
8237 arg1 = wxString_in_helper(obj0);
8238 if (arg1 == NULL) SWIG_fail;
8239 temp1 = True;
8240 }
8241 {
8242 PyThreadState* __tstate = wxPyBeginAllowThreads();
8243 wxLogWarning((wxString const &)*arg1);
8244
8245 wxPyEndAllowThreads(__tstate);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 Py_INCREF(Py_None); resultobj = Py_None;
8249 {
8250 if (temp1)
8251 delete arg1;
8252 }
8253 return resultobj;
8254 fail:
8255 {
8256 if (temp1)
8257 delete arg1;
8258 }
8259 return NULL;
8260}
8261
8262
8263static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8264 PyObject *resultobj;
8265 wxString *arg1 = 0 ;
8266 bool temp1 = False ;
8267 PyObject * obj0 = 0 ;
8268 char *kwnames[] = {
8269 (char *) "msg", NULL
8270 };
8271
8272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8273 {
8274 arg1 = wxString_in_helper(obj0);
8275 if (arg1 == NULL) SWIG_fail;
8276 temp1 = True;
8277 }
8278 {
8279 PyThreadState* __tstate = wxPyBeginAllowThreads();
8280 wxLogMessage((wxString const &)*arg1);
8281
8282 wxPyEndAllowThreads(__tstate);
8283 if (PyErr_Occurred()) SWIG_fail;
8284 }
8285 Py_INCREF(Py_None); resultobj = Py_None;
8286 {
8287 if (temp1)
8288 delete arg1;
8289 }
8290 return resultobj;
8291 fail:
8292 {
8293 if (temp1)
8294 delete arg1;
8295 }
8296 return NULL;
8297}
8298
8299
8300static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8301 PyObject *resultobj;
8302 wxString *arg1 = 0 ;
8303 bool temp1 = False ;
8304 PyObject * obj0 = 0 ;
8305 char *kwnames[] = {
8306 (char *) "msg", NULL
8307 };
8308
8309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8310 {
8311 arg1 = wxString_in_helper(obj0);
8312 if (arg1 == NULL) SWIG_fail;
8313 temp1 = True;
8314 }
8315 {
8316 PyThreadState* __tstate = wxPyBeginAllowThreads();
8317 wxLogInfo((wxString const &)*arg1);
8318
8319 wxPyEndAllowThreads(__tstate);
8320 if (PyErr_Occurred()) SWIG_fail;
8321 }
8322 Py_INCREF(Py_None); resultobj = Py_None;
8323 {
8324 if (temp1)
8325 delete arg1;
8326 }
8327 return resultobj;
8328 fail:
8329 {
8330 if (temp1)
8331 delete arg1;
8332 }
8333 return NULL;
8334}
8335
8336
8337static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8338 PyObject *resultobj;
8339 wxString *arg1 = 0 ;
8340 bool temp1 = False ;
8341 PyObject * obj0 = 0 ;
8342 char *kwnames[] = {
8343 (char *) "msg", NULL
8344 };
8345
8346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8347 {
8348 arg1 = wxString_in_helper(obj0);
8349 if (arg1 == NULL) SWIG_fail;
8350 temp1 = True;
8351 }
8352 {
8353 PyThreadState* __tstate = wxPyBeginAllowThreads();
8354 wxLogDebug((wxString const &)*arg1);
8355
8356 wxPyEndAllowThreads(__tstate);
8357 if (PyErr_Occurred()) SWIG_fail;
8358 }
8359 Py_INCREF(Py_None); resultobj = Py_None;
8360 {
8361 if (temp1)
8362 delete arg1;
8363 }
8364 return resultobj;
8365 fail:
8366 {
8367 if (temp1)
8368 delete arg1;
8369 }
8370 return NULL;
8371}
8372
8373
8374static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8375 PyObject *resultobj;
8376 wxString *arg1 = 0 ;
8377 bool temp1 = False ;
8378 PyObject * obj0 = 0 ;
8379 char *kwnames[] = {
8380 (char *) "msg", NULL
8381 };
8382
8383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8384 {
8385 arg1 = wxString_in_helper(obj0);
8386 if (arg1 == NULL) SWIG_fail;
8387 temp1 = True;
8388 }
8389 {
8390 PyThreadState* __tstate = wxPyBeginAllowThreads();
8391 wxLogVerbose((wxString const &)*arg1);
8392
8393 wxPyEndAllowThreads(__tstate);
8394 if (PyErr_Occurred()) SWIG_fail;
8395 }
8396 Py_INCREF(Py_None); resultobj = Py_None;
8397 {
8398 if (temp1)
8399 delete arg1;
8400 }
8401 return resultobj;
8402 fail:
8403 {
8404 if (temp1)
8405 delete arg1;
8406 }
8407 return NULL;
8408}
8409
8410
8411static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8412 PyObject *resultobj;
8413 wxString *arg1 = 0 ;
8414 bool temp1 = False ;
8415 PyObject * obj0 = 0 ;
8416 char *kwnames[] = {
8417 (char *) "msg", NULL
8418 };
8419
8420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8421 {
8422 arg1 = wxString_in_helper(obj0);
8423 if (arg1 == NULL) SWIG_fail;
8424 temp1 = True;
8425 }
8426 {
8427 PyThreadState* __tstate = wxPyBeginAllowThreads();
8428 wxLogStatus((wxString const &)*arg1);
8429
8430 wxPyEndAllowThreads(__tstate);
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
8433 Py_INCREF(Py_None); resultobj = Py_None;
8434 {
8435 if (temp1)
8436 delete arg1;
8437 }
8438 return resultobj;
8439 fail:
8440 {
8441 if (temp1)
8442 delete arg1;
8443 }
8444 return NULL;
8445}
8446
8447
8448static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8449 PyObject *resultobj;
8450 wxFrame *arg1 = (wxFrame *) 0 ;
8451 wxString *arg2 = 0 ;
8452 bool temp2 = False ;
8453 PyObject * obj0 = 0 ;
8454 PyObject * obj1 = 0 ;
8455 char *kwnames[] = {
8456 (char *) "pFrame",(char *) "msg", NULL
8457 };
8458
8459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8462 {
8463 arg2 = wxString_in_helper(obj1);
8464 if (arg2 == NULL) SWIG_fail;
8465 temp2 = True;
8466 }
8467 {
8468 PyThreadState* __tstate = wxPyBeginAllowThreads();
8469 wxLogStatus(arg1,(wxString const &)*arg2);
8470
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 Py_INCREF(Py_None); resultobj = Py_None;
8475 {
8476 if (temp2)
8477 delete arg2;
8478 }
8479 return resultobj;
8480 fail:
8481 {
8482 if (temp2)
8483 delete arg2;
8484 }
8485 return NULL;
8486}
8487
8488
8489static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8490 PyObject *resultobj;
8491 wxString *arg1 = 0 ;
8492 bool temp1 = False ;
8493 PyObject * obj0 = 0 ;
8494 char *kwnames[] = {
8495 (char *) "msg", NULL
8496 };
8497
8498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8499 {
8500 arg1 = wxString_in_helper(obj0);
8501 if (arg1 == NULL) SWIG_fail;
8502 temp1 = True;
8503 }
8504 {
8505 PyThreadState* __tstate = wxPyBeginAllowThreads();
8506 wxLogSysError((wxString const &)*arg1);
8507
8508 wxPyEndAllowThreads(__tstate);
8509 if (PyErr_Occurred()) SWIG_fail;
8510 }
8511 Py_INCREF(Py_None); resultobj = Py_None;
8512 {
8513 if (temp1)
8514 delete arg1;
8515 }
8516 return resultobj;
8517 fail:
8518 {
8519 if (temp1)
8520 delete arg1;
8521 }
8522 return NULL;
8523}
8524
8525
8526static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8527 PyObject *resultobj;
8528 unsigned long arg1 ;
8529 wxString *arg2 = 0 ;
8530 bool temp2 = False ;
8531 PyObject * obj0 = 0 ;
8532 PyObject * obj1 = 0 ;
8533
8534 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8535 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 {
8538 arg2 = wxString_in_helper(obj1);
8539 if (arg2 == NULL) SWIG_fail;
8540 temp2 = True;
8541 }
8542 {
8543 PyThreadState* __tstate = wxPyBeginAllowThreads();
8544 wxLogTrace(arg1,(wxString const &)*arg2);
8545
8546 wxPyEndAllowThreads(__tstate);
8547 if (PyErr_Occurred()) SWIG_fail;
8548 }
8549 Py_INCREF(Py_None); resultobj = Py_None;
8550 {
8551 if (temp2)
8552 delete arg2;
8553 }
8554 return resultobj;
8555 fail:
8556 {
8557 if (temp2)
8558 delete arg2;
8559 }
8560 return NULL;
8561}
8562
8563
8564static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8565 PyObject *resultobj;
8566 wxString *arg1 = 0 ;
8567 wxString *arg2 = 0 ;
8568 bool temp1 = False ;
8569 bool temp2 = False ;
8570 PyObject * obj0 = 0 ;
8571 PyObject * obj1 = 0 ;
8572
8573 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8574 {
8575 arg1 = wxString_in_helper(obj0);
8576 if (arg1 == NULL) SWIG_fail;
8577 temp1 = True;
8578 }
8579 {
8580 arg2 = wxString_in_helper(obj1);
8581 if (arg2 == NULL) SWIG_fail;
8582 temp2 = True;
8583 }
8584 {
8585 PyThreadState* __tstate = wxPyBeginAllowThreads();
8586 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8587
8588 wxPyEndAllowThreads(__tstate);
8589 if (PyErr_Occurred()) SWIG_fail;
8590 }
8591 Py_INCREF(Py_None); resultobj = Py_None;
8592 {
8593 if (temp1)
8594 delete arg1;
8595 }
8596 {
8597 if (temp2)
8598 delete arg2;
8599 }
8600 return resultobj;
8601 fail:
8602 {
8603 if (temp1)
8604 delete arg1;
8605 }
8606 {
8607 if (temp2)
8608 delete arg2;
8609 }
8610 return NULL;
8611}
8612
8613
8614static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8615 int argc;
8616 PyObject *argv[3];
8617 int ii;
8618
8619 argc = PyObject_Length(args);
8620 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8621 argv[ii] = PyTuple_GetItem(args,ii);
8622 }
8623 if (argc == 2) {
8624 int _v;
8625 {
8626 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8627 }
8628 if (_v) {
8629 {
8630 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8631 }
8632 if (_v) {
8633 return _wrap_LogTrace__SWIG_1(self,args);
8634 }
8635 }
8636 }
8637 if (argc == 2) {
8638 int _v;
8639 _v = SWIG_CheckUnsignedLong(argv[0]);
8640 if (_v) {
8641 {
8642 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8643 }
8644 if (_v) {
8645 return _wrap_LogTrace__SWIG_0(self,args);
8646 }
8647 }
8648 }
8649
8650 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8651 return NULL;
8652}
8653
8654
8655static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj;
8657 unsigned long arg1 ;
8658 wxString *arg2 = 0 ;
8659 bool temp2 = False ;
8660 PyObject * obj0 = 0 ;
8661 PyObject * obj1 = 0 ;
8662 char *kwnames[] = {
8663 (char *) "level",(char *) "msg", NULL
8664 };
8665
8666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8667 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 {
8670 arg2 = wxString_in_helper(obj1);
8671 if (arg2 == NULL) SWIG_fail;
8672 temp2 = True;
8673 }
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 wxLogGeneric(arg1,(wxString const &)*arg2);
8677
8678 wxPyEndAllowThreads(__tstate);
8679 if (PyErr_Occurred()) SWIG_fail;
8680 }
8681 Py_INCREF(Py_None); resultobj = Py_None;
8682 {
8683 if (temp2)
8684 delete arg2;
8685 }
8686 return resultobj;
8687 fail:
8688 {
8689 if (temp2)
8690 delete arg2;
8691 }
8692 return NULL;
8693}
8694
8695
8696static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8697 PyObject *resultobj;
8698 wxString *arg1 = 0 ;
8699 wxString *arg2 = 0 ;
8700 bool temp1 = False ;
8701 bool temp2 = False ;
8702 PyObject * obj0 = 0 ;
8703 PyObject * obj1 = 0 ;
8704 char *kwnames[] = {
8705 (char *) "title",(char *) "text", NULL
8706 };
8707
8708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8709 {
8710 arg1 = wxString_in_helper(obj0);
8711 if (arg1 == NULL) SWIG_fail;
8712 temp1 = True;
8713 }
8714 {
8715 arg2 = wxString_in_helper(obj1);
8716 if (arg2 == NULL) SWIG_fail;
8717 temp2 = True;
8718 }
8719 {
8720 PyThreadState* __tstate = wxPyBeginAllowThreads();
8721 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8722
8723 wxPyEndAllowThreads(__tstate);
8724 if (PyErr_Occurred()) SWIG_fail;
8725 }
8726 Py_INCREF(Py_None); resultobj = Py_None;
8727 {
8728 if (temp1)
8729 delete arg1;
8730 }
8731 {
8732 if (temp2)
8733 delete arg2;
8734 }
8735 return resultobj;
8736 fail:
8737 {
8738 if (temp1)
8739 delete arg1;
8740 }
8741 {
8742 if (temp2)
8743 delete arg2;
8744 }
8745 return NULL;
8746}
8747
8748
8749static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8750 PyObject *resultobj;
8751 wxLogNull *result;
8752 char *kwnames[] = {
8753 NULL
8754 };
8755
8756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8757 {
8758 PyThreadState* __tstate = wxPyBeginAllowThreads();
8759 result = (wxLogNull *)new wxLogNull();
8760
8761 wxPyEndAllowThreads(__tstate);
8762 if (PyErr_Occurred()) SWIG_fail;
8763 }
8764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8765 return resultobj;
8766 fail:
8767 return NULL;
8768}
8769
8770
8771static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8772 PyObject *resultobj;
8773 wxLogNull *arg1 = (wxLogNull *) 0 ;
8774 PyObject * obj0 = 0 ;
8775 char *kwnames[] = {
8776 (char *) "self", NULL
8777 };
8778
8779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8782 {
8783 PyThreadState* __tstate = wxPyBeginAllowThreads();
8784 delete arg1;
8785
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 Py_INCREF(Py_None); resultobj = Py_None;
8790 return resultobj;
8791 fail:
8792 return NULL;
8793}
8794
8795
8796static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8797 PyObject *obj;
8798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8799 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8800 Py_INCREF(obj);
8801 return Py_BuildValue((char *)"");
8802}
8803static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8804 PyObject *resultobj;
8805 wxPyLog *result;
8806 char *kwnames[] = {
8807 NULL
8808 };
8809
8810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8811 {
8812 PyThreadState* __tstate = wxPyBeginAllowThreads();
8813 result = (wxPyLog *)new wxPyLog();
8814
8815 wxPyEndAllowThreads(__tstate);
8816 if (PyErr_Occurred()) SWIG_fail;
8817 }
8818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8819 return resultobj;
8820 fail:
8821 return NULL;
8822}
8823
8824
8825static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8826 PyObject *resultobj;
8827 wxPyLog *arg1 = (wxPyLog *) 0 ;
8828 PyObject *arg2 = (PyObject *) 0 ;
8829 PyObject *arg3 = (PyObject *) 0 ;
8830 PyObject * obj0 = 0 ;
8831 PyObject * obj1 = 0 ;
8832 PyObject * obj2 = 0 ;
8833 char *kwnames[] = {
8834 (char *) "self",(char *) "self",(char *) "_class", NULL
8835 };
8836
8837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8840 arg2 = obj1;
8841 arg3 = obj2;
8842 {
8843 PyThreadState* __tstate = wxPyBeginAllowThreads();
8844 (arg1)->_setCallbackInfo(arg2,arg3);
8845
8846 wxPyEndAllowThreads(__tstate);
8847 if (PyErr_Occurred()) SWIG_fail;
8848 }
8849 Py_INCREF(Py_None); resultobj = Py_None;
8850 return resultobj;
8851 fail:
8852 return NULL;
8853}
8854
8855
8856static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8857 PyObject *obj;
8858 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8859 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8860 Py_INCREF(obj);
8861 return Py_BuildValue((char *)"");
8862}
8863static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8864 PyObject *resultobj;
8865 int arg1 ;
8866 int arg2 = (int) wxSIGTERM ;
8867 int result;
8868 PyObject * obj0 = 0 ;
8869 PyObject * obj1 = 0 ;
8870 char *kwnames[] = {
8871 (char *) "pid",(char *) "sig", NULL
8872 };
8873
8874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8875 arg1 = (int) SWIG_AsInt(obj0);
8876 if (PyErr_Occurred()) SWIG_fail;
8877 if (obj1) {
8878 arg2 = (wxSignal) SWIG_AsInt(obj1);
8879 if (PyErr_Occurred()) SWIG_fail;
8880 }
8881 {
8882 PyThreadState* __tstate = wxPyBeginAllowThreads();
8883 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8884
8885 wxPyEndAllowThreads(__tstate);
8886 if (PyErr_Occurred()) SWIG_fail;
8887 }
8888 resultobj = SWIG_FromInt((int)result);
8889 return resultobj;
8890 fail:
8891 return NULL;
8892}
8893
8894
8895static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8896 PyObject *resultobj;
8897 int arg1 ;
8898 bool result;
8899 PyObject * obj0 = 0 ;
8900 char *kwnames[] = {
8901 (char *) "pid", NULL
8902 };
8903
8904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8905 arg1 = (int) SWIG_AsInt(obj0);
8906 if (PyErr_Occurred()) SWIG_fail;
8907 {
8908 PyThreadState* __tstate = wxPyBeginAllowThreads();
8909 result = (bool)wxPyProcess::Exists(arg1);
8910
8911 wxPyEndAllowThreads(__tstate);
8912 if (PyErr_Occurred()) SWIG_fail;
8913 }
8914 {
8915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8916 }
8917 return resultobj;
8918 fail:
8919 return NULL;
8920}
8921
8922
8923static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8924 PyObject *resultobj;
8925 wxString *arg1 = 0 ;
8926 int arg2 = (int) wxEXEC_ASYNC ;
8927 wxPyProcess *result;
8928 bool temp1 = False ;
8929 PyObject * obj0 = 0 ;
8930 PyObject * obj1 = 0 ;
8931 char *kwnames[] = {
8932 (char *) "cmd",(char *) "flags", NULL
8933 };
8934
8935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8936 {
8937 arg1 = wxString_in_helper(obj0);
8938 if (arg1 == NULL) SWIG_fail;
8939 temp1 = True;
8940 }
8941 if (obj1) {
8942 arg2 = (int) SWIG_AsInt(obj1);
8943 if (PyErr_Occurred()) SWIG_fail;
8944 }
8945 {
8946 PyThreadState* __tstate = wxPyBeginAllowThreads();
8947 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8948
8949 wxPyEndAllowThreads(__tstate);
8950 if (PyErr_Occurred()) SWIG_fail;
8951 }
8952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
8953 {
8954 if (temp1)
8955 delete arg1;
8956 }
8957 return resultobj;
8958 fail:
8959 {
8960 if (temp1)
8961 delete arg1;
8962 }
8963 return NULL;
8964}
8965
8966
8967static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8968 PyObject *resultobj;
8969 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8970 int arg2 = (int) -1 ;
8971 wxPyProcess *result;
8972 PyObject * obj0 = 0 ;
8973 PyObject * obj1 = 0 ;
8974 char *kwnames[] = {
8975 (char *) "parent",(char *) "id", NULL
8976 };
8977
8978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
8979 if (obj0) {
8980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8982 }
8983 if (obj1) {
8984 arg2 = (int) SWIG_AsInt(obj1);
8985 if (PyErr_Occurred()) SWIG_fail;
8986 }
8987 {
8988 PyThreadState* __tstate = wxPyBeginAllowThreads();
8989 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8990
8991 wxPyEndAllowThreads(__tstate);
8992 if (PyErr_Occurred()) SWIG_fail;
8993 }
8994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
8995 return resultobj;
8996 fail:
8997 return NULL;
8998}
8999
9000
9001static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9002 PyObject *resultobj;
9003 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9004 PyObject *arg2 = (PyObject *) 0 ;
9005 PyObject *arg3 = (PyObject *) 0 ;
9006 PyObject * obj0 = 0 ;
9007 PyObject * obj1 = 0 ;
9008 PyObject * obj2 = 0 ;
9009 char *kwnames[] = {
9010 (char *) "self",(char *) "self",(char *) "_class", NULL
9011 };
9012
9013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9016 arg2 = obj1;
9017 arg3 = obj2;
9018 {
9019 PyThreadState* __tstate = wxPyBeginAllowThreads();
9020 (arg1)->_setCallbackInfo(arg2,arg3);
9021
9022 wxPyEndAllowThreads(__tstate);
9023 if (PyErr_Occurred()) SWIG_fail;
9024 }
9025 Py_INCREF(Py_None); resultobj = Py_None;
9026 return resultobj;
9027 fail:
9028 return NULL;
9029}
9030
9031
9032static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
9033 PyObject *resultobj;
9034 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9035 int arg2 ;
9036 int arg3 ;
9037 PyObject * obj0 = 0 ;
9038 PyObject * obj1 = 0 ;
9039 PyObject * obj2 = 0 ;
9040 char *kwnames[] = {
9041 (char *) "self",(char *) "pid",(char *) "status", NULL
9042 };
9043
9044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9047 arg2 = (int) SWIG_AsInt(obj1);
9048 if (PyErr_Occurred()) SWIG_fail;
9049 arg3 = (int) SWIG_AsInt(obj2);
9050 if (PyErr_Occurred()) SWIG_fail;
9051 {
9052 PyThreadState* __tstate = wxPyBeginAllowThreads();
9053 (arg1)->base_OnTerminate(arg2,arg3);
9054
9055 wxPyEndAllowThreads(__tstate);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 }
9058 Py_INCREF(Py_None); resultobj = Py_None;
9059 return resultobj;
9060 fail:
9061 return NULL;
9062}
9063
9064
9065static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9066 PyObject *resultobj;
9067 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9068 PyObject * obj0 = 0 ;
9069 char *kwnames[] = {
9070 (char *) "self", NULL
9071 };
9072
9073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9076 {
9077 PyThreadState* __tstate = wxPyBeginAllowThreads();
9078 (arg1)->Redirect();
9079
9080 wxPyEndAllowThreads(__tstate);
9081 if (PyErr_Occurred()) SWIG_fail;
9082 }
9083 Py_INCREF(Py_None); resultobj = Py_None;
9084 return resultobj;
9085 fail:
9086 return NULL;
9087}
9088
9089
9090static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9091 PyObject *resultobj;
9092 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9093 bool result;
9094 PyObject * obj0 = 0 ;
9095 char *kwnames[] = {
9096 (char *) "self", NULL
9097 };
9098
9099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9102 {
9103 PyThreadState* __tstate = wxPyBeginAllowThreads();
9104 result = (bool)(arg1)->IsRedirected();
9105
9106 wxPyEndAllowThreads(__tstate);
9107 if (PyErr_Occurred()) SWIG_fail;
9108 }
9109 {
9110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9111 }
9112 return resultobj;
9113 fail:
9114 return NULL;
9115}
9116
9117
9118static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9119 PyObject *resultobj;
9120 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9121 PyObject * obj0 = 0 ;
9122 char *kwnames[] = {
9123 (char *) "self", NULL
9124 };
9125
9126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9129 {
9130 PyThreadState* __tstate = wxPyBeginAllowThreads();
9131 (arg1)->Detach();
9132
9133 wxPyEndAllowThreads(__tstate);
9134 if (PyErr_Occurred()) SWIG_fail;
9135 }
9136 Py_INCREF(Py_None); resultobj = Py_None;
9137 return resultobj;
9138 fail:
9139 return NULL;
9140}
9141
9142
9143static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9144 PyObject *resultobj;
9145 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9146 wxInputStream *result;
9147 PyObject * obj0 = 0 ;
9148 char *kwnames[] = {
9149 (char *) "self", NULL
9150 };
9151
9152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9155 {
9156 PyThreadState* __tstate = wxPyBeginAllowThreads();
9157 result = (wxInputStream *)(arg1)->GetInputStream();
9158
9159 wxPyEndAllowThreads(__tstate);
9160 if (PyErr_Occurred()) SWIG_fail;
9161 }
9162 {
9163 wxPyInputStream * _ptr = NULL;
9164
9165 if (result) {
9166 _ptr = new wxPyInputStream(result);
9167 }
9168 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9169 }
9170 return resultobj;
9171 fail:
9172 return NULL;
9173}
9174
9175
9176static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9177 PyObject *resultobj;
9178 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9179 wxInputStream *result;
9180 PyObject * obj0 = 0 ;
9181 char *kwnames[] = {
9182 (char *) "self", NULL
9183 };
9184
9185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9188 {
9189 PyThreadState* __tstate = wxPyBeginAllowThreads();
9190 result = (wxInputStream *)(arg1)->GetErrorStream();
9191
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 {
9196 wxPyInputStream * _ptr = NULL;
9197
9198 if (result) {
9199 _ptr = new wxPyInputStream(result);
9200 }
9201 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9202 }
9203 return resultobj;
9204 fail:
9205 return NULL;
9206}
9207
9208
9209static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9210 PyObject *resultobj;
9211 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9212 wxOutputStream *result;
9213 PyObject * obj0 = 0 ;
9214 char *kwnames[] = {
9215 (char *) "self", NULL
9216 };
9217
9218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9221 {
9222 PyThreadState* __tstate = wxPyBeginAllowThreads();
9223 result = (wxOutputStream *)(arg1)->GetOutputStream();
9224
9225 wxPyEndAllowThreads(__tstate);
9226 if (PyErr_Occurred()) SWIG_fail;
9227 }
9228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9229 return resultobj;
9230 fail:
9231 return NULL;
9232}
9233
9234
9235static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9236 PyObject *resultobj;
9237 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9238 PyObject * obj0 = 0 ;
9239 char *kwnames[] = {
9240 (char *) "self", NULL
9241 };
9242
9243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 (arg1)->CloseOutput();
9249
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 Py_INCREF(Py_None); resultobj = Py_None;
9254 return resultobj;
9255 fail:
9256 return NULL;
9257}
9258
9259
9260static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9261 PyObject *resultobj;
9262 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9263 bool result;
9264 PyObject * obj0 = 0 ;
9265 char *kwnames[] = {
9266 (char *) "self", NULL
9267 };
9268
9269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9272 {
9273 PyThreadState* __tstate = wxPyBeginAllowThreads();
9274 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9275
9276 wxPyEndAllowThreads(__tstate);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 }
9279 {
9280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9281 }
9282 return resultobj;
9283 fail:
9284 return NULL;
9285}
9286
9287
9288static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9289 PyObject *resultobj;
9290 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9291 bool result;
9292 PyObject * obj0 = 0 ;
9293 char *kwnames[] = {
9294 (char *) "self", NULL
9295 };
9296
9297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9300 {
9301 PyThreadState* __tstate = wxPyBeginAllowThreads();
9302 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9303
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 {
9308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9309 }
9310 return resultobj;
9311 fail:
9312 return NULL;
9313}
9314
9315
9316static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9317 PyObject *resultobj;
9318 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9319 bool result;
9320 PyObject * obj0 = 0 ;
9321 char *kwnames[] = {
9322 (char *) "self", NULL
9323 };
9324
9325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9328 {
9329 PyThreadState* __tstate = wxPyBeginAllowThreads();
9330 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9331
9332 wxPyEndAllowThreads(__tstate);
9333 if (PyErr_Occurred()) SWIG_fail;
9334 }
9335 {
9336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9337 }
9338 return resultobj;
9339 fail:
9340 return NULL;
9341}
9342
9343
9344static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9345 PyObject *obj;
9346 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9347 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9348 Py_INCREF(obj);
9349 return Py_BuildValue((char *)"");
9350}
9351static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9352 PyObject *resultobj;
9353 int arg1 = (int) 0 ;
9354 int arg2 = (int) 0 ;
9355 int arg3 = (int) 0 ;
9356 wxProcessEvent *result;
9357 PyObject * obj0 = 0 ;
9358 PyObject * obj1 = 0 ;
9359 PyObject * obj2 = 0 ;
9360 char *kwnames[] = {
9361 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9362 };
9363
9364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9365 if (obj0) {
9366 arg1 = (int) SWIG_AsInt(obj0);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 }
9369 if (obj1) {
9370 arg2 = (int) SWIG_AsInt(obj1);
9371 if (PyErr_Occurred()) SWIG_fail;
9372 }
9373 if (obj2) {
9374 arg3 = (int) SWIG_AsInt(obj2);
9375 if (PyErr_Occurred()) SWIG_fail;
9376 }
9377 {
9378 PyThreadState* __tstate = wxPyBeginAllowThreads();
9379 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9380
9381 wxPyEndAllowThreads(__tstate);
9382 if (PyErr_Occurred()) SWIG_fail;
9383 }
9384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9385 return resultobj;
9386 fail:
9387 return NULL;
9388}
9389
9390
9391static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9392 PyObject *resultobj;
9393 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9394 int result;
9395 PyObject * obj0 = 0 ;
9396 char *kwnames[] = {
9397 (char *) "self", NULL
9398 };
9399
9400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9403 {
9404 PyThreadState* __tstate = wxPyBeginAllowThreads();
9405 result = (int)(arg1)->GetPid();
9406
9407 wxPyEndAllowThreads(__tstate);
9408 if (PyErr_Occurred()) SWIG_fail;
9409 }
9410 resultobj = SWIG_FromInt((int)result);
9411 return resultobj;
9412 fail:
9413 return NULL;
9414}
9415
9416
9417static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9418 PyObject *resultobj;
9419 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9420 int result;
9421 PyObject * obj0 = 0 ;
9422 char *kwnames[] = {
9423 (char *) "self", NULL
9424 };
9425
9426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 result = (int)(arg1)->GetExitCode();
9432
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 resultobj = SWIG_FromInt((int)result);
9437 return resultobj;
9438 fail:
9439 return NULL;
9440}
9441
9442
9443static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9444 PyObject *resultobj;
9445 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9446 int arg2 ;
9447 PyObject * obj0 = 0 ;
9448 PyObject * obj1 = 0 ;
9449 char *kwnames[] = {
9450 (char *) "self",(char *) "m_pid", NULL
9451 };
9452
9453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9456 arg2 = (int) SWIG_AsInt(obj1);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 if (arg1) (arg1)->m_pid = arg2;
9459
9460 Py_INCREF(Py_None); resultobj = Py_None;
9461 return resultobj;
9462 fail:
9463 return NULL;
9464}
9465
9466
9467static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9468 PyObject *resultobj;
9469 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9470 int result;
9471 PyObject * obj0 = 0 ;
9472 char *kwnames[] = {
9473 (char *) "self", NULL
9474 };
9475
9476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9479 result = (int) ((arg1)->m_pid);
9480
9481 resultobj = SWIG_FromInt((int)result);
9482 return resultobj;
9483 fail:
9484 return NULL;
9485}
9486
9487
9488static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9489 PyObject *resultobj;
9490 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9491 int arg2 ;
9492 PyObject * obj0 = 0 ;
9493 PyObject * obj1 = 0 ;
9494 char *kwnames[] = {
9495 (char *) "self",(char *) "m_exitcode", NULL
9496 };
9497
9498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9501 arg2 = (int) SWIG_AsInt(obj1);
9502 if (PyErr_Occurred()) SWIG_fail;
9503 if (arg1) (arg1)->m_exitcode = arg2;
9504
9505 Py_INCREF(Py_None); resultobj = Py_None;
9506 return resultobj;
9507 fail:
9508 return NULL;
9509}
9510
9511
9512static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9513 PyObject *resultobj;
9514 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9515 int result;
9516 PyObject * obj0 = 0 ;
9517 char *kwnames[] = {
9518 (char *) "self", NULL
9519 };
9520
9521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9524 result = (int) ((arg1)->m_exitcode);
9525
9526 resultobj = SWIG_FromInt((int)result);
9527 return resultobj;
9528 fail:
9529 return NULL;
9530}
9531
9532
9533static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9534 PyObject *obj;
9535 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9536 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9537 Py_INCREF(obj);
9538 return Py_BuildValue((char *)"");
9539}
9540static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9541 PyObject *resultobj;
9542 wxString *arg1 = 0 ;
9543 int arg2 = (int) wxEXEC_ASYNC ;
9544 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9545 long result;
9546 bool temp1 = False ;
9547 PyObject * obj0 = 0 ;
9548 PyObject * obj1 = 0 ;
9549 PyObject * obj2 = 0 ;
9550 char *kwnames[] = {
9551 (char *) "command",(char *) "flags",(char *) "process", NULL
9552 };
9553
9554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9555 {
9556 arg1 = wxString_in_helper(obj0);
9557 if (arg1 == NULL) SWIG_fail;
9558 temp1 = True;
9559 }
9560 if (obj1) {
9561 arg2 = (int) SWIG_AsInt(obj1);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 if (obj2) {
9565 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9567 }
9568 {
9569 PyThreadState* __tstate = wxPyBeginAllowThreads();
9570 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9571
9572 wxPyEndAllowThreads(__tstate);
9573 if (PyErr_Occurred()) SWIG_fail;
9574 }
9575 resultobj = SWIG_FromLong((long)result);
9576 {
9577 if (temp1)
9578 delete arg1;
9579 }
9580 return resultobj;
9581 fail:
9582 {
9583 if (temp1)
9584 delete arg1;
9585 }
9586 return NULL;
9587}
9588
9589
9590static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9591 PyObject *resultobj;
9592 int arg1 = (int) wxJOYSTICK1 ;
9593 wxJoystick *result;
9594 PyObject * obj0 = 0 ;
9595 char *kwnames[] = {
9596 (char *) "joystick", NULL
9597 };
9598
9599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9600 if (obj0) {
9601 arg1 = (int) SWIG_AsInt(obj0);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 {
9605 PyThreadState* __tstate = wxPyBeginAllowThreads();
9606 result = (wxJoystick *)new wxJoystick(arg1);
9607
9608 wxPyEndAllowThreads(__tstate);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 }
9611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9612 return resultobj;
9613 fail:
9614 return NULL;
9615}
9616
9617
9618static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9619 PyObject *resultobj;
9620 wxJoystick *arg1 = (wxJoystick *) 0 ;
9621 PyObject * obj0 = 0 ;
9622 char *kwnames[] = {
9623 (char *) "self", NULL
9624 };
9625
9626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9629 {
9630 PyThreadState* __tstate = wxPyBeginAllowThreads();
9631 delete arg1;
9632
9633 wxPyEndAllowThreads(__tstate);
9634 if (PyErr_Occurred()) SWIG_fail;
9635 }
9636 Py_INCREF(Py_None); resultobj = Py_None;
9637 return resultobj;
9638 fail:
9639 return NULL;
9640}
9641
9642
9643static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9644 PyObject *resultobj;
9645 wxJoystick *arg1 = (wxJoystick *) 0 ;
9646 wxPoint result;
9647 PyObject * obj0 = 0 ;
9648 char *kwnames[] = {
9649 (char *) "self", NULL
9650 };
9651
9652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9655 {
9656 PyThreadState* __tstate = wxPyBeginAllowThreads();
9657 result = (arg1)->GetPosition();
9658
9659 wxPyEndAllowThreads(__tstate);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 {
9663 wxPoint * resultptr;
9664 resultptr = new wxPoint((wxPoint &) result);
9665 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9666 }
9667 return resultobj;
9668 fail:
9669 return NULL;
9670}
9671
9672
9673static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9674 PyObject *resultobj;
9675 wxJoystick *arg1 = (wxJoystick *) 0 ;
9676 int result;
9677 PyObject * obj0 = 0 ;
9678 char *kwnames[] = {
9679 (char *) "self", NULL
9680 };
9681
9682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9685 {
9686 PyThreadState* __tstate = wxPyBeginAllowThreads();
9687 result = (int)(arg1)->GetZPosition();
9688
9689 wxPyEndAllowThreads(__tstate);
9690 if (PyErr_Occurred()) SWIG_fail;
9691 }
9692 resultobj = SWIG_FromInt((int)result);
9693 return resultobj;
9694 fail:
9695 return NULL;
9696}
9697
9698
9699static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9700 PyObject *resultobj;
9701 wxJoystick *arg1 = (wxJoystick *) 0 ;
9702 int result;
9703 PyObject * obj0 = 0 ;
9704 char *kwnames[] = {
9705 (char *) "self", NULL
9706 };
9707
9708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9711 {
9712 PyThreadState* __tstate = wxPyBeginAllowThreads();
9713 result = (int)(arg1)->GetButtonState();
9714
9715 wxPyEndAllowThreads(__tstate);
9716 if (PyErr_Occurred()) SWIG_fail;
9717 }
9718 resultobj = SWIG_FromInt((int)result);
9719 return resultobj;
9720 fail:
9721 return NULL;
9722}
9723
9724
9725static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9726 PyObject *resultobj;
9727 wxJoystick *arg1 = (wxJoystick *) 0 ;
9728 int result;
9729 PyObject * obj0 = 0 ;
9730 char *kwnames[] = {
9731 (char *) "self", NULL
9732 };
9733
9734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9737 {
9738 PyThreadState* __tstate = wxPyBeginAllowThreads();
9739 result = (int)(arg1)->GetPOVPosition();
9740
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 resultobj = SWIG_FromInt((int)result);
9745 return resultobj;
9746 fail:
9747 return NULL;
9748}
9749
9750
9751static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9752 PyObject *resultobj;
9753 wxJoystick *arg1 = (wxJoystick *) 0 ;
9754 int result;
9755 PyObject * obj0 = 0 ;
9756 char *kwnames[] = {
9757 (char *) "self", NULL
9758 };
9759
9760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9763 {
9764 PyThreadState* __tstate = wxPyBeginAllowThreads();
9765 result = (int)(arg1)->GetPOVCTSPosition();
9766
9767 wxPyEndAllowThreads(__tstate);
9768 if (PyErr_Occurred()) SWIG_fail;
9769 }
9770 resultobj = SWIG_FromInt((int)result);
9771 return resultobj;
9772 fail:
9773 return NULL;
9774}
9775
9776
9777static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9778 PyObject *resultobj;
9779 wxJoystick *arg1 = (wxJoystick *) 0 ;
9780 int result;
9781 PyObject * obj0 = 0 ;
9782 char *kwnames[] = {
9783 (char *) "self", NULL
9784 };
9785
9786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 result = (int)(arg1)->GetRudderPosition();
9792
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 resultobj = SWIG_FromInt((int)result);
9797 return resultobj;
9798 fail:
9799 return NULL;
9800}
9801
9802
9803static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9804 PyObject *resultobj;
9805 wxJoystick *arg1 = (wxJoystick *) 0 ;
9806 int result;
9807 PyObject * obj0 = 0 ;
9808 char *kwnames[] = {
9809 (char *) "self", NULL
9810 };
9811
9812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9815 {
9816 PyThreadState* __tstate = wxPyBeginAllowThreads();
9817 result = (int)(arg1)->GetUPosition();
9818
9819 wxPyEndAllowThreads(__tstate);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 }
9822 resultobj = SWIG_FromInt((int)result);
9823 return resultobj;
9824 fail:
9825 return NULL;
9826}
9827
9828
9829static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9830 PyObject *resultobj;
9831 wxJoystick *arg1 = (wxJoystick *) 0 ;
9832 int result;
9833 PyObject * obj0 = 0 ;
9834 char *kwnames[] = {
9835 (char *) "self", NULL
9836 };
9837
9838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9841 {
9842 PyThreadState* __tstate = wxPyBeginAllowThreads();
9843 result = (int)(arg1)->GetVPosition();
9844
9845 wxPyEndAllowThreads(__tstate);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 }
9848 resultobj = SWIG_FromInt((int)result);
9849 return resultobj;
9850 fail:
9851 return NULL;
9852}
9853
9854
9855static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9856 PyObject *resultobj;
9857 wxJoystick *arg1 = (wxJoystick *) 0 ;
9858 int result;
9859 PyObject * obj0 = 0 ;
9860 char *kwnames[] = {
9861 (char *) "self", NULL
9862 };
9863
9864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9867 {
9868 PyThreadState* __tstate = wxPyBeginAllowThreads();
9869 result = (int)(arg1)->GetMovementThreshold();
9870
9871 wxPyEndAllowThreads(__tstate);
9872 if (PyErr_Occurred()) SWIG_fail;
9873 }
9874 resultobj = SWIG_FromInt((int)result);
9875 return resultobj;
9876 fail:
9877 return NULL;
9878}
9879
9880
9881static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9882 PyObject *resultobj;
9883 wxJoystick *arg1 = (wxJoystick *) 0 ;
9884 int arg2 ;
9885 PyObject * obj0 = 0 ;
9886 PyObject * obj1 = 0 ;
9887 char *kwnames[] = {
9888 (char *) "self",(char *) "threshold", NULL
9889 };
9890
9891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9894 arg2 = (int) SWIG_AsInt(obj1);
9895 if (PyErr_Occurred()) SWIG_fail;
9896 {
9897 PyThreadState* __tstate = wxPyBeginAllowThreads();
9898 (arg1)->SetMovementThreshold(arg2);
9899
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
9903 Py_INCREF(Py_None); resultobj = Py_None;
9904 return resultobj;
9905 fail:
9906 return NULL;
9907}
9908
9909
9910static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9911 PyObject *resultobj;
9912 wxJoystick *arg1 = (wxJoystick *) 0 ;
9913 bool result;
9914 PyObject * obj0 = 0 ;
9915 char *kwnames[] = {
9916 (char *) "self", NULL
9917 };
9918
9919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9922 {
9923 PyThreadState* __tstate = wxPyBeginAllowThreads();
9924 result = (bool)(arg1)->IsOk();
9925
9926 wxPyEndAllowThreads(__tstate);
9927 if (PyErr_Occurred()) SWIG_fail;
9928 }
9929 {
9930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9931 }
9932 return resultobj;
9933 fail:
9934 return NULL;
9935}
9936
9937
9938static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9939 PyObject *resultobj;
9940 wxJoystick *arg1 = (wxJoystick *) 0 ;
9941 int result;
9942 PyObject * obj0 = 0 ;
9943 char *kwnames[] = {
9944 (char *) "self", NULL
9945 };
9946
9947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = (int)(arg1)->GetNumberJoysticks();
9953
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 resultobj = SWIG_FromInt((int)result);
9958 return resultobj;
9959 fail:
9960 return NULL;
9961}
9962
9963
9964static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
9965 PyObject *resultobj;
9966 wxJoystick *arg1 = (wxJoystick *) 0 ;
9967 int result;
9968 PyObject * obj0 = 0 ;
9969 char *kwnames[] = {
9970 (char *) "self", NULL
9971 };
9972
9973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9976 {
9977 PyThreadState* __tstate = wxPyBeginAllowThreads();
9978 result = (int)(arg1)->GetManufacturerId();
9979
9980 wxPyEndAllowThreads(__tstate);
9981 if (PyErr_Occurred()) SWIG_fail;
9982 }
9983 resultobj = SWIG_FromInt((int)result);
9984 return resultobj;
9985 fail:
9986 return NULL;
9987}
9988
9989
9990static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
9991 PyObject *resultobj;
9992 wxJoystick *arg1 = (wxJoystick *) 0 ;
9993 int result;
9994 PyObject * obj0 = 0 ;
9995 char *kwnames[] = {
9996 (char *) "self", NULL
9997 };
9998
9999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10002 {
10003 PyThreadState* __tstate = wxPyBeginAllowThreads();
10004 result = (int)(arg1)->GetProductId();
10005
10006 wxPyEndAllowThreads(__tstate);
10007 if (PyErr_Occurred()) SWIG_fail;
10008 }
10009 resultobj = SWIG_FromInt((int)result);
10010 return resultobj;
10011 fail:
10012 return NULL;
10013}
10014
10015
10016static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
10017 PyObject *resultobj;
10018 wxJoystick *arg1 = (wxJoystick *) 0 ;
10019 wxString result;
10020 PyObject * obj0 = 0 ;
10021 char *kwnames[] = {
10022 (char *) "self", NULL
10023 };
10024
10025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10028 {
10029 PyThreadState* __tstate = wxPyBeginAllowThreads();
10030 result = (arg1)->GetProductName();
10031
10032 wxPyEndAllowThreads(__tstate);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 }
10035 {
10036#if wxUSE_UNICODE
10037 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10038#else
10039 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10040#endif
10041 }
10042 return resultobj;
10043 fail:
10044 return NULL;
10045}
10046
10047
10048static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10049 PyObject *resultobj;
10050 wxJoystick *arg1 = (wxJoystick *) 0 ;
10051 int result;
10052 PyObject * obj0 = 0 ;
10053 char *kwnames[] = {
10054 (char *) "self", NULL
10055 };
10056
10057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 result = (int)(arg1)->GetXMin();
10063
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 resultobj = SWIG_FromInt((int)result);
10068 return resultobj;
10069 fail:
10070 return NULL;
10071}
10072
10073
10074static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj;
10076 wxJoystick *arg1 = (wxJoystick *) 0 ;
10077 int result;
10078 PyObject * obj0 = 0 ;
10079 char *kwnames[] = {
10080 (char *) "self", NULL
10081 };
10082
10083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10086 {
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
10088 result = (int)(arg1)->GetYMin();
10089
10090 wxPyEndAllowThreads(__tstate);
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 resultobj = SWIG_FromInt((int)result);
10094 return resultobj;
10095 fail:
10096 return NULL;
10097}
10098
10099
10100static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10101 PyObject *resultobj;
10102 wxJoystick *arg1 = (wxJoystick *) 0 ;
10103 int result;
10104 PyObject * obj0 = 0 ;
10105 char *kwnames[] = {
10106 (char *) "self", NULL
10107 };
10108
10109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10112 {
10113 PyThreadState* __tstate = wxPyBeginAllowThreads();
10114 result = (int)(arg1)->GetZMin();
10115
10116 wxPyEndAllowThreads(__tstate);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 resultobj = SWIG_FromInt((int)result);
10120 return resultobj;
10121 fail:
10122 return NULL;
10123}
10124
10125
10126static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10127 PyObject *resultobj;
10128 wxJoystick *arg1 = (wxJoystick *) 0 ;
10129 int result;
10130 PyObject * obj0 = 0 ;
10131 char *kwnames[] = {
10132 (char *) "self", NULL
10133 };
10134
10135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10138 {
10139 PyThreadState* __tstate = wxPyBeginAllowThreads();
10140 result = (int)(arg1)->GetXMax();
10141
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 resultobj = SWIG_FromInt((int)result);
10146 return resultobj;
10147 fail:
10148 return NULL;
10149}
10150
10151
10152static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10153 PyObject *resultobj;
10154 wxJoystick *arg1 = (wxJoystick *) 0 ;
10155 int result;
10156 PyObject * obj0 = 0 ;
10157 char *kwnames[] = {
10158 (char *) "self", NULL
10159 };
10160
10161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10164 {
10165 PyThreadState* __tstate = wxPyBeginAllowThreads();
10166 result = (int)(arg1)->GetYMax();
10167
10168 wxPyEndAllowThreads(__tstate);
10169 if (PyErr_Occurred()) SWIG_fail;
10170 }
10171 resultobj = SWIG_FromInt((int)result);
10172 return resultobj;
10173 fail:
10174 return NULL;
10175}
10176
10177
10178static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10179 PyObject *resultobj;
10180 wxJoystick *arg1 = (wxJoystick *) 0 ;
10181 int result;
10182 PyObject * obj0 = 0 ;
10183 char *kwnames[] = {
10184 (char *) "self", NULL
10185 };
10186
10187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10190 {
10191 PyThreadState* __tstate = wxPyBeginAllowThreads();
10192 result = (int)(arg1)->GetZMax();
10193
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 resultobj = SWIG_FromInt((int)result);
10198 return resultobj;
10199 fail:
10200 return NULL;
10201}
10202
10203
10204static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj;
10206 wxJoystick *arg1 = (wxJoystick *) 0 ;
10207 int result;
10208 PyObject * obj0 = 0 ;
10209 char *kwnames[] = {
10210 (char *) "self", NULL
10211 };
10212
10213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10216 {
10217 PyThreadState* __tstate = wxPyBeginAllowThreads();
10218 result = (int)(arg1)->GetNumberButtons();
10219
10220 wxPyEndAllowThreads(__tstate);
10221 if (PyErr_Occurred()) SWIG_fail;
10222 }
10223 resultobj = SWIG_FromInt((int)result);
10224 return resultobj;
10225 fail:
10226 return NULL;
10227}
10228
10229
10230static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10231 PyObject *resultobj;
10232 wxJoystick *arg1 = (wxJoystick *) 0 ;
10233 int result;
10234 PyObject * obj0 = 0 ;
10235 char *kwnames[] = {
10236 (char *) "self", NULL
10237 };
10238
10239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 result = (int)(arg1)->GetNumberAxes();
10245
10246 wxPyEndAllowThreads(__tstate);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 resultobj = SWIG_FromInt((int)result);
10250 return resultobj;
10251 fail:
10252 return NULL;
10253}
10254
10255
10256static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj;
10258 wxJoystick *arg1 = (wxJoystick *) 0 ;
10259 int result;
10260 PyObject * obj0 = 0 ;
10261 char *kwnames[] = {
10262 (char *) "self", NULL
10263 };
10264
10265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10268 {
10269 PyThreadState* __tstate = wxPyBeginAllowThreads();
10270 result = (int)(arg1)->GetMaxButtons();
10271
10272 wxPyEndAllowThreads(__tstate);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 resultobj = SWIG_FromInt((int)result);
10276 return resultobj;
10277 fail:
10278 return NULL;
10279}
10280
10281
10282static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj;
10284 wxJoystick *arg1 = (wxJoystick *) 0 ;
10285 int result;
10286 PyObject * obj0 = 0 ;
10287 char *kwnames[] = {
10288 (char *) "self", NULL
10289 };
10290
10291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 result = (int)(arg1)->GetMaxAxes();
10297
10298 wxPyEndAllowThreads(__tstate);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 resultobj = SWIG_FromInt((int)result);
10302 return resultobj;
10303 fail:
10304 return NULL;
10305}
10306
10307
10308static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10309 PyObject *resultobj;
10310 wxJoystick *arg1 = (wxJoystick *) 0 ;
10311 int result;
10312 PyObject * obj0 = 0 ;
10313 char *kwnames[] = {
10314 (char *) "self", NULL
10315 };
10316
10317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10320 {
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 result = (int)(arg1)->GetPollingMin();
10323
10324 wxPyEndAllowThreads(__tstate);
10325 if (PyErr_Occurred()) SWIG_fail;
10326 }
10327 resultobj = SWIG_FromInt((int)result);
10328 return resultobj;
10329 fail:
10330 return NULL;
10331}
10332
10333
10334static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10335 PyObject *resultobj;
10336 wxJoystick *arg1 = (wxJoystick *) 0 ;
10337 int result;
10338 PyObject * obj0 = 0 ;
10339 char *kwnames[] = {
10340 (char *) "self", NULL
10341 };
10342
10343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10346 {
10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
10348 result = (int)(arg1)->GetPollingMax();
10349
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = SWIG_FromInt((int)result);
10354 return resultobj;
10355 fail:
10356 return NULL;
10357}
10358
10359
10360static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj;
10362 wxJoystick *arg1 = (wxJoystick *) 0 ;
10363 int result;
10364 PyObject * obj0 = 0 ;
10365 char *kwnames[] = {
10366 (char *) "self", NULL
10367 };
10368
10369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10372 {
10373 PyThreadState* __tstate = wxPyBeginAllowThreads();
10374 result = (int)(arg1)->GetRudderMin();
10375
10376 wxPyEndAllowThreads(__tstate);
10377 if (PyErr_Occurred()) SWIG_fail;
10378 }
10379 resultobj = SWIG_FromInt((int)result);
10380 return resultobj;
10381 fail:
10382 return NULL;
10383}
10384
10385
10386static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj;
10388 wxJoystick *arg1 = (wxJoystick *) 0 ;
10389 int result;
10390 PyObject * obj0 = 0 ;
10391 char *kwnames[] = {
10392 (char *) "self", NULL
10393 };
10394
10395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10400 result = (int)(arg1)->GetRudderMax();
10401
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 resultobj = SWIG_FromInt((int)result);
10406 return resultobj;
10407 fail:
10408 return NULL;
10409}
10410
10411
10412static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10413 PyObject *resultobj;
10414 wxJoystick *arg1 = (wxJoystick *) 0 ;
10415 int result;
10416 PyObject * obj0 = 0 ;
10417 char *kwnames[] = {
10418 (char *) "self", NULL
10419 };
10420
10421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10424 {
10425 PyThreadState* __tstate = wxPyBeginAllowThreads();
10426 result = (int)(arg1)->GetUMin();
10427
10428 wxPyEndAllowThreads(__tstate);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 resultobj = SWIG_FromInt((int)result);
10432 return resultobj;
10433 fail:
10434 return NULL;
10435}
10436
10437
10438static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10439 PyObject *resultobj;
10440 wxJoystick *arg1 = (wxJoystick *) 0 ;
10441 int result;
10442 PyObject * obj0 = 0 ;
10443 char *kwnames[] = {
10444 (char *) "self", NULL
10445 };
10446
10447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10450 {
10451 PyThreadState* __tstate = wxPyBeginAllowThreads();
10452 result = (int)(arg1)->GetUMax();
10453
10454 wxPyEndAllowThreads(__tstate);
10455 if (PyErr_Occurred()) SWIG_fail;
10456 }
10457 resultobj = SWIG_FromInt((int)result);
10458 return resultobj;
10459 fail:
10460 return NULL;
10461}
10462
10463
10464static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10465 PyObject *resultobj;
10466 wxJoystick *arg1 = (wxJoystick *) 0 ;
10467 int result;
10468 PyObject * obj0 = 0 ;
10469 char *kwnames[] = {
10470 (char *) "self", NULL
10471 };
10472
10473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10476 {
10477 PyThreadState* __tstate = wxPyBeginAllowThreads();
10478 result = (int)(arg1)->GetVMin();
10479
10480 wxPyEndAllowThreads(__tstate);
10481 if (PyErr_Occurred()) SWIG_fail;
10482 }
10483 resultobj = SWIG_FromInt((int)result);
10484 return resultobj;
10485 fail:
10486 return NULL;
10487}
10488
10489
10490static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10491 PyObject *resultobj;
10492 wxJoystick *arg1 = (wxJoystick *) 0 ;
10493 int result;
10494 PyObject * obj0 = 0 ;
10495 char *kwnames[] = {
10496 (char *) "self", NULL
10497 };
10498
10499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10502 {
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 result = (int)(arg1)->GetVMax();
10505
10506 wxPyEndAllowThreads(__tstate);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 resultobj = SWIG_FromInt((int)result);
10510 return resultobj;
10511 fail:
10512 return NULL;
10513}
10514
10515
10516static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10517 PyObject *resultobj;
10518 wxJoystick *arg1 = (wxJoystick *) 0 ;
10519 bool result;
10520 PyObject * obj0 = 0 ;
10521 char *kwnames[] = {
10522 (char *) "self", NULL
10523 };
10524
10525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 result = (bool)(arg1)->HasRudder();
10531
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 {
10536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10537 }
10538 return resultobj;
10539 fail:
10540 return NULL;
10541}
10542
10543
10544static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj;
10546 wxJoystick *arg1 = (wxJoystick *) 0 ;
10547 bool result;
10548 PyObject * obj0 = 0 ;
10549 char *kwnames[] = {
10550 (char *) "self", NULL
10551 };
10552
10553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10556 {
10557 PyThreadState* __tstate = wxPyBeginAllowThreads();
10558 result = (bool)(arg1)->HasZ();
10559
10560 wxPyEndAllowThreads(__tstate);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 {
10564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10565 }
10566 return resultobj;
10567 fail:
10568 return NULL;
10569}
10570
10571
10572static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10573 PyObject *resultobj;
10574 wxJoystick *arg1 = (wxJoystick *) 0 ;
10575 bool result;
10576 PyObject * obj0 = 0 ;
10577 char *kwnames[] = {
10578 (char *) "self", NULL
10579 };
10580
10581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10584 {
10585 PyThreadState* __tstate = wxPyBeginAllowThreads();
10586 result = (bool)(arg1)->HasU();
10587
10588 wxPyEndAllowThreads(__tstate);
10589 if (PyErr_Occurred()) SWIG_fail;
10590 }
10591 {
10592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10593 }
10594 return resultobj;
10595 fail:
10596 return NULL;
10597}
10598
10599
10600static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10601 PyObject *resultobj;
10602 wxJoystick *arg1 = (wxJoystick *) 0 ;
10603 bool result;
10604 PyObject * obj0 = 0 ;
10605 char *kwnames[] = {
10606 (char *) "self", NULL
10607 };
10608
10609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10612 {
10613 PyThreadState* __tstate = wxPyBeginAllowThreads();
10614 result = (bool)(arg1)->HasV();
10615
10616 wxPyEndAllowThreads(__tstate);
10617 if (PyErr_Occurred()) SWIG_fail;
10618 }
10619 {
10620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10621 }
10622 return resultobj;
10623 fail:
10624 return NULL;
10625}
10626
10627
10628static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10629 PyObject *resultobj;
10630 wxJoystick *arg1 = (wxJoystick *) 0 ;
10631 bool result;
10632 PyObject * obj0 = 0 ;
10633 char *kwnames[] = {
10634 (char *) "self", NULL
10635 };
10636
10637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10640 {
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 result = (bool)(arg1)->HasPOV();
10643
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 {
10648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10649 }
10650 return resultobj;
10651 fail:
10652 return NULL;
10653}
10654
10655
10656static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10657 PyObject *resultobj;
10658 wxJoystick *arg1 = (wxJoystick *) 0 ;
10659 bool result;
10660 PyObject * obj0 = 0 ;
10661 char *kwnames[] = {
10662 (char *) "self", NULL
10663 };
10664
10665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 result = (bool)(arg1)->HasPOV4Dir();
10671
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) SWIG_fail;
10674 }
10675 {
10676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10677 }
10678 return resultobj;
10679 fail:
10680 return NULL;
10681}
10682
10683
10684static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10685 PyObject *resultobj;
10686 wxJoystick *arg1 = (wxJoystick *) 0 ;
10687 bool result;
10688 PyObject * obj0 = 0 ;
10689 char *kwnames[] = {
10690 (char *) "self", NULL
10691 };
10692
10693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10696 {
10697 PyThreadState* __tstate = wxPyBeginAllowThreads();
10698 result = (bool)(arg1)->HasPOVCTS();
10699
10700 wxPyEndAllowThreads(__tstate);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 }
10703 {
10704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10705 }
10706 return resultobj;
10707 fail:
10708 return NULL;
10709}
10710
10711
10712static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10713 PyObject *resultobj;
10714 wxJoystick *arg1 = (wxJoystick *) 0 ;
10715 wxWindow *arg2 = (wxWindow *) 0 ;
10716 int arg3 = (int) 0 ;
10717 bool result;
10718 PyObject * obj0 = 0 ;
10719 PyObject * obj1 = 0 ;
10720 PyObject * obj2 = 0 ;
10721 char *kwnames[] = {
10722 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10723 };
10724
10725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10728 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10730 if (obj2) {
10731 arg3 = (int) SWIG_AsInt(obj2);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 {
10735 PyThreadState* __tstate = wxPyBeginAllowThreads();
10736 result = (bool)(arg1)->SetCapture(arg2,arg3);
10737
10738 wxPyEndAllowThreads(__tstate);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 }
10741 {
10742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10743 }
10744 return resultobj;
10745 fail:
10746 return NULL;
10747}
10748
10749
10750static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10751 PyObject *resultobj;
10752 wxJoystick *arg1 = (wxJoystick *) 0 ;
10753 bool result;
10754 PyObject * obj0 = 0 ;
10755 char *kwnames[] = {
10756 (char *) "self", NULL
10757 };
10758
10759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10762 {
10763 PyThreadState* __tstate = wxPyBeginAllowThreads();
10764 result = (bool)(arg1)->ReleaseCapture();
10765
10766 wxPyEndAllowThreads(__tstate);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 {
10770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10771 }
10772 return resultobj;
10773 fail:
10774 return NULL;
10775}
10776
10777
10778static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10779 PyObject *obj;
10780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10781 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10782 Py_INCREF(obj);
10783 return Py_BuildValue((char *)"");
10784}
10785static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10786 PyObject *resultobj;
10787 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10788 wxPoint *arg2 = (wxPoint *) 0 ;
10789 PyObject * obj0 = 0 ;
10790 PyObject * obj1 = 0 ;
10791 char *kwnames[] = {
10792 (char *) "self",(char *) "m_pos", NULL
10793 };
10794
10795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10798 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10800 if (arg1) (arg1)->m_pos = *arg2;
10801
10802 Py_INCREF(Py_None); resultobj = Py_None;
10803 return resultobj;
10804 fail:
10805 return NULL;
10806}
10807
10808
10809static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10810 PyObject *resultobj;
10811 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10812 wxPoint *result;
10813 PyObject * obj0 = 0 ;
10814 char *kwnames[] = {
10815 (char *) "self", NULL
10816 };
10817
10818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10821 result = (wxPoint *)& ((arg1)->m_pos);
10822
10823 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10824 return resultobj;
10825 fail:
10826 return NULL;
10827}
10828
10829
10830static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10831 PyObject *resultobj;
10832 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10833 int arg2 ;
10834 PyObject * obj0 = 0 ;
10835 PyObject * obj1 = 0 ;
10836 char *kwnames[] = {
10837 (char *) "self",(char *) "m_zPosition", NULL
10838 };
10839
10840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10843 arg2 = (int) SWIG_AsInt(obj1);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 if (arg1) (arg1)->m_zPosition = arg2;
10846
10847 Py_INCREF(Py_None); resultobj = Py_None;
10848 return resultobj;
10849 fail:
10850 return NULL;
10851}
10852
10853
10854static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10855 PyObject *resultobj;
10856 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10857 int result;
10858 PyObject * obj0 = 0 ;
10859 char *kwnames[] = {
10860 (char *) "self", NULL
10861 };
10862
10863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10866 result = (int) ((arg1)->m_zPosition);
10867
10868 resultobj = SWIG_FromInt((int)result);
10869 return resultobj;
10870 fail:
10871 return NULL;
10872}
10873
10874
10875static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10876 PyObject *resultobj;
10877 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10878 int arg2 ;
10879 PyObject * obj0 = 0 ;
10880 PyObject * obj1 = 0 ;
10881 char *kwnames[] = {
10882 (char *) "self",(char *) "m_buttonChange", NULL
10883 };
10884
10885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10888 arg2 = (int) SWIG_AsInt(obj1);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 if (arg1) (arg1)->m_buttonChange = arg2;
10891
10892 Py_INCREF(Py_None); resultobj = Py_None;
10893 return resultobj;
10894 fail:
10895 return NULL;
10896}
10897
10898
10899static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10900 PyObject *resultobj;
10901 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10902 int result;
10903 PyObject * obj0 = 0 ;
10904 char *kwnames[] = {
10905 (char *) "self", NULL
10906 };
10907
10908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10911 result = (int) ((arg1)->m_buttonChange);
10912
10913 resultobj = SWIG_FromInt((int)result);
10914 return resultobj;
10915 fail:
10916 return NULL;
10917}
10918
10919
10920static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10921 PyObject *resultobj;
10922 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10923 int arg2 ;
10924 PyObject * obj0 = 0 ;
10925 PyObject * obj1 = 0 ;
10926 char *kwnames[] = {
10927 (char *) "self",(char *) "m_buttonState", NULL
10928 };
10929
10930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10933 arg2 = (int) SWIG_AsInt(obj1);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 if (arg1) (arg1)->m_buttonState = arg2;
10936
10937 Py_INCREF(Py_None); resultobj = Py_None;
10938 return resultobj;
10939 fail:
10940 return NULL;
10941}
10942
10943
10944static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10945 PyObject *resultobj;
10946 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10947 int result;
10948 PyObject * obj0 = 0 ;
10949 char *kwnames[] = {
10950 (char *) "self", NULL
10951 };
10952
10953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10956 result = (int) ((arg1)->m_buttonState);
10957
10958 resultobj = SWIG_FromInt((int)result);
10959 return resultobj;
10960 fail:
10961 return NULL;
10962}
10963
10964
10965static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10966 PyObject *resultobj;
10967 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10968 int arg2 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 char *kwnames[] = {
10972 (char *) "self",(char *) "m_joyStick", NULL
10973 };
10974
10975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
10976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10978 arg2 = (int) SWIG_AsInt(obj1);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 if (arg1) (arg1)->m_joyStick = arg2;
10981
10982 Py_INCREF(Py_None); resultobj = Py_None;
10983 return resultobj;
10984 fail:
10985 return NULL;
10986}
10987
10988
10989static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10990 PyObject *resultobj;
10991 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10992 int result;
10993 PyObject * obj0 = 0 ;
10994 char *kwnames[] = {
10995 (char *) "self", NULL
10996 };
10997
10998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11001 result = (int) ((arg1)->m_joyStick);
11002
11003 resultobj = SWIG_FromInt((int)result);
11004 return resultobj;
11005 fail:
11006 return NULL;
11007}
11008
11009
11010static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj;
11012 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11013 int arg2 = (int) 0 ;
11014 int arg3 = (int) wxJOYSTICK1 ;
11015 int arg4 = (int) 0 ;
11016 wxJoystickEvent *result;
11017 PyObject * obj0 = 0 ;
11018 PyObject * obj1 = 0 ;
11019 PyObject * obj2 = 0 ;
11020 PyObject * obj3 = 0 ;
11021 char *kwnames[] = {
11022 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11023 };
11024
11025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11026 if (obj0) {
11027 arg1 = (wxEventType) SWIG_AsInt(obj0);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 if (obj1) {
11031 arg2 = (int) SWIG_AsInt(obj1);
11032 if (PyErr_Occurred()) SWIG_fail;
11033 }
11034 if (obj2) {
11035 arg3 = (int) SWIG_AsInt(obj2);
11036 if (PyErr_Occurred()) SWIG_fail;
11037 }
11038 if (obj3) {
11039 arg4 = (int) SWIG_AsInt(obj3);
11040 if (PyErr_Occurred()) SWIG_fail;
11041 }
11042 {
11043 PyThreadState* __tstate = wxPyBeginAllowThreads();
11044 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11045
11046 wxPyEndAllowThreads(__tstate);
11047 if (PyErr_Occurred()) SWIG_fail;
11048 }
11049 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11050 return resultobj;
11051 fail:
11052 return NULL;
11053}
11054
11055
11056static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11057 PyObject *resultobj;
11058 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11059 wxPoint result;
11060 PyObject * obj0 = 0 ;
11061 char *kwnames[] = {
11062 (char *) "self", NULL
11063 };
11064
11065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11068 {
11069 PyThreadState* __tstate = wxPyBeginAllowThreads();
11070 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11071
11072 wxPyEndAllowThreads(__tstate);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 }
11075 {
11076 wxPoint * resultptr;
11077 resultptr = new wxPoint((wxPoint &) result);
11078 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11079 }
11080 return resultobj;
11081 fail:
11082 return NULL;
11083}
11084
11085
11086static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11087 PyObject *resultobj;
11088 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11089 int result;
11090 PyObject * obj0 = 0 ;
11091 char *kwnames[] = {
11092 (char *) "self", NULL
11093 };
11094
11095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11101
11102 wxPyEndAllowThreads(__tstate);
11103 if (PyErr_Occurred()) SWIG_fail;
11104 }
11105 resultobj = SWIG_FromInt((int)result);
11106 return resultobj;
11107 fail:
11108 return NULL;
11109}
11110
11111
11112static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11113 PyObject *resultobj;
11114 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11115 int result;
11116 PyObject * obj0 = 0 ;
11117 char *kwnames[] = {
11118 (char *) "self", NULL
11119 };
11120
11121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11124 {
11125 PyThreadState* __tstate = wxPyBeginAllowThreads();
11126 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11127
11128 wxPyEndAllowThreads(__tstate);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 }
11131 resultobj = SWIG_FromInt((int)result);
11132 return resultobj;
11133 fail:
11134 return NULL;
11135}
11136
11137
11138static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11139 PyObject *resultobj;
11140 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11141 int result;
11142 PyObject * obj0 = 0 ;
11143 char *kwnames[] = {
11144 (char *) "self", NULL
11145 };
11146
11147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11150 {
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
11152 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11153
11154 wxPyEndAllowThreads(__tstate);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 }
11157 resultobj = SWIG_FromInt((int)result);
11158 return resultobj;
11159 fail:
11160 return NULL;
11161}
11162
11163
11164static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11165 PyObject *resultobj;
11166 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11167 int result;
11168 PyObject * obj0 = 0 ;
11169 char *kwnames[] = {
11170 (char *) "self", NULL
11171 };
11172
11173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11176 {
11177 PyThreadState* __tstate = wxPyBeginAllowThreads();
11178 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11179
11180 wxPyEndAllowThreads(__tstate);
11181 if (PyErr_Occurred()) SWIG_fail;
11182 }
11183 resultobj = SWIG_FromInt((int)result);
11184 return resultobj;
11185 fail:
11186 return NULL;
11187}
11188
11189
11190static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11191 PyObject *resultobj;
11192 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11193 int arg2 ;
11194 PyObject * obj0 = 0 ;
11195 PyObject * obj1 = 0 ;
11196 char *kwnames[] = {
11197 (char *) "self",(char *) "stick", NULL
11198 };
11199
11200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11203 arg2 = (int) SWIG_AsInt(obj1);
11204 if (PyErr_Occurred()) SWIG_fail;
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 (arg1)->SetJoystick(arg2);
11208
11209 wxPyEndAllowThreads(__tstate);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 }
11212 Py_INCREF(Py_None); resultobj = Py_None;
11213 return resultobj;
11214 fail:
11215 return NULL;
11216}
11217
11218
11219static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11220 PyObject *resultobj;
11221 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11222 int arg2 ;
11223 PyObject * obj0 = 0 ;
11224 PyObject * obj1 = 0 ;
11225 char *kwnames[] = {
11226 (char *) "self",(char *) "state", NULL
11227 };
11228
11229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11232 arg2 = (int) SWIG_AsInt(obj1);
11233 if (PyErr_Occurred()) SWIG_fail;
11234 {
11235 PyThreadState* __tstate = wxPyBeginAllowThreads();
11236 (arg1)->SetButtonState(arg2);
11237
11238 wxPyEndAllowThreads(__tstate);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 }
11241 Py_INCREF(Py_None); resultobj = Py_None;
11242 return resultobj;
11243 fail:
11244 return NULL;
11245}
11246
11247
11248static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11249 PyObject *resultobj;
11250 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11251 int arg2 ;
11252 PyObject * obj0 = 0 ;
11253 PyObject * obj1 = 0 ;
11254 char *kwnames[] = {
11255 (char *) "self",(char *) "change", NULL
11256 };
11257
11258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11261 arg2 = (int) SWIG_AsInt(obj1);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 {
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 (arg1)->SetButtonChange(arg2);
11266
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 Py_INCREF(Py_None); resultobj = Py_None;
11271 return resultobj;
11272 fail:
11273 return NULL;
11274}
11275
11276
11277static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11278 PyObject *resultobj;
11279 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11280 wxPoint *arg2 = 0 ;
11281 wxPoint temp2 ;
11282 PyObject * obj0 = 0 ;
11283 PyObject * obj1 = 0 ;
11284 char *kwnames[] = {
11285 (char *) "self",(char *) "pos", NULL
11286 };
11287
11288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11291 {
11292 arg2 = &temp2;
11293 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11294 }
11295 {
11296 PyThreadState* __tstate = wxPyBeginAllowThreads();
11297 (arg1)->SetPosition((wxPoint const &)*arg2);
11298
11299 wxPyEndAllowThreads(__tstate);
11300 if (PyErr_Occurred()) SWIG_fail;
11301 }
11302 Py_INCREF(Py_None); resultobj = Py_None;
11303 return resultobj;
11304 fail:
11305 return NULL;
11306}
11307
11308
11309static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11310 PyObject *resultobj;
11311 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11312 int arg2 ;
11313 PyObject * obj0 = 0 ;
11314 PyObject * obj1 = 0 ;
11315 char *kwnames[] = {
11316 (char *) "self",(char *) "zPos", NULL
11317 };
11318
11319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11322 arg2 = (int) SWIG_AsInt(obj1);
11323 if (PyErr_Occurred()) SWIG_fail;
11324 {
11325 PyThreadState* __tstate = wxPyBeginAllowThreads();
11326 (arg1)->SetZPosition(arg2);
11327
11328 wxPyEndAllowThreads(__tstate);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 }
11331 Py_INCREF(Py_None); resultobj = Py_None;
11332 return resultobj;
11333 fail:
11334 return NULL;
11335}
11336
11337
11338static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11339 PyObject *resultobj;
11340 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11341 bool result;
11342 PyObject * obj0 = 0 ;
11343 char *kwnames[] = {
11344 (char *) "self", NULL
11345 };
11346
11347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11350 {
11351 PyThreadState* __tstate = wxPyBeginAllowThreads();
11352 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11353
11354 wxPyEndAllowThreads(__tstate);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 {
11358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11359 }
11360 return resultobj;
11361 fail:
11362 return NULL;
11363}
11364
11365
11366static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11367 PyObject *resultobj;
11368 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11369 bool result;
11370 PyObject * obj0 = 0 ;
11371 char *kwnames[] = {
11372 (char *) "self", NULL
11373 };
11374
11375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11378 {
11379 PyThreadState* __tstate = wxPyBeginAllowThreads();
11380 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11381
11382 wxPyEndAllowThreads(__tstate);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 }
11385 {
11386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11387 }
11388 return resultobj;
11389 fail:
11390 return NULL;
11391}
11392
11393
11394static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11395 PyObject *resultobj;
11396 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11397 bool result;
11398 PyObject * obj0 = 0 ;
11399 char *kwnames[] = {
11400 (char *) "self", NULL
11401 };
11402
11403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11406 {
11407 PyThreadState* __tstate = wxPyBeginAllowThreads();
11408 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11409
11410 wxPyEndAllowThreads(__tstate);
11411 if (PyErr_Occurred()) SWIG_fail;
11412 }
11413 {
11414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11415 }
11416 return resultobj;
11417 fail:
11418 return NULL;
11419}
11420
11421
11422static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11423 PyObject *resultobj;
11424 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11425 int arg2 = (int) wxJOY_BUTTON_ANY ;
11426 bool result;
11427 PyObject * obj0 = 0 ;
11428 PyObject * obj1 = 0 ;
11429 char *kwnames[] = {
11430 (char *) "self",(char *) "but", NULL
11431 };
11432
11433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11436 if (obj1) {
11437 arg2 = (int) SWIG_AsInt(obj1);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11443
11444 wxPyEndAllowThreads(__tstate);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 }
11447 {
11448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11449 }
11450 return resultobj;
11451 fail:
11452 return NULL;
11453}
11454
11455
11456static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11457 PyObject *resultobj;
11458 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11459 int arg2 = (int) wxJOY_BUTTON_ANY ;
11460 bool result;
11461 PyObject * obj0 = 0 ;
11462 PyObject * obj1 = 0 ;
11463 char *kwnames[] = {
11464 (char *) "self",(char *) "but", NULL
11465 };
11466
11467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11470 if (obj1) {
11471 arg2 = (int) SWIG_AsInt(obj1);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 {
11475 PyThreadState* __tstate = wxPyBeginAllowThreads();
11476 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11477
11478 wxPyEndAllowThreads(__tstate);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 {
11482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11483 }
11484 return resultobj;
11485 fail:
11486 return NULL;
11487}
11488
11489
11490static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11491 PyObject *resultobj;
11492 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11493 int arg2 = (int) wxJOY_BUTTON_ANY ;
11494 bool result;
11495 PyObject * obj0 = 0 ;
11496 PyObject * obj1 = 0 ;
11497 char *kwnames[] = {
11498 (char *) "self",(char *) "but", NULL
11499 };
11500
11501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11504 if (obj1) {
11505 arg2 = (int) SWIG_AsInt(obj1);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 {
11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
11510 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11511
11512 wxPyEndAllowThreads(__tstate);
11513 if (PyErr_Occurred()) SWIG_fail;
11514 }
11515 {
11516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11517 }
11518 return resultobj;
11519 fail:
11520 return NULL;
11521}
11522
11523
11524static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11525 PyObject *obj;
11526 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11527 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11528 Py_INCREF(obj);
11529 return Py_BuildValue((char *)"");
11530}
0346c964 11531static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 11532 PyObject *resultobj;
0346c964
RD
11533 wxString const &arg1_defvalue = wxPyEmptyString ;
11534 wxString *arg1 = (wxString *) &arg1_defvalue ;
d55e5bfc
RD
11535 wxSound *result;
11536 bool temp1 = False ;
11537 PyObject * obj0 = 0 ;
0346c964
RD
11538 char *kwnames[] = {
11539 (char *) "fileName", NULL
11540 };
d55e5bfc 11541
0346c964
RD
11542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11543 if (obj0) {
11544 {
11545 arg1 = wxString_in_helper(obj0);
11546 if (arg1 == NULL) SWIG_fail;
11547 temp1 = True;
11548 }
d55e5bfc
RD
11549 }
11550 {
11551 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 11552 result = (wxSound *)new_wxSound((wxString const &)*arg1);
d55e5bfc
RD
11553
11554 wxPyEndAllowThreads(__tstate);
11555 if (PyErr_Occurred()) SWIG_fail;
11556 }
11557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11558 {
11559 if (temp1)
11560 delete arg1;
11561 }
11562 return resultobj;
11563 fail:
11564 {
11565 if (temp1)
11566 delete arg1;
11567 }
11568 return NULL;
11569}
11570
11571
0346c964 11572static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 11573 PyObject *resultobj;
0346c964 11574 PyObject *arg1 = (PyObject *) 0 ;
d55e5bfc
RD
11575 wxSound *result;
11576 PyObject * obj0 = 0 ;
0346c964
RD
11577 char *kwnames[] = {
11578 (char *) "data", NULL
11579 };
d55e5bfc 11580
0346c964
RD
11581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11582 arg1 = obj0;
d55e5bfc
RD
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 11585 result = (wxSound *)new_wxSound(arg1);
d55e5bfc
RD
11586
11587 wxPyEndAllowThreads(__tstate);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11591 return resultobj;
11592 fail:
11593 return NULL;
11594}
11595
11596
d55e5bfc
RD
11597static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11598 PyObject *resultobj;
11599 wxSound *arg1 = (wxSound *) 0 ;
11600 PyObject * obj0 = 0 ;
11601 char *kwnames[] = {
11602 (char *) "self", NULL
11603 };
11604
11605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11608 {
11609 PyThreadState* __tstate = wxPyBeginAllowThreads();
11610 delete arg1;
11611
11612 wxPyEndAllowThreads(__tstate);
11613 if (PyErr_Occurred()) SWIG_fail;
11614 }
11615 Py_INCREF(Py_None); resultobj = Py_None;
11616 return resultobj;
11617 fail:
11618 return NULL;
11619}
11620
11621
0346c964 11622static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11623 PyObject *resultobj;
11624 wxSound *arg1 = (wxSound *) 0 ;
11625 wxString *arg2 = 0 ;
d55e5bfc
RD
11626 bool result;
11627 bool temp2 = False ;
11628 PyObject * obj0 = 0 ;
11629 PyObject * obj1 = 0 ;
0346c964
RD
11630 char *kwnames[] = {
11631 (char *) "self",(char *) "fileName", NULL
11632 };
d55e5bfc 11633
0346c964 11634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11637 {
11638 arg2 = wxString_in_helper(obj1);
11639 if (arg2 == NULL) SWIG_fail;
11640 temp2 = True;
11641 }
d55e5bfc
RD
11642 {
11643 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 11644 result = (bool)(arg1)->Create((wxString const &)*arg2);
d55e5bfc
RD
11645
11646 wxPyEndAllowThreads(__tstate);
11647 if (PyErr_Occurred()) SWIG_fail;
11648 }
11649 {
11650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11651 }
11652 {
11653 if (temp2)
11654 delete arg2;
11655 }
11656 return resultobj;
11657 fail:
11658 {
11659 if (temp2)
11660 delete arg2;
11661 }
11662 return NULL;
11663}
11664
11665
0346c964 11666static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11667 PyObject *resultobj;
11668 wxSound *arg1 = (wxSound *) 0 ;
0346c964 11669 PyObject *arg2 = (PyObject *) 0 ;
d55e5bfc
RD
11670 bool result;
11671 PyObject * obj0 = 0 ;
11672 PyObject * obj1 = 0 ;
0346c964
RD
11673 char *kwnames[] = {
11674 (char *) "self",(char *) "data", NULL
11675 };
d55e5bfc 11676
0346c964 11677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
0346c964 11680 arg2 = obj1;
d55e5bfc
RD
11681 {
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 11683 result = (bool)wxSound_CreateFromData(arg1,arg2);
d55e5bfc
RD
11684
11685 wxPyEndAllowThreads(__tstate);
11686 if (PyErr_Occurred()) SWIG_fail;
11687 }
11688 {
11689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11690 }
11691 return resultobj;
11692 fail:
11693 return NULL;
11694}
11695
11696
d55e5bfc
RD
11697static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11698 PyObject *resultobj;
11699 wxSound *arg1 = (wxSound *) 0 ;
11700 bool result;
11701 PyObject * obj0 = 0 ;
11702 char *kwnames[] = {
11703 (char *) "self", NULL
11704 };
11705
11706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11709 {
11710 PyThreadState* __tstate = wxPyBeginAllowThreads();
11711 result = (bool)(arg1)->IsOk();
11712
11713 wxPyEndAllowThreads(__tstate);
11714 if (PyErr_Occurred()) SWIG_fail;
11715 }
11716 {
11717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11718 }
11719 return resultobj;
11720 fail:
11721 return NULL;
11722}
11723
11724
0346c964 11725static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11726 PyObject *resultobj;
11727 wxSound *arg1 = (wxSound *) 0 ;
11728 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11729 bool result;
11730 PyObject * obj0 = 0 ;
11731 PyObject * obj1 = 0 ;
0346c964
RD
11732 char *kwnames[] = {
11733 (char *) "self",(char *) "flags", NULL
11734 };
d55e5bfc 11735
0346c964 11736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11739 if (obj1) {
11740 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11741 if (PyErr_Occurred()) SWIG_fail;
11742 }
11743 {
11744 PyThreadState* __tstate = wxPyBeginAllowThreads();
11745 result = (bool)((wxSound const *)arg1)->Play(arg2);
11746
11747 wxPyEndAllowThreads(__tstate);
11748 if (PyErr_Occurred()) SWIG_fail;
11749 }
11750 {
11751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11752 }
11753 return resultobj;
11754 fail:
11755 return NULL;
11756}
11757
11758
0346c964 11759static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11760 PyObject *resultobj;
11761 wxString *arg1 = 0 ;
11762 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11763 bool result;
11764 bool temp1 = False ;
11765 PyObject * obj0 = 0 ;
11766 PyObject * obj1 = 0 ;
0346c964
RD
11767 char *kwnames[] = {
11768 (char *) "filename",(char *) "flags", NULL
11769 };
d55e5bfc 11770
0346c964 11771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11772 {
11773 arg1 = wxString_in_helper(obj0);
11774 if (arg1 == NULL) SWIG_fail;
11775 temp1 = True;
11776 }
11777 if (obj1) {
11778 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 }
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11784
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 {
11789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11790 }
11791 {
11792 if (temp1)
11793 delete arg1;
11794 }
11795 return resultobj;
11796 fail:
11797 {
11798 if (temp1)
11799 delete arg1;
11800 }
11801 return NULL;
11802}
11803
11804
11805static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11806 PyObject *resultobj;
11807 char *kwnames[] = {
11808 NULL
11809 };
11810
11811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11812 {
11813 PyThreadState* __tstate = wxPyBeginAllowThreads();
11814 Sound_Stop();
11815
11816 wxPyEndAllowThreads(__tstate);
11817 if (PyErr_Occurred()) SWIG_fail;
11818 }
11819 Py_INCREF(Py_None); resultobj = Py_None;
11820 return resultobj;
11821 fail:
11822 return NULL;
11823}
11824
11825
11826static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11827 PyObject *obj;
11828 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11829 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11830 Py_INCREF(obj);
11831 return Py_BuildValue((char *)"");
11832}
11833static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11834 PyObject *resultobj;
11835 wxString *arg1 = 0 ;
11836 wxString *arg2 = 0 ;
11837 wxString *arg3 = 0 ;
11838 wxString *arg4 = 0 ;
11839 wxFileTypeInfo *result;
11840 bool temp1 = False ;
11841 bool temp2 = False ;
11842 bool temp3 = False ;
11843 bool temp4 = False ;
11844 PyObject * obj0 = 0 ;
11845 PyObject * obj1 = 0 ;
11846 PyObject * obj2 = 0 ;
11847 PyObject * obj3 = 0 ;
11848 char *kwnames[] = {
11849 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11850 };
11851
11852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11853 {
11854 arg1 = wxString_in_helper(obj0);
11855 if (arg1 == NULL) SWIG_fail;
11856 temp1 = True;
11857 }
11858 {
11859 arg2 = wxString_in_helper(obj1);
11860 if (arg2 == NULL) SWIG_fail;
11861 temp2 = True;
11862 }
11863 {
11864 arg3 = wxString_in_helper(obj2);
11865 if (arg3 == NULL) SWIG_fail;
11866 temp3 = True;
11867 }
11868 {
11869 arg4 = wxString_in_helper(obj3);
11870 if (arg4 == NULL) SWIG_fail;
11871 temp4 = True;
11872 }
11873 {
11874 PyThreadState* __tstate = wxPyBeginAllowThreads();
11875 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11876
11877 wxPyEndAllowThreads(__tstate);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 }
11880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11881 {
11882 if (temp1)
11883 delete arg1;
11884 }
11885 {
11886 if (temp2)
11887 delete arg2;
11888 }
11889 {
11890 if (temp3)
11891 delete arg3;
11892 }
11893 {
11894 if (temp4)
11895 delete arg4;
11896 }
11897 return resultobj;
11898 fail:
11899 {
11900 if (temp1)
11901 delete arg1;
11902 }
11903 {
11904 if (temp2)
11905 delete arg2;
11906 }
11907 {
11908 if (temp3)
11909 delete arg3;
11910 }
11911 {
11912 if (temp4)
11913 delete arg4;
11914 }
11915 return NULL;
11916}
11917
11918
11919static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11920 PyObject *resultobj;
11921 wxArrayString *arg1 = 0 ;
11922 wxFileTypeInfo *result;
11923 bool temp1 = False ;
11924 PyObject * obj0 = 0 ;
11925 char *kwnames[] = {
11926 (char *) "sArray", NULL
11927 };
11928
11929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11930 {
11931 if (! PySequence_Check(obj0)) {
11932 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11933 SWIG_fail;
11934 }
11935 arg1 = new wxArrayString;
11936 temp1 = True;
11937 int i, len=PySequence_Length(obj0);
11938 for (i=0; i<len; i++) {
11939 PyObject* item = PySequence_GetItem(obj0, i);
11940#if wxUSE_UNICODE
11941 PyObject* str = PyObject_Unicode(item);
11942#else
11943 PyObject* str = PyObject_Str(item);
11944#endif
11945 if (PyErr_Occurred()) SWIG_fail;
11946 arg1->Add(Py2wxString(str));
11947 Py_DECREF(item);
11948 Py_DECREF(str);
11949 }
11950 }
11951 {
11952 PyThreadState* __tstate = wxPyBeginAllowThreads();
11953 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11954
11955 wxPyEndAllowThreads(__tstate);
11956 if (PyErr_Occurred()) SWIG_fail;
11957 }
11958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11959 {
11960 if (temp1) delete arg1;
11961 }
11962 return resultobj;
11963 fail:
11964 {
11965 if (temp1) delete arg1;
11966 }
11967 return NULL;
11968}
11969
11970
11971static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11972 PyObject *resultobj;
11973 wxFileTypeInfo *result;
11974 char *kwnames[] = {
11975 NULL
11976 };
11977
11978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11979 {
11980 PyThreadState* __tstate = wxPyBeginAllowThreads();
11981 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11982
11983 wxPyEndAllowThreads(__tstate);
11984 if (PyErr_Occurred()) SWIG_fail;
11985 }
11986 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11987 return resultobj;
11988 fail:
11989 return NULL;
11990}
11991
11992
11993static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
11994 PyObject *resultobj;
11995 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11996 bool result;
11997 PyObject * obj0 = 0 ;
11998 char *kwnames[] = {
11999 (char *) "self", NULL
12000 };
12001
12002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12005 {
12006 PyThreadState* __tstate = wxPyBeginAllowThreads();
12007 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12008
12009 wxPyEndAllowThreads(__tstate);
12010 if (PyErr_Occurred()) SWIG_fail;
12011 }
12012 {
12013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12014 }
12015 return resultobj;
12016 fail:
12017 return NULL;
12018}
12019
12020
12021static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12022 PyObject *resultobj;
12023 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12024 wxString *arg2 = 0 ;
12025 int arg3 = (int) 0 ;
12026 bool temp2 = False ;
12027 PyObject * obj0 = 0 ;
12028 PyObject * obj1 = 0 ;
12029 PyObject * obj2 = 0 ;
12030 char *kwnames[] = {
12031 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12032 };
12033
12034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12037 {
12038 arg2 = wxString_in_helper(obj1);
12039 if (arg2 == NULL) SWIG_fail;
12040 temp2 = True;
12041 }
12042 if (obj2) {
12043 arg3 = (int) SWIG_AsInt(obj2);
12044 if (PyErr_Occurred()) SWIG_fail;
12045 }
12046 {
12047 PyThreadState* __tstate = wxPyBeginAllowThreads();
12048 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12049
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 Py_INCREF(Py_None); resultobj = Py_None;
12054 {
12055 if (temp2)
12056 delete arg2;
12057 }
12058 return resultobj;
12059 fail:
12060 {
12061 if (temp2)
12062 delete arg2;
12063 }
12064 return NULL;
12065}
12066
12067
12068static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12069 PyObject *resultobj;
12070 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12071 wxString *arg2 = 0 ;
12072 bool temp2 = False ;
12073 PyObject * obj0 = 0 ;
12074 PyObject * obj1 = 0 ;
12075 char *kwnames[] = {
12076 (char *) "self",(char *) "shortDesc", NULL
12077 };
12078
12079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12082 {
12083 arg2 = wxString_in_helper(obj1);
12084 if (arg2 == NULL) SWIG_fail;
12085 temp2 = True;
12086 }
12087 {
12088 PyThreadState* __tstate = wxPyBeginAllowThreads();
12089 (arg1)->SetShortDesc((wxString const &)*arg2);
12090
12091 wxPyEndAllowThreads(__tstate);
12092 if (PyErr_Occurred()) SWIG_fail;
12093 }
12094 Py_INCREF(Py_None); resultobj = Py_None;
12095 {
12096 if (temp2)
12097 delete arg2;
12098 }
12099 return resultobj;
12100 fail:
12101 {
12102 if (temp2)
12103 delete arg2;
12104 }
12105 return NULL;
12106}
12107
12108
12109static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12110 PyObject *resultobj;
12111 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12112 wxString *result;
12113 PyObject * obj0 = 0 ;
12114 char *kwnames[] = {
12115 (char *) "self", NULL
12116 };
12117
12118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12121 {
12122 PyThreadState* __tstate = wxPyBeginAllowThreads();
12123 {
12124 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12125 result = (wxString *) &_result_ref;
12126 }
12127
12128 wxPyEndAllowThreads(__tstate);
12129 if (PyErr_Occurred()) SWIG_fail;
12130 }
12131 {
12132#if wxUSE_UNICODE
12133 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12134#else
12135 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12136#endif
12137 }
12138 return resultobj;
12139 fail:
12140 return NULL;
12141}
12142
12143
12144static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12145 PyObject *resultobj;
12146 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12147 wxString *result;
12148 PyObject * obj0 = 0 ;
12149 char *kwnames[] = {
12150 (char *) "self", NULL
12151 };
12152
12153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12156 {
12157 PyThreadState* __tstate = wxPyBeginAllowThreads();
12158 {
12159 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12160 result = (wxString *) &_result_ref;
12161 }
12162
12163 wxPyEndAllowThreads(__tstate);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 }
12166 {
12167#if wxUSE_UNICODE
12168 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12169#else
12170 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12171#endif
12172 }
12173 return resultobj;
12174 fail:
12175 return NULL;
12176}
12177
12178
12179static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12180 PyObject *resultobj;
12181 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12182 wxString *result;
12183 PyObject * obj0 = 0 ;
12184 char *kwnames[] = {
12185 (char *) "self", NULL
12186 };
12187
12188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12191 {
12192 PyThreadState* __tstate = wxPyBeginAllowThreads();
12193 {
12194 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12195 result = (wxString *) &_result_ref;
12196 }
12197
12198 wxPyEndAllowThreads(__tstate);
12199 if (PyErr_Occurred()) SWIG_fail;
12200 }
12201 {
12202#if wxUSE_UNICODE
12203 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12204#else
12205 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12206#endif
12207 }
12208 return resultobj;
12209 fail:
12210 return NULL;
12211}
12212
12213
12214static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12215 PyObject *resultobj;
12216 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12217 wxString *result;
12218 PyObject * obj0 = 0 ;
12219 char *kwnames[] = {
12220 (char *) "self", NULL
12221 };
12222
12223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12226 {
12227 PyThreadState* __tstate = wxPyBeginAllowThreads();
12228 {
12229 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12230 result = (wxString *) &_result_ref;
12231 }
12232
12233 wxPyEndAllowThreads(__tstate);
12234 if (PyErr_Occurred()) SWIG_fail;
12235 }
12236 {
12237#if wxUSE_UNICODE
12238 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12239#else
12240 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12241#endif
12242 }
12243 return resultobj;
12244 fail:
12245 return NULL;
12246}
12247
12248
12249static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12250 PyObject *resultobj;
12251 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12252 wxString *result;
12253 PyObject * obj0 = 0 ;
12254 char *kwnames[] = {
12255 (char *) "self", NULL
12256 };
12257
12258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12261 {
12262 PyThreadState* __tstate = wxPyBeginAllowThreads();
12263 {
12264 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12265 result = (wxString *) &_result_ref;
12266 }
12267
12268 wxPyEndAllowThreads(__tstate);
12269 if (PyErr_Occurred()) SWIG_fail;
12270 }
12271 {
12272#if wxUSE_UNICODE
12273 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12274#else
12275 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12276#endif
12277 }
12278 return resultobj;
12279 fail:
12280 return NULL;
12281}
12282
12283
12284static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12285 PyObject *resultobj;
12286 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12287 wxArrayString *result;
12288 PyObject * obj0 = 0 ;
12289 char *kwnames[] = {
12290 (char *) "self", NULL
12291 };
12292
12293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12296 {
12297 PyThreadState* __tstate = wxPyBeginAllowThreads();
12298 {
12299 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12300 result = (wxArrayString *) &_result_ref;
12301 }
12302
12303 wxPyEndAllowThreads(__tstate);
12304 if (PyErr_Occurred()) SWIG_fail;
12305 }
12306 {
12307 resultobj = wxArrayString2PyList_helper(*result);
12308 }
12309 return resultobj;
12310 fail:
12311 return NULL;
12312}
12313
12314
12315static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12316 PyObject *resultobj;
12317 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12318 int result;
12319 PyObject * obj0 = 0 ;
12320 char *kwnames[] = {
12321 (char *) "self", NULL
12322 };
12323
12324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12327 {
12328 PyThreadState* __tstate = wxPyBeginAllowThreads();
12329 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12330
12331 wxPyEndAllowThreads(__tstate);
12332 if (PyErr_Occurred()) SWIG_fail;
12333 }
12334 resultobj = SWIG_FromInt((int)result);
12335 return resultobj;
12336 fail:
12337 return NULL;
12338}
12339
12340
12341static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12342 PyObject *resultobj;
12343 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12344 wxString *result;
12345 PyObject * obj0 = 0 ;
12346 char *kwnames[] = {
12347 (char *) "self", NULL
12348 };
12349
12350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 {
12356 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12357 result = (wxString *) &_result_ref;
12358 }
12359
12360 wxPyEndAllowThreads(__tstate);
12361 if (PyErr_Occurred()) SWIG_fail;
12362 }
12363 {
12364#if wxUSE_UNICODE
12365 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12366#else
12367 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12368#endif
12369 }
12370 return resultobj;
12371 fail:
12372 return NULL;
12373}
12374
12375
12376static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12377 PyObject *resultobj;
12378 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12379 int result;
12380 PyObject * obj0 = 0 ;
12381 char *kwnames[] = {
12382 (char *) "self", NULL
12383 };
12384
12385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12388 {
12389 PyThreadState* __tstate = wxPyBeginAllowThreads();
12390 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12391
12392 wxPyEndAllowThreads(__tstate);
12393 if (PyErr_Occurred()) SWIG_fail;
12394 }
12395 resultobj = SWIG_FromInt((int)result);
12396 return resultobj;
12397 fail:
12398 return NULL;
12399}
12400
12401
12402static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12403 PyObject *obj;
12404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12405 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12406 Py_INCREF(obj);
12407 return Py_BuildValue((char *)"");
12408}
12409static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12410 PyObject *resultobj;
12411 wxFileTypeInfo *arg1 = 0 ;
12412 wxFileType *result;
12413 PyObject * obj0 = 0 ;
12414 char *kwnames[] = {
12415 (char *) "ftInfo", NULL
12416 };
12417
12418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12420 SWIG_POINTER_EXCEPTION | 0)) == -1)
12421 SWIG_fail;
12422 if (arg1 == NULL) {
12423 PyErr_SetString(PyExc_TypeError,"null reference");
12424 SWIG_fail;
12425 }
12426 {
12427 PyThreadState* __tstate = wxPyBeginAllowThreads();
12428 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12429
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12434 return resultobj;
12435 fail:
12436 return NULL;
12437}
12438
12439
12440static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj;
12442 wxFileType *arg1 = (wxFileType *) 0 ;
12443 PyObject * obj0 = 0 ;
12444 char *kwnames[] = {
12445 (char *) "self", NULL
12446 };
12447
12448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12451 {
12452 PyThreadState* __tstate = wxPyBeginAllowThreads();
12453 delete arg1;
12454
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 Py_INCREF(Py_None); resultobj = Py_None;
12459 return resultobj;
12460 fail:
12461 return NULL;
12462}
12463
12464
12465static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12466 PyObject *resultobj;
12467 wxFileType *arg1 = (wxFileType *) 0 ;
12468 PyObject *result;
12469 PyObject * obj0 = 0 ;
12470 char *kwnames[] = {
12471 (char *) "self", NULL
12472 };
12473
12474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12477 {
12478 PyThreadState* __tstate = wxPyBeginAllowThreads();
12479 result = (PyObject *)wxFileType_GetMimeType(arg1);
12480
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 resultobj = result;
12485 return resultobj;
12486 fail:
12487 return NULL;
12488}
12489
12490
12491static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12492 PyObject *resultobj;
12493 wxFileType *arg1 = (wxFileType *) 0 ;
12494 PyObject *result;
12495 PyObject * obj0 = 0 ;
12496 char *kwnames[] = {
12497 (char *) "self", NULL
12498 };
12499
12500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12503 {
12504 PyThreadState* __tstate = wxPyBeginAllowThreads();
12505 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12506
12507 wxPyEndAllowThreads(__tstate);
12508 if (PyErr_Occurred()) SWIG_fail;
12509 }
12510 resultobj = result;
12511 return resultobj;
12512 fail:
12513 return NULL;
12514}
12515
12516
12517static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12518 PyObject *resultobj;
12519 wxFileType *arg1 = (wxFileType *) 0 ;
12520 PyObject *result;
12521 PyObject * obj0 = 0 ;
12522 char *kwnames[] = {
12523 (char *) "self", NULL
12524 };
12525
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12529 {
12530 PyThreadState* __tstate = wxPyBeginAllowThreads();
12531 result = (PyObject *)wxFileType_GetExtensions(arg1);
12532
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
12536 resultobj = result;
12537 return resultobj;
12538 fail:
12539 return NULL;
12540}
12541
12542
12543static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12544 PyObject *resultobj;
12545 wxFileType *arg1 = (wxFileType *) 0 ;
12546 wxIcon *result;
12547 PyObject * obj0 = 0 ;
12548 char *kwnames[] = {
12549 (char *) "self", NULL
12550 };
12551
12552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12555 {
12556 PyThreadState* __tstate = wxPyBeginAllowThreads();
12557 result = (wxIcon *)wxFileType_GetIcon(arg1);
12558
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12563 return resultobj;
12564 fail:
12565 return NULL;
12566}
12567
12568
12569static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12570 PyObject *resultobj;
12571 wxFileType *arg1 = (wxFileType *) 0 ;
12572 PyObject *result;
12573 PyObject * obj0 = 0 ;
12574 char *kwnames[] = {
12575 (char *) "self", NULL
12576 };
12577
12578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12581 {
12582 PyThreadState* __tstate = wxPyBeginAllowThreads();
12583 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12584
12585 wxPyEndAllowThreads(__tstate);
12586 if (PyErr_Occurred()) SWIG_fail;
12587 }
12588 resultobj = result;
12589 return resultobj;
12590 fail:
12591 return NULL;
12592}
12593
12594
12595static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12596 PyObject *resultobj;
12597 wxFileType *arg1 = (wxFileType *) 0 ;
12598 PyObject *result;
12599 PyObject * obj0 = 0 ;
12600 char *kwnames[] = {
12601 (char *) "self", NULL
12602 };
12603
12604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12607 {
12608 PyThreadState* __tstate = wxPyBeginAllowThreads();
12609 result = (PyObject *)wxFileType_GetDescription(arg1);
12610
12611 wxPyEndAllowThreads(__tstate);
12612 if (PyErr_Occurred()) SWIG_fail;
12613 }
12614 resultobj = result;
12615 return resultobj;
12616 fail:
12617 return NULL;
12618}
12619
12620
12621static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12622 PyObject *resultobj;
12623 wxFileType *arg1 = (wxFileType *) 0 ;
12624 wxString *arg2 = 0 ;
12625 wxString const &arg3_defvalue = wxPyEmptyString ;
12626 wxString *arg3 = (wxString *) &arg3_defvalue ;
12627 PyObject *result;
12628 bool temp2 = False ;
12629 bool temp3 = False ;
12630 PyObject * obj0 = 0 ;
12631 PyObject * obj1 = 0 ;
12632 PyObject * obj2 = 0 ;
12633 char *kwnames[] = {
12634 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12635 };
12636
12637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12640 {
12641 arg2 = wxString_in_helper(obj1);
12642 if (arg2 == NULL) SWIG_fail;
12643 temp2 = True;
12644 }
12645 if (obj2) {
12646 {
12647 arg3 = wxString_in_helper(obj2);
12648 if (arg3 == NULL) SWIG_fail;
12649 temp3 = True;
12650 }
12651 }
12652 {
12653 PyThreadState* __tstate = wxPyBeginAllowThreads();
12654 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12655
12656 wxPyEndAllowThreads(__tstate);
12657 if (PyErr_Occurred()) SWIG_fail;
12658 }
12659 resultobj = result;
12660 {
12661 if (temp2)
12662 delete arg2;
12663 }
12664 {
12665 if (temp3)
12666 delete arg3;
12667 }
12668 return resultobj;
12669 fail:
12670 {
12671 if (temp2)
12672 delete arg2;
12673 }
12674 {
12675 if (temp3)
12676 delete arg3;
12677 }
12678 return NULL;
12679}
12680
12681
12682static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12683 PyObject *resultobj;
12684 wxFileType *arg1 = (wxFileType *) 0 ;
12685 wxString *arg2 = 0 ;
12686 wxString const &arg3_defvalue = wxPyEmptyString ;
12687 wxString *arg3 = (wxString *) &arg3_defvalue ;
12688 PyObject *result;
12689 bool temp2 = False ;
12690 bool temp3 = False ;
12691 PyObject * obj0 = 0 ;
12692 PyObject * obj1 = 0 ;
12693 PyObject * obj2 = 0 ;
12694 char *kwnames[] = {
12695 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12696 };
12697
12698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12701 {
12702 arg2 = wxString_in_helper(obj1);
12703 if (arg2 == NULL) SWIG_fail;
12704 temp2 = True;
12705 }
12706 if (obj2) {
12707 {
12708 arg3 = wxString_in_helper(obj2);
12709 if (arg3 == NULL) SWIG_fail;
12710 temp3 = True;
12711 }
12712 }
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12716
12717 wxPyEndAllowThreads(__tstate);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 }
12720 resultobj = result;
12721 {
12722 if (temp2)
12723 delete arg2;
12724 }
12725 {
12726 if (temp3)
12727 delete arg3;
12728 }
12729 return resultobj;
12730 fail:
12731 {
12732 if (temp2)
12733 delete arg2;
12734 }
12735 {
12736 if (temp3)
12737 delete arg3;
12738 }
12739 return NULL;
12740}
12741
12742
12743static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12744 PyObject *resultobj;
12745 wxFileType *arg1 = (wxFileType *) 0 ;
12746 wxString *arg2 = 0 ;
12747 wxString const &arg3_defvalue = wxPyEmptyString ;
12748 wxString *arg3 = (wxString *) &arg3_defvalue ;
12749 PyObject *result;
12750 bool temp2 = False ;
12751 bool temp3 = False ;
12752 PyObject * obj0 = 0 ;
12753 PyObject * obj1 = 0 ;
12754 PyObject * obj2 = 0 ;
12755 char *kwnames[] = {
12756 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12757 };
12758
12759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12762 {
12763 arg2 = wxString_in_helper(obj1);
12764 if (arg2 == NULL) SWIG_fail;
12765 temp2 = True;
12766 }
12767 if (obj2) {
12768 {
12769 arg3 = wxString_in_helper(obj2);
12770 if (arg3 == NULL) SWIG_fail;
12771 temp3 = True;
12772 }
12773 }
12774 {
12775 PyThreadState* __tstate = wxPyBeginAllowThreads();
12776 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12777
12778 wxPyEndAllowThreads(__tstate);
12779 if (PyErr_Occurred()) SWIG_fail;
12780 }
12781 resultobj = result;
12782 {
12783 if (temp2)
12784 delete arg2;
12785 }
12786 {
12787 if (temp3)
12788 delete arg3;
12789 }
12790 return resultobj;
12791 fail:
12792 {
12793 if (temp2)
12794 delete arg2;
12795 }
12796 {
12797 if (temp3)
12798 delete arg3;
12799 }
12800 return NULL;
12801}
12802
12803
12804static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12805 PyObject *resultobj;
12806 wxFileType *arg1 = (wxFileType *) 0 ;
12807 wxString *arg2 = 0 ;
12808 wxString *arg3 = 0 ;
12809 bool arg4 = (bool) True ;
12810 bool result;
12811 bool temp2 = False ;
12812 bool temp3 = False ;
12813 PyObject * obj0 = 0 ;
12814 PyObject * obj1 = 0 ;
12815 PyObject * obj2 = 0 ;
12816 PyObject * obj3 = 0 ;
12817 char *kwnames[] = {
12818 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12819 };
12820
12821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12824 {
12825 arg2 = wxString_in_helper(obj1);
12826 if (arg2 == NULL) SWIG_fail;
12827 temp2 = True;
12828 }
12829 {
12830 arg3 = wxString_in_helper(obj2);
12831 if (arg3 == NULL) SWIG_fail;
12832 temp3 = True;
12833 }
12834 if (obj3) {
12835 arg4 = (bool) SWIG_AsBool(obj3);
12836 if (PyErr_Occurred()) SWIG_fail;
12837 }
12838 {
12839 PyThreadState* __tstate = wxPyBeginAllowThreads();
12840 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12841
12842 wxPyEndAllowThreads(__tstate);
12843 if (PyErr_Occurred()) SWIG_fail;
12844 }
12845 {
12846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12847 }
12848 {
12849 if (temp2)
12850 delete arg2;
12851 }
12852 {
12853 if (temp3)
12854 delete arg3;
12855 }
12856 return resultobj;
12857 fail:
12858 {
12859 if (temp2)
12860 delete arg2;
12861 }
12862 {
12863 if (temp3)
12864 delete arg3;
12865 }
12866 return NULL;
12867}
12868
12869
12870static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12871 PyObject *resultobj;
12872 wxFileType *arg1 = (wxFileType *) 0 ;
12873 wxString const &arg2_defvalue = wxPyEmptyString ;
12874 wxString *arg2 = (wxString *) &arg2_defvalue ;
12875 int arg3 = (int) 0 ;
12876 bool result;
12877 bool temp2 = False ;
12878 PyObject * obj0 = 0 ;
12879 PyObject * obj1 = 0 ;
12880 PyObject * obj2 = 0 ;
12881 char *kwnames[] = {
12882 (char *) "self",(char *) "cmd",(char *) "index", NULL
12883 };
12884
12885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12888 if (obj1) {
12889 {
12890 arg2 = wxString_in_helper(obj1);
12891 if (arg2 == NULL) SWIG_fail;
12892 temp2 = True;
12893 }
12894 }
12895 if (obj2) {
12896 arg3 = (int) SWIG_AsInt(obj2);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12902
12903 wxPyEndAllowThreads(__tstate);
12904 if (PyErr_Occurred()) SWIG_fail;
12905 }
12906 {
12907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12908 }
12909 {
12910 if (temp2)
12911 delete arg2;
12912 }
12913 return resultobj;
12914 fail:
12915 {
12916 if (temp2)
12917 delete arg2;
12918 }
12919 return NULL;
12920}
12921
12922
12923static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12924 PyObject *resultobj;
12925 wxFileType *arg1 = (wxFileType *) 0 ;
12926 bool result;
12927 PyObject * obj0 = 0 ;
12928 char *kwnames[] = {
12929 (char *) "self", NULL
12930 };
12931
12932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12935 {
12936 PyThreadState* __tstate = wxPyBeginAllowThreads();
12937 result = (bool)(arg1)->Unassociate();
12938
12939 wxPyEndAllowThreads(__tstate);
12940 if (PyErr_Occurred()) SWIG_fail;
12941 }
12942 {
12943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12944 }
12945 return resultobj;
12946 fail:
12947 return NULL;
12948}
12949
12950
12951static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12952 PyObject *resultobj;
12953 wxString *arg1 = 0 ;
12954 wxString *arg2 = 0 ;
12955 wxString const &arg3_defvalue = wxPyEmptyString ;
12956 wxString *arg3 = (wxString *) &arg3_defvalue ;
12957 wxString result;
12958 bool temp1 = False ;
12959 bool temp2 = False ;
12960 bool temp3 = False ;
12961 PyObject * obj0 = 0 ;
12962 PyObject * obj1 = 0 ;
12963 PyObject * obj2 = 0 ;
12964 char *kwnames[] = {
12965 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12966 };
12967
12968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12969 {
12970 arg1 = wxString_in_helper(obj0);
12971 if (arg1 == NULL) SWIG_fail;
12972 temp1 = True;
12973 }
12974 {
12975 arg2 = wxString_in_helper(obj1);
12976 if (arg2 == NULL) SWIG_fail;
12977 temp2 = True;
12978 }
12979 if (obj2) {
12980 {
12981 arg3 = wxString_in_helper(obj2);
12982 if (arg3 == NULL) SWIG_fail;
12983 temp3 = True;
12984 }
12985 }
12986 {
12987 PyThreadState* __tstate = wxPyBeginAllowThreads();
12988 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12989
12990 wxPyEndAllowThreads(__tstate);
12991 if (PyErr_Occurred()) SWIG_fail;
12992 }
12993 {
12994#if wxUSE_UNICODE
12995 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12996#else
12997 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12998#endif
12999 }
13000 {
13001 if (temp1)
13002 delete arg1;
13003 }
13004 {
13005 if (temp2)
13006 delete arg2;
13007 }
13008 {
13009 if (temp3)
13010 delete arg3;
13011 }
13012 return resultobj;
13013 fail:
13014 {
13015 if (temp1)
13016 delete arg1;
13017 }
13018 {
13019 if (temp2)
13020 delete arg2;
13021 }
13022 {
13023 if (temp3)
13024 delete arg3;
13025 }
13026 return NULL;
13027}
13028
13029
13030static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13031 PyObject *obj;
13032 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13033 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13034 Py_INCREF(obj);
13035 return Py_BuildValue((char *)"");
13036}
13037static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13038 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13039 return 1;
13040}
13041
13042
13043static PyObject *_wrap_TheMimeTypesManager_get() {
13044 PyObject *pyobj;
13045
13046 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13047 return pyobj;
13048}
13049
13050
13051static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13052 PyObject *resultobj;
13053 wxString *arg1 = 0 ;
13054 wxString *arg2 = 0 ;
13055 bool result;
13056 bool temp1 = False ;
13057 bool temp2 = False ;
13058 PyObject * obj0 = 0 ;
13059 PyObject * obj1 = 0 ;
13060 char *kwnames[] = {
13061 (char *) "mimeType",(char *) "wildcard", NULL
13062 };
13063
13064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13065 {
13066 arg1 = wxString_in_helper(obj0);
13067 if (arg1 == NULL) SWIG_fail;
13068 temp1 = True;
13069 }
13070 {
13071 arg2 = wxString_in_helper(obj1);
13072 if (arg2 == NULL) SWIG_fail;
13073 temp2 = True;
13074 }
13075 {
13076 PyThreadState* __tstate = wxPyBeginAllowThreads();
13077 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13078
13079 wxPyEndAllowThreads(__tstate);
13080 if (PyErr_Occurred()) SWIG_fail;
13081 }
13082 {
13083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13084 }
13085 {
13086 if (temp1)
13087 delete arg1;
13088 }
13089 {
13090 if (temp2)
13091 delete arg2;
13092 }
13093 return resultobj;
13094 fail:
13095 {
13096 if (temp1)
13097 delete arg1;
13098 }
13099 {
13100 if (temp2)
13101 delete arg2;
13102 }
13103 return NULL;
13104}
13105
13106
13107static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13108 PyObject *resultobj;
13109 wxMimeTypesManager *result;
13110 char *kwnames[] = {
13111 NULL
13112 };
13113
13114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13115 {
13116 PyThreadState* __tstate = wxPyBeginAllowThreads();
13117 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13118
13119 wxPyEndAllowThreads(__tstate);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13123 return resultobj;
13124 fail:
13125 return NULL;
13126}
13127
13128
13129static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13130 PyObject *resultobj;
13131 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13132 int arg2 = (int) wxMAILCAP_ALL ;
13133 wxString const &arg3_defvalue = wxPyEmptyString ;
13134 wxString *arg3 = (wxString *) &arg3_defvalue ;
13135 bool temp3 = False ;
13136 PyObject * obj0 = 0 ;
13137 PyObject * obj1 = 0 ;
13138 PyObject * obj2 = 0 ;
13139 char *kwnames[] = {
13140 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13141 };
13142
13143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13146 if (obj1) {
13147 arg2 = (int) SWIG_AsInt(obj1);
13148 if (PyErr_Occurred()) SWIG_fail;
13149 }
13150 if (obj2) {
13151 {
13152 arg3 = wxString_in_helper(obj2);
13153 if (arg3 == NULL) SWIG_fail;
13154 temp3 = True;
13155 }
13156 }
13157 {
13158 PyThreadState* __tstate = wxPyBeginAllowThreads();
13159 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13160
13161 wxPyEndAllowThreads(__tstate);
13162 if (PyErr_Occurred()) SWIG_fail;
13163 }
13164 Py_INCREF(Py_None); resultobj = Py_None;
13165 {
13166 if (temp3)
13167 delete arg3;
13168 }
13169 return resultobj;
13170 fail:
13171 {
13172 if (temp3)
13173 delete arg3;
13174 }
13175 return NULL;
13176}
13177
13178
13179static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13180 PyObject *resultobj;
13181 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13182 PyObject * obj0 = 0 ;
13183 char *kwnames[] = {
13184 (char *) "self", NULL
13185 };
13186
13187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13190 {
13191 PyThreadState* __tstate = wxPyBeginAllowThreads();
13192 (arg1)->ClearData();
13193
13194 wxPyEndAllowThreads(__tstate);
13195 if (PyErr_Occurred()) SWIG_fail;
13196 }
13197 Py_INCREF(Py_None); resultobj = Py_None;
13198 return resultobj;
13199 fail:
13200 return NULL;
13201}
13202
13203
13204static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13205 PyObject *resultobj;
13206 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13207 wxString *arg2 = 0 ;
13208 wxFileType *result;
13209 bool temp2 = False ;
13210 PyObject * obj0 = 0 ;
13211 PyObject * obj1 = 0 ;
13212 char *kwnames[] = {
13213 (char *) "self",(char *) "ext", NULL
13214 };
13215
13216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13219 {
13220 arg2 = wxString_in_helper(obj1);
13221 if (arg2 == NULL) SWIG_fail;
13222 temp2 = True;
13223 }
13224 {
13225 PyThreadState* __tstate = wxPyBeginAllowThreads();
13226 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13227
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13232 {
13233 if (temp2)
13234 delete arg2;
13235 }
13236 return resultobj;
13237 fail:
13238 {
13239 if (temp2)
13240 delete arg2;
13241 }
13242 return NULL;
13243}
13244
13245
13246static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13247 PyObject *resultobj;
13248 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13249 wxString *arg2 = 0 ;
13250 wxFileType *result;
13251 bool temp2 = False ;
13252 PyObject * obj0 = 0 ;
13253 PyObject * obj1 = 0 ;
13254 char *kwnames[] = {
13255 (char *) "self",(char *) "mimeType", NULL
13256 };
13257
13258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13261 {
13262 arg2 = wxString_in_helper(obj1);
13263 if (arg2 == NULL) SWIG_fail;
13264 temp2 = True;
13265 }
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13269
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13274 {
13275 if (temp2)
13276 delete arg2;
13277 }
13278 return resultobj;
13279 fail:
13280 {
13281 if (temp2)
13282 delete arg2;
13283 }
13284 return NULL;
13285}
13286
13287
13288static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13289 PyObject *resultobj;
13290 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13291 wxString *arg2 = 0 ;
13292 bool arg3 = (bool) False ;
13293 bool result;
13294 bool temp2 = False ;
13295 PyObject * obj0 = 0 ;
13296 PyObject * obj1 = 0 ;
13297 PyObject * obj2 = 0 ;
13298 char *kwnames[] = {
13299 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13300 };
13301
13302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13305 {
13306 arg2 = wxString_in_helper(obj1);
13307 if (arg2 == NULL) SWIG_fail;
13308 temp2 = True;
13309 }
13310 if (obj2) {
13311 arg3 = (bool) SWIG_AsBool(obj2);
13312 if (PyErr_Occurred()) SWIG_fail;
13313 }
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13317
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 {
13322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13323 }
13324 {
13325 if (temp2)
13326 delete arg2;
13327 }
13328 return resultobj;
13329 fail:
13330 {
13331 if (temp2)
13332 delete arg2;
13333 }
13334 return NULL;
13335}
13336
13337
13338static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13339 PyObject *resultobj;
13340 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13341 wxString *arg2 = 0 ;
13342 bool result;
13343 bool temp2 = False ;
13344 PyObject * obj0 = 0 ;
13345 PyObject * obj1 = 0 ;
13346 char *kwnames[] = {
13347 (char *) "self",(char *) "filename", NULL
13348 };
13349
13350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13353 {
13354 arg2 = wxString_in_helper(obj1);
13355 if (arg2 == NULL) SWIG_fail;
13356 temp2 = True;
13357 }
13358 {
13359 PyThreadState* __tstate = wxPyBeginAllowThreads();
13360 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13361
13362 wxPyEndAllowThreads(__tstate);
13363 if (PyErr_Occurred()) SWIG_fail;
13364 }
13365 {
13366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13367 }
13368 {
13369 if (temp2)
13370 delete arg2;
13371 }
13372 return resultobj;
13373 fail:
13374 {
13375 if (temp2)
13376 delete arg2;
13377 }
13378 return NULL;
13379}
13380
13381
13382static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13383 PyObject *resultobj;
13384 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13385 PyObject *result;
13386 PyObject * obj0 = 0 ;
13387 char *kwnames[] = {
13388 (char *) "self", NULL
13389 };
13390
13391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13394 {
13395 PyThreadState* __tstate = wxPyBeginAllowThreads();
13396 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13397
13398 wxPyEndAllowThreads(__tstate);
13399 if (PyErr_Occurred()) SWIG_fail;
13400 }
13401 resultobj = result;
13402 return resultobj;
13403 fail:
13404 return NULL;
13405}
13406
13407
13408static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13409 PyObject *resultobj;
13410 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13411 wxFileTypeInfo *arg2 = 0 ;
13412 PyObject * obj0 = 0 ;
13413 PyObject * obj1 = 0 ;
13414 char *kwnames[] = {
13415 (char *) "self",(char *) "ft", NULL
13416 };
13417
13418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13422 SWIG_POINTER_EXCEPTION | 0)) == -1)
13423 SWIG_fail;
13424 if (arg2 == NULL) {
13425 PyErr_SetString(PyExc_TypeError,"null reference");
13426 SWIG_fail;
13427 }
13428 {
13429 PyThreadState* __tstate = wxPyBeginAllowThreads();
13430 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13431
13432 wxPyEndAllowThreads(__tstate);
13433 if (PyErr_Occurred()) SWIG_fail;
13434 }
13435 Py_INCREF(Py_None); resultobj = Py_None;
13436 return resultobj;
13437 fail:
13438 return NULL;
13439}
13440
13441
13442static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13443 PyObject *resultobj;
13444 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13445 wxFileTypeInfo *arg2 = 0 ;
13446 wxFileType *result;
13447 PyObject * obj0 = 0 ;
13448 PyObject * obj1 = 0 ;
13449 char *kwnames[] = {
13450 (char *) "self",(char *) "ftInfo", NULL
13451 };
13452
13453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13456 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13457 SWIG_POINTER_EXCEPTION | 0)) == -1)
13458 SWIG_fail;
13459 if (arg2 == NULL) {
13460 PyErr_SetString(PyExc_TypeError,"null reference");
13461 SWIG_fail;
13462 }
13463 {
13464 PyThreadState* __tstate = wxPyBeginAllowThreads();
13465 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13466
13467 wxPyEndAllowThreads(__tstate);
13468 if (PyErr_Occurred()) SWIG_fail;
13469 }
13470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13471 return resultobj;
13472 fail:
13473 return NULL;
13474}
13475
13476
13477static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13478 PyObject *resultobj;
13479 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13480 wxFileType *arg2 = (wxFileType *) 0 ;
13481 bool result;
13482 PyObject * obj0 = 0 ;
13483 PyObject * obj1 = 0 ;
13484 char *kwnames[] = {
13485 (char *) "self",(char *) "ft", NULL
13486 };
13487
13488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13491 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13493 {
13494 PyThreadState* __tstate = wxPyBeginAllowThreads();
13495 result = (bool)(arg1)->Unassociate(arg2);
13496
13497 wxPyEndAllowThreads(__tstate);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 }
13500 {
13501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13502 }
13503 return resultobj;
13504 fail:
13505 return NULL;
13506}
13507
13508
13509static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13510 PyObject *resultobj;
13511 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13512 PyObject * obj0 = 0 ;
13513 char *kwnames[] = {
13514 (char *) "self", NULL
13515 };
13516
13517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13520 {
13521 PyThreadState* __tstate = wxPyBeginAllowThreads();
13522 delete arg1;
13523
13524 wxPyEndAllowThreads(__tstate);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
13527 Py_INCREF(Py_None); resultobj = Py_None;
13528 return resultobj;
13529 fail:
13530 return NULL;
13531}
13532
13533
13534static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13535 PyObject *obj;
13536 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13537 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13538 Py_INCREF(obj);
13539 return Py_BuildValue((char *)"");
13540}
13541static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13542 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13543 return 1;
13544}
13545
13546
13547static PyObject *_wrap_ART_TOOLBAR_get() {
13548 PyObject *pyobj;
13549
13550 {
13551#if wxUSE_UNICODE
13552 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13553#else
13554 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13555#endif
13556 }
13557 return pyobj;
13558}
13559
13560
13561static int _wrap_ART_MENU_set(PyObject *_val) {
13562 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13563 return 1;
13564}
13565
13566
13567static PyObject *_wrap_ART_MENU_get() {
13568 PyObject *pyobj;
13569
13570 {
13571#if wxUSE_UNICODE
13572 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13573#else
13574 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13575#endif
13576 }
13577 return pyobj;
13578}
13579
13580
13581static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13582 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13583 return 1;
13584}
13585
13586
13587static PyObject *_wrap_ART_FRAME_ICON_get() {
13588 PyObject *pyobj;
13589
13590 {
13591#if wxUSE_UNICODE
13592 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13593#else
13594 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13595#endif
13596 }
13597 return pyobj;
13598}
13599
13600
13601static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13602 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13603 return 1;
13604}
13605
13606
13607static PyObject *_wrap_ART_CMN_DIALOG_get() {
13608 PyObject *pyobj;
13609
13610 {
13611#if wxUSE_UNICODE
13612 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13613#else
13614 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13615#endif
13616 }
13617 return pyobj;
13618}
13619
13620
13621static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13622 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13623 return 1;
13624}
13625
13626
13627static PyObject *_wrap_ART_HELP_BROWSER_get() {
13628 PyObject *pyobj;
13629
13630 {
13631#if wxUSE_UNICODE
13632 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13633#else
13634 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13635#endif
13636 }
13637 return pyobj;
13638}
13639
13640
13641static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13642 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13643 return 1;
13644}
13645
13646
13647static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13648 PyObject *pyobj;
13649
13650 {
13651#if wxUSE_UNICODE
13652 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13653#else
13654 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13655#endif
13656 }
13657 return pyobj;
13658}
13659
13660
13661static int _wrap_ART_OTHER_set(PyObject *_val) {
13662 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13663 return 1;
13664}
13665
13666
13667static PyObject *_wrap_ART_OTHER_get() {
13668 PyObject *pyobj;
13669
13670 {
13671#if wxUSE_UNICODE
13672 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13673#else
13674 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13675#endif
13676 }
13677 return pyobj;
13678}
13679
13680
13681static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13682 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13683 return 1;
13684}
13685
13686
13687static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13688 PyObject *pyobj;
13689
13690 {
13691#if wxUSE_UNICODE
13692 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13693#else
13694 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13695#endif
13696 }
13697 return pyobj;
13698}
13699
13700
13701static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13702 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13703 return 1;
13704}
13705
13706
13707static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13708 PyObject *pyobj;
13709
13710 {
13711#if wxUSE_UNICODE
13712 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13713#else
13714 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13715#endif
13716 }
13717 return pyobj;
13718}
13719
13720
13721static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13722 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13723 return 1;
13724}
13725
13726
13727static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13728 PyObject *pyobj;
13729
13730 {
13731#if wxUSE_UNICODE
13732 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13733#else
13734 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13735#endif
13736 }
13737 return pyobj;
13738}
13739
13740
13741static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13742 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13743 return 1;
13744}
13745
13746
13747static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13748 PyObject *pyobj;
13749
13750 {
13751#if wxUSE_UNICODE
13752 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13753#else
13754 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13755#endif
13756 }
13757 return pyobj;
13758}
13759
13760
13761static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13762 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13763 return 1;
13764}
13765
13766
13767static PyObject *_wrap_ART_HELP_BOOK_get() {
13768 PyObject *pyobj;
13769
13770 {
13771#if wxUSE_UNICODE
13772 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13773#else
13774 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13775#endif
13776 }
13777 return pyobj;
13778}
13779
13780
13781static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13782 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13783 return 1;
13784}
13785
13786
13787static PyObject *_wrap_ART_HELP_FOLDER_get() {
13788 PyObject *pyobj;
13789
13790 {
13791#if wxUSE_UNICODE
13792 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13793#else
13794 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13795#endif
13796 }
13797 return pyobj;
13798}
13799
13800
13801static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13802 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13803 return 1;
13804}
13805
13806
13807static PyObject *_wrap_ART_HELP_PAGE_get() {
13808 PyObject *pyobj;
13809
13810 {
13811#if wxUSE_UNICODE
13812 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13813#else
13814 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13815#endif
13816 }
13817 return pyobj;
13818}
13819
13820
13821static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13822 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13823 return 1;
13824}
13825
13826
13827static PyObject *_wrap_ART_GO_BACK_get() {
13828 PyObject *pyobj;
13829
13830 {
13831#if wxUSE_UNICODE
13832 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13833#else
13834 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13835#endif
13836 }
13837 return pyobj;
13838}
13839
13840
13841static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13842 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13843 return 1;
13844}
13845
13846
13847static PyObject *_wrap_ART_GO_FORWARD_get() {
13848 PyObject *pyobj;
13849
13850 {
13851#if wxUSE_UNICODE
13852 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13853#else
13854 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13855#endif
13856 }
13857 return pyobj;
13858}
13859
13860
13861static int _wrap_ART_GO_UP_set(PyObject *_val) {
13862 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13863 return 1;
13864}
13865
13866
13867static PyObject *_wrap_ART_GO_UP_get() {
13868 PyObject *pyobj;
13869
13870 {
13871#if wxUSE_UNICODE
13872 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13873#else
13874 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13875#endif
13876 }
13877 return pyobj;
13878}
13879
13880
13881static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13882 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13883 return 1;
13884}
13885
13886
13887static PyObject *_wrap_ART_GO_DOWN_get() {
13888 PyObject *pyobj;
13889
13890 {
13891#if wxUSE_UNICODE
13892 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13893#else
13894 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13895#endif
13896 }
13897 return pyobj;
13898}
13899
13900
13901static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
13902 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13903 return 1;
13904}
13905
13906
13907static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13908 PyObject *pyobj;
13909
13910 {
13911#if wxUSE_UNICODE
13912 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13913#else
13914 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13915#endif
13916 }
13917 return pyobj;
13918}
13919
13920
13921static int _wrap_ART_GO_HOME_set(PyObject *_val) {
13922 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13923 return 1;
13924}
13925
13926
13927static PyObject *_wrap_ART_GO_HOME_get() {
13928 PyObject *pyobj;
13929
13930 {
13931#if wxUSE_UNICODE
13932 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13933#else
13934 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13935#endif
13936 }
13937 return pyobj;
13938}
13939
13940
13941static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
13942 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13943 return 1;
13944}
13945
13946
13947static PyObject *_wrap_ART_FILE_OPEN_get() {
13948 PyObject *pyobj;
13949
13950 {
13951#if wxUSE_UNICODE
13952 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13953#else
13954 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13955#endif
13956 }
13957 return pyobj;
13958}
13959
13960
13961static int _wrap_ART_PRINT_set(PyObject *_val) {
13962 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13963 return 1;
13964}
13965
13966
13967static PyObject *_wrap_ART_PRINT_get() {
13968 PyObject *pyobj;
13969
13970 {
13971#if wxUSE_UNICODE
13972 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13973#else
13974 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13975#endif
13976 }
13977 return pyobj;
13978}
13979
13980
13981static int _wrap_ART_HELP_set(PyObject *_val) {
13982 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13983 return 1;
13984}
13985
13986
13987static PyObject *_wrap_ART_HELP_get() {
13988 PyObject *pyobj;
13989
13990 {
13991#if wxUSE_UNICODE
13992 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13993#else
13994 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13995#endif
13996 }
13997 return pyobj;
13998}
13999
14000
14001static int _wrap_ART_TIP_set(PyObject *_val) {
14002 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14003 return 1;
14004}
14005
14006
14007static PyObject *_wrap_ART_TIP_get() {
14008 PyObject *pyobj;
14009
14010 {
14011#if wxUSE_UNICODE
14012 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14013#else
14014 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14015#endif
14016 }
14017 return pyobj;
14018}
14019
14020
14021static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14022 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14023 return 1;
14024}
14025
14026
14027static PyObject *_wrap_ART_REPORT_VIEW_get() {
14028 PyObject *pyobj;
14029
14030 {
14031#if wxUSE_UNICODE
14032 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14033#else
14034 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14035#endif
14036 }
14037 return pyobj;
14038}
14039
14040
14041static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14042 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14043 return 1;
14044}
14045
14046
14047static PyObject *_wrap_ART_LIST_VIEW_get() {
14048 PyObject *pyobj;
14049
14050 {
14051#if wxUSE_UNICODE
14052 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14053#else
14054 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14055#endif
14056 }
14057 return pyobj;
14058}
14059
14060
14061static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14062 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14063 return 1;
14064}
14065
14066
14067static PyObject *_wrap_ART_NEW_DIR_get() {
14068 PyObject *pyobj;
14069
14070 {
14071#if wxUSE_UNICODE
14072 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14073#else
14074 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14075#endif
14076 }
14077 return pyobj;
14078}
14079
14080
14081static int _wrap_ART_FOLDER_set(PyObject *_val) {
14082 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14083 return 1;
14084}
14085
14086
14087static PyObject *_wrap_ART_FOLDER_get() {
14088 PyObject *pyobj;
14089
14090 {
14091#if wxUSE_UNICODE
14092 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14093#else
14094 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14095#endif
14096 }
14097 return pyobj;
14098}
14099
14100
14101static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14102 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14103 return 1;
14104}
14105
14106
14107static PyObject *_wrap_ART_GO_DIR_UP_get() {
14108 PyObject *pyobj;
14109
14110 {
14111#if wxUSE_UNICODE
14112 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14113#else
14114 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14115#endif
14116 }
14117 return pyobj;
14118}
14119
14120
14121static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14122 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14123 return 1;
14124}
14125
14126
14127static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14128 PyObject *pyobj;
14129
14130 {
14131#if wxUSE_UNICODE
14132 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14133#else
14134 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14135#endif
14136 }
14137 return pyobj;
14138}
14139
14140
14141static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14142 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14143 return 1;
14144}
14145
14146
14147static PyObject *_wrap_ART_NORMAL_FILE_get() {
14148 PyObject *pyobj;
14149
14150 {
14151#if wxUSE_UNICODE
14152 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14153#else
14154 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14155#endif
14156 }
14157 return pyobj;
14158}
14159
14160
14161static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14162 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14163 return 1;
14164}
14165
14166
14167static PyObject *_wrap_ART_TICK_MARK_get() {
14168 PyObject *pyobj;
14169
14170 {
14171#if wxUSE_UNICODE
14172 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14173#else
14174 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14175#endif
14176 }
14177 return pyobj;
14178}
14179
14180
14181static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14182 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14183 return 1;
14184}
14185
14186
14187static PyObject *_wrap_ART_CROSS_MARK_get() {
14188 PyObject *pyobj;
14189
14190 {
14191#if wxUSE_UNICODE
14192 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14193#else
14194 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14195#endif
14196 }
14197 return pyobj;
14198}
14199
14200
14201static int _wrap_ART_ERROR_set(PyObject *_val) {
14202 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14203 return 1;
14204}
14205
14206
14207static PyObject *_wrap_ART_ERROR_get() {
14208 PyObject *pyobj;
14209
14210 {
14211#if wxUSE_UNICODE
14212 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14213#else
14214 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14215#endif
14216 }
14217 return pyobj;
14218}
14219
14220
14221static int _wrap_ART_QUESTION_set(PyObject *_val) {
14222 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14223 return 1;
14224}
14225
14226
14227static PyObject *_wrap_ART_QUESTION_get() {
14228 PyObject *pyobj;
14229
14230 {
14231#if wxUSE_UNICODE
14232 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14233#else
14234 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14235#endif
14236 }
14237 return pyobj;
14238}
14239
14240
14241static int _wrap_ART_WARNING_set(PyObject *_val) {
14242 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14243 return 1;
14244}
14245
14246
14247static PyObject *_wrap_ART_WARNING_get() {
14248 PyObject *pyobj;
14249
14250 {
14251#if wxUSE_UNICODE
14252 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14253#else
14254 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14255#endif
14256 }
14257 return pyobj;
14258}
14259
14260
14261static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14262 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14263 return 1;
14264}
14265
14266
14267static PyObject *_wrap_ART_INFORMATION_get() {
14268 PyObject *pyobj;
14269
14270 {
14271#if wxUSE_UNICODE
14272 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14273#else
14274 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14275#endif
14276 }
14277 return pyobj;
14278}
14279
14280
14281static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14282 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14283 return 1;
14284}
14285
14286
14287static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14288 PyObject *pyobj;
14289
14290 {
14291#if wxUSE_UNICODE
14292 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14293#else
14294 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14295#endif
14296 }
14297 return pyobj;
14298}
14299
14300
14301static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14302 PyObject *resultobj;
14303 wxPyArtProvider *result;
14304 char *kwnames[] = {
14305 NULL
14306 };
14307
14308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14309 {
14310 PyThreadState* __tstate = wxPyBeginAllowThreads();
14311 result = (wxPyArtProvider *)new wxPyArtProvider();
14312
14313 wxPyEndAllowThreads(__tstate);
14314 if (PyErr_Occurred()) SWIG_fail;
14315 }
14316 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14317 return resultobj;
14318 fail:
14319 return NULL;
14320}
14321
14322
14323static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14324 PyObject *resultobj;
14325 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14326 PyObject *arg2 = (PyObject *) 0 ;
14327 PyObject *arg3 = (PyObject *) 0 ;
14328 PyObject * obj0 = 0 ;
14329 PyObject * obj1 = 0 ;
14330 PyObject * obj2 = 0 ;
14331 char *kwnames[] = {
14332 (char *) "self",(char *) "self",(char *) "_class", NULL
14333 };
14334
14335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14338 arg2 = obj1;
14339 arg3 = obj2;
14340 {
14341 PyThreadState* __tstate = wxPyBeginAllowThreads();
14342 (arg1)->_setCallbackInfo(arg2,arg3);
14343
14344 wxPyEndAllowThreads(__tstate);
14345 if (PyErr_Occurred()) SWIG_fail;
14346 }
14347 Py_INCREF(Py_None); resultobj = Py_None;
14348 return resultobj;
14349 fail:
14350 return NULL;
14351}
14352
14353
14354static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14355 PyObject *resultobj;
14356 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14357 PyObject * obj0 = 0 ;
14358 char *kwnames[] = {
14359 (char *) "provider", NULL
14360 };
14361
14362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14365 {
14366 PyThreadState* __tstate = wxPyBeginAllowThreads();
14367 wxPyArtProvider::PushProvider(arg1);
14368
14369 wxPyEndAllowThreads(__tstate);
14370 if (PyErr_Occurred()) SWIG_fail;
14371 }
14372 Py_INCREF(Py_None); resultobj = Py_None;
14373 return resultobj;
14374 fail:
14375 return NULL;
14376}
14377
14378
14379static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14380 PyObject *resultobj;
14381 bool result;
14382 char *kwnames[] = {
14383 NULL
14384 };
14385
14386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14387 {
14388 PyThreadState* __tstate = wxPyBeginAllowThreads();
14389 result = (bool)wxPyArtProvider::PopProvider();
14390
14391 wxPyEndAllowThreads(__tstate);
14392 if (PyErr_Occurred()) SWIG_fail;
14393 }
14394 {
14395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14396 }
14397 return resultobj;
14398 fail:
14399 return NULL;
14400}
14401
14402
14403static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14404 PyObject *resultobj;
14405 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14406 bool result;
14407 PyObject * obj0 = 0 ;
14408 char *kwnames[] = {
14409 (char *) "provider", NULL
14410 };
14411
14412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14415 {
14416 PyThreadState* __tstate = wxPyBeginAllowThreads();
14417 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14418
14419 wxPyEndAllowThreads(__tstate);
14420 if (PyErr_Occurred()) SWIG_fail;
14421 }
14422 {
14423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14424 }
14425 return resultobj;
14426 fail:
14427 return NULL;
14428}
14429
14430
14431static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14432 PyObject *resultobj;
14433 wxString *arg1 = 0 ;
14434 wxString const &arg2_defvalue = wxPyART_OTHER ;
14435 wxString *arg2 = (wxString *) &arg2_defvalue ;
14436 wxSize const &arg3_defvalue = wxDefaultSize ;
14437 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14438 wxBitmap result;
14439 bool temp1 = False ;
14440 bool temp2 = False ;
14441 wxSize temp3 ;
14442 PyObject * obj0 = 0 ;
14443 PyObject * obj1 = 0 ;
14444 PyObject * obj2 = 0 ;
14445 char *kwnames[] = {
14446 (char *) "id",(char *) "client",(char *) "size", NULL
14447 };
14448
14449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14450 {
14451 arg1 = wxString_in_helper(obj0);
14452 if (arg1 == NULL) SWIG_fail;
14453 temp1 = True;
14454 }
14455 if (obj1) {
14456 {
14457 arg2 = wxString_in_helper(obj1);
14458 if (arg2 == NULL) SWIG_fail;
14459 temp2 = True;
14460 }
14461 }
14462 if (obj2) {
14463 {
14464 arg3 = &temp3;
14465 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14466 }
14467 }
14468 {
14469 PyThreadState* __tstate = wxPyBeginAllowThreads();
14470 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14471
14472 wxPyEndAllowThreads(__tstate);
14473 if (PyErr_Occurred()) SWIG_fail;
14474 }
14475 {
14476 wxBitmap * resultptr;
14477 resultptr = new wxBitmap((wxBitmap &) result);
14478 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14479 }
14480 {
14481 if (temp1)
14482 delete arg1;
14483 }
14484 {
14485 if (temp2)
14486 delete arg2;
14487 }
14488 return resultobj;
14489 fail:
14490 {
14491 if (temp1)
14492 delete arg1;
14493 }
14494 {
14495 if (temp2)
14496 delete arg2;
14497 }
14498 return NULL;
14499}
14500
14501
14502static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14503 PyObject *resultobj;
14504 wxString *arg1 = 0 ;
14505 wxString const &arg2_defvalue = wxPyART_OTHER ;
14506 wxString *arg2 = (wxString *) &arg2_defvalue ;
14507 wxSize const &arg3_defvalue = wxDefaultSize ;
14508 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14509 wxIcon result;
14510 bool temp1 = False ;
14511 bool temp2 = False ;
14512 wxSize temp3 ;
14513 PyObject * obj0 = 0 ;
14514 PyObject * obj1 = 0 ;
14515 PyObject * obj2 = 0 ;
14516 char *kwnames[] = {
14517 (char *) "id",(char *) "client",(char *) "size", NULL
14518 };
14519
14520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14521 {
14522 arg1 = wxString_in_helper(obj0);
14523 if (arg1 == NULL) SWIG_fail;
14524 temp1 = True;
14525 }
14526 if (obj1) {
14527 {
14528 arg2 = wxString_in_helper(obj1);
14529 if (arg2 == NULL) SWIG_fail;
14530 temp2 = True;
14531 }
14532 }
14533 if (obj2) {
14534 {
14535 arg3 = &temp3;
14536 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14537 }
14538 }
14539 {
14540 PyThreadState* __tstate = wxPyBeginAllowThreads();
14541 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14542
14543 wxPyEndAllowThreads(__tstate);
14544 if (PyErr_Occurred()) SWIG_fail;
14545 }
14546 {
14547 wxIcon * resultptr;
14548 resultptr = new wxIcon((wxIcon &) result);
14549 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14550 }
14551 {
14552 if (temp1)
14553 delete arg1;
14554 }
14555 {
14556 if (temp2)
14557 delete arg2;
14558 }
14559 return resultobj;
14560 fail:
14561 {
14562 if (temp1)
14563 delete arg1;
14564 }
14565 {
14566 if (temp2)
14567 delete arg2;
14568 }
14569 return NULL;
14570}
14571
14572
14573static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14574 PyObject *resultobj;
14575 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14576 PyObject * obj0 = 0 ;
14577 char *kwnames[] = {
14578 (char *) "self", NULL
14579 };
14580
14581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14584 {
14585 PyThreadState* __tstate = wxPyBeginAllowThreads();
14586 wxPyArtProvider_Destroy(arg1);
14587
14588 wxPyEndAllowThreads(__tstate);
14589 if (PyErr_Occurred()) SWIG_fail;
14590 }
14591 Py_INCREF(Py_None); resultobj = Py_None;
14592 return resultobj;
14593 fail:
14594 return NULL;
14595}
14596
14597
14598static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14599 PyObject *obj;
14600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14601 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14602 Py_INCREF(obj);
14603 return Py_BuildValue((char *)"");
14604}
14605static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14606 PyObject *resultobj;
14607 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14608 PyObject * obj0 = 0 ;
14609 char *kwnames[] = {
14610 (char *) "self", NULL
14611 };
14612
14613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14616 {
14617 PyThreadState* __tstate = wxPyBeginAllowThreads();
14618 delete arg1;
14619
14620 wxPyEndAllowThreads(__tstate);
14621 if (PyErr_Occurred()) SWIG_fail;
14622 }
14623 Py_INCREF(Py_None); resultobj = Py_None;
14624 return resultobj;
14625 fail:
14626 return NULL;
14627}
14628
14629
14630static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14631 PyObject *resultobj;
14632 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14633 wxConfigBase *result;
14634 PyObject * obj0 = 0 ;
14635 char *kwnames[] = {
14636 (char *) "config", NULL
14637 };
14638
14639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14642 {
14643 PyThreadState* __tstate = wxPyBeginAllowThreads();
14644 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14645
14646 wxPyEndAllowThreads(__tstate);
14647 if (PyErr_Occurred()) SWIG_fail;
14648 }
14649 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14650 return resultobj;
14651 fail:
14652 return NULL;
14653}
14654
14655
14656static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14657 PyObject *resultobj;
14658 bool arg1 = (bool) True ;
14659 wxConfigBase *result;
14660 PyObject * obj0 = 0 ;
14661 char *kwnames[] = {
14662 (char *) "createOnDemand", NULL
14663 };
14664
14665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14666 if (obj0) {
14667 arg1 = (bool) SWIG_AsBool(obj0);
14668 if (PyErr_Occurred()) SWIG_fail;
14669 }
14670 {
14671 PyThreadState* __tstate = wxPyBeginAllowThreads();
14672 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14673
14674 wxPyEndAllowThreads(__tstate);
14675 if (PyErr_Occurred()) SWIG_fail;
14676 }
14677 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14678 return resultobj;
14679 fail:
14680 return NULL;
14681}
14682
14683
14684static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14685 PyObject *resultobj;
14686 wxConfigBase *result;
14687 char *kwnames[] = {
14688 NULL
14689 };
14690
14691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14692 {
14693 PyThreadState* __tstate = wxPyBeginAllowThreads();
14694 result = (wxConfigBase *)wxConfigBase::Create();
14695
14696 wxPyEndAllowThreads(__tstate);
14697 if (PyErr_Occurred()) SWIG_fail;
14698 }
14699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14700 return resultobj;
14701 fail:
14702 return NULL;
14703}
14704
14705
14706static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14707 PyObject *resultobj;
14708 char *kwnames[] = {
14709 NULL
14710 };
14711
14712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14713 {
14714 PyThreadState* __tstate = wxPyBeginAllowThreads();
14715 wxConfigBase::DontCreateOnDemand();
14716
14717 wxPyEndAllowThreads(__tstate);
14718 if (PyErr_Occurred()) SWIG_fail;
14719 }
14720 Py_INCREF(Py_None); resultobj = Py_None;
14721 return resultobj;
14722 fail:
14723 return NULL;
14724}
14725
14726
14727static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14728 PyObject *resultobj;
14729 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14730 wxString *arg2 = 0 ;
14731 bool temp2 = False ;
14732 PyObject * obj0 = 0 ;
14733 PyObject * obj1 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self",(char *) "path", NULL
14736 };
14737
14738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14741 {
14742 arg2 = wxString_in_helper(obj1);
14743 if (arg2 == NULL) SWIG_fail;
14744 temp2 = True;
14745 }
14746 {
14747 PyThreadState* __tstate = wxPyBeginAllowThreads();
14748 (arg1)->SetPath((wxString const &)*arg2);
14749
14750 wxPyEndAllowThreads(__tstate);
14751 if (PyErr_Occurred()) SWIG_fail;
14752 }
14753 Py_INCREF(Py_None); resultobj = Py_None;
14754 {
14755 if (temp2)
14756 delete arg2;
14757 }
14758 return resultobj;
14759 fail:
14760 {
14761 if (temp2)
14762 delete arg2;
14763 }
14764 return NULL;
14765}
14766
14767
14768static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14769 PyObject *resultobj;
14770 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14771 wxString *result;
14772 PyObject * obj0 = 0 ;
14773 char *kwnames[] = {
14774 (char *) "self", NULL
14775 };
14776
14777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14780 {
14781 PyThreadState* __tstate = wxPyBeginAllowThreads();
14782 {
14783 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14784 result = (wxString *) &_result_ref;
14785 }
14786
14787 wxPyEndAllowThreads(__tstate);
14788 if (PyErr_Occurred()) SWIG_fail;
14789 }
14790 {
14791#if wxUSE_UNICODE
14792 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14793#else
14794 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14795#endif
14796 }
14797 return resultobj;
14798 fail:
14799 return NULL;
14800}
14801
14802
14803static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14804 PyObject *resultobj;
14805 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14806 PyObject *result;
14807 PyObject * obj0 = 0 ;
14808 char *kwnames[] = {
14809 (char *) "self", NULL
14810 };
14811
14812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14818
14819 wxPyEndAllowThreads(__tstate);
14820 if (PyErr_Occurred()) SWIG_fail;
14821 }
14822 resultobj = result;
14823 return resultobj;
14824 fail:
14825 return NULL;
14826}
14827
14828
14829static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14830 PyObject *resultobj;
14831 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14832 long arg2 ;
14833 PyObject *result;
14834 PyObject * obj0 = 0 ;
14835 PyObject * obj1 = 0 ;
14836 char *kwnames[] = {
14837 (char *) "self",(char *) "index", NULL
14838 };
14839
14840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14843 arg2 = (long) SWIG_AsLong(obj1);
14844 if (PyErr_Occurred()) SWIG_fail;
14845 {
14846 PyThreadState* __tstate = wxPyBeginAllowThreads();
14847 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14848
14849 wxPyEndAllowThreads(__tstate);
14850 if (PyErr_Occurred()) SWIG_fail;
14851 }
14852 resultobj = result;
14853 return resultobj;
14854 fail:
14855 return NULL;
14856}
14857
14858
14859static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14860 PyObject *resultobj;
14861 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14862 PyObject *result;
14863 PyObject * obj0 = 0 ;
14864 char *kwnames[] = {
14865 (char *) "self", NULL
14866 };
14867
14868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14874
14875 wxPyEndAllowThreads(__tstate);
14876 if (PyErr_Occurred()) SWIG_fail;
14877 }
14878 resultobj = result;
14879 return resultobj;
14880 fail:
14881 return NULL;
14882}
14883
14884
14885static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14886 PyObject *resultobj;
14887 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14888 long arg2 ;
14889 PyObject *result;
14890 PyObject * obj0 = 0 ;
14891 PyObject * obj1 = 0 ;
14892 char *kwnames[] = {
14893 (char *) "self",(char *) "index", NULL
14894 };
14895
14896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14899 arg2 = (long) SWIG_AsLong(obj1);
14900 if (PyErr_Occurred()) SWIG_fail;
14901 {
14902 PyThreadState* __tstate = wxPyBeginAllowThreads();
14903 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14904
14905 wxPyEndAllowThreads(__tstate);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 resultobj = result;
14909 return resultobj;
14910 fail:
14911 return NULL;
14912}
14913
14914
14915static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14916 PyObject *resultobj;
14917 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14918 bool arg2 = (bool) False ;
14919 size_t result;
14920 PyObject * obj0 = 0 ;
14921 PyObject * obj1 = 0 ;
14922 char *kwnames[] = {
14923 (char *) "self",(char *) "recursive", NULL
14924 };
14925
14926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14929 if (obj1) {
14930 arg2 = (bool) SWIG_AsBool(obj1);
14931 if (PyErr_Occurred()) SWIG_fail;
14932 }
14933 {
14934 PyThreadState* __tstate = wxPyBeginAllowThreads();
14935 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14936
14937 wxPyEndAllowThreads(__tstate);
14938 if (PyErr_Occurred()) SWIG_fail;
14939 }
14940 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14941 return resultobj;
14942 fail:
14943 return NULL;
14944}
14945
14946
14947static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
14948 PyObject *resultobj;
14949 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14950 bool arg2 = (bool) False ;
14951 size_t result;
14952 PyObject * obj0 = 0 ;
14953 PyObject * obj1 = 0 ;
14954 char *kwnames[] = {
14955 (char *) "self",(char *) "recursive", NULL
14956 };
14957
14958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14961 if (obj1) {
14962 arg2 = (bool) SWIG_AsBool(obj1);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 {
14966 PyThreadState* __tstate = wxPyBeginAllowThreads();
14967 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14968
14969 wxPyEndAllowThreads(__tstate);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 }
14972 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14973 return resultobj;
14974 fail:
14975 return NULL;
14976}
14977
14978
14979static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14980 PyObject *resultobj;
14981 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14982 wxString *arg2 = 0 ;
14983 bool result;
14984 bool temp2 = False ;
14985 PyObject * obj0 = 0 ;
14986 PyObject * obj1 = 0 ;
14987 char *kwnames[] = {
14988 (char *) "self",(char *) "name", NULL
14989 };
14990
14991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14994 {
14995 arg2 = wxString_in_helper(obj1);
14996 if (arg2 == NULL) SWIG_fail;
14997 temp2 = True;
14998 }
14999 {
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15002
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 {
15007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15008 }
15009 {
15010 if (temp2)
15011 delete arg2;
15012 }
15013 return resultobj;
15014 fail:
15015 {
15016 if (temp2)
15017 delete arg2;
15018 }
15019 return NULL;
15020}
15021
15022
15023static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15024 PyObject *resultobj;
15025 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15026 wxString *arg2 = 0 ;
15027 bool result;
15028 bool temp2 = False ;
15029 PyObject * obj0 = 0 ;
15030 PyObject * obj1 = 0 ;
15031 char *kwnames[] = {
15032 (char *) "self",(char *) "name", NULL
15033 };
15034
15035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15038 {
15039 arg2 = wxString_in_helper(obj1);
15040 if (arg2 == NULL) SWIG_fail;
15041 temp2 = True;
15042 }
15043 {
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15046
15047 wxPyEndAllowThreads(__tstate);
15048 if (PyErr_Occurred()) SWIG_fail;
15049 }
15050 {
15051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15052 }
15053 {
15054 if (temp2)
15055 delete arg2;
15056 }
15057 return resultobj;
15058 fail:
15059 {
15060 if (temp2)
15061 delete arg2;
15062 }
15063 return NULL;
15064}
15065
15066
15067static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15068 PyObject *resultobj;
15069 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15070 wxString *arg2 = 0 ;
15071 bool result;
15072 bool temp2 = False ;
15073 PyObject * obj0 = 0 ;
15074 PyObject * obj1 = 0 ;
15075 char *kwnames[] = {
15076 (char *) "self",(char *) "name", NULL
15077 };
15078
15079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15082 {
15083 arg2 = wxString_in_helper(obj1);
15084 if (arg2 == NULL) SWIG_fail;
15085 temp2 = True;
15086 }
15087 {
15088 PyThreadState* __tstate = wxPyBeginAllowThreads();
15089 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15090
15091 wxPyEndAllowThreads(__tstate);
15092 if (PyErr_Occurred()) SWIG_fail;
15093 }
15094 {
15095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15096 }
15097 {
15098 if (temp2)
15099 delete arg2;
15100 }
15101 return resultobj;
15102 fail:
15103 {
15104 if (temp2)
15105 delete arg2;
15106 }
15107 return NULL;
15108}
15109
15110
15111static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15112 PyObject *resultobj;
15113 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15114 wxString *arg2 = 0 ;
15115 int result;
15116 bool temp2 = False ;
15117 PyObject * obj0 = 0 ;
15118 PyObject * obj1 = 0 ;
15119 char *kwnames[] = {
15120 (char *) "self",(char *) "name", NULL
15121 };
15122
15123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15126 {
15127 arg2 = wxString_in_helper(obj1);
15128 if (arg2 == NULL) SWIG_fail;
15129 temp2 = True;
15130 }
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
15133 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15134
15135 wxPyEndAllowThreads(__tstate);
15136 if (PyErr_Occurred()) SWIG_fail;
15137 }
15138 resultobj = SWIG_FromInt((int)result);
15139 {
15140 if (temp2)
15141 delete arg2;
15142 }
15143 return resultobj;
15144 fail:
15145 {
15146 if (temp2)
15147 delete arg2;
15148 }
15149 return NULL;
15150}
15151
15152
15153static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15154 PyObject *resultobj;
15155 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15156 wxString *arg2 = 0 ;
15157 wxString const &arg3_defvalue = wxPyEmptyString ;
15158 wxString *arg3 = (wxString *) &arg3_defvalue ;
15159 wxString result;
15160 bool temp2 = False ;
15161 bool temp3 = False ;
15162 PyObject * obj0 = 0 ;
15163 PyObject * obj1 = 0 ;
15164 PyObject * obj2 = 0 ;
15165 char *kwnames[] = {
15166 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15167 };
15168
15169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15172 {
15173 arg2 = wxString_in_helper(obj1);
15174 if (arg2 == NULL) SWIG_fail;
15175 temp2 = True;
15176 }
15177 if (obj2) {
15178 {
15179 arg3 = wxString_in_helper(obj2);
15180 if (arg3 == NULL) SWIG_fail;
15181 temp3 = True;
15182 }
15183 }
15184 {
15185 PyThreadState* __tstate = wxPyBeginAllowThreads();
15186 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15187
15188 wxPyEndAllowThreads(__tstate);
15189 if (PyErr_Occurred()) SWIG_fail;
15190 }
15191 {
15192#if wxUSE_UNICODE
15193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15194#else
15195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15196#endif
15197 }
15198 {
15199 if (temp2)
15200 delete arg2;
15201 }
15202 {
15203 if (temp3)
15204 delete arg3;
15205 }
15206 return resultobj;
15207 fail:
15208 {
15209 if (temp2)
15210 delete arg2;
15211 }
15212 {
15213 if (temp3)
15214 delete arg3;
15215 }
15216 return NULL;
15217}
15218
15219
15220static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15221 PyObject *resultobj;
15222 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15223 wxString *arg2 = 0 ;
15224 long arg3 = (long) 0 ;
15225 long result;
15226 bool temp2 = False ;
15227 PyObject * obj0 = 0 ;
15228 PyObject * obj1 = 0 ;
15229 PyObject * obj2 = 0 ;
15230 char *kwnames[] = {
15231 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15232 };
15233
15234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15237 {
15238 arg2 = wxString_in_helper(obj1);
15239 if (arg2 == NULL) SWIG_fail;
15240 temp2 = True;
15241 }
15242 if (obj2) {
15243 arg3 = (long) SWIG_AsLong(obj2);
15244 if (PyErr_Occurred()) SWIG_fail;
15245 }
15246 {
15247 PyThreadState* __tstate = wxPyBeginAllowThreads();
15248 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15249
15250 wxPyEndAllowThreads(__tstate);
15251 if (PyErr_Occurred()) SWIG_fail;
15252 }
15253 resultobj = SWIG_FromLong((long)result);
15254 {
15255 if (temp2)
15256 delete arg2;
15257 }
15258 return resultobj;
15259 fail:
15260 {
15261 if (temp2)
15262 delete arg2;
15263 }
15264 return NULL;
15265}
15266
15267
15268static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15269 PyObject *resultobj;
15270 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15271 wxString *arg2 = 0 ;
15272 double arg3 = (double) 0.0 ;
15273 double result;
15274 bool temp2 = False ;
15275 PyObject * obj0 = 0 ;
15276 PyObject * obj1 = 0 ;
15277 PyObject * obj2 = 0 ;
15278 char *kwnames[] = {
15279 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15280 };
15281
15282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15285 {
15286 arg2 = wxString_in_helper(obj1);
15287 if (arg2 == NULL) SWIG_fail;
15288 temp2 = True;
15289 }
15290 if (obj2) {
15291 arg3 = (double) SWIG_AsDouble(obj2);
15292 if (PyErr_Occurred()) SWIG_fail;
15293 }
15294 {
15295 PyThreadState* __tstate = wxPyBeginAllowThreads();
15296 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15297
15298 wxPyEndAllowThreads(__tstate);
15299 if (PyErr_Occurred()) SWIG_fail;
15300 }
15301 resultobj = SWIG_FromDouble((double)result);
15302 {
15303 if (temp2)
15304 delete arg2;
15305 }
15306 return resultobj;
15307 fail:
15308 {
15309 if (temp2)
15310 delete arg2;
15311 }
15312 return NULL;
15313}
15314
15315
15316static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15317 PyObject *resultobj;
15318 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15319 wxString *arg2 = 0 ;
15320 bool arg3 = (bool) False ;
15321 bool result;
15322 bool temp2 = False ;
15323 PyObject * obj0 = 0 ;
15324 PyObject * obj1 = 0 ;
15325 PyObject * obj2 = 0 ;
15326 char *kwnames[] = {
15327 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15328 };
15329
15330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15333 {
15334 arg2 = wxString_in_helper(obj1);
15335 if (arg2 == NULL) SWIG_fail;
15336 temp2 = True;
15337 }
15338 if (obj2) {
15339 arg3 = (bool) SWIG_AsBool(obj2);
15340 if (PyErr_Occurred()) SWIG_fail;
15341 }
15342 {
15343 PyThreadState* __tstate = wxPyBeginAllowThreads();
15344 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15345
15346 wxPyEndAllowThreads(__tstate);
15347 if (PyErr_Occurred()) SWIG_fail;
15348 }
15349 {
15350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15351 }
15352 {
15353 if (temp2)
15354 delete arg2;
15355 }
15356 return resultobj;
15357 fail:
15358 {
15359 if (temp2)
15360 delete arg2;
15361 }
15362 return NULL;
15363}
15364
15365
15366static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15367 PyObject *resultobj;
15368 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15369 wxString *arg2 = 0 ;
15370 wxString *arg3 = 0 ;
15371 bool result;
15372 bool temp2 = False ;
15373 bool temp3 = False ;
15374 PyObject * obj0 = 0 ;
15375 PyObject * obj1 = 0 ;
15376 PyObject * obj2 = 0 ;
15377 char *kwnames[] = {
15378 (char *) "self",(char *) "key",(char *) "value", NULL
15379 };
15380
15381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15384 {
15385 arg2 = wxString_in_helper(obj1);
15386 if (arg2 == NULL) SWIG_fail;
15387 temp2 = True;
15388 }
15389 {
15390 arg3 = wxString_in_helper(obj2);
15391 if (arg3 == NULL) SWIG_fail;
15392 temp3 = True;
15393 }
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15397
15398 wxPyEndAllowThreads(__tstate);
15399 if (PyErr_Occurred()) SWIG_fail;
15400 }
15401 {
15402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15403 }
15404 {
15405 if (temp2)
15406 delete arg2;
15407 }
15408 {
15409 if (temp3)
15410 delete arg3;
15411 }
15412 return resultobj;
15413 fail:
15414 {
15415 if (temp2)
15416 delete arg2;
15417 }
15418 {
15419 if (temp3)
15420 delete arg3;
15421 }
15422 return NULL;
15423}
15424
15425
15426static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15427 PyObject *resultobj;
15428 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15429 wxString *arg2 = 0 ;
15430 long arg3 ;
15431 bool result;
15432 bool temp2 = False ;
15433 PyObject * obj0 = 0 ;
15434 PyObject * obj1 = 0 ;
15435 PyObject * obj2 = 0 ;
15436 char *kwnames[] = {
15437 (char *) "self",(char *) "key",(char *) "value", NULL
15438 };
15439
15440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15443 {
15444 arg2 = wxString_in_helper(obj1);
15445 if (arg2 == NULL) SWIG_fail;
15446 temp2 = True;
15447 }
15448 arg3 = (long) SWIG_AsLong(obj2);
15449 if (PyErr_Occurred()) SWIG_fail;
15450 {
15451 PyThreadState* __tstate = wxPyBeginAllowThreads();
15452 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15453
15454 wxPyEndAllowThreads(__tstate);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 {
15458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15459 }
15460 {
15461 if (temp2)
15462 delete arg2;
15463 }
15464 return resultobj;
15465 fail:
15466 {
15467 if (temp2)
15468 delete arg2;
15469 }
15470 return NULL;
15471}
15472
15473
15474static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15475 PyObject *resultobj;
15476 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15477 wxString *arg2 = 0 ;
15478 double arg3 ;
15479 bool result;
15480 bool temp2 = False ;
15481 PyObject * obj0 = 0 ;
15482 PyObject * obj1 = 0 ;
15483 PyObject * obj2 = 0 ;
15484 char *kwnames[] = {
15485 (char *) "self",(char *) "key",(char *) "value", NULL
15486 };
15487
15488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15491 {
15492 arg2 = wxString_in_helper(obj1);
15493 if (arg2 == NULL) SWIG_fail;
15494 temp2 = True;
15495 }
15496 arg3 = (double) SWIG_AsDouble(obj2);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 {
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15501
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 {
15506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15507 }
15508 {
15509 if (temp2)
15510 delete arg2;
15511 }
15512 return resultobj;
15513 fail:
15514 {
15515 if (temp2)
15516 delete arg2;
15517 }
15518 return NULL;
15519}
15520
15521
15522static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15523 PyObject *resultobj;
15524 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15525 wxString *arg2 = 0 ;
15526 bool arg3 ;
15527 bool result;
15528 bool temp2 = False ;
15529 PyObject * obj0 = 0 ;
15530 PyObject * obj1 = 0 ;
15531 PyObject * obj2 = 0 ;
15532 char *kwnames[] = {
15533 (char *) "self",(char *) "key",(char *) "value", NULL
15534 };
15535
15536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15539 {
15540 arg2 = wxString_in_helper(obj1);
15541 if (arg2 == NULL) SWIG_fail;
15542 temp2 = True;
15543 }
15544 arg3 = (bool) SWIG_AsBool(obj2);
15545 if (PyErr_Occurred()) SWIG_fail;
15546 {
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15549
15550 wxPyEndAllowThreads(__tstate);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 }
15553 {
15554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15555 }
15556 {
15557 if (temp2)
15558 delete arg2;
15559 }
15560 return resultobj;
15561 fail:
15562 {
15563 if (temp2)
15564 delete arg2;
15565 }
15566 return NULL;
15567}
15568
15569
15570static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15571 PyObject *resultobj;
15572 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15573 bool arg2 = (bool) False ;
15574 bool result;
15575 PyObject * obj0 = 0 ;
15576 PyObject * obj1 = 0 ;
15577 char *kwnames[] = {
15578 (char *) "self",(char *) "currentOnly", NULL
15579 };
15580
15581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15584 if (obj1) {
15585 arg2 = (bool) SWIG_AsBool(obj1);
15586 if (PyErr_Occurred()) SWIG_fail;
15587 }
15588 {
15589 PyThreadState* __tstate = wxPyBeginAllowThreads();
15590 result = (bool)(arg1)->Flush(arg2);
15591
15592 wxPyEndAllowThreads(__tstate);
15593 if (PyErr_Occurred()) SWIG_fail;
15594 }
15595 {
15596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15597 }
15598 return resultobj;
15599 fail:
15600 return NULL;
15601}
15602
15603
15604static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15605 PyObject *resultobj;
15606 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15607 wxString *arg2 = 0 ;
15608 wxString *arg3 = 0 ;
15609 bool result;
15610 bool temp2 = False ;
15611 bool temp3 = False ;
15612 PyObject * obj0 = 0 ;
15613 PyObject * obj1 = 0 ;
15614 PyObject * obj2 = 0 ;
15615 char *kwnames[] = {
15616 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15617 };
15618
15619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15622 {
15623 arg2 = wxString_in_helper(obj1);
15624 if (arg2 == NULL) SWIG_fail;
15625 temp2 = True;
15626 }
15627 {
15628 arg3 = wxString_in_helper(obj2);
15629 if (arg3 == NULL) SWIG_fail;
15630 temp3 = True;
15631 }
15632 {
15633 PyThreadState* __tstate = wxPyBeginAllowThreads();
15634 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15635
15636 wxPyEndAllowThreads(__tstate);
15637 if (PyErr_Occurred()) SWIG_fail;
15638 }
15639 {
15640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15641 }
15642 {
15643 if (temp2)
15644 delete arg2;
15645 }
15646 {
15647 if (temp3)
15648 delete arg3;
15649 }
15650 return resultobj;
15651 fail:
15652 {
15653 if (temp2)
15654 delete arg2;
15655 }
15656 {
15657 if (temp3)
15658 delete arg3;
15659 }
15660 return NULL;
15661}
15662
15663
15664static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15665 PyObject *resultobj;
15666 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15667 wxString *arg2 = 0 ;
15668 wxString *arg3 = 0 ;
15669 bool result;
15670 bool temp2 = False ;
15671 bool temp3 = False ;
15672 PyObject * obj0 = 0 ;
15673 PyObject * obj1 = 0 ;
15674 PyObject * obj2 = 0 ;
15675 char *kwnames[] = {
15676 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15677 };
15678
15679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15682 {
15683 arg2 = wxString_in_helper(obj1);
15684 if (arg2 == NULL) SWIG_fail;
15685 temp2 = True;
15686 }
15687 {
15688 arg3 = wxString_in_helper(obj2);
15689 if (arg3 == NULL) SWIG_fail;
15690 temp3 = True;
15691 }
15692 {
15693 PyThreadState* __tstate = wxPyBeginAllowThreads();
15694 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15695
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 {
15700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15701 }
15702 {
15703 if (temp2)
15704 delete arg2;
15705 }
15706 {
15707 if (temp3)
15708 delete arg3;
15709 }
15710 return resultobj;
15711 fail:
15712 {
15713 if (temp2)
15714 delete arg2;
15715 }
15716 {
15717 if (temp3)
15718 delete arg3;
15719 }
15720 return NULL;
15721}
15722
15723
15724static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15725 PyObject *resultobj;
15726 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15727 wxString *arg2 = 0 ;
15728 bool arg3 = (bool) True ;
15729 bool result;
15730 bool temp2 = False ;
15731 PyObject * obj0 = 0 ;
15732 PyObject * obj1 = 0 ;
15733 PyObject * obj2 = 0 ;
15734 char *kwnames[] = {
15735 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15736 };
15737
15738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15741 {
15742 arg2 = wxString_in_helper(obj1);
15743 if (arg2 == NULL) SWIG_fail;
15744 temp2 = True;
15745 }
15746 if (obj2) {
15747 arg3 = (bool) SWIG_AsBool(obj2);
15748 if (PyErr_Occurred()) SWIG_fail;
15749 }
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15753
15754 wxPyEndAllowThreads(__tstate);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 {
15758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15759 }
15760 {
15761 if (temp2)
15762 delete arg2;
15763 }
15764 return resultobj;
15765 fail:
15766 {
15767 if (temp2)
15768 delete arg2;
15769 }
15770 return NULL;
15771}
15772
15773
15774static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15775 PyObject *resultobj;
15776 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15777 wxString *arg2 = 0 ;
15778 bool result;
15779 bool temp2 = False ;
15780 PyObject * obj0 = 0 ;
15781 PyObject * obj1 = 0 ;
15782 char *kwnames[] = {
15783 (char *) "self",(char *) "key", NULL
15784 };
15785
15786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15789 {
15790 arg2 = wxString_in_helper(obj1);
15791 if (arg2 == NULL) SWIG_fail;
15792 temp2 = True;
15793 }
15794 {
15795 PyThreadState* __tstate = wxPyBeginAllowThreads();
15796 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15797
15798 wxPyEndAllowThreads(__tstate);
15799 if (PyErr_Occurred()) SWIG_fail;
15800 }
15801 {
15802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15803 }
15804 {
15805 if (temp2)
15806 delete arg2;
15807 }
15808 return resultobj;
15809 fail:
15810 {
15811 if (temp2)
15812 delete arg2;
15813 }
15814 return NULL;
15815}
15816
15817
15818static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15819 PyObject *resultobj;
15820 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15821 bool result;
15822 PyObject * obj0 = 0 ;
15823 char *kwnames[] = {
15824 (char *) "self", NULL
15825 };
15826
15827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15830 {
15831 PyThreadState* __tstate = wxPyBeginAllowThreads();
15832 result = (bool)(arg1)->DeleteAll();
15833
15834 wxPyEndAllowThreads(__tstate);
15835 if (PyErr_Occurred()) SWIG_fail;
15836 }
15837 {
15838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15839 }
15840 return resultobj;
15841 fail:
15842 return NULL;
15843}
15844
15845
15846static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15847 PyObject *resultobj;
15848 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15849 bool arg2 = (bool) True ;
15850 PyObject * obj0 = 0 ;
15851 PyObject * obj1 = 0 ;
15852 char *kwnames[] = {
15853 (char *) "self",(char *) "doIt", NULL
15854 };
15855
15856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15859 if (obj1) {
15860 arg2 = (bool) SWIG_AsBool(obj1);
15861 if (PyErr_Occurred()) SWIG_fail;
15862 }
15863 {
15864 PyThreadState* __tstate = wxPyBeginAllowThreads();
15865 (arg1)->SetExpandEnvVars(arg2);
15866
15867 wxPyEndAllowThreads(__tstate);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 }
15870 Py_INCREF(Py_None); resultobj = Py_None;
15871 return resultobj;
15872 fail:
15873 return NULL;
15874}
15875
15876
15877static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15878 PyObject *resultobj;
15879 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15880 bool result;
15881 PyObject * obj0 = 0 ;
15882 char *kwnames[] = {
15883 (char *) "self", NULL
15884 };
15885
15886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15889 {
15890 PyThreadState* __tstate = wxPyBeginAllowThreads();
15891 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15892
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 {
15897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15898 }
15899 return resultobj;
15900 fail:
15901 return NULL;
15902}
15903
15904
15905static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15906 PyObject *resultobj;
15907 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15908 bool arg2 = (bool) True ;
15909 PyObject * obj0 = 0 ;
15910 PyObject * obj1 = 0 ;
15911 char *kwnames[] = {
15912 (char *) "self",(char *) "doIt", NULL
15913 };
15914
15915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15918 if (obj1) {
15919 arg2 = (bool) SWIG_AsBool(obj1);
15920 if (PyErr_Occurred()) SWIG_fail;
15921 }
15922 {
15923 PyThreadState* __tstate = wxPyBeginAllowThreads();
15924 (arg1)->SetRecordDefaults(arg2);
15925
15926 wxPyEndAllowThreads(__tstate);
15927 if (PyErr_Occurred()) SWIG_fail;
15928 }
15929 Py_INCREF(Py_None); resultobj = Py_None;
15930 return resultobj;
15931 fail:
15932 return NULL;
15933}
15934
15935
15936static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15937 PyObject *resultobj;
15938 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15939 bool result;
15940 PyObject * obj0 = 0 ;
15941 char *kwnames[] = {
15942 (char *) "self", NULL
15943 };
15944
15945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15948 {
15949 PyThreadState* __tstate = wxPyBeginAllowThreads();
15950 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15951
15952 wxPyEndAllowThreads(__tstate);
15953 if (PyErr_Occurred()) SWIG_fail;
15954 }
15955 {
15956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15957 }
15958 return resultobj;
15959 fail:
15960 return NULL;
15961}
15962
15963
15964static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15965 PyObject *resultobj;
15966 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15967 wxString *arg2 = 0 ;
15968 wxString result;
15969 bool temp2 = False ;
15970 PyObject * obj0 = 0 ;
15971 PyObject * obj1 = 0 ;
15972 char *kwnames[] = {
15973 (char *) "self",(char *) "str", NULL
15974 };
15975
15976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15979 {
15980 arg2 = wxString_in_helper(obj1);
15981 if (arg2 == NULL) SWIG_fail;
15982 temp2 = True;
15983 }
15984 {
15985 PyThreadState* __tstate = wxPyBeginAllowThreads();
15986 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15987
15988 wxPyEndAllowThreads(__tstate);
15989 if (PyErr_Occurred()) SWIG_fail;
15990 }
15991 {
15992#if wxUSE_UNICODE
15993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15994#else
15995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15996#endif
15997 }
15998 {
15999 if (temp2)
16000 delete arg2;
16001 }
16002 return resultobj;
16003 fail:
16004 {
16005 if (temp2)
16006 delete arg2;
16007 }
16008 return NULL;
16009}
16010
16011
16012static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16013 PyObject *resultobj;
16014 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16015 wxString result;
16016 PyObject * obj0 = 0 ;
16017 char *kwnames[] = {
16018 (char *) "self", NULL
16019 };
16020
16021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16024 {
16025 PyThreadState* __tstate = wxPyBeginAllowThreads();
16026 result = ((wxConfigBase const *)arg1)->GetAppName();
16027
16028 wxPyEndAllowThreads(__tstate);
16029 if (PyErr_Occurred()) SWIG_fail;
16030 }
16031 {
16032#if wxUSE_UNICODE
16033 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16034#else
16035 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16036#endif
16037 }
16038 return resultobj;
16039 fail:
16040 return NULL;
16041}
16042
16043
16044static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16045 PyObject *resultobj;
16046 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16047 wxString result;
16048 PyObject * obj0 = 0 ;
16049 char *kwnames[] = {
16050 (char *) "self", NULL
16051 };
16052
16053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16056 {
16057 PyThreadState* __tstate = wxPyBeginAllowThreads();
16058 result = ((wxConfigBase const *)arg1)->GetVendorName();
16059
16060 wxPyEndAllowThreads(__tstate);
16061 if (PyErr_Occurred()) SWIG_fail;
16062 }
16063 {
16064#if wxUSE_UNICODE
16065 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16066#else
16067 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16068#endif
16069 }
16070 return resultobj;
16071 fail:
16072 return NULL;
16073}
16074
16075
16076static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16077 PyObject *resultobj;
16078 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16079 wxString *arg2 = 0 ;
16080 bool temp2 = False ;
16081 PyObject * obj0 = 0 ;
16082 PyObject * obj1 = 0 ;
16083 char *kwnames[] = {
16084 (char *) "self",(char *) "appName", NULL
16085 };
16086
16087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16090 {
16091 arg2 = wxString_in_helper(obj1);
16092 if (arg2 == NULL) SWIG_fail;
16093 temp2 = True;
16094 }
16095 {
16096 PyThreadState* __tstate = wxPyBeginAllowThreads();
16097 (arg1)->SetAppName((wxString const &)*arg2);
16098
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
16102 Py_INCREF(Py_None); resultobj = Py_None;
16103 {
16104 if (temp2)
16105 delete arg2;
16106 }
16107 return resultobj;
16108 fail:
16109 {
16110 if (temp2)
16111 delete arg2;
16112 }
16113 return NULL;
16114}
16115
16116
16117static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16118 PyObject *resultobj;
16119 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16120 wxString *arg2 = 0 ;
16121 bool temp2 = False ;
16122 PyObject * obj0 = 0 ;
16123 PyObject * obj1 = 0 ;
16124 char *kwnames[] = {
16125 (char *) "self",(char *) "vendorName", NULL
16126 };
16127
16128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16131 {
16132 arg2 = wxString_in_helper(obj1);
16133 if (arg2 == NULL) SWIG_fail;
16134 temp2 = True;
16135 }
16136 {
16137 PyThreadState* __tstate = wxPyBeginAllowThreads();
16138 (arg1)->SetVendorName((wxString const &)*arg2);
16139
16140 wxPyEndAllowThreads(__tstate);
16141 if (PyErr_Occurred()) SWIG_fail;
16142 }
16143 Py_INCREF(Py_None); resultobj = Py_None;
16144 {
16145 if (temp2)
16146 delete arg2;
16147 }
16148 return resultobj;
16149 fail:
16150 {
16151 if (temp2)
16152 delete arg2;
16153 }
16154 return NULL;
16155}
16156
16157
16158static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16159 PyObject *resultobj;
16160 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16161 long arg2 ;
16162 PyObject * obj0 = 0 ;
16163 PyObject * obj1 = 0 ;
16164 char *kwnames[] = {
16165 (char *) "self",(char *) "style", NULL
16166 };
16167
16168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16171 arg2 = (long) SWIG_AsLong(obj1);
16172 if (PyErr_Occurred()) SWIG_fail;
16173 {
16174 PyThreadState* __tstate = wxPyBeginAllowThreads();
16175 (arg1)->SetStyle(arg2);
16176
16177 wxPyEndAllowThreads(__tstate);
16178 if (PyErr_Occurred()) SWIG_fail;
16179 }
16180 Py_INCREF(Py_None); resultobj = Py_None;
16181 return resultobj;
16182 fail:
16183 return NULL;
16184}
16185
16186
16187static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16188 PyObject *resultobj;
16189 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16190 long result;
16191 PyObject * obj0 = 0 ;
16192 char *kwnames[] = {
16193 (char *) "self", NULL
16194 };
16195
16196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16199 {
16200 PyThreadState* __tstate = wxPyBeginAllowThreads();
16201 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16202
16203 wxPyEndAllowThreads(__tstate);
16204 if (PyErr_Occurred()) SWIG_fail;
16205 }
16206 resultobj = SWIG_FromLong((long)result);
16207 return resultobj;
16208 fail:
16209 return NULL;
16210}
16211
16212
16213static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16214 PyObject *obj;
16215 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16216 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16217 Py_INCREF(obj);
16218 return Py_BuildValue((char *)"");
16219}
16220static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16221 PyObject *resultobj;
16222 wxString const &arg1_defvalue = wxPyEmptyString ;
16223 wxString *arg1 = (wxString *) &arg1_defvalue ;
16224 wxString const &arg2_defvalue = wxPyEmptyString ;
16225 wxString *arg2 = (wxString *) &arg2_defvalue ;
16226 wxString const &arg3_defvalue = wxPyEmptyString ;
16227 wxString *arg3 = (wxString *) &arg3_defvalue ;
16228 wxString const &arg4_defvalue = wxPyEmptyString ;
16229 wxString *arg4 = (wxString *) &arg4_defvalue ;
16230 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16231 wxConfig *result;
16232 bool temp1 = False ;
16233 bool temp2 = False ;
16234 bool temp3 = False ;
16235 bool temp4 = False ;
16236 PyObject * obj0 = 0 ;
16237 PyObject * obj1 = 0 ;
16238 PyObject * obj2 = 0 ;
16239 PyObject * obj3 = 0 ;
16240 PyObject * obj4 = 0 ;
16241 char *kwnames[] = {
16242 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16243 };
16244
16245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16246 if (obj0) {
16247 {
16248 arg1 = wxString_in_helper(obj0);
16249 if (arg1 == NULL) SWIG_fail;
16250 temp1 = True;
16251 }
16252 }
16253 if (obj1) {
16254 {
16255 arg2 = wxString_in_helper(obj1);
16256 if (arg2 == NULL) SWIG_fail;
16257 temp2 = True;
16258 }
16259 }
16260 if (obj2) {
16261 {
16262 arg3 = wxString_in_helper(obj2);
16263 if (arg3 == NULL) SWIG_fail;
16264 temp3 = True;
16265 }
16266 }
16267 if (obj3) {
16268 {
16269 arg4 = wxString_in_helper(obj3);
16270 if (arg4 == NULL) SWIG_fail;
16271 temp4 = True;
16272 }
16273 }
16274 if (obj4) {
16275 arg5 = (long) SWIG_AsLong(obj4);
16276 if (PyErr_Occurred()) SWIG_fail;
16277 }
16278 {
16279 PyThreadState* __tstate = wxPyBeginAllowThreads();
16280 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16281
16282 wxPyEndAllowThreads(__tstate);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
16285 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16286 {
16287 if (temp1)
16288 delete arg1;
16289 }
16290 {
16291 if (temp2)
16292 delete arg2;
16293 }
16294 {
16295 if (temp3)
16296 delete arg3;
16297 }
16298 {
16299 if (temp4)
16300 delete arg4;
16301 }
16302 return resultobj;
16303 fail:
16304 {
16305 if (temp1)
16306 delete arg1;
16307 }
16308 {
16309 if (temp2)
16310 delete arg2;
16311 }
16312 {
16313 if (temp3)
16314 delete arg3;
16315 }
16316 {
16317 if (temp4)
16318 delete arg4;
16319 }
16320 return NULL;
16321}
16322
16323
16324static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16325 PyObject *resultobj;
16326 wxConfig *arg1 = (wxConfig *) 0 ;
16327 PyObject * obj0 = 0 ;
16328 char *kwnames[] = {
16329 (char *) "self", NULL
16330 };
16331
16332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16335 {
16336 PyThreadState* __tstate = wxPyBeginAllowThreads();
16337 delete arg1;
16338
16339 wxPyEndAllowThreads(__tstate);
16340 if (PyErr_Occurred()) SWIG_fail;
16341 }
16342 Py_INCREF(Py_None); resultobj = Py_None;
16343 return resultobj;
16344 fail:
16345 return NULL;
16346}
16347
16348
16349static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16350 PyObject *obj;
16351 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16352 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16353 Py_INCREF(obj);
16354 return Py_BuildValue((char *)"");
16355}
16356static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16357 PyObject *resultobj;
16358 wxString const &arg1_defvalue = wxPyEmptyString ;
16359 wxString *arg1 = (wxString *) &arg1_defvalue ;
16360 wxString const &arg2_defvalue = wxPyEmptyString ;
16361 wxString *arg2 = (wxString *) &arg2_defvalue ;
16362 wxString const &arg3_defvalue = wxPyEmptyString ;
16363 wxString *arg3 = (wxString *) &arg3_defvalue ;
16364 wxString const &arg4_defvalue = wxPyEmptyString ;
16365 wxString *arg4 = (wxString *) &arg4_defvalue ;
16366 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16367 wxFileConfig *result;
16368 bool temp1 = False ;
16369 bool temp2 = False ;
16370 bool temp3 = False ;
16371 bool temp4 = False ;
16372 PyObject * obj0 = 0 ;
16373 PyObject * obj1 = 0 ;
16374 PyObject * obj2 = 0 ;
16375 PyObject * obj3 = 0 ;
16376 PyObject * obj4 = 0 ;
16377 char *kwnames[] = {
16378 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16379 };
16380
16381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16382 if (obj0) {
16383 {
16384 arg1 = wxString_in_helper(obj0);
16385 if (arg1 == NULL) SWIG_fail;
16386 temp1 = True;
16387 }
16388 }
16389 if (obj1) {
16390 {
16391 arg2 = wxString_in_helper(obj1);
16392 if (arg2 == NULL) SWIG_fail;
16393 temp2 = True;
16394 }
16395 }
16396 if (obj2) {
16397 {
16398 arg3 = wxString_in_helper(obj2);
16399 if (arg3 == NULL) SWIG_fail;
16400 temp3 = True;
16401 }
16402 }
16403 if (obj3) {
16404 {
16405 arg4 = wxString_in_helper(obj3);
16406 if (arg4 == NULL) SWIG_fail;
16407 temp4 = True;
16408 }
16409 }
16410 if (obj4) {
16411 arg5 = (long) SWIG_AsLong(obj4);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 {
16415 PyThreadState* __tstate = wxPyBeginAllowThreads();
16416 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16417
16418 wxPyEndAllowThreads(__tstate);
16419 if (PyErr_Occurred()) SWIG_fail;
16420 }
16421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16422 {
16423 if (temp1)
16424 delete arg1;
16425 }
16426 {
16427 if (temp2)
16428 delete arg2;
16429 }
16430 {
16431 if (temp3)
16432 delete arg3;
16433 }
16434 {
16435 if (temp4)
16436 delete arg4;
16437 }
16438 return resultobj;
16439 fail:
16440 {
16441 if (temp1)
16442 delete arg1;
16443 }
16444 {
16445 if (temp2)
16446 delete arg2;
16447 }
16448 {
16449 if (temp3)
16450 delete arg3;
16451 }
16452 {
16453 if (temp4)
16454 delete arg4;
16455 }
16456 return NULL;
16457}
16458
16459
16460static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16461 PyObject *resultobj;
16462 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16463 PyObject * obj0 = 0 ;
16464 char *kwnames[] = {
16465 (char *) "self", NULL
16466 };
16467
16468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16471 {
16472 PyThreadState* __tstate = wxPyBeginAllowThreads();
16473 delete arg1;
16474
16475 wxPyEndAllowThreads(__tstate);
16476 if (PyErr_Occurred()) SWIG_fail;
16477 }
16478 Py_INCREF(Py_None); resultobj = Py_None;
16479 return resultobj;
16480 fail:
16481 return NULL;
16482}
16483
16484
16485static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16486 PyObject *obj;
16487 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16488 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16489 Py_INCREF(obj);
16490 return Py_BuildValue((char *)"");
16491}
16492static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16493 PyObject *resultobj;
16494 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16495 wxString *arg2 = 0 ;
16496 wxConfigPathChanger *result;
16497 bool temp2 = False ;
16498 PyObject * obj0 = 0 ;
16499 PyObject * obj1 = 0 ;
16500 char *kwnames[] = {
16501 (char *) "config",(char *) "entry", NULL
16502 };
16503
16504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16507 {
16508 arg2 = wxString_in_helper(obj1);
16509 if (arg2 == NULL) SWIG_fail;
16510 temp2 = True;
16511 }
16512 {
16513 PyThreadState* __tstate = wxPyBeginAllowThreads();
16514 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16515
16516 wxPyEndAllowThreads(__tstate);
16517 if (PyErr_Occurred()) SWIG_fail;
16518 }
16519 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16520 {
16521 if (temp2)
16522 delete arg2;
16523 }
16524 return resultobj;
16525 fail:
16526 {
16527 if (temp2)
16528 delete arg2;
16529 }
16530 return NULL;
16531}
16532
16533
16534static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16535 PyObject *resultobj;
16536 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16537 PyObject * obj0 = 0 ;
16538 char *kwnames[] = {
16539 (char *) "self", NULL
16540 };
16541
16542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16545 {
16546 PyThreadState* __tstate = wxPyBeginAllowThreads();
16547 delete arg1;
16548
16549 wxPyEndAllowThreads(__tstate);
16550 if (PyErr_Occurred()) SWIG_fail;
16551 }
16552 Py_INCREF(Py_None); resultobj = Py_None;
16553 return resultobj;
16554 fail:
16555 return NULL;
16556}
16557
16558
16559static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16560 PyObject *resultobj;
16561 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16562 wxString *result;
16563 PyObject * obj0 = 0 ;
16564 char *kwnames[] = {
16565 (char *) "self", NULL
16566 };
16567
16568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
16573 {
16574 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16575 result = (wxString *) &_result_ref;
16576 }
16577
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 {
16582#if wxUSE_UNICODE
16583 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16584#else
16585 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16586#endif
16587 }
16588 return resultobj;
16589 fail:
16590 return NULL;
16591}
16592
16593
16594static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16595 PyObject *obj;
16596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16597 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16598 Py_INCREF(obj);
16599 return Py_BuildValue((char *)"");
16600}
16601static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16602 PyObject *resultobj;
16603 wxString *arg1 = 0 ;
16604 wxString result;
16605 bool temp1 = False ;
16606 PyObject * obj0 = 0 ;
16607 char *kwnames[] = {
16608 (char *) "sz", NULL
16609 };
16610
16611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16612 {
16613 arg1 = wxString_in_helper(obj0);
16614 if (arg1 == NULL) SWIG_fail;
16615 temp1 = True;
16616 }
16617 {
16618 PyThreadState* __tstate = wxPyBeginAllowThreads();
16619 result = wxExpandEnvVars((wxString const &)*arg1);
16620
16621 wxPyEndAllowThreads(__tstate);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
16624 {
16625#if wxUSE_UNICODE
16626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16627#else
16628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16629#endif
16630 }
16631 {
16632 if (temp1)
16633 delete arg1;
16634 }
16635 return resultobj;
16636 fail:
16637 {
16638 if (temp1)
16639 delete arg1;
16640 }
16641 return NULL;
16642}
16643
16644
16645static int _wrap_DateFormatStr_set(PyObject *_val) {
16646 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16647 return 1;
16648}
16649
16650
16651static PyObject *_wrap_DateFormatStr_get() {
16652 PyObject *pyobj;
16653
16654 {
16655#if wxUSE_UNICODE
16656 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16657#else
16658 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16659#endif
16660 }
16661 return pyobj;
16662}
16663
16664
16665static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16666 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16667 return 1;
16668}
16669
16670
16671static PyObject *_wrap_TimeSpanFormatStr_get() {
16672 PyObject *pyobj;
16673
16674 {
16675#if wxUSE_UNICODE
16676 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16677#else
16678 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16679#endif
16680 }
16681 return pyobj;
16682}
16683
16684
16685static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16686 PyObject *resultobj;
16687 int arg1 ;
16688 PyObject * obj0 = 0 ;
16689 char *kwnames[] = {
16690 (char *) "country", NULL
16691 };
16692
16693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16694 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16695 if (PyErr_Occurred()) SWIG_fail;
16696 {
16697 PyThreadState* __tstate = wxPyBeginAllowThreads();
16698 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16699
16700 wxPyEndAllowThreads(__tstate);
16701 if (PyErr_Occurred()) SWIG_fail;
16702 }
16703 Py_INCREF(Py_None); resultobj = Py_None;
16704 return resultobj;
16705 fail:
16706 return NULL;
16707}
16708
16709
16710static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16711 PyObject *resultobj;
16712 int result;
16713 char *kwnames[] = {
16714 NULL
16715 };
16716
16717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16718 {
16719 PyThreadState* __tstate = wxPyBeginAllowThreads();
16720 result = (int)wxDateTime::GetCountry();
16721
16722 wxPyEndAllowThreads(__tstate);
16723 if (PyErr_Occurred()) SWIG_fail;
16724 }
16725 resultobj = SWIG_FromInt((int)result);
16726 return resultobj;
16727 fail:
16728 return NULL;
16729}
16730
16731
16732static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16733 PyObject *resultobj;
16734 int arg1 = (int) wxDateTime::Country_Default ;
16735 bool result;
16736 PyObject * obj0 = 0 ;
16737 char *kwnames[] = {
16738 (char *) "country", NULL
16739 };
16740
16741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16742 if (obj0) {
16743 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16744 if (PyErr_Occurred()) SWIG_fail;
16745 }
16746 {
16747 PyThreadState* __tstate = wxPyBeginAllowThreads();
16748 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16749
16750 wxPyEndAllowThreads(__tstate);
16751 if (PyErr_Occurred()) SWIG_fail;
16752 }
16753 {
16754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16755 }
16756 return resultobj;
16757 fail:
16758 return NULL;
16759}
16760
16761
16762static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16763 PyObject *resultobj;
16764 int arg1 = (int) wxDateTime::Gregorian ;
16765 int result;
16766 PyObject * obj0 = 0 ;
16767 char *kwnames[] = {
16768 (char *) "cal", NULL
16769 };
16770
16771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16772 if (obj0) {
16773 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16774 if (PyErr_Occurred()) SWIG_fail;
16775 }
16776 {
16777 PyThreadState* __tstate = wxPyBeginAllowThreads();
16778 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16779
16780 wxPyEndAllowThreads(__tstate);
16781 if (PyErr_Occurred()) SWIG_fail;
16782 }
16783 resultobj = SWIG_FromInt((int)result);
16784 return resultobj;
16785 fail:
16786 return NULL;
16787}
16788
16789
16790static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16791 PyObject *resultobj;
16792 int arg1 ;
16793 int result;
16794 PyObject * obj0 = 0 ;
16795 char *kwnames[] = {
16796 (char *) "year", NULL
16797 };
16798
16799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16800 arg1 = (int) SWIG_AsInt(obj0);
16801 if (PyErr_Occurred()) SWIG_fail;
16802 {
16803 PyThreadState* __tstate = wxPyBeginAllowThreads();
16804 result = (int)wxDateTime::ConvertYearToBC(arg1);
16805
16806 wxPyEndAllowThreads(__tstate);
16807 if (PyErr_Occurred()) SWIG_fail;
16808 }
16809 resultobj = SWIG_FromInt((int)result);
16810 return resultobj;
16811 fail:
16812 return NULL;
16813}
16814
16815
16816static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16817 PyObject *resultobj;
16818 int arg1 = (int) wxDateTime::Gregorian ;
16819 int result;
16820 PyObject * obj0 = 0 ;
16821 char *kwnames[] = {
16822 (char *) "cal", NULL
16823 };
16824
16825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16826 if (obj0) {
16827 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16828 if (PyErr_Occurred()) SWIG_fail;
16829 }
16830 {
16831 PyThreadState* __tstate = wxPyBeginAllowThreads();
16832 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16833
16834 wxPyEndAllowThreads(__tstate);
16835 if (PyErr_Occurred()) SWIG_fail;
16836 }
16837 resultobj = SWIG_FromInt((int)result);
16838 return resultobj;
16839 fail:
16840 return NULL;
16841}
16842
16843
16844static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16845 PyObject *resultobj;
16846 int arg1 = (int) wxDateTime::Inv_Year ;
16847 int arg2 = (int) wxDateTime::Gregorian ;
16848 bool result;
16849 PyObject * obj0 = 0 ;
16850 PyObject * obj1 = 0 ;
16851 char *kwnames[] = {
16852 (char *) "year",(char *) "cal", NULL
16853 };
16854
16855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16856 if (obj0) {
16857 arg1 = (int) SWIG_AsInt(obj0);
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 if (obj1) {
16861 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16862 if (PyErr_Occurred()) SWIG_fail;
16863 }
16864 {
16865 PyThreadState* __tstate = wxPyBeginAllowThreads();
16866 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16867
16868 wxPyEndAllowThreads(__tstate);
16869 if (PyErr_Occurred()) SWIG_fail;
16870 }
16871 {
16872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16873 }
16874 return resultobj;
16875 fail:
16876 return NULL;
16877}
16878
16879
16880static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16881 PyObject *resultobj;
16882 int arg1 = (int) wxDateTime::Inv_Year ;
16883 int result;
16884 PyObject * obj0 = 0 ;
16885 char *kwnames[] = {
16886 (char *) "year", NULL
16887 };
16888
16889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16890 if (obj0) {
16891 arg1 = (int) SWIG_AsInt(obj0);
16892 if (PyErr_Occurred()) SWIG_fail;
16893 }
16894 {
16895 PyThreadState* __tstate = wxPyBeginAllowThreads();
16896 result = (int)wxDateTime::GetCentury(arg1);
16897
16898 wxPyEndAllowThreads(__tstate);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 }
16901 resultobj = SWIG_FromInt((int)result);
16902 return resultobj;
16903 fail:
16904 return NULL;
16905}
16906
16907
16908static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16909 PyObject *resultobj;
16910 int arg1 ;
16911 int arg2 = (int) wxDateTime::Gregorian ;
16912 int result;
16913 PyObject * obj0 = 0 ;
16914 PyObject * obj1 = 0 ;
16915 char *kwnames[] = {
16916 (char *) "year",(char *) "cal", NULL
16917 };
16918
16919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16920 arg1 = (int) SWIG_AsInt(obj0);
16921 if (PyErr_Occurred()) SWIG_fail;
16922 if (obj1) {
16923 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16924 if (PyErr_Occurred()) SWIG_fail;
16925 }
16926 {
16927 PyThreadState* __tstate = wxPyBeginAllowThreads();
16928 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16929
16930 wxPyEndAllowThreads(__tstate);
16931 if (PyErr_Occurred()) SWIG_fail;
16932 }
16933 resultobj = SWIG_FromInt((int)result);
16934 return resultobj;
16935 fail:
16936 return NULL;
16937}
16938
16939
16940static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16941 PyObject *resultobj;
16942 int arg1 ;
16943 int arg2 = (int) wxDateTime::Inv_Year ;
16944 int arg3 = (int) wxDateTime::Gregorian ;
16945 int result;
16946 PyObject * obj0 = 0 ;
16947 PyObject * obj1 = 0 ;
16948 PyObject * obj2 = 0 ;
16949 char *kwnames[] = {
16950 (char *) "month",(char *) "year",(char *) "cal", NULL
16951 };
16952
16953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16954 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16955 if (PyErr_Occurred()) SWIG_fail;
16956 if (obj1) {
16957 arg2 = (int) SWIG_AsInt(obj1);
16958 if (PyErr_Occurred()) SWIG_fail;
16959 }
16960 if (obj2) {
16961 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 {
16965 PyThreadState* __tstate = wxPyBeginAllowThreads();
16966 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
16967
16968 wxPyEndAllowThreads(__tstate);
16969 if (PyErr_Occurred()) SWIG_fail;
16970 }
16971 resultobj = SWIG_FromInt((int)result);
16972 return resultobj;
16973 fail:
16974 return NULL;
16975}
16976
16977
16978static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
16979 PyObject *resultobj;
16980 int arg1 ;
16981 int arg2 = (int) wxDateTime::Name_Full ;
16982 wxString result;
16983 PyObject * obj0 = 0 ;
16984 PyObject * obj1 = 0 ;
16985 char *kwnames[] = {
16986 (char *) "month",(char *) "flags", NULL
16987 };
16988
16989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16990 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16991 if (PyErr_Occurred()) SWIG_fail;
16992 if (obj1) {
16993 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16994 if (PyErr_Occurred()) SWIG_fail;
16995 }
16996 {
16997 PyThreadState* __tstate = wxPyBeginAllowThreads();
16998 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16999
17000 wxPyEndAllowThreads(__tstate);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 }
17003 {
17004#if wxUSE_UNICODE
17005 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17006#else
17007 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17008#endif
17009 }
17010 return resultobj;
17011 fail:
17012 return NULL;
17013}
17014
17015
17016static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17017 PyObject *resultobj;
17018 int arg1 ;
17019 int arg2 = (int) wxDateTime::Name_Full ;
17020 wxString result;
17021 PyObject * obj0 = 0 ;
17022 PyObject * obj1 = 0 ;
17023 char *kwnames[] = {
17024 (char *) "weekday",(char *) "flags", NULL
17025 };
17026
17027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17028 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17029 if (PyErr_Occurred()) SWIG_fail;
17030 if (obj1) {
17031 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17032 if (PyErr_Occurred()) SWIG_fail;
17033 }
17034 {
17035 PyThreadState* __tstate = wxPyBeginAllowThreads();
17036 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17037
17038 wxPyEndAllowThreads(__tstate);
17039 if (PyErr_Occurred()) SWIG_fail;
17040 }
17041 {
17042#if wxUSE_UNICODE
17043 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17044#else
17045 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17046#endif
17047 }
17048 return resultobj;
17049 fail:
17050 return NULL;
17051}
17052
17053
17054static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17055 PyObject *resultobj;
17056 wxString *arg1 = (wxString *) 0 ;
17057 wxString *arg2 = (wxString *) 0 ;
17058 bool temp1 = False ;
17059 bool temp2 = False ;
17060 PyObject * obj0 = 0 ;
17061 PyObject * obj1 = 0 ;
17062 char *kwnames[] = {
17063 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17064 };
17065
17066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17067 {
17068 arg1 = wxString_in_helper(obj0);
17069 if (arg1 == NULL) SWIG_fail;
17070 temp1 = True;
17071 }
17072 {
17073 arg2 = wxString_in_helper(obj1);
17074 if (arg2 == NULL) SWIG_fail;
17075 temp2 = True;
17076 }
17077 {
17078 PyThreadState* __tstate = wxPyBeginAllowThreads();
17079 wxDateTime::GetAmPmStrings(arg1,arg2);
17080
17081 wxPyEndAllowThreads(__tstate);
17082 if (PyErr_Occurred()) SWIG_fail;
17083 }
17084 Py_INCREF(Py_None); resultobj = Py_None;
17085 {
17086 if (temp1)
17087 delete arg1;
17088 }
17089 {
17090 if (temp2)
17091 delete arg2;
17092 }
17093 return resultobj;
17094 fail:
17095 {
17096 if (temp1)
17097 delete arg1;
17098 }
17099 {
17100 if (temp2)
17101 delete arg2;
17102 }
17103 return NULL;
17104}
17105
17106
17107static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17108 PyObject *resultobj;
17109 int arg1 = (int) wxDateTime::Inv_Year ;
17110 int arg2 = (int) wxDateTime::Country_Default ;
17111 bool result;
17112 PyObject * obj0 = 0 ;
17113 PyObject * obj1 = 0 ;
17114 char *kwnames[] = {
17115 (char *) "year",(char *) "country", NULL
17116 };
17117
17118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17119 if (obj0) {
17120 arg1 = (int) SWIG_AsInt(obj0);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 if (obj1) {
17124 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17125 if (PyErr_Occurred()) SWIG_fail;
17126 }
17127 {
17128 PyThreadState* __tstate = wxPyBeginAllowThreads();
17129 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17130
17131 wxPyEndAllowThreads(__tstate);
17132 if (PyErr_Occurred()) SWIG_fail;
17133 }
17134 {
17135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17136 }
17137 return resultobj;
17138 fail:
17139 return NULL;
17140}
17141
17142
17143static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17144 PyObject *resultobj;
17145 int arg1 = (int) wxDateTime::Inv_Year ;
17146 int arg2 = (int) wxDateTime::Country_Default ;
17147 wxDateTime result;
17148 PyObject * obj0 = 0 ;
17149 PyObject * obj1 = 0 ;
17150 char *kwnames[] = {
17151 (char *) "year",(char *) "country", NULL
17152 };
17153
17154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17155 if (obj0) {
17156 arg1 = (int) SWIG_AsInt(obj0);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 if (obj1) {
17160 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17161 if (PyErr_Occurred()) SWIG_fail;
17162 }
17163 {
17164 PyThreadState* __tstate = wxPyBeginAllowThreads();
17165 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17166
17167 wxPyEndAllowThreads(__tstate);
17168 if (PyErr_Occurred()) SWIG_fail;
17169 }
17170 {
17171 wxDateTime * resultptr;
17172 resultptr = new wxDateTime((wxDateTime &) result);
17173 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17174 }
17175 return resultobj;
17176 fail:
17177 return NULL;
17178}
17179
17180
17181static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17182 PyObject *resultobj;
17183 int arg1 = (int) wxDateTime::Inv_Year ;
17184 int arg2 = (int) wxDateTime::Country_Default ;
17185 wxDateTime result;
17186 PyObject * obj0 = 0 ;
17187 PyObject * obj1 = 0 ;
17188 char *kwnames[] = {
17189 (char *) "year",(char *) "country", NULL
17190 };
17191
17192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17193 if (obj0) {
17194 arg1 = (int) SWIG_AsInt(obj0);
17195 if (PyErr_Occurred()) SWIG_fail;
17196 }
17197 if (obj1) {
17198 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17199 if (PyErr_Occurred()) SWIG_fail;
17200 }
17201 {
17202 PyThreadState* __tstate = wxPyBeginAllowThreads();
17203 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17204
17205 wxPyEndAllowThreads(__tstate);
17206 if (PyErr_Occurred()) SWIG_fail;
17207 }
17208 {
17209 wxDateTime * resultptr;
17210 resultptr = new wxDateTime((wxDateTime &) result);
17211 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17212 }
17213 return resultobj;
17214 fail:
17215 return NULL;
17216}
17217
17218
17219static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17220 PyObject *resultobj;
17221 wxDateTime result;
17222 char *kwnames[] = {
17223 NULL
17224 };
17225
17226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17227 {
17228 PyThreadState* __tstate = wxPyBeginAllowThreads();
17229 result = wxDateTime::Now();
17230
17231 wxPyEndAllowThreads(__tstate);
17232 if (PyErr_Occurred()) SWIG_fail;
17233 }
17234 {
17235 wxDateTime * resultptr;
17236 resultptr = new wxDateTime((wxDateTime &) result);
17237 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17238 }
17239 return resultobj;
17240 fail:
17241 return NULL;
17242}
17243
17244
17245static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17246 PyObject *resultobj;
17247 wxDateTime result;
17248 char *kwnames[] = {
17249 NULL
17250 };
17251
17252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17253 {
17254 PyThreadState* __tstate = wxPyBeginAllowThreads();
17255 result = wxDateTime::UNow();
17256
17257 wxPyEndAllowThreads(__tstate);
17258 if (PyErr_Occurred()) SWIG_fail;
17259 }
17260 {
17261 wxDateTime * resultptr;
17262 resultptr = new wxDateTime((wxDateTime &) result);
17263 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17264 }
17265 return resultobj;
17266 fail:
17267 return NULL;
17268}
17269
17270
17271static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17272 PyObject *resultobj;
17273 wxDateTime result;
17274 char *kwnames[] = {
17275 NULL
17276 };
17277
17278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17279 {
17280 PyThreadState* __tstate = wxPyBeginAllowThreads();
17281 result = wxDateTime::Today();
17282
17283 wxPyEndAllowThreads(__tstate);
17284 if (PyErr_Occurred()) SWIG_fail;
17285 }
17286 {
17287 wxDateTime * resultptr;
17288 resultptr = new wxDateTime((wxDateTime &) result);
17289 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17290 }
17291 return resultobj;
17292 fail:
17293 return NULL;
17294}
17295
17296
17297static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17298 PyObject *resultobj;
17299 wxDateTime *result;
17300 char *kwnames[] = {
17301 NULL
17302 };
17303
17304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17305 {
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 result = (wxDateTime *)new wxDateTime();
17308
17309 wxPyEndAllowThreads(__tstate);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
17312 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17313 return resultobj;
17314 fail:
17315 return NULL;
17316}
17317
17318
17319static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17320 PyObject *resultobj;
17321 time_t arg1 ;
17322 wxDateTime *result;
17323 PyObject * obj0 = 0 ;
17324 char *kwnames[] = {
17325 (char *) "timet", NULL
17326 };
17327
17328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17329 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17330 if (PyErr_Occurred()) SWIG_fail;
17331 {
17332 PyThreadState* __tstate = wxPyBeginAllowThreads();
17333 result = (wxDateTime *)new wxDateTime(arg1);
17334
17335 wxPyEndAllowThreads(__tstate);
17336 if (PyErr_Occurred()) SWIG_fail;
17337 }
17338 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17339 return resultobj;
17340 fail:
17341 return NULL;
17342}
17343
17344
17345static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17346 PyObject *resultobj;
17347 double arg1 ;
17348 wxDateTime *result;
17349 PyObject * obj0 = 0 ;
17350 char *kwnames[] = {
17351 (char *) "jdn", NULL
17352 };
17353
17354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17355 arg1 = (double) SWIG_AsDouble(obj0);
17356 if (PyErr_Occurred()) SWIG_fail;
17357 {
17358 PyThreadState* __tstate = wxPyBeginAllowThreads();
17359 result = (wxDateTime *)new wxDateTime(arg1);
17360
17361 wxPyEndAllowThreads(__tstate);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 }
17364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17365 return resultobj;
17366 fail:
17367 return NULL;
17368}
17369
17370
17371static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17372 PyObject *resultobj;
17373 int arg1 ;
17374 int arg2 = (int) 0 ;
17375 int arg3 = (int) 0 ;
17376 int arg4 = (int) 0 ;
17377 wxDateTime *result;
17378 PyObject * obj0 = 0 ;
17379 PyObject * obj1 = 0 ;
17380 PyObject * obj2 = 0 ;
17381 PyObject * obj3 = 0 ;
17382 char *kwnames[] = {
17383 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17384 };
17385
17386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17387 arg1 = (int) SWIG_AsInt(obj0);
17388 if (PyErr_Occurred()) SWIG_fail;
17389 if (obj1) {
17390 arg2 = (int) SWIG_AsInt(obj1);
17391 if (PyErr_Occurred()) SWIG_fail;
17392 }
17393 if (obj2) {
17394 arg3 = (int) SWIG_AsInt(obj2);
17395 if (PyErr_Occurred()) SWIG_fail;
17396 }
17397 if (obj3) {
17398 arg4 = (int) SWIG_AsInt(obj3);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 }
17401 {
17402 PyThreadState* __tstate = wxPyBeginAllowThreads();
17403 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17404
17405 wxPyEndAllowThreads(__tstate);
17406 if (PyErr_Occurred()) SWIG_fail;
17407 }
17408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17409 return resultobj;
17410 fail:
17411 return NULL;
17412}
17413
17414
17415static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17416 PyObject *resultobj;
17417 int arg1 ;
17418 int arg2 = (int) wxDateTime::Inv_Month ;
17419 int arg3 = (int) wxDateTime::Inv_Year ;
17420 int arg4 = (int) 0 ;
17421 int arg5 = (int) 0 ;
17422 int arg6 = (int) 0 ;
17423 int arg7 = (int) 0 ;
17424 wxDateTime *result;
17425 PyObject * obj0 = 0 ;
17426 PyObject * obj1 = 0 ;
17427 PyObject * obj2 = 0 ;
17428 PyObject * obj3 = 0 ;
17429 PyObject * obj4 = 0 ;
17430 PyObject * obj5 = 0 ;
17431 PyObject * obj6 = 0 ;
17432 char *kwnames[] = {
17433 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17434 };
17435
17436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17437 arg1 = (int) SWIG_AsInt(obj0);
17438 if (PyErr_Occurred()) SWIG_fail;
17439 if (obj1) {
17440 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
17443 if (obj2) {
17444 arg3 = (int) SWIG_AsInt(obj2);
17445 if (PyErr_Occurred()) SWIG_fail;
17446 }
17447 if (obj3) {
17448 arg4 = (int) SWIG_AsInt(obj3);
17449 if (PyErr_Occurred()) SWIG_fail;
17450 }
17451 if (obj4) {
17452 arg5 = (int) SWIG_AsInt(obj4);
17453 if (PyErr_Occurred()) SWIG_fail;
17454 }
17455 if (obj5) {
17456 arg6 = (int) SWIG_AsInt(obj5);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 }
17459 if (obj6) {
17460 arg7 = (int) SWIG_AsInt(obj6);
17461 if (PyErr_Occurred()) SWIG_fail;
17462 }
17463 {
17464 PyThreadState* __tstate = wxPyBeginAllowThreads();
17465 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17466
17467 wxPyEndAllowThreads(__tstate);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17471 return resultobj;
17472 fail:
17473 return NULL;
17474}
17475
17476
17477static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17478 PyObject *resultobj;
17479 wxDateTime *arg1 = (wxDateTime *) 0 ;
17480 PyObject * obj0 = 0 ;
17481 char *kwnames[] = {
17482 (char *) "self", NULL
17483 };
17484
17485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17488 {
17489 PyThreadState* __tstate = wxPyBeginAllowThreads();
17490 delete arg1;
17491
17492 wxPyEndAllowThreads(__tstate);
17493 if (PyErr_Occurred()) SWIG_fail;
17494 }
17495 Py_INCREF(Py_None); resultobj = Py_None;
17496 return resultobj;
17497 fail:
17498 return NULL;
17499}
17500
17501
17502static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17503 PyObject *resultobj;
17504 wxDateTime *arg1 = (wxDateTime *) 0 ;
17505 wxDateTime *result;
17506 PyObject * obj0 = 0 ;
17507 char *kwnames[] = {
17508 (char *) "self", NULL
17509 };
17510
17511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 {
17517 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17518 result = (wxDateTime *) &_result_ref;
17519 }
17520
17521 wxPyEndAllowThreads(__tstate);
17522 if (PyErr_Occurred()) SWIG_fail;
17523 }
17524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17525 return resultobj;
17526 fail:
17527 return NULL;
17528}
17529
17530
17531static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17532 PyObject *resultobj;
17533 wxDateTime *arg1 = (wxDateTime *) 0 ;
17534 time_t arg2 ;
17535 wxDateTime *result;
17536 PyObject * obj0 = 0 ;
17537 PyObject * obj1 = 0 ;
17538 char *kwnames[] = {
17539 (char *) "self",(char *) "timet", NULL
17540 };
17541
17542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17545 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17546 if (PyErr_Occurred()) SWIG_fail;
17547 {
17548 PyThreadState* __tstate = wxPyBeginAllowThreads();
17549 {
17550 wxDateTime &_result_ref = (arg1)->Set(arg2);
17551 result = (wxDateTime *) &_result_ref;
17552 }
17553
17554 wxPyEndAllowThreads(__tstate);
17555 if (PyErr_Occurred()) SWIG_fail;
17556 }
17557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17558 return resultobj;
17559 fail:
17560 return NULL;
17561}
17562
17563
17564static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17565 PyObject *resultobj;
17566 wxDateTime *arg1 = (wxDateTime *) 0 ;
17567 double arg2 ;
17568 wxDateTime *result;
17569 PyObject * obj0 = 0 ;
17570 PyObject * obj1 = 0 ;
17571 char *kwnames[] = {
17572 (char *) "self",(char *) "jdn", NULL
17573 };
17574
17575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17578 arg2 = (double) SWIG_AsDouble(obj1);
17579 if (PyErr_Occurred()) SWIG_fail;
17580 {
17581 PyThreadState* __tstate = wxPyBeginAllowThreads();
17582 {
17583 wxDateTime &_result_ref = (arg1)->Set(arg2);
17584 result = (wxDateTime *) &_result_ref;
17585 }
17586
17587 wxPyEndAllowThreads(__tstate);
17588 if (PyErr_Occurred()) SWIG_fail;
17589 }
17590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17591 return resultobj;
17592 fail:
17593 return NULL;
17594}
17595
17596
17597static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17598 PyObject *resultobj;
17599 wxDateTime *arg1 = (wxDateTime *) 0 ;
17600 int arg2 ;
17601 int arg3 = (int) 0 ;
17602 int arg4 = (int) 0 ;
17603 int arg5 = (int) 0 ;
17604 wxDateTime *result;
17605 PyObject * obj0 = 0 ;
17606 PyObject * obj1 = 0 ;
17607 PyObject * obj2 = 0 ;
17608 PyObject * obj3 = 0 ;
17609 PyObject * obj4 = 0 ;
17610 char *kwnames[] = {
17611 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17612 };
17613
17614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17617 arg2 = (int) SWIG_AsInt(obj1);
17618 if (PyErr_Occurred()) SWIG_fail;
17619 if (obj2) {
17620 arg3 = (int) SWIG_AsInt(obj2);
17621 if (PyErr_Occurred()) SWIG_fail;
17622 }
17623 if (obj3) {
17624 arg4 = (int) SWIG_AsInt(obj3);
17625 if (PyErr_Occurred()) SWIG_fail;
17626 }
17627 if (obj4) {
17628 arg5 = (int) SWIG_AsInt(obj4);
17629 if (PyErr_Occurred()) SWIG_fail;
17630 }
17631 {
17632 PyThreadState* __tstate = wxPyBeginAllowThreads();
17633 {
17634 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17635 result = (wxDateTime *) &_result_ref;
17636 }
17637
17638 wxPyEndAllowThreads(__tstate);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 }
17641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17642 return resultobj;
17643 fail:
17644 return NULL;
17645}
17646
17647
17648static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17649 PyObject *resultobj;
17650 wxDateTime *arg1 = (wxDateTime *) 0 ;
17651 int arg2 ;
17652 int arg3 = (int) wxDateTime::Inv_Month ;
17653 int arg4 = (int) wxDateTime::Inv_Year ;
17654 int arg5 = (int) 0 ;
17655 int arg6 = (int) 0 ;
17656 int arg7 = (int) 0 ;
17657 int arg8 = (int) 0 ;
17658 wxDateTime *result;
17659 PyObject * obj0 = 0 ;
17660 PyObject * obj1 = 0 ;
17661 PyObject * obj2 = 0 ;
17662 PyObject * obj3 = 0 ;
17663 PyObject * obj4 = 0 ;
17664 PyObject * obj5 = 0 ;
17665 PyObject * obj6 = 0 ;
17666 PyObject * obj7 = 0 ;
17667 char *kwnames[] = {
17668 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17669 };
17670
17671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17674 arg2 = (int) SWIG_AsInt(obj1);
17675 if (PyErr_Occurred()) SWIG_fail;
17676 if (obj2) {
17677 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17678 if (PyErr_Occurred()) SWIG_fail;
17679 }
17680 if (obj3) {
17681 arg4 = (int) SWIG_AsInt(obj3);
17682 if (PyErr_Occurred()) SWIG_fail;
17683 }
17684 if (obj4) {
17685 arg5 = (int) SWIG_AsInt(obj4);
17686 if (PyErr_Occurred()) SWIG_fail;
17687 }
17688 if (obj5) {
17689 arg6 = (int) SWIG_AsInt(obj5);
17690 if (PyErr_Occurred()) SWIG_fail;
17691 }
17692 if (obj6) {
17693 arg7 = (int) SWIG_AsInt(obj6);
17694 if (PyErr_Occurred()) SWIG_fail;
17695 }
17696 if (obj7) {
17697 arg8 = (int) SWIG_AsInt(obj7);
17698 if (PyErr_Occurred()) SWIG_fail;
17699 }
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 {
17703 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17704 result = (wxDateTime *) &_result_ref;
17705 }
17706
17707 wxPyEndAllowThreads(__tstate);
17708 if (PyErr_Occurred()) SWIG_fail;
17709 }
17710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17711 return resultobj;
17712 fail:
17713 return NULL;
17714}
17715
17716
17717static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17718 PyObject *resultobj;
17719 wxDateTime *arg1 = (wxDateTime *) 0 ;
17720 wxDateTime *result;
17721 PyObject * obj0 = 0 ;
17722 char *kwnames[] = {
17723 (char *) "self", NULL
17724 };
17725
17726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17729 {
17730 PyThreadState* __tstate = wxPyBeginAllowThreads();
17731 {
17732 wxDateTime &_result_ref = (arg1)->ResetTime();
17733 result = (wxDateTime *) &_result_ref;
17734 }
17735
17736 wxPyEndAllowThreads(__tstate);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 }
17739 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17740 return resultobj;
17741 fail:
17742 return NULL;
17743}
17744
17745
17746static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17747 PyObject *resultobj;
17748 wxDateTime *arg1 = (wxDateTime *) 0 ;
17749 int arg2 ;
17750 wxDateTime *result;
17751 PyObject * obj0 = 0 ;
17752 PyObject * obj1 = 0 ;
17753 char *kwnames[] = {
17754 (char *) "self",(char *) "year", NULL
17755 };
17756
17757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17760 arg2 = (int) SWIG_AsInt(obj1);
17761 if (PyErr_Occurred()) SWIG_fail;
17762 {
17763 PyThreadState* __tstate = wxPyBeginAllowThreads();
17764 {
17765 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17766 result = (wxDateTime *) &_result_ref;
17767 }
17768
17769 wxPyEndAllowThreads(__tstate);
17770 if (PyErr_Occurred()) SWIG_fail;
17771 }
17772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17773 return resultobj;
17774 fail:
17775 return NULL;
17776}
17777
17778
17779static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17780 PyObject *resultobj;
17781 wxDateTime *arg1 = (wxDateTime *) 0 ;
17782 int arg2 ;
17783 wxDateTime *result;
17784 PyObject * obj0 = 0 ;
17785 PyObject * obj1 = 0 ;
17786 char *kwnames[] = {
17787 (char *) "self",(char *) "month", NULL
17788 };
17789
17790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17793 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17794 if (PyErr_Occurred()) SWIG_fail;
17795 {
17796 PyThreadState* __tstate = wxPyBeginAllowThreads();
17797 {
17798 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17799 result = (wxDateTime *) &_result_ref;
17800 }
17801
17802 wxPyEndAllowThreads(__tstate);
17803 if (PyErr_Occurred()) SWIG_fail;
17804 }
17805 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17806 return resultobj;
17807 fail:
17808 return NULL;
17809}
17810
17811
17812static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17813 PyObject *resultobj;
17814 wxDateTime *arg1 = (wxDateTime *) 0 ;
17815 int arg2 ;
17816 wxDateTime *result;
17817 PyObject * obj0 = 0 ;
17818 PyObject * obj1 = 0 ;
17819 char *kwnames[] = {
17820 (char *) "self",(char *) "day", NULL
17821 };
17822
17823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17826 arg2 = (int) SWIG_AsInt(obj1);
17827 if (PyErr_Occurred()) SWIG_fail;
17828 {
17829 PyThreadState* __tstate = wxPyBeginAllowThreads();
17830 {
17831 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17832 result = (wxDateTime *) &_result_ref;
17833 }
17834
17835 wxPyEndAllowThreads(__tstate);
17836 if (PyErr_Occurred()) SWIG_fail;
17837 }
17838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17839 return resultobj;
17840 fail:
17841 return NULL;
17842}
17843
17844
17845static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17846 PyObject *resultobj;
17847 wxDateTime *arg1 = (wxDateTime *) 0 ;
17848 int arg2 ;
17849 wxDateTime *result;
17850 PyObject * obj0 = 0 ;
17851 PyObject * obj1 = 0 ;
17852 char *kwnames[] = {
17853 (char *) "self",(char *) "hour", NULL
17854 };
17855
17856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17859 arg2 = (int) SWIG_AsInt(obj1);
17860 if (PyErr_Occurred()) SWIG_fail;
17861 {
17862 PyThreadState* __tstate = wxPyBeginAllowThreads();
17863 {
17864 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17865 result = (wxDateTime *) &_result_ref;
17866 }
17867
17868 wxPyEndAllowThreads(__tstate);
17869 if (PyErr_Occurred()) SWIG_fail;
17870 }
17871 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17872 return resultobj;
17873 fail:
17874 return NULL;
17875}
17876
17877
17878static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17879 PyObject *resultobj;
17880 wxDateTime *arg1 = (wxDateTime *) 0 ;
17881 int arg2 ;
17882 wxDateTime *result;
17883 PyObject * obj0 = 0 ;
17884 PyObject * obj1 = 0 ;
17885 char *kwnames[] = {
17886 (char *) "self",(char *) "minute", NULL
17887 };
17888
17889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17892 arg2 = (int) SWIG_AsInt(obj1);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 {
17897 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17898 result = (wxDateTime *) &_result_ref;
17899 }
17900
17901 wxPyEndAllowThreads(__tstate);
17902 if (PyErr_Occurred()) SWIG_fail;
17903 }
17904 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17905 return resultobj;
17906 fail:
17907 return NULL;
17908}
17909
17910
17911static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17912 PyObject *resultobj;
17913 wxDateTime *arg1 = (wxDateTime *) 0 ;
17914 int arg2 ;
17915 wxDateTime *result;
17916 PyObject * obj0 = 0 ;
17917 PyObject * obj1 = 0 ;
17918 char *kwnames[] = {
17919 (char *) "self",(char *) "second", NULL
17920 };
17921
17922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17925 arg2 = (int) SWIG_AsInt(obj1);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 {
17930 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17931 result = (wxDateTime *) &_result_ref;
17932 }
17933
17934 wxPyEndAllowThreads(__tstate);
17935 if (PyErr_Occurred()) SWIG_fail;
17936 }
17937 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17938 return resultobj;
17939 fail:
17940 return NULL;
17941}
17942
17943
17944static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17945 PyObject *resultobj;
17946 wxDateTime *arg1 = (wxDateTime *) 0 ;
17947 int arg2 ;
17948 wxDateTime *result;
17949 PyObject * obj0 = 0 ;
17950 PyObject * obj1 = 0 ;
17951 char *kwnames[] = {
17952 (char *) "self",(char *) "millisecond", NULL
17953 };
17954
17955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17958 arg2 = (int) SWIG_AsInt(obj1);
17959 if (PyErr_Occurred()) SWIG_fail;
17960 {
17961 PyThreadState* __tstate = wxPyBeginAllowThreads();
17962 {
17963 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17964 result = (wxDateTime *) &_result_ref;
17965 }
17966
17967 wxPyEndAllowThreads(__tstate);
17968 if (PyErr_Occurred()) SWIG_fail;
17969 }
17970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17971 return resultobj;
17972 fail:
17973 return NULL;
17974}
17975
17976
17977static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17978 PyObject *resultobj;
17979 wxDateTime *arg1 = (wxDateTime *) 0 ;
17980 int arg2 ;
17981 int arg3 = (int) wxDateTime::Monday_First ;
17982 wxDateTime *result;
17983 PyObject * obj0 = 0 ;
17984 PyObject * obj1 = 0 ;
17985 PyObject * obj2 = 0 ;
17986 char *kwnames[] = {
17987 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17988 };
17989
17990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17993 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17994 if (PyErr_Occurred()) SWIG_fail;
17995 if (obj2) {
17996 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17997 if (PyErr_Occurred()) SWIG_fail;
17998 }
17999 {
18000 PyThreadState* __tstate = wxPyBeginAllowThreads();
18001 {
18002 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18003 result = (wxDateTime *) &_result_ref;
18004 }
18005
18006 wxPyEndAllowThreads(__tstate);
18007 if (PyErr_Occurred()) SWIG_fail;
18008 }
18009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18010 return resultobj;
18011 fail:
18012 return NULL;
18013}
18014
18015
18016static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18017 PyObject *resultobj;
18018 wxDateTime *arg1 = (wxDateTime *) 0 ;
18019 int arg2 ;
18020 int arg3 = (int) wxDateTime::Monday_First ;
18021 wxDateTime result;
18022 PyObject * obj0 = 0 ;
18023 PyObject * obj1 = 0 ;
18024 PyObject * obj2 = 0 ;
18025 char *kwnames[] = {
18026 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18027 };
18028
18029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18032 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18033 if (PyErr_Occurred()) SWIG_fail;
18034 if (obj2) {
18035 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 {
18039 PyThreadState* __tstate = wxPyBeginAllowThreads();
18040 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18041
18042 wxPyEndAllowThreads(__tstate);
18043 if (PyErr_Occurred()) SWIG_fail;
18044 }
18045 {
18046 wxDateTime * resultptr;
18047 resultptr = new wxDateTime((wxDateTime &) result);
18048 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18049 }
18050 return resultobj;
18051 fail:
18052 return NULL;
18053}
18054
18055
18056static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18057 PyObject *resultobj;
18058 wxDateTime *arg1 = (wxDateTime *) 0 ;
18059 int arg2 ;
18060 wxDateTime *result;
18061 PyObject * obj0 = 0 ;
18062 PyObject * obj1 = 0 ;
18063 char *kwnames[] = {
18064 (char *) "self",(char *) "weekday", NULL
18065 };
18066
18067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18070 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18071 if (PyErr_Occurred()) SWIG_fail;
18072 {
18073 PyThreadState* __tstate = wxPyBeginAllowThreads();
18074 {
18075 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18076 result = (wxDateTime *) &_result_ref;
18077 }
18078
18079 wxPyEndAllowThreads(__tstate);
18080 if (PyErr_Occurred()) SWIG_fail;
18081 }
18082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18083 return resultobj;
18084 fail:
18085 return NULL;
18086}
18087
18088
18089static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18090 PyObject *resultobj;
18091 wxDateTime *arg1 = (wxDateTime *) 0 ;
18092 int arg2 ;
18093 wxDateTime result;
18094 PyObject * obj0 = 0 ;
18095 PyObject * obj1 = 0 ;
18096 char *kwnames[] = {
18097 (char *) "self",(char *) "weekday", NULL
18098 };
18099
18100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18103 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 {
18106 PyThreadState* __tstate = wxPyBeginAllowThreads();
18107 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18108
18109 wxPyEndAllowThreads(__tstate);
18110 if (PyErr_Occurred()) SWIG_fail;
18111 }
18112 {
18113 wxDateTime * resultptr;
18114 resultptr = new wxDateTime((wxDateTime &) result);
18115 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18116 }
18117 return resultobj;
18118 fail:
18119 return NULL;
18120}
18121
18122
18123static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18124 PyObject *resultobj;
18125 wxDateTime *arg1 = (wxDateTime *) 0 ;
18126 int arg2 ;
18127 wxDateTime *result;
18128 PyObject * obj0 = 0 ;
18129 PyObject * obj1 = 0 ;
18130 char *kwnames[] = {
18131 (char *) "self",(char *) "weekday", NULL
18132 };
18133
18134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18137 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18138 if (PyErr_Occurred()) SWIG_fail;
18139 {
18140 PyThreadState* __tstate = wxPyBeginAllowThreads();
18141 {
18142 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18143 result = (wxDateTime *) &_result_ref;
18144 }
18145
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18150 return resultobj;
18151 fail:
18152 return NULL;
18153}
18154
18155
18156static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18157 PyObject *resultobj;
18158 wxDateTime *arg1 = (wxDateTime *) 0 ;
18159 int arg2 ;
18160 wxDateTime result;
18161 PyObject * obj0 = 0 ;
18162 PyObject * obj1 = 0 ;
18163 char *kwnames[] = {
18164 (char *) "self",(char *) "weekday", NULL
18165 };
18166
18167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18170 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18171 if (PyErr_Occurred()) SWIG_fail;
18172 {
18173 PyThreadState* __tstate = wxPyBeginAllowThreads();
18174 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18175
18176 wxPyEndAllowThreads(__tstate);
18177 if (PyErr_Occurred()) SWIG_fail;
18178 }
18179 {
18180 wxDateTime * resultptr;
18181 resultptr = new wxDateTime((wxDateTime &) result);
18182 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18183 }
18184 return resultobj;
18185 fail:
18186 return NULL;
18187}
18188
18189
18190static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18191 PyObject *resultobj;
18192 wxDateTime *arg1 = (wxDateTime *) 0 ;
18193 int arg2 ;
18194 int arg3 = (int) 1 ;
18195 int arg4 = (int) wxDateTime::Inv_Month ;
18196 int arg5 = (int) wxDateTime::Inv_Year ;
18197 bool result;
18198 PyObject * obj0 = 0 ;
18199 PyObject * obj1 = 0 ;
18200 PyObject * obj2 = 0 ;
18201 PyObject * obj3 = 0 ;
18202 PyObject * obj4 = 0 ;
18203 char *kwnames[] = {
18204 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18205 };
18206
18207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18210 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18211 if (PyErr_Occurred()) SWIG_fail;
18212 if (obj2) {
18213 arg3 = (int) SWIG_AsInt(obj2);
18214 if (PyErr_Occurred()) SWIG_fail;
18215 }
18216 if (obj3) {
18217 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 if (obj4) {
18221 arg5 = (int) SWIG_AsInt(obj4);
18222 if (PyErr_Occurred()) SWIG_fail;
18223 }
18224 {
18225 PyThreadState* __tstate = wxPyBeginAllowThreads();
18226 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18227
18228 wxPyEndAllowThreads(__tstate);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
18231 {
18232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18233 }
18234 return resultobj;
18235 fail:
18236 return NULL;
18237}
18238
18239
18240static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18241 PyObject *resultobj;
18242 wxDateTime *arg1 = (wxDateTime *) 0 ;
18243 int arg2 ;
18244 int arg3 = (int) wxDateTime::Inv_Month ;
18245 int arg4 = (int) wxDateTime::Inv_Year ;
18246 bool result;
18247 PyObject * obj0 = 0 ;
18248 PyObject * obj1 = 0 ;
18249 PyObject * obj2 = 0 ;
18250 PyObject * obj3 = 0 ;
18251 char *kwnames[] = {
18252 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18253 };
18254
18255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18258 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18259 if (PyErr_Occurred()) SWIG_fail;
18260 if (obj2) {
18261 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18262 if (PyErr_Occurred()) SWIG_fail;
18263 }
18264 if (obj3) {
18265 arg4 = (int) SWIG_AsInt(obj3);
18266 if (PyErr_Occurred()) SWIG_fail;
18267 }
18268 {
18269 PyThreadState* __tstate = wxPyBeginAllowThreads();
18270 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18271
18272 wxPyEndAllowThreads(__tstate);
18273 if (PyErr_Occurred()) SWIG_fail;
18274 }
18275 {
18276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18277 }
18278 return resultobj;
18279 fail:
18280 return NULL;
18281}
18282
18283
18284static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18285 PyObject *resultobj;
18286 wxDateTime *arg1 = (wxDateTime *) 0 ;
18287 int arg2 ;
18288 int arg3 = (int) wxDateTime::Inv_Month ;
18289 int arg4 = (int) wxDateTime::Inv_Year ;
18290 wxDateTime result;
18291 PyObject * obj0 = 0 ;
18292 PyObject * obj1 = 0 ;
18293 PyObject * obj2 = 0 ;
18294 PyObject * obj3 = 0 ;
18295 char *kwnames[] = {
18296 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18297 };
18298
18299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18302 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 if (obj2) {
18305 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
18308 if (obj3) {
18309 arg4 = (int) SWIG_AsInt(obj3);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 {
18313 PyThreadState* __tstate = wxPyBeginAllowThreads();
18314 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18315
18316 wxPyEndAllowThreads(__tstate);
18317 if (PyErr_Occurred()) SWIG_fail;
18318 }
18319 {
18320 wxDateTime * resultptr;
18321 resultptr = new wxDateTime((wxDateTime &) result);
18322 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18323 }
18324 return resultobj;
18325 fail:
18326 return NULL;
18327}
18328
18329
18330static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18331 PyObject *resultobj;
18332 wxDateTime *arg1 = (wxDateTime *) 0 ;
18333 int arg2 ;
18334 int arg3 = (int) wxDateTime::Mon ;
18335 int arg4 = (int) wxDateTime::Monday_First ;
18336 bool result;
18337 PyObject * obj0 = 0 ;
18338 PyObject * obj1 = 0 ;
18339 PyObject * obj2 = 0 ;
18340 PyObject * obj3 = 0 ;
18341 char *kwnames[] = {
18342 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18343 };
18344
18345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18348 arg2 = (int) SWIG_AsInt(obj1);
18349 if (PyErr_Occurred()) SWIG_fail;
18350 if (obj2) {
18351 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 if (obj3) {
18355 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18356 if (PyErr_Occurred()) SWIG_fail;
18357 }
18358 {
18359 PyThreadState* __tstate = wxPyBeginAllowThreads();
18360 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18361
18362 wxPyEndAllowThreads(__tstate);
18363 if (PyErr_Occurred()) SWIG_fail;
18364 }
18365 {
18366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18367 }
18368 return resultobj;
18369 fail:
18370 return NULL;
18371}
18372
18373
18374static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18375 PyObject *resultobj;
18376 wxDateTime *arg1 = (wxDateTime *) 0 ;
18377 int arg2 ;
18378 int arg3 = (int) wxDateTime::Mon ;
18379 int arg4 = (int) wxDateTime::Monday_First ;
18380 wxDateTime result;
18381 PyObject * obj0 = 0 ;
18382 PyObject * obj1 = 0 ;
18383 PyObject * obj2 = 0 ;
18384 PyObject * obj3 = 0 ;
18385 char *kwnames[] = {
18386 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18387 };
18388
18389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18392 arg2 = (int) SWIG_AsInt(obj1);
18393 if (PyErr_Occurred()) SWIG_fail;
18394 if (obj2) {
18395 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18396 if (PyErr_Occurred()) SWIG_fail;
18397 }
18398 if (obj3) {
18399 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18400 if (PyErr_Occurred()) SWIG_fail;
18401 }
18402 {
18403 PyThreadState* __tstate = wxPyBeginAllowThreads();
18404 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18405
18406 wxPyEndAllowThreads(__tstate);
18407 if (PyErr_Occurred()) SWIG_fail;
18408 }
18409 {
18410 wxDateTime * resultptr;
18411 resultptr = new wxDateTime((wxDateTime &) result);
18412 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18413 }
18414 return resultobj;
18415 fail:
18416 return NULL;
18417}
18418
18419
18420static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18421 PyObject *resultobj;
18422 wxDateTime *arg1 = (wxDateTime *) 0 ;
18423 int arg2 = (int) wxDateTime::Inv_Month ;
18424 int arg3 = (int) wxDateTime::Inv_Year ;
18425 wxDateTime *result;
18426 PyObject * obj0 = 0 ;
18427 PyObject * obj1 = 0 ;
18428 PyObject * obj2 = 0 ;
18429 char *kwnames[] = {
18430 (char *) "self",(char *) "month",(char *) "year", NULL
18431 };
18432
18433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18436 if (obj1) {
18437 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18438 if (PyErr_Occurred()) SWIG_fail;
18439 }
18440 if (obj2) {
18441 arg3 = (int) SWIG_AsInt(obj2);
18442 if (PyErr_Occurred()) SWIG_fail;
18443 }
18444 {
18445 PyThreadState* __tstate = wxPyBeginAllowThreads();
18446 {
18447 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18448 result = (wxDateTime *) &_result_ref;
18449 }
18450
18451 wxPyEndAllowThreads(__tstate);
18452 if (PyErr_Occurred()) SWIG_fail;
18453 }
18454 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18455 return resultobj;
18456 fail:
18457 return NULL;
18458}
18459
18460
18461static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18462 PyObject *resultobj;
18463 wxDateTime *arg1 = (wxDateTime *) 0 ;
18464 int arg2 = (int) wxDateTime::Inv_Month ;
18465 int arg3 = (int) wxDateTime::Inv_Year ;
18466 wxDateTime result;
18467 PyObject * obj0 = 0 ;
18468 PyObject * obj1 = 0 ;
18469 PyObject * obj2 = 0 ;
18470 char *kwnames[] = {
18471 (char *) "self",(char *) "month",(char *) "year", NULL
18472 };
18473
18474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18477 if (obj1) {
18478 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18479 if (PyErr_Occurred()) SWIG_fail;
18480 }
18481 if (obj2) {
18482 arg3 = (int) SWIG_AsInt(obj2);
18483 if (PyErr_Occurred()) SWIG_fail;
18484 }
18485 {
18486 PyThreadState* __tstate = wxPyBeginAllowThreads();
18487 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18488
18489 wxPyEndAllowThreads(__tstate);
18490 if (PyErr_Occurred()) SWIG_fail;
18491 }
18492 {
18493 wxDateTime * resultptr;
18494 resultptr = new wxDateTime((wxDateTime &) result);
18495 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18496 }
18497 return resultobj;
18498 fail:
18499 return NULL;
18500}
18501
18502
18503static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18504 PyObject *resultobj;
18505 wxDateTime *arg1 = (wxDateTime *) 0 ;
18506 int arg2 ;
18507 wxDateTime *result;
18508 PyObject * obj0 = 0 ;
18509 PyObject * obj1 = 0 ;
18510 char *kwnames[] = {
18511 (char *) "self",(char *) "yday", NULL
18512 };
18513
18514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18517 arg2 = (int) SWIG_AsInt(obj1);
18518 if (PyErr_Occurred()) SWIG_fail;
18519 {
18520 PyThreadState* __tstate = wxPyBeginAllowThreads();
18521 {
18522 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18523 result = (wxDateTime *) &_result_ref;
18524 }
18525
18526 wxPyEndAllowThreads(__tstate);
18527 if (PyErr_Occurred()) SWIG_fail;
18528 }
18529 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18530 return resultobj;
18531 fail:
18532 return NULL;
18533}
18534
18535
18536static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18537 PyObject *resultobj;
18538 wxDateTime *arg1 = (wxDateTime *) 0 ;
18539 int arg2 ;
18540 wxDateTime result;
18541 PyObject * obj0 = 0 ;
18542 PyObject * obj1 = 0 ;
18543 char *kwnames[] = {
18544 (char *) "self",(char *) "yday", NULL
18545 };
18546
18547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18550 arg2 = (int) SWIG_AsInt(obj1);
18551 if (PyErr_Occurred()) SWIG_fail;
18552 {
18553 PyThreadState* __tstate = wxPyBeginAllowThreads();
18554 result = (arg1)->GetYearDay(arg2);
18555
18556 wxPyEndAllowThreads(__tstate);
18557 if (PyErr_Occurred()) SWIG_fail;
18558 }
18559 {
18560 wxDateTime * resultptr;
18561 resultptr = new wxDateTime((wxDateTime &) result);
18562 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18563 }
18564 return resultobj;
18565 fail:
18566 return NULL;
18567}
18568
18569
18570static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18571 PyObject *resultobj;
18572 wxDateTime *arg1 = (wxDateTime *) 0 ;
18573 double result;
18574 PyObject * obj0 = 0 ;
18575 char *kwnames[] = {
18576 (char *) "self", NULL
18577 };
18578
18579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18582 {
18583 PyThreadState* __tstate = wxPyBeginAllowThreads();
18584 result = (double)(arg1)->GetJulianDayNumber();
18585
18586 wxPyEndAllowThreads(__tstate);
18587 if (PyErr_Occurred()) SWIG_fail;
18588 }
18589 resultobj = SWIG_FromDouble((double)result);
18590 return resultobj;
18591 fail:
18592 return NULL;
18593}
18594
18595
18596static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18597 PyObject *resultobj;
18598 wxDateTime *arg1 = (wxDateTime *) 0 ;
18599 double result;
18600 PyObject * obj0 = 0 ;
18601 char *kwnames[] = {
18602 (char *) "self", NULL
18603 };
18604
18605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18608 {
18609 PyThreadState* __tstate = wxPyBeginAllowThreads();
18610 result = (double)(arg1)->GetJDN();
18611
18612 wxPyEndAllowThreads(__tstate);
18613 if (PyErr_Occurred()) SWIG_fail;
18614 }
18615 resultobj = SWIG_FromDouble((double)result);
18616 return resultobj;
18617 fail:
18618 return NULL;
18619}
18620
18621
18622static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18623 PyObject *resultobj;
18624 wxDateTime *arg1 = (wxDateTime *) 0 ;
18625 double result;
18626 PyObject * obj0 = 0 ;
18627 char *kwnames[] = {
18628 (char *) "self", NULL
18629 };
18630
18631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18634 {
18635 PyThreadState* __tstate = wxPyBeginAllowThreads();
18636 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18637
18638 wxPyEndAllowThreads(__tstate);
18639 if (PyErr_Occurred()) SWIG_fail;
18640 }
18641 resultobj = SWIG_FromDouble((double)result);
18642 return resultobj;
18643 fail:
18644 return NULL;
18645}
18646
18647
18648static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18649 PyObject *resultobj;
18650 wxDateTime *arg1 = (wxDateTime *) 0 ;
18651 double result;
18652 PyObject * obj0 = 0 ;
18653 char *kwnames[] = {
18654 (char *) "self", NULL
18655 };
18656
18657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18660 {
18661 PyThreadState* __tstate = wxPyBeginAllowThreads();
18662 result = (double)(arg1)->GetMJD();
18663
18664 wxPyEndAllowThreads(__tstate);
18665 if (PyErr_Occurred()) SWIG_fail;
18666 }
18667 resultobj = SWIG_FromDouble((double)result);
18668 return resultobj;
18669 fail:
18670 return NULL;
18671}
18672
18673
18674static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18675 PyObject *resultobj;
18676 wxDateTime *arg1 = (wxDateTime *) 0 ;
18677 double result;
18678 PyObject * obj0 = 0 ;
18679 char *kwnames[] = {
18680 (char *) "self", NULL
18681 };
18682
18683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18686 {
18687 PyThreadState* __tstate = wxPyBeginAllowThreads();
18688 result = (double)(arg1)->GetRataDie();
18689
18690 wxPyEndAllowThreads(__tstate);
18691 if (PyErr_Occurred()) SWIG_fail;
18692 }
18693 resultobj = SWIG_FromDouble((double)result);
18694 return resultobj;
18695 fail:
18696 return NULL;
18697}
18698
18699
18700static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18701 PyObject *resultobj;
18702 wxDateTime *arg1 = (wxDateTime *) 0 ;
18703 wxDateTime::TimeZone *arg2 = 0 ;
18704 bool arg3 = (bool) False ;
18705 wxDateTime result;
18706 bool temp2 = False ;
18707 PyObject * obj0 = 0 ;
18708 PyObject * obj1 = 0 ;
18709 PyObject * obj2 = 0 ;
18710 char *kwnames[] = {
18711 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18712 };
18713
18714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18717 {
18718 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18719 temp2 = True;
18720 }
18721 if (obj2) {
18722 arg3 = (bool) SWIG_AsBool(obj2);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
18725 {
18726 PyThreadState* __tstate = wxPyBeginAllowThreads();
18727 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18728
18729 wxPyEndAllowThreads(__tstate);
18730 if (PyErr_Occurred()) SWIG_fail;
18731 }
18732 {
18733 wxDateTime * resultptr;
18734 resultptr = new wxDateTime((wxDateTime &) result);
18735 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18736 }
18737 {
18738 if (temp2) delete arg2;
18739 }
18740 return resultobj;
18741 fail:
18742 {
18743 if (temp2) delete arg2;
18744 }
18745 return NULL;
18746}
18747
18748
18749static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18750 PyObject *resultobj;
18751 wxDateTime *arg1 = (wxDateTime *) 0 ;
18752 wxDateTime::TimeZone *arg2 = 0 ;
18753 bool arg3 = (bool) False ;
18754 wxDateTime *result;
18755 bool temp2 = False ;
18756 PyObject * obj0 = 0 ;
18757 PyObject * obj1 = 0 ;
18758 PyObject * obj2 = 0 ;
18759 char *kwnames[] = {
18760 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18761 };
18762
18763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18766 {
18767 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18768 temp2 = True;
18769 }
18770 if (obj2) {
18771 arg3 = (bool) SWIG_AsBool(obj2);
18772 if (PyErr_Occurred()) SWIG_fail;
18773 }
18774 {
18775 PyThreadState* __tstate = wxPyBeginAllowThreads();
18776 {
18777 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18778 result = (wxDateTime *) &_result_ref;
18779 }
18780
18781 wxPyEndAllowThreads(__tstate);
18782 if (PyErr_Occurred()) SWIG_fail;
18783 }
18784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18785 {
18786 if (temp2) delete arg2;
18787 }
18788 return resultobj;
18789 fail:
18790 {
18791 if (temp2) delete arg2;
18792 }
18793 return NULL;
18794}
18795
18796
18797static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18798 PyObject *resultobj;
18799 wxDateTime *arg1 = (wxDateTime *) 0 ;
18800 bool arg2 = (bool) False ;
18801 wxDateTime result;
18802 PyObject * obj0 = 0 ;
18803 PyObject * obj1 = 0 ;
18804 char *kwnames[] = {
18805 (char *) "self",(char *) "noDST", NULL
18806 };
18807
18808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18811 if (obj1) {
18812 arg2 = (bool) SWIG_AsBool(obj1);
18813 if (PyErr_Occurred()) SWIG_fail;
18814 }
18815 {
18816 PyThreadState* __tstate = wxPyBeginAllowThreads();
18817 result = (arg1)->ToGMT(arg2);
18818
18819 wxPyEndAllowThreads(__tstate);
18820 if (PyErr_Occurred()) SWIG_fail;
18821 }
18822 {
18823 wxDateTime * resultptr;
18824 resultptr = new wxDateTime((wxDateTime &) result);
18825 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18826 }
18827 return resultobj;
18828 fail:
18829 return NULL;
18830}
18831
18832
18833static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18834 PyObject *resultobj;
18835 wxDateTime *arg1 = (wxDateTime *) 0 ;
18836 bool arg2 = (bool) False ;
18837 wxDateTime *result;
18838 PyObject * obj0 = 0 ;
18839 PyObject * obj1 = 0 ;
18840 char *kwnames[] = {
18841 (char *) "self",(char *) "noDST", NULL
18842 };
18843
18844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18847 if (obj1) {
18848 arg2 = (bool) SWIG_AsBool(obj1);
18849 if (PyErr_Occurred()) SWIG_fail;
18850 }
18851 {
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 {
18854 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18855 result = (wxDateTime *) &_result_ref;
18856 }
18857
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18862 return resultobj;
18863 fail:
18864 return NULL;
18865}
18866
18867
18868static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18869 PyObject *resultobj;
18870 wxDateTime *arg1 = (wxDateTime *) 0 ;
18871 int arg2 = (int) wxDateTime::Country_Default ;
18872 int result;
18873 PyObject * obj0 = 0 ;
18874 PyObject * obj1 = 0 ;
18875 char *kwnames[] = {
18876 (char *) "self",(char *) "country", NULL
18877 };
18878
18879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18882 if (obj1) {
18883 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18884 if (PyErr_Occurred()) SWIG_fail;
18885 }
18886 {
18887 PyThreadState* __tstate = wxPyBeginAllowThreads();
18888 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18889
18890 wxPyEndAllowThreads(__tstate);
18891 if (PyErr_Occurred()) SWIG_fail;
18892 }
18893 resultobj = SWIG_FromInt((int)result);
18894 return resultobj;
18895 fail:
18896 return NULL;
18897}
18898
18899
18900static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
18901 PyObject *resultobj;
18902 wxDateTime *arg1 = (wxDateTime *) 0 ;
18903 bool result;
18904 PyObject * obj0 = 0 ;
18905 char *kwnames[] = {
18906 (char *) "self", NULL
18907 };
18908
18909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18912 {
18913 PyThreadState* __tstate = wxPyBeginAllowThreads();
18914 result = (bool)((wxDateTime const *)arg1)->IsValid();
18915
18916 wxPyEndAllowThreads(__tstate);
18917 if (PyErr_Occurred()) SWIG_fail;
18918 }
18919 {
18920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18921 }
18922 return resultobj;
18923 fail:
18924 return NULL;
18925}
18926
18927
18928static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18929 PyObject *resultobj;
18930 wxDateTime *arg1 = (wxDateTime *) 0 ;
18931 time_t result;
18932 PyObject * obj0 = 0 ;
18933 char *kwnames[] = {
18934 (char *) "self", NULL
18935 };
18936
18937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18940 {
18941 PyThreadState* __tstate = wxPyBeginAllowThreads();
18942 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18943
18944 wxPyEndAllowThreads(__tstate);
18945 if (PyErr_Occurred()) SWIG_fail;
18946 }
18947 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
18948 return resultobj;
18949 fail:
18950 return NULL;
18951}
18952
18953
18954static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18955 PyObject *resultobj;
18956 wxDateTime *arg1 = (wxDateTime *) 0 ;
18957 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18958 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18959 int result;
18960 bool temp2 = False ;
18961 PyObject * obj0 = 0 ;
18962 PyObject * obj1 = 0 ;
18963 char *kwnames[] = {
18964 (char *) "self",(char *) "tz", NULL
18965 };
18966
18967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18970 if (obj1) {
18971 {
18972 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18973 temp2 = True;
18974 }
18975 }
18976 {
18977 PyThreadState* __tstate = wxPyBeginAllowThreads();
18978 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18979
18980 wxPyEndAllowThreads(__tstate);
18981 if (PyErr_Occurred()) SWIG_fail;
18982 }
18983 resultobj = SWIG_FromInt((int)result);
18984 {
18985 if (temp2) delete arg2;
18986 }
18987 return resultobj;
18988 fail:
18989 {
18990 if (temp2) delete arg2;
18991 }
18992 return NULL;
18993}
18994
18995
18996static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18997 PyObject *resultobj;
18998 wxDateTime *arg1 = (wxDateTime *) 0 ;
18999 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19000 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19001 int result;
19002 bool temp2 = False ;
19003 PyObject * obj0 = 0 ;
19004 PyObject * obj1 = 0 ;
19005 char *kwnames[] = {
19006 (char *) "self",(char *) "tz", NULL
19007 };
19008
19009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19012 if (obj1) {
19013 {
19014 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19015 temp2 = True;
19016 }
19017 }
19018 {
19019 PyThreadState* __tstate = wxPyBeginAllowThreads();
19020 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19021
19022 wxPyEndAllowThreads(__tstate);
19023 if (PyErr_Occurred()) SWIG_fail;
19024 }
19025 resultobj = SWIG_FromInt((int)result);
19026 {
19027 if (temp2) delete arg2;
19028 }
19029 return resultobj;
19030 fail:
19031 {
19032 if (temp2) delete arg2;
19033 }
19034 return NULL;
19035}
19036
19037
19038static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19039 PyObject *resultobj;
19040 wxDateTime *arg1 = (wxDateTime *) 0 ;
19041 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19042 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19043 int result;
19044 bool temp2 = False ;
19045 PyObject * obj0 = 0 ;
19046 PyObject * obj1 = 0 ;
19047 char *kwnames[] = {
19048 (char *) "self",(char *) "tz", NULL
19049 };
19050
19051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19054 if (obj1) {
19055 {
19056 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19057 temp2 = True;
19058 }
19059 }
19060 {
19061 PyThreadState* __tstate = wxPyBeginAllowThreads();
19062 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19063
19064 wxPyEndAllowThreads(__tstate);
19065 if (PyErr_Occurred()) SWIG_fail;
19066 }
19067 resultobj = SWIG_FromInt((int)result);
19068 {
19069 if (temp2) delete arg2;
19070 }
19071 return resultobj;
19072 fail:
19073 {
19074 if (temp2) delete arg2;
19075 }
19076 return NULL;
19077}
19078
19079
19080static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19081 PyObject *resultobj;
19082 wxDateTime *arg1 = (wxDateTime *) 0 ;
19083 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19084 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19085 int result;
19086 bool temp2 = False ;
19087 PyObject * obj0 = 0 ;
19088 PyObject * obj1 = 0 ;
19089 char *kwnames[] = {
19090 (char *) "self",(char *) "tz", NULL
19091 };
19092
19093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19096 if (obj1) {
19097 {
19098 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19099 temp2 = True;
19100 }
19101 }
19102 {
19103 PyThreadState* __tstate = wxPyBeginAllowThreads();
19104 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19105
19106 wxPyEndAllowThreads(__tstate);
19107 if (PyErr_Occurred()) SWIG_fail;
19108 }
19109 resultobj = SWIG_FromInt((int)result);
19110 {
19111 if (temp2) delete arg2;
19112 }
19113 return resultobj;
19114 fail:
19115 {
19116 if (temp2) delete arg2;
19117 }
19118 return NULL;
19119}
19120
19121
19122static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19123 PyObject *resultobj;
19124 wxDateTime *arg1 = (wxDateTime *) 0 ;
19125 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19126 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19127 int result;
19128 bool temp2 = False ;
19129 PyObject * obj0 = 0 ;
19130 PyObject * obj1 = 0 ;
19131 char *kwnames[] = {
19132 (char *) "self",(char *) "tz", NULL
19133 };
19134
19135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19138 if (obj1) {
19139 {
19140 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19141 temp2 = True;
19142 }
19143 }
19144 {
19145 PyThreadState* __tstate = wxPyBeginAllowThreads();
19146 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19147
19148 wxPyEndAllowThreads(__tstate);
19149 if (PyErr_Occurred()) SWIG_fail;
19150 }
19151 resultobj = SWIG_FromInt((int)result);
19152 {
19153 if (temp2) delete arg2;
19154 }
19155 return resultobj;
19156 fail:
19157 {
19158 if (temp2) delete arg2;
19159 }
19160 return NULL;
19161}
19162
19163
19164static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19165 PyObject *resultobj;
19166 wxDateTime *arg1 = (wxDateTime *) 0 ;
19167 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19168 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19169 int result;
19170 bool temp2 = False ;
19171 PyObject * obj0 = 0 ;
19172 PyObject * obj1 = 0 ;
19173 char *kwnames[] = {
19174 (char *) "self",(char *) "tz", NULL
19175 };
19176
19177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19180 if (obj1) {
19181 {
19182 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19183 temp2 = True;
19184 }
19185 }
19186 {
19187 PyThreadState* __tstate = wxPyBeginAllowThreads();
19188 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19189
19190 wxPyEndAllowThreads(__tstate);
19191 if (PyErr_Occurred()) SWIG_fail;
19192 }
19193 resultobj = SWIG_FromInt((int)result);
19194 {
19195 if (temp2) delete arg2;
19196 }
19197 return resultobj;
19198 fail:
19199 {
19200 if (temp2) delete arg2;
19201 }
19202 return NULL;
19203}
19204
19205
19206static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19207 PyObject *resultobj;
19208 wxDateTime *arg1 = (wxDateTime *) 0 ;
19209 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19210 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19211 int result;
19212 bool temp2 = False ;
19213 PyObject * obj0 = 0 ;
19214 PyObject * obj1 = 0 ;
19215 char *kwnames[] = {
19216 (char *) "self",(char *) "tz", NULL
19217 };
19218
19219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19222 if (obj1) {
19223 {
19224 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19225 temp2 = True;
19226 }
19227 }
19228 {
19229 PyThreadState* __tstate = wxPyBeginAllowThreads();
19230 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19231
19232 wxPyEndAllowThreads(__tstate);
19233 if (PyErr_Occurred()) SWIG_fail;
19234 }
19235 resultobj = SWIG_FromInt((int)result);
19236 {
19237 if (temp2) delete arg2;
19238 }
19239 return resultobj;
19240 fail:
19241 {
19242 if (temp2) delete arg2;
19243 }
19244 return NULL;
19245}
19246
19247
19248static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19249 PyObject *resultobj;
19250 wxDateTime *arg1 = (wxDateTime *) 0 ;
19251 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19252 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19253 int result;
19254 bool temp2 = False ;
19255 PyObject * obj0 = 0 ;
19256 PyObject * obj1 = 0 ;
19257 char *kwnames[] = {
19258 (char *) "self",(char *) "tz", NULL
19259 };
19260
19261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19264 if (obj1) {
19265 {
19266 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19267 temp2 = True;
19268 }
19269 }
19270 {
19271 PyThreadState* __tstate = wxPyBeginAllowThreads();
19272 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19273
19274 wxPyEndAllowThreads(__tstate);
19275 if (PyErr_Occurred()) SWIG_fail;
19276 }
19277 resultobj = SWIG_FromInt((int)result);
19278 {
19279 if (temp2) delete arg2;
19280 }
19281 return resultobj;
19282 fail:
19283 {
19284 if (temp2) delete arg2;
19285 }
19286 return NULL;
19287}
19288
19289
19290static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19291 PyObject *resultobj;
19292 wxDateTime *arg1 = (wxDateTime *) 0 ;
19293 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19294 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19295 int result;
19296 bool temp2 = False ;
19297 PyObject * obj0 = 0 ;
19298 PyObject * obj1 = 0 ;
19299 char *kwnames[] = {
19300 (char *) "self",(char *) "tz", NULL
19301 };
19302
19303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19306 if (obj1) {
19307 {
19308 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19309 temp2 = True;
19310 }
19311 }
19312 {
19313 PyThreadState* __tstate = wxPyBeginAllowThreads();
19314 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19315
19316 wxPyEndAllowThreads(__tstate);
19317 if (PyErr_Occurred()) SWIG_fail;
19318 }
19319 resultobj = SWIG_FromInt((int)result);
19320 {
19321 if (temp2) delete arg2;
19322 }
19323 return resultobj;
19324 fail:
19325 {
19326 if (temp2) delete arg2;
19327 }
19328 return NULL;
19329}
19330
19331
19332static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19333 PyObject *resultobj;
19334 wxDateTime *arg1 = (wxDateTime *) 0 ;
19335 int arg2 = (int) wxDateTime::Monday_First ;
19336 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19337 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19338 int result;
19339 bool temp3 = False ;
19340 PyObject * obj0 = 0 ;
19341 PyObject * obj1 = 0 ;
19342 PyObject * obj2 = 0 ;
19343 char *kwnames[] = {
19344 (char *) "self",(char *) "flags",(char *) "tz", NULL
19345 };
19346
19347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19350 if (obj1) {
19351 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19352 if (PyErr_Occurred()) SWIG_fail;
19353 }
19354 if (obj2) {
19355 {
19356 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19357 temp3 = True;
19358 }
19359 }
19360 {
19361 PyThreadState* __tstate = wxPyBeginAllowThreads();
19362 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19363
19364 wxPyEndAllowThreads(__tstate);
19365 if (PyErr_Occurred()) SWIG_fail;
19366 }
19367 resultobj = SWIG_FromInt((int)result);
19368 {
19369 if (temp3) delete arg3;
19370 }
19371 return resultobj;
19372 fail:
19373 {
19374 if (temp3) delete arg3;
19375 }
19376 return NULL;
19377}
19378
19379
19380static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19381 PyObject *resultobj;
19382 wxDateTime *arg1 = (wxDateTime *) 0 ;
19383 int arg2 = (int) wxDateTime::Monday_First ;
19384 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19385 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19386 int result;
19387 bool temp3 = False ;
19388 PyObject * obj0 = 0 ;
19389 PyObject * obj1 = 0 ;
19390 PyObject * obj2 = 0 ;
19391 char *kwnames[] = {
19392 (char *) "self",(char *) "flags",(char *) "tz", NULL
19393 };
19394
19395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19398 if (obj1) {
19399 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19400 if (PyErr_Occurred()) SWIG_fail;
19401 }
19402 if (obj2) {
19403 {
19404 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19405 temp3 = True;
19406 }
19407 }
19408 {
19409 PyThreadState* __tstate = wxPyBeginAllowThreads();
19410 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19411
19412 wxPyEndAllowThreads(__tstate);
19413 if (PyErr_Occurred()) SWIG_fail;
19414 }
19415 resultobj = SWIG_FromInt((int)result);
19416 {
19417 if (temp3) delete arg3;
19418 }
19419 return resultobj;
19420 fail:
19421 {
19422 if (temp3) delete arg3;
19423 }
19424 return NULL;
19425}
19426
19427
19428static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19429 PyObject *resultobj;
19430 wxDateTime *arg1 = (wxDateTime *) 0 ;
19431 int arg2 = (int) wxDateTime::Country_Default ;
19432 bool result;
19433 PyObject * obj0 = 0 ;
19434 PyObject * obj1 = 0 ;
19435 char *kwnames[] = {
19436 (char *) "self",(char *) "country", NULL
19437 };
19438
19439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19442 if (obj1) {
19443 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19444 if (PyErr_Occurred()) SWIG_fail;
19445 }
19446 {
19447 PyThreadState* __tstate = wxPyBeginAllowThreads();
19448 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19449
19450 wxPyEndAllowThreads(__tstate);
19451 if (PyErr_Occurred()) SWIG_fail;
19452 }
19453 {
19454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19455 }
19456 return resultobj;
19457 fail:
19458 return NULL;
19459}
19460
19461
19462static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19463 PyObject *resultobj;
19464 wxDateTime *arg1 = (wxDateTime *) 0 ;
19465 wxDateTime *arg2 = 0 ;
19466 bool result;
19467 PyObject * obj0 = 0 ;
19468 PyObject * obj1 = 0 ;
19469 char *kwnames[] = {
19470 (char *) "self",(char *) "datetime", NULL
19471 };
19472
19473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19476 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19477 SWIG_POINTER_EXCEPTION | 0)) == -1)
19478 SWIG_fail;
19479 if (arg2 == NULL) {
19480 PyErr_SetString(PyExc_TypeError,"null reference");
19481 SWIG_fail;
19482 }
19483 {
19484 PyThreadState* __tstate = wxPyBeginAllowThreads();
19485 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19486
19487 wxPyEndAllowThreads(__tstate);
19488 if (PyErr_Occurred()) SWIG_fail;
19489 }
19490 {
19491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19492 }
19493 return resultobj;
19494 fail:
19495 return NULL;
19496}
19497
19498
19499static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19500 PyObject *resultobj;
19501 wxDateTime *arg1 = (wxDateTime *) 0 ;
19502 wxDateTime *arg2 = 0 ;
19503 bool result;
19504 PyObject * obj0 = 0 ;
19505 PyObject * obj1 = 0 ;
19506 char *kwnames[] = {
19507 (char *) "self",(char *) "datetime", NULL
19508 };
19509
19510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19513 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19514 SWIG_POINTER_EXCEPTION | 0)) == -1)
19515 SWIG_fail;
19516 if (arg2 == NULL) {
19517 PyErr_SetString(PyExc_TypeError,"null reference");
19518 SWIG_fail;
19519 }
19520 {
19521 PyThreadState* __tstate = wxPyBeginAllowThreads();
19522 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19523
19524 wxPyEndAllowThreads(__tstate);
19525 if (PyErr_Occurred()) SWIG_fail;
19526 }
19527 {
19528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19529 }
19530 return resultobj;
19531 fail:
19532 return NULL;
19533}
19534
19535
19536static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19537 PyObject *resultobj;
19538 wxDateTime *arg1 = (wxDateTime *) 0 ;
19539 wxDateTime *arg2 = 0 ;
19540 bool result;
19541 PyObject * obj0 = 0 ;
19542 PyObject * obj1 = 0 ;
19543 char *kwnames[] = {
19544 (char *) "self",(char *) "datetime", NULL
19545 };
19546
19547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19550 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19551 SWIG_POINTER_EXCEPTION | 0)) == -1)
19552 SWIG_fail;
19553 if (arg2 == NULL) {
19554 PyErr_SetString(PyExc_TypeError,"null reference");
19555 SWIG_fail;
19556 }
19557 {
19558 PyThreadState* __tstate = wxPyBeginAllowThreads();
19559 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19560
19561 wxPyEndAllowThreads(__tstate);
19562 if (PyErr_Occurred()) SWIG_fail;
19563 }
19564 {
19565 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19566 }
19567 return resultobj;
19568 fail:
19569 return NULL;
19570}
19571
19572
19573static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19574 PyObject *resultobj;
19575 wxDateTime *arg1 = (wxDateTime *) 0 ;
19576 wxDateTime *arg2 = 0 ;
19577 wxDateTime *arg3 = 0 ;
19578 bool result;
19579 PyObject * obj0 = 0 ;
19580 PyObject * obj1 = 0 ;
19581 PyObject * obj2 = 0 ;
19582 char *kwnames[] = {
19583 (char *) "self",(char *) "t1",(char *) "t2", NULL
19584 };
19585
19586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19589 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19590 SWIG_POINTER_EXCEPTION | 0)) == -1)
19591 SWIG_fail;
19592 if (arg2 == NULL) {
19593 PyErr_SetString(PyExc_TypeError,"null reference");
19594 SWIG_fail;
19595 }
19596 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19597 SWIG_POINTER_EXCEPTION | 0)) == -1)
19598 SWIG_fail;
19599 if (arg3 == NULL) {
19600 PyErr_SetString(PyExc_TypeError,"null reference");
19601 SWIG_fail;
19602 }
19603 {
19604 PyThreadState* __tstate = wxPyBeginAllowThreads();
19605 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19606
19607 wxPyEndAllowThreads(__tstate);
19608 if (PyErr_Occurred()) SWIG_fail;
19609 }
19610 {
19611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19612 }
19613 return resultobj;
19614 fail:
19615 return NULL;
19616}
19617
19618
19619static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19620 PyObject *resultobj;
19621 wxDateTime *arg1 = (wxDateTime *) 0 ;
19622 wxDateTime *arg2 = 0 ;
19623 wxDateTime *arg3 = 0 ;
19624 bool result;
19625 PyObject * obj0 = 0 ;
19626 PyObject * obj1 = 0 ;
19627 PyObject * obj2 = 0 ;
19628 char *kwnames[] = {
19629 (char *) "self",(char *) "t1",(char *) "t2", NULL
19630 };
19631
19632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19636 SWIG_POINTER_EXCEPTION | 0)) == -1)
19637 SWIG_fail;
19638 if (arg2 == NULL) {
19639 PyErr_SetString(PyExc_TypeError,"null reference");
19640 SWIG_fail;
19641 }
19642 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19643 SWIG_POINTER_EXCEPTION | 0)) == -1)
19644 SWIG_fail;
19645 if (arg3 == NULL) {
19646 PyErr_SetString(PyExc_TypeError,"null reference");
19647 SWIG_fail;
19648 }
19649 {
19650 PyThreadState* __tstate = wxPyBeginAllowThreads();
19651 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19652
19653 wxPyEndAllowThreads(__tstate);
19654 if (PyErr_Occurred()) SWIG_fail;
19655 }
19656 {
19657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19658 }
19659 return resultobj;
19660 fail:
19661 return NULL;
19662}
19663
19664
19665static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19666 PyObject *resultobj;
19667 wxDateTime *arg1 = (wxDateTime *) 0 ;
19668 wxDateTime *arg2 = 0 ;
19669 bool result;
19670 PyObject * obj0 = 0 ;
19671 PyObject * obj1 = 0 ;
19672 char *kwnames[] = {
19673 (char *) "self",(char *) "dt", NULL
19674 };
19675
19676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19680 SWIG_POINTER_EXCEPTION | 0)) == -1)
19681 SWIG_fail;
19682 if (arg2 == NULL) {
19683 PyErr_SetString(PyExc_TypeError,"null reference");
19684 SWIG_fail;
19685 }
19686 {
19687 PyThreadState* __tstate = wxPyBeginAllowThreads();
19688 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19689
19690 wxPyEndAllowThreads(__tstate);
19691 if (PyErr_Occurred()) SWIG_fail;
19692 }
19693 {
19694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19695 }
19696 return resultobj;
19697 fail:
19698 return NULL;
19699}
19700
19701
19702static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19703 PyObject *resultobj;
19704 wxDateTime *arg1 = (wxDateTime *) 0 ;
19705 wxDateTime *arg2 = 0 ;
19706 bool result;
19707 PyObject * obj0 = 0 ;
19708 PyObject * obj1 = 0 ;
19709 char *kwnames[] = {
19710 (char *) "self",(char *) "dt", NULL
19711 };
19712
19713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19716 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19717 SWIG_POINTER_EXCEPTION | 0)) == -1)
19718 SWIG_fail;
19719 if (arg2 == NULL) {
19720 PyErr_SetString(PyExc_TypeError,"null reference");
19721 SWIG_fail;
19722 }
19723 {
19724 PyThreadState* __tstate = wxPyBeginAllowThreads();
19725 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19726
19727 wxPyEndAllowThreads(__tstate);
19728 if (PyErr_Occurred()) SWIG_fail;
19729 }
19730 {
19731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19732 }
19733 return resultobj;
19734 fail:
19735 return NULL;
19736}
19737
19738
19739static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19740 PyObject *resultobj;
19741 wxDateTime *arg1 = (wxDateTime *) 0 ;
19742 wxDateTime *arg2 = 0 ;
19743 wxTimeSpan *arg3 = 0 ;
19744 bool result;
19745 PyObject * obj0 = 0 ;
19746 PyObject * obj1 = 0 ;
19747 PyObject * obj2 = 0 ;
19748 char *kwnames[] = {
19749 (char *) "self",(char *) "dt",(char *) "ts", NULL
19750 };
19751
19752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19755 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19756 SWIG_POINTER_EXCEPTION | 0)) == -1)
19757 SWIG_fail;
19758 if (arg2 == NULL) {
19759 PyErr_SetString(PyExc_TypeError,"null reference");
19760 SWIG_fail;
19761 }
19762 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19763 SWIG_POINTER_EXCEPTION | 0)) == -1)
19764 SWIG_fail;
19765 if (arg3 == NULL) {
19766 PyErr_SetString(PyExc_TypeError,"null reference");
19767 SWIG_fail;
19768 }
19769 {
19770 PyThreadState* __tstate = wxPyBeginAllowThreads();
19771 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19772
19773 wxPyEndAllowThreads(__tstate);
19774 if (PyErr_Occurred()) SWIG_fail;
19775 }
19776 {
19777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19778 }
19779 return resultobj;
19780 fail:
19781 return NULL;
19782}
19783
19784
19785static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19786 PyObject *resultobj;
19787 wxDateTime *arg1 = (wxDateTime *) 0 ;
19788 wxTimeSpan *arg2 = 0 ;
19789 wxDateTime *result;
19790 PyObject * obj0 = 0 ;
19791 PyObject * obj1 = 0 ;
19792 char *kwnames[] = {
19793 (char *) "self",(char *) "diff", NULL
19794 };
19795
19796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19799 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19800 SWIG_POINTER_EXCEPTION | 0)) == -1)
19801 SWIG_fail;
19802 if (arg2 == NULL) {
19803 PyErr_SetString(PyExc_TypeError,"null reference");
19804 SWIG_fail;
19805 }
19806 {
19807 PyThreadState* __tstate = wxPyBeginAllowThreads();
19808 {
19809 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19810 result = (wxDateTime *) &_result_ref;
19811 }
19812
19813 wxPyEndAllowThreads(__tstate);
19814 if (PyErr_Occurred()) SWIG_fail;
19815 }
19816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19817 return resultobj;
19818 fail:
19819 return NULL;
19820}
19821
19822
19823static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19824 PyObject *resultobj;
19825 wxDateTime *arg1 = (wxDateTime *) 0 ;
19826 wxDateSpan *arg2 = 0 ;
19827 wxDateTime *result;
19828 PyObject * obj0 = 0 ;
19829 PyObject * obj1 = 0 ;
19830 char *kwnames[] = {
19831 (char *) "self",(char *) "diff", NULL
19832 };
19833
19834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19837 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19838 SWIG_POINTER_EXCEPTION | 0)) == -1)
19839 SWIG_fail;
19840 if (arg2 == NULL) {
19841 PyErr_SetString(PyExc_TypeError,"null reference");
19842 SWIG_fail;
19843 }
19844 {
19845 PyThreadState* __tstate = wxPyBeginAllowThreads();
19846 {
19847 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19848 result = (wxDateTime *) &_result_ref;
19849 }
19850
19851 wxPyEndAllowThreads(__tstate);
19852 if (PyErr_Occurred()) SWIG_fail;
19853 }
19854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19855 return resultobj;
19856 fail:
19857 return NULL;
19858}
19859
19860
19861static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19862 PyObject *resultobj;
19863 wxDateTime *arg1 = (wxDateTime *) 0 ;
19864 wxTimeSpan *arg2 = 0 ;
19865 wxDateTime *result;
19866 PyObject * obj0 = 0 ;
19867 PyObject * obj1 = 0 ;
19868 char *kwnames[] = {
19869 (char *) "self",(char *) "diff", NULL
19870 };
19871
19872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19875 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19876 SWIG_POINTER_EXCEPTION | 0)) == -1)
19877 SWIG_fail;
19878 if (arg2 == NULL) {
19879 PyErr_SetString(PyExc_TypeError,"null reference");
19880 SWIG_fail;
19881 }
19882 {
19883 PyThreadState* __tstate = wxPyBeginAllowThreads();
19884 {
19885 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19886 result = (wxDateTime *) &_result_ref;
19887 }
19888
19889 wxPyEndAllowThreads(__tstate);
19890 if (PyErr_Occurred()) SWIG_fail;
19891 }
19892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19893 return resultobj;
19894 fail:
19895 return NULL;
19896}
19897
19898
19899static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19900 PyObject *resultobj;
19901 wxDateTime *arg1 = (wxDateTime *) 0 ;
19902 wxDateSpan *arg2 = 0 ;
19903 wxDateTime *result;
19904 PyObject * obj0 = 0 ;
19905 PyObject * obj1 = 0 ;
19906 char *kwnames[] = {
19907 (char *) "self",(char *) "diff", NULL
19908 };
19909
19910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19913 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19914 SWIG_POINTER_EXCEPTION | 0)) == -1)
19915 SWIG_fail;
19916 if (arg2 == NULL) {
19917 PyErr_SetString(PyExc_TypeError,"null reference");
19918 SWIG_fail;
19919 }
19920 {
19921 PyThreadState* __tstate = wxPyBeginAllowThreads();
19922 {
19923 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19924 result = (wxDateTime *) &_result_ref;
19925 }
19926
19927 wxPyEndAllowThreads(__tstate);
19928 if (PyErr_Occurred()) SWIG_fail;
19929 }
19930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19931 return resultobj;
19932 fail:
19933 return NULL;
19934}
19935
19936
19937static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19938 PyObject *resultobj;
19939 wxDateTime *arg1 = (wxDateTime *) 0 ;
19940 wxDateTime *arg2 = 0 ;
19941 wxTimeSpan result;
19942 PyObject * obj0 = 0 ;
19943 PyObject * obj1 = 0 ;
19944 char *kwnames[] = {
19945 (char *) "self",(char *) "dt", NULL
19946 };
19947
19948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19952 SWIG_POINTER_EXCEPTION | 0)) == -1)
19953 SWIG_fail;
19954 if (arg2 == NULL) {
19955 PyErr_SetString(PyExc_TypeError,"null reference");
19956 SWIG_fail;
19957 }
19958 {
19959 PyThreadState* __tstate = wxPyBeginAllowThreads();
19960 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19961
19962 wxPyEndAllowThreads(__tstate);
19963 if (PyErr_Occurred()) SWIG_fail;
19964 }
19965 {
19966 wxTimeSpan * resultptr;
19967 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19968 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
19969 }
19970 return resultobj;
19971 fail:
19972 return NULL;
19973}
19974
19975
19976static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
19977 PyObject *resultobj;
19978 wxDateTime *arg1 = (wxDateTime *) 0 ;
19979 wxTimeSpan *arg2 = 0 ;
19980 wxDateTime *result;
19981 PyObject * obj0 = 0 ;
19982 PyObject * obj1 = 0 ;
19983
19984 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19987 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19988 SWIG_POINTER_EXCEPTION | 0)) == -1)
19989 SWIG_fail;
19990 if (arg2 == NULL) {
19991 PyErr_SetString(PyExc_TypeError,"null reference");
19992 SWIG_fail;
19993 }
19994 {
19995 PyThreadState* __tstate = wxPyBeginAllowThreads();
19996 {
19997 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19998 result = (wxDateTime *) &_result_ref;
19999 }
20000
20001 wxPyEndAllowThreads(__tstate);
20002 if (PyErr_Occurred()) SWIG_fail;
20003 }
20004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20005 return resultobj;
20006 fail:
20007 return NULL;
20008}
20009
20010
20011static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20012 PyObject *resultobj;
20013 wxDateTime *arg1 = (wxDateTime *) 0 ;
20014 wxDateSpan *arg2 = 0 ;
20015 wxDateTime *result;
20016 PyObject * obj0 = 0 ;
20017 PyObject * obj1 = 0 ;
20018
20019 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20022 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20023 SWIG_POINTER_EXCEPTION | 0)) == -1)
20024 SWIG_fail;
20025 if (arg2 == NULL) {
20026 PyErr_SetString(PyExc_TypeError,"null reference");
20027 SWIG_fail;
20028 }
20029 {
20030 PyThreadState* __tstate = wxPyBeginAllowThreads();
20031 {
20032 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20033 result = (wxDateTime *) &_result_ref;
20034 }
20035
20036 wxPyEndAllowThreads(__tstate);
20037 if (PyErr_Occurred()) SWIG_fail;
20038 }
20039 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20040 return resultobj;
20041 fail:
20042 return NULL;
20043}
20044
20045
20046static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20047 int argc;
20048 PyObject *argv[3];
20049 int ii;
20050
20051 argc = PyObject_Length(args);
20052 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20053 argv[ii] = PyTuple_GetItem(args,ii);
20054 }
20055 if (argc == 2) {
20056 int _v;
20057 {
20058 void *ptr;
20059 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20060 _v = 0;
20061 PyErr_Clear();
20062 } else {
20063 _v = 1;
20064 }
20065 }
20066 if (_v) {
20067 {
20068 void *ptr;
20069 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20070 _v = 0;
20071 PyErr_Clear();
20072 } else {
20073 _v = 1;
20074 }
20075 }
20076 if (_v) {
20077 return _wrap_DateTime___iadd____SWIG_0(self,args);
20078 }
20079 }
20080 }
20081 if (argc == 2) {
20082 int _v;
20083 {
20084 void *ptr;
20085 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20086 _v = 0;
20087 PyErr_Clear();
20088 } else {
20089 _v = 1;
20090 }
20091 }
20092 if (_v) {
20093 {
20094 void *ptr;
20095 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20096 _v = 0;
20097 PyErr_Clear();
20098 } else {
20099 _v = 1;
20100 }
20101 }
20102 if (_v) {
20103 return _wrap_DateTime___iadd____SWIG_1(self,args);
20104 }
20105 }
20106 }
20107
20108 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20109 return NULL;
20110}
20111
20112
20113static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20114 PyObject *resultobj;
20115 wxDateTime *arg1 = (wxDateTime *) 0 ;
20116 wxTimeSpan *arg2 = 0 ;
20117 wxDateTime *result;
20118 PyObject * obj0 = 0 ;
20119 PyObject * obj1 = 0 ;
20120
20121 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20125 SWIG_POINTER_EXCEPTION | 0)) == -1)
20126 SWIG_fail;
20127 if (arg2 == NULL) {
20128 PyErr_SetString(PyExc_TypeError,"null reference");
20129 SWIG_fail;
20130 }
20131 {
20132 PyThreadState* __tstate = wxPyBeginAllowThreads();
20133 {
20134 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20135 result = (wxDateTime *) &_result_ref;
20136 }
20137
20138 wxPyEndAllowThreads(__tstate);
20139 if (PyErr_Occurred()) SWIG_fail;
20140 }
20141 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20142 return resultobj;
20143 fail:
20144 return NULL;
20145}
20146
20147
20148static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20149 PyObject *resultobj;
20150 wxDateTime *arg1 = (wxDateTime *) 0 ;
20151 wxDateSpan *arg2 = 0 ;
20152 wxDateTime *result;
20153 PyObject * obj0 = 0 ;
20154 PyObject * obj1 = 0 ;
20155
20156 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20159 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20160 SWIG_POINTER_EXCEPTION | 0)) == -1)
20161 SWIG_fail;
20162 if (arg2 == NULL) {
20163 PyErr_SetString(PyExc_TypeError,"null reference");
20164 SWIG_fail;
20165 }
20166 {
20167 PyThreadState* __tstate = wxPyBeginAllowThreads();
20168 {
20169 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20170 result = (wxDateTime *) &_result_ref;
20171 }
20172
20173 wxPyEndAllowThreads(__tstate);
20174 if (PyErr_Occurred()) SWIG_fail;
20175 }
20176 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20177 return resultobj;
20178 fail:
20179 return NULL;
20180}
20181
20182
20183static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20184 int argc;
20185 PyObject *argv[3];
20186 int ii;
20187
20188 argc = PyObject_Length(args);
20189 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20190 argv[ii] = PyTuple_GetItem(args,ii);
20191 }
20192 if (argc == 2) {
20193 int _v;
20194 {
20195 void *ptr;
20196 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20197 _v = 0;
20198 PyErr_Clear();
20199 } else {
20200 _v = 1;
20201 }
20202 }
20203 if (_v) {
20204 {
20205 void *ptr;
20206 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20207 _v = 0;
20208 PyErr_Clear();
20209 } else {
20210 _v = 1;
20211 }
20212 }
20213 if (_v) {
20214 return _wrap_DateTime___isub____SWIG_0(self,args);
20215 }
20216 }
20217 }
20218 if (argc == 2) {
20219 int _v;
20220 {
20221 void *ptr;
20222 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20223 _v = 0;
20224 PyErr_Clear();
20225 } else {
20226 _v = 1;
20227 }
20228 }
20229 if (_v) {
20230 {
20231 void *ptr;
20232 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20233 _v = 0;
20234 PyErr_Clear();
20235 } else {
20236 _v = 1;
20237 }
20238 }
20239 if (_v) {
20240 return _wrap_DateTime___isub____SWIG_1(self,args);
20241 }
20242 }
20243 }
20244
20245 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20246 return NULL;
20247}
20248
20249
20250static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20251 PyObject *resultobj;
20252 wxDateTime *arg1 = (wxDateTime *) 0 ;
20253 wxTimeSpan *arg2 = 0 ;
20254 wxDateTime result;
20255 PyObject * obj0 = 0 ;
20256 PyObject * obj1 = 0 ;
20257
20258 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20261 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20262 SWIG_POINTER_EXCEPTION | 0)) == -1)
20263 SWIG_fail;
20264 if (arg2 == NULL) {
20265 PyErr_SetString(PyExc_TypeError,"null reference");
20266 SWIG_fail;
20267 }
20268 {
20269 PyThreadState* __tstate = wxPyBeginAllowThreads();
20270 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20271
20272 wxPyEndAllowThreads(__tstate);
20273 if (PyErr_Occurred()) SWIG_fail;
20274 }
20275 {
20276 wxDateTime * resultptr;
20277 resultptr = new wxDateTime((wxDateTime &) result);
20278 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20279 }
20280 return resultobj;
20281 fail:
20282 return NULL;
20283}
20284
20285
20286static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20287 PyObject *resultobj;
20288 wxDateTime *arg1 = (wxDateTime *) 0 ;
20289 wxDateSpan *arg2 = 0 ;
20290 wxDateTime result;
20291 PyObject * obj0 = 0 ;
20292 PyObject * obj1 = 0 ;
20293
20294 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20297 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20298 SWIG_POINTER_EXCEPTION | 0)) == -1)
20299 SWIG_fail;
20300 if (arg2 == NULL) {
20301 PyErr_SetString(PyExc_TypeError,"null reference");
20302 SWIG_fail;
20303 }
20304 {
20305 PyThreadState* __tstate = wxPyBeginAllowThreads();
20306 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20307
20308 wxPyEndAllowThreads(__tstate);
20309 if (PyErr_Occurred()) SWIG_fail;
20310 }
20311 {
20312 wxDateTime * resultptr;
20313 resultptr = new wxDateTime((wxDateTime &) result);
20314 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20315 }
20316 return resultobj;
20317 fail:
20318 return NULL;
20319}
20320
20321
20322static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20323 int argc;
20324 PyObject *argv[3];
20325 int ii;
20326
20327 argc = PyObject_Length(args);
20328 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20329 argv[ii] = PyTuple_GetItem(args,ii);
20330 }
20331 if (argc == 2) {
20332 int _v;
20333 {
20334 void *ptr;
20335 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20336 _v = 0;
20337 PyErr_Clear();
20338 } else {
20339 _v = 1;
20340 }
20341 }
20342 if (_v) {
20343 {
20344 void *ptr;
20345 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20346 _v = 0;
20347 PyErr_Clear();
20348 } else {
20349 _v = 1;
20350 }
20351 }
20352 if (_v) {
20353 return _wrap_DateTime___add____SWIG_0(self,args);
20354 }
20355 }
20356 }
20357 if (argc == 2) {
20358 int _v;
20359 {
20360 void *ptr;
20361 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20362 _v = 0;
20363 PyErr_Clear();
20364 } else {
20365 _v = 1;
20366 }
20367 }
20368 if (_v) {
20369 {
20370 void *ptr;
20371 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20372 _v = 0;
20373 PyErr_Clear();
20374 } else {
20375 _v = 1;
20376 }
20377 }
20378 if (_v) {
20379 return _wrap_DateTime___add____SWIG_1(self,args);
20380 }
20381 }
20382 }
20383
20384 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20385 return NULL;
20386}
20387
20388
20389static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20390 PyObject *resultobj;
20391 wxDateTime *arg1 = (wxDateTime *) 0 ;
20392 wxDateTime *arg2 = 0 ;
20393 wxTimeSpan result;
20394 PyObject * obj0 = 0 ;
20395 PyObject * obj1 = 0 ;
20396
20397 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20400 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20401 SWIG_POINTER_EXCEPTION | 0)) == -1)
20402 SWIG_fail;
20403 if (arg2 == NULL) {
20404 PyErr_SetString(PyExc_TypeError,"null reference");
20405 SWIG_fail;
20406 }
20407 {
20408 PyThreadState* __tstate = wxPyBeginAllowThreads();
20409 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20410
20411 wxPyEndAllowThreads(__tstate);
20412 if (PyErr_Occurred()) SWIG_fail;
20413 }
20414 {
20415 wxTimeSpan * resultptr;
20416 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20417 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20418 }
20419 return resultobj;
20420 fail:
20421 return NULL;
20422}
20423
20424
20425static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20426 PyObject *resultobj;
20427 wxDateTime *arg1 = (wxDateTime *) 0 ;
20428 wxTimeSpan *arg2 = 0 ;
20429 wxDateTime result;
20430 PyObject * obj0 = 0 ;
20431 PyObject * obj1 = 0 ;
20432
20433 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20437 SWIG_POINTER_EXCEPTION | 0)) == -1)
20438 SWIG_fail;
20439 if (arg2 == NULL) {
20440 PyErr_SetString(PyExc_TypeError,"null reference");
20441 SWIG_fail;
20442 }
20443 {
20444 PyThreadState* __tstate = wxPyBeginAllowThreads();
20445 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20446
20447 wxPyEndAllowThreads(__tstate);
20448 if (PyErr_Occurred()) SWIG_fail;
20449 }
20450 {
20451 wxDateTime * resultptr;
20452 resultptr = new wxDateTime((wxDateTime &) result);
20453 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20454 }
20455 return resultobj;
20456 fail:
20457 return NULL;
20458}
20459
20460
20461static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20462 PyObject *resultobj;
20463 wxDateTime *arg1 = (wxDateTime *) 0 ;
20464 wxDateSpan *arg2 = 0 ;
20465 wxDateTime result;
20466 PyObject * obj0 = 0 ;
20467 PyObject * obj1 = 0 ;
20468
20469 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20472 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20473 SWIG_POINTER_EXCEPTION | 0)) == -1)
20474 SWIG_fail;
20475 if (arg2 == NULL) {
20476 PyErr_SetString(PyExc_TypeError,"null reference");
20477 SWIG_fail;
20478 }
20479 {
20480 PyThreadState* __tstate = wxPyBeginAllowThreads();
20481 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20482
20483 wxPyEndAllowThreads(__tstate);
20484 if (PyErr_Occurred()) SWIG_fail;
20485 }
20486 {
20487 wxDateTime * resultptr;
20488 resultptr = new wxDateTime((wxDateTime &) result);
20489 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20490 }
20491 return resultobj;
20492 fail:
20493 return NULL;
20494}
20495
20496
20497static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20498 int argc;
20499 PyObject *argv[3];
20500 int ii;
20501
20502 argc = PyObject_Length(args);
20503 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20504 argv[ii] = PyTuple_GetItem(args,ii);
20505 }
20506 if (argc == 2) {
20507 int _v;
20508 {
20509 void *ptr;
20510 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20511 _v = 0;
20512 PyErr_Clear();
20513 } else {
20514 _v = 1;
20515 }
20516 }
20517 if (_v) {
20518 {
20519 void *ptr;
20520 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20521 _v = 0;
20522 PyErr_Clear();
20523 } else {
20524 _v = 1;
20525 }
20526 }
20527 if (_v) {
20528 return _wrap_DateTime___sub____SWIG_0(self,args);
20529 }
20530 }
20531 }
20532 if (argc == 2) {
20533 int _v;
20534 {
20535 void *ptr;
20536 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20537 _v = 0;
20538 PyErr_Clear();
20539 } else {
20540 _v = 1;
20541 }
20542 }
20543 if (_v) {
20544 {
20545 void *ptr;
20546 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20547 _v = 0;
20548 PyErr_Clear();
20549 } else {
20550 _v = 1;
20551 }
20552 }
20553 if (_v) {
20554 return _wrap_DateTime___sub____SWIG_1(self,args);
20555 }
20556 }
20557 }
20558 if (argc == 2) {
20559 int _v;
20560 {
20561 void *ptr;
20562 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20563 _v = 0;
20564 PyErr_Clear();
20565 } else {
20566 _v = 1;
20567 }
20568 }
20569 if (_v) {
20570 {
20571 void *ptr;
20572 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20573 _v = 0;
20574 PyErr_Clear();
20575 } else {
20576 _v = 1;
20577 }
20578 }
20579 if (_v) {
20580 return _wrap_DateTime___sub____SWIG_2(self,args);
20581 }
20582 }
20583 }
20584
20585 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20586 return NULL;
20587}
20588
20589
20590static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20591 PyObject *resultobj;
20592 wxDateTime *arg1 = (wxDateTime *) 0 ;
20593 wxDateTime *arg2 = (wxDateTime *) 0 ;
20594 bool result;
20595 PyObject * obj0 = 0 ;
20596 PyObject * obj1 = 0 ;
20597
20598 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20603 {
20604 PyThreadState* __tstate = wxPyBeginAllowThreads();
20605 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20606
20607 wxPyEndAllowThreads(__tstate);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 }
20610 {
20611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20612 }
20613 return resultobj;
20614 fail:
20615 return NULL;
20616}
20617
20618
20619static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20620 PyObject *resultobj;
20621 wxDateTime *arg1 = (wxDateTime *) 0 ;
20622 wxDateTime *arg2 = (wxDateTime *) 0 ;
20623 bool result;
20624 PyObject * obj0 = 0 ;
20625 PyObject * obj1 = 0 ;
20626
20627 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20632 {
20633 PyThreadState* __tstate = wxPyBeginAllowThreads();
20634 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20635
20636 wxPyEndAllowThreads(__tstate);
20637 if (PyErr_Occurred()) SWIG_fail;
20638 }
20639 {
20640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20641 }
20642 return resultobj;
20643 fail:
20644 return NULL;
20645}
20646
20647
20648static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20649 PyObject *resultobj;
20650 wxDateTime *arg1 = (wxDateTime *) 0 ;
20651 wxDateTime *arg2 = (wxDateTime *) 0 ;
20652 bool result;
20653 PyObject * obj0 = 0 ;
20654 PyObject * obj1 = 0 ;
20655
20656 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20659 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20661 {
20662 PyThreadState* __tstate = wxPyBeginAllowThreads();
20663 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20664
20665 wxPyEndAllowThreads(__tstate);
20666 if (PyErr_Occurred()) SWIG_fail;
20667 }
20668 {
20669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20670 }
20671 return resultobj;
20672 fail:
20673 return NULL;
20674}
20675
20676
20677static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20678 PyObject *resultobj;
20679 wxDateTime *arg1 = (wxDateTime *) 0 ;
20680 wxDateTime *arg2 = (wxDateTime *) 0 ;
20681 bool result;
20682 PyObject * obj0 = 0 ;
20683 PyObject * obj1 = 0 ;
20684
20685 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20688 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20690 {
20691 PyThreadState* __tstate = wxPyBeginAllowThreads();
20692 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20693
20694 wxPyEndAllowThreads(__tstate);
20695 if (PyErr_Occurred()) SWIG_fail;
20696 }
20697 {
20698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20699 }
20700 return resultobj;
20701 fail:
20702 return NULL;
20703}
20704
20705
20706static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20707 PyObject *resultobj;
20708 wxDateTime *arg1 = (wxDateTime *) 0 ;
20709 wxDateTime *arg2 = (wxDateTime *) 0 ;
20710 bool result;
20711 PyObject * obj0 = 0 ;
20712 PyObject * obj1 = 0 ;
20713
20714 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20717 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20719 {
20720 PyThreadState* __tstate = wxPyBeginAllowThreads();
20721 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20722
20723 wxPyEndAllowThreads(__tstate);
20724 if (PyErr_Occurred()) SWIG_fail;
20725 }
20726 {
20727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20728 }
20729 return resultobj;
20730 fail:
20731 return NULL;
20732}
20733
20734
20735static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20736 PyObject *resultobj;
20737 wxDateTime *arg1 = (wxDateTime *) 0 ;
20738 wxDateTime *arg2 = (wxDateTime *) 0 ;
20739 bool result;
20740 PyObject * obj0 = 0 ;
20741 PyObject * obj1 = 0 ;
20742
20743 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20746 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20748 {
20749 PyThreadState* __tstate = wxPyBeginAllowThreads();
20750 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20751
20752 wxPyEndAllowThreads(__tstate);
20753 if (PyErr_Occurred()) SWIG_fail;
20754 }
20755 {
20756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20757 }
20758 return resultobj;
20759 fail:
20760 return NULL;
20761}
20762
20763
20764static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20765 PyObject *resultobj;
20766 wxDateTime *arg1 = (wxDateTime *) 0 ;
20767 wxString *arg2 = 0 ;
20768 int result;
20769 bool temp2 = False ;
20770 PyObject * obj0 = 0 ;
20771 PyObject * obj1 = 0 ;
20772 char *kwnames[] = {
20773 (char *) "self",(char *) "date", NULL
20774 };
20775
20776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20779 {
20780 arg2 = wxString_in_helper(obj1);
20781 if (arg2 == NULL) SWIG_fail;
20782 temp2 = True;
20783 }
20784 {
20785 PyThreadState* __tstate = wxPyBeginAllowThreads();
20786 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20787
20788 wxPyEndAllowThreads(__tstate);
20789 if (PyErr_Occurred()) SWIG_fail;
20790 }
20791 resultobj = SWIG_FromInt((int)result);
20792 {
20793 if (temp2)
20794 delete arg2;
20795 }
20796 return resultobj;
20797 fail:
20798 {
20799 if (temp2)
20800 delete arg2;
20801 }
20802 return NULL;
20803}
20804
20805
20806static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20807 PyObject *resultobj;
20808 wxDateTime *arg1 = (wxDateTime *) 0 ;
20809 wxString *arg2 = 0 ;
20810 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20811 wxString *arg3 = (wxString *) &arg3_defvalue ;
20812 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20813 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20814 int result;
20815 bool temp2 = False ;
20816 bool temp3 = False ;
20817 PyObject * obj0 = 0 ;
20818 PyObject * obj1 = 0 ;
20819 PyObject * obj2 = 0 ;
20820 PyObject * obj3 = 0 ;
20821 char *kwnames[] = {
20822 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20823 };
20824
20825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20828 {
20829 arg2 = wxString_in_helper(obj1);
20830 if (arg2 == NULL) SWIG_fail;
20831 temp2 = True;
20832 }
20833 if (obj2) {
20834 {
20835 arg3 = wxString_in_helper(obj2);
20836 if (arg3 == NULL) SWIG_fail;
20837 temp3 = True;
20838 }
20839 }
20840 if (obj3) {
20841 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20842 SWIG_POINTER_EXCEPTION | 0)) == -1)
20843 SWIG_fail;
20844 if (arg4 == NULL) {
20845 PyErr_SetString(PyExc_TypeError,"null reference");
20846 SWIG_fail;
20847 }
20848 }
20849 {
20850 PyThreadState* __tstate = wxPyBeginAllowThreads();
20851 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20852
20853 wxPyEndAllowThreads(__tstate);
20854 if (PyErr_Occurred()) SWIG_fail;
20855 }
20856 resultobj = SWIG_FromInt((int)result);
20857 {
20858 if (temp2)
20859 delete arg2;
20860 }
20861 {
20862 if (temp3)
20863 delete arg3;
20864 }
20865 return resultobj;
20866 fail:
20867 {
20868 if (temp2)
20869 delete arg2;
20870 }
20871 {
20872 if (temp3)
20873 delete arg3;
20874 }
20875 return NULL;
20876}
20877
20878
20879static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20880 PyObject *resultobj;
20881 wxDateTime *arg1 = (wxDateTime *) 0 ;
20882 wxString *arg2 = 0 ;
20883 int result;
20884 bool temp2 = False ;
20885 PyObject * obj0 = 0 ;
20886 PyObject * obj1 = 0 ;
20887 char *kwnames[] = {
20888 (char *) "self",(char *) "datetime", NULL
20889 };
20890
20891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20894 {
20895 arg2 = wxString_in_helper(obj1);
20896 if (arg2 == NULL) SWIG_fail;
20897 temp2 = True;
20898 }
20899 {
20900 PyThreadState* __tstate = wxPyBeginAllowThreads();
20901 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20902
20903 wxPyEndAllowThreads(__tstate);
20904 if (PyErr_Occurred()) SWIG_fail;
20905 }
20906 resultobj = SWIG_FromInt((int)result);
20907 {
20908 if (temp2)
20909 delete arg2;
20910 }
20911 return resultobj;
20912 fail:
20913 {
20914 if (temp2)
20915 delete arg2;
20916 }
20917 return NULL;
20918}
20919
20920
20921static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20922 PyObject *resultobj;
20923 wxDateTime *arg1 = (wxDateTime *) 0 ;
20924 wxString *arg2 = 0 ;
20925 int result;
20926 bool temp2 = False ;
20927 PyObject * obj0 = 0 ;
20928 PyObject * obj1 = 0 ;
20929 char *kwnames[] = {
20930 (char *) "self",(char *) "date", NULL
20931 };
20932
20933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20936 {
20937 arg2 = wxString_in_helper(obj1);
20938 if (arg2 == NULL) SWIG_fail;
20939 temp2 = True;
20940 }
20941 {
20942 PyThreadState* __tstate = wxPyBeginAllowThreads();
20943 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20944
20945 wxPyEndAllowThreads(__tstate);
20946 if (PyErr_Occurred()) SWIG_fail;
20947 }
20948 resultobj = SWIG_FromInt((int)result);
20949 {
20950 if (temp2)
20951 delete arg2;
20952 }
20953 return resultobj;
20954 fail:
20955 {
20956 if (temp2)
20957 delete arg2;
20958 }
20959 return NULL;
20960}
20961
20962
20963static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20964 PyObject *resultobj;
20965 wxDateTime *arg1 = (wxDateTime *) 0 ;
20966 wxString *arg2 = 0 ;
20967 int result;
20968 bool temp2 = False ;
20969 PyObject * obj0 = 0 ;
20970 PyObject * obj1 = 0 ;
20971 char *kwnames[] = {
20972 (char *) "self",(char *) "time", NULL
20973 };
20974
20975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20978 {
20979 arg2 = wxString_in_helper(obj1);
20980 if (arg2 == NULL) SWIG_fail;
20981 temp2 = True;
20982 }
20983 {
20984 PyThreadState* __tstate = wxPyBeginAllowThreads();
20985 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20986
20987 wxPyEndAllowThreads(__tstate);
20988 if (PyErr_Occurred()) SWIG_fail;
20989 }
20990 resultobj = SWIG_FromInt((int)result);
20991 {
20992 if (temp2)
20993 delete arg2;
20994 }
20995 return resultobj;
20996 fail:
20997 {
20998 if (temp2)
20999 delete arg2;
21000 }
21001 return NULL;
21002}
21003
21004
21005static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
21006 PyObject *resultobj;
21007 wxDateTime *arg1 = (wxDateTime *) 0 ;
21008 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21009 wxString *arg2 = (wxString *) &arg2_defvalue ;
21010 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21011 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21012 wxString result;
21013 bool temp2 = False ;
21014 bool temp3 = False ;
21015 PyObject * obj0 = 0 ;
21016 PyObject * obj1 = 0 ;
21017 PyObject * obj2 = 0 ;
21018 char *kwnames[] = {
21019 (char *) "self",(char *) "format",(char *) "tz", NULL
21020 };
21021
21022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21025 if (obj1) {
21026 {
21027 arg2 = wxString_in_helper(obj1);
21028 if (arg2 == NULL) SWIG_fail;
21029 temp2 = True;
21030 }
21031 }
21032 if (obj2) {
21033 {
21034 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21035 temp3 = True;
21036 }
21037 }
21038 {
21039 PyThreadState* __tstate = wxPyBeginAllowThreads();
21040 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21041
21042 wxPyEndAllowThreads(__tstate);
21043 if (PyErr_Occurred()) SWIG_fail;
21044 }
21045 {
21046#if wxUSE_UNICODE
21047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21048#else
21049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21050#endif
21051 }
21052 {
21053 if (temp2)
21054 delete arg2;
21055 }
21056 {
21057 if (temp3) delete arg3;
21058 }
21059 return resultobj;
21060 fail:
21061 {
21062 if (temp2)
21063 delete arg2;
21064 }
21065 {
21066 if (temp3) delete arg3;
21067 }
21068 return NULL;
21069}
21070
21071
21072static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21073 PyObject *resultobj;
21074 wxDateTime *arg1 = (wxDateTime *) 0 ;
21075 wxString result;
21076 PyObject * obj0 = 0 ;
21077 char *kwnames[] = {
21078 (char *) "self", NULL
21079 };
21080
21081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21084 {
21085 PyThreadState* __tstate = wxPyBeginAllowThreads();
21086 result = ((wxDateTime const *)arg1)->FormatDate();
21087
21088 wxPyEndAllowThreads(__tstate);
21089 if (PyErr_Occurred()) SWIG_fail;
21090 }
21091 {
21092#if wxUSE_UNICODE
21093 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21094#else
21095 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21096#endif
21097 }
21098 return resultobj;
21099 fail:
21100 return NULL;
21101}
21102
21103
21104static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21105 PyObject *resultobj;
21106 wxDateTime *arg1 = (wxDateTime *) 0 ;
21107 wxString result;
21108 PyObject * obj0 = 0 ;
21109 char *kwnames[] = {
21110 (char *) "self", NULL
21111 };
21112
21113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21116 {
21117 PyThreadState* __tstate = wxPyBeginAllowThreads();
21118 result = ((wxDateTime const *)arg1)->FormatTime();
21119
21120 wxPyEndAllowThreads(__tstate);
21121 if (PyErr_Occurred()) SWIG_fail;
21122 }
21123 {
21124#if wxUSE_UNICODE
21125 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21126#else
21127 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21128#endif
21129 }
21130 return resultobj;
21131 fail:
21132 return NULL;
21133}
21134
21135
21136static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21137 PyObject *resultobj;
21138 wxDateTime *arg1 = (wxDateTime *) 0 ;
21139 wxString result;
21140 PyObject * obj0 = 0 ;
21141 char *kwnames[] = {
21142 (char *) "self", NULL
21143 };
21144
21145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21148 {
21149 PyThreadState* __tstate = wxPyBeginAllowThreads();
21150 result = ((wxDateTime const *)arg1)->FormatISODate();
21151
21152 wxPyEndAllowThreads(__tstate);
21153 if (PyErr_Occurred()) SWIG_fail;
21154 }
21155 {
21156#if wxUSE_UNICODE
21157 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21158#else
21159 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21160#endif
21161 }
21162 return resultobj;
21163 fail:
21164 return NULL;
21165}
21166
21167
21168static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21169 PyObject *resultobj;
21170 wxDateTime *arg1 = (wxDateTime *) 0 ;
21171 wxString result;
21172 PyObject * obj0 = 0 ;
21173 char *kwnames[] = {
21174 (char *) "self", NULL
21175 };
21176
21177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21180 {
21181 PyThreadState* __tstate = wxPyBeginAllowThreads();
21182 result = ((wxDateTime const *)arg1)->FormatISOTime();
21183
21184 wxPyEndAllowThreads(__tstate);
21185 if (PyErr_Occurred()) SWIG_fail;
21186 }
21187 {
21188#if wxUSE_UNICODE
21189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21190#else
21191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21192#endif
21193 }
21194 return resultobj;
21195 fail:
21196 return NULL;
21197}
21198
21199
21200static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21201 PyObject *obj;
21202 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21203 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21204 Py_INCREF(obj);
21205 return Py_BuildValue((char *)"");
21206}
21207static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21208 PyObject *resultobj;
21209 long arg1 ;
21210 wxTimeSpan result;
21211 PyObject * obj0 = 0 ;
21212 char *kwnames[] = {
21213 (char *) "sec", NULL
21214 };
21215
21216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21217 arg1 = (long) SWIG_AsLong(obj0);
21218 if (PyErr_Occurred()) SWIG_fail;
21219 {
21220 PyThreadState* __tstate = wxPyBeginAllowThreads();
21221 result = wxTimeSpan::Seconds(arg1);
21222
21223 wxPyEndAllowThreads(__tstate);
21224 if (PyErr_Occurred()) SWIG_fail;
21225 }
21226 {
21227 wxTimeSpan * resultptr;
21228 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21229 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21230 }
21231 return resultobj;
21232 fail:
21233 return NULL;
21234}
21235
21236
21237static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21238 PyObject *resultobj;
21239 wxTimeSpan result;
21240 char *kwnames[] = {
21241 NULL
21242 };
21243
21244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21245 {
21246 PyThreadState* __tstate = wxPyBeginAllowThreads();
21247 result = wxTimeSpan::Second();
21248
21249 wxPyEndAllowThreads(__tstate);
21250 if (PyErr_Occurred()) SWIG_fail;
21251 }
21252 {
21253 wxTimeSpan * resultptr;
21254 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21255 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21256 }
21257 return resultobj;
21258 fail:
21259 return NULL;
21260}
21261
21262
21263static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21264 PyObject *resultobj;
21265 long arg1 ;
21266 wxTimeSpan result;
21267 PyObject * obj0 = 0 ;
21268 char *kwnames[] = {
21269 (char *) "min", NULL
21270 };
21271
21272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21273 arg1 = (long) SWIG_AsLong(obj0);
21274 if (PyErr_Occurred()) SWIG_fail;
21275 {
21276 PyThreadState* __tstate = wxPyBeginAllowThreads();
21277 result = wxTimeSpan::Minutes(arg1);
21278
21279 wxPyEndAllowThreads(__tstate);
21280 if (PyErr_Occurred()) SWIG_fail;
21281 }
21282 {
21283 wxTimeSpan * resultptr;
21284 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21285 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21286 }
21287 return resultobj;
21288 fail:
21289 return NULL;
21290}
21291
21292
21293static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21294 PyObject *resultobj;
21295 wxTimeSpan result;
21296 char *kwnames[] = {
21297 NULL
21298 };
21299
21300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21301 {
21302 PyThreadState* __tstate = wxPyBeginAllowThreads();
21303 result = wxTimeSpan::Minute();
21304
21305 wxPyEndAllowThreads(__tstate);
21306 if (PyErr_Occurred()) SWIG_fail;
21307 }
21308 {
21309 wxTimeSpan * resultptr;
21310 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21311 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21312 }
21313 return resultobj;
21314 fail:
21315 return NULL;
21316}
21317
21318
21319static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21320 PyObject *resultobj;
21321 long arg1 ;
21322 wxTimeSpan result;
21323 PyObject * obj0 = 0 ;
21324 char *kwnames[] = {
21325 (char *) "hours", NULL
21326 };
21327
21328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21329 arg1 = (long) SWIG_AsLong(obj0);
21330 if (PyErr_Occurred()) SWIG_fail;
21331 {
21332 PyThreadState* __tstate = wxPyBeginAllowThreads();
21333 result = wxTimeSpan::Hours(arg1);
21334
21335 wxPyEndAllowThreads(__tstate);
21336 if (PyErr_Occurred()) SWIG_fail;
21337 }
21338 {
21339 wxTimeSpan * resultptr;
21340 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21341 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21342 }
21343 return resultobj;
21344 fail:
21345 return NULL;
21346}
21347
21348
21349static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21350 PyObject *resultobj;
21351 wxTimeSpan result;
21352 char *kwnames[] = {
21353 NULL
21354 };
21355
21356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21357 {
21358 PyThreadState* __tstate = wxPyBeginAllowThreads();
21359 result = wxTimeSpan::Hour();
21360
21361 wxPyEndAllowThreads(__tstate);
21362 if (PyErr_Occurred()) SWIG_fail;
21363 }
21364 {
21365 wxTimeSpan * resultptr;
21366 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21367 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21368 }
21369 return resultobj;
21370 fail:
21371 return NULL;
21372}
21373
21374
21375static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21376 PyObject *resultobj;
21377 long arg1 ;
21378 wxTimeSpan result;
21379 PyObject * obj0 = 0 ;
21380 char *kwnames[] = {
21381 (char *) "days", NULL
21382 };
21383
21384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21385 arg1 = (long) SWIG_AsLong(obj0);
21386 if (PyErr_Occurred()) SWIG_fail;
21387 {
21388 PyThreadState* __tstate = wxPyBeginAllowThreads();
21389 result = wxTimeSpan::Days(arg1);
21390
21391 wxPyEndAllowThreads(__tstate);
21392 if (PyErr_Occurred()) SWIG_fail;
21393 }
21394 {
21395 wxTimeSpan * resultptr;
21396 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21397 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21398 }
21399 return resultobj;
21400 fail:
21401 return NULL;
21402}
21403
21404
21405static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21406 PyObject *resultobj;
21407 wxTimeSpan result;
21408 char *kwnames[] = {
21409 NULL
21410 };
21411
21412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21413 {
21414 PyThreadState* __tstate = wxPyBeginAllowThreads();
21415 result = wxTimeSpan::Day();
21416
21417 wxPyEndAllowThreads(__tstate);
21418 if (PyErr_Occurred()) SWIG_fail;
21419 }
21420 {
21421 wxTimeSpan * resultptr;
21422 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21423 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21424 }
21425 return resultobj;
21426 fail:
21427 return NULL;
21428}
21429
21430
21431static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21432 PyObject *resultobj;
21433 long arg1 ;
21434 wxTimeSpan result;
21435 PyObject * obj0 = 0 ;
21436 char *kwnames[] = {
21437 (char *) "days", NULL
21438 };
21439
21440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21441 arg1 = (long) SWIG_AsLong(obj0);
21442 if (PyErr_Occurred()) SWIG_fail;
21443 {
21444 PyThreadState* __tstate = wxPyBeginAllowThreads();
21445 result = wxTimeSpan::Weeks(arg1);
21446
21447 wxPyEndAllowThreads(__tstate);
21448 if (PyErr_Occurred()) SWIG_fail;
21449 }
21450 {
21451 wxTimeSpan * resultptr;
21452 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21453 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21454 }
21455 return resultobj;
21456 fail:
21457 return NULL;
21458}
21459
21460
21461static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21462 PyObject *resultobj;
21463 wxTimeSpan result;
21464 char *kwnames[] = {
21465 NULL
21466 };
21467
21468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21469 {
21470 PyThreadState* __tstate = wxPyBeginAllowThreads();
21471 result = wxTimeSpan::Week();
21472
21473 wxPyEndAllowThreads(__tstate);
21474 if (PyErr_Occurred()) SWIG_fail;
21475 }
21476 {
21477 wxTimeSpan * resultptr;
21478 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21479 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21480 }
21481 return resultobj;
21482 fail:
21483 return NULL;
21484}
21485
21486
21487static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21488 PyObject *resultobj;
21489 long arg1 = (long) 0 ;
21490 long arg2 = (long) 0 ;
21491 long arg3 = (long) 0 ;
21492 long arg4 = (long) 0 ;
21493 wxTimeSpan *result;
21494 PyObject * obj0 = 0 ;
21495 PyObject * obj1 = 0 ;
21496 PyObject * obj2 = 0 ;
21497 PyObject * obj3 = 0 ;
21498 char *kwnames[] = {
21499 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21500 };
21501
21502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21503 if (obj0) {
21504 arg1 = (long) SWIG_AsLong(obj0);
21505 if (PyErr_Occurred()) SWIG_fail;
21506 }
21507 if (obj1) {
21508 arg2 = (long) SWIG_AsLong(obj1);
21509 if (PyErr_Occurred()) SWIG_fail;
21510 }
21511 if (obj2) {
21512 arg3 = (long) SWIG_AsLong(obj2);
21513 if (PyErr_Occurred()) SWIG_fail;
21514 }
21515 if (obj3) {
21516 arg4 = (long) SWIG_AsLong(obj3);
21517 if (PyErr_Occurred()) SWIG_fail;
21518 }
21519 {
21520 PyThreadState* __tstate = wxPyBeginAllowThreads();
21521 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21522
21523 wxPyEndAllowThreads(__tstate);
21524 if (PyErr_Occurred()) SWIG_fail;
21525 }
21526 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21527 return resultobj;
21528 fail:
21529 return NULL;
21530}
21531
21532
21533static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21534 PyObject *resultobj;
21535 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21536 PyObject * obj0 = 0 ;
21537 char *kwnames[] = {
21538 (char *) "self", NULL
21539 };
21540
21541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21544 {
21545 PyThreadState* __tstate = wxPyBeginAllowThreads();
21546 delete arg1;
21547
21548 wxPyEndAllowThreads(__tstate);
21549 if (PyErr_Occurred()) SWIG_fail;
21550 }
21551 Py_INCREF(Py_None); resultobj = Py_None;
21552 return resultobj;
21553 fail:
21554 return NULL;
21555}
21556
21557
21558static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21559 PyObject *resultobj;
21560 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21561 wxTimeSpan *arg2 = 0 ;
21562 wxTimeSpan *result;
21563 PyObject * obj0 = 0 ;
21564 PyObject * obj1 = 0 ;
21565 char *kwnames[] = {
21566 (char *) "self",(char *) "diff", NULL
21567 };
21568
21569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21572 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21573 SWIG_POINTER_EXCEPTION | 0)) == -1)
21574 SWIG_fail;
21575 if (arg2 == NULL) {
21576 PyErr_SetString(PyExc_TypeError,"null reference");
21577 SWIG_fail;
21578 }
21579 {
21580 PyThreadState* __tstate = wxPyBeginAllowThreads();
21581 {
21582 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21583 result = (wxTimeSpan *) &_result_ref;
21584 }
21585
21586 wxPyEndAllowThreads(__tstate);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
21589 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21590 return resultobj;
21591 fail:
21592 return NULL;
21593}
21594
21595
21596static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21597 PyObject *resultobj;
21598 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21599 wxTimeSpan *arg2 = 0 ;
21600 wxTimeSpan *result;
21601 PyObject * obj0 = 0 ;
21602 PyObject * obj1 = 0 ;
21603 char *kwnames[] = {
21604 (char *) "self",(char *) "diff", NULL
21605 };
21606
21607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21611 SWIG_POINTER_EXCEPTION | 0)) == -1)
21612 SWIG_fail;
21613 if (arg2 == NULL) {
21614 PyErr_SetString(PyExc_TypeError,"null reference");
21615 SWIG_fail;
21616 }
21617 {
21618 PyThreadState* __tstate = wxPyBeginAllowThreads();
21619 {
21620 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21621 result = (wxTimeSpan *) &_result_ref;
21622 }
21623
21624 wxPyEndAllowThreads(__tstate);
21625 if (PyErr_Occurred()) SWIG_fail;
21626 }
21627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21628 return resultobj;
21629 fail:
21630 return NULL;
21631}
21632
21633
21634static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21635 PyObject *resultobj;
21636 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21637 int arg2 ;
21638 wxTimeSpan *result;
21639 PyObject * obj0 = 0 ;
21640 PyObject * obj1 = 0 ;
21641 char *kwnames[] = {
21642 (char *) "self",(char *) "n", NULL
21643 };
21644
21645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21648 arg2 = (int) SWIG_AsInt(obj1);
21649 if (PyErr_Occurred()) SWIG_fail;
21650 {
21651 PyThreadState* __tstate = wxPyBeginAllowThreads();
21652 {
21653 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21654 result = (wxTimeSpan *) &_result_ref;
21655 }
21656
21657 wxPyEndAllowThreads(__tstate);
21658 if (PyErr_Occurred()) SWIG_fail;
21659 }
21660 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21661 return resultobj;
21662 fail:
21663 return NULL;
21664}
21665
21666
21667static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21668 PyObject *resultobj;
21669 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21670 wxTimeSpan *result;
21671 PyObject * obj0 = 0 ;
21672 char *kwnames[] = {
21673 (char *) "self", NULL
21674 };
21675
21676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21679 {
21680 PyThreadState* __tstate = wxPyBeginAllowThreads();
21681 {
21682 wxTimeSpan &_result_ref = (arg1)->Neg();
21683 result = (wxTimeSpan *) &_result_ref;
21684 }
21685
21686 wxPyEndAllowThreads(__tstate);
21687 if (PyErr_Occurred()) SWIG_fail;
21688 }
21689 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21690 return resultobj;
21691 fail:
21692 return NULL;
21693}
21694
21695
21696static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21697 PyObject *resultobj;
21698 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21699 wxTimeSpan result;
21700 PyObject * obj0 = 0 ;
21701 char *kwnames[] = {
21702 (char *) "self", NULL
21703 };
21704
21705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21708 {
21709 PyThreadState* __tstate = wxPyBeginAllowThreads();
21710 result = ((wxTimeSpan const *)arg1)->Abs();
21711
21712 wxPyEndAllowThreads(__tstate);
21713 if (PyErr_Occurred()) SWIG_fail;
21714 }
21715 {
21716 wxTimeSpan * resultptr;
21717 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21718 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21719 }
21720 return resultobj;
21721 fail:
21722 return NULL;
21723}
21724
21725
21726static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21727 PyObject *resultobj;
21728 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21729 wxTimeSpan *arg2 = 0 ;
21730 wxTimeSpan *result;
21731 PyObject * obj0 = 0 ;
21732 PyObject * obj1 = 0 ;
21733 char *kwnames[] = {
21734 (char *) "self",(char *) "diff", NULL
21735 };
21736
21737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21740 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21741 SWIG_POINTER_EXCEPTION | 0)) == -1)
21742 SWIG_fail;
21743 if (arg2 == NULL) {
21744 PyErr_SetString(PyExc_TypeError,"null reference");
21745 SWIG_fail;
21746 }
21747 {
21748 PyThreadState* __tstate = wxPyBeginAllowThreads();
21749 {
21750 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21751 result = (wxTimeSpan *) &_result_ref;
21752 }
21753
21754 wxPyEndAllowThreads(__tstate);
21755 if (PyErr_Occurred()) SWIG_fail;
21756 }
21757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21758 return resultobj;
21759 fail:
21760 return NULL;
21761}
21762
21763
21764static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21765 PyObject *resultobj;
21766 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21767 wxTimeSpan *arg2 = 0 ;
21768 wxTimeSpan *result;
21769 PyObject * obj0 = 0 ;
21770 PyObject * obj1 = 0 ;
21771 char *kwnames[] = {
21772 (char *) "self",(char *) "diff", NULL
21773 };
21774
21775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21778 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21779 SWIG_POINTER_EXCEPTION | 0)) == -1)
21780 SWIG_fail;
21781 if (arg2 == NULL) {
21782 PyErr_SetString(PyExc_TypeError,"null reference");
21783 SWIG_fail;
21784 }
21785 {
21786 PyThreadState* __tstate = wxPyBeginAllowThreads();
21787 {
21788 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21789 result = (wxTimeSpan *) &_result_ref;
21790 }
21791
21792 wxPyEndAllowThreads(__tstate);
21793 if (PyErr_Occurred()) SWIG_fail;
21794 }
21795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21796 return resultobj;
21797 fail:
21798 return NULL;
21799}
21800
21801
21802static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21803 PyObject *resultobj;
21804 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21805 int arg2 ;
21806 wxTimeSpan *result;
21807 PyObject * obj0 = 0 ;
21808 PyObject * obj1 = 0 ;
21809 char *kwnames[] = {
21810 (char *) "self",(char *) "n", NULL
21811 };
21812
21813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21816 arg2 = (int) SWIG_AsInt(obj1);
21817 if (PyErr_Occurred()) SWIG_fail;
21818 {
21819 PyThreadState* __tstate = wxPyBeginAllowThreads();
21820 {
21821 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21822 result = (wxTimeSpan *) &_result_ref;
21823 }
21824
21825 wxPyEndAllowThreads(__tstate);
21826 if (PyErr_Occurred()) SWIG_fail;
21827 }
21828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21829 return resultobj;
21830 fail:
21831 return NULL;
21832}
21833
21834
21835static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21836 PyObject *resultobj;
21837 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21838 wxTimeSpan *result;
21839 PyObject * obj0 = 0 ;
21840 char *kwnames[] = {
21841 (char *) "self", NULL
21842 };
21843
21844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21847 {
21848 PyThreadState* __tstate = wxPyBeginAllowThreads();
21849 {
21850 wxTimeSpan &_result_ref = (arg1)->operator -();
21851 result = (wxTimeSpan *) &_result_ref;
21852 }
21853
21854 wxPyEndAllowThreads(__tstate);
21855 if (PyErr_Occurred()) SWIG_fail;
21856 }
21857 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21858 return resultobj;
21859 fail:
21860 return NULL;
21861}
21862
21863
21864static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21865 PyObject *resultobj;
21866 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21867 wxTimeSpan *arg2 = 0 ;
21868 wxTimeSpan result;
21869 PyObject * obj0 = 0 ;
21870 PyObject * obj1 = 0 ;
21871 char *kwnames[] = {
21872 (char *) "self",(char *) "other", NULL
21873 };
21874
21875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21878 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21879 SWIG_POINTER_EXCEPTION | 0)) == -1)
21880 SWIG_fail;
21881 if (arg2 == NULL) {
21882 PyErr_SetString(PyExc_TypeError,"null reference");
21883 SWIG_fail;
21884 }
21885 {
21886 PyThreadState* __tstate = wxPyBeginAllowThreads();
21887 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21888
21889 wxPyEndAllowThreads(__tstate);
21890 if (PyErr_Occurred()) SWIG_fail;
21891 }
21892 {
21893 wxTimeSpan * resultptr;
21894 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21895 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21896 }
21897 return resultobj;
21898 fail:
21899 return NULL;
21900}
21901
21902
21903static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj;
21905 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21906 wxTimeSpan *arg2 = 0 ;
21907 wxTimeSpan result;
21908 PyObject * obj0 = 0 ;
21909 PyObject * obj1 = 0 ;
21910 char *kwnames[] = {
21911 (char *) "self",(char *) "other", NULL
21912 };
21913
21914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21917 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21918 SWIG_POINTER_EXCEPTION | 0)) == -1)
21919 SWIG_fail;
21920 if (arg2 == NULL) {
21921 PyErr_SetString(PyExc_TypeError,"null reference");
21922 SWIG_fail;
21923 }
21924 {
21925 PyThreadState* __tstate = wxPyBeginAllowThreads();
21926 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21927
21928 wxPyEndAllowThreads(__tstate);
21929 if (PyErr_Occurred()) SWIG_fail;
21930 }
21931 {
21932 wxTimeSpan * resultptr;
21933 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21934 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21935 }
21936 return resultobj;
21937 fail:
21938 return NULL;
21939}
21940
21941
21942static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21943 PyObject *resultobj;
21944 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21945 int arg2 ;
21946 wxTimeSpan result;
21947 PyObject * obj0 = 0 ;
21948 PyObject * obj1 = 0 ;
21949 char *kwnames[] = {
21950 (char *) "self",(char *) "n", NULL
21951 };
21952
21953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
21954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21956 arg2 = (int) SWIG_AsInt(obj1);
21957 if (PyErr_Occurred()) SWIG_fail;
21958 {
21959 PyThreadState* __tstate = wxPyBeginAllowThreads();
21960 result = wxTimeSpan___mul__(arg1,arg2);
21961
21962 wxPyEndAllowThreads(__tstate);
21963 if (PyErr_Occurred()) SWIG_fail;
21964 }
21965 {
21966 wxTimeSpan * resultptr;
21967 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21968 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21969 }
21970 return resultobj;
21971 fail:
21972 return NULL;
21973}
21974
21975
21976static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21977 PyObject *resultobj;
21978 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21979 int arg2 ;
21980 wxTimeSpan result;
21981 PyObject * obj0 = 0 ;
21982 PyObject * obj1 = 0 ;
21983 char *kwnames[] = {
21984 (char *) "self",(char *) "n", NULL
21985 };
21986
21987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
21988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21990 arg2 = (int) SWIG_AsInt(obj1);
21991 if (PyErr_Occurred()) SWIG_fail;
21992 {
21993 PyThreadState* __tstate = wxPyBeginAllowThreads();
21994 result = wxTimeSpan___rmul__(arg1,arg2);
21995
21996 wxPyEndAllowThreads(__tstate);
21997 if (PyErr_Occurred()) SWIG_fail;
21998 }
21999 {
22000 wxTimeSpan * resultptr;
22001 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22002 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22003 }
22004 return resultobj;
22005 fail:
22006 return NULL;
22007}
22008
22009
22010static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22011 PyObject *resultobj;
22012 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22013 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22014 bool result;
22015 PyObject * obj0 = 0 ;
22016 PyObject * obj1 = 0 ;
22017 char *kwnames[] = {
22018 (char *) "self",(char *) "other", NULL
22019 };
22020
22021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22024 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22029
22030 wxPyEndAllowThreads(__tstate);
22031 if (PyErr_Occurred()) SWIG_fail;
22032 }
22033 {
22034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22035 }
22036 return resultobj;
22037 fail:
22038 return NULL;
22039}
22040
22041
22042static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22043 PyObject *resultobj;
22044 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22045 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22046 bool result;
22047 PyObject * obj0 = 0 ;
22048 PyObject * obj1 = 0 ;
22049 char *kwnames[] = {
22050 (char *) "self",(char *) "other", NULL
22051 };
22052
22053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22056 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22058 {
22059 PyThreadState* __tstate = wxPyBeginAllowThreads();
22060 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22061
22062 wxPyEndAllowThreads(__tstate);
22063 if (PyErr_Occurred()) SWIG_fail;
22064 }
22065 {
22066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22067 }
22068 return resultobj;
22069 fail:
22070 return NULL;
22071}
22072
22073
22074static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22075 PyObject *resultobj;
22076 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22077 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22078 bool result;
22079 PyObject * obj0 = 0 ;
22080 PyObject * obj1 = 0 ;
22081 char *kwnames[] = {
22082 (char *) "self",(char *) "other", NULL
22083 };
22084
22085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22088 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22090 {
22091 PyThreadState* __tstate = wxPyBeginAllowThreads();
22092 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22093
22094 wxPyEndAllowThreads(__tstate);
22095 if (PyErr_Occurred()) SWIG_fail;
22096 }
22097 {
22098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22099 }
22100 return resultobj;
22101 fail:
22102 return NULL;
22103}
22104
22105
22106static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22107 PyObject *resultobj;
22108 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22109 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22110 bool result;
22111 PyObject * obj0 = 0 ;
22112 PyObject * obj1 = 0 ;
22113 char *kwnames[] = {
22114 (char *) "self",(char *) "other", NULL
22115 };
22116
22117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22120 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22125
22126 wxPyEndAllowThreads(__tstate);
22127 if (PyErr_Occurred()) SWIG_fail;
22128 }
22129 {
22130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22131 }
22132 return resultobj;
22133 fail:
22134 return NULL;
22135}
22136
22137
22138static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22139 PyObject *resultobj;
22140 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22141 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22142 bool result;
22143 PyObject * obj0 = 0 ;
22144 PyObject * obj1 = 0 ;
22145 char *kwnames[] = {
22146 (char *) "self",(char *) "other", NULL
22147 };
22148
22149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22152 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22154 {
22155 PyThreadState* __tstate = wxPyBeginAllowThreads();
22156 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22157
22158 wxPyEndAllowThreads(__tstate);
22159 if (PyErr_Occurred()) SWIG_fail;
22160 }
22161 {
22162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22163 }
22164 return resultobj;
22165 fail:
22166 return NULL;
22167}
22168
22169
22170static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22171 PyObject *resultobj;
22172 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22173 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22174 bool result;
22175 PyObject * obj0 = 0 ;
22176 PyObject * obj1 = 0 ;
22177 char *kwnames[] = {
22178 (char *) "self",(char *) "other", NULL
22179 };
22180
22181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22184 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22186 {
22187 PyThreadState* __tstate = wxPyBeginAllowThreads();
22188 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22189
22190 wxPyEndAllowThreads(__tstate);
22191 if (PyErr_Occurred()) SWIG_fail;
22192 }
22193 {
22194 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22195 }
22196 return resultobj;
22197 fail:
22198 return NULL;
22199}
22200
22201
22202static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22203 PyObject *resultobj;
22204 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22205 bool result;
22206 PyObject * obj0 = 0 ;
22207 char *kwnames[] = {
22208 (char *) "self", NULL
22209 };
22210
22211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22214 {
22215 PyThreadState* __tstate = wxPyBeginAllowThreads();
22216 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22217
22218 wxPyEndAllowThreads(__tstate);
22219 if (PyErr_Occurred()) SWIG_fail;
22220 }
22221 {
22222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22223 }
22224 return resultobj;
22225 fail:
22226 return NULL;
22227}
22228
22229
22230static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22231 PyObject *resultobj;
22232 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22233 bool result;
22234 PyObject * obj0 = 0 ;
22235 char *kwnames[] = {
22236 (char *) "self", NULL
22237 };
22238
22239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22242 {
22243 PyThreadState* __tstate = wxPyBeginAllowThreads();
22244 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22245
22246 wxPyEndAllowThreads(__tstate);
22247 if (PyErr_Occurred()) SWIG_fail;
22248 }
22249 {
22250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22251 }
22252 return resultobj;
22253 fail:
22254 return NULL;
22255}
22256
22257
22258static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22259 PyObject *resultobj;
22260 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22261 bool result;
22262 PyObject * obj0 = 0 ;
22263 char *kwnames[] = {
22264 (char *) "self", NULL
22265 };
22266
22267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22270 {
22271 PyThreadState* __tstate = wxPyBeginAllowThreads();
22272 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22273
22274 wxPyEndAllowThreads(__tstate);
22275 if (PyErr_Occurred()) SWIG_fail;
22276 }
22277 {
22278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22279 }
22280 return resultobj;
22281 fail:
22282 return NULL;
22283}
22284
22285
22286static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22287 PyObject *resultobj;
22288 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22289 wxTimeSpan *arg2 = 0 ;
22290 bool result;
22291 PyObject * obj0 = 0 ;
22292 PyObject * obj1 = 0 ;
22293 char *kwnames[] = {
22294 (char *) "self",(char *) "ts", NULL
22295 };
22296
22297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22300 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22301 SWIG_POINTER_EXCEPTION | 0)) == -1)
22302 SWIG_fail;
22303 if (arg2 == NULL) {
22304 PyErr_SetString(PyExc_TypeError,"null reference");
22305 SWIG_fail;
22306 }
22307 {
22308 PyThreadState* __tstate = wxPyBeginAllowThreads();
22309 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22310
22311 wxPyEndAllowThreads(__tstate);
22312 if (PyErr_Occurred()) SWIG_fail;
22313 }
22314 {
22315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22316 }
22317 return resultobj;
22318 fail:
22319 return NULL;
22320}
22321
22322
22323static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22324 PyObject *resultobj;
22325 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22326 wxTimeSpan *arg2 = 0 ;
22327 bool result;
22328 PyObject * obj0 = 0 ;
22329 PyObject * obj1 = 0 ;
22330 char *kwnames[] = {
22331 (char *) "self",(char *) "ts", NULL
22332 };
22333
22334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22337 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22338 SWIG_POINTER_EXCEPTION | 0)) == -1)
22339 SWIG_fail;
22340 if (arg2 == NULL) {
22341 PyErr_SetString(PyExc_TypeError,"null reference");
22342 SWIG_fail;
22343 }
22344 {
22345 PyThreadState* __tstate = wxPyBeginAllowThreads();
22346 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22347
22348 wxPyEndAllowThreads(__tstate);
22349 if (PyErr_Occurred()) SWIG_fail;
22350 }
22351 {
22352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22353 }
22354 return resultobj;
22355 fail:
22356 return NULL;
22357}
22358
22359
22360static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22361 PyObject *resultobj;
22362 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22363 wxTimeSpan *arg2 = 0 ;
22364 bool result;
22365 PyObject * obj0 = 0 ;
22366 PyObject * obj1 = 0 ;
22367 char *kwnames[] = {
22368 (char *) "self",(char *) "t", NULL
22369 };
22370
22371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22375 SWIG_POINTER_EXCEPTION | 0)) == -1)
22376 SWIG_fail;
22377 if (arg2 == NULL) {
22378 PyErr_SetString(PyExc_TypeError,"null reference");
22379 SWIG_fail;
22380 }
22381 {
22382 PyThreadState* __tstate = wxPyBeginAllowThreads();
22383 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22384
22385 wxPyEndAllowThreads(__tstate);
22386 if (PyErr_Occurred()) SWIG_fail;
22387 }
22388 {
22389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22390 }
22391 return resultobj;
22392 fail:
22393 return NULL;
22394}
22395
22396
22397static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22398 PyObject *resultobj;
22399 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22400 int result;
22401 PyObject * obj0 = 0 ;
22402 char *kwnames[] = {
22403 (char *) "self", NULL
22404 };
22405
22406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22412
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 resultobj = SWIG_FromInt((int)result);
22417 return resultobj;
22418 fail:
22419 return NULL;
22420}
22421
22422
22423static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22424 PyObject *resultobj;
22425 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22426 int result;
22427 PyObject * obj0 = 0 ;
22428 char *kwnames[] = {
22429 (char *) "self", NULL
22430 };
22431
22432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22435 {
22436 PyThreadState* __tstate = wxPyBeginAllowThreads();
22437 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22438
22439 wxPyEndAllowThreads(__tstate);
22440 if (PyErr_Occurred()) SWIG_fail;
22441 }
22442 resultobj = SWIG_FromInt((int)result);
22443 return resultobj;
22444 fail:
22445 return NULL;
22446}
22447
22448
22449static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22450 PyObject *resultobj;
22451 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22452 int result;
22453 PyObject * obj0 = 0 ;
22454 char *kwnames[] = {
22455 (char *) "self", NULL
22456 };
22457
22458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22461 {
22462 PyThreadState* __tstate = wxPyBeginAllowThreads();
22463 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22464
22465 wxPyEndAllowThreads(__tstate);
22466 if (PyErr_Occurred()) SWIG_fail;
22467 }
22468 resultobj = SWIG_FromInt((int)result);
22469 return resultobj;
22470 fail:
22471 return NULL;
22472}
22473
22474
22475static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22476 PyObject *resultobj;
22477 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22478 int result;
22479 PyObject * obj0 = 0 ;
22480 char *kwnames[] = {
22481 (char *) "self", NULL
22482 };
22483
22484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22487 {
22488 PyThreadState* __tstate = wxPyBeginAllowThreads();
22489 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22490
22491 wxPyEndAllowThreads(__tstate);
22492 if (PyErr_Occurred()) SWIG_fail;
22493 }
22494 resultobj = SWIG_FromInt((int)result);
22495 return resultobj;
22496 fail:
22497 return NULL;
22498}
22499
22500
22501static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22502 PyObject *resultobj;
22503 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22504 wxLongLong result;
22505 PyObject * obj0 = 0 ;
22506 char *kwnames[] = {
22507 (char *) "self", NULL
22508 };
22509
22510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22513 {
22514 PyThreadState* __tstate = wxPyBeginAllowThreads();
22515 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22516
22517 wxPyEndAllowThreads(__tstate);
22518 if (PyErr_Occurred()) SWIG_fail;
22519 }
22520 {
22521 PyObject *hi, *lo, *shifter, *shifted;
22522 hi = PyLong_FromLong( (&result)->GetHi() );
22523 lo = PyLong_FromLong( (&result)->GetLo() );
22524 shifter = PyLong_FromLong(32);
22525 shifted = PyNumber_Lshift(hi, shifter);
22526 resultobj = PyNumber_Or(shifted, lo);
22527 Py_DECREF(hi);
22528 Py_DECREF(lo);
22529 Py_DECREF(shifter);
22530 Py_DECREF(shifted);
22531 }
22532 return resultobj;
22533 fail:
22534 return NULL;
22535}
22536
22537
22538static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22539 PyObject *resultobj;
22540 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22541 wxLongLong result;
22542 PyObject * obj0 = 0 ;
22543 char *kwnames[] = {
22544 (char *) "self", NULL
22545 };
22546
22547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22550 {
22551 PyThreadState* __tstate = wxPyBeginAllowThreads();
22552 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22553
22554 wxPyEndAllowThreads(__tstate);
22555 if (PyErr_Occurred()) SWIG_fail;
22556 }
22557 {
22558 PyObject *hi, *lo, *shifter, *shifted;
22559 hi = PyLong_FromLong( (&result)->GetHi() );
22560 lo = PyLong_FromLong( (&result)->GetLo() );
22561 shifter = PyLong_FromLong(32);
22562 shifted = PyNumber_Lshift(hi, shifter);
22563 resultobj = PyNumber_Or(shifted, lo);
22564 Py_DECREF(hi);
22565 Py_DECREF(lo);
22566 Py_DECREF(shifter);
22567 Py_DECREF(shifted);
22568 }
22569 return resultobj;
22570 fail:
22571 return NULL;
22572}
22573
22574
22575static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22576 PyObject *resultobj;
22577 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22578 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22579 wxString *arg2 = (wxString *) &arg2_defvalue ;
22580 wxString result;
22581 bool temp2 = False ;
22582 PyObject * obj0 = 0 ;
22583 PyObject * obj1 = 0 ;
22584 char *kwnames[] = {
22585 (char *) "self",(char *) "format", NULL
22586 };
22587
22588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22591 if (obj1) {
22592 {
22593 arg2 = wxString_in_helper(obj1);
22594 if (arg2 == NULL) SWIG_fail;
22595 temp2 = True;
22596 }
22597 }
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22601
22602 wxPyEndAllowThreads(__tstate);
22603 if (PyErr_Occurred()) SWIG_fail;
22604 }
22605 {
22606#if wxUSE_UNICODE
22607 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22608#else
22609 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22610#endif
22611 }
22612 {
22613 if (temp2)
22614 delete arg2;
22615 }
22616 return resultobj;
22617 fail:
22618 {
22619 if (temp2)
22620 delete arg2;
22621 }
22622 return NULL;
22623}
22624
22625
22626static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22627 PyObject *obj;
22628 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22629 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22630 Py_INCREF(obj);
22631 return Py_BuildValue((char *)"");
22632}
22633static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22634 PyObject *resultobj;
22635 int arg1 = (int) 0 ;
22636 int arg2 = (int) 0 ;
22637 int arg3 = (int) 0 ;
22638 int arg4 = (int) 0 ;
22639 wxDateSpan *result;
22640 PyObject * obj0 = 0 ;
22641 PyObject * obj1 = 0 ;
22642 PyObject * obj2 = 0 ;
22643 PyObject * obj3 = 0 ;
22644 char *kwnames[] = {
22645 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22646 };
22647
22648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22649 if (obj0) {
22650 arg1 = (int) SWIG_AsInt(obj0);
22651 if (PyErr_Occurred()) SWIG_fail;
22652 }
22653 if (obj1) {
22654 arg2 = (int) SWIG_AsInt(obj1);
22655 if (PyErr_Occurred()) SWIG_fail;
22656 }
22657 if (obj2) {
22658 arg3 = (int) SWIG_AsInt(obj2);
22659 if (PyErr_Occurred()) SWIG_fail;
22660 }
22661 if (obj3) {
22662 arg4 = (int) SWIG_AsInt(obj3);
22663 if (PyErr_Occurred()) SWIG_fail;
22664 }
22665 {
22666 PyThreadState* __tstate = wxPyBeginAllowThreads();
22667 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22668
22669 wxPyEndAllowThreads(__tstate);
22670 if (PyErr_Occurred()) SWIG_fail;
22671 }
22672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22673 return resultobj;
22674 fail:
22675 return NULL;
22676}
22677
22678
22679static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22680 PyObject *resultobj;
22681 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22682 PyObject * obj0 = 0 ;
22683 char *kwnames[] = {
22684 (char *) "self", NULL
22685 };
22686
22687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22690 {
22691 PyThreadState* __tstate = wxPyBeginAllowThreads();
22692 delete arg1;
22693
22694 wxPyEndAllowThreads(__tstate);
22695 if (PyErr_Occurred()) SWIG_fail;
22696 }
22697 Py_INCREF(Py_None); resultobj = Py_None;
22698 return resultobj;
22699 fail:
22700 return NULL;
22701}
22702
22703
22704static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22705 PyObject *resultobj;
22706 int arg1 ;
22707 wxDateSpan result;
22708 PyObject * obj0 = 0 ;
22709 char *kwnames[] = {
22710 (char *) "days", NULL
22711 };
22712
22713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22714 arg1 = (int) SWIG_AsInt(obj0);
22715 if (PyErr_Occurred()) SWIG_fail;
22716 {
22717 PyThreadState* __tstate = wxPyBeginAllowThreads();
22718 result = wxDateSpan::Days(arg1);
22719
22720 wxPyEndAllowThreads(__tstate);
22721 if (PyErr_Occurred()) SWIG_fail;
22722 }
22723 {
22724 wxDateSpan * resultptr;
22725 resultptr = new wxDateSpan((wxDateSpan &) result);
22726 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22727 }
22728 return resultobj;
22729 fail:
22730 return NULL;
22731}
22732
22733
22734static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22735 PyObject *resultobj;
22736 wxDateSpan result;
22737 char *kwnames[] = {
22738 NULL
22739 };
22740
22741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22742 {
22743 PyThreadState* __tstate = wxPyBeginAllowThreads();
22744 result = wxDateSpan::Day();
22745
22746 wxPyEndAllowThreads(__tstate);
22747 if (PyErr_Occurred()) SWIG_fail;
22748 }
22749 {
22750 wxDateSpan * resultptr;
22751 resultptr = new wxDateSpan((wxDateSpan &) result);
22752 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22753 }
22754 return resultobj;
22755 fail:
22756 return NULL;
22757}
22758
22759
22760static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22761 PyObject *resultobj;
22762 int arg1 ;
22763 wxDateSpan result;
22764 PyObject * obj0 = 0 ;
22765 char *kwnames[] = {
22766 (char *) "weeks", NULL
22767 };
22768
22769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22770 arg1 = (int) SWIG_AsInt(obj0);
22771 if (PyErr_Occurred()) SWIG_fail;
22772 {
22773 PyThreadState* __tstate = wxPyBeginAllowThreads();
22774 result = wxDateSpan::Weeks(arg1);
22775
22776 wxPyEndAllowThreads(__tstate);
22777 if (PyErr_Occurred()) SWIG_fail;
22778 }
22779 {
22780 wxDateSpan * resultptr;
22781 resultptr = new wxDateSpan((wxDateSpan &) result);
22782 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22783 }
22784 return resultobj;
22785 fail:
22786 return NULL;
22787}
22788
22789
22790static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22791 PyObject *resultobj;
22792 wxDateSpan result;
22793 char *kwnames[] = {
22794 NULL
22795 };
22796
22797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22798 {
22799 PyThreadState* __tstate = wxPyBeginAllowThreads();
22800 result = wxDateSpan::Week();
22801
22802 wxPyEndAllowThreads(__tstate);
22803 if (PyErr_Occurred()) SWIG_fail;
22804 }
22805 {
22806 wxDateSpan * resultptr;
22807 resultptr = new wxDateSpan((wxDateSpan &) result);
22808 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22809 }
22810 return resultobj;
22811 fail:
22812 return NULL;
22813}
22814
22815
22816static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22817 PyObject *resultobj;
22818 int arg1 ;
22819 wxDateSpan result;
22820 PyObject * obj0 = 0 ;
22821 char *kwnames[] = {
22822 (char *) "mon", NULL
22823 };
22824
22825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22826 arg1 = (int) SWIG_AsInt(obj0);
22827 if (PyErr_Occurred()) SWIG_fail;
22828 {
22829 PyThreadState* __tstate = wxPyBeginAllowThreads();
22830 result = wxDateSpan::Months(arg1);
22831
22832 wxPyEndAllowThreads(__tstate);
22833 if (PyErr_Occurred()) SWIG_fail;
22834 }
22835 {
22836 wxDateSpan * resultptr;
22837 resultptr = new wxDateSpan((wxDateSpan &) result);
22838 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22839 }
22840 return resultobj;
22841 fail:
22842 return NULL;
22843}
22844
22845
22846static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22847 PyObject *resultobj;
22848 wxDateSpan result;
22849 char *kwnames[] = {
22850 NULL
22851 };
22852
22853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22854 {
22855 PyThreadState* __tstate = wxPyBeginAllowThreads();
22856 result = wxDateSpan::Month();
22857
22858 wxPyEndAllowThreads(__tstate);
22859 if (PyErr_Occurred()) SWIG_fail;
22860 }
22861 {
22862 wxDateSpan * resultptr;
22863 resultptr = new wxDateSpan((wxDateSpan &) result);
22864 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22865 }
22866 return resultobj;
22867 fail:
22868 return NULL;
22869}
22870
22871
22872static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22873 PyObject *resultobj;
22874 int arg1 ;
22875 wxDateSpan result;
22876 PyObject * obj0 = 0 ;
22877 char *kwnames[] = {
22878 (char *) "years", NULL
22879 };
22880
22881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22882 arg1 = (int) SWIG_AsInt(obj0);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 {
22885 PyThreadState* __tstate = wxPyBeginAllowThreads();
22886 result = wxDateSpan::Years(arg1);
22887
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 {
22892 wxDateSpan * resultptr;
22893 resultptr = new wxDateSpan((wxDateSpan &) result);
22894 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22895 }
22896 return resultobj;
22897 fail:
22898 return NULL;
22899}
22900
22901
22902static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22903 PyObject *resultobj;
22904 wxDateSpan result;
22905 char *kwnames[] = {
22906 NULL
22907 };
22908
22909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22910 {
22911 PyThreadState* __tstate = wxPyBeginAllowThreads();
22912 result = wxDateSpan::Year();
22913
22914 wxPyEndAllowThreads(__tstate);
22915 if (PyErr_Occurred()) SWIG_fail;
22916 }
22917 {
22918 wxDateSpan * resultptr;
22919 resultptr = new wxDateSpan((wxDateSpan &) result);
22920 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22921 }
22922 return resultobj;
22923 fail:
22924 return NULL;
22925}
22926
22927
22928static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22929 PyObject *resultobj;
22930 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22931 int arg2 ;
22932 wxDateSpan *result;
22933 PyObject * obj0 = 0 ;
22934 PyObject * obj1 = 0 ;
22935 char *kwnames[] = {
22936 (char *) "self",(char *) "n", NULL
22937 };
22938
22939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
22940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22942 arg2 = (int) SWIG_AsInt(obj1);
22943 if (PyErr_Occurred()) SWIG_fail;
22944 {
22945 PyThreadState* __tstate = wxPyBeginAllowThreads();
22946 {
22947 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22948 result = (wxDateSpan *) &_result_ref;
22949 }
22950
22951 wxPyEndAllowThreads(__tstate);
22952 if (PyErr_Occurred()) SWIG_fail;
22953 }
22954 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22955 return resultobj;
22956 fail:
22957 return NULL;
22958}
22959
22960
22961static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22962 PyObject *resultobj;
22963 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22964 int arg2 ;
22965 wxDateSpan *result;
22966 PyObject * obj0 = 0 ;
22967 PyObject * obj1 = 0 ;
22968 char *kwnames[] = {
22969 (char *) "self",(char *) "n", NULL
22970 };
22971
22972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
22973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22975 arg2 = (int) SWIG_AsInt(obj1);
22976 if (PyErr_Occurred()) SWIG_fail;
22977 {
22978 PyThreadState* __tstate = wxPyBeginAllowThreads();
22979 {
22980 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22981 result = (wxDateSpan *) &_result_ref;
22982 }
22983
22984 wxPyEndAllowThreads(__tstate);
22985 if (PyErr_Occurred()) SWIG_fail;
22986 }
22987 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22988 return resultobj;
22989 fail:
22990 return NULL;
22991}
22992
22993
22994static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22995 PyObject *resultobj;
22996 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22997 int arg2 ;
22998 wxDateSpan *result;
22999 PyObject * obj0 = 0 ;
23000 PyObject * obj1 = 0 ;
23001 char *kwnames[] = {
23002 (char *) "self",(char *) "n", NULL
23003 };
23004
23005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23008 arg2 = (int) SWIG_AsInt(obj1);
23009 if (PyErr_Occurred()) SWIG_fail;
23010 {
23011 PyThreadState* __tstate = wxPyBeginAllowThreads();
23012 {
23013 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23014 result = (wxDateSpan *) &_result_ref;
23015 }
23016
23017 wxPyEndAllowThreads(__tstate);
23018 if (PyErr_Occurred()) SWIG_fail;
23019 }
23020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23021 return resultobj;
23022 fail:
23023 return NULL;
23024}
23025
23026
23027static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23028 PyObject *resultobj;
23029 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23030 int arg2 ;
23031 wxDateSpan *result;
23032 PyObject * obj0 = 0 ;
23033 PyObject * obj1 = 0 ;
23034 char *kwnames[] = {
23035 (char *) "self",(char *) "n", NULL
23036 };
23037
23038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23041 arg2 = (int) SWIG_AsInt(obj1);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 {
23044 PyThreadState* __tstate = wxPyBeginAllowThreads();
23045 {
23046 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23047 result = (wxDateSpan *) &_result_ref;
23048 }
23049
23050 wxPyEndAllowThreads(__tstate);
23051 if (PyErr_Occurred()) SWIG_fail;
23052 }
23053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23054 return resultobj;
23055 fail:
23056 return NULL;
23057}
23058
23059
23060static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23061 PyObject *resultobj;
23062 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23063 int result;
23064 PyObject * obj0 = 0 ;
23065 char *kwnames[] = {
23066 (char *) "self", NULL
23067 };
23068
23069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = (int)((wxDateSpan const *)arg1)->GetYears();
23075
23076 wxPyEndAllowThreads(__tstate);
23077 if (PyErr_Occurred()) SWIG_fail;
23078 }
23079 resultobj = SWIG_FromInt((int)result);
23080 return resultobj;
23081 fail:
23082 return NULL;
23083}
23084
23085
23086static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23087 PyObject *resultobj;
23088 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23089 int result;
23090 PyObject * obj0 = 0 ;
23091 char *kwnames[] = {
23092 (char *) "self", NULL
23093 };
23094
23095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23098 {
23099 PyThreadState* __tstate = wxPyBeginAllowThreads();
23100 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23101
23102 wxPyEndAllowThreads(__tstate);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 resultobj = SWIG_FromInt((int)result);
23106 return resultobj;
23107 fail:
23108 return NULL;
23109}
23110
23111
23112static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23113 PyObject *resultobj;
23114 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23115 int result;
23116 PyObject * obj0 = 0 ;
23117 char *kwnames[] = {
23118 (char *) "self", NULL
23119 };
23120
23121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23124 {
23125 PyThreadState* __tstate = wxPyBeginAllowThreads();
23126 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23127
23128 wxPyEndAllowThreads(__tstate);
23129 if (PyErr_Occurred()) SWIG_fail;
23130 }
23131 resultobj = SWIG_FromInt((int)result);
23132 return resultobj;
23133 fail:
23134 return NULL;
23135}
23136
23137
23138static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23139 PyObject *resultobj;
23140 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23141 int result;
23142 PyObject * obj0 = 0 ;
23143 char *kwnames[] = {
23144 (char *) "self", NULL
23145 };
23146
23147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23150 {
23151 PyThreadState* __tstate = wxPyBeginAllowThreads();
23152 result = (int)((wxDateSpan const *)arg1)->GetDays();
23153
23154 wxPyEndAllowThreads(__tstate);
23155 if (PyErr_Occurred()) SWIG_fail;
23156 }
23157 resultobj = SWIG_FromInt((int)result);
23158 return resultobj;
23159 fail:
23160 return NULL;
23161}
23162
23163
23164static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23165 PyObject *resultobj;
23166 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23167 int result;
23168 PyObject * obj0 = 0 ;
23169 char *kwnames[] = {
23170 (char *) "self", NULL
23171 };
23172
23173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23176 {
23177 PyThreadState* __tstate = wxPyBeginAllowThreads();
23178 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23179
23180 wxPyEndAllowThreads(__tstate);
23181 if (PyErr_Occurred()) SWIG_fail;
23182 }
23183 resultobj = SWIG_FromInt((int)result);
23184 return resultobj;
23185 fail:
23186 return NULL;
23187}
23188
23189
23190static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23191 PyObject *resultobj;
23192 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23193 wxDateSpan *arg2 = 0 ;
23194 wxDateSpan *result;
23195 PyObject * obj0 = 0 ;
23196 PyObject * obj1 = 0 ;
23197 char *kwnames[] = {
23198 (char *) "self",(char *) "other", NULL
23199 };
23200
23201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23205 SWIG_POINTER_EXCEPTION | 0)) == -1)
23206 SWIG_fail;
23207 if (arg2 == NULL) {
23208 PyErr_SetString(PyExc_TypeError,"null reference");
23209 SWIG_fail;
23210 }
23211 {
23212 PyThreadState* __tstate = wxPyBeginAllowThreads();
23213 {
23214 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23215 result = (wxDateSpan *) &_result_ref;
23216 }
23217
23218 wxPyEndAllowThreads(__tstate);
23219 if (PyErr_Occurred()) SWIG_fail;
23220 }
23221 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23222 return resultobj;
23223 fail:
23224 return NULL;
23225}
23226
23227
23228static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23229 PyObject *resultobj;
23230 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23231 wxDateSpan *arg2 = 0 ;
23232 wxDateSpan *result;
23233 PyObject * obj0 = 0 ;
23234 PyObject * obj1 = 0 ;
23235 char *kwnames[] = {
23236 (char *) "self",(char *) "other", NULL
23237 };
23238
23239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23242 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23243 SWIG_POINTER_EXCEPTION | 0)) == -1)
23244 SWIG_fail;
23245 if (arg2 == NULL) {
23246 PyErr_SetString(PyExc_TypeError,"null reference");
23247 SWIG_fail;
23248 }
23249 {
23250 PyThreadState* __tstate = wxPyBeginAllowThreads();
23251 {
23252 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23253 result = (wxDateSpan *) &_result_ref;
23254 }
23255
23256 wxPyEndAllowThreads(__tstate);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23260 return resultobj;
23261 fail:
23262 return NULL;
23263}
23264
23265
23266static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23267 PyObject *resultobj;
23268 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23269 wxDateSpan *result;
23270 PyObject * obj0 = 0 ;
23271 char *kwnames[] = {
23272 (char *) "self", NULL
23273 };
23274
23275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23278 {
23279 PyThreadState* __tstate = wxPyBeginAllowThreads();
23280 {
23281 wxDateSpan &_result_ref = (arg1)->Neg();
23282 result = (wxDateSpan *) &_result_ref;
23283 }
23284
23285 wxPyEndAllowThreads(__tstate);
23286 if (PyErr_Occurred()) SWIG_fail;
23287 }
23288 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23289 return resultobj;
23290 fail:
23291 return NULL;
23292}
23293
23294
23295static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23296 PyObject *resultobj;
23297 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23298 int arg2 ;
23299 wxDateSpan *result;
23300 PyObject * obj0 = 0 ;
23301 PyObject * obj1 = 0 ;
23302 char *kwnames[] = {
23303 (char *) "self",(char *) "factor", NULL
23304 };
23305
23306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23309 arg2 = (int) SWIG_AsInt(obj1);
23310 if (PyErr_Occurred()) SWIG_fail;
23311 {
23312 PyThreadState* __tstate = wxPyBeginAllowThreads();
23313 {
23314 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23315 result = (wxDateSpan *) &_result_ref;
23316 }
23317
23318 wxPyEndAllowThreads(__tstate);
23319 if (PyErr_Occurred()) SWIG_fail;
23320 }
23321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23322 return resultobj;
23323 fail:
23324 return NULL;
23325}
23326
23327
23328static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23329 PyObject *resultobj;
23330 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23331 wxDateSpan *arg2 = 0 ;
23332 wxDateSpan *result;
23333 PyObject * obj0 = 0 ;
23334 PyObject * obj1 = 0 ;
23335 char *kwnames[] = {
23336 (char *) "self",(char *) "other", NULL
23337 };
23338
23339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23342 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23343 SWIG_POINTER_EXCEPTION | 0)) == -1)
23344 SWIG_fail;
23345 if (arg2 == NULL) {
23346 PyErr_SetString(PyExc_TypeError,"null reference");
23347 SWIG_fail;
23348 }
23349 {
23350 PyThreadState* __tstate = wxPyBeginAllowThreads();
23351 {
23352 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23353 result = (wxDateSpan *) &_result_ref;
23354 }
23355
23356 wxPyEndAllowThreads(__tstate);
23357 if (PyErr_Occurred()) SWIG_fail;
23358 }
23359 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23360 return resultobj;
23361 fail:
23362 return NULL;
23363}
23364
23365
23366static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23367 PyObject *resultobj;
23368 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23369 wxDateSpan *arg2 = 0 ;
23370 wxDateSpan *result;
23371 PyObject * obj0 = 0 ;
23372 PyObject * obj1 = 0 ;
23373 char *kwnames[] = {
23374 (char *) "self",(char *) "other", NULL
23375 };
23376
23377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23380 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23381 SWIG_POINTER_EXCEPTION | 0)) == -1)
23382 SWIG_fail;
23383 if (arg2 == NULL) {
23384 PyErr_SetString(PyExc_TypeError,"null reference");
23385 SWIG_fail;
23386 }
23387 {
23388 PyThreadState* __tstate = wxPyBeginAllowThreads();
23389 {
23390 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23391 result = (wxDateSpan *) &_result_ref;
23392 }
23393
23394 wxPyEndAllowThreads(__tstate);
23395 if (PyErr_Occurred()) SWIG_fail;
23396 }
23397 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23398 return resultobj;
23399 fail:
23400 return NULL;
23401}
23402
23403
23404static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23405 PyObject *resultobj;
23406 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23407 wxDateSpan *result;
23408 PyObject * obj0 = 0 ;
23409 char *kwnames[] = {
23410 (char *) "self", NULL
23411 };
23412
23413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23416 {
23417 PyThreadState* __tstate = wxPyBeginAllowThreads();
23418 {
23419 wxDateSpan &_result_ref = (arg1)->operator -();
23420 result = (wxDateSpan *) &_result_ref;
23421 }
23422
23423 wxPyEndAllowThreads(__tstate);
23424 if (PyErr_Occurred()) SWIG_fail;
23425 }
23426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23427 return resultobj;
23428 fail:
23429 return NULL;
23430}
23431
23432
23433static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23434 PyObject *resultobj;
23435 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23436 int arg2 ;
23437 wxDateSpan *result;
23438 PyObject * obj0 = 0 ;
23439 PyObject * obj1 = 0 ;
23440 char *kwnames[] = {
23441 (char *) "self",(char *) "factor", NULL
23442 };
23443
23444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23447 arg2 = (int) SWIG_AsInt(obj1);
23448 if (PyErr_Occurred()) SWIG_fail;
23449 {
23450 PyThreadState* __tstate = wxPyBeginAllowThreads();
23451 {
23452 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23453 result = (wxDateSpan *) &_result_ref;
23454 }
23455
23456 wxPyEndAllowThreads(__tstate);
23457 if (PyErr_Occurred()) SWIG_fail;
23458 }
23459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23460 return resultobj;
23461 fail:
23462 return NULL;
23463}
23464
23465
23466static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23467 PyObject *resultobj;
23468 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23469 wxDateSpan *arg2 = 0 ;
23470 wxDateSpan result;
23471 PyObject * obj0 = 0 ;
23472 PyObject * obj1 = 0 ;
23473 char *kwnames[] = {
23474 (char *) "self",(char *) "other", NULL
23475 };
23476
23477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23480 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23481 SWIG_POINTER_EXCEPTION | 0)) == -1)
23482 SWIG_fail;
23483 if (arg2 == NULL) {
23484 PyErr_SetString(PyExc_TypeError,"null reference");
23485 SWIG_fail;
23486 }
23487 {
23488 PyThreadState* __tstate = wxPyBeginAllowThreads();
23489 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23490
23491 wxPyEndAllowThreads(__tstate);
23492 if (PyErr_Occurred()) SWIG_fail;
23493 }
23494 {
23495 wxDateSpan * resultptr;
23496 resultptr = new wxDateSpan((wxDateSpan &) result);
23497 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23498 }
23499 return resultobj;
23500 fail:
23501 return NULL;
23502}
23503
23504
23505static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23506 PyObject *resultobj;
23507 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23508 wxDateSpan *arg2 = 0 ;
23509 wxDateSpan result;
23510 PyObject * obj0 = 0 ;
23511 PyObject * obj1 = 0 ;
23512 char *kwnames[] = {
23513 (char *) "self",(char *) "other", NULL
23514 };
23515
23516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23519 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23520 SWIG_POINTER_EXCEPTION | 0)) == -1)
23521 SWIG_fail;
23522 if (arg2 == NULL) {
23523 PyErr_SetString(PyExc_TypeError,"null reference");
23524 SWIG_fail;
23525 }
23526 {
23527 PyThreadState* __tstate = wxPyBeginAllowThreads();
23528 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23529
23530 wxPyEndAllowThreads(__tstate);
23531 if (PyErr_Occurred()) SWIG_fail;
23532 }
23533 {
23534 wxDateSpan * resultptr;
23535 resultptr = new wxDateSpan((wxDateSpan &) result);
23536 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23537 }
23538 return resultobj;
23539 fail:
23540 return NULL;
23541}
23542
23543
23544static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23545 PyObject *resultobj;
23546 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23547 int arg2 ;
23548 wxDateSpan result;
23549 PyObject * obj0 = 0 ;
23550 PyObject * obj1 = 0 ;
23551 char *kwnames[] = {
23552 (char *) "self",(char *) "n", NULL
23553 };
23554
23555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23558 arg2 = (int) SWIG_AsInt(obj1);
23559 if (PyErr_Occurred()) SWIG_fail;
23560 {
23561 PyThreadState* __tstate = wxPyBeginAllowThreads();
23562 result = wxDateSpan___mul__(arg1,arg2);
23563
23564 wxPyEndAllowThreads(__tstate);
23565 if (PyErr_Occurred()) SWIG_fail;
23566 }
23567 {
23568 wxDateSpan * resultptr;
23569 resultptr = new wxDateSpan((wxDateSpan &) result);
23570 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23571 }
23572 return resultobj;
23573 fail:
23574 return NULL;
23575}
23576
23577
23578static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23579 PyObject *resultobj;
23580 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23581 int arg2 ;
23582 wxDateSpan result;
23583 PyObject * obj0 = 0 ;
23584 PyObject * obj1 = 0 ;
23585 char *kwnames[] = {
23586 (char *) "self",(char *) "n", NULL
23587 };
23588
23589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23592 arg2 = (int) SWIG_AsInt(obj1);
23593 if (PyErr_Occurred()) SWIG_fail;
23594 {
23595 PyThreadState* __tstate = wxPyBeginAllowThreads();
23596 result = wxDateSpan___rmul__(arg1,arg2);
23597
23598 wxPyEndAllowThreads(__tstate);
23599 if (PyErr_Occurred()) SWIG_fail;
23600 }
23601 {
23602 wxDateSpan * resultptr;
23603 resultptr = new wxDateSpan((wxDateSpan &) result);
23604 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23605 }
23606 return resultobj;
23607 fail:
23608 return NULL;
23609}
23610
23611
23612static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23613 PyObject *resultobj;
23614 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23615 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23616 bool result;
23617 PyObject * obj0 = 0 ;
23618 PyObject * obj1 = 0 ;
23619 char *kwnames[] = {
23620 (char *) "self",(char *) "other", NULL
23621 };
23622
23623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23626 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23628 {
23629 PyThreadState* __tstate = wxPyBeginAllowThreads();
23630 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23631
23632 wxPyEndAllowThreads(__tstate);
23633 if (PyErr_Occurred()) SWIG_fail;
23634 }
23635 {
23636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23637 }
23638 return resultobj;
23639 fail:
23640 return NULL;
23641}
23642
23643
23644static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23645 PyObject *resultobj;
23646 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23647 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23648 bool result;
23649 PyObject * obj0 = 0 ;
23650 PyObject * obj1 = 0 ;
23651 char *kwnames[] = {
23652 (char *) "self",(char *) "other", NULL
23653 };
23654
23655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23658 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23660 {
23661 PyThreadState* __tstate = wxPyBeginAllowThreads();
23662 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23663
23664 wxPyEndAllowThreads(__tstate);
23665 if (PyErr_Occurred()) SWIG_fail;
23666 }
23667 {
23668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23669 }
23670 return resultobj;
23671 fail:
23672 return NULL;
23673}
23674
23675
23676static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23677 PyObject *obj;
23678 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23679 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23680 Py_INCREF(obj);
23681 return Py_BuildValue((char *)"");
23682}
23683static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23684 PyObject *resultobj;
23685 long result;
23686 char *kwnames[] = {
23687 NULL
23688 };
23689
23690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23691 {
23692 PyThreadState* __tstate = wxPyBeginAllowThreads();
23693 result = (long)wxGetLocalTime();
23694
23695 wxPyEndAllowThreads(__tstate);
23696 if (PyErr_Occurred()) SWIG_fail;
23697 }
23698 resultobj = SWIG_FromLong((long)result);
23699 return resultobj;
23700 fail:
23701 return NULL;
23702}
23703
23704
23705static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23706 PyObject *resultobj;
23707 long result;
23708 char *kwnames[] = {
23709 NULL
23710 };
23711
23712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23713 {
23714 PyThreadState* __tstate = wxPyBeginAllowThreads();
23715 result = (long)wxGetUTCTime();
23716
23717 wxPyEndAllowThreads(__tstate);
23718 if (PyErr_Occurred()) SWIG_fail;
23719 }
23720 resultobj = SWIG_FromLong((long)result);
23721 return resultobj;
23722 fail:
23723 return NULL;
23724}
23725
23726
23727static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23728 PyObject *resultobj;
23729 long result;
23730 char *kwnames[] = {
23731 NULL
23732 };
23733
23734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23735 {
23736 PyThreadState* __tstate = wxPyBeginAllowThreads();
23737 result = (long)wxGetCurrentTime();
23738
23739 wxPyEndAllowThreads(__tstate);
23740 if (PyErr_Occurred()) SWIG_fail;
23741 }
23742 resultobj = SWIG_FromLong((long)result);
23743 return resultobj;
23744 fail:
23745 return NULL;
23746}
23747
23748
23749static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23750 PyObject *resultobj;
23751 wxLongLong result;
23752 char *kwnames[] = {
23753 NULL
23754 };
23755
23756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23757 {
23758 PyThreadState* __tstate = wxPyBeginAllowThreads();
23759 result = wxGetLocalTimeMillis();
23760
23761 wxPyEndAllowThreads(__tstate);
23762 if (PyErr_Occurred()) SWIG_fail;
23763 }
23764 {
23765 PyObject *hi, *lo, *shifter, *shifted;
23766 hi = PyLong_FromLong( (&result)->GetHi() );
23767 lo = PyLong_FromLong( (&result)->GetLo() );
23768 shifter = PyLong_FromLong(32);
23769 shifted = PyNumber_Lshift(hi, shifter);
23770 resultobj = PyNumber_Or(shifted, lo);
23771 Py_DECREF(hi);
23772 Py_DECREF(lo);
23773 Py_DECREF(shifter);
23774 Py_DECREF(shifted);
23775 }
23776 return resultobj;
23777 fail:
23778 return NULL;
23779}
23780
23781
23782static int _wrap_DefaultDateTime_set(PyObject *_val) {
23783 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23784 return 1;
23785}
23786
23787
23788static PyObject *_wrap_DefaultDateTime_get() {
23789 PyObject *pyobj;
23790
23791 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23792 return pyobj;
23793}
23794
23795
23796static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23797 PyObject *resultobj;
23798 int arg1 ;
23799 wxDataFormat *result;
23800 PyObject * obj0 = 0 ;
23801 char *kwnames[] = {
23802 (char *) "type", NULL
23803 };
23804
23805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23806 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23807 if (PyErr_Occurred()) SWIG_fail;
23808 {
23809 PyThreadState* __tstate = wxPyBeginAllowThreads();
23810 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23811
23812 wxPyEndAllowThreads(__tstate);
23813 if (PyErr_Occurred()) SWIG_fail;
23814 }
23815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23816 return resultobj;
23817 fail:
23818 return NULL;
23819}
23820
23821
23822static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23823 PyObject *resultobj;
23824 wxString *arg1 = 0 ;
23825 wxDataFormat *result;
23826 bool temp1 = False ;
23827 PyObject * obj0 = 0 ;
23828 char *kwnames[] = {
23829 (char *) "format", NULL
23830 };
23831
23832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23833 {
23834 arg1 = wxString_in_helper(obj0);
23835 if (arg1 == NULL) SWIG_fail;
23836 temp1 = True;
23837 }
23838 {
23839 PyThreadState* __tstate = wxPyBeginAllowThreads();
23840 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23841
23842 wxPyEndAllowThreads(__tstate);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 }
23845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23846 {
23847 if (temp1)
23848 delete arg1;
23849 }
23850 return resultobj;
23851 fail:
23852 {
23853 if (temp1)
23854 delete arg1;
23855 }
23856 return NULL;
23857}
23858
23859
23860static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23861 PyObject *resultobj;
23862 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23863 PyObject * obj0 = 0 ;
23864 char *kwnames[] = {
23865 (char *) "self", NULL
23866 };
23867
23868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23871 {
23872 PyThreadState* __tstate = wxPyBeginAllowThreads();
23873 delete arg1;
23874
23875 wxPyEndAllowThreads(__tstate);
23876 if (PyErr_Occurred()) SWIG_fail;
23877 }
23878 Py_INCREF(Py_None); resultobj = Py_None;
23879 return resultobj;
23880 fail:
23881 return NULL;
23882}
23883
23884
23885static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23886 PyObject *resultobj;
23887 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23888 int arg2 ;
23889 bool result;
23890 PyObject * obj0 = 0 ;
23891 PyObject * obj1 = 0 ;
23892
23893 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23896 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23897 if (PyErr_Occurred()) SWIG_fail;
23898 {
23899 PyThreadState* __tstate = wxPyBeginAllowThreads();
23900 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23901
23902 wxPyEndAllowThreads(__tstate);
23903 if (PyErr_Occurred()) SWIG_fail;
23904 }
23905 {
23906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23907 }
23908 return resultobj;
23909 fail:
23910 return NULL;
23911}
23912
23913
23914static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23915 PyObject *resultobj;
23916 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23917 int arg2 ;
23918 bool result;
23919 PyObject * obj0 = 0 ;
23920 PyObject * obj1 = 0 ;
23921
23922 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23925 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23926 if (PyErr_Occurred()) SWIG_fail;
23927 {
23928 PyThreadState* __tstate = wxPyBeginAllowThreads();
23929 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23930
23931 wxPyEndAllowThreads(__tstate);
23932 if (PyErr_Occurred()) SWIG_fail;
23933 }
23934 {
23935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23936 }
23937 return resultobj;
23938 fail:
23939 return NULL;
23940}
23941
23942
23943static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
23944 PyObject *resultobj;
23945 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23946 wxDataFormat *arg2 = 0 ;
23947 bool result;
23948 PyObject * obj0 = 0 ;
23949 PyObject * obj1 = 0 ;
23950
23951 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23955 SWIG_POINTER_EXCEPTION | 0)) == -1)
23956 SWIG_fail;
23957 if (arg2 == NULL) {
23958 PyErr_SetString(PyExc_TypeError,"null reference");
23959 SWIG_fail;
23960 }
23961 {
23962 PyThreadState* __tstate = wxPyBeginAllowThreads();
23963 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23964
23965 wxPyEndAllowThreads(__tstate);
23966 if (PyErr_Occurred()) SWIG_fail;
23967 }
23968 {
23969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23970 }
23971 return resultobj;
23972 fail:
23973 return NULL;
23974}
23975
23976
23977static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23978 int argc;
23979 PyObject *argv[3];
23980 int ii;
23981
23982 argc = PyObject_Length(args);
23983 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23984 argv[ii] = PyTuple_GetItem(args,ii);
23985 }
23986 if (argc == 2) {
23987 int _v;
23988 {
23989 void *ptr;
23990 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23991 _v = 0;
23992 PyErr_Clear();
23993 } else {
23994 _v = 1;
23995 }
23996 }
23997 if (_v) {
23998 {
23999 void *ptr;
24000 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24001 _v = 0;
24002 PyErr_Clear();
24003 } else {
24004 _v = 1;
24005 }
24006 }
24007 if (_v) {
24008 return _wrap_DataFormat___eq____SWIG_1(self,args);
24009 }
24010 }
24011 }
24012 if (argc == 2) {
24013 int _v;
24014 {
24015 void *ptr;
24016 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24017 _v = 0;
24018 PyErr_Clear();
24019 } else {
24020 _v = 1;
24021 }
24022 }
24023 if (_v) {
24024 _v = SWIG_CheckInt(argv[1]);
24025 if (_v) {
24026 return _wrap_DataFormat___eq____SWIG_0(self,args);
24027 }
24028 }
24029 }
24030
24031 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24032 return NULL;
24033}
24034
24035
24036static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24037 PyObject *resultobj;
24038 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24039 wxDataFormat *arg2 = 0 ;
24040 bool result;
24041 PyObject * obj0 = 0 ;
24042 PyObject * obj1 = 0 ;
24043
24044 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24047 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24048 SWIG_POINTER_EXCEPTION | 0)) == -1)
24049 SWIG_fail;
24050 if (arg2 == NULL) {
24051 PyErr_SetString(PyExc_TypeError,"null reference");
24052 SWIG_fail;
24053 }
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24057
24058 wxPyEndAllowThreads(__tstate);
24059 if (PyErr_Occurred()) SWIG_fail;
24060 }
24061 {
24062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24063 }
24064 return resultobj;
24065 fail:
24066 return NULL;
24067}
24068
24069
24070static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24071 int argc;
24072 PyObject *argv[3];
24073 int ii;
24074
24075 argc = PyObject_Length(args);
24076 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24077 argv[ii] = PyTuple_GetItem(args,ii);
24078 }
24079 if (argc == 2) {
24080 int _v;
24081 {
24082 void *ptr;
24083 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24084 _v = 0;
24085 PyErr_Clear();
24086 } else {
24087 _v = 1;
24088 }
24089 }
24090 if (_v) {
24091 {
24092 void *ptr;
24093 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24094 _v = 0;
24095 PyErr_Clear();
24096 } else {
24097 _v = 1;
24098 }
24099 }
24100 if (_v) {
24101 return _wrap_DataFormat___ne____SWIG_1(self,args);
24102 }
24103 }
24104 }
24105 if (argc == 2) {
24106 int _v;
24107 {
24108 void *ptr;
24109 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24110 _v = 0;
24111 PyErr_Clear();
24112 } else {
24113 _v = 1;
24114 }
24115 }
24116 if (_v) {
24117 _v = SWIG_CheckInt(argv[1]);
24118 if (_v) {
24119 return _wrap_DataFormat___ne____SWIG_0(self,args);
24120 }
24121 }
24122 }
24123
24124 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24125 return NULL;
24126}
24127
24128
24129static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24130 PyObject *resultobj;
24131 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24132 int arg2 ;
24133 PyObject * obj0 = 0 ;
24134 PyObject * obj1 = 0 ;
24135 char *kwnames[] = {
24136 (char *) "self",(char *) "format", NULL
24137 };
24138
24139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24142 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24143 if (PyErr_Occurred()) SWIG_fail;
24144 {
24145 PyThreadState* __tstate = wxPyBeginAllowThreads();
24146 (arg1)->SetType((wxDataFormatId )arg2);
24147
24148 wxPyEndAllowThreads(__tstate);
24149 if (PyErr_Occurred()) SWIG_fail;
24150 }
24151 Py_INCREF(Py_None); resultobj = Py_None;
24152 return resultobj;
24153 fail:
24154 return NULL;
24155}
24156
24157
24158static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24159 PyObject *resultobj;
24160 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24161 int result;
24162 PyObject * obj0 = 0 ;
24163 char *kwnames[] = {
24164 (char *) "self", NULL
24165 };
24166
24167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24170 {
24171 PyThreadState* __tstate = wxPyBeginAllowThreads();
24172 result = (int)((wxDataFormat const *)arg1)->GetType();
24173
24174 wxPyEndAllowThreads(__tstate);
24175 if (PyErr_Occurred()) SWIG_fail;
24176 }
24177 resultobj = SWIG_FromInt((int)result);
24178 return resultobj;
24179 fail:
24180 return NULL;
24181}
24182
24183
24184static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24185 PyObject *resultobj;
24186 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24187 wxString result;
24188 PyObject * obj0 = 0 ;
24189 char *kwnames[] = {
24190 (char *) "self", NULL
24191 };
24192
24193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24196 {
24197 PyThreadState* __tstate = wxPyBeginAllowThreads();
24198 result = ((wxDataFormat const *)arg1)->GetId();
24199
24200 wxPyEndAllowThreads(__tstate);
24201 if (PyErr_Occurred()) SWIG_fail;
24202 }
24203 {
24204#if wxUSE_UNICODE
24205 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24206#else
24207 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24208#endif
24209 }
24210 return resultobj;
24211 fail:
24212 return NULL;
24213}
24214
24215
24216static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24217 PyObject *resultobj;
24218 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24219 wxString *arg2 = 0 ;
24220 bool temp2 = False ;
24221 PyObject * obj0 = 0 ;
24222 PyObject * obj1 = 0 ;
24223 char *kwnames[] = {
24224 (char *) "self",(char *) "format", NULL
24225 };
24226
24227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24230 {
24231 arg2 = wxString_in_helper(obj1);
24232 if (arg2 == NULL) SWIG_fail;
24233 temp2 = True;
24234 }
24235 {
24236 PyThreadState* __tstate = wxPyBeginAllowThreads();
24237 (arg1)->SetId((wxString const &)*arg2);
24238
24239 wxPyEndAllowThreads(__tstate);
24240 if (PyErr_Occurred()) SWIG_fail;
24241 }
24242 Py_INCREF(Py_None); resultobj = Py_None;
24243 {
24244 if (temp2)
24245 delete arg2;
24246 }
24247 return resultobj;
24248 fail:
24249 {
24250 if (temp2)
24251 delete arg2;
24252 }
24253 return NULL;
24254}
24255
24256
24257static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24258 PyObject *obj;
24259 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24260 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24261 Py_INCREF(obj);
24262 return Py_BuildValue((char *)"");
24263}
24264static int _wrap_FormatInvalid_set(PyObject *_val) {
24265 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24266 return 1;
24267}
24268
24269
24270static PyObject *_wrap_FormatInvalid_get() {
24271 PyObject *pyobj;
24272
24273 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24274 return pyobj;
24275}
24276
24277
24278static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24279 PyObject *resultobj;
24280 wxDataObject *arg1 = (wxDataObject *) 0 ;
24281 PyObject * obj0 = 0 ;
24282 char *kwnames[] = {
24283 (char *) "self", NULL
24284 };
24285
24286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24289 {
24290 PyThreadState* __tstate = wxPyBeginAllowThreads();
24291 delete arg1;
24292
24293 wxPyEndAllowThreads(__tstate);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 Py_INCREF(Py_None); resultobj = Py_None;
24297 return resultobj;
24298 fail:
24299 return NULL;
24300}
24301
24302
24303static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24304 PyObject *resultobj;
24305 wxDataObject *arg1 = (wxDataObject *) 0 ;
24306 int arg2 = (int) wxDataObject::Get ;
24307 SwigValueWrapper< wxDataFormat > result;
24308 PyObject * obj0 = 0 ;
24309 PyObject * obj1 = 0 ;
24310 char *kwnames[] = {
24311 (char *) "self",(char *) "dir", NULL
24312 };
24313
24314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24317 if (obj1) {
24318 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24319 if (PyErr_Occurred()) SWIG_fail;
24320 }
24321 {
24322 PyThreadState* __tstate = wxPyBeginAllowThreads();
24323 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24324
24325 wxPyEndAllowThreads(__tstate);
24326 if (PyErr_Occurred()) SWIG_fail;
24327 }
24328 {
24329 wxDataFormat * resultptr;
24330 resultptr = new wxDataFormat((wxDataFormat &) result);
24331 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24332 }
24333 return resultobj;
24334 fail:
24335 return NULL;
24336}
24337
24338
24339static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24340 PyObject *resultobj;
24341 wxDataObject *arg1 = (wxDataObject *) 0 ;
24342 int arg2 = (int) wxDataObject::Get ;
24343 size_t result;
24344 PyObject * obj0 = 0 ;
24345 PyObject * obj1 = 0 ;
24346 char *kwnames[] = {
24347 (char *) "self",(char *) "dir", NULL
24348 };
24349
24350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24353 if (obj1) {
24354 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24355 if (PyErr_Occurred()) SWIG_fail;
24356 }
24357 {
24358 PyThreadState* __tstate = wxPyBeginAllowThreads();
24359 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24360
24361 wxPyEndAllowThreads(__tstate);
24362 if (PyErr_Occurred()) SWIG_fail;
24363 }
24364 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24365 return resultobj;
24366 fail:
24367 return NULL;
24368}
24369
24370
24371static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24372 PyObject *resultobj;
24373 wxDataObject *arg1 = (wxDataObject *) 0 ;
24374 wxDataFormat *arg2 = 0 ;
24375 int arg3 = (int) wxDataObject::Get ;
24376 bool result;
24377 PyObject * obj0 = 0 ;
24378 PyObject * obj1 = 0 ;
24379 PyObject * obj2 = 0 ;
24380 char *kwnames[] = {
24381 (char *) "self",(char *) "format",(char *) "dir", NULL
24382 };
24383
24384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24387 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24388 SWIG_POINTER_EXCEPTION | 0)) == -1)
24389 SWIG_fail;
24390 if (arg2 == NULL) {
24391 PyErr_SetString(PyExc_TypeError,"null reference");
24392 SWIG_fail;
24393 }
24394 if (obj2) {
24395 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24396 if (PyErr_Occurred()) SWIG_fail;
24397 }
24398 {
24399 PyThreadState* __tstate = wxPyBeginAllowThreads();
24400 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24401
24402 wxPyEndAllowThreads(__tstate);
24403 if (PyErr_Occurred()) SWIG_fail;
24404 }
24405 {
24406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24407 }
24408 return resultobj;
24409 fail:
24410 return NULL;
24411}
24412
24413
24414static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24415 PyObject *resultobj;
24416 wxDataObject *arg1 = (wxDataObject *) 0 ;
24417 wxDataFormat *arg2 = 0 ;
24418 size_t result;
24419 PyObject * obj0 = 0 ;
24420 PyObject * obj1 = 0 ;
24421 char *kwnames[] = {
24422 (char *) "self",(char *) "format", NULL
24423 };
24424
24425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24428 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24429 SWIG_POINTER_EXCEPTION | 0)) == -1)
24430 SWIG_fail;
24431 if (arg2 == NULL) {
24432 PyErr_SetString(PyExc_TypeError,"null reference");
24433 SWIG_fail;
24434 }
24435 {
24436 PyThreadState* __tstate = wxPyBeginAllowThreads();
24437 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24438
24439 wxPyEndAllowThreads(__tstate);
24440 if (PyErr_Occurred()) SWIG_fail;
24441 }
24442 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24443 return resultobj;
24444 fail:
24445 return NULL;
24446}
24447
24448
24449static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24450 PyObject *resultobj;
24451 wxDataObject *arg1 = (wxDataObject *) 0 ;
68e533f8
RD
24452 int arg2 = (int) wxDataObject::Get ;
24453 PyObject *result;
d55e5bfc
RD
24454 PyObject * obj0 = 0 ;
24455 PyObject * obj1 = 0 ;
d55e5bfc 24456 char *kwnames[] = {
68e533f8 24457 (char *) "self",(char *) "dir", NULL
d55e5bfc
RD
24458 };
24459
68e533f8 24460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
24461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
68e533f8
RD
24463 if (obj1) {
24464 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
d55e5bfc
RD
24465 if (PyErr_Occurred()) SWIG_fail;
24466 }
24467 {
24468 PyThreadState* __tstate = wxPyBeginAllowThreads();
68e533f8 24469 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
d55e5bfc
RD
24470
24471 wxPyEndAllowThreads(__tstate);
24472 if (PyErr_Occurred()) SWIG_fail;
24473 }
68e533f8 24474 resultobj = result;
d55e5bfc
RD
24475 return resultobj;
24476 fail:
24477 return NULL;
24478}
24479
24480
24481static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24482 PyObject *resultobj;
24483 wxDataObject *arg1 = (wxDataObject *) 0 ;
24484 wxDataFormat *arg2 = 0 ;
68e533f8 24485 PyObject *result;
d55e5bfc
RD
24486 PyObject * obj0 = 0 ;
24487 PyObject * obj1 = 0 ;
d55e5bfc 24488 char *kwnames[] = {
68e533f8 24489 (char *) "self",(char *) "format", NULL
d55e5bfc
RD
24490 };
24491
68e533f8 24492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
24493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24495 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24496 SWIG_POINTER_EXCEPTION | 0)) == -1)
24497 SWIG_fail;
24498 if (arg2 == NULL) {
24499 PyErr_SetString(PyExc_TypeError,"null reference");
24500 SWIG_fail;
24501 }
d55e5bfc
RD
24502 {
24503 PyThreadState* __tstate = wxPyBeginAllowThreads();
68e533f8 24504 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
d55e5bfc
RD
24505
24506 wxPyEndAllowThreads(__tstate);
24507 if (PyErr_Occurred()) SWIG_fail;
24508 }
68e533f8 24509 resultobj = result;
d55e5bfc
RD
24510 return resultobj;
24511 fail:
24512 return NULL;
24513}
24514
24515
24516static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24517 PyObject *resultobj;
24518 wxDataObject *arg1 = (wxDataObject *) 0 ;
24519 wxDataFormat *arg2 = 0 ;
68e533f8 24520 PyObject *arg3 = (PyObject *) 0 ;
d55e5bfc
RD
24521 bool result;
24522 PyObject * obj0 = 0 ;
24523 PyObject * obj1 = 0 ;
24524 PyObject * obj2 = 0 ;
d55e5bfc 24525 char *kwnames[] = {
68e533f8 24526 (char *) "self",(char *) "format",(char *) "data", NULL
d55e5bfc
RD
24527 };
24528
68e533f8 24529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
24530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24533 SWIG_POINTER_EXCEPTION | 0)) == -1)
24534 SWIG_fail;
24535 if (arg2 == NULL) {
24536 PyErr_SetString(PyExc_TypeError,"null reference");
24537 SWIG_fail;
24538 }
68e533f8 24539 arg3 = obj2;
d55e5bfc
RD
24540 {
24541 PyThreadState* __tstate = wxPyBeginAllowThreads();
68e533f8 24542 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
d55e5bfc
RD
24543
24544 wxPyEndAllowThreads(__tstate);
24545 if (PyErr_Occurred()) SWIG_fail;
24546 }
24547 {
24548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24549 }
24550 return resultobj;
24551 fail:
24552 return NULL;
24553}
24554
24555
24556static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24557 PyObject *obj;
24558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24559 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24560 Py_INCREF(obj);
24561 return Py_BuildValue((char *)"");
24562}
24563static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24564 PyObject *resultobj;
24565 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24566 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24567 wxDataObjectSimple *result;
24568 PyObject * obj0 = 0 ;
24569 char *kwnames[] = {
24570 (char *) "format", NULL
24571 };
24572
24573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24574 if (obj0) {
24575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24576 SWIG_POINTER_EXCEPTION | 0)) == -1)
24577 SWIG_fail;
24578 if (arg1 == NULL) {
24579 PyErr_SetString(PyExc_TypeError,"null reference");
24580 SWIG_fail;
24581 }
24582 }
24583 {
24584 PyThreadState* __tstate = wxPyBeginAllowThreads();
24585 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24586
24587 wxPyEndAllowThreads(__tstate);
24588 if (PyErr_Occurred()) SWIG_fail;
24589 }
24590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24591 return resultobj;
24592 fail:
24593 return NULL;
24594}
24595
24596
24597static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24598 PyObject *resultobj;
24599 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24600 wxDataFormat *result;
24601 PyObject * obj0 = 0 ;
24602 char *kwnames[] = {
24603 (char *) "self", NULL
24604 };
24605
24606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24609 {
24610 PyThreadState* __tstate = wxPyBeginAllowThreads();
24611 {
24612 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24613 result = (wxDataFormat *) &_result_ref;
24614 }
24615
24616 wxPyEndAllowThreads(__tstate);
24617 if (PyErr_Occurred()) SWIG_fail;
24618 }
24619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24620 return resultobj;
24621 fail:
24622 return NULL;
24623}
24624
24625
24626static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24627 PyObject *resultobj;
24628 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24629 wxDataFormat *arg2 = 0 ;
24630 PyObject * obj0 = 0 ;
24631 PyObject * obj1 = 0 ;
24632 char *kwnames[] = {
24633 (char *) "self",(char *) "format", NULL
24634 };
24635
24636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24639 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24640 SWIG_POINTER_EXCEPTION | 0)) == -1)
24641 SWIG_fail;
24642 if (arg2 == NULL) {
24643 PyErr_SetString(PyExc_TypeError,"null reference");
24644 SWIG_fail;
24645 }
24646 {
24647 PyThreadState* __tstate = wxPyBeginAllowThreads();
24648 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24649
24650 wxPyEndAllowThreads(__tstate);
24651 if (PyErr_Occurred()) SWIG_fail;
24652 }
24653 Py_INCREF(Py_None); resultobj = Py_None;
24654 return resultobj;
24655 fail:
24656 return NULL;
24657}
24658
24659
68e533f8
RD
24660static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24661 PyObject *resultobj;
24662 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24663 size_t result;
24664 PyObject * obj0 = 0 ;
24665 char *kwnames[] = {
24666 (char *) "self", NULL
24667 };
24668
24669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
24670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24672 {
24673 PyThreadState* __tstate = wxPyBeginAllowThreads();
24674 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
24675
24676 wxPyEndAllowThreads(__tstate);
24677 if (PyErr_Occurred()) SWIG_fail;
24678 }
24679 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24680 return resultobj;
24681 fail:
24682 return NULL;
24683}
24684
24685
24686static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24687 PyObject *resultobj;
24688 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24689 PyObject *result;
24690 PyObject * obj0 = 0 ;
24691 char *kwnames[] = {
24692 (char *) "self", NULL
24693 };
24694
24695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
24696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24698 {
24699 PyThreadState* __tstate = wxPyBeginAllowThreads();
24700 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
24701
24702 wxPyEndAllowThreads(__tstate);
24703 if (PyErr_Occurred()) SWIG_fail;
24704 }
24705 resultobj = result;
24706 return resultobj;
24707 fail:
24708 return NULL;
24709}
24710
24711
24712static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24713 PyObject *resultobj;
24714 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24715 PyObject *arg2 = (PyObject *) 0 ;
24716 bool result;
24717 PyObject * obj0 = 0 ;
24718 PyObject * obj1 = 0 ;
24719 char *kwnames[] = {
24720 (char *) "self",(char *) "data", NULL
24721 };
24722
24723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
24724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24726 arg2 = obj1;
24727 {
24728 PyThreadState* __tstate = wxPyBeginAllowThreads();
24729 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
24730
24731 wxPyEndAllowThreads(__tstate);
24732 if (PyErr_Occurred()) SWIG_fail;
24733 }
24734 {
24735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24736 }
24737 return resultobj;
24738 fail:
24739 return NULL;
24740}
24741
24742
d55e5bfc
RD
24743static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24744 PyObject *obj;
24745 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24746 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24747 Py_INCREF(obj);
24748 return Py_BuildValue((char *)"");
24749}
24750static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24751 PyObject *resultobj;
24752 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24753 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24754 wxPyDataObjectSimple *result;
24755 PyObject * obj0 = 0 ;
24756 char *kwnames[] = {
24757 (char *) "format", NULL
24758 };
24759
24760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24761 if (obj0) {
24762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24763 SWIG_POINTER_EXCEPTION | 0)) == -1)
24764 SWIG_fail;
24765 if (arg1 == NULL) {
24766 PyErr_SetString(PyExc_TypeError,"null reference");
24767 SWIG_fail;
24768 }
24769 }
24770 {
24771 PyThreadState* __tstate = wxPyBeginAllowThreads();
24772 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24773
24774 wxPyEndAllowThreads(__tstate);
24775 if (PyErr_Occurred()) SWIG_fail;
24776 }
24777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24778 return resultobj;
24779 fail:
24780 return NULL;
24781}
24782
24783
24784static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24785 PyObject *resultobj;
24786 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24787 PyObject *arg2 = (PyObject *) 0 ;
24788 PyObject *arg3 = (PyObject *) 0 ;
24789 PyObject * obj0 = 0 ;
24790 PyObject * obj1 = 0 ;
24791 PyObject * obj2 = 0 ;
24792 char *kwnames[] = {
24793 (char *) "self",(char *) "self",(char *) "_class", NULL
24794 };
24795
24796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24799 arg2 = obj1;
24800 arg3 = obj2;
24801 {
24802 PyThreadState* __tstate = wxPyBeginAllowThreads();
24803 (arg1)->_setCallbackInfo(arg2,arg3);
24804
24805 wxPyEndAllowThreads(__tstate);
24806 if (PyErr_Occurred()) SWIG_fail;
24807 }
24808 Py_INCREF(Py_None); resultobj = Py_None;
24809 return resultobj;
24810 fail:
24811 return NULL;
24812}
24813
24814
24815static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24816 PyObject *obj;
24817 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24818 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24819 Py_INCREF(obj);
24820 return Py_BuildValue((char *)"");
24821}
24822static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24823 PyObject *resultobj;
24824 wxDataObjectComposite *result;
24825 char *kwnames[] = {
24826 NULL
24827 };
24828
24829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24830 {
24831 PyThreadState* __tstate = wxPyBeginAllowThreads();
24832 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24833
24834 wxPyEndAllowThreads(__tstate);
24835 if (PyErr_Occurred()) SWIG_fail;
24836 }
24837 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24838 return resultobj;
24839 fail:
24840 return NULL;
24841}
24842
24843
24844static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24845 PyObject *resultobj;
24846 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24847 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
68e533f8 24848 bool arg3 = (bool) False ;
d55e5bfc
RD
24849 PyObject * obj0 = 0 ;
24850 PyObject * obj1 = 0 ;
24851 PyObject * obj2 = 0 ;
24852 char *kwnames[] = {
24853 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24854 };
24855
24856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24859 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24860 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24861 if (obj2) {
68e533f8 24862 arg3 = (bool) SWIG_AsBool(obj2);
d55e5bfc
RD
24863 if (PyErr_Occurred()) SWIG_fail;
24864 }
24865 {
24866 PyThreadState* __tstate = wxPyBeginAllowThreads();
24867 (arg1)->Add(arg2,arg3);
24868
24869 wxPyEndAllowThreads(__tstate);
24870 if (PyErr_Occurred()) SWIG_fail;
24871 }
24872 Py_INCREF(Py_None); resultobj = Py_None;
24873 return resultobj;
24874 fail:
24875 return NULL;
24876}
24877
24878
24879static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24880 PyObject *obj;
24881 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24882 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24883 Py_INCREF(obj);
24884 return Py_BuildValue((char *)"");
24885}
24886static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24887 PyObject *resultobj;
24888 wxString const &arg1_defvalue = wxPyEmptyString ;
24889 wxString *arg1 = (wxString *) &arg1_defvalue ;
24890 wxTextDataObject *result;
24891 bool temp1 = False ;
24892 PyObject * obj0 = 0 ;
24893 char *kwnames[] = {
24894 (char *) "text", NULL
24895 };
24896
24897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24898 if (obj0) {
24899 {
24900 arg1 = wxString_in_helper(obj0);
24901 if (arg1 == NULL) SWIG_fail;
24902 temp1 = True;
24903 }
24904 }
24905 {
24906 PyThreadState* __tstate = wxPyBeginAllowThreads();
24907 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24908
24909 wxPyEndAllowThreads(__tstate);
24910 if (PyErr_Occurred()) SWIG_fail;
24911 }
24912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24913 {
24914 if (temp1)
24915 delete arg1;
24916 }
24917 return resultobj;
24918 fail:
24919 {
24920 if (temp1)
24921 delete arg1;
24922 }
24923 return NULL;
24924}
24925
24926
24927static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24928 PyObject *resultobj;
24929 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24930 size_t result;
24931 PyObject * obj0 = 0 ;
24932 char *kwnames[] = {
24933 (char *) "self", NULL
24934 };
24935
24936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24939 {
24940 PyThreadState* __tstate = wxPyBeginAllowThreads();
24941 result = (size_t)(arg1)->GetTextLength();
24942
24943 wxPyEndAllowThreads(__tstate);
24944 if (PyErr_Occurred()) SWIG_fail;
24945 }
24946 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24947 return resultobj;
24948 fail:
24949 return NULL;
24950}
24951
24952
24953static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24954 PyObject *resultobj;
24955 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24956 wxString result;
24957 PyObject * obj0 = 0 ;
24958 char *kwnames[] = {
24959 (char *) "self", NULL
24960 };
24961
24962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24965 {
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
24967 result = (arg1)->GetText();
24968
24969 wxPyEndAllowThreads(__tstate);
24970 if (PyErr_Occurred()) SWIG_fail;
24971 }
24972 {
24973#if wxUSE_UNICODE
24974 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24975#else
24976 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24977#endif
24978 }
24979 return resultobj;
24980 fail:
24981 return NULL;
24982}
24983
24984
24985static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24986 PyObject *resultobj;
24987 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24988 wxString *arg2 = 0 ;
24989 bool temp2 = False ;
24990 PyObject * obj0 = 0 ;
24991 PyObject * obj1 = 0 ;
24992 char *kwnames[] = {
24993 (char *) "self",(char *) "text", NULL
24994 };
24995
24996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24999 {
25000 arg2 = wxString_in_helper(obj1);
25001 if (arg2 == NULL) SWIG_fail;
25002 temp2 = True;
25003 }
25004 {
25005 PyThreadState* __tstate = wxPyBeginAllowThreads();
25006 (arg1)->SetText((wxString const &)*arg2);
25007
25008 wxPyEndAllowThreads(__tstate);
25009 if (PyErr_Occurred()) SWIG_fail;
25010 }
25011 Py_INCREF(Py_None); resultobj = Py_None;
25012 {
25013 if (temp2)
25014 delete arg2;
25015 }
25016 return resultobj;
25017 fail:
25018 {
25019 if (temp2)
25020 delete arg2;
25021 }
25022 return NULL;
25023}
25024
25025
25026static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
25027 PyObject *obj;
25028 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25029 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25030 Py_INCREF(obj);
25031 return Py_BuildValue((char *)"");
25032}
25033static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25034 PyObject *resultobj;
25035 wxString const &arg1_defvalue = wxPyEmptyString ;
25036 wxString *arg1 = (wxString *) &arg1_defvalue ;
25037 wxPyTextDataObject *result;
25038 bool temp1 = False ;
25039 PyObject * obj0 = 0 ;
25040 char *kwnames[] = {
25041 (char *) "text", NULL
25042 };
25043
25044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25045 if (obj0) {
25046 {
25047 arg1 = wxString_in_helper(obj0);
25048 if (arg1 == NULL) SWIG_fail;
25049 temp1 = True;
25050 }
25051 }
25052 {
25053 PyThreadState* __tstate = wxPyBeginAllowThreads();
25054 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25055
25056 wxPyEndAllowThreads(__tstate);
25057 if (PyErr_Occurred()) SWIG_fail;
25058 }
25059 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25060 {
25061 if (temp1)
25062 delete arg1;
25063 }
25064 return resultobj;
25065 fail:
25066 {
25067 if (temp1)
25068 delete arg1;
25069 }
25070 return NULL;
25071}
25072
25073
25074static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25075 PyObject *resultobj;
25076 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25077 PyObject *arg2 = (PyObject *) 0 ;
25078 PyObject *arg3 = (PyObject *) 0 ;
25079 PyObject * obj0 = 0 ;
25080 PyObject * obj1 = 0 ;
25081 PyObject * obj2 = 0 ;
25082 char *kwnames[] = {
25083 (char *) "self",(char *) "self",(char *) "_class", NULL
25084 };
25085
25086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25089 arg2 = obj1;
25090 arg3 = obj2;
25091 {
25092 PyThreadState* __tstate = wxPyBeginAllowThreads();
25093 (arg1)->_setCallbackInfo(arg2,arg3);
25094
25095 wxPyEndAllowThreads(__tstate);
25096 if (PyErr_Occurred()) SWIG_fail;
25097 }
25098 Py_INCREF(Py_None); resultobj = Py_None;
25099 return resultobj;
25100 fail:
25101 return NULL;
25102}
25103
25104
25105static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25106 PyObject *obj;
25107 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25108 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25109 Py_INCREF(obj);
25110 return Py_BuildValue((char *)"");
25111}
25112static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25113 PyObject *resultobj;
25114 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25115 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25116 wxBitmapDataObject *result;
25117 PyObject * obj0 = 0 ;
25118 char *kwnames[] = {
25119 (char *) "bitmap", NULL
25120 };
25121
25122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25123 if (obj0) {
25124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25125 SWIG_POINTER_EXCEPTION | 0)) == -1)
25126 SWIG_fail;
25127 if (arg1 == NULL) {
25128 PyErr_SetString(PyExc_TypeError,"null reference");
25129 SWIG_fail;
25130 }
25131 }
25132 {
25133 PyThreadState* __tstate = wxPyBeginAllowThreads();
25134 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25135
25136 wxPyEndAllowThreads(__tstate);
25137 if (PyErr_Occurred()) SWIG_fail;
25138 }
25139 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25140 return resultobj;
25141 fail:
25142 return NULL;
25143}
25144
25145
25146static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25147 PyObject *resultobj;
25148 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25149 wxBitmap result;
25150 PyObject * obj0 = 0 ;
25151 char *kwnames[] = {
25152 (char *) "self", NULL
25153 };
25154
25155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25158 {
25159 PyThreadState* __tstate = wxPyBeginAllowThreads();
25160 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25161
25162 wxPyEndAllowThreads(__tstate);
25163 if (PyErr_Occurred()) SWIG_fail;
25164 }
25165 {
25166 wxBitmap * resultptr;
25167 resultptr = new wxBitmap((wxBitmap &) result);
25168 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25169 }
25170 return resultobj;
25171 fail:
25172 return NULL;
25173}
25174
25175
25176static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25177 PyObject *resultobj;
25178 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25179 wxBitmap *arg2 = 0 ;
25180 PyObject * obj0 = 0 ;
25181 PyObject * obj1 = 0 ;
25182 char *kwnames[] = {
25183 (char *) "self",(char *) "bitmap", NULL
25184 };
25185
25186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25190 SWIG_POINTER_EXCEPTION | 0)) == -1)
25191 SWIG_fail;
25192 if (arg2 == NULL) {
25193 PyErr_SetString(PyExc_TypeError,"null reference");
25194 SWIG_fail;
25195 }
25196 {
25197 PyThreadState* __tstate = wxPyBeginAllowThreads();
25198 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25199
25200 wxPyEndAllowThreads(__tstate);
25201 if (PyErr_Occurred()) SWIG_fail;
25202 }
25203 Py_INCREF(Py_None); resultobj = Py_None;
25204 return resultobj;
25205 fail:
25206 return NULL;
25207}
25208
25209
25210static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25211 PyObject *obj;
25212 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25213 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25214 Py_INCREF(obj);
25215 return Py_BuildValue((char *)"");
25216}
25217static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25218 PyObject *resultobj;
25219 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25220 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25221 wxPyBitmapDataObject *result;
25222 PyObject * obj0 = 0 ;
25223 char *kwnames[] = {
25224 (char *) "bitmap", NULL
25225 };
25226
25227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25228 if (obj0) {
25229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25230 SWIG_POINTER_EXCEPTION | 0)) == -1)
25231 SWIG_fail;
25232 if (arg1 == NULL) {
25233 PyErr_SetString(PyExc_TypeError,"null reference");
25234 SWIG_fail;
25235 }
25236 }
25237 {
25238 PyThreadState* __tstate = wxPyBeginAllowThreads();
25239 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25240
25241 wxPyEndAllowThreads(__tstate);
25242 if (PyErr_Occurred()) SWIG_fail;
25243 }
25244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25245 return resultobj;
25246 fail:
25247 return NULL;
25248}
25249
25250
25251static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25252 PyObject *resultobj;
25253 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25254 PyObject *arg2 = (PyObject *) 0 ;
25255 PyObject *arg3 = (PyObject *) 0 ;
25256 PyObject * obj0 = 0 ;
25257 PyObject * obj1 = 0 ;
25258 PyObject * obj2 = 0 ;
25259 char *kwnames[] = {
25260 (char *) "self",(char *) "self",(char *) "_class", NULL
25261 };
25262
25263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25266 arg2 = obj1;
25267 arg3 = obj2;
25268 {
25269 PyThreadState* __tstate = wxPyBeginAllowThreads();
25270 (arg1)->_setCallbackInfo(arg2,arg3);
25271
25272 wxPyEndAllowThreads(__tstate);
25273 if (PyErr_Occurred()) SWIG_fail;
25274 }
25275 Py_INCREF(Py_None); resultobj = Py_None;
25276 return resultobj;
25277 fail:
25278 return NULL;
25279}
25280
25281
25282static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25283 PyObject *obj;
25284 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25285 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25286 Py_INCREF(obj);
25287 return Py_BuildValue((char *)"");
25288}
25289static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25290 PyObject *resultobj;
25291 wxFileDataObject *result;
25292 char *kwnames[] = {
25293 NULL
25294 };
25295
25296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25297 {
25298 PyThreadState* __tstate = wxPyBeginAllowThreads();
25299 result = (wxFileDataObject *)new wxFileDataObject();
25300
25301 wxPyEndAllowThreads(__tstate);
25302 if (PyErr_Occurred()) SWIG_fail;
25303 }
25304 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25305 return resultobj;
25306 fail:
25307 return NULL;
25308}
25309
25310
25311static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25312 PyObject *resultobj;
25313 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25314 wxArrayString *result;
25315 PyObject * obj0 = 0 ;
25316 char *kwnames[] = {
25317 (char *) "self", NULL
25318 };
25319
25320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25323 {
25324 PyThreadState* __tstate = wxPyBeginAllowThreads();
25325 {
25326 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25327 result = (wxArrayString *) &_result_ref;
25328 }
25329
25330 wxPyEndAllowThreads(__tstate);
25331 if (PyErr_Occurred()) SWIG_fail;
25332 }
25333 {
25334 resultobj = wxArrayString2PyList_helper(*result);
25335 }
25336 return resultobj;
25337 fail:
25338 return NULL;
25339}
25340
25341
25342static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25343 PyObject *resultobj;
25344 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25345 wxString *arg2 = 0 ;
25346 bool temp2 = False ;
25347 PyObject * obj0 = 0 ;
25348 PyObject * obj1 = 0 ;
25349 char *kwnames[] = {
25350 (char *) "self",(char *) "filename", NULL
25351 };
25352
25353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25356 {
25357 arg2 = wxString_in_helper(obj1);
25358 if (arg2 == NULL) SWIG_fail;
25359 temp2 = True;
25360 }
25361 {
25362 PyThreadState* __tstate = wxPyBeginAllowThreads();
25363 (arg1)->AddFile((wxString const &)*arg2);
25364
25365 wxPyEndAllowThreads(__tstate);
25366 if (PyErr_Occurred()) SWIG_fail;
25367 }
25368 Py_INCREF(Py_None); resultobj = Py_None;
25369 {
25370 if (temp2)
25371 delete arg2;
25372 }
25373 return resultobj;
25374 fail:
25375 {
25376 if (temp2)
25377 delete arg2;
25378 }
25379 return NULL;
25380}
25381
25382
25383static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25384 PyObject *obj;
25385 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25386 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25387 Py_INCREF(obj);
25388 return Py_BuildValue((char *)"");
25389}
25390static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25391 PyObject *resultobj;
25392 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25393 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25394 wxCustomDataObject *result;
25395 PyObject * obj0 = 0 ;
25396 char *kwnames[] = {
25397 (char *) "format", NULL
25398 };
25399
25400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25401 if (obj0) {
25402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25403 SWIG_POINTER_EXCEPTION | 0)) == -1)
25404 SWIG_fail;
25405 if (arg1 == NULL) {
25406 PyErr_SetString(PyExc_TypeError,"null reference");
25407 SWIG_fail;
25408 }
25409 }
25410 {
25411 PyThreadState* __tstate = wxPyBeginAllowThreads();
25412 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25413
25414 wxPyEndAllowThreads(__tstate);
25415 if (PyErr_Occurred()) SWIG_fail;
25416 }
25417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25418 return resultobj;
25419 fail:
25420 return NULL;
25421}
25422
25423
d55e5bfc
RD
25424static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25425 PyObject *resultobj;
25426 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25427 PyObject *arg2 = (PyObject *) 0 ;
25428 bool result;
25429 PyObject * obj0 = 0 ;
25430 PyObject * obj1 = 0 ;
25431 char *kwnames[] = {
25432 (char *) "self",(char *) "data", NULL
25433 };
25434
25435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25438 arg2 = obj1;
25439 {
25440 PyThreadState* __tstate = wxPyBeginAllowThreads();
25441 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25442
25443 wxPyEndAllowThreads(__tstate);
25444 if (PyErr_Occurred()) SWIG_fail;
25445 }
25446 {
25447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25448 }
25449 return resultobj;
25450 fail:
25451 return NULL;
25452}
25453
25454
25455static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25456 PyObject *resultobj;
25457 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25458 size_t result;
25459 PyObject * obj0 = 0 ;
25460 char *kwnames[] = {
25461 (char *) "self", NULL
25462 };
25463
25464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25467 {
25468 PyThreadState* __tstate = wxPyBeginAllowThreads();
25469 result = (size_t)(arg1)->GetSize();
25470
25471 wxPyEndAllowThreads(__tstate);
25472 if (PyErr_Occurred()) SWIG_fail;
25473 }
25474 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25475 return resultobj;
25476 fail:
25477 return NULL;
25478}
25479
25480
25481static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25482 PyObject *resultobj;
25483 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25484 PyObject *result;
25485 PyObject * obj0 = 0 ;
25486 char *kwnames[] = {
25487 (char *) "self", NULL
25488 };
25489
25490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25493 {
25494 PyThreadState* __tstate = wxPyBeginAllowThreads();
25495 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25496
25497 wxPyEndAllowThreads(__tstate);
25498 if (PyErr_Occurred()) SWIG_fail;
25499 }
25500 resultobj = result;
25501 return resultobj;
25502 fail:
25503 return NULL;
25504}
25505
25506
25507static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25508 PyObject *obj;
25509 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25510 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25511 Py_INCREF(obj);
25512 return Py_BuildValue((char *)"");
25513}
25514static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25515 PyObject *resultobj;
25516 wxURLDataObject *result;
25517 char *kwnames[] = {
25518 NULL
25519 };
25520
25521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25522 {
25523 PyThreadState* __tstate = wxPyBeginAllowThreads();
25524 result = (wxURLDataObject *)new wxURLDataObject();
25525
25526 wxPyEndAllowThreads(__tstate);
25527 if (PyErr_Occurred()) SWIG_fail;
25528 }
25529 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25530 return resultobj;
25531 fail:
25532 return NULL;
25533}
25534
25535
25536static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25537 PyObject *resultobj;
25538 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25539 wxString result;
25540 PyObject * obj0 = 0 ;
25541 char *kwnames[] = {
25542 (char *) "self", NULL
25543 };
25544
25545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25548 {
25549 PyThreadState* __tstate = wxPyBeginAllowThreads();
25550 result = (arg1)->GetURL();
25551
25552 wxPyEndAllowThreads(__tstate);
25553 if (PyErr_Occurred()) SWIG_fail;
25554 }
25555 {
25556#if wxUSE_UNICODE
25557 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25558#else
25559 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25560#endif
25561 }
25562 return resultobj;
25563 fail:
25564 return NULL;
25565}
25566
25567
25568static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25569 PyObject *resultobj;
25570 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25571 wxString *arg2 = 0 ;
25572 bool temp2 = False ;
25573 PyObject * obj0 = 0 ;
25574 PyObject * obj1 = 0 ;
25575 char *kwnames[] = {
25576 (char *) "self",(char *) "url", NULL
25577 };
25578
25579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25582 {
25583 arg2 = wxString_in_helper(obj1);
25584 if (arg2 == NULL) SWIG_fail;
25585 temp2 = True;
25586 }
25587 {
25588 PyThreadState* __tstate = wxPyBeginAllowThreads();
25589 (arg1)->SetURL((wxString const &)*arg2);
25590
25591 wxPyEndAllowThreads(__tstate);
25592 if (PyErr_Occurred()) SWIG_fail;
25593 }
25594 Py_INCREF(Py_None); resultobj = Py_None;
25595 {
25596 if (temp2)
25597 delete arg2;
25598 }
25599 return resultobj;
25600 fail:
25601 {
25602 if (temp2)
25603 delete arg2;
25604 }
25605 return NULL;
25606}
25607
25608
25609static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25610 PyObject *obj;
25611 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25612 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25613 Py_INCREF(obj);
25614 return Py_BuildValue((char *)"");
25615}
25616static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25617 PyObject *resultobj;
25618 wxMetafileDataObject *result;
25619 char *kwnames[] = {
25620 NULL
25621 };
25622
25623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25624 {
25625 PyThreadState* __tstate = wxPyBeginAllowThreads();
25626 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25627
25628 wxPyEndAllowThreads(__tstate);
25629 if (PyErr_Occurred()) SWIG_fail;
25630 }
25631 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25632 return resultobj;
25633 fail:
25634 return NULL;
25635}
25636
25637
25638static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25639 PyObject *resultobj;
25640 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25641 wxMetafile *arg2 = 0 ;
25642 PyObject * obj0 = 0 ;
25643 PyObject * obj1 = 0 ;
25644 char *kwnames[] = {
25645 (char *) "self",(char *) "metafile", NULL
25646 };
25647
25648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25651 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25652 SWIG_POINTER_EXCEPTION | 0)) == -1)
25653 SWIG_fail;
25654 if (arg2 == NULL) {
25655 PyErr_SetString(PyExc_TypeError,"null reference");
25656 SWIG_fail;
25657 }
25658 {
25659 PyThreadState* __tstate = wxPyBeginAllowThreads();
25660 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25661
25662 wxPyEndAllowThreads(__tstate);
25663 if (PyErr_Occurred()) SWIG_fail;
25664 }
25665 Py_INCREF(Py_None); resultobj = Py_None;
25666 return resultobj;
25667 fail:
25668 return NULL;
25669}
25670
25671
25672static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25673 PyObject *resultobj;
25674 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25675 wxMetafile result;
25676 PyObject * obj0 = 0 ;
25677 char *kwnames[] = {
25678 (char *) "self", NULL
25679 };
25680
25681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25684 {
25685 PyThreadState* __tstate = wxPyBeginAllowThreads();
25686 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25687
25688 wxPyEndAllowThreads(__tstate);
25689 if (PyErr_Occurred()) SWIG_fail;
25690 }
25691 {
25692 wxMetafile * resultptr;
25693 resultptr = new wxMetafile((wxMetafile &) result);
25694 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25695 }
25696 return resultobj;
25697 fail:
25698 return NULL;
25699}
25700
25701
25702static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25703 PyObject *obj;
25704 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25705 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25706 Py_INCREF(obj);
25707 return Py_BuildValue((char *)"");
25708}
25709static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25710 PyObject *resultobj;
25711 int arg1 ;
25712 bool result;
25713 PyObject * obj0 = 0 ;
25714 char *kwnames[] = {
25715 (char *) "res", NULL
25716 };
25717
25718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25719 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25720 if (PyErr_Occurred()) SWIG_fail;
25721 {
25722 PyThreadState* __tstate = wxPyBeginAllowThreads();
25723 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25724
25725 wxPyEndAllowThreads(__tstate);
25726 if (PyErr_Occurred()) SWIG_fail;
25727 }
25728 {
25729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25730 }
25731 return resultobj;
25732 fail:
25733 return NULL;
25734}
25735
25736
25737static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25738 PyObject *resultobj;
25739 wxWindow *arg1 = (wxWindow *) 0 ;
25740 wxCursor const &arg2_defvalue = wxNullCursor ;
25741 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25742 wxCursor const &arg3_defvalue = wxNullCursor ;
25743 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25744 wxCursor const &arg4_defvalue = wxNullCursor ;
25745 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25746 wxPyDropSource *result;
25747 PyObject * obj0 = 0 ;
25748 PyObject * obj1 = 0 ;
25749 PyObject * obj2 = 0 ;
25750 PyObject * obj3 = 0 ;
25751 char *kwnames[] = {
25752 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25753 };
25754
25755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25758 if (obj1) {
25759 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25760 SWIG_POINTER_EXCEPTION | 0)) == -1)
25761 SWIG_fail;
25762 if (arg2 == NULL) {
25763 PyErr_SetString(PyExc_TypeError,"null reference");
25764 SWIG_fail;
25765 }
25766 }
25767 if (obj2) {
25768 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25769 SWIG_POINTER_EXCEPTION | 0)) == -1)
25770 SWIG_fail;
25771 if (arg3 == NULL) {
25772 PyErr_SetString(PyExc_TypeError,"null reference");
25773 SWIG_fail;
25774 }
25775 }
25776 if (obj3) {
25777 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25778 SWIG_POINTER_EXCEPTION | 0)) == -1)
25779 SWIG_fail;
25780 if (arg4 == NULL) {
25781 PyErr_SetString(PyExc_TypeError,"null reference");
25782 SWIG_fail;
25783 }
25784 }
25785 {
25786 PyThreadState* __tstate = wxPyBeginAllowThreads();
25787 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25788
25789 wxPyEndAllowThreads(__tstate);
25790 if (PyErr_Occurred()) SWIG_fail;
25791 }
25792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25793 return resultobj;
25794 fail:
25795 return NULL;
25796}
25797
25798
25799static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25800 PyObject *resultobj;
25801 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25802 PyObject *arg2 = (PyObject *) 0 ;
25803 PyObject *arg3 = (PyObject *) 0 ;
25804 int arg4 ;
25805 PyObject * obj0 = 0 ;
25806 PyObject * obj1 = 0 ;
25807 PyObject * obj2 = 0 ;
25808 PyObject * obj3 = 0 ;
25809 char *kwnames[] = {
25810 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25811 };
25812
25813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25816 arg2 = obj1;
25817 arg3 = obj2;
25818 arg4 = (int) SWIG_AsInt(obj3);
25819 if (PyErr_Occurred()) SWIG_fail;
25820 {
25821 PyThreadState* __tstate = wxPyBeginAllowThreads();
25822 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25823
25824 wxPyEndAllowThreads(__tstate);
25825 if (PyErr_Occurred()) SWIG_fail;
25826 }
25827 Py_INCREF(Py_None); resultobj = Py_None;
25828 return resultobj;
25829 fail:
25830 return NULL;
25831}
25832
25833
25834static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25835 PyObject *resultobj;
25836 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25837 PyObject * obj0 = 0 ;
25838 char *kwnames[] = {
25839 (char *) "self", NULL
25840 };
25841
25842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25845 {
25846 PyThreadState* __tstate = wxPyBeginAllowThreads();
25847 delete arg1;
25848
25849 wxPyEndAllowThreads(__tstate);
25850 if (PyErr_Occurred()) SWIG_fail;
25851 }
25852 Py_INCREF(Py_None); resultobj = Py_None;
25853 return resultobj;
25854 fail:
25855 return NULL;
25856}
25857
25858
25859static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25860 PyObject *resultobj;
25861 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25862 wxDataObject *arg2 = 0 ;
25863 PyObject * obj0 = 0 ;
25864 PyObject * obj1 = 0 ;
25865 char *kwnames[] = {
25866 (char *) "self",(char *) "data", NULL
25867 };
25868
25869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25872 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25873 SWIG_POINTER_EXCEPTION | 0)) == -1)
25874 SWIG_fail;
25875 if (arg2 == NULL) {
25876 PyErr_SetString(PyExc_TypeError,"null reference");
25877 SWIG_fail;
25878 }
25879 {
25880 PyThreadState* __tstate = wxPyBeginAllowThreads();
25881 (arg1)->SetData(*arg2);
25882
25883 wxPyEndAllowThreads(__tstate);
25884 if (PyErr_Occurred()) SWIG_fail;
25885 }
25886 Py_INCREF(Py_None); resultobj = Py_None;
25887 return resultobj;
25888 fail:
25889 return NULL;
25890}
25891
25892
25893static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25894 PyObject *resultobj;
25895 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25896 wxDataObject *result;
25897 PyObject * obj0 = 0 ;
25898 char *kwnames[] = {
25899 (char *) "self", NULL
25900 };
25901
25902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25905 {
25906 PyThreadState* __tstate = wxPyBeginAllowThreads();
25907 result = (wxDataObject *)(arg1)->GetDataObject();
25908
25909 wxPyEndAllowThreads(__tstate);
25910 if (PyErr_Occurred()) SWIG_fail;
25911 }
25912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25913 return resultobj;
25914 fail:
25915 return NULL;
25916}
25917
25918
25919static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25920 PyObject *resultobj;
25921 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25922 int arg2 ;
25923 wxCursor *arg3 = 0 ;
25924 PyObject * obj0 = 0 ;
25925 PyObject * obj1 = 0 ;
25926 PyObject * obj2 = 0 ;
25927 char *kwnames[] = {
25928 (char *) "self",(char *) "res",(char *) "cursor", NULL
25929 };
25930
25931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25934 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25935 if (PyErr_Occurred()) SWIG_fail;
25936 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25937 SWIG_POINTER_EXCEPTION | 0)) == -1)
25938 SWIG_fail;
25939 if (arg3 == NULL) {
25940 PyErr_SetString(PyExc_TypeError,"null reference");
25941 SWIG_fail;
25942 }
25943 {
25944 PyThreadState* __tstate = wxPyBeginAllowThreads();
25945 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25946
25947 wxPyEndAllowThreads(__tstate);
25948 if (PyErr_Occurred()) SWIG_fail;
25949 }
25950 Py_INCREF(Py_None); resultobj = Py_None;
25951 return resultobj;
25952 fail:
25953 return NULL;
25954}
25955
25956
25957static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25958 PyObject *resultobj;
25959 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25960 int arg2 = (int) wxDrag_CopyOnly ;
25961 int result;
25962 PyObject * obj0 = 0 ;
25963 PyObject * obj1 = 0 ;
25964 char *kwnames[] = {
25965 (char *) "self",(char *) "flags", NULL
25966 };
25967
25968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25971 if (obj1) {
25972 arg2 = (int) SWIG_AsInt(obj1);
25973 if (PyErr_Occurred()) SWIG_fail;
25974 }
25975 {
25976 PyThreadState* __tstate = wxPyBeginAllowThreads();
25977 result = (int)(arg1)->DoDragDrop(arg2);
25978
25979 wxPyEndAllowThreads(__tstate);
25980 if (PyErr_Occurred()) SWIG_fail;
25981 }
25982 resultobj = SWIG_FromInt((int)result);
25983 return resultobj;
25984 fail:
25985 return NULL;
25986}
25987
25988
25989static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25990 PyObject *resultobj;
25991 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25992 int arg2 ;
25993 bool result;
25994 PyObject * obj0 = 0 ;
25995 PyObject * obj1 = 0 ;
25996 char *kwnames[] = {
25997 (char *) "self",(char *) "effect", NULL
25998 };
25999
26000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26003 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26004 if (PyErr_Occurred()) SWIG_fail;
26005 {
26006 PyThreadState* __tstate = wxPyBeginAllowThreads();
26007 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26008
26009 wxPyEndAllowThreads(__tstate);
26010 if (PyErr_Occurred()) SWIG_fail;
26011 }
26012 {
26013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26014 }
26015 return resultobj;
26016 fail:
26017 return NULL;
26018}
26019
26020
26021static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
26022 PyObject *obj;
26023 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26024 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26025 Py_INCREF(obj);
26026 return Py_BuildValue((char *)"");
26027}
26028static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26029 PyObject *resultobj;
26030 wxDataObject *arg1 = (wxDataObject *) NULL ;
26031 wxPyDropTarget *result;
26032 PyObject * obj0 = 0 ;
26033 char *kwnames[] = {
26034 (char *) "dataObject", NULL
26035 };
26036
26037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26038 if (obj0) {
26039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26040 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26041 }
26042 {
26043 PyThreadState* __tstate = wxPyBeginAllowThreads();
26044 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26045
26046 wxPyEndAllowThreads(__tstate);
26047 if (PyErr_Occurred()) SWIG_fail;
26048 }
26049 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26050 return resultobj;
26051 fail:
26052 return NULL;
26053}
26054
26055
26056static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26057 PyObject *resultobj;
26058 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26059 PyObject *arg2 = (PyObject *) 0 ;
26060 PyObject *arg3 = (PyObject *) 0 ;
26061 PyObject * obj0 = 0 ;
26062 PyObject * obj1 = 0 ;
26063 PyObject * obj2 = 0 ;
26064 char *kwnames[] = {
26065 (char *) "self",(char *) "self",(char *) "_class", NULL
26066 };
26067
26068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26071 arg2 = obj1;
26072 arg3 = obj2;
26073 {
26074 PyThreadState* __tstate = wxPyBeginAllowThreads();
26075 (arg1)->_setCallbackInfo(arg2,arg3);
26076
26077 wxPyEndAllowThreads(__tstate);
26078 if (PyErr_Occurred()) SWIG_fail;
26079 }
26080 Py_INCREF(Py_None); resultobj = Py_None;
26081 return resultobj;
26082 fail:
26083 return NULL;
26084}
26085
26086
26087static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26088 PyObject *resultobj;
26089 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26090 PyObject * obj0 = 0 ;
26091 char *kwnames[] = {
26092 (char *) "self", NULL
26093 };
26094
26095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26098 {
26099 PyThreadState* __tstate = wxPyBeginAllowThreads();
26100 delete arg1;
26101
26102 wxPyEndAllowThreads(__tstate);
26103 if (PyErr_Occurred()) SWIG_fail;
26104 }
26105 Py_INCREF(Py_None); resultobj = Py_None;
26106 return resultobj;
26107 fail:
26108 return NULL;
26109}
26110
26111
26112static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26113 PyObject *resultobj;
26114 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26115 wxDataObject *result;
26116 PyObject * obj0 = 0 ;
26117 char *kwnames[] = {
26118 (char *) "self", NULL
26119 };
26120
26121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26124 {
26125 PyThreadState* __tstate = wxPyBeginAllowThreads();
26126 result = (wxDataObject *)(arg1)->GetDataObject();
26127
26128 wxPyEndAllowThreads(__tstate);
26129 if (PyErr_Occurred()) SWIG_fail;
26130 }
26131 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26132 return resultobj;
26133 fail:
26134 return NULL;
26135}
26136
26137
26138static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26139 PyObject *resultobj;
26140 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26141 wxDataObject *arg2 = (wxDataObject *) 0 ;
26142 PyObject * obj0 = 0 ;
26143 PyObject * obj1 = 0 ;
26144 char *kwnames[] = {
26145 (char *) "self",(char *) "dataObject", NULL
26146 };
26147
26148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26152 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26153 {
26154 PyThreadState* __tstate = wxPyBeginAllowThreads();
26155 (arg1)->SetDataObject(arg2);
26156
26157 wxPyEndAllowThreads(__tstate);
26158 if (PyErr_Occurred()) SWIG_fail;
26159 }
26160 Py_INCREF(Py_None); resultobj = Py_None;
26161 return resultobj;
26162 fail:
26163 return NULL;
26164}
26165
26166
26167static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26168 PyObject *resultobj;
26169 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26170 int arg2 ;
26171 int arg3 ;
26172 int arg4 ;
26173 int result;
26174 PyObject * obj0 = 0 ;
26175 PyObject * obj1 = 0 ;
26176 PyObject * obj2 = 0 ;
26177 PyObject * obj3 = 0 ;
26178 char *kwnames[] = {
26179 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26180 };
26181
26182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26185 arg2 = (int) SWIG_AsInt(obj1);
26186 if (PyErr_Occurred()) SWIG_fail;
26187 arg3 = (int) SWIG_AsInt(obj2);
26188 if (PyErr_Occurred()) SWIG_fail;
26189 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26190 if (PyErr_Occurred()) SWIG_fail;
26191 {
26192 PyThreadState* __tstate = wxPyBeginAllowThreads();
26193 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26194
26195 wxPyEndAllowThreads(__tstate);
26196 if (PyErr_Occurred()) SWIG_fail;
26197 }
26198 resultobj = SWIG_FromInt((int)result);
26199 return resultobj;
26200 fail:
26201 return NULL;
26202}
26203
26204
26205static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26206 PyObject *resultobj;
26207 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26208 int arg2 ;
26209 int arg3 ;
26210 int arg4 ;
26211 int result;
26212 PyObject * obj0 = 0 ;
26213 PyObject * obj1 = 0 ;
26214 PyObject * obj2 = 0 ;
26215 PyObject * obj3 = 0 ;
26216 char *kwnames[] = {
26217 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26218 };
26219
26220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26223 arg2 = (int) SWIG_AsInt(obj1);
26224 if (PyErr_Occurred()) SWIG_fail;
26225 arg3 = (int) SWIG_AsInt(obj2);
26226 if (PyErr_Occurred()) SWIG_fail;
26227 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26228 if (PyErr_Occurred()) SWIG_fail;
26229 {
26230 PyThreadState* __tstate = wxPyBeginAllowThreads();
26231 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26232
26233 wxPyEndAllowThreads(__tstate);
26234 if (PyErr_Occurred()) SWIG_fail;
26235 }
26236 resultobj = SWIG_FromInt((int)result);
26237 return resultobj;
26238 fail:
26239 return NULL;
26240}
26241
26242
26243static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26244 PyObject *resultobj;
26245 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26246 PyObject * obj0 = 0 ;
26247 char *kwnames[] = {
26248 (char *) "self", NULL
26249 };
26250
26251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26254 {
26255 PyThreadState* __tstate = wxPyBeginAllowThreads();
26256 (arg1)->base_OnLeave();
26257
26258 wxPyEndAllowThreads(__tstate);
26259 if (PyErr_Occurred()) SWIG_fail;
26260 }
26261 Py_INCREF(Py_None); resultobj = Py_None;
26262 return resultobj;
26263 fail:
26264 return NULL;
26265}
26266
26267
26268static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26269 PyObject *resultobj;
26270 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26271 int arg2 ;
26272 int arg3 ;
26273 bool result;
26274 PyObject * obj0 = 0 ;
26275 PyObject * obj1 = 0 ;
26276 PyObject * obj2 = 0 ;
26277 char *kwnames[] = {
26278 (char *) "self",(char *) "x",(char *) "y", NULL
26279 };
26280
26281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26284 arg2 = (int) SWIG_AsInt(obj1);
26285 if (PyErr_Occurred()) SWIG_fail;
26286 arg3 = (int) SWIG_AsInt(obj2);
26287 if (PyErr_Occurred()) SWIG_fail;
26288 {
26289 PyThreadState* __tstate = wxPyBeginAllowThreads();
26290 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26291
26292 wxPyEndAllowThreads(__tstate);
26293 if (PyErr_Occurred()) SWIG_fail;
26294 }
26295 {
26296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26297 }
26298 return resultobj;
26299 fail:
26300 return NULL;
26301}
26302
26303
26304static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26305 PyObject *resultobj;
26306 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26307 bool result;
26308 PyObject * obj0 = 0 ;
26309 char *kwnames[] = {
26310 (char *) "self", NULL
26311 };
26312
26313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26316 {
26317 PyThreadState* __tstate = wxPyBeginAllowThreads();
26318 result = (bool)(arg1)->GetData();
26319
26320 wxPyEndAllowThreads(__tstate);
26321 if (PyErr_Occurred()) SWIG_fail;
26322 }
26323 {
26324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26325 }
26326 return resultobj;
26327 fail:
26328 return NULL;
26329}
26330
26331
26332static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26333 PyObject *obj;
26334 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26335 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26336 Py_INCREF(obj);
26337 return Py_BuildValue((char *)"");
26338}
26339static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26340 PyObject *resultobj;
26341 wxPyTextDropTarget *result;
26342 char *kwnames[] = {
26343 NULL
26344 };
26345
26346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26347 {
26348 PyThreadState* __tstate = wxPyBeginAllowThreads();
26349 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26350
26351 wxPyEndAllowThreads(__tstate);
26352 if (PyErr_Occurred()) SWIG_fail;
26353 }
26354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26355 return resultobj;
26356 fail:
26357 return NULL;
26358}
26359
26360
26361static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26362 PyObject *resultobj;
26363 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26364 PyObject *arg2 = (PyObject *) 0 ;
26365 PyObject *arg3 = (PyObject *) 0 ;
26366 PyObject * obj0 = 0 ;
26367 PyObject * obj1 = 0 ;
26368 PyObject * obj2 = 0 ;
26369 char *kwnames[] = {
26370 (char *) "self",(char *) "self",(char *) "_class", NULL
26371 };
26372
26373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26376 arg2 = obj1;
26377 arg3 = obj2;
26378 {
26379 PyThreadState* __tstate = wxPyBeginAllowThreads();
26380 (arg1)->_setCallbackInfo(arg2,arg3);
26381
26382 wxPyEndAllowThreads(__tstate);
26383 if (PyErr_Occurred()) SWIG_fail;
26384 }
26385 Py_INCREF(Py_None); resultobj = Py_None;
26386 return resultobj;
26387 fail:
26388 return NULL;
26389}
26390
26391
26392static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26393 PyObject *resultobj;
26394 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26395 int arg2 ;
26396 int arg3 ;
26397 int arg4 ;
26398 int result;
26399 PyObject * obj0 = 0 ;
26400 PyObject * obj1 = 0 ;
26401 PyObject * obj2 = 0 ;
26402 PyObject * obj3 = 0 ;
26403 char *kwnames[] = {
26404 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26405 };
26406
26407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26410 arg2 = (int) SWIG_AsInt(obj1);
26411 if (PyErr_Occurred()) SWIG_fail;
26412 arg3 = (int) SWIG_AsInt(obj2);
26413 if (PyErr_Occurred()) SWIG_fail;
26414 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 {
26417 PyThreadState* __tstate = wxPyBeginAllowThreads();
26418 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26419
26420 wxPyEndAllowThreads(__tstate);
26421 if (PyErr_Occurred()) SWIG_fail;
26422 }
26423 resultobj = SWIG_FromInt((int)result);
26424 return resultobj;
26425 fail:
26426 return NULL;
26427}
26428
26429
26430static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26431 PyObject *resultobj;
26432 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26433 int arg2 ;
26434 int arg3 ;
26435 int arg4 ;
26436 int result;
26437 PyObject * obj0 = 0 ;
26438 PyObject * obj1 = 0 ;
26439 PyObject * obj2 = 0 ;
26440 PyObject * obj3 = 0 ;
26441 char *kwnames[] = {
26442 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26443 };
26444
26445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26448 arg2 = (int) SWIG_AsInt(obj1);
26449 if (PyErr_Occurred()) SWIG_fail;
26450 arg3 = (int) SWIG_AsInt(obj2);
26451 if (PyErr_Occurred()) SWIG_fail;
26452 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26453 if (PyErr_Occurred()) SWIG_fail;
26454 {
26455 PyThreadState* __tstate = wxPyBeginAllowThreads();
26456 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26457
26458 wxPyEndAllowThreads(__tstate);
26459 if (PyErr_Occurred()) SWIG_fail;
26460 }
26461 resultobj = SWIG_FromInt((int)result);
26462 return resultobj;
26463 fail:
26464 return NULL;
26465}
26466
26467
26468static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26469 PyObject *resultobj;
26470 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26471 PyObject * obj0 = 0 ;
26472 char *kwnames[] = {
26473 (char *) "self", NULL
26474 };
26475
26476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26479 {
26480 PyThreadState* __tstate = wxPyBeginAllowThreads();
26481 (arg1)->base_OnLeave();
26482
26483 wxPyEndAllowThreads(__tstate);
26484 if (PyErr_Occurred()) SWIG_fail;
26485 }
26486 Py_INCREF(Py_None); resultobj = Py_None;
26487 return resultobj;
26488 fail:
26489 return NULL;
26490}
26491
26492
26493static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26494 PyObject *resultobj;
26495 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26496 int arg2 ;
26497 int arg3 ;
26498 bool result;
26499 PyObject * obj0 = 0 ;
26500 PyObject * obj1 = 0 ;
26501 PyObject * obj2 = 0 ;
26502 char *kwnames[] = {
26503 (char *) "self",(char *) "x",(char *) "y", NULL
26504 };
26505
26506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26509 arg2 = (int) SWIG_AsInt(obj1);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 arg3 = (int) SWIG_AsInt(obj2);
26512 if (PyErr_Occurred()) SWIG_fail;
26513 {
26514 PyThreadState* __tstate = wxPyBeginAllowThreads();
26515 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26516
26517 wxPyEndAllowThreads(__tstate);
26518 if (PyErr_Occurred()) SWIG_fail;
26519 }
26520 {
26521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26522 }
26523 return resultobj;
26524 fail:
26525 return NULL;
26526}
26527
26528
26529static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26530 PyObject *resultobj;
26531 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26532 int arg2 ;
26533 int arg3 ;
26534 int arg4 ;
26535 int result;
26536 PyObject * obj0 = 0 ;
26537 PyObject * obj1 = 0 ;
26538 PyObject * obj2 = 0 ;
26539 PyObject * obj3 = 0 ;
26540 char *kwnames[] = {
26541 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26542 };
26543
26544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26547 arg2 = (int) SWIG_AsInt(obj1);
26548 if (PyErr_Occurred()) SWIG_fail;
26549 arg3 = (int) SWIG_AsInt(obj2);
26550 if (PyErr_Occurred()) SWIG_fail;
26551 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26552 if (PyErr_Occurred()) SWIG_fail;
26553 {
26554 PyThreadState* __tstate = wxPyBeginAllowThreads();
26555 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26556
26557 wxPyEndAllowThreads(__tstate);
26558 if (PyErr_Occurred()) SWIG_fail;
26559 }
26560 resultobj = SWIG_FromInt((int)result);
26561 return resultobj;
26562 fail:
26563 return NULL;
26564}
26565
26566
26567static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26568 PyObject *obj;
26569 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26570 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26571 Py_INCREF(obj);
26572 return Py_BuildValue((char *)"");
26573}
26574static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26575 PyObject *resultobj;
26576 wxPyFileDropTarget *result;
26577 char *kwnames[] = {
26578 NULL
26579 };
26580
26581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26582 {
26583 PyThreadState* __tstate = wxPyBeginAllowThreads();
26584 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26585
26586 wxPyEndAllowThreads(__tstate);
26587 if (PyErr_Occurred()) SWIG_fail;
26588 }
26589 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26590 return resultobj;
26591 fail:
26592 return NULL;
26593}
26594
26595
26596static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26597 PyObject *resultobj;
26598 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26599 PyObject *arg2 = (PyObject *) 0 ;
26600 PyObject *arg3 = (PyObject *) 0 ;
26601 PyObject * obj0 = 0 ;
26602 PyObject * obj1 = 0 ;
26603 PyObject * obj2 = 0 ;
26604 char *kwnames[] = {
26605 (char *) "self",(char *) "self",(char *) "_class", NULL
26606 };
26607
26608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26611 arg2 = obj1;
26612 arg3 = obj2;
26613 {
26614 PyThreadState* __tstate = wxPyBeginAllowThreads();
26615 (arg1)->_setCallbackInfo(arg2,arg3);
26616
26617 wxPyEndAllowThreads(__tstate);
26618 if (PyErr_Occurred()) SWIG_fail;
26619 }
26620 Py_INCREF(Py_None); resultobj = Py_None;
26621 return resultobj;
26622 fail:
26623 return NULL;
26624}
26625
26626
26627static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26628 PyObject *resultobj;
26629 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26630 int arg2 ;
26631 int arg3 ;
26632 int arg4 ;
26633 int result;
26634 PyObject * obj0 = 0 ;
26635 PyObject * obj1 = 0 ;
26636 PyObject * obj2 = 0 ;
26637 PyObject * obj3 = 0 ;
26638 char *kwnames[] = {
26639 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26640 };
26641
26642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26645 arg2 = (int) SWIG_AsInt(obj1);
26646 if (PyErr_Occurred()) SWIG_fail;
26647 arg3 = (int) SWIG_AsInt(obj2);
26648 if (PyErr_Occurred()) SWIG_fail;
26649 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26650 if (PyErr_Occurred()) SWIG_fail;
26651 {
26652 PyThreadState* __tstate = wxPyBeginAllowThreads();
26653 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26654
26655 wxPyEndAllowThreads(__tstate);
26656 if (PyErr_Occurred()) SWIG_fail;
26657 }
26658 resultobj = SWIG_FromInt((int)result);
26659 return resultobj;
26660 fail:
26661 return NULL;
26662}
26663
26664
26665static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26666 PyObject *resultobj;
26667 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26668 int arg2 ;
26669 int arg3 ;
26670 int arg4 ;
26671 int result;
26672 PyObject * obj0 = 0 ;
26673 PyObject * obj1 = 0 ;
26674 PyObject * obj2 = 0 ;
26675 PyObject * obj3 = 0 ;
26676 char *kwnames[] = {
26677 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26678 };
26679
26680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26683 arg2 = (int) SWIG_AsInt(obj1);
26684 if (PyErr_Occurred()) SWIG_fail;
26685 arg3 = (int) SWIG_AsInt(obj2);
26686 if (PyErr_Occurred()) SWIG_fail;
26687 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26688 if (PyErr_Occurred()) SWIG_fail;
26689 {
26690 PyThreadState* __tstate = wxPyBeginAllowThreads();
26691 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26692
26693 wxPyEndAllowThreads(__tstate);
26694 if (PyErr_Occurred()) SWIG_fail;
26695 }
26696 resultobj = SWIG_FromInt((int)result);
26697 return resultobj;
26698 fail:
26699 return NULL;
26700}
26701
26702
26703static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26704 PyObject *resultobj;
26705 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26706 PyObject * obj0 = 0 ;
26707 char *kwnames[] = {
26708 (char *) "self", NULL
26709 };
26710
26711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26714 {
26715 PyThreadState* __tstate = wxPyBeginAllowThreads();
26716 (arg1)->base_OnLeave();
26717
26718 wxPyEndAllowThreads(__tstate);
26719 if (PyErr_Occurred()) SWIG_fail;
26720 }
26721 Py_INCREF(Py_None); resultobj = Py_None;
26722 return resultobj;
26723 fail:
26724 return NULL;
26725}
26726
26727
26728static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26729 PyObject *resultobj;
26730 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26731 int arg2 ;
26732 int arg3 ;
26733 bool result;
26734 PyObject * obj0 = 0 ;
26735 PyObject * obj1 = 0 ;
26736 PyObject * obj2 = 0 ;
26737 char *kwnames[] = {
26738 (char *) "self",(char *) "x",(char *) "y", NULL
26739 };
26740
26741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26744 arg2 = (int) SWIG_AsInt(obj1);
26745 if (PyErr_Occurred()) SWIG_fail;
26746 arg3 = (int) SWIG_AsInt(obj2);
26747 if (PyErr_Occurred()) SWIG_fail;
26748 {
26749 PyThreadState* __tstate = wxPyBeginAllowThreads();
26750 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26751
26752 wxPyEndAllowThreads(__tstate);
26753 if (PyErr_Occurred()) SWIG_fail;
26754 }
26755 {
26756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26757 }
26758 return resultobj;
26759 fail:
26760 return NULL;
26761}
26762
26763
26764static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26765 PyObject *resultobj;
26766 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26767 int arg2 ;
26768 int arg3 ;
26769 int arg4 ;
26770 int result;
26771 PyObject * obj0 = 0 ;
26772 PyObject * obj1 = 0 ;
26773 PyObject * obj2 = 0 ;
26774 PyObject * obj3 = 0 ;
26775 char *kwnames[] = {
26776 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26777 };
26778
26779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26782 arg2 = (int) SWIG_AsInt(obj1);
26783 if (PyErr_Occurred()) SWIG_fail;
26784 arg3 = (int) SWIG_AsInt(obj2);
26785 if (PyErr_Occurred()) SWIG_fail;
26786 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26787 if (PyErr_Occurred()) SWIG_fail;
26788 {
26789 PyThreadState* __tstate = wxPyBeginAllowThreads();
26790 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26791
26792 wxPyEndAllowThreads(__tstate);
26793 if (PyErr_Occurred()) SWIG_fail;
26794 }
26795 resultobj = SWIG_FromInt((int)result);
26796 return resultobj;
26797 fail:
26798 return NULL;
26799}
26800
26801
26802static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26803 PyObject *obj;
26804 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26805 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26806 Py_INCREF(obj);
26807 return Py_BuildValue((char *)"");
26808}
26809static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26810 PyObject *resultobj;
26811 wxClipboard *result;
26812 char *kwnames[] = {
26813 NULL
26814 };
26815
26816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26817 {
26818 PyThreadState* __tstate = wxPyBeginAllowThreads();
26819 result = (wxClipboard *)new wxClipboard();
26820
26821 wxPyEndAllowThreads(__tstate);
26822 if (PyErr_Occurred()) SWIG_fail;
26823 }
26824 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26825 return resultobj;
26826 fail:
26827 return NULL;
26828}
26829
26830
26831static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26832 PyObject *resultobj;
26833 wxClipboard *arg1 = (wxClipboard *) 0 ;
26834 PyObject * obj0 = 0 ;
26835 char *kwnames[] = {
26836 (char *) "self", NULL
26837 };
26838
26839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26842 {
26843 PyThreadState* __tstate = wxPyBeginAllowThreads();
26844 delete arg1;
26845
26846 wxPyEndAllowThreads(__tstate);
26847 if (PyErr_Occurred()) SWIG_fail;
26848 }
26849 Py_INCREF(Py_None); resultobj = Py_None;
26850 return resultobj;
26851 fail:
26852 return NULL;
26853}
26854
26855
26856static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26857 PyObject *resultobj;
26858 wxClipboard *arg1 = (wxClipboard *) 0 ;
26859 bool result;
26860 PyObject * obj0 = 0 ;
26861 char *kwnames[] = {
26862 (char *) "self", NULL
26863 };
26864
26865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26868 {
26869 PyThreadState* __tstate = wxPyBeginAllowThreads();
26870 result = (bool)(arg1)->Open();
26871
26872 wxPyEndAllowThreads(__tstate);
26873 if (PyErr_Occurred()) SWIG_fail;
26874 }
26875 {
26876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26877 }
26878 return resultobj;
26879 fail:
26880 return NULL;
26881}
26882
26883
26884static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26885 PyObject *resultobj;
26886 wxClipboard *arg1 = (wxClipboard *) 0 ;
26887 PyObject * obj0 = 0 ;
26888 char *kwnames[] = {
26889 (char *) "self", NULL
26890 };
26891
26892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26895 {
26896 PyThreadState* __tstate = wxPyBeginAllowThreads();
26897 (arg1)->Close();
26898
26899 wxPyEndAllowThreads(__tstate);
26900 if (PyErr_Occurred()) SWIG_fail;
26901 }
26902 Py_INCREF(Py_None); resultobj = Py_None;
26903 return resultobj;
26904 fail:
26905 return NULL;
26906}
26907
26908
26909static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26910 PyObject *resultobj;
26911 wxClipboard *arg1 = (wxClipboard *) 0 ;
26912 bool result;
26913 PyObject * obj0 = 0 ;
26914 char *kwnames[] = {
26915 (char *) "self", NULL
26916 };
26917
26918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26921 {
26922 PyThreadState* __tstate = wxPyBeginAllowThreads();
26923 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26924
26925 wxPyEndAllowThreads(__tstate);
26926 if (PyErr_Occurred()) SWIG_fail;
26927 }
26928 {
26929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26930 }
26931 return resultobj;
26932 fail:
26933 return NULL;
26934}
26935
26936
26937static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26938 PyObject *resultobj;
26939 wxClipboard *arg1 = (wxClipboard *) 0 ;
26940 wxDataObject *arg2 = (wxDataObject *) 0 ;
26941 bool result;
26942 PyObject * obj0 = 0 ;
26943 PyObject * obj1 = 0 ;
26944 char *kwnames[] = {
26945 (char *) "self",(char *) "data", NULL
26946 };
26947
26948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26952 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 result = (bool)(arg1)->AddData(arg2);
26956
26957 wxPyEndAllowThreads(__tstate);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 {
26961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26962 }
26963 return resultobj;
26964 fail:
26965 return NULL;
26966}
26967
26968
26969static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26970 PyObject *resultobj;
26971 wxClipboard *arg1 = (wxClipboard *) 0 ;
26972 wxDataObject *arg2 = (wxDataObject *) 0 ;
26973 bool result;
26974 PyObject * obj0 = 0 ;
26975 PyObject * obj1 = 0 ;
26976 char *kwnames[] = {
26977 (char *) "self",(char *) "data", NULL
26978 };
26979
26980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26983 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26984 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26985 {
26986 PyThreadState* __tstate = wxPyBeginAllowThreads();
26987 result = (bool)(arg1)->SetData(arg2);
26988
26989 wxPyEndAllowThreads(__tstate);
26990 if (PyErr_Occurred()) SWIG_fail;
26991 }
26992 {
26993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26994 }
26995 return resultobj;
26996 fail:
26997 return NULL;
26998}
26999
27000
27001static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
27002 PyObject *resultobj;
27003 wxClipboard *arg1 = (wxClipboard *) 0 ;
27004 wxDataFormat *arg2 = 0 ;
27005 bool result;
27006 PyObject * obj0 = 0 ;
27007 PyObject * obj1 = 0 ;
27008 char *kwnames[] = {
27009 (char *) "self",(char *) "format", NULL
27010 };
27011
27012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27016 SWIG_POINTER_EXCEPTION | 0)) == -1)
27017 SWIG_fail;
27018 if (arg2 == NULL) {
27019 PyErr_SetString(PyExc_TypeError,"null reference");
27020 SWIG_fail;
27021 }
27022 {
27023 PyThreadState* __tstate = wxPyBeginAllowThreads();
27024 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27025
27026 wxPyEndAllowThreads(__tstate);
27027 if (PyErr_Occurred()) SWIG_fail;
27028 }
27029 {
27030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27031 }
27032 return resultobj;
27033 fail:
27034 return NULL;
27035}
27036
27037
27038static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27039 PyObject *resultobj;
27040 wxClipboard *arg1 = (wxClipboard *) 0 ;
27041 wxDataObject *arg2 = 0 ;
27042 bool result;
27043 PyObject * obj0 = 0 ;
27044 PyObject * obj1 = 0 ;
27045 char *kwnames[] = {
27046 (char *) "self",(char *) "data", NULL
27047 };
27048
27049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27052 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27053 SWIG_POINTER_EXCEPTION | 0)) == -1)
27054 SWIG_fail;
27055 if (arg2 == NULL) {
27056 PyErr_SetString(PyExc_TypeError,"null reference");
27057 SWIG_fail;
27058 }
27059 {
27060 PyThreadState* __tstate = wxPyBeginAllowThreads();
27061 result = (bool)(arg1)->GetData(*arg2);
27062
27063 wxPyEndAllowThreads(__tstate);
27064 if (PyErr_Occurred()) SWIG_fail;
27065 }
27066 {
27067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27068 }
27069 return resultobj;
27070 fail:
27071 return NULL;
27072}
27073
27074
27075static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27076 PyObject *resultobj;
27077 wxClipboard *arg1 = (wxClipboard *) 0 ;
27078 PyObject * obj0 = 0 ;
27079 char *kwnames[] = {
27080 (char *) "self", NULL
27081 };
27082
27083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27086 {
27087 PyThreadState* __tstate = wxPyBeginAllowThreads();
27088 (arg1)->Clear();
27089
27090 wxPyEndAllowThreads(__tstate);
27091 if (PyErr_Occurred()) SWIG_fail;
27092 }
27093 Py_INCREF(Py_None); resultobj = Py_None;
27094 return resultobj;
27095 fail:
27096 return NULL;
27097}
27098
27099
27100static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27101 PyObject *resultobj;
27102 wxClipboard *arg1 = (wxClipboard *) 0 ;
27103 bool result;
27104 PyObject * obj0 = 0 ;
27105 char *kwnames[] = {
27106 (char *) "self", NULL
27107 };
27108
27109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27112 {
27113 PyThreadState* __tstate = wxPyBeginAllowThreads();
27114 result = (bool)(arg1)->Flush();
27115
27116 wxPyEndAllowThreads(__tstate);
27117 if (PyErr_Occurred()) SWIG_fail;
27118 }
27119 {
27120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27121 }
27122 return resultobj;
27123 fail:
27124 return NULL;
27125}
27126
27127
27128static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27129 PyObject *resultobj;
27130 wxClipboard *arg1 = (wxClipboard *) 0 ;
27131 bool arg2 = (bool) True ;
27132 PyObject * obj0 = 0 ;
27133 PyObject * obj1 = 0 ;
27134 char *kwnames[] = {
27135 (char *) "self",(char *) "primary", NULL
27136 };
27137
27138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27141 if (obj1) {
27142 arg2 = (bool) SWIG_AsBool(obj1);
27143 if (PyErr_Occurred()) SWIG_fail;
27144 }
27145 {
27146 PyThreadState* __tstate = wxPyBeginAllowThreads();
27147 (arg1)->UsePrimarySelection(arg2);
27148
27149 wxPyEndAllowThreads(__tstate);
27150 if (PyErr_Occurred()) SWIG_fail;
27151 }
27152 Py_INCREF(Py_None); resultobj = Py_None;
27153 return resultobj;
27154 fail:
27155 return NULL;
27156}
27157
27158
27159static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27160 PyObject *obj;
27161 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27162 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27163 Py_INCREF(obj);
27164 return Py_BuildValue((char *)"");
27165}
27166static int _wrap_TheClipboard_set(PyObject *_val) {
27167 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
27168 return 1;
27169}
27170
27171
27172static PyObject *_wrap_TheClipboard_get() {
27173 PyObject *pyobj;
27174
27175 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
27176 return pyobj;
27177}
27178
27179
27180static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27181 PyObject *resultobj;
27182 wxClipboard *arg1 = (wxClipboard *) NULL ;
27183 wxClipboardLocker *result;
27184 PyObject * obj0 = 0 ;
27185 char *kwnames[] = {
27186 (char *) "clipboard", NULL
27187 };
27188
27189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27190 if (obj0) {
27191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27193 }
27194 {
27195 PyThreadState* __tstate = wxPyBeginAllowThreads();
27196 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27197
27198 wxPyEndAllowThreads(__tstate);
27199 if (PyErr_Occurred()) SWIG_fail;
27200 }
27201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27202 return resultobj;
27203 fail:
27204 return NULL;
27205}
27206
27207
27208static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27209 PyObject *resultobj;
27210 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27211 PyObject * obj0 = 0 ;
27212 char *kwnames[] = {
27213 (char *) "self", NULL
27214 };
27215
27216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27219 {
27220 PyThreadState* __tstate = wxPyBeginAllowThreads();
27221 delete arg1;
27222
27223 wxPyEndAllowThreads(__tstate);
27224 if (PyErr_Occurred()) SWIG_fail;
27225 }
27226 Py_INCREF(Py_None); resultobj = Py_None;
27227 return resultobj;
27228 fail:
27229 return NULL;
27230}
27231
27232
27233static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27234 PyObject *resultobj;
27235 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27236 bool result;
27237 PyObject * obj0 = 0 ;
27238 char *kwnames[] = {
27239 (char *) "self", NULL
27240 };
27241
27242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27245 {
27246 PyThreadState* __tstate = wxPyBeginAllowThreads();
27247 result = (bool)wxClipboardLocker___nonzero__(arg1);
27248
27249 wxPyEndAllowThreads(__tstate);
27250 if (PyErr_Occurred()) SWIG_fail;
27251 }
27252 {
27253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27254 }
27255 return resultobj;
27256 fail:
27257 return NULL;
27258}
27259
27260
27261static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27262 PyObject *obj;
27263 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27264 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27265 Py_INCREF(obj);
27266 return Py_BuildValue((char *)"");
27267}
27268static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27269 PyObject *resultobj;
27270 int arg1 = (int) 0 ;
27271 int arg2 = (int) 0 ;
27272 int arg3 = (int) 0 ;
27273 int arg4 = (int) 0 ;
27274 wxVideoMode *result;
27275 PyObject * obj0 = 0 ;
27276 PyObject * obj1 = 0 ;
27277 PyObject * obj2 = 0 ;
27278 PyObject * obj3 = 0 ;
27279 char *kwnames[] = {
27280 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27281 };
27282
27283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27284 if (obj0) {
27285 arg1 = (int) SWIG_AsInt(obj0);
27286 if (PyErr_Occurred()) SWIG_fail;
27287 }
27288 if (obj1) {
27289 arg2 = (int) SWIG_AsInt(obj1);
27290 if (PyErr_Occurred()) SWIG_fail;
27291 }
27292 if (obj2) {
27293 arg3 = (int) SWIG_AsInt(obj2);
27294 if (PyErr_Occurred()) SWIG_fail;
27295 }
27296 if (obj3) {
27297 arg4 = (int) SWIG_AsInt(obj3);
27298 if (PyErr_Occurred()) SWIG_fail;
27299 }
27300 {
27301 PyThreadState* __tstate = wxPyBeginAllowThreads();
27302 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27303
27304 wxPyEndAllowThreads(__tstate);
27305 if (PyErr_Occurred()) SWIG_fail;
27306 }
27307 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27308 return resultobj;
27309 fail:
27310 return NULL;
27311}
27312
27313
27314static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27315 PyObject *resultobj;
27316 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27317 PyObject * obj0 = 0 ;
27318 char *kwnames[] = {
27319 (char *) "self", NULL
27320 };
27321
27322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27325 {
27326 PyThreadState* __tstate = wxPyBeginAllowThreads();
27327 delete arg1;
27328
27329 wxPyEndAllowThreads(__tstate);
27330 if (PyErr_Occurred()) SWIG_fail;
27331 }
27332 Py_INCREF(Py_None); resultobj = Py_None;
27333 return resultobj;
27334 fail:
27335 return NULL;
27336}
27337
27338
27339static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27340 PyObject *resultobj;
27341 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27342 wxVideoMode *arg2 = 0 ;
27343 bool result;
27344 PyObject * obj0 = 0 ;
27345 PyObject * obj1 = 0 ;
27346 char *kwnames[] = {
27347 (char *) "self",(char *) "other", NULL
27348 };
27349
27350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27353 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27354 SWIG_POINTER_EXCEPTION | 0)) == -1)
27355 SWIG_fail;
27356 if (arg2 == NULL) {
27357 PyErr_SetString(PyExc_TypeError,"null reference");
27358 SWIG_fail;
27359 }
27360 {
27361 PyThreadState* __tstate = wxPyBeginAllowThreads();
27362 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27363
27364 wxPyEndAllowThreads(__tstate);
27365 if (PyErr_Occurred()) SWIG_fail;
27366 }
27367 {
27368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27369 }
27370 return resultobj;
27371 fail:
27372 return NULL;
27373}
27374
27375
27376static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27377 PyObject *resultobj;
27378 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27379 int result;
27380 PyObject * obj0 = 0 ;
27381 char *kwnames[] = {
27382 (char *) "self", NULL
27383 };
27384
27385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27388 {
27389 PyThreadState* __tstate = wxPyBeginAllowThreads();
27390 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27391
27392 wxPyEndAllowThreads(__tstate);
27393 if (PyErr_Occurred()) SWIG_fail;
27394 }
27395 resultobj = SWIG_FromInt((int)result);
27396 return resultobj;
27397 fail:
27398 return NULL;
27399}
27400
27401
27402static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27403 PyObject *resultobj;
27404 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27405 int result;
27406 PyObject * obj0 = 0 ;
27407 char *kwnames[] = {
27408 (char *) "self", NULL
27409 };
27410
27411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27414 {
27415 PyThreadState* __tstate = wxPyBeginAllowThreads();
27416 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27417
27418 wxPyEndAllowThreads(__tstate);
27419 if (PyErr_Occurred()) SWIG_fail;
27420 }
27421 resultobj = SWIG_FromInt((int)result);
27422 return resultobj;
27423 fail:
27424 return NULL;
27425}
27426
27427
27428static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27429 PyObject *resultobj;
27430 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27431 int result;
27432 PyObject * obj0 = 0 ;
27433 char *kwnames[] = {
27434 (char *) "self", NULL
27435 };
27436
27437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27440 {
27441 PyThreadState* __tstate = wxPyBeginAllowThreads();
27442 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27443
27444 wxPyEndAllowThreads(__tstate);
27445 if (PyErr_Occurred()) SWIG_fail;
27446 }
27447 resultobj = SWIG_FromInt((int)result);
27448 return resultobj;
27449 fail:
27450 return NULL;
27451}
27452
27453
27454static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27455 PyObject *resultobj;
27456 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27457 bool result;
27458 PyObject * obj0 = 0 ;
27459 char *kwnames[] = {
27460 (char *) "self", NULL
27461 };
27462
27463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27466 {
27467 PyThreadState* __tstate = wxPyBeginAllowThreads();
27468 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27469
27470 wxPyEndAllowThreads(__tstate);
27471 if (PyErr_Occurred()) SWIG_fail;
27472 }
27473 {
27474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27475 }
27476 return resultobj;
27477 fail:
27478 return NULL;
27479}
27480
27481
27482static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27483 PyObject *resultobj;
27484 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27485 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27486 bool result;
27487 PyObject * obj0 = 0 ;
27488 PyObject * obj1 = 0 ;
27489 char *kwnames[] = {
27490 (char *) "self",(char *) "other", NULL
27491 };
27492
27493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27496 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27498 {
27499 PyThreadState* __tstate = wxPyBeginAllowThreads();
27500 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27501
27502 wxPyEndAllowThreads(__tstate);
27503 if (PyErr_Occurred()) SWIG_fail;
27504 }
27505 {
27506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27507 }
27508 return resultobj;
27509 fail:
27510 return NULL;
27511}
27512
27513
27514static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27515 PyObject *resultobj;
27516 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27517 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27518 bool result;
27519 PyObject * obj0 = 0 ;
27520 PyObject * obj1 = 0 ;
27521 char *kwnames[] = {
27522 (char *) "self",(char *) "other", NULL
27523 };
27524
27525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27528 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27530 {
27531 PyThreadState* __tstate = wxPyBeginAllowThreads();
27532 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27533
27534 wxPyEndAllowThreads(__tstate);
27535 if (PyErr_Occurred()) SWIG_fail;
27536 }
27537 {
27538 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27539 }
27540 return resultobj;
27541 fail:
27542 return NULL;
27543}
27544
27545
27546static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27547 PyObject *resultobj;
27548 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27549 int arg2 ;
27550 PyObject * obj0 = 0 ;
27551 PyObject * obj1 = 0 ;
27552 char *kwnames[] = {
27553 (char *) "self",(char *) "w", NULL
27554 };
27555
27556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27559 arg2 = (int) SWIG_AsInt(obj1);
27560 if (PyErr_Occurred()) SWIG_fail;
27561 if (arg1) (arg1)->w = arg2;
27562
27563 Py_INCREF(Py_None); resultobj = Py_None;
27564 return resultobj;
27565 fail:
27566 return NULL;
27567}
27568
27569
27570static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27571 PyObject *resultobj;
27572 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27573 int result;
27574 PyObject * obj0 = 0 ;
27575 char *kwnames[] = {
27576 (char *) "self", NULL
27577 };
27578
27579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27582 result = (int) ((arg1)->w);
27583
27584 resultobj = SWIG_FromInt((int)result);
27585 return resultobj;
27586 fail:
27587 return NULL;
27588}
27589
27590
27591static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27592 PyObject *resultobj;
27593 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27594 int arg2 ;
27595 PyObject * obj0 = 0 ;
27596 PyObject * obj1 = 0 ;
27597 char *kwnames[] = {
27598 (char *) "self",(char *) "h", NULL
27599 };
27600
27601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27604 arg2 = (int) SWIG_AsInt(obj1);
27605 if (PyErr_Occurred()) SWIG_fail;
27606 if (arg1) (arg1)->h = arg2;
27607
27608 Py_INCREF(Py_None); resultobj = Py_None;
27609 return resultobj;
27610 fail:
27611 return NULL;
27612}
27613
27614
27615static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27616 PyObject *resultobj;
27617 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27618 int result;
27619 PyObject * obj0 = 0 ;
27620 char *kwnames[] = {
27621 (char *) "self", NULL
27622 };
27623
27624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27627 result = (int) ((arg1)->h);
27628
27629 resultobj = SWIG_FromInt((int)result);
27630 return resultobj;
27631 fail:
27632 return NULL;
27633}
27634
27635
27636static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27637 PyObject *resultobj;
27638 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27639 int arg2 ;
27640 PyObject * obj0 = 0 ;
27641 PyObject * obj1 = 0 ;
27642 char *kwnames[] = {
27643 (char *) "self",(char *) "bpp", NULL
27644 };
27645
27646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27649 arg2 = (int) SWIG_AsInt(obj1);
27650 if (PyErr_Occurred()) SWIG_fail;
27651 if (arg1) (arg1)->bpp = arg2;
27652
27653 Py_INCREF(Py_None); resultobj = Py_None;
27654 return resultobj;
27655 fail:
27656 return NULL;
27657}
27658
27659
27660static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27661 PyObject *resultobj;
27662 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27663 int result;
27664 PyObject * obj0 = 0 ;
27665 char *kwnames[] = {
27666 (char *) "self", NULL
27667 };
27668
27669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27672 result = (int) ((arg1)->bpp);
27673
27674 resultobj = SWIG_FromInt((int)result);
27675 return resultobj;
27676 fail:
27677 return NULL;
27678}
27679
27680
27681static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27682 PyObject *resultobj;
27683 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27684 int arg2 ;
27685 PyObject * obj0 = 0 ;
27686 PyObject * obj1 = 0 ;
27687 char *kwnames[] = {
27688 (char *) "self",(char *) "refresh", NULL
27689 };
27690
27691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27694 arg2 = (int) SWIG_AsInt(obj1);
27695 if (PyErr_Occurred()) SWIG_fail;
27696 if (arg1) (arg1)->refresh = arg2;
27697
27698 Py_INCREF(Py_None); resultobj = Py_None;
27699 return resultobj;
27700 fail:
27701 return NULL;
27702}
27703
27704
27705static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27706 PyObject *resultobj;
27707 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27708 int result;
27709 PyObject * obj0 = 0 ;
27710 char *kwnames[] = {
27711 (char *) "self", NULL
27712 };
27713
27714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27717 result = (int) ((arg1)->refresh);
27718
27719 resultobj = SWIG_FromInt((int)result);
27720 return resultobj;
27721 fail:
27722 return NULL;
27723}
27724
27725
27726static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27727 PyObject *obj;
27728 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27729 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27730 Py_INCREF(obj);
27731 return Py_BuildValue((char *)"");
27732}
27733static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27734 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27735 return 1;
27736}
27737
27738
27739static PyObject *_wrap_DefaultVideoMode_get() {
27740 PyObject *pyobj;
27741
27742 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27743 return pyobj;
27744}
27745
27746
27747static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27748 PyObject *resultobj;
27749 size_t arg1 = (size_t) 0 ;
27750 wxDisplay *result;
27751 PyObject * obj0 = 0 ;
27752 char *kwnames[] = {
27753 (char *) "index", NULL
27754 };
27755
27756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27757 if (obj0) {
27758 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27759 if (PyErr_Occurred()) SWIG_fail;
27760 }
27761 {
27762 PyThreadState* __tstate = wxPyBeginAllowThreads();
27763 result = (wxDisplay *)new wxDisplay(arg1);
27764
27765 wxPyEndAllowThreads(__tstate);
27766 if (PyErr_Occurred()) SWIG_fail;
27767 }
27768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27769 return resultobj;
27770 fail:
27771 return NULL;
27772}
27773
27774
27775static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27776 PyObject *resultobj;
27777 wxDisplay *arg1 = (wxDisplay *) 0 ;
27778 PyObject * obj0 = 0 ;
27779 char *kwnames[] = {
27780 (char *) "self", NULL
27781 };
27782
27783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27786 {
27787 PyThreadState* __tstate = wxPyBeginAllowThreads();
27788 delete arg1;
27789
27790 wxPyEndAllowThreads(__tstate);
27791 if (PyErr_Occurred()) SWIG_fail;
27792 }
27793 Py_INCREF(Py_None); resultobj = Py_None;
27794 return resultobj;
27795 fail:
27796 return NULL;
27797}
27798
27799
27800static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27801 PyObject *resultobj;
27802 size_t result;
27803 char *kwnames[] = {
27804 NULL
27805 };
27806
27807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27808 {
27809 PyThreadState* __tstate = wxPyBeginAllowThreads();
27810 result = (size_t)wxDisplay::GetCount();
27811
27812 wxPyEndAllowThreads(__tstate);
27813 if (PyErr_Occurred()) SWIG_fail;
27814 }
27815 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27816 return resultobj;
27817 fail:
27818 return NULL;
27819}
27820
27821
27822static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27823 PyObject *resultobj;
27824 wxPoint *arg1 = 0 ;
27825 int result;
27826 wxPoint temp1 ;
27827 PyObject * obj0 = 0 ;
27828 char *kwnames[] = {
27829 (char *) "pt", NULL
27830 };
27831
27832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27833 {
27834 arg1 = &temp1;
27835 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27836 }
27837 {
27838 PyThreadState* __tstate = wxPyBeginAllowThreads();
27839 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27840
27841 wxPyEndAllowThreads(__tstate);
27842 if (PyErr_Occurred()) SWIG_fail;
27843 }
27844 resultobj = SWIG_FromInt((int)result);
27845 return resultobj;
27846 fail:
27847 return NULL;
27848}
27849
27850
27851static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27852 PyObject *resultobj;
27853 wxWindow *arg1 = (wxWindow *) 0 ;
27854 int result;
27855 PyObject * obj0 = 0 ;
27856 char *kwnames[] = {
27857 (char *) "window", NULL
27858 };
27859
27860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27863 {
27864 PyThreadState* __tstate = wxPyBeginAllowThreads();
27865 result = (int)Display_GetFromWindow(arg1);
27866
27867 wxPyEndAllowThreads(__tstate);
27868 if (PyErr_Occurred()) SWIG_fail;
27869 }
27870 resultobj = SWIG_FromInt((int)result);
27871 return resultobj;
27872 fail:
27873 return NULL;
27874}
27875
27876
27877static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27878 PyObject *resultobj;
27879 wxDisplay *arg1 = (wxDisplay *) 0 ;
27880 bool result;
27881 PyObject * obj0 = 0 ;
27882 char *kwnames[] = {
27883 (char *) "self", NULL
27884 };
27885
27886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27889 {
27890 PyThreadState* __tstate = wxPyBeginAllowThreads();
27891 result = (bool)((wxDisplay const *)arg1)->IsOk();
27892
27893 wxPyEndAllowThreads(__tstate);
27894 if (PyErr_Occurred()) SWIG_fail;
27895 }
27896 {
27897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27898 }
27899 return resultobj;
27900 fail:
27901 return NULL;
27902}
27903
27904
27905static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
27906 PyObject *resultobj;
27907 wxDisplay *arg1 = (wxDisplay *) 0 ;
27908 wxRect result;
27909 PyObject * obj0 = 0 ;
27910 char *kwnames[] = {
27911 (char *) "self", NULL
27912 };
27913
27914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
27915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27917 {
27918 PyThreadState* __tstate = wxPyBeginAllowThreads();
27919 result = ((wxDisplay const *)arg1)->GetGeometry();
27920
27921 wxPyEndAllowThreads(__tstate);
27922 if (PyErr_Occurred()) SWIG_fail;
27923 }
27924 {
27925 wxRect * resultptr;
27926 resultptr = new wxRect((wxRect &) result);
27927 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
27928 }
27929 return resultobj;
27930 fail:
27931 return NULL;
27932}
27933
27934
27935static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
27936 PyObject *resultobj;
27937 wxDisplay *arg1 = (wxDisplay *) 0 ;
27938 wxString result;
27939 PyObject * obj0 = 0 ;
27940 char *kwnames[] = {
27941 (char *) "self", NULL
27942 };
27943
27944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
27945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27947 {
27948 PyThreadState* __tstate = wxPyBeginAllowThreads();
27949 result = ((wxDisplay const *)arg1)->GetName();
27950
27951 wxPyEndAllowThreads(__tstate);
27952 if (PyErr_Occurred()) SWIG_fail;
27953 }
27954 {
27955#if wxUSE_UNICODE
27956 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27957#else
27958 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27959#endif
27960 }
27961 return resultobj;
27962 fail:
27963 return NULL;
27964}
27965
27966
27967static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
27968 PyObject *resultobj;
27969 wxDisplay *arg1 = (wxDisplay *) 0 ;
27970 bool result;
27971 PyObject * obj0 = 0 ;
27972 char *kwnames[] = {
27973 (char *) "self", NULL
27974 };
27975
27976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
27977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27979 {
27980 PyThreadState* __tstate = wxPyBeginAllowThreads();
27981 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
27982
27983 wxPyEndAllowThreads(__tstate);
27984 if (PyErr_Occurred()) SWIG_fail;
27985 }
27986 {
27987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27988 }
27989 return resultobj;
27990 fail:
27991 return NULL;
27992}
27993
27994
27995static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
27996 PyObject *resultobj;
27997 wxDisplay *arg1 = (wxDisplay *) 0 ;
27998 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27999 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28000 PyObject *result;
28001 PyObject * obj0 = 0 ;
28002 PyObject * obj1 = 0 ;
28003 char *kwnames[] = {
28004 (char *) "self",(char *) "mode", NULL
28005 };
28006
28007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28010 if (obj1) {
28011 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28012 SWIG_POINTER_EXCEPTION | 0)) == -1)
28013 SWIG_fail;
28014 if (arg2 == NULL) {
28015 PyErr_SetString(PyExc_TypeError,"null reference");
28016 SWIG_fail;
28017 }
28018 }
28019 {
28020 PyThreadState* __tstate = wxPyBeginAllowThreads();
28021 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28022
28023 wxPyEndAllowThreads(__tstate);
28024 if (PyErr_Occurred()) SWIG_fail;
28025 }
28026 resultobj = result;
28027 return resultobj;
28028 fail:
28029 return NULL;
28030}
28031
28032
28033static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28034 PyObject *resultobj;
28035 wxDisplay *arg1 = (wxDisplay *) 0 ;
28036 wxVideoMode result;
28037 PyObject * obj0 = 0 ;
28038 char *kwnames[] = {
28039 (char *) "self", NULL
28040 };
28041
28042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28045 {
28046 PyThreadState* __tstate = wxPyBeginAllowThreads();
28047 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28048
28049 wxPyEndAllowThreads(__tstate);
28050 if (PyErr_Occurred()) SWIG_fail;
28051 }
28052 {
28053 wxVideoMode * resultptr;
28054 resultptr = new wxVideoMode((wxVideoMode &) result);
28055 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28056 }
28057 return resultobj;
28058 fail:
28059 return NULL;
28060}
28061
28062
28063static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28064 PyObject *resultobj;
28065 wxDisplay *arg1 = (wxDisplay *) 0 ;
28066 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28067 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28068 bool result;
28069 PyObject * obj0 = 0 ;
28070 PyObject * obj1 = 0 ;
28071 char *kwnames[] = {
28072 (char *) "self",(char *) "mode", NULL
28073 };
28074
28075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28078 if (obj1) {
28079 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28080 SWIG_POINTER_EXCEPTION | 0)) == -1)
28081 SWIG_fail;
28082 if (arg2 == NULL) {
28083 PyErr_SetString(PyExc_TypeError,"null reference");
28084 SWIG_fail;
28085 }
28086 }
28087 {
28088 PyThreadState* __tstate = wxPyBeginAllowThreads();
28089 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28090
28091 wxPyEndAllowThreads(__tstate);
28092 if (PyErr_Occurred()) SWIG_fail;
28093 }
28094 {
28095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28096 }
28097 return resultobj;
28098 fail:
28099 return NULL;
28100}
28101
28102
28103static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28104 PyObject *resultobj;
28105 wxDisplay *arg1 = (wxDisplay *) 0 ;
28106 PyObject * obj0 = 0 ;
28107 char *kwnames[] = {
28108 (char *) "self", NULL
28109 };
28110
28111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28114 {
28115 PyThreadState* __tstate = wxPyBeginAllowThreads();
28116 (arg1)->ResetMode();
28117
28118 wxPyEndAllowThreads(__tstate);
28119 if (PyErr_Occurred()) SWIG_fail;
28120 }
28121 Py_INCREF(Py_None); resultobj = Py_None;
28122 return resultobj;
28123 fail:
28124 return NULL;
28125}
28126
28127
28128static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28129 PyObject *obj;
28130 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28131 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28132 Py_INCREF(obj);
28133 return Py_BuildValue((char *)"");
28134}
28135static PyMethodDef SwigMethods[] = {
28136 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28137 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28138 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28139 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28140 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28141 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28142 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28143 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28144 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28145 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28146 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28147 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28148 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28149 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28150 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28151 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28152 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28153 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28154 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28155 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28156 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28157 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28158 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28159 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28160 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28161 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28162 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28163 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28164 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28165 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28166 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
28167 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28168 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28169 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28170 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28171 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28172 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28173 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28174 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28175 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28176 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28177 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28178 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28179 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28180 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28181 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28182 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28183 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28184 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28185 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28186 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28187 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28188 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28189 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28190 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28191 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28192 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28193 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28194 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28195 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28196 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28197 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28198 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28199 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28200 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28201 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28202 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28203 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28204 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28205 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28206 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28207 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28208 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28209 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28210 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28211 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28212 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28213 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28214 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28215 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28216 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28217 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28218 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28219 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28220 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28221 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28222 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28223 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28224 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28225 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28226 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28227 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28228 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28229 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28230 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28231 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28232 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28233 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28234 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28235 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28236 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28237 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28238 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28239 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28240 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28241 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28242 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28243 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28244 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28245 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28246 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28247 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28248 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28249 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28250 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28251 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28252 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28253 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28254 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28255 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28256 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28257 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28258 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28259 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28260 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28261 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28262 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28263 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28264 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28265 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28266 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28267 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28268 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28269 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28271 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28272 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28273 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28274 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28275 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28276 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28277 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28278 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28279 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28280 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28281 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28283 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28284 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
1a6bba1e 28286 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
28287 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28291 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28292 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28294 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28295 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28296 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28297 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28298 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28299 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28301 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28328 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28330 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28332 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28334 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28341 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28345 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28347 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28351 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28356 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28360 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28365 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28368 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28372 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28376 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28385 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28388 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28393 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28398 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28403 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28411 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28439 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28464 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
0346c964
RD
28467 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 28469 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
0346c964
RD
28470 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 28472 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
0346c964
RD
28473 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
28475 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28477 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28493 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28507 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28509 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28523 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28532 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28575 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28578 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28581 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28585 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28603 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28677 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28678 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28679 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28680 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28681 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28682 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28683 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28684 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28685 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28686 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28688 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28689 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28696 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28697 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28740 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28742 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28776 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28784 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28785 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28788 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28789 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28790 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28791 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28792 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28793 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28794 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28796 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28799 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
68e533f8
RD
28802 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
28805 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28806 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28807 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28808 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28809 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28810 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28811 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28812 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28813 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28814 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28815 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28816 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28817 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28818 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28819 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28820 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28821 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28822 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28824 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28825 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28827 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28828 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28829 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28831 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
28832 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28834 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28835 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28836 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28838 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28840 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28841 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
28842 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
28843 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28844 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28845 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28846 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28847 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28848 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28849 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28850 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28851 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28852 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28853 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28854 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28856 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28857 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28858 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28859 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28860 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28861 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28862 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28863 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28864 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28865 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
28866 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28867 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28868 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28869 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28870 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28871 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28872 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
28873 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
28874 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28875 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28876 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28877 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28878 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28879 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28880 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
28881 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
28882 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
28883 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
28884 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
28885 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
28886 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
28887 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
28888 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
28889 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
28890 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
28891 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
28892 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
28893 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
28894 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28895 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28896 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
28897 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
28898 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
28899 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
28900 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
28901 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
28902 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
28903 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
28904 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
28905 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
28906 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
28907 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
28908 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
28909 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
28910 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
28911 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
28912 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
28913 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
28914 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
28915 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
28916 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
28917 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
28918 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
28919 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
28920 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
28921 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
28922 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
28923 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
28924 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
28925 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
28926 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
28927 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
28928 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
28929 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
28930 { NULL, NULL }
28931};
28932
28933
28934/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28935
28936static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
28937 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
28938}
28939static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
28940 return (void *)((wxEvent *) ((wxMenuEvent *) x));
28941}
28942static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
28943 return (void *)((wxEvent *) ((wxCloseEvent *) x));
28944}
28945static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
28946 return (void *)((wxEvent *) ((wxMouseEvent *) x));
28947}
28948static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
28949 return (void *)((wxEvent *) ((wxEraseEvent *) x));
28950}
28951static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
28952 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
28953}
28954static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
28955 return (void *)((wxEvent *) ((wxTimerEvent *) x));
28956}
28957static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
28958 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
28959}
28960static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
28961 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
28962}
28963static void *_p_wxPyEventTo_p_wxEvent(void *x) {
28964 return (void *)((wxEvent *) ((wxPyEvent *) x));
28965}
28966static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
28967 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
28968}
28969static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
28970 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
28971}
28972static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
28973 return (void *)((wxEvent *) ((wxIdleEvent *) x));
28974}
28975static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
28976 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
28977}
28978static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
28979 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
28980}
28981static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
28982 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
28983}
28984static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
28985 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
28986}
28987static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
28988 return (void *)((wxEvent *) ((wxActivateEvent *) x));
28989}
28990static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
28991 return (void *)((wxEvent *) ((wxSizeEvent *) x));
28992}
28993static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
28994 return (void *)((wxEvent *) ((wxMoveEvent *) x));
28995}
28996static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
28997 return (void *)((wxEvent *) ((wxPaintEvent *) x));
28998}
28999static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29000 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29001}
29002static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29003 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29004}
29005static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29006 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29007}
29008static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29009 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29010}
29011static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29012 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29013}
29014static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29015 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29016}
29017static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29018 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29019}
29020static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29021 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29022}
29023static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29024 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29025}
29026static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29027 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29028}
29029static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29030 return (void *)((wxEvent *) ((wxShowEvent *) x));
29031}
29032static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29033 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29034}
29035static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29036 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29037}
29038static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29039 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29040}
29041static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29042 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29043}
29044static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29045 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29046}
29047static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29048 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29049}
29050static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29051 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29052}
29053static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29054 return (void *)((wxConfigBase *) ((wxConfig *) x));
29055}
29056static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29057 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29058}
29059static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29060 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29061}
29062static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29063 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29064}
29065static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29066 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29067}
29068static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29069 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29070}
29071static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29072 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29073}
29074static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29075 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29076}
29077static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29078 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29079}
29080static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29081 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29082}
29083static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29084 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29085}
29086static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29087 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29088}
29089static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29090 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29091}
29092static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29093 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29094}
29095static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29096 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29097}
29098static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29099 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29100}
29101static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29102 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29103}
29104static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29105 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29106}
29107static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29108 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29109}
29110static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29111 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29112}
29113static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29114 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29115}
29116static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29117 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29118}
29119static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29120 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29121}
29122static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29123 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29124}
29125static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29126 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29127}
29128static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29129 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29130}
29131static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29132 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29133}
29134static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29135 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29136}
29137static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29138 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29139}
29140static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29141 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29142}
29143static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29144 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29145}
29146static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29147 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29148}
29149static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29150 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29151}
29152static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29153 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29154}
29155static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29156 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29157}
29158static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29159 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29160}
29161static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29162 return (void *)((wxObject *) ((wxSizerItem *) x));
29163}
29164static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29165 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29166}
29167static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29168 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29169}
29170static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29171 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29172}
29173static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29174 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29175}
29176static void *_p_wxSizerTo_p_wxObject(void *x) {
29177 return (void *)((wxObject *) ((wxSizer *) x));
29178}
29179static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29180 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29181}
29182static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29183 return (void *)((wxObject *) ((wxFileHistory *) x));
29184}
29185static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29186 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29187}
29188static void *_p_wxEventTo_p_wxObject(void *x) {
29189 return (void *)((wxObject *) ((wxEvent *) x));
29190}
29191static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29192 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29193}
29194static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29195 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29196}
29197static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29198 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29199}
29200static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29201 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29202}
29203static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29204 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29205}
29206static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29207 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29208}
29209static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29210 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29211}
29212static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29213 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29214}
29215static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29216 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29217}
29218static void *_p_wxControlTo_p_wxObject(void *x) {
29219 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29220}
29221static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29222 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29223}
29224static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29225 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29226}
29227static void *_p_wxFSFileTo_p_wxObject(void *x) {
29228 return (void *)((wxObject *) ((wxFSFile *) x));
29229}
29230static void *_p_wxClipboardTo_p_wxObject(void *x) {
29231 return (void *)((wxObject *) ((wxClipboard *) x));
29232}
29233static void *_p_wxPySizerTo_p_wxObject(void *x) {
29234 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29235}
29236static void *_p_wxPyEventTo_p_wxObject(void *x) {
29237 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29238}
29239static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29240 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29241}
29242static void *_p_wxShowEventTo_p_wxObject(void *x) {
29243 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29244}
29245static void *_p_wxToolTipTo_p_wxObject(void *x) {
29246 return (void *)((wxObject *) ((wxToolTip *) x));
29247}
29248static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29249 return (void *)((wxObject *) ((wxMenuItem *) x));
29250}
29251static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29252 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29253}
29254static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29255 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29256}
29257static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29258 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29259}
29260static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29261 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29262}
29263static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29264 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29265}
29266static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29267 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29268}
29269static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29270 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29271}
29272static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29273 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29274}
29275static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29276 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29277}
29278static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29279 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29280}
29281static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29282 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29283}
29284static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29285 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29286}
29287static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29288 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29289}
29290static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29291 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29292}
29293static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29294 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29295}
29296static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29297 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29298}
29299static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29300 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29301}
29302static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29303 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29304}
29305static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29306 return (void *)((wxObject *) ((wxImageHandler *) x));
29307}
29308static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29309 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29310}
29311static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29312 return (void *)((wxObject *) ((wxEvtHandler *) x));
29313}
29314static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29315 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29316}
29317static void *_p_wxImageTo_p_wxObject(void *x) {
29318 return (void *)((wxObject *) ((wxImage *) x));
29319}
29320static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29321 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29322}
29323static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29324 return (void *)((wxObject *) ((wxSystemOptions *) x));
29325}
29326static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29327 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29328}
29329static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29330 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29331}
29332static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29333 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29334}
29335static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29336 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29337}
29338static void *_p_wxWindowTo_p_wxObject(void *x) {
29339 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29340}
29341static void *_p_wxMenuTo_p_wxObject(void *x) {
29342 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29343}
29344static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29345 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29346}
29347static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29348 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29349}
29350static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29351 return (void *)((wxObject *) ((wxFileSystem *) x));
29352}
29353static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29354 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29355}
29356static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29357 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29358}
29359static void *_p_wxPyAppTo_p_wxObject(void *x) {
29360 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29361}
29362static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29363 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29364}
29365static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29366 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29367}
29368static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29369 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29370}
29371static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29372 return (void *)((wxObject *) ((wxBusyInfo *) x));
29373}
29374static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29376}
29377static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29378 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29379}
29380static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29381 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29382}
29383static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29384 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29385}
29386static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29387 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29388}
29389static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29390 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29391}
29392static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29393 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29394}
29395static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29396 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29397}
29398static void *_p_wxValidatorTo_p_wxObject(void *x) {
29399 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29400}
29401static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29402 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29403}
29404static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29405 return (void *)((wxLog *) ((wxLogStderr *) x));
29406}
29407static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29408 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29409}
29410static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29411 return (void *)((wxLog *) ((wxLogWindow *) x));
29412}
29413static void *_p_wxLogChainTo_p_wxLog(void *x) {
29414 return (void *)((wxLog *) ((wxLogChain *) x));
29415}
29416static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29417 return (void *)((wxLog *) ((wxLogGui *) x));
29418}
29419static void *_p_wxPyLogTo_p_wxLog(void *x) {
29420 return (void *)((wxLog *) ((wxPyLog *) x));
29421}
29422static void *_p_wxControlTo_p_wxWindow(void *x) {
29423 return (void *)((wxWindow *) ((wxControl *) x));
29424}
29425static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29426 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29427}
29428static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29429 return (void *)((wxWindow *) ((wxMenuBar *) x));
29430}
29431static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29432 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29433}
29434static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29435 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29436}
29437static swig_type_info _swigt__p_wxLogChain[] = {{"_p_wxLogChain", 0, "wxLogChain *", 0, 0, 0, 0},{"_p_wxLogChain", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29438static swig_type_info _swigt__p_wxMutexGuiLocker[] = {{"_p_wxMutexGuiLocker", 0, "wxMutexGuiLocker *", 0, 0, 0, 0},{"_p_wxMutexGuiLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29439static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29440static swig_type_info _swigt__p_wxFileHistory[] = {{"_p_wxFileHistory", 0, "wxFileHistory *", 0, 0, 0, 0},{"_p_wxFileHistory", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29441static swig_type_info _swigt__p_wxLog[] = {{"_p_wxLog", 0, "wxLog *", 0, 0, 0, 0},{"_p_wxLogStderr", _p_wxLogStderrTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogTextCtrl", _p_wxLogTextCtrlTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogWindow", _p_wxLogWindowTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogChain", _p_wxLogChainTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLogGui", _p_wxLogGuiTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxPyLog", _p_wxPyLogTo_p_wxLog, 0, 0, 0, 0, 0},{"_p_wxLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29442static swig_type_info _swigt__p_wxDateTime__TimeZone[] = {{"_p_wxDateTime__TimeZone", 0, "wxDateTime::TimeZone *", 0, 0, 0, 0},{"_p_wxDateTime__TimeZone", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29443static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29444static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29445static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxFileConfig", _p_wxFileConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{"_p_wxConfig", _p_wxConfigTo_p_wxConfigBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29446static swig_type_info _swigt__p_wxDisplay[] = {{"_p_wxDisplay", 0, "wxDisplay *", 0, 0, 0, 0},{"_p_wxDisplay", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29447static swig_type_info _swigt__p_wxFileType[] = {{"_p_wxFileType", 0, "wxFileType *", 0, 0, 0, 0},{"_p_wxFileType", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29448static swig_type_info _swigt__p_wxLogGui[] = {{"_p_wxLogGui", 0, "wxLogGui *", 0, 0, 0, 0},{"_p_wxLogGui", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29449static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29450static swig_type_info _swigt__p_wxDataFormat[] = {{"_p_wxDataFormat", 0, "wxDataFormat *", 0, 0, 0, 0},{"_p_wxDataFormat", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29451static swig_type_info _swigt__p_wxTimerEvent[] = {{"_p_wxTimerEvent", 0, "wxTimerEvent *", 0, 0, 0, 0},{"_p_wxTimerEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29452static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29453static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29454static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29455static swig_type_info _swigt__p_wxClipboard[] = {{"_p_wxClipboard", 0, "wxClipboard *", 0, 0, 0, 0},{"_p_wxClipboard", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29456static swig_type_info _swigt__p_wxStopWatch[] = {{"_p_wxStopWatch", 0, "wxStopWatch *", 0, 0, 0, 0},{"_p_wxStopWatch", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29457static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29458static swig_type_info _swigt__p_wxClipboardLocker[] = {{"_p_wxClipboardLocker", 0, "wxClipboardLocker *", 0, 0, 0, 0},{"_p_wxClipboardLocker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29459static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29460static swig_type_info _swigt__p_wxLogStderr[] = {{"_p_wxLogStderr", 0, "wxLogStderr *", 0, 0, 0, 0},{"_p_wxLogStderr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29461static swig_type_info _swigt__p_wxLogTextCtrl[] = {{"_p_wxLogTextCtrl", 0, "wxLogTextCtrl *", 0, 0, 0, 0},{"_p_wxLogTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29462static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29463static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
0346c964 29464static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
29465static swig_type_info _swigt__p_wxPyTextDataObject[] = {{"_p_wxPyTextDataObject", 0, "wxPyTextDataObject *", 0, 0, 0, 0},{"_p_wxPyTextDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29466static swig_type_info _swigt__p_wxBitmapDataObject[] = {{"_p_wxBitmapDataObject", 0, "wxBitmapDataObject *", 0, 0, 0, 0},{"_p_wxBitmapDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29467static swig_type_info _swigt__p_wxTextDataObject[] = {{"_p_wxTextDataObject", 0, "wxTextDataObject *", 0, 0, 0, 0},{"_p_wxTextDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxTextDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29468static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
29469static swig_type_info _swigt__p_wxFileDataObject[] = {{"_p_wxFileDataObject", 0, "wxFileDataObject *", 0, 0, 0, 0},{"_p_wxFileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29470static swig_type_info _swigt__p_wxCustomDataObject[] = {{"_p_wxCustomDataObject", 0, "wxCustomDataObject *", 0, 0, 0, 0},{"_p_wxCustomDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29471static swig_type_info _swigt__p_wxURLDataObject[] = {{"_p_wxURLDataObject", 0, "wxURLDataObject *", 0, 0, 0, 0},{"_p_wxURLDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29472static swig_type_info _swigt__p_wxMetafileDataObject[] = {{"_p_wxMetafileDataObject", 0, "wxMetafileDataObject *", 0, 0, 0, 0},{"_p_wxMetafileDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29473static swig_type_info _swigt__p_wxSound[] = {{"_p_wxSound", 0, "wxSound *", 0, 0, 0, 0},{"_p_wxSound", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29474static swig_type_info _swigt__p_wxTimerRunner[] = {{"_p_wxTimerRunner", 0, "wxTimerRunner *", 0, 0, 0, 0},{"_p_wxTimerRunner", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29475static swig_type_info _swigt__p_wxLogWindow[] = {{"_p_wxLogWindow", 0, "wxLogWindow *", 0, 0, 0, 0},{"_p_wxLogWindow", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29476static swig_type_info _swigt__p_wxTimeSpan[] = {{"_p_wxTimeSpan", 0, "wxTimeSpan *", 0, 0, 0, 0},{"_p_wxTimeSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29477static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29478static swig_type_info _swigt__p_wxWindowDisabler[] = {{"_p_wxWindowDisabler", 0, "wxWindowDisabler *", 0, 0, 0, 0},{"_p_wxWindowDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29479static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29480static swig_type_info _swigt__p_wxDataObjectComposite[] = {{"_p_wxDataObjectComposite", 0, "wxDataObjectComposite *", 0, 0, 0, 0},{"_p_wxDataObjectComposite", 0, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObjectComposite, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29481static swig_type_info _swigt__p_wxFileConfig[] = {{"_p_wxFileConfig", 0, "wxFileConfig *", 0, 0, 0, 0},{"_p_wxFileConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29482static swig_type_info _swigt__p_wxSystemSettings[] = {{"_p_wxSystemSettings", 0, "wxSystemSettings *", 0, 0, 0, 0},{"_p_wxSystemSettings", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29483static swig_type_info _swigt__p_wxVideoMode[] = {{"_p_wxVideoMode", 0, "wxVideoMode *", 0, 0, 0, 0},{"_p_wxVideoMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29484static swig_type_info _swigt__p_wxPyDataObjectSimple[] = {{"_p_wxPyDataObjectSimple", 0, "wxPyDataObjectSimple *", 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29485static swig_type_info _swigt__p_wxDataObjectSimple[] = {{"_p_wxDataObjectSimple", 0, "wxDataObjectSimple *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", 0, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObjectSimple, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29486static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29487static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29488static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29489static swig_type_info _swigt__p_wxSingleInstanceChecker[] = {{"_p_wxSingleInstanceChecker", 0, "wxSingleInstanceChecker *", 0, 0, 0, 0},{"_p_wxSingleInstanceChecker", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29490static swig_type_info _swigt__p_wxFileTypeInfo[] = {{"_p_wxFileTypeInfo", 0, "wxFileTypeInfo *", 0, 0, 0, 0},{"_p_wxFileTypeInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29491static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29492static swig_type_info _swigt__p_wxTimer[] = {{"_p_wxTimer", 0, "wxTimer *", 0, 0, 0, 0},{"_p_wxTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29493static swig_type_info _swigt__p_wxMimeTypesManager[] = {{"_p_wxMimeTypesManager", 0, "wxMimeTypesManager *", 0, 0, 0, 0},{"_p_wxMimeTypesManager", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29494static swig_type_info _swigt__p_wxPyArtProvider[] = {{"_p_wxPyArtProvider", 0, "wxPyArtProvider *", 0, 0, 0, 0},{"_p_wxPyArtProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29495static swig_type_info _swigt__p_wxPyTipProvider[] = {{"_p_wxPyTipProvider", 0, "wxPyTipProvider *", 0, 0, 0, 0},{"_p_wxPyTipProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29496static swig_type_info _swigt__p_wxTipProvider[] = {{"_p_wxTipProvider", 0, "wxTipProvider *", 0, 0, 0, 0},{"_p_wxTipProvider", 0, 0, 0, 0, 0, 0},{"_p_wxPyTipProvider", _p_wxPyTipProviderTo_p_wxTipProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29497static swig_type_info _swigt__p_wxJoystick[] = {{"_p_wxJoystick", 0, "wxJoystick *", 0, 0, 0, 0},{"_p_wxJoystick", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29498static swig_type_info _swigt__p_wxSystemOptions[] = {{"_p_wxSystemOptions", 0, "wxSystemOptions *", 0, 0, 0, 0},{"_p_wxSystemOptions", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29499static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29500static swig_type_info _swigt__p_wxJoystickEvent[] = {{"_p_wxJoystickEvent", 0, "wxJoystickEvent *", 0, 0, 0, 0},{"_p_wxJoystickEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29501static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29502static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileHistory", _p_wxFileHistoryTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTimerEvent", _p_wxTimerEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClipboard", _p_wxClipboardTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolTip", _p_wxToolTipTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSystemOptions", _p_wxSystemOptionsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJoystickEvent", _p_wxJoystickEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyProcess", _p_wxPyProcessTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBusyInfo", _p_wxBusyInfoTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxProcessEvent", _p_wxProcessEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTimer", _p_wxPyTimerTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29503static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29504static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29505static swig_type_info _swigt__p_wxPyDropSource[] = {{"_p_wxPyDropSource", 0, "wxPyDropSource *", 0, 0, 0, 0},{"_p_wxPyDropSource", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29506static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29507static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29508static swig_type_info _swigt__p_wxPyProcess[] = {{"_p_wxPyProcess", 0, "wxPyProcess *", 0, 0, 0, 0},{"_p_wxPyProcess", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29509static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29510static swig_type_info _swigt__p_wxConfig[] = {{"_p_wxConfig", 0, "wxConfig *", 0, 0, 0, 0},{"_p_wxConfig", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29511static swig_type_info _swigt__p_wxChar[] = {{"_p_wxChar", 0, "wxChar *", 0, 0, 0, 0},{"_p_wxChar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29512static swig_type_info _swigt__p_wxBusyInfo[] = {{"_p_wxBusyInfo", 0, "wxBusyInfo *", 0, 0, 0, 0},{"_p_wxBusyInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29513static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{"_p_wxPyTextDropTarget", _p_wxPyTextDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{"_p_wxPyFileDropTarget", _p_wxPyFileDropTargetTo_p_wxPyDropTarget, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29514static swig_type_info _swigt__p_wxPyTextDropTarget[] = {{"_p_wxPyTextDropTarget", 0, "wxPyTextDropTarget *", 0, 0, 0, 0},{"_p_wxPyTextDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29515static swig_type_info _swigt__p_wxPyFileDropTarget[] = {{"_p_wxPyFileDropTarget", 0, "wxPyFileDropTarget *", 0, 0, 0, 0},{"_p_wxPyFileDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29516static swig_type_info _swigt__p_wxProcessEvent[] = {{"_p_wxProcessEvent", 0, "wxProcessEvent *", 0, 0, 0, 0},{"_p_wxProcessEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29517static swig_type_info _swigt__p_wxPyLog[] = {{"_p_wxPyLog", 0, "wxPyLog *", 0, 0, 0, 0},{"_p_wxPyLog", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29518static swig_type_info _swigt__p_wxLogNull[] = {{"_p_wxLogNull", 0, "wxLogNull *", 0, 0, 0, 0},{"_p_wxLogNull", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29519static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
29520static swig_type_info _swigt__p_wxConfigPathChanger[] = {{"_p_wxConfigPathChanger", 0, "wxConfigPathChanger *", 0, 0, 0, 0},{"_p_wxConfigPathChanger", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29521static swig_type_info _swigt__p_wxPyTimer[] = {{"_p_wxPyTimer", 0, "wxPyTimer *", 0, 0, 0, 0},{"_p_wxPyTimer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29522static swig_type_info _swigt__p_wxDateSpan[] = {{"_p_wxDateSpan", 0, "wxDateSpan *", 0, 0, 0, 0},{"_p_wxDateSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29523
29524static swig_type_info *swig_types_initial[] = {
29525_swigt__p_wxLogChain,
29526_swigt__p_wxMutexGuiLocker,
29527_swigt__p_wxMetafile,
29528_swigt__p_wxFileHistory,
29529_swigt__p_wxLog,
29530_swigt__p_wxDateTime__TimeZone,
29531_swigt__p_wxMenu,
29532_swigt__p_wxEvent,
29533_swigt__p_wxConfigBase,
29534_swigt__p_wxDisplay,
29535_swigt__p_wxFileType,
29536_swigt__p_wxLogGui,
29537_swigt__p_wxFont,
29538_swigt__p_wxDataFormat,
29539_swigt__p_wxTimerEvent,
29540_swigt__p_wxCaret,
29541_swigt__p_int,
29542_swigt__p_wxSize,
29543_swigt__p_wxClipboard,
29544_swigt__p_wxStopWatch,
29545_swigt__p_wxDC,
29546_swigt__p_wxClipboardLocker,
29547_swigt__p_wxIcon,
29548_swigt__p_wxLogStderr,
29549_swigt__p_wxLogTextCtrl,
29550_swigt__p_wxTextCtrl,
29551_swigt__p_wxBusyCursor,
0346c964 29552_swigt__p_wxPyBitmapDataObject,
d55e5bfc
RD
29553_swigt__p_wxPyTextDataObject,
29554_swigt__p_wxBitmapDataObject,
29555_swigt__p_wxTextDataObject,
29556_swigt__p_wxDataObject,
d55e5bfc
RD
29557_swigt__p_wxFileDataObject,
29558_swigt__p_wxCustomDataObject,
29559_swigt__p_wxURLDataObject,
29560_swigt__p_wxMetafileDataObject,
29561_swigt__p_wxSound,
29562_swigt__p_wxTimerRunner,
29563_swigt__p_wxLogWindow,
29564_swigt__p_wxTimeSpan,
29565_swigt__p_wxArrayString,
29566_swigt__p_wxWindowDisabler,
29567_swigt__p_wxToolTip,
29568_swigt__p_wxDataObjectComposite,
29569_swigt__p_wxFileConfig,
29570_swigt__p_wxSystemSettings,
29571_swigt__p_wxVideoMode,
29572_swigt__p_wxPyDataObjectSimple,
29573_swigt__p_wxDataObjectSimple,
29574_swigt__p_wxEvtHandler,
29575_swigt__p_wxRect,
29576_swigt__p_char,
29577_swigt__p_wxSingleInstanceChecker,
29578_swigt__p_wxFileTypeInfo,
29579_swigt__p_wxFrame,
29580_swigt__p_wxTimer,
29581_swigt__p_wxMimeTypesManager,
29582_swigt__p_wxPyArtProvider,
29583_swigt__p_wxPyTipProvider,
29584_swigt__p_wxTipProvider,
29585_swigt__p_wxJoystick,
29586_swigt__p_wxSystemOptions,
29587_swigt__p_wxPoint,
29588_swigt__p_wxJoystickEvent,
29589_swigt__p_wxCursor,
29590_swigt__p_wxObject,
29591_swigt__p_wxOutputStream,
29592_swigt__p_wxDateTime,
29593_swigt__p_wxPyDropSource,
29594_swigt__p_wxWindow,
29595_swigt__p_wxString,
29596_swigt__p_wxPyProcess,
29597_swigt__p_wxBitmap,
29598_swigt__p_wxConfig,
29599_swigt__p_wxChar,
29600_swigt__p_wxBusyInfo,
29601_swigt__p_wxPyDropTarget,
29602_swigt__p_wxPyTextDropTarget,
29603_swigt__p_wxPyFileDropTarget,
29604_swigt__p_wxProcessEvent,
29605_swigt__p_wxPyLog,
29606_swigt__p_wxLogNull,
29607_swigt__p_wxColour,
d55e5bfc
RD
29608_swigt__p_wxConfigPathChanger,
29609_swigt__p_wxPyTimer,
29610_swigt__p_wxDateSpan,
296110
29612};
29613
29614
29615/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29616
29617static swig_const_info swig_const_table[] = {
29618{ SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29619{ SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29620{ SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29621{ SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29622{ SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29623{0}};
29624
29625#ifdef __cplusplus
29626}
29627#endif
29628
29629#ifdef __cplusplus
29630extern "C"
29631#endif
29632SWIGEXPORT(void) SWIG_init(void) {
29633 static PyObject *SWIG_globals = 0;
29634 static int typeinit = 0;
29635 PyObject *m, *d;
29636 int i;
29637 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29638 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29639 d = PyModule_GetDict(m);
29640
29641 if (!typeinit) {
29642 for (i = 0; swig_types_initial[i]; i++) {
29643 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29644 }
29645 typeinit = 1;
29646 }
29647 SWIG_InstallConstants(d,swig_const_table);
29648
29649 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29650 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29651 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29652 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29653 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29654 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29655 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29656 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29657 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29658 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29659 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29660 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29661 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29662 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29663 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29664 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29665 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29666 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29667 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29668 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29669 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29670 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29671 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29672 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29673 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29674 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29675 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29676 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29677 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29678 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29679 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29680 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29681 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29682 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29683 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29684 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29685 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29686 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29687 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29688 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29689 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29690 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29691 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29692 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29693 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29694 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29695 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29696 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29697 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29698 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29699 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29700 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29701 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29702 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29703 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29704 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29705 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29706 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29707 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29708 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29709 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29710 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29711 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29712 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29713 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29714 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29715 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29716 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29717 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29718 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29719 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29720 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29721 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29722 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29723 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29724 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29725 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29726 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29727 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29728 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29729 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29730 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29731 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29732 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29733 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29734 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29735 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29736 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29737 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29738 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29739 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29740 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29741 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29742 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29743 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29744 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29745 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29746 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29747 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29748 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
1a6bba1e
RD
29749
29750 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
29751
d55e5bfc
RD
29752 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29753 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29754 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29755 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29756 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29757 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29758 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29759 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29760 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29761 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29762 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29763 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29764 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29765 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29766 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29767 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29768 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29769 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29770 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29771 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29772 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29773 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29774 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29775 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29776 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29777 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29778 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29779 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29780 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29781 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29782 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29783 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29784 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29785 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29786 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29787 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29788 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29789 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29790 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29791 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29792 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29793 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29794 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29795 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29796 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29797 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29798 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29799 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29800 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29801 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29802
29803 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29804
29805 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29806 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29807 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29808 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29809 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29810 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29811 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29812 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29813 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29814 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29815 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29816 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29817 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29818 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29819 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29820 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29821 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29822 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29823 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29824 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29825 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29826 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29827 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29828 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29829 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29830 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29831 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29832 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29833 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29834 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29835 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29836 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29837 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29838 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29839 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29840 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29841 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29842 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29843 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29844 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29845 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29846 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29847 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29848 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29849 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29850 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29851 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29852 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29853 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29854 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29855 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29856 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29857 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29858 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29859 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29860 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29861 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29862 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29863
29864 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29865
29866 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29867 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29868 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29869 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29870 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29871 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29872 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29873 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29874 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29875 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29876 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29877 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29878 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29879 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29880 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29881 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29882 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29883 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29884 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29885 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29886 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29887 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29888 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
29889 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
29890 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
29891 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
29892 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
29893 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
29894 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
29895 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
29896 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
29897 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
29898 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
29899 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
29900 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
29901 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
29902 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
29903 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
29904 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
29905 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
29906 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
29907 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
29908 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
29909 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
29910 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
29911 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
29912 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
29913 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
29914 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
29915 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
29916 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
29917 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
29918 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
29919 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
29920 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
29921 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
29922 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
29923 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
29924 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
29925 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
29926 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
29927 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
29928 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
29929 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
29930 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
29931 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
29932 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
29933 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
29934 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
29935 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
29936 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
29937 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
29938 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
29939 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
29940 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
29941 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
29942 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
29943 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
29944 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
29945 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
29946 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
29947 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
29948 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
29949 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
29950 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
29951 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
29952 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
29953 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
29954 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
29955 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
29956 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
29957 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
29958 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
29959 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
29960 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
29961 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
29962 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
29963 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
29964 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
29965 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
29966 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
29967 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
29968 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
29969 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
29970 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
29971 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
29972 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
29973 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
29974 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
29975 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
29976 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
29977 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
29978 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
29979 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
29980 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
29981 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
29982 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
29983 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
29984 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
29985 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
29986 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
29987 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
29988 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
29989 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
29990 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
29991 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
29992 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
29993 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
29994 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
29995 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
29996 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
29997 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
29998 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
29999 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
30000 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
30001 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
30002 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
30003 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
30004 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
30005 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
30006 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
30007 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
30008 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
30009 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
30010 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
30011 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
30012 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
30013 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
30014 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
30015 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
30016 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
30017 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
30018 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
30019 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
30020 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
30021 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
30022 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
30023 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
30024 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
30025 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
30026 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
30027 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
30028 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
30029 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
30030 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
30031 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
30032 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30033 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
30034 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
30035 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
30036 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
30037 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
30038 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
30039 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
30040 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
30041 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
30042 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
30043 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
30044 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
30045 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
30046 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
30047 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
30048 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
30049 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
30050 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
30051 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
30052 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
30053 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30054 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
30055 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
30056 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
30057 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
30058 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
30059 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
30060 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
30061 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
30062 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
30063 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
30064 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30065 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30066
30067 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30068 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30069 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30070 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30071
30072 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
30073 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30074}
30075