]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/mac/_misc_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _misc_wrap.cpp
... / ...
CommitLineData
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]
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]
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]
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];
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 static const wxString wxPyEmptyString(wxEmptyString);
355
356
357
358#include <limits.h>
359
360
361SWIGSTATICINLINE(long)
362SWIG_CheckLongInRange(long value, const char* type,
363 long min_value, long max_value)
364{
365 if (!PyErr_Occurred()) {
366 if (value < min_value) {
367 PyObject *err =
368 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
369 value, type, min_value);
370
371 PyErr_SetObject(PyExc_OverflowError, err);
372 Py_DECREF(err);
373 } else if (value > max_value) {
374 PyObject *err =
375 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
376 value, type, max_value);
377 PyErr_SetObject(PyExc_OverflowError, err);
378 Py_DECREF(err);
379 }
380 }
381 return value;
382}
383
384
385SWIGSTATICINLINE(long)
386SWIG_AsLong(PyObject * obj)
387{
388 if (PyNumber_Check(obj))
389 return PyInt_AsLong(obj);
390 else {
391 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
392 obj->ob_type->tp_name);
393 PyErr_SetObject(PyExc_TypeError, errmsg);
394 Py_DECREF(errmsg);
395 return 0;
396 }
397}
398
399
400#if INT_MAX != LONG_MAX
401SWIGSTATICINLINE(int)
402SWIG_AsInt(PyObject *obj)
403{
404 return swig_numeric_cast(int,
405 SWIG_CheckLongInRange(SWIG_AsLong(obj),
406 "int", INT_MIN, INT_MAX));
407}
408#else
409#define SWIG_AsInt SWIG_AsLong
410#endif
411
412
413SWIGSTATICINLINE(int)
414SWIG_CheckInt(PyObject* obj)
415{
416 SWIG_AsInt(obj);
417 if (PyErr_Occurred()) {
418 PyErr_Clear();
419 return 0;
420 } else {
421 return 1;
422 }
423}
424
425
426#include <wx/stockitem.h>
427
428 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
429 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
430 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
431
432SWIGSTATICINLINE(int)
433SWIG_CheckLong(PyObject* obj)
434{
435 SWIG_AsLong(obj);
436 if (PyErr_Occurred()) {
437 PyErr_Clear();
438 return 0;
439 } else {
440 return 1;
441 }
442}
443
444
445SWIGSTATICINLINE(bool)
446SWIG_AsBool(PyObject *obj)
447{
448 return PyObject_IsTrue(obj) ? true : false;
449}
450
451
452SWIGSTATICINLINE(int)
453SWIG_CheckBool(PyObject* obj)
454{
455 SWIG_AsBool(obj);
456 if (PyErr_Occurred()) {
457 PyErr_Clear();
458 return 0;
459 } else {
460 return 1;
461 }
462}
463
464
465static PyObject* t_output_helper(PyObject* target, PyObject* o) {
466 PyObject* o2;
467 PyObject* o3;
468
469 if (!target) {
470 target = o;
471 } else if (target == Py_None) {
472 Py_DECREF(Py_None);
473 target = o;
474 } else {
475 if (!PyTuple_Check(target)) {
476 o2 = target;
477 target = PyTuple_New(1);
478 PyTuple_SetItem(target, 0, o2);
479 }
480 o3 = PyTuple_New(1);
481 PyTuple_SetItem(o3, 0, o);
482
483 o2 = target;
484 target = PySequence_Concat(o2, o3);
485 Py_DECREF(o2);
486 Py_DECREF(o3);
487 }
488 return target;
489}
490
491
492SWIGSTATICINLINE(unsigned long)
493SWIG_AsUnsignedLong(PyObject * obj)
494{
495 if (PyLong_Check(obj)) {
496 return PyLong_AsUnsignedLong(obj);
497 } else {
498 long i = SWIG_AsLong(obj);
499 if ( !PyErr_Occurred() && (i < 0)) {
500 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
501 }
502 return i;
503 }
504}
505
506
507SWIGSTATICINLINE(int)
508SWIG_CheckUnsignedLong(PyObject* obj)
509{
510 SWIG_AsUnsignedLong(obj);
511 if (PyErr_Occurred()) {
512 PyErr_Clear();
513 return 0;
514 } else {
515 return 1;
516 }
517}
518
519
520SWIGSTATICINLINE(PyObject* )
521SWIG_FromUnsignedLong(unsigned long value)
522{
523 return (value > LONG_MAX) ?
524 PyLong_FromUnsignedLong(value)
525 : PyInt_FromLong(swig_numeric_cast(long,value));
526}
527
528
529 bool wxThread_IsMain() {
530#ifdef WXP_WITH_THREAD
531 return wxThread::IsMain();
532#else
533 return True;
534#endif
535 }
536
537
538 int wxCaret_GetBlinkTime() {
539 return wxCaret::GetBlinkTime();
540 }
541
542 void wxCaret_SetBlinkTime(int milliseconds) {
543 wxCaret::SetBlinkTime(milliseconds);
544 }
545
546
547#include <wx/snglinst.h>
548
549
550#ifdef __WXMSW__
551#include <wx/msw/private.h>
552#include <wx/dynload.h>
553#endif
554
555
556
557void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
558{
559#ifdef __WXMSW__
560
561 switch (method)
562 {
563 case 1:
564 // This one only partially works. Appears to be an undocumented
565 // "standard" convention that not all widgets adhear to. For
566 // example, for some widgets backgrounds or non-client areas may
567 // not be painted.
568 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
569 break;
570
571 case 2:
572 // This one works much better, except for on XP. On Win2k nearly
573 // all widgets and their children are captured correctly[**]. On
574 // XP with Themes activated most native widgets draw only
575 // partially, if at all. Without themes it works just like on
576 // Win2k.
577 //
578 // ** For example the radio buttons in a wxRadioBox are not its
579 // children by default, but you can capture it via the panel
580 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
581 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
582 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
583 PRF_ERASEBKGND | PRF_OWNED );
584 break;
585
586 case 3:
587 // This one is only defined in the latest SDK and is only
588 // available on XP. MSDN says it is similar to sending WM_PRINT
589 // so I expect that it will work similar to the above. Since it
590 // is avaialble only on XP, it can't be compiled like this and
591 // will have to be loaded dynamically.
592 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
593
594 // fall through
595
596 case 4:
597 // Use PrintWindow if available, or fallback to WM_PRINT
598 // otherwise. Unfortunately using PrintWindow is even worse than
599 // WM_PRINT. For most native widgets nothing is drawn to the dc
600 // at all, with or without Themes.
601 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
602 static bool s_triedToLoad = False;
603 static PrintWindow_t pfnPrintWindow = NULL;
604 if ( !s_triedToLoad )
605 {
606
607 s_triedToLoad = True;
608 wxDynamicLibrary dllUser32(_T("user32.dll"));
609 if ( dllUser32.IsLoaded() )
610 {
611 wxLogNull nolog; // Don't report errors here
612 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
613 }
614 }
615 if (pfnPrintWindow)
616 {
617 printf("Using PrintWindow\n");
618 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
619 }
620 else
621 {
622 printf("Using WM_PRINT\n");
623 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
624 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
625 }
626 }
627#endif
628}
629
630
631
632#include <wx/tipdlg.h>
633
634
635class wxPyTipProvider : public wxTipProvider {
636public:
637 wxPyTipProvider(size_t currentTip)
638 : wxTipProvider(currentTip) {}
639
640 DEC_PYCALLBACK_STRING__pure(GetTip);
641 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
642 PYPRIVATE;
643};
644
645IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
646IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
647
648
649//IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
650
651IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
652
653void wxPyTimer::Notify() {
654 bool found;
655 bool blocked = wxPyBeginBlockThreads();
656 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
657 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
658 wxPyEndBlockThreads(blocked);
659 if (! found)
660 wxTimer::Notify();
661}
662void wxPyTimer::base_Notify() {
663 wxTimer::Notify();
664}
665
666
667
668SWIGSTATICINLINE(PyObject *)
669SWIG_FromCharPtr(const char* cptr)
670{
671 size_t size = cptr ? strlen(cptr) : 0;
672 if (cptr) {
673 if (size > INT_MAX) {
674 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
675 SWIG_TypeQuery("char *"), 0);
676 } else {
677 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
678 }
679 } else {
680 Py_INCREF(Py_None);
681 return Py_None;
682 }
683}
684
685
686SWIGSTATICINLINE(unsigned long)
687SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
688 unsigned long max_value)
689{
690 if (!PyErr_Occurred()) {
691 if (value > max_value) {
692 PyObject *err =
693 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
694 value, type, max_value);
695 PyErr_SetObject(PyExc_OverflowError, err);
696 Py_DECREF(err);
697 }
698 }
699 return value;
700}
701
702
703#if UINT_MAX != ULONG_MAX
704SWIGSTATICINLINE(unsigned int)
705SWIG_AsUnsignedInt(PyObject *obj)
706{
707 return swig_numeric_cast(unsigned int,
708 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
709 "unsigned int", UINT_MAX));
710}
711#else
712#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
713#endif
714
715
716SWIGSTATICINLINE(int)
717SWIG_CheckUnsignedInt(PyObject* obj)
718{
719 SWIG_AsUnsignedInt(obj);
720 if (PyErr_Occurred()) {
721 PyErr_Clear();
722 return 0;
723 } else {
724 return 1;
725 }
726}
727
728wxString Log_TimeStamp(){
729 wxString msg;
730 wxLog::TimeStamp(&msg);
731 return msg;
732 }
733void wxLog_Destroy(wxLog *self){ delete self; }
734
735// A wxLog class that can be derived from in wxPython
736class wxPyLog : public wxLog {
737public:
738 wxPyLog() : wxLog() {}
739
740 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
741 bool found;
742 bool blocked = wxPyBeginBlockThreads();
743 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
744 PyObject* s = wx2PyString(szString);
745 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
746 Py_DECREF(s);
747 }
748 wxPyEndBlockThreads(blocked);
749 if (! found)
750 wxLog::DoLog(level, szString, t);
751 }
752
753 virtual void DoLogString(const wxChar *szString, time_t t) {
754 bool found;
755 bool blocked = wxPyBeginBlockThreads();
756 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
757 PyObject* s = wx2PyString(szString);
758 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
759 Py_DECREF(s);
760 }
761 wxPyEndBlockThreads(blocked);
762 if (! found)
763 wxLog::DoLogString(szString, t);
764 }
765
766 PYPRIVATE;
767};
768
769
770
771
772IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
773
774
775#include <wx/joystick.h>
776
777
778#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
779// A C++ stub class for wxJoystick for platforms that don't have it.
780class wxJoystick : public wxObject {
781public:
782 wxJoystick(int joystick = wxJOYSTICK1) {
783 bool blocked = wxPyBeginBlockThreads();
784 PyErr_SetString(PyExc_NotImplementedError,
785 "wxJoystick is not available on this platform.");
786 wxPyEndBlockThreads(blocked);
787 }
788 wxPoint GetPosition() { return wxPoint(-1,-1); }
789 int GetZPosition() { return -1; }
790 int GetButtonState() { return -1; }
791 int GetPOVPosition() { return -1; }
792 int GetPOVCTSPosition() { return -1; }
793 int GetRudderPosition() { return -1; }
794 int GetUPosition() { return -1; }
795 int GetVPosition() { return -1; }
796 int GetMovementThreshold() { return -1; }
797 void SetMovementThreshold(int threshold) {}
798
799 bool IsOk(void) { return False; }
800 int GetNumberJoysticks() { return -1; }
801 int GetManufacturerId() { return -1; }
802 int GetProductId() { return -1; }
803 wxString GetProductName() { return wxEmptyString; }
804 int GetXMin() { return -1; }
805 int GetYMin() { return -1; }
806 int GetZMin() { return -1; }
807 int GetXMax() { return -1; }
808 int GetYMax() { return -1; }
809 int GetZMax() { return -1; }
810 int GetNumberButtons() { return -1; }
811 int GetNumberAxes() { return -1; }
812 int GetMaxButtons() { return -1; }
813 int GetMaxAxes() { return -1; }
814 int GetPollingMin() { return -1; }
815 int GetPollingMax() { return -1; }
816 int GetRudderMin() { return -1; }
817 int GetRudderMax() { return -1; }
818 int GetUMin() { return -1; }
819 int GetUMax() { return -1; }
820 int GetVMin() { return -1; }
821 int GetVMax() { return -1; }
822
823 bool HasRudder() { return False; }
824 bool HasZ() { return False; }
825 bool HasU() { return False; }
826 bool HasV() { return False; }
827 bool HasPOV() { return False; }
828 bool HasPOV4Dir() { return False; }
829 bool HasPOVCTS() { return False; }
830
831 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
832 bool ReleaseCapture() { return False; }
833};
834#endif
835
836
837#include <wx/sound.h>
838
839
840#if !wxUSE_SOUND
841// A C++ stub class for wxWave for platforms that don't have it.
842class wxSound : public wxObject
843{
844public:
845 wxSound() {
846 bool blocked = wxPyBeginBlockThreads();
847 PyErr_SetString(PyExc_NotImplementedError,
848 "wxSound is not available on this platform.");
849 wxPyEndBlockThreads(blocked);
850 }
851 wxSound(const wxString&/*, bool*/) {
852 bool blocked = wxPyBeginBlockThreads();
853 PyErr_SetString(PyExc_NotImplementedError,
854 "wxSound is not available on this platform.");
855 wxPyEndBlockThreads(blocked);
856 }
857 wxSound(int, const wxByte*) {
858 bool blocked = wxPyBeginBlockThreads();
859 PyErr_SetString(PyExc_NotImplementedError,
860 "wxSound is not available on this platform.");
861 wxPyEndBlockThreads(blocked);
862 }
863
864 ~wxSound() {};
865
866 bool Create(const wxString&/*, bool*/) { return false; }
867 bool Create(int, const wxByte*) { return false; };
868 bool IsOk() { return false; };
869 bool Play(unsigned) const { return false; }
870 static bool Play(const wxString&, unsigned) { return false; }
871 static void Stop() {}
872};
873
874#endif
875
876wxSound *new_wxSound(wxString const &fileName){
877 if (fileName.Length() == 0)
878 return new wxSound;
879 else
880 return new wxSound(fileName);
881 }
882wxSound *new_wxSound(PyObject *data){
883 unsigned char* buffer; int size;
884 wxSound *sound = NULL;
885
886 bool blocked = wxPyBeginBlockThreads();
887 if (!PyArg_Parse(data, "t#", &buffer, &size))
888 goto done;
889 sound = new wxSound(size, buffer);
890 done:
891 wxPyEndBlockThreads(blocked);
892 return sound;
893 }
894bool wxSound_CreateFromData(wxSound *self,PyObject *data){
895 #ifndef __WXMAC__
896 unsigned char* buffer;
897 int size;
898 bool rv = False;
899
900 bool blocked = wxPyBeginBlockThreads();
901 if (!PyArg_Parse(data, "t#", &buffer, &size))
902 goto done;
903 rv = self->Create(size, buffer);
904 done:
905 wxPyEndBlockThreads(blocked);
906 return rv;
907 #else
908 bool blocked = wxPyBeginBlockThreads();
909 PyErr_SetString(PyExc_NotImplementedError,
910 "Create from data is not available on this platform.");
911 wxPyEndBlockThreads(blocked);
912 return False;
913 #endif
914 }
915void Sound_Stop(){ wxPyRaiseNotImplemented(); }
916
917#include <wx/mimetype.h>
918
919PyObject *wxFileType_GetMimeType(wxFileType *self){
920 wxString str;
921 if (self->GetMimeType(&str))
922 return wx2PyString(str);
923 else
924 RETURN_NONE();
925 }
926PyObject *wxFileType_GetMimeTypes(wxFileType *self){
927 wxArrayString arr;
928 if (self->GetMimeTypes(arr))
929 return wxArrayString2PyList_helper(arr);
930 else
931 RETURN_NONE();
932 }
933PyObject *wxFileType_GetExtensions(wxFileType *self){
934 wxArrayString arr;
935 if (self->GetExtensions(arr))
936 return wxArrayString2PyList_helper(arr);
937 else
938 RETURN_NONE();
939 }
940wxIcon *wxFileType_GetIcon(wxFileType *self){
941 wxIconLocation loc;
942 if (self->GetIcon(&loc))
943 return new wxIcon(loc);
944 else
945 return NULL;
946 }
947PyObject *wxFileType_GetIconInfo(wxFileType *self){
948 wxIconLocation loc;
949 if (self->GetIcon(&loc)) {
950 wxString iconFile = loc.GetFileName();
951 int iconIndex = -1;
952
953
954
955 // Make a tuple and put the values in it
956 bool blocked = wxPyBeginBlockThreads();
957 PyObject* tuple = PyTuple_New(3);
958 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
959 wxT("wxIcon"), True));
960 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
961 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
962 wxPyEndBlockThreads(blocked);
963 return tuple;
964 }
965 else
966 RETURN_NONE();
967 }
968PyObject *wxFileType_GetDescription(wxFileType *self){
969 wxString str;
970 if (self->GetDescription(&str))
971 return wx2PyString(str);
972 else
973 RETURN_NONE();
974 }
975PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
976 wxString str;
977 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
978 return wx2PyString(str);
979 else
980 RETURN_NONE();
981 }
982PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
983 wxString str;
984 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
985 return wx2PyString(str);
986 else
987 RETURN_NONE();
988 }
989PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
990 wxArrayString verbs;
991 wxArrayString commands;
992 if (self->GetAllCommands(&verbs, &commands,
993 wxFileType::MessageParameters(filename, mimetype))) {
994 bool blocked = wxPyBeginBlockThreads();
995 PyObject* tuple = PyTuple_New(2);
996 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
997 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
998 wxPyEndBlockThreads(blocked);
999 return tuple;
1000 }
1001 else
1002 RETURN_NONE();
1003 }
1004wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1005 return wxFileType::ExpandCommand(command,
1006 wxFileType::MessageParameters(filename, mimetype));
1007 }
1008PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1009 wxArrayString arr;
1010 self->EnumAllFileTypes(arr);
1011 return wxArrayString2PyList_helper(arr);
1012 }
1013
1014#include <wx/artprov.h>
1015
1016 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1017 static const wxString wxPyART_MENU(wxART_MENU);
1018 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1019 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1020 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1021 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1022 static const wxString wxPyART_BUTTON(wxART_BUTTON);
1023 static const wxString wxPyART_OTHER(wxART_OTHER);
1024 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1025 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1026 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1027 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1028 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1029 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1030 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1031 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1032 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1033 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1034 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1035 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1036 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1037 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1038 static const wxString wxPyART_PRINT(wxART_PRINT);
1039 static const wxString wxPyART_HELP(wxART_HELP);
1040 static const wxString wxPyART_TIP(wxART_TIP);
1041 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1042 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1043 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1044 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1045 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1046 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1047 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1048 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1049 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1050 static const wxString wxPyART_ERROR(wxART_ERROR);
1051 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1052 static const wxString wxPyART_WARNING(wxART_WARNING);
1053 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1054 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1055 // Python aware wxArtProvider
1056class wxPyArtProvider : public wxArtProvider {
1057public:
1058
1059 virtual wxBitmap CreateBitmap(const wxArtID& id,
1060 const wxArtClient& client,
1061 const wxSize& size) {
1062 wxBitmap rval = wxNullBitmap;
1063 bool blocked = wxPyBeginBlockThreads();
1064 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1065 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1066 PyObject* ro;
1067 wxBitmap* ptr;
1068 PyObject* s1, *s2;
1069 s1 = wx2PyString(id);
1070 s2 = wx2PyString(client);
1071 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1072 Py_DECREF(so);
1073 Py_DECREF(s1);
1074 Py_DECREF(s2);
1075 if (ro) {
1076 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1077 rval = *ptr;
1078 Py_DECREF(ro);
1079 }
1080 }
1081 wxPyEndBlockThreads(blocked);
1082 return rval;
1083 }
1084
1085 PYPRIVATE;
1086};
1087
1088void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1089
1090
1091
1092 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1093 PyObject* ret = PyTuple_New(3);
1094 if (ret) {
1095 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1096 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1097 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1098 }
1099 return ret;
1100 }
1101
1102PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1103 bool cont;
1104 long index = 0;
1105 wxString value;
1106
1107 cont = self->GetFirstGroup(value, index);
1108 return __EnumerationHelper(cont, value, index);
1109 }
1110PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1111 bool cont;
1112 wxString value;
1113
1114 cont = self->GetNextGroup(value, index);
1115 return __EnumerationHelper(cont, value, index);
1116 }
1117PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1118 bool cont;
1119 long index = 0;
1120 wxString value;
1121
1122 cont = self->GetFirstEntry(value, index);
1123 return __EnumerationHelper(cont, value, index);
1124 }
1125PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1126 bool cont;
1127 wxString value;
1128
1129 cont = self->GetNextEntry(value, index);
1130 return __EnumerationHelper(cont, value, index);
1131 }
1132long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1133 long rv;
1134 self->Read(key, &rv, defaultVal);
1135 return rv;
1136 }
1137
1138SWIGSTATICINLINE(double)
1139SWIG_AsDouble(PyObject *obj)
1140{
1141 if (PyNumber_Check(obj))
1142 return PyFloat_AsDouble(obj);
1143 else {
1144 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1145 obj->ob_type->tp_name);
1146 PyErr_SetObject(PyExc_TypeError, errmsg);
1147 Py_DECREF(errmsg);
1148 return 0;
1149 }
1150}
1151
1152
1153SWIGSTATICINLINE(int)
1154SWIG_CheckDouble(PyObject* obj)
1155{
1156 SWIG_AsDouble(obj);
1157 if (PyErr_Occurred()) {
1158 PyErr_Clear();
1159 return 0;
1160 } else {
1161 return 1;
1162 }
1163}
1164
1165double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1166 double rv;
1167 self->Read(key, &rv, defaultVal);
1168 return rv;
1169 }
1170bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1171 bool rv;
1172 self->Read(key, &rv, defaultVal);
1173 return rv;
1174 }
1175
1176#include <wx/datetime.h>
1177
1178
1179 static const wxString wxPyDateFormatStr(wxT("%c"));
1180 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1181
1182#define LOCAL_TZ wxDateTime::Local
1183
1184
1185#if UINT_MAX < LONG_MAX
1186#define SWIG_FromUnsignedInt SWIG_FromLong
1187#else
1188#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1189#endif
1190
1191wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1192wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1193wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1194wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1195wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1196bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1197 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1198 return (*self < *other);
1199 }
1200bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1201 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1202 return (*self <= *other);
1203 }
1204bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1205 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1206 return (*self > *other);
1207 }
1208bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1209 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1210 return (*self >= *other);
1211 }
1212bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1213 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1214 return (*self == *other);
1215 }
1216bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1217 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1218 return (*self != *other);
1219 }
1220int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1221 const wxChar* rv;
1222 const wxChar* _date = date;
1223 rv = self->ParseRfc822Date(_date);
1224 if (rv == NULL) return -1;
1225 return rv - _date;
1226 }
1227int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1228 const wxChar* rv;
1229 const wxChar* _date = date;
1230 rv = self->ParseFormat(_date, format, dateDef);
1231 if (rv == NULL) return -1;
1232 return rv - _date;
1233 }
1234int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1235 const wxChar* rv;
1236 const wxChar* _datetime = datetime;
1237 rv = self->ParseDateTime(_datetime);
1238 if (rv == NULL) return -1;
1239 return rv - _datetime;
1240 }
1241int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1242 const wxChar* rv;
1243 const wxChar* _date = date;
1244 rv = self->ParseDate(_date);
1245 if (rv == NULL) return -1;
1246 return rv - _date;
1247 }
1248int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1249 const wxChar* rv;
1250 const wxChar* _time = time;
1251 rv = self->ParseTime(_time);
1252 if (rv == NULL) return -1;
1253 return rv - _time;
1254 }
1255wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1256wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1257wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1258wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1259bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1260bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1261bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1262bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1263bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1264bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1265wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1266wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1267wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1268wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1269bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1270bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1271
1272#include <wx/dataobj.h>
1273
1274PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1275 size_t count = self->GetFormatCount(dir);
1276 wxDataFormat* formats = new wxDataFormat[count];
1277 self->GetAllFormats(formats, dir);
1278
1279 bool blocked = wxPyBeginBlockThreads();
1280 PyObject* list = PyList_New(count);
1281 for (size_t i=0; i<count; i++) {
1282 wxDataFormat* format = new wxDataFormat(formats[i]);
1283 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1284 PyList_Append(list, obj);
1285 Py_DECREF(obj);
1286 }
1287 wxPyEndBlockThreads(blocked);
1288 delete [] formats;
1289 return list;
1290 }
1291PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1292 PyObject* rval = NULL;
1293 size_t size = self->GetDataSize(format);
1294 bool blocked = wxPyBeginBlockThreads();
1295 if (size) {
1296 char* buf = new char[size];
1297 if (self->GetDataHere(format, buf))
1298 rval = PyString_FromStringAndSize(buf, size);
1299 delete [] buf;
1300 }
1301 if (! rval) {
1302 rval = Py_None;
1303 Py_INCREF(rval);
1304 }
1305 wxPyEndBlockThreads(blocked);
1306 return rval;
1307 }
1308bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1309 bool rval;
1310 bool blocked = wxPyBeginBlockThreads();
1311 if (PyString_Check(data)) {
1312 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1313 }
1314 else {
1315 // raise a TypeError if not a string
1316 PyErr_SetString(PyExc_TypeError, "String expected.");
1317 rval = False;
1318 }
1319 wxPyEndBlockThreads(blocked);
1320 return rval;
1321 }
1322PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1323 PyObject* rval = NULL;
1324 size_t size = self->GetDataSize();
1325 bool blocked = wxPyBeginBlockThreads();
1326 if (size) {
1327 char* buf = new char[size];
1328 if (self->GetDataHere(buf))
1329 rval = PyString_FromStringAndSize(buf, size);
1330 delete [] buf;
1331 }
1332 if (! rval) {
1333 rval = Py_None;
1334 Py_INCREF(rval);
1335 }
1336 wxPyEndBlockThreads(blocked);
1337 return rval;
1338 }
1339bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1340 bool rval;
1341 bool blocked = wxPyBeginBlockThreads();
1342 if (PyString_Check(data)) {
1343 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1344 }
1345 else {
1346 // raise a TypeError if not a string
1347 PyErr_SetString(PyExc_TypeError, "String expected.");
1348 rval = False;
1349 }
1350 wxPyEndBlockThreads(blocked);
1351 return rval;
1352 }
1353 // Create a new class for wxPython to use
1354class wxPyDataObjectSimple : public wxDataObjectSimple {
1355public:
1356 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1357 : wxDataObjectSimple(format) {}
1358
1359 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1360 bool GetDataHere(void *buf) const;
1361 bool SetData(size_t len, const void *buf) const;
1362 PYPRIVATE;
1363};
1364
1365IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1366
1367bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1368 // We need to get the data for this object and write it to buf. I think
1369 // the best way to do this for wxPython is to have the Python method
1370 // return either a string or None and then act appropriately with the
1371 // C++ version.
1372
1373 bool rval = False;
1374 bool blocked = wxPyBeginBlockThreads();
1375 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1376 PyObject* ro;
1377 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1378 if (ro) {
1379 rval = (ro != Py_None && PyString_Check(ro));
1380 if (rval)
1381 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1382 Py_DECREF(ro);
1383 }
1384 }
1385 wxPyEndBlockThreads(blocked);
1386 return rval;
1387}
1388
1389bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1390 // For this one we simply need to make a string from buf and len
1391 // and send it to the Python method.
1392 bool rval = False;
1393 bool blocked = wxPyBeginBlockThreads();
1394 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1395 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1396 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1397 Py_DECREF(data);
1398 }
1399 wxPyEndBlockThreads(blocked);
1400 return rval;
1401}
1402
1403 // Create a new class for wxPython to use
1404class wxPyTextDataObject : public wxTextDataObject {
1405public:
1406 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1407 : wxTextDataObject(text) {}
1408
1409 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1410 DEC_PYCALLBACK_STRING__const(GetText);
1411 DEC_PYCALLBACK__STRING(SetText);
1412 PYPRIVATE;
1413};
1414
1415IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1416IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1417IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1418
1419
1420 // Create a new class for wxPython to use
1421class wxPyBitmapDataObject : public wxBitmapDataObject {
1422public:
1423 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1424 : wxBitmapDataObject(bitmap) {}
1425
1426 wxBitmap GetBitmap() const;
1427 void SetBitmap(const wxBitmap& bitmap);
1428 PYPRIVATE;
1429};
1430
1431wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1432 wxBitmap* rval = &wxNullBitmap;
1433 bool blocked = wxPyBeginBlockThreads();
1434 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1435 PyObject* ro;
1436 wxBitmap* ptr;
1437 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1438 if (ro) {
1439 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1440 rval = ptr;
1441 Py_DECREF(ro);
1442 }
1443 }
1444 wxPyEndBlockThreads(blocked);
1445 return *rval;
1446}
1447
1448void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1449 bool blocked = wxPyBeginBlockThreads();
1450 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1451 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1452 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1453 Py_DECREF(bo);
1454 }
1455 wxPyEndBlockThreads(blocked);
1456}
1457
1458bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1459 bool rval;
1460 bool blocked = wxPyBeginBlockThreads();
1461 if (PyString_Check(data)) {
1462 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1463 }
1464 else {
1465 // raise a TypeError if not a string
1466 PyErr_SetString(PyExc_TypeError, "String expected.");
1467 rval = False;
1468 }
1469 wxPyEndBlockThreads(blocked);
1470 return rval;
1471 }
1472PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1473 PyObject* obj;
1474 bool blocked = wxPyBeginBlockThreads();
1475 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1476 wxPyEndBlockThreads(blocked);
1477 return obj;
1478 }
1479
1480#include <wx/metafile.h>
1481
1482
1483IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1484
1485
1486IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1487IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1488IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1489IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1490IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1491
1492
1493class wxPyTextDropTarget : public wxTextDropTarget {
1494public:
1495 wxPyTextDropTarget() {}
1496
1497 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1498
1499 DEC_PYCALLBACK__(OnLeave);
1500 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1501 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1502 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1503 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1504
1505 PYPRIVATE;
1506};
1507
1508IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1509IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1510IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1511IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1512IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1513IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1514
1515
1516
1517class wxPyFileDropTarget : public wxFileDropTarget {
1518public:
1519 wxPyFileDropTarget() {}
1520
1521 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1522
1523 DEC_PYCALLBACK__(OnLeave);
1524 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1525 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1526 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1527 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1528
1529 PYPRIVATE;
1530};
1531
1532bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1533 const wxArrayString& filenames) {
1534 bool rval = False;
1535 bool blocked = wxPyBeginBlockThreads();
1536 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1537 PyObject* list = wxArrayString2PyList_helper(filenames);
1538 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1539 Py_DECREF(list);
1540 }
1541 wxPyEndBlockThreads(blocked);
1542 return rval;
1543}
1544
1545
1546
1547IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1548IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1549IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1550IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1551IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1552
1553
1554
1555
1556bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1557
1558#include <wx/display.h>
1559
1560bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1561bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1562
1563// dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1564#if !wxUSE_DISPLAY
1565#include <wx/dynarray.h>
1566#include <wx/vidmode.h>
1567
1568WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1569#include "wx/arrimpl.cpp"
1570WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1571const wxVideoMode wxDefaultVideoMode;
1572
1573class wxDisplay
1574{
1575public:
1576 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1577 ~wxDisplay() {}
1578
1579 static size_t GetCount()
1580 { wxPyRaiseNotImplemented(); return 0; }
1581
1582 static int GetFromPoint(const wxPoint& pt)
1583 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1584 static int GetFromWindow(wxWindow *window)
1585 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1586
1587 virtual bool IsOk() const { return false; }
1588 virtual wxRect GetGeometry() const { wxRect r; return r; }
1589 virtual wxString GetName() const { return wxEmptyString; }
1590 bool IsPrimary() const { return false; }
1591
1592 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1593 { wxArrayVideoModes a; return a; }
1594
1595 virtual wxVideoMode GetCurrentMode() const
1596 { return wxDefaultVideoMode; }
1597
1598 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1599 { return false; }
1600
1601 void ResetMode() {}
1602};
1603#endif
1604
1605int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1606PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1607 PyObject* pyList = NULL;
1608 wxArrayVideoModes arr = self->GetModes(mode);
1609 bool blocked = wxPyBeginBlockThreads();
1610 pyList = PyList_New(0);
1611 for (int i=0; i < arr.GetCount(); i++) {
1612 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1613 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1614 PyList_Append(pyList, pyObj);
1615 Py_DECREF(pyObj);
1616 }
1617 wxPyEndBlockThreads(blocked);
1618 return pyList;
1619 }
1620#ifdef __cplusplus
1621extern "C" {
1622#endif
1623static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1624 PyObject *resultobj;
1625 int arg1 ;
1626 wxColour result;
1627 PyObject * obj0 = 0 ;
1628 char *kwnames[] = {
1629 (char *) "index", NULL
1630 };
1631
1632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1633 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1634 if (PyErr_Occurred()) SWIG_fail;
1635 {
1636 if (!wxPyCheckForApp()) SWIG_fail;
1637 PyThreadState* __tstate = wxPyBeginAllowThreads();
1638 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1639
1640 wxPyEndAllowThreads(__tstate);
1641 if (PyErr_Occurred()) SWIG_fail;
1642 }
1643 {
1644 wxColour * resultptr;
1645 resultptr = new wxColour((wxColour &) result);
1646 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1647 }
1648 return resultobj;
1649 fail:
1650 return NULL;
1651}
1652
1653
1654static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1655 PyObject *resultobj;
1656 int arg1 ;
1657 wxFont result;
1658 PyObject * obj0 = 0 ;
1659 char *kwnames[] = {
1660 (char *) "index", NULL
1661 };
1662
1663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1664 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1665 if (PyErr_Occurred()) SWIG_fail;
1666 {
1667 if (!wxPyCheckForApp()) SWIG_fail;
1668 PyThreadState* __tstate = wxPyBeginAllowThreads();
1669 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1670
1671 wxPyEndAllowThreads(__tstate);
1672 if (PyErr_Occurred()) SWIG_fail;
1673 }
1674 {
1675 wxFont * resultptr;
1676 resultptr = new wxFont((wxFont &) result);
1677 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1678 }
1679 return resultobj;
1680 fail:
1681 return NULL;
1682}
1683
1684
1685static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1686 PyObject *resultobj;
1687 int arg1 ;
1688 int result;
1689 PyObject * obj0 = 0 ;
1690 char *kwnames[] = {
1691 (char *) "index", NULL
1692 };
1693
1694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1695 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1696 if (PyErr_Occurred()) SWIG_fail;
1697 {
1698 if (!wxPyCheckForApp()) SWIG_fail;
1699 PyThreadState* __tstate = wxPyBeginAllowThreads();
1700 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1701
1702 wxPyEndAllowThreads(__tstate);
1703 if (PyErr_Occurred()) SWIG_fail;
1704 }
1705 resultobj = SWIG_FromInt((int)result);
1706 return resultobj;
1707 fail:
1708 return NULL;
1709}
1710
1711
1712static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1713 PyObject *resultobj;
1714 int arg1 ;
1715 bool result;
1716 PyObject * obj0 = 0 ;
1717 char *kwnames[] = {
1718 (char *) "index", NULL
1719 };
1720
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1722 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1723 if (PyErr_Occurred()) SWIG_fail;
1724 {
1725 if (!wxPyCheckForApp()) SWIG_fail;
1726 PyThreadState* __tstate = wxPyBeginAllowThreads();
1727 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1728
1729 wxPyEndAllowThreads(__tstate);
1730 if (PyErr_Occurred()) SWIG_fail;
1731 }
1732 {
1733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1734 }
1735 return resultobj;
1736 fail:
1737 return NULL;
1738}
1739
1740
1741static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1742 PyObject *resultobj;
1743 int result;
1744 char *kwnames[] = {
1745 NULL
1746 };
1747
1748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1749 {
1750 if (!wxPyCheckForApp()) SWIG_fail;
1751 PyThreadState* __tstate = wxPyBeginAllowThreads();
1752 result = (int)wxSystemSettings::GetScreenType();
1753
1754 wxPyEndAllowThreads(__tstate);
1755 if (PyErr_Occurred()) SWIG_fail;
1756 }
1757 resultobj = SWIG_FromInt((int)result);
1758 return resultobj;
1759 fail:
1760 return NULL;
1761}
1762
1763
1764static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1765 PyObject *resultobj;
1766 int arg1 ;
1767 PyObject * obj0 = 0 ;
1768 char *kwnames[] = {
1769 (char *) "screen", NULL
1770 };
1771
1772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1773 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1774 if (PyErr_Occurred()) SWIG_fail;
1775 {
1776 if (!wxPyCheckForApp()) SWIG_fail;
1777 PyThreadState* __tstate = wxPyBeginAllowThreads();
1778 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1779
1780 wxPyEndAllowThreads(__tstate);
1781 if (PyErr_Occurred()) SWIG_fail;
1782 }
1783 Py_INCREF(Py_None); resultobj = Py_None;
1784 return resultobj;
1785 fail:
1786 return NULL;
1787}
1788
1789
1790static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1791 PyObject *obj;
1792 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1793 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1794 Py_INCREF(obj);
1795 return Py_BuildValue((char *)"");
1796}
1797static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1798 PyObject *resultobj;
1799 wxSystemOptions *result;
1800 char *kwnames[] = {
1801 NULL
1802 };
1803
1804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1805 {
1806 PyThreadState* __tstate = wxPyBeginAllowThreads();
1807 result = (wxSystemOptions *)new wxSystemOptions();
1808
1809 wxPyEndAllowThreads(__tstate);
1810 if (PyErr_Occurred()) SWIG_fail;
1811 }
1812 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1813 return resultobj;
1814 fail:
1815 return NULL;
1816}
1817
1818
1819static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1820 PyObject *resultobj;
1821 wxString *arg1 = 0 ;
1822 wxString *arg2 = 0 ;
1823 bool temp1 = False ;
1824 bool temp2 = 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_SetOption",kwnames,&obj0,&obj1)) goto fail;
1832 {
1833 arg1 = wxString_in_helper(obj0);
1834 if (arg1 == NULL) SWIG_fail;
1835 temp1 = True;
1836 }
1837 {
1838 arg2 = wxString_in_helper(obj1);
1839 if (arg2 == NULL) SWIG_fail;
1840 temp2 = True;
1841 }
1842 {
1843 PyThreadState* __tstate = wxPyBeginAllowThreads();
1844 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1845
1846 wxPyEndAllowThreads(__tstate);
1847 if (PyErr_Occurred()) SWIG_fail;
1848 }
1849 Py_INCREF(Py_None); resultobj = Py_None;
1850 {
1851 if (temp1)
1852 delete arg1;
1853 }
1854 {
1855 if (temp2)
1856 delete arg2;
1857 }
1858 return resultobj;
1859 fail:
1860 {
1861 if (temp1)
1862 delete arg1;
1863 }
1864 {
1865 if (temp2)
1866 delete arg2;
1867 }
1868 return NULL;
1869}
1870
1871
1872static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1873 PyObject *resultobj;
1874 wxString *arg1 = 0 ;
1875 int arg2 ;
1876 bool temp1 = False ;
1877 PyObject * obj0 = 0 ;
1878 PyObject * obj1 = 0 ;
1879 char *kwnames[] = {
1880 (char *) "name",(char *) "value", NULL
1881 };
1882
1883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1884 {
1885 arg1 = wxString_in_helper(obj0);
1886 if (arg1 == NULL) SWIG_fail;
1887 temp1 = True;
1888 }
1889 arg2 = (int) SWIG_AsInt(obj1);
1890 if (PyErr_Occurred()) SWIG_fail;
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) SWIG_fail;
1897 }
1898 Py_INCREF(Py_None); resultobj = Py_None;
1899 {
1900 if (temp1)
1901 delete arg1;
1902 }
1903 return resultobj;
1904 fail:
1905 {
1906 if (temp1)
1907 delete arg1;
1908 }
1909 return NULL;
1910}
1911
1912
1913static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1914 PyObject *resultobj;
1915 wxString *arg1 = 0 ;
1916 wxString result;
1917 bool temp1 = False ;
1918 PyObject * obj0 = 0 ;
1919 char *kwnames[] = {
1920 (char *) "name", NULL
1921 };
1922
1923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1924 {
1925 arg1 = wxString_in_helper(obj0);
1926 if (arg1 == NULL) SWIG_fail;
1927 temp1 = True;
1928 }
1929 {
1930 PyThreadState* __tstate = wxPyBeginAllowThreads();
1931 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1932
1933 wxPyEndAllowThreads(__tstate);
1934 if (PyErr_Occurred()) SWIG_fail;
1935 }
1936 {
1937#if wxUSE_UNICODE
1938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1939#else
1940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1941#endif
1942 }
1943 {
1944 if (temp1)
1945 delete arg1;
1946 }
1947 return resultobj;
1948 fail:
1949 {
1950 if (temp1)
1951 delete arg1;
1952 }
1953 return NULL;
1954}
1955
1956
1957static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject *resultobj;
1959 wxString *arg1 = 0 ;
1960 int result;
1961 bool temp1 = False ;
1962 PyObject * obj0 = 0 ;
1963 char *kwnames[] = {
1964 (char *) "name", NULL
1965 };
1966
1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1968 {
1969 arg1 = wxString_in_helper(obj0);
1970 if (arg1 == NULL) SWIG_fail;
1971 temp1 = True;
1972 }
1973 {
1974 PyThreadState* __tstate = wxPyBeginAllowThreads();
1975 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1976
1977 wxPyEndAllowThreads(__tstate);
1978 if (PyErr_Occurred()) SWIG_fail;
1979 }
1980 resultobj = SWIG_FromInt((int)result);
1981 {
1982 if (temp1)
1983 delete arg1;
1984 }
1985 return resultobj;
1986 fail:
1987 {
1988 if (temp1)
1989 delete arg1;
1990 }
1991 return NULL;
1992}
1993
1994
1995static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1996 PyObject *resultobj;
1997 wxString *arg1 = 0 ;
1998 bool result;
1999 bool temp1 = False ;
2000 PyObject * obj0 = 0 ;
2001 char *kwnames[] = {
2002 (char *) "name", NULL
2003 };
2004
2005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2006 {
2007 arg1 = wxString_in_helper(obj0);
2008 if (arg1 == NULL) SWIG_fail;
2009 temp1 = True;
2010 }
2011 {
2012 PyThreadState* __tstate = wxPyBeginAllowThreads();
2013 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2014
2015 wxPyEndAllowThreads(__tstate);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 }
2018 {
2019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2020 }
2021 {
2022 if (temp1)
2023 delete arg1;
2024 }
2025 return resultobj;
2026 fail:
2027 {
2028 if (temp1)
2029 delete arg1;
2030 }
2031 return NULL;
2032}
2033
2034
2035static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
2036 PyObject *obj;
2037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2038 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2039 Py_INCREF(obj);
2040 return Py_BuildValue((char *)"");
2041}
2042static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
2043 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2044 return 1;
2045}
2046
2047
2048static PyObject *_wrap_FileSelectorPromptStr_get() {
2049 PyObject *pyobj;
2050
2051 {
2052#if wxUSE_UNICODE
2053 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2054#else
2055 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2056#endif
2057 }
2058 return pyobj;
2059}
2060
2061
2062static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
2063 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2064 return 1;
2065}
2066
2067
2068static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2069 PyObject *pyobj;
2070
2071 {
2072#if wxUSE_UNICODE
2073 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2074#else
2075 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2076#endif
2077 }
2078 return pyobj;
2079}
2080
2081
2082static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
2083 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2084 return 1;
2085}
2086
2087
2088static PyObject *_wrap_DirSelectorPromptStr_get() {
2089 PyObject *pyobj;
2090
2091 {
2092#if wxUSE_UNICODE
2093 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2094#else
2095 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2096#endif
2097 }
2098 return pyobj;
2099}
2100
2101
2102static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
2103 PyObject *resultobj;
2104 long result;
2105 char *kwnames[] = {
2106 NULL
2107 };
2108
2109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2110 {
2111 PyThreadState* __tstate = wxPyBeginAllowThreads();
2112 result = (long)wxNewId();
2113
2114 wxPyEndAllowThreads(__tstate);
2115 if (PyErr_Occurred()) SWIG_fail;
2116 }
2117 resultobj = SWIG_FromLong((long)result);
2118 return resultobj;
2119 fail:
2120 return NULL;
2121}
2122
2123
2124static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2125 PyObject *resultobj;
2126 long arg1 ;
2127 PyObject * obj0 = 0 ;
2128 char *kwnames[] = {
2129 (char *) "id", NULL
2130 };
2131
2132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2133 arg1 = (long) SWIG_AsLong(obj0);
2134 if (PyErr_Occurred()) SWIG_fail;
2135 {
2136 PyThreadState* __tstate = wxPyBeginAllowThreads();
2137 wxRegisterId(arg1);
2138
2139 wxPyEndAllowThreads(__tstate);
2140 if (PyErr_Occurred()) SWIG_fail;
2141 }
2142 Py_INCREF(Py_None); resultobj = Py_None;
2143 return resultobj;
2144 fail:
2145 return NULL;
2146}
2147
2148
2149static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2150 PyObject *resultobj;
2151 long result;
2152 char *kwnames[] = {
2153 NULL
2154 };
2155
2156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2157 {
2158 PyThreadState* __tstate = wxPyBeginAllowThreads();
2159 result = (long)wxGetCurrentId();
2160
2161 wxPyEndAllowThreads(__tstate);
2162 if (PyErr_Occurred()) SWIG_fail;
2163 }
2164 resultobj = SWIG_FromLong((long)result);
2165 return resultobj;
2166 fail:
2167 return NULL;
2168}
2169
2170
2171static PyObject *_wrap_wxIsStockID(PyObject *self, PyObject *args, PyObject *kwargs) {
2172 PyObject *resultobj;
2173 int arg1 ;
2174 bool result;
2175 PyObject * obj0 = 0 ;
2176 char *kwnames[] = {
2177 (char *) "id", NULL
2178 };
2179
2180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:wxIsStockID",kwnames,&obj0)) goto fail;
2181 arg1 = (int) SWIG_AsInt(obj0);
2182 if (PyErr_Occurred()) SWIG_fail;
2183 {
2184 PyThreadState* __tstate = wxPyBeginAllowThreads();
2185 result = (bool)wxIsStockID(arg1);
2186
2187 wxPyEndAllowThreads(__tstate);
2188 if (PyErr_Occurred()) SWIG_fail;
2189 }
2190 {
2191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2192 }
2193 return resultobj;
2194 fail:
2195 return NULL;
2196}
2197
2198
2199static PyObject *_wrap_wxIsStockLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
2200 PyObject *resultobj;
2201 int arg1 ;
2202 wxString *arg2 = 0 ;
2203 bool result;
2204 bool temp2 = False ;
2205 PyObject * obj0 = 0 ;
2206 PyObject * obj1 = 0 ;
2207 char *kwnames[] = {
2208 (char *) "id",(char *) "label", NULL
2209 };
2210
2211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:wxIsStockLabel",kwnames,&obj0,&obj1)) goto fail;
2212 arg1 = (int) SWIG_AsInt(obj0);
2213 if (PyErr_Occurred()) SWIG_fail;
2214 {
2215 arg2 = wxString_in_helper(obj1);
2216 if (arg2 == NULL) SWIG_fail;
2217 temp2 = True;
2218 }
2219 {
2220 PyThreadState* __tstate = wxPyBeginAllowThreads();
2221 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
2222
2223 wxPyEndAllowThreads(__tstate);
2224 if (PyErr_Occurred()) SWIG_fail;
2225 }
2226 {
2227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2228 }
2229 {
2230 if (temp2)
2231 delete arg2;
2232 }
2233 return resultobj;
2234 fail:
2235 {
2236 if (temp2)
2237 delete arg2;
2238 }
2239 return NULL;
2240}
2241
2242
2243static PyObject *_wrap_wxGetStockLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
2244 PyObject *resultobj;
2245 int arg1 ;
2246 wxString result;
2247 PyObject * obj0 = 0 ;
2248 char *kwnames[] = {
2249 (char *) "id", NULL
2250 };
2251
2252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:wxGetStockLabel",kwnames,&obj0)) goto fail;
2253 arg1 = (int) SWIG_AsInt(obj0);
2254 if (PyErr_Occurred()) SWIG_fail;
2255 {
2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
2257 result = wxGetStockLabel(arg1);
2258
2259 wxPyEndAllowThreads(__tstate);
2260 if (PyErr_Occurred()) SWIG_fail;
2261 }
2262 {
2263#if wxUSE_UNICODE
2264 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2265#else
2266 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2267#endif
2268 }
2269 return resultobj;
2270 fail:
2271 return NULL;
2272}
2273
2274
2275static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2276 PyObject *resultobj;
2277 char *kwnames[] = {
2278 NULL
2279 };
2280
2281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2282 {
2283 if (!wxPyCheckForApp()) SWIG_fail;
2284 PyThreadState* __tstate = wxPyBeginAllowThreads();
2285 wxBell();
2286
2287 wxPyEndAllowThreads(__tstate);
2288 if (PyErr_Occurred()) SWIG_fail;
2289 }
2290 Py_INCREF(Py_None); resultobj = Py_None;
2291 return resultobj;
2292 fail:
2293 return NULL;
2294}
2295
2296
2297static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2298 PyObject *resultobj;
2299 char *kwnames[] = {
2300 NULL
2301 };
2302
2303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2304 {
2305 if (!wxPyCheckForApp()) SWIG_fail;
2306 PyThreadState* __tstate = wxPyBeginAllowThreads();
2307 wxEndBusyCursor();
2308
2309 wxPyEndAllowThreads(__tstate);
2310 if (PyErr_Occurred()) SWIG_fail;
2311 }
2312 Py_INCREF(Py_None); resultobj = Py_None;
2313 return resultobj;
2314 fail:
2315 return NULL;
2316}
2317
2318
2319static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2320 PyObject *resultobj;
2321 bool arg1 = (bool) True ;
2322 long result;
2323 PyObject * obj0 = 0 ;
2324 char *kwnames[] = {
2325 (char *) "resetTimer", NULL
2326 };
2327
2328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2329 if (obj0) {
2330 arg1 = (bool) SWIG_AsBool(obj0);
2331 if (PyErr_Occurred()) SWIG_fail;
2332 }
2333 {
2334 PyThreadState* __tstate = wxPyBeginAllowThreads();
2335 result = (long)wxGetElapsedTime(arg1);
2336
2337 wxPyEndAllowThreads(__tstate);
2338 if (PyErr_Occurred()) SWIG_fail;
2339 }
2340 resultobj = SWIG_FromLong((long)result);
2341 return resultobj;
2342 fail:
2343 return NULL;
2344}
2345
2346
2347static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2348 PyObject *resultobj;
2349 int *arg1 = (int *) 0 ;
2350 int *arg2 = (int *) 0 ;
2351 int temp1 ;
2352 int temp2 ;
2353 char *kwnames[] = {
2354 NULL
2355 };
2356
2357 arg1 = &temp1;
2358 arg2 = &temp2;
2359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2360 {
2361 if (!wxPyCheckForApp()) SWIG_fail;
2362 PyThreadState* __tstate = wxPyBeginAllowThreads();
2363 wxGetMousePosition(arg1,arg2);
2364
2365 wxPyEndAllowThreads(__tstate);
2366 if (PyErr_Occurred()) SWIG_fail;
2367 }
2368 Py_INCREF(Py_None); resultobj = Py_None;
2369 {
2370 PyObject *o = PyInt_FromLong((long) (*arg1));
2371 resultobj = t_output_helper(resultobj,o);
2372 }
2373 {
2374 PyObject *o = PyInt_FromLong((long) (*arg2));
2375 resultobj = t_output_helper(resultobj,o);
2376 }
2377 return resultobj;
2378 fail:
2379 return NULL;
2380}
2381
2382
2383static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2384 PyObject *resultobj;
2385 bool result;
2386 char *kwnames[] = {
2387 NULL
2388 };
2389
2390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2391 {
2392 PyThreadState* __tstate = wxPyBeginAllowThreads();
2393 result = (bool)wxIsBusy();
2394
2395 wxPyEndAllowThreads(__tstate);
2396 if (PyErr_Occurred()) SWIG_fail;
2397 }
2398 {
2399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2400 }
2401 return resultobj;
2402 fail:
2403 return NULL;
2404}
2405
2406
2407static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2408 PyObject *resultobj;
2409 wxString result;
2410 char *kwnames[] = {
2411 NULL
2412 };
2413
2414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2415 {
2416 PyThreadState* __tstate = wxPyBeginAllowThreads();
2417 result = wxNow();
2418
2419 wxPyEndAllowThreads(__tstate);
2420 if (PyErr_Occurred()) SWIG_fail;
2421 }
2422 {
2423#if wxUSE_UNICODE
2424 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2425#else
2426 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2427#endif
2428 }
2429 return resultobj;
2430 fail:
2431 return NULL;
2432}
2433
2434
2435static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2436 PyObject *resultobj;
2437 wxString const &arg1_defvalue = wxPyEmptyString ;
2438 wxString *arg1 = (wxString *) &arg1_defvalue ;
2439 bool result;
2440 bool temp1 = False ;
2441 PyObject * obj0 = 0 ;
2442 char *kwnames[] = {
2443 (char *) "command", NULL
2444 };
2445
2446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2447 if (obj0) {
2448 {
2449 arg1 = wxString_in_helper(obj0);
2450 if (arg1 == NULL) SWIG_fail;
2451 temp1 = True;
2452 }
2453 }
2454 {
2455 PyThreadState* __tstate = wxPyBeginAllowThreads();
2456 result = (bool)wxShell((wxString const &)*arg1);
2457
2458 wxPyEndAllowThreads(__tstate);
2459 if (PyErr_Occurred()) SWIG_fail;
2460 }
2461 {
2462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2463 }
2464 {
2465 if (temp1)
2466 delete arg1;
2467 }
2468 return resultobj;
2469 fail:
2470 {
2471 if (temp1)
2472 delete arg1;
2473 }
2474 return NULL;
2475}
2476
2477
2478static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 char *kwnames[] = {
2481 NULL
2482 };
2483
2484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2485 {
2486 PyThreadState* __tstate = wxPyBeginAllowThreads();
2487 wxStartTimer();
2488
2489 wxPyEndAllowThreads(__tstate);
2490 if (PyErr_Occurred()) SWIG_fail;
2491 }
2492 Py_INCREF(Py_None); resultobj = Py_None;
2493 return resultobj;
2494 fail:
2495 return NULL;
2496}
2497
2498
2499static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2500 PyObject *resultobj;
2501 int *arg1 = (int *) 0 ;
2502 int *arg2 = (int *) 0 ;
2503 int result;
2504 int temp1 ;
2505 int temp2 ;
2506 char *kwnames[] = {
2507 NULL
2508 };
2509
2510 arg1 = &temp1;
2511 arg2 = &temp2;
2512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2513 {
2514 PyThreadState* __tstate = wxPyBeginAllowThreads();
2515 result = (int)wxGetOsVersion(arg1,arg2);
2516
2517 wxPyEndAllowThreads(__tstate);
2518 if (PyErr_Occurred()) SWIG_fail;
2519 }
2520 resultobj = SWIG_FromInt((int)result);
2521 {
2522 PyObject *o = PyInt_FromLong((long) (*arg1));
2523 resultobj = t_output_helper(resultobj,o);
2524 }
2525 {
2526 PyObject *o = PyInt_FromLong((long) (*arg2));
2527 resultobj = t_output_helper(resultobj,o);
2528 }
2529 return resultobj;
2530 fail:
2531 return NULL;
2532}
2533
2534
2535static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2536 PyObject *resultobj;
2537 wxString result;
2538 char *kwnames[] = {
2539 NULL
2540 };
2541
2542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2543 {
2544 PyThreadState* __tstate = wxPyBeginAllowThreads();
2545 result = wxGetOsDescription();
2546
2547 wxPyEndAllowThreads(__tstate);
2548 if (PyErr_Occurred()) SWIG_fail;
2549 }
2550 {
2551#if wxUSE_UNICODE
2552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2553#else
2554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2555#endif
2556 }
2557 return resultobj;
2558 fail:
2559 return NULL;
2560}
2561
2562
2563static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2564 PyObject *resultobj;
2565 long result;
2566 char *kwnames[] = {
2567 NULL
2568 };
2569
2570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2571 {
2572 PyThreadState* __tstate = wxPyBeginAllowThreads();
2573 result = (long)wxGetFreeMemory();
2574
2575 wxPyEndAllowThreads(__tstate);
2576 if (PyErr_Occurred()) SWIG_fail;
2577 }
2578 resultobj = SWIG_FromLong((long)result);
2579 return resultobj;
2580 fail:
2581 return NULL;
2582}
2583
2584
2585static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2586 PyObject *resultobj;
2587 int arg1 ;
2588 bool result;
2589 PyObject * obj0 = 0 ;
2590 char *kwnames[] = {
2591 (char *) "wFlags", NULL
2592 };
2593
2594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2595 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2596 if (PyErr_Occurred()) SWIG_fail;
2597 {
2598 if (!wxPyCheckForApp()) SWIG_fail;
2599 PyThreadState* __tstate = wxPyBeginAllowThreads();
2600 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2601
2602 wxPyEndAllowThreads(__tstate);
2603 if (PyErr_Occurred()) SWIG_fail;
2604 }
2605 {
2606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2607 }
2608 return resultobj;
2609 fail:
2610 return NULL;
2611}
2612
2613
2614static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2615 PyObject *resultobj;
2616 int arg1 ;
2617 PyObject * obj0 = 0 ;
2618 char *kwnames[] = {
2619 (char *) "secs", NULL
2620 };
2621
2622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2623 arg1 = (int) SWIG_AsInt(obj0);
2624 if (PyErr_Occurred()) SWIG_fail;
2625 {
2626 PyThreadState* __tstate = wxPyBeginAllowThreads();
2627 wxSleep(arg1);
2628
2629 wxPyEndAllowThreads(__tstate);
2630 if (PyErr_Occurred()) SWIG_fail;
2631 }
2632 Py_INCREF(Py_None); resultobj = Py_None;
2633 return resultobj;
2634 fail:
2635 return NULL;
2636}
2637
2638
2639static PyObject *_wrap_MilliSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2640 PyObject *resultobj;
2641 unsigned long arg1 ;
2642 PyObject * obj0 = 0 ;
2643 char *kwnames[] = {
2644 (char *) "milliseconds", NULL
2645 };
2646
2647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
2648 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2649 if (PyErr_Occurred()) SWIG_fail;
2650 {
2651 PyThreadState* __tstate = wxPyBeginAllowThreads();
2652 wxMilliSleep(arg1);
2653
2654 wxPyEndAllowThreads(__tstate);
2655 if (PyErr_Occurred()) SWIG_fail;
2656 }
2657 Py_INCREF(Py_None); resultobj = Py_None;
2658 return resultobj;
2659 fail:
2660 return NULL;
2661}
2662
2663
2664static PyObject *_wrap_MicroSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2665 PyObject *resultobj;
2666 unsigned long arg1 ;
2667 PyObject * obj0 = 0 ;
2668 char *kwnames[] = {
2669 (char *) "microseconds", NULL
2670 };
2671
2672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
2673 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2674 if (PyErr_Occurred()) SWIG_fail;
2675 {
2676 PyThreadState* __tstate = wxPyBeginAllowThreads();
2677 wxMicroSleep(arg1);
2678
2679 wxPyEndAllowThreads(__tstate);
2680 if (PyErr_Occurred()) SWIG_fail;
2681 }
2682 Py_INCREF(Py_None); resultobj = Py_None;
2683 return resultobj;
2684 fail:
2685 return NULL;
2686}
2687
2688
2689static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2690 PyObject *resultobj;
2691 bool arg1 ;
2692 PyObject * obj0 = 0 ;
2693 char *kwnames[] = {
2694 (char *) "enable", NULL
2695 };
2696
2697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2698 arg1 = (bool) SWIG_AsBool(obj0);
2699 if (PyErr_Occurred()) SWIG_fail;
2700 {
2701 PyThreadState* __tstate = wxPyBeginAllowThreads();
2702 wxEnableTopLevelWindows(arg1);
2703
2704 wxPyEndAllowThreads(__tstate);
2705 if (PyErr_Occurred()) SWIG_fail;
2706 }
2707 Py_INCREF(Py_None); resultobj = Py_None;
2708 return resultobj;
2709 fail:
2710 return NULL;
2711}
2712
2713
2714static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2715 PyObject *resultobj;
2716 wxString *arg1 = 0 ;
2717 wxString result;
2718 bool temp1 = False ;
2719 PyObject * obj0 = 0 ;
2720 char *kwnames[] = {
2721 (char *) "in", NULL
2722 };
2723
2724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2725 {
2726 arg1 = wxString_in_helper(obj0);
2727 if (arg1 == NULL) SWIG_fail;
2728 temp1 = True;
2729 }
2730 {
2731 PyThreadState* __tstate = wxPyBeginAllowThreads();
2732 result = wxStripMenuCodes((wxString const &)*arg1);
2733
2734 wxPyEndAllowThreads(__tstate);
2735 if (PyErr_Occurred()) SWIG_fail;
2736 }
2737 {
2738#if wxUSE_UNICODE
2739 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2740#else
2741 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2742#endif
2743 }
2744 {
2745 if (temp1)
2746 delete arg1;
2747 }
2748 return resultobj;
2749 fail:
2750 {
2751 if (temp1)
2752 delete arg1;
2753 }
2754 return NULL;
2755}
2756
2757
2758static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2759 PyObject *resultobj;
2760 wxString result;
2761 char *kwnames[] = {
2762 NULL
2763 };
2764
2765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2766 {
2767 PyThreadState* __tstate = wxPyBeginAllowThreads();
2768 result = wxGetEmailAddress();
2769
2770 wxPyEndAllowThreads(__tstate);
2771 if (PyErr_Occurred()) SWIG_fail;
2772 }
2773 {
2774#if wxUSE_UNICODE
2775 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2776#else
2777 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2778#endif
2779 }
2780 return resultobj;
2781 fail:
2782 return NULL;
2783}
2784
2785
2786static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2787 PyObject *resultobj;
2788 wxString result;
2789 char *kwnames[] = {
2790 NULL
2791 };
2792
2793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2794 {
2795 PyThreadState* __tstate = wxPyBeginAllowThreads();
2796 result = wxGetHostName();
2797
2798 wxPyEndAllowThreads(__tstate);
2799 if (PyErr_Occurred()) SWIG_fail;
2800 }
2801 {
2802#if wxUSE_UNICODE
2803 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2804#else
2805 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2806#endif
2807 }
2808 return resultobj;
2809 fail:
2810 return NULL;
2811}
2812
2813
2814static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2815 PyObject *resultobj;
2816 wxString result;
2817 char *kwnames[] = {
2818 NULL
2819 };
2820
2821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2822 {
2823 PyThreadState* __tstate = wxPyBeginAllowThreads();
2824 result = wxGetFullHostName();
2825
2826 wxPyEndAllowThreads(__tstate);
2827 if (PyErr_Occurred()) SWIG_fail;
2828 }
2829 {
2830#if wxUSE_UNICODE
2831 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2832#else
2833 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2834#endif
2835 }
2836 return resultobj;
2837 fail:
2838 return NULL;
2839}
2840
2841
2842static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2843 PyObject *resultobj;
2844 wxString result;
2845 char *kwnames[] = {
2846 NULL
2847 };
2848
2849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2850 {
2851 PyThreadState* __tstate = wxPyBeginAllowThreads();
2852 result = wxGetUserId();
2853
2854 wxPyEndAllowThreads(__tstate);
2855 if (PyErr_Occurred()) SWIG_fail;
2856 }
2857 {
2858#if wxUSE_UNICODE
2859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2860#else
2861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2862#endif
2863 }
2864 return resultobj;
2865 fail:
2866 return NULL;
2867}
2868
2869
2870static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2871 PyObject *resultobj;
2872 wxString result;
2873 char *kwnames[] = {
2874 NULL
2875 };
2876
2877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2878 {
2879 PyThreadState* __tstate = wxPyBeginAllowThreads();
2880 result = wxGetUserName();
2881
2882 wxPyEndAllowThreads(__tstate);
2883 if (PyErr_Occurred()) SWIG_fail;
2884 }
2885 {
2886#if wxUSE_UNICODE
2887 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2888#else
2889 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2890#endif
2891 }
2892 return resultobj;
2893 fail:
2894 return NULL;
2895}
2896
2897
2898static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2899 PyObject *resultobj;
2900 wxString result;
2901 char *kwnames[] = {
2902 NULL
2903 };
2904
2905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2906 {
2907 PyThreadState* __tstate = wxPyBeginAllowThreads();
2908 result = wxGetHomeDir();
2909
2910 wxPyEndAllowThreads(__tstate);
2911 if (PyErr_Occurred()) SWIG_fail;
2912 }
2913 {
2914#if wxUSE_UNICODE
2915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2916#else
2917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2918#endif
2919 }
2920 return resultobj;
2921 fail:
2922 return NULL;
2923}
2924
2925
2926static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2927 PyObject *resultobj;
2928 wxString const &arg1_defvalue = wxPyEmptyString ;
2929 wxString *arg1 = (wxString *) &arg1_defvalue ;
2930 wxString result;
2931 bool temp1 = False ;
2932 PyObject * obj0 = 0 ;
2933 char *kwnames[] = {
2934 (char *) "user", NULL
2935 };
2936
2937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2938 if (obj0) {
2939 {
2940 arg1 = wxString_in_helper(obj0);
2941 if (arg1 == NULL) SWIG_fail;
2942 temp1 = True;
2943 }
2944 }
2945 {
2946 PyThreadState* __tstate = wxPyBeginAllowThreads();
2947 result = wxGetUserHome((wxString const &)*arg1);
2948
2949 wxPyEndAllowThreads(__tstate);
2950 if (PyErr_Occurred()) SWIG_fail;
2951 }
2952 {
2953#if wxUSE_UNICODE
2954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2955#else
2956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2957#endif
2958 }
2959 {
2960 if (temp1)
2961 delete arg1;
2962 }
2963 return resultobj;
2964 fail:
2965 {
2966 if (temp1)
2967 delete arg1;
2968 }
2969 return NULL;
2970}
2971
2972
2973static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2974 PyObject *resultobj;
2975 unsigned long result;
2976 char *kwnames[] = {
2977 NULL
2978 };
2979
2980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2981 {
2982 PyThreadState* __tstate = wxPyBeginAllowThreads();
2983 result = (unsigned long)wxGetProcessId();
2984
2985 wxPyEndAllowThreads(__tstate);
2986 if (PyErr_Occurred()) SWIG_fail;
2987 }
2988 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2989 return resultobj;
2990 fail:
2991 return NULL;
2992}
2993
2994
2995static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2996 PyObject *resultobj;
2997 char *kwnames[] = {
2998 NULL
2999 };
3000
3001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
3002 {
3003 PyThreadState* __tstate = wxPyBeginAllowThreads();
3004 wxTrap();
3005
3006 wxPyEndAllowThreads(__tstate);
3007 if (PyErr_Occurred()) SWIG_fail;
3008 }
3009 Py_INCREF(Py_None); resultobj = Py_None;
3010 return resultobj;
3011 fail:
3012 return NULL;
3013}
3014
3015
3016static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3017 PyObject *resultobj;
3018 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
3019 wxString *arg1 = (wxString *) &arg1_defvalue ;
3020 wxString const &arg2_defvalue = wxPyEmptyString ;
3021 wxString *arg2 = (wxString *) &arg2_defvalue ;
3022 wxString const &arg3_defvalue = wxPyEmptyString ;
3023 wxString *arg3 = (wxString *) &arg3_defvalue ;
3024 wxString const &arg4_defvalue = wxPyEmptyString ;
3025 wxString *arg4 = (wxString *) &arg4_defvalue ;
3026 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
3027 wxString *arg5 = (wxString *) &arg5_defvalue ;
3028 int arg6 = (int) 0 ;
3029 wxWindow *arg7 = (wxWindow *) NULL ;
3030 int arg8 = (int) -1 ;
3031 int arg9 = (int) -1 ;
3032 wxString result;
3033 bool temp1 = False ;
3034 bool temp2 = False ;
3035 bool temp3 = False ;
3036 bool temp4 = False ;
3037 bool temp5 = False ;
3038 PyObject * obj0 = 0 ;
3039 PyObject * obj1 = 0 ;
3040 PyObject * obj2 = 0 ;
3041 PyObject * obj3 = 0 ;
3042 PyObject * obj4 = 0 ;
3043 PyObject * obj5 = 0 ;
3044 PyObject * obj6 = 0 ;
3045 PyObject * obj7 = 0 ;
3046 PyObject * obj8 = 0 ;
3047 char *kwnames[] = {
3048 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
3049 };
3050
3051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3052 if (obj0) {
3053 {
3054 arg1 = wxString_in_helper(obj0);
3055 if (arg1 == NULL) SWIG_fail;
3056 temp1 = True;
3057 }
3058 }
3059 if (obj1) {
3060 {
3061 arg2 = wxString_in_helper(obj1);
3062 if (arg2 == NULL) SWIG_fail;
3063 temp2 = True;
3064 }
3065 }
3066 if (obj2) {
3067 {
3068 arg3 = wxString_in_helper(obj2);
3069 if (arg3 == NULL) SWIG_fail;
3070 temp3 = True;
3071 }
3072 }
3073 if (obj3) {
3074 {
3075 arg4 = wxString_in_helper(obj3);
3076 if (arg4 == NULL) SWIG_fail;
3077 temp4 = True;
3078 }
3079 }
3080 if (obj4) {
3081 {
3082 arg5 = wxString_in_helper(obj4);
3083 if (arg5 == NULL) SWIG_fail;
3084 temp5 = True;
3085 }
3086 }
3087 if (obj5) {
3088 arg6 = (int) SWIG_AsInt(obj5);
3089 if (PyErr_Occurred()) SWIG_fail;
3090 }
3091 if (obj6) {
3092 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3094 }
3095 if (obj7) {
3096 arg8 = (int) SWIG_AsInt(obj7);
3097 if (PyErr_Occurred()) SWIG_fail;
3098 }
3099 if (obj8) {
3100 arg9 = (int) SWIG_AsInt(obj8);
3101 if (PyErr_Occurred()) SWIG_fail;
3102 }
3103 {
3104 if (!wxPyCheckForApp()) SWIG_fail;
3105 PyThreadState* __tstate = wxPyBeginAllowThreads();
3106 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
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 {
3131 if (temp4)
3132 delete arg4;
3133 }
3134 {
3135 if (temp5)
3136 delete arg5;
3137 }
3138 return resultobj;
3139 fail:
3140 {
3141 if (temp1)
3142 delete arg1;
3143 }
3144 {
3145 if (temp2)
3146 delete arg2;
3147 }
3148 {
3149 if (temp3)
3150 delete arg3;
3151 }
3152 {
3153 if (temp4)
3154 delete arg4;
3155 }
3156 {
3157 if (temp5)
3158 delete arg5;
3159 }
3160 return NULL;
3161}
3162
3163
3164static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3165 PyObject *resultobj;
3166 wxString *arg1 = 0 ;
3167 wxString *arg2 = 0 ;
3168 wxString const &arg3_defvalue = wxPyEmptyString ;
3169 wxString *arg3 = (wxString *) &arg3_defvalue ;
3170 wxWindow *arg4 = (wxWindow *) NULL ;
3171 wxString result;
3172 bool temp1 = False ;
3173 bool temp2 = False ;
3174 bool temp3 = False ;
3175 PyObject * obj0 = 0 ;
3176 PyObject * obj1 = 0 ;
3177 PyObject * obj2 = 0 ;
3178 PyObject * obj3 = 0 ;
3179 char *kwnames[] = {
3180 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3181 };
3182
3183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3184 {
3185 arg1 = wxString_in_helper(obj0);
3186 if (arg1 == NULL) SWIG_fail;
3187 temp1 = True;
3188 }
3189 {
3190 arg2 = wxString_in_helper(obj1);
3191 if (arg2 == NULL) SWIG_fail;
3192 temp2 = True;
3193 }
3194 if (obj2) {
3195 {
3196 arg3 = wxString_in_helper(obj2);
3197 if (arg3 == NULL) SWIG_fail;
3198 temp3 = True;
3199 }
3200 }
3201 if (obj3) {
3202 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3204 }
3205 {
3206 if (!wxPyCheckForApp()) SWIG_fail;
3207 PyThreadState* __tstate = wxPyBeginAllowThreads();
3208 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3209
3210 wxPyEndAllowThreads(__tstate);
3211 if (PyErr_Occurred()) SWIG_fail;
3212 }
3213 {
3214#if wxUSE_UNICODE
3215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3216#else
3217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3218#endif
3219 }
3220 {
3221 if (temp1)
3222 delete arg1;
3223 }
3224 {
3225 if (temp2)
3226 delete arg2;
3227 }
3228 {
3229 if (temp3)
3230 delete arg3;
3231 }
3232 return resultobj;
3233 fail:
3234 {
3235 if (temp1)
3236 delete arg1;
3237 }
3238 {
3239 if (temp2)
3240 delete arg2;
3241 }
3242 {
3243 if (temp3)
3244 delete arg3;
3245 }
3246 return NULL;
3247}
3248
3249
3250static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3251 PyObject *resultobj;
3252 wxString *arg1 = 0 ;
3253 wxString *arg2 = 0 ;
3254 wxString const &arg3_defvalue = wxPyEmptyString ;
3255 wxString *arg3 = (wxString *) &arg3_defvalue ;
3256 wxWindow *arg4 = (wxWindow *) NULL ;
3257 wxString result;
3258 bool temp1 = False ;
3259 bool temp2 = False ;
3260 bool temp3 = False ;
3261 PyObject * obj0 = 0 ;
3262 PyObject * obj1 = 0 ;
3263 PyObject * obj2 = 0 ;
3264 PyObject * obj3 = 0 ;
3265 char *kwnames[] = {
3266 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3267 };
3268
3269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3270 {
3271 arg1 = wxString_in_helper(obj0);
3272 if (arg1 == NULL) SWIG_fail;
3273 temp1 = True;
3274 }
3275 {
3276 arg2 = wxString_in_helper(obj1);
3277 if (arg2 == NULL) SWIG_fail;
3278 temp2 = True;
3279 }
3280 if (obj2) {
3281 {
3282 arg3 = wxString_in_helper(obj2);
3283 if (arg3 == NULL) SWIG_fail;
3284 temp3 = True;
3285 }
3286 }
3287 if (obj3) {
3288 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3290 }
3291 {
3292 if (!wxPyCheckForApp()) SWIG_fail;
3293 PyThreadState* __tstate = wxPyBeginAllowThreads();
3294 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3295
3296 wxPyEndAllowThreads(__tstate);
3297 if (PyErr_Occurred()) SWIG_fail;
3298 }
3299 {
3300#if wxUSE_UNICODE
3301 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3302#else
3303 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3304#endif
3305 }
3306 {
3307 if (temp1)
3308 delete arg1;
3309 }
3310 {
3311 if (temp2)
3312 delete arg2;
3313 }
3314 {
3315 if (temp3)
3316 delete arg3;
3317 }
3318 return resultobj;
3319 fail:
3320 {
3321 if (temp1)
3322 delete arg1;
3323 }
3324 {
3325 if (temp2)
3326 delete arg2;
3327 }
3328 {
3329 if (temp3)
3330 delete arg3;
3331 }
3332 return NULL;
3333}
3334
3335
3336static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3337 PyObject *resultobj;
3338 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3339 wxString *arg1 = (wxString *) &arg1_defvalue ;
3340 wxString const &arg2_defvalue = wxPyEmptyString ;
3341 wxString *arg2 = (wxString *) &arg2_defvalue ;
3342 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3343 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3344 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3345 wxWindow *arg5 = (wxWindow *) NULL ;
3346 wxString result;
3347 bool temp1 = False ;
3348 bool temp2 = False ;
3349 wxPoint temp4 ;
3350 PyObject * obj0 = 0 ;
3351 PyObject * obj1 = 0 ;
3352 PyObject * obj2 = 0 ;
3353 PyObject * obj3 = 0 ;
3354 PyObject * obj4 = 0 ;
3355 char *kwnames[] = {
3356 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3357 };
3358
3359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3360 if (obj0) {
3361 {
3362 arg1 = wxString_in_helper(obj0);
3363 if (arg1 == NULL) SWIG_fail;
3364 temp1 = True;
3365 }
3366 }
3367 if (obj1) {
3368 {
3369 arg2 = wxString_in_helper(obj1);
3370 if (arg2 == NULL) SWIG_fail;
3371 temp2 = True;
3372 }
3373 }
3374 if (obj2) {
3375 arg3 = (long) SWIG_AsLong(obj2);
3376 if (PyErr_Occurred()) SWIG_fail;
3377 }
3378 if (obj3) {
3379 {
3380 arg4 = &temp4;
3381 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3382 }
3383 }
3384 if (obj4) {
3385 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3387 }
3388 {
3389 if (!wxPyCheckForApp()) SWIG_fail;
3390 PyThreadState* __tstate = wxPyBeginAllowThreads();
3391 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3392
3393 wxPyEndAllowThreads(__tstate);
3394 if (PyErr_Occurred()) SWIG_fail;
3395 }
3396 {
3397#if wxUSE_UNICODE
3398 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3399#else
3400 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3401#endif
3402 }
3403 {
3404 if (temp1)
3405 delete arg1;
3406 }
3407 {
3408 if (temp2)
3409 delete arg2;
3410 }
3411 return resultobj;
3412 fail:
3413 {
3414 if (temp1)
3415 delete arg1;
3416 }
3417 {
3418 if (temp2)
3419 delete arg2;
3420 }
3421 return NULL;
3422}
3423
3424
3425static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3426 PyObject *resultobj;
3427 wxString *arg1 = 0 ;
3428 wxString const &arg2_defvalue = wxPyEmptyString ;
3429 wxString *arg2 = (wxString *) &arg2_defvalue ;
3430 wxString const &arg3_defvalue = wxPyEmptyString ;
3431 wxString *arg3 = (wxString *) &arg3_defvalue ;
3432 wxWindow *arg4 = (wxWindow *) NULL ;
3433 int arg5 = (int) -1 ;
3434 int arg6 = (int) -1 ;
3435 bool arg7 = (bool) True ;
3436 wxString result;
3437 bool temp1 = False ;
3438 bool temp2 = False ;
3439 bool temp3 = False ;
3440 PyObject * obj0 = 0 ;
3441 PyObject * obj1 = 0 ;
3442 PyObject * obj2 = 0 ;
3443 PyObject * obj3 = 0 ;
3444 PyObject * obj4 = 0 ;
3445 PyObject * obj5 = 0 ;
3446 PyObject * obj6 = 0 ;
3447 char *kwnames[] = {
3448 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3449 };
3450
3451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3452 {
3453 arg1 = wxString_in_helper(obj0);
3454 if (arg1 == NULL) SWIG_fail;
3455 temp1 = True;
3456 }
3457 if (obj1) {
3458 {
3459 arg2 = wxString_in_helper(obj1);
3460 if (arg2 == NULL) SWIG_fail;
3461 temp2 = True;
3462 }
3463 }
3464 if (obj2) {
3465 {
3466 arg3 = wxString_in_helper(obj2);
3467 if (arg3 == NULL) SWIG_fail;
3468 temp3 = True;
3469 }
3470 }
3471 if (obj3) {
3472 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3474 }
3475 if (obj4) {
3476 arg5 = (int) SWIG_AsInt(obj4);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 }
3479 if (obj5) {
3480 arg6 = (int) SWIG_AsInt(obj5);
3481 if (PyErr_Occurred()) SWIG_fail;
3482 }
3483 if (obj6) {
3484 arg7 = (bool) SWIG_AsBool(obj6);
3485 if (PyErr_Occurred()) SWIG_fail;
3486 }
3487 {
3488 if (!wxPyCheckForApp()) SWIG_fail;
3489 PyThreadState* __tstate = wxPyBeginAllowThreads();
3490 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3491
3492 wxPyEndAllowThreads(__tstate);
3493 if (PyErr_Occurred()) SWIG_fail;
3494 }
3495 {
3496#if wxUSE_UNICODE
3497 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3498#else
3499 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3500#endif
3501 }
3502 {
3503 if (temp1)
3504 delete arg1;
3505 }
3506 {
3507 if (temp2)
3508 delete arg2;
3509 }
3510 {
3511 if (temp3)
3512 delete arg3;
3513 }
3514 return resultobj;
3515 fail:
3516 {
3517 if (temp1)
3518 delete arg1;
3519 }
3520 {
3521 if (temp2)
3522 delete arg2;
3523 }
3524 {
3525 if (temp3)
3526 delete arg3;
3527 }
3528 return NULL;
3529}
3530
3531
3532static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3533 PyObject *resultobj;
3534 wxString *arg1 = 0 ;
3535 wxString const &arg2_defvalue = wxPyEmptyString ;
3536 wxString *arg2 = (wxString *) &arg2_defvalue ;
3537 wxString const &arg3_defvalue = wxPyEmptyString ;
3538 wxString *arg3 = (wxString *) &arg3_defvalue ;
3539 wxWindow *arg4 = (wxWindow *) NULL ;
3540 wxString result;
3541 bool temp1 = False ;
3542 bool temp2 = False ;
3543 bool temp3 = False ;
3544 PyObject * obj0 = 0 ;
3545 PyObject * obj1 = 0 ;
3546 PyObject * obj2 = 0 ;
3547 PyObject * obj3 = 0 ;
3548 char *kwnames[] = {
3549 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3550 };
3551
3552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3553 {
3554 arg1 = wxString_in_helper(obj0);
3555 if (arg1 == NULL) SWIG_fail;
3556 temp1 = True;
3557 }
3558 if (obj1) {
3559 {
3560 arg2 = wxString_in_helper(obj1);
3561 if (arg2 == NULL) SWIG_fail;
3562 temp2 = True;
3563 }
3564 }
3565 if (obj2) {
3566 {
3567 arg3 = wxString_in_helper(obj2);
3568 if (arg3 == NULL) SWIG_fail;
3569 temp3 = True;
3570 }
3571 }
3572 if (obj3) {
3573 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3575 }
3576 {
3577 if (!wxPyCheckForApp()) SWIG_fail;
3578 PyThreadState* __tstate = wxPyBeginAllowThreads();
3579 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3580
3581 wxPyEndAllowThreads(__tstate);
3582 if (PyErr_Occurred()) SWIG_fail;
3583 }
3584 {
3585#if wxUSE_UNICODE
3586 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3587#else
3588 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3589#endif
3590 }
3591 {
3592 if (temp1)
3593 delete arg1;
3594 }
3595 {
3596 if (temp2)
3597 delete arg2;
3598 }
3599 {
3600 if (temp3)
3601 delete arg3;
3602 }
3603 return resultobj;
3604 fail:
3605 {
3606 if (temp1)
3607 delete arg1;
3608 }
3609 {
3610 if (temp2)
3611 delete arg2;
3612 }
3613 {
3614 if (temp3)
3615 delete arg3;
3616 }
3617 return NULL;
3618}
3619
3620
3621static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3622 PyObject *resultobj;
3623 wxString *arg1 = 0 ;
3624 wxString *arg2 = 0 ;
3625 int arg3 ;
3626 wxString *arg4 = (wxString *) 0 ;
3627 wxWindow *arg5 = (wxWindow *) NULL ;
3628 int arg6 = (int) -1 ;
3629 int arg7 = (int) -1 ;
3630 bool arg8 = (bool) True ;
3631 int arg9 = (int) 150 ;
3632 int arg10 = (int) 200 ;
3633 wxString result;
3634 bool temp1 = False ;
3635 bool temp2 = False ;
3636 PyObject * obj0 = 0 ;
3637 PyObject * obj1 = 0 ;
3638 PyObject * obj2 = 0 ;
3639 PyObject * obj3 = 0 ;
3640 PyObject * obj4 = 0 ;
3641 PyObject * obj5 = 0 ;
3642 PyObject * obj6 = 0 ;
3643 PyObject * obj7 = 0 ;
3644 PyObject * obj8 = 0 ;
3645 char *kwnames[] = {
3646 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3647 };
3648
3649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3650 {
3651 arg1 = wxString_in_helper(obj0);
3652 if (arg1 == NULL) SWIG_fail;
3653 temp1 = True;
3654 }
3655 {
3656 arg2 = wxString_in_helper(obj1);
3657 if (arg2 == NULL) SWIG_fail;
3658 temp2 = True;
3659 }
3660 {
3661 arg3 = PyList_Size(obj2);
3662 arg4 = wxString_LIST_helper(obj2);
3663 if (arg4 == NULL) SWIG_fail;
3664 }
3665 if (obj3) {
3666 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3668 }
3669 if (obj4) {
3670 arg6 = (int) SWIG_AsInt(obj4);
3671 if (PyErr_Occurred()) SWIG_fail;
3672 }
3673 if (obj5) {
3674 arg7 = (int) SWIG_AsInt(obj5);
3675 if (PyErr_Occurred()) SWIG_fail;
3676 }
3677 if (obj6) {
3678 arg8 = (bool) SWIG_AsBool(obj6);
3679 if (PyErr_Occurred()) SWIG_fail;
3680 }
3681 if (obj7) {
3682 arg9 = (int) SWIG_AsInt(obj7);
3683 if (PyErr_Occurred()) SWIG_fail;
3684 }
3685 if (obj8) {
3686 arg10 = (int) SWIG_AsInt(obj8);
3687 if (PyErr_Occurred()) SWIG_fail;
3688 }
3689 {
3690 if (!wxPyCheckForApp()) SWIG_fail;
3691 PyThreadState* __tstate = wxPyBeginAllowThreads();
3692 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3693
3694 wxPyEndAllowThreads(__tstate);
3695 if (PyErr_Occurred()) SWIG_fail;
3696 }
3697 {
3698#if wxUSE_UNICODE
3699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3700#else
3701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3702#endif
3703 }
3704 {
3705 if (temp1)
3706 delete arg1;
3707 }
3708 {
3709 if (temp2)
3710 delete arg2;
3711 }
3712 {
3713 if (arg4) delete [] arg4;
3714 }
3715 return resultobj;
3716 fail:
3717 {
3718 if (temp1)
3719 delete arg1;
3720 }
3721 {
3722 if (temp2)
3723 delete arg2;
3724 }
3725 {
3726 if (arg4) delete [] arg4;
3727 }
3728 return NULL;
3729}
3730
3731
3732static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3733 PyObject *resultobj;
3734 wxString *arg1 = 0 ;
3735 wxString *arg2 = 0 ;
3736 int arg3 ;
3737 wxString *arg4 = (wxString *) 0 ;
3738 wxWindow *arg5 = (wxWindow *) NULL ;
3739 int arg6 = (int) -1 ;
3740 int arg7 = (int) -1 ;
3741 bool arg8 = (bool) True ;
3742 int arg9 = (int) 150 ;
3743 int arg10 = (int) 200 ;
3744 int result;
3745 bool temp1 = False ;
3746 bool temp2 = False ;
3747 PyObject * obj0 = 0 ;
3748 PyObject * obj1 = 0 ;
3749 PyObject * obj2 = 0 ;
3750 PyObject * obj3 = 0 ;
3751 PyObject * obj4 = 0 ;
3752 PyObject * obj5 = 0 ;
3753 PyObject * obj6 = 0 ;
3754 PyObject * obj7 = 0 ;
3755 PyObject * obj8 = 0 ;
3756 char *kwnames[] = {
3757 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3758 };
3759
3760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3761 {
3762 arg1 = wxString_in_helper(obj0);
3763 if (arg1 == NULL) SWIG_fail;
3764 temp1 = True;
3765 }
3766 {
3767 arg2 = wxString_in_helper(obj1);
3768 if (arg2 == NULL) SWIG_fail;
3769 temp2 = True;
3770 }
3771 {
3772 arg3 = PyList_Size(obj2);
3773 arg4 = wxString_LIST_helper(obj2);
3774 if (arg4 == NULL) SWIG_fail;
3775 }
3776 if (obj3) {
3777 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3779 }
3780 if (obj4) {
3781 arg6 = (int) SWIG_AsInt(obj4);
3782 if (PyErr_Occurred()) SWIG_fail;
3783 }
3784 if (obj5) {
3785 arg7 = (int) SWIG_AsInt(obj5);
3786 if (PyErr_Occurred()) SWIG_fail;
3787 }
3788 if (obj6) {
3789 arg8 = (bool) SWIG_AsBool(obj6);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 if (obj7) {
3793 arg9 = (int) SWIG_AsInt(obj7);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 if (obj8) {
3797 arg10 = (int) SWIG_AsInt(obj8);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 {
3801 if (!wxPyCheckForApp()) SWIG_fail;
3802 PyThreadState* __tstate = wxPyBeginAllowThreads();
3803 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3804
3805 wxPyEndAllowThreads(__tstate);
3806 if (PyErr_Occurred()) SWIG_fail;
3807 }
3808 resultobj = SWIG_FromInt((int)result);
3809 {
3810 if (temp1)
3811 delete arg1;
3812 }
3813 {
3814 if (temp2)
3815 delete arg2;
3816 }
3817 {
3818 if (arg4) delete [] arg4;
3819 }
3820 return resultobj;
3821 fail:
3822 {
3823 if (temp1)
3824 delete arg1;
3825 }
3826 {
3827 if (temp2)
3828 delete arg2;
3829 }
3830 {
3831 if (arg4) delete [] arg4;
3832 }
3833 return NULL;
3834}
3835
3836
3837static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3838 PyObject *resultobj;
3839 wxString *arg1 = 0 ;
3840 wxString const &arg2_defvalue = wxPyEmptyString ;
3841 wxString *arg2 = (wxString *) &arg2_defvalue ;
3842 int arg3 = (int) wxOK|wxCENTRE ;
3843 wxWindow *arg4 = (wxWindow *) NULL ;
3844 int arg5 = (int) -1 ;
3845 int arg6 = (int) -1 ;
3846 int result;
3847 bool temp1 = False ;
3848 bool temp2 = False ;
3849 PyObject * obj0 = 0 ;
3850 PyObject * obj1 = 0 ;
3851 PyObject * obj2 = 0 ;
3852 PyObject * obj3 = 0 ;
3853 PyObject * obj4 = 0 ;
3854 PyObject * obj5 = 0 ;
3855 char *kwnames[] = {
3856 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3857 };
3858
3859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3860 {
3861 arg1 = wxString_in_helper(obj0);
3862 if (arg1 == NULL) SWIG_fail;
3863 temp1 = True;
3864 }
3865 if (obj1) {
3866 {
3867 arg2 = wxString_in_helper(obj1);
3868 if (arg2 == NULL) SWIG_fail;
3869 temp2 = True;
3870 }
3871 }
3872 if (obj2) {
3873 arg3 = (int) SWIG_AsInt(obj2);
3874 if (PyErr_Occurred()) SWIG_fail;
3875 }
3876 if (obj3) {
3877 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3879 }
3880 if (obj4) {
3881 arg5 = (int) SWIG_AsInt(obj4);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 }
3884 if (obj5) {
3885 arg6 = (int) SWIG_AsInt(obj5);
3886 if (PyErr_Occurred()) SWIG_fail;
3887 }
3888 {
3889 if (!wxPyCheckForApp()) SWIG_fail;
3890 PyThreadState* __tstate = wxPyBeginAllowThreads();
3891 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3892
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 }
3896 resultobj = SWIG_FromInt((int)result);
3897 {
3898 if (temp1)
3899 delete arg1;
3900 }
3901 {
3902 if (temp2)
3903 delete arg2;
3904 }
3905 return resultobj;
3906 fail:
3907 {
3908 if (temp1)
3909 delete arg1;
3910 }
3911 {
3912 if (temp2)
3913 delete arg2;
3914 }
3915 return NULL;
3916}
3917
3918
3919static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3920 PyObject *resultobj;
3921 wxString *arg1 = 0 ;
3922 wxString *arg2 = 0 ;
3923 wxString *arg3 = 0 ;
3924 long arg4 ;
3925 long arg5 = (long) 0 ;
3926 long arg6 = (long) 100 ;
3927 wxWindow *arg7 = (wxWindow *) NULL ;
3928 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3929 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3930 long result;
3931 bool temp1 = False ;
3932 bool temp2 = False ;
3933 bool temp3 = False ;
3934 wxPoint temp8 ;
3935 PyObject * obj0 = 0 ;
3936 PyObject * obj1 = 0 ;
3937 PyObject * obj2 = 0 ;
3938 PyObject * obj3 = 0 ;
3939 PyObject * obj4 = 0 ;
3940 PyObject * obj5 = 0 ;
3941 PyObject * obj6 = 0 ;
3942 PyObject * obj7 = 0 ;
3943 char *kwnames[] = {
3944 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3945 };
3946
3947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3948 {
3949 arg1 = wxString_in_helper(obj0);
3950 if (arg1 == NULL) SWIG_fail;
3951 temp1 = True;
3952 }
3953 {
3954 arg2 = wxString_in_helper(obj1);
3955 if (arg2 == NULL) SWIG_fail;
3956 temp2 = True;
3957 }
3958 {
3959 arg3 = wxString_in_helper(obj2);
3960 if (arg3 == NULL) SWIG_fail;
3961 temp3 = True;
3962 }
3963 arg4 = (long) SWIG_AsLong(obj3);
3964 if (PyErr_Occurred()) SWIG_fail;
3965 if (obj4) {
3966 arg5 = (long) SWIG_AsLong(obj4);
3967 if (PyErr_Occurred()) SWIG_fail;
3968 }
3969 if (obj5) {
3970 arg6 = (long) SWIG_AsLong(obj5);
3971 if (PyErr_Occurred()) SWIG_fail;
3972 }
3973 if (obj6) {
3974 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3976 }
3977 if (obj7) {
3978 {
3979 arg8 = &temp8;
3980 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3981 }
3982 }
3983 {
3984 if (!wxPyCheckForApp()) SWIG_fail;
3985 PyThreadState* __tstate = wxPyBeginAllowThreads();
3986 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3987
3988 wxPyEndAllowThreads(__tstate);
3989 if (PyErr_Occurred()) SWIG_fail;
3990 }
3991 resultobj = SWIG_FromLong((long)result);
3992 {
3993 if (temp1)
3994 delete arg1;
3995 }
3996 {
3997 if (temp2)
3998 delete arg2;
3999 }
4000 {
4001 if (temp3)
4002 delete arg3;
4003 }
4004 return resultobj;
4005 fail:
4006 {
4007 if (temp1)
4008 delete arg1;
4009 }
4010 {
4011 if (temp2)
4012 delete arg2;
4013 }
4014 {
4015 if (temp3)
4016 delete arg3;
4017 }
4018 return NULL;
4019}
4020
4021
4022static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj;
4024 bool result;
4025 char *kwnames[] = {
4026 NULL
4027 };
4028
4029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
4030 {
4031 if (!wxPyCheckForApp()) SWIG_fail;
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 result = (bool)wxColourDisplay();
4034
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 {
4039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4040 }
4041 return resultobj;
4042 fail:
4043 return NULL;
4044}
4045
4046
4047static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4048 PyObject *resultobj;
4049 int result;
4050 char *kwnames[] = {
4051 NULL
4052 };
4053
4054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
4055 {
4056 if (!wxPyCheckForApp()) SWIG_fail;
4057 PyThreadState* __tstate = wxPyBeginAllowThreads();
4058 result = (int)wxDisplayDepth();
4059
4060 wxPyEndAllowThreads(__tstate);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 }
4063 resultobj = SWIG_FromInt((int)result);
4064 return resultobj;
4065 fail:
4066 return NULL;
4067}
4068
4069
4070static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4071 PyObject *resultobj;
4072 int result;
4073 char *kwnames[] = {
4074 NULL
4075 };
4076
4077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
4078 {
4079 if (!wxPyCheckForApp()) SWIG_fail;
4080 PyThreadState* __tstate = wxPyBeginAllowThreads();
4081 result = (int)wxGetDisplayDepth();
4082
4083 wxPyEndAllowThreads(__tstate);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 resultobj = SWIG_FromInt((int)result);
4087 return resultobj;
4088 fail:
4089 return NULL;
4090}
4091
4092
4093static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
4094 PyObject *resultobj;
4095 int *arg1 = (int *) 0 ;
4096 int *arg2 = (int *) 0 ;
4097 int temp1 ;
4098 int temp2 ;
4099 char *kwnames[] = {
4100 NULL
4101 };
4102
4103 arg1 = &temp1;
4104 arg2 = &temp2;
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4106 {
4107 if (!wxPyCheckForApp()) SWIG_fail;
4108 PyThreadState* __tstate = wxPyBeginAllowThreads();
4109 wxDisplaySize(arg1,arg2);
4110
4111 wxPyEndAllowThreads(__tstate);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 Py_INCREF(Py_None); resultobj = Py_None;
4115 {
4116 PyObject *o = PyInt_FromLong((long) (*arg1));
4117 resultobj = t_output_helper(resultobj,o);
4118 }
4119 {
4120 PyObject *o = PyInt_FromLong((long) (*arg2));
4121 resultobj = t_output_helper(resultobj,o);
4122 }
4123 return resultobj;
4124 fail:
4125 return NULL;
4126}
4127
4128
4129static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
4130 PyObject *resultobj;
4131 wxSize result;
4132 char *kwnames[] = {
4133 NULL
4134 };
4135
4136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4137 {
4138 if (!wxPyCheckForApp()) SWIG_fail;
4139 PyThreadState* __tstate = wxPyBeginAllowThreads();
4140 result = wxGetDisplaySize();
4141
4142 wxPyEndAllowThreads(__tstate);
4143 if (PyErr_Occurred()) SWIG_fail;
4144 }
4145 {
4146 wxSize * resultptr;
4147 resultptr = new wxSize((wxSize &) result);
4148 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4149 }
4150 return resultobj;
4151 fail:
4152 return NULL;
4153}
4154
4155
4156static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4157 PyObject *resultobj;
4158 int *arg1 = (int *) 0 ;
4159 int *arg2 = (int *) 0 ;
4160 int temp1 ;
4161 int temp2 ;
4162 char *kwnames[] = {
4163 NULL
4164 };
4165
4166 arg1 = &temp1;
4167 arg2 = &temp2;
4168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4169 {
4170 if (!wxPyCheckForApp()) SWIG_fail;
4171 PyThreadState* __tstate = wxPyBeginAllowThreads();
4172 wxDisplaySizeMM(arg1,arg2);
4173
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 Py_INCREF(Py_None); resultobj = Py_None;
4178 {
4179 PyObject *o = PyInt_FromLong((long) (*arg1));
4180 resultobj = t_output_helper(resultobj,o);
4181 }
4182 {
4183 PyObject *o = PyInt_FromLong((long) (*arg2));
4184 resultobj = t_output_helper(resultobj,o);
4185 }
4186 return resultobj;
4187 fail:
4188 return NULL;
4189}
4190
4191
4192static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4193 PyObject *resultobj;
4194 wxSize result;
4195 char *kwnames[] = {
4196 NULL
4197 };
4198
4199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4200 {
4201 if (!wxPyCheckForApp()) SWIG_fail;
4202 PyThreadState* __tstate = wxPyBeginAllowThreads();
4203 result = wxGetDisplaySizeMM();
4204
4205 wxPyEndAllowThreads(__tstate);
4206 if (PyErr_Occurred()) SWIG_fail;
4207 }
4208 {
4209 wxSize * resultptr;
4210 resultptr = new wxSize((wxSize &) result);
4211 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4212 }
4213 return resultobj;
4214 fail:
4215 return NULL;
4216}
4217
4218
4219static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4220 PyObject *resultobj;
4221 int *arg1 = (int *) 0 ;
4222 int *arg2 = (int *) 0 ;
4223 int *arg3 = (int *) 0 ;
4224 int *arg4 = (int *) 0 ;
4225 int temp1 ;
4226 int temp2 ;
4227 int temp3 ;
4228 int temp4 ;
4229 char *kwnames[] = {
4230 NULL
4231 };
4232
4233 arg1 = &temp1;
4234 arg2 = &temp2;
4235 arg3 = &temp3;
4236 arg4 = &temp4;
4237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4238 {
4239 if (!wxPyCheckForApp()) SWIG_fail;
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4242
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 Py_INCREF(Py_None); resultobj = Py_None;
4247 {
4248 PyObject *o = PyInt_FromLong((long) (*arg1));
4249 resultobj = t_output_helper(resultobj,o);
4250 }
4251 {
4252 PyObject *o = PyInt_FromLong((long) (*arg2));
4253 resultobj = t_output_helper(resultobj,o);
4254 }
4255 {
4256 PyObject *o = PyInt_FromLong((long) (*arg3));
4257 resultobj = t_output_helper(resultobj,o);
4258 }
4259 {
4260 PyObject *o = PyInt_FromLong((long) (*arg4));
4261 resultobj = t_output_helper(resultobj,o);
4262 }
4263 return resultobj;
4264 fail:
4265 return NULL;
4266}
4267
4268
4269static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj;
4271 wxRect result;
4272 char *kwnames[] = {
4273 NULL
4274 };
4275
4276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4277 {
4278 if (!wxPyCheckForApp()) SWIG_fail;
4279 PyThreadState* __tstate = wxPyBeginAllowThreads();
4280 result = wxGetClientDisplayRect();
4281
4282 wxPyEndAllowThreads(__tstate);
4283 if (PyErr_Occurred()) SWIG_fail;
4284 }
4285 {
4286 wxRect * resultptr;
4287 resultptr = new wxRect((wxRect &) result);
4288 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4289 }
4290 return resultobj;
4291 fail:
4292 return NULL;
4293}
4294
4295
4296static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4297 PyObject *resultobj;
4298 wxCursor *arg1 = 0 ;
4299 PyObject * obj0 = 0 ;
4300 char *kwnames[] = {
4301 (char *) "cursor", NULL
4302 };
4303
4304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4306 SWIG_POINTER_EXCEPTION | 0)) == -1)
4307 SWIG_fail;
4308 if (arg1 == NULL) {
4309 PyErr_SetString(PyExc_TypeError,"null reference");
4310 SWIG_fail;
4311 }
4312 {
4313 if (!wxPyCheckForApp()) SWIG_fail;
4314 PyThreadState* __tstate = wxPyBeginAllowThreads();
4315 wxSetCursor(*arg1);
4316
4317 wxPyEndAllowThreads(__tstate);
4318 if (PyErr_Occurred()) SWIG_fail;
4319 }
4320 Py_INCREF(Py_None); resultobj = Py_None;
4321 return resultobj;
4322 fail:
4323 return NULL;
4324}
4325
4326
4327static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4328 PyObject *resultobj;
4329 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4330 PyObject * obj0 = 0 ;
4331 char *kwnames[] = {
4332 (char *) "cursor", NULL
4333 };
4334
4335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4336 if (obj0) {
4337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4339 }
4340 {
4341 if (!wxPyCheckForApp()) SWIG_fail;
4342 PyThreadState* __tstate = wxPyBeginAllowThreads();
4343 wxBeginBusyCursor(arg1);
4344
4345 wxPyEndAllowThreads(__tstate);
4346 if (PyErr_Occurred()) SWIG_fail;
4347 }
4348 Py_INCREF(Py_None); resultobj = Py_None;
4349 return resultobj;
4350 fail:
4351 return NULL;
4352}
4353
4354
4355static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj;
4357 wxWindow *result;
4358 char *kwnames[] = {
4359 NULL
4360 };
4361
4362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4363 {
4364 if (!wxPyCheckForApp()) SWIG_fail;
4365 PyThreadState* __tstate = wxPyBeginAllowThreads();
4366 result = (wxWindow *)wxGetActiveWindow();
4367
4368 wxPyEndAllowThreads(__tstate);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 }
4371 {
4372 resultobj = wxPyMake_wxObject(result, 0);
4373 }
4374 return resultobj;
4375 fail:
4376 return NULL;
4377}
4378
4379
4380static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4381 PyObject *resultobj;
4382 wxPoint *arg1 = 0 ;
4383 wxWindow *result;
4384 wxPoint temp1 ;
4385 PyObject * obj0 = 0 ;
4386 char *kwnames[] = {
4387 (char *) "pt", NULL
4388 };
4389
4390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4391 {
4392 arg1 = &temp1;
4393 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4394 }
4395 {
4396 if (!wxPyCheckForApp()) SWIG_fail;
4397 PyThreadState* __tstate = wxPyBeginAllowThreads();
4398 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4399
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 {
4404 resultobj = wxPyMake_wxObject(result, 0);
4405 }
4406 return resultobj;
4407 fail:
4408 return NULL;
4409}
4410
4411
4412static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4413 PyObject *resultobj;
4414 wxPoint *arg1 = 0 ;
4415 wxWindow *result;
4416 wxPoint temp1 ;
4417 PyObject * obj0 = 0 ;
4418 char *kwnames[] = {
4419 (char *) "pt", NULL
4420 };
4421
4422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4423 {
4424 arg1 = &temp1;
4425 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4426 }
4427 {
4428 if (!wxPyCheckForApp()) SWIG_fail;
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4431
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 {
4436 resultobj = wxPyMake_wxObject(result, 0);
4437 }
4438 return resultobj;
4439 fail:
4440 return NULL;
4441}
4442
4443
4444static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4445 PyObject *resultobj;
4446 wxWindow *arg1 = (wxWindow *) 0 ;
4447 wxWindow *result;
4448 PyObject * obj0 = 0 ;
4449 char *kwnames[] = {
4450 (char *) "win", NULL
4451 };
4452
4453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4456 {
4457 if (!wxPyCheckForApp()) SWIG_fail;
4458 PyThreadState* __tstate = wxPyBeginAllowThreads();
4459 result = (wxWindow *)wxGetTopLevelParent(arg1);
4460
4461 wxPyEndAllowThreads(__tstate);
4462 if (PyErr_Occurred()) SWIG_fail;
4463 }
4464 {
4465 resultobj = wxPyMake_wxObject(result, 0);
4466 }
4467 return resultobj;
4468 fail:
4469 return NULL;
4470}
4471
4472
4473static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4474 PyObject *resultobj;
4475 int arg1 ;
4476 bool result;
4477 PyObject * obj0 = 0 ;
4478 char *kwnames[] = {
4479 (char *) "key", NULL
4480 };
4481
4482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4483 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 {
4486 if (!wxPyCheckForApp()) SWIG_fail;
4487 PyThreadState* __tstate = wxPyBeginAllowThreads();
4488 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4489
4490 wxPyEndAllowThreads(__tstate);
4491 if (PyErr_Occurred()) SWIG_fail;
4492 }
4493 {
4494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4495 }
4496 return resultobj;
4497 fail:
4498 return NULL;
4499}
4500
4501
4502static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4503 PyObject *resultobj;
4504 char *kwnames[] = {
4505 NULL
4506 };
4507
4508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4509 {
4510 if (!wxPyCheckForApp()) SWIG_fail;
4511 PyThreadState* __tstate = wxPyBeginAllowThreads();
4512 wxWakeUpMainThread();
4513
4514 wxPyEndAllowThreads(__tstate);
4515 if (PyErr_Occurred()) SWIG_fail;
4516 }
4517 Py_INCREF(Py_None); resultobj = Py_None;
4518 return resultobj;
4519 fail:
4520 return NULL;
4521}
4522
4523
4524static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4525 PyObject *resultobj;
4526 char *kwnames[] = {
4527 NULL
4528 };
4529
4530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4531 {
4532 if (!wxPyCheckForApp()) SWIG_fail;
4533 PyThreadState* __tstate = wxPyBeginAllowThreads();
4534 wxMutexGuiEnter();
4535
4536 wxPyEndAllowThreads(__tstate);
4537 if (PyErr_Occurred()) SWIG_fail;
4538 }
4539 Py_INCREF(Py_None); resultobj = Py_None;
4540 return resultobj;
4541 fail:
4542 return NULL;
4543}
4544
4545
4546static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4547 PyObject *resultobj;
4548 char *kwnames[] = {
4549 NULL
4550 };
4551
4552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4553 {
4554 if (!wxPyCheckForApp()) SWIG_fail;
4555 PyThreadState* __tstate = wxPyBeginAllowThreads();
4556 wxMutexGuiLeave();
4557
4558 wxPyEndAllowThreads(__tstate);
4559 if (PyErr_Occurred()) SWIG_fail;
4560 }
4561 Py_INCREF(Py_None); resultobj = Py_None;
4562 return resultobj;
4563 fail:
4564 return NULL;
4565}
4566
4567
4568static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4569 PyObject *resultobj;
4570 wxMutexGuiLocker *result;
4571 char *kwnames[] = {
4572 NULL
4573 };
4574
4575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4576 {
4577 if (!wxPyCheckForApp()) SWIG_fail;
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4580
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4585 return resultobj;
4586 fail:
4587 return NULL;
4588}
4589
4590
4591static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4592 PyObject *resultobj;
4593 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4594 PyObject * obj0 = 0 ;
4595 char *kwnames[] = {
4596 (char *) "self", NULL
4597 };
4598
4599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4602 {
4603 PyThreadState* __tstate = wxPyBeginAllowThreads();
4604 delete arg1;
4605
4606 wxPyEndAllowThreads(__tstate);
4607 if (PyErr_Occurred()) SWIG_fail;
4608 }
4609 Py_INCREF(Py_None); resultobj = Py_None;
4610 return resultobj;
4611 fail:
4612 return NULL;
4613}
4614
4615
4616static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4617 PyObject *obj;
4618 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4619 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4620 Py_INCREF(obj);
4621 return Py_BuildValue((char *)"");
4622}
4623static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4624 PyObject *resultobj;
4625 bool result;
4626 char *kwnames[] = {
4627 NULL
4628 };
4629
4630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4631 {
4632 PyThreadState* __tstate = wxPyBeginAllowThreads();
4633 result = (bool)wxThread_IsMain();
4634
4635 wxPyEndAllowThreads(__tstate);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 {
4639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4640 }
4641 return resultobj;
4642 fail:
4643 return NULL;
4644}
4645
4646
4647static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4648 PyObject *resultobj;
4649 wxString *arg1 = 0 ;
4650 wxToolTip *result;
4651 bool temp1 = False ;
4652 PyObject * obj0 = 0 ;
4653 char *kwnames[] = {
4654 (char *) "tip", NULL
4655 };
4656
4657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4658 {
4659 arg1 = wxString_in_helper(obj0);
4660 if (arg1 == NULL) SWIG_fail;
4661 temp1 = True;
4662 }
4663 {
4664 if (!wxPyCheckForApp()) SWIG_fail;
4665 PyThreadState* __tstate = wxPyBeginAllowThreads();
4666 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4667
4668 wxPyEndAllowThreads(__tstate);
4669 if (PyErr_Occurred()) SWIG_fail;
4670 }
4671 {
4672 resultobj = wxPyMake_wxObject(result, 1);
4673 }
4674 {
4675 if (temp1)
4676 delete arg1;
4677 }
4678 return resultobj;
4679 fail:
4680 {
4681 if (temp1)
4682 delete arg1;
4683 }
4684 return NULL;
4685}
4686
4687
4688static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4689 PyObject *resultobj;
4690 wxToolTip *arg1 = (wxToolTip *) 0 ;
4691 wxString *arg2 = 0 ;
4692 bool temp2 = False ;
4693 PyObject * obj0 = 0 ;
4694 PyObject * obj1 = 0 ;
4695 char *kwnames[] = {
4696 (char *) "self",(char *) "tip", NULL
4697 };
4698
4699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4702 {
4703 arg2 = wxString_in_helper(obj1);
4704 if (arg2 == NULL) SWIG_fail;
4705 temp2 = True;
4706 }
4707 {
4708 PyThreadState* __tstate = wxPyBeginAllowThreads();
4709 (arg1)->SetTip((wxString const &)*arg2);
4710
4711 wxPyEndAllowThreads(__tstate);
4712 if (PyErr_Occurred()) SWIG_fail;
4713 }
4714 Py_INCREF(Py_None); resultobj = Py_None;
4715 {
4716 if (temp2)
4717 delete arg2;
4718 }
4719 return resultobj;
4720 fail:
4721 {
4722 if (temp2)
4723 delete arg2;
4724 }
4725 return NULL;
4726}
4727
4728
4729static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4730 PyObject *resultobj;
4731 wxToolTip *arg1 = (wxToolTip *) 0 ;
4732 wxString result;
4733 PyObject * obj0 = 0 ;
4734 char *kwnames[] = {
4735 (char *) "self", NULL
4736 };
4737
4738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4741 {
4742 PyThreadState* __tstate = wxPyBeginAllowThreads();
4743 result = (arg1)->GetTip();
4744
4745 wxPyEndAllowThreads(__tstate);
4746 if (PyErr_Occurred()) SWIG_fail;
4747 }
4748 {
4749#if wxUSE_UNICODE
4750 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4751#else
4752 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4753#endif
4754 }
4755 return resultobj;
4756 fail:
4757 return NULL;
4758}
4759
4760
4761static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4762 PyObject *resultobj;
4763 wxToolTip *arg1 = (wxToolTip *) 0 ;
4764 wxWindow *result;
4765 PyObject * obj0 = 0 ;
4766 char *kwnames[] = {
4767 (char *) "self", NULL
4768 };
4769
4770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 result = (wxWindow *)(arg1)->GetWindow();
4776
4777 wxPyEndAllowThreads(__tstate);
4778 if (PyErr_Occurred()) SWIG_fail;
4779 }
4780 {
4781 resultobj = wxPyMake_wxObject(result, 0);
4782 }
4783 return resultobj;
4784 fail:
4785 return NULL;
4786}
4787
4788
4789static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4790 PyObject *resultobj;
4791 bool arg1 ;
4792 PyObject * obj0 = 0 ;
4793 char *kwnames[] = {
4794 (char *) "flag", NULL
4795 };
4796
4797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4798 arg1 = (bool) SWIG_AsBool(obj0);
4799 if (PyErr_Occurred()) SWIG_fail;
4800 {
4801 PyThreadState* __tstate = wxPyBeginAllowThreads();
4802 wxToolTip::Enable(arg1);
4803
4804 wxPyEndAllowThreads(__tstate);
4805 if (PyErr_Occurred()) SWIG_fail;
4806 }
4807 Py_INCREF(Py_None); resultobj = Py_None;
4808 return resultobj;
4809 fail:
4810 return NULL;
4811}
4812
4813
4814static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4815 PyObject *resultobj;
4816 long arg1 ;
4817 PyObject * obj0 = 0 ;
4818 char *kwnames[] = {
4819 (char *) "milliseconds", NULL
4820 };
4821
4822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4823 arg1 = (long) SWIG_AsLong(obj0);
4824 if (PyErr_Occurred()) SWIG_fail;
4825 {
4826 PyThreadState* __tstate = wxPyBeginAllowThreads();
4827 wxToolTip::SetDelay(arg1);
4828
4829 wxPyEndAllowThreads(__tstate);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 Py_INCREF(Py_None); resultobj = Py_None;
4833 return resultobj;
4834 fail:
4835 return NULL;
4836}
4837
4838
4839static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4840 PyObject *obj;
4841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4842 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4843 Py_INCREF(obj);
4844 return Py_BuildValue((char *)"");
4845}
4846static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4847 PyObject *resultobj;
4848 wxWindow *arg1 = (wxWindow *) 0 ;
4849 wxSize *arg2 = 0 ;
4850 wxCaret *result;
4851 wxSize temp2 ;
4852 PyObject * obj0 = 0 ;
4853 PyObject * obj1 = 0 ;
4854 char *kwnames[] = {
4855 (char *) "window",(char *) "size", NULL
4856 };
4857
4858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4861 {
4862 arg2 = &temp2;
4863 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4864 }
4865 {
4866 if (!wxPyCheckForApp()) SWIG_fail;
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4869
4870 wxPyEndAllowThreads(__tstate);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4874 return resultobj;
4875 fail:
4876 return NULL;
4877}
4878
4879
4880static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4881 PyObject *resultobj;
4882 wxCaret *arg1 = (wxCaret *) 0 ;
4883 PyObject * obj0 = 0 ;
4884 char *kwnames[] = {
4885 (char *) "self", NULL
4886 };
4887
4888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4891 {
4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
4893 delete arg1;
4894
4895 wxPyEndAllowThreads(__tstate);
4896 if (PyErr_Occurred()) SWIG_fail;
4897 }
4898 Py_INCREF(Py_None); resultobj = Py_None;
4899 return resultobj;
4900 fail:
4901 return NULL;
4902}
4903
4904
4905static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4906 PyObject *resultobj;
4907 wxCaret *arg1 = (wxCaret *) 0 ;
4908 bool result;
4909 PyObject * obj0 = 0 ;
4910 char *kwnames[] = {
4911 (char *) "self", NULL
4912 };
4913
4914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (bool)(arg1)->IsOk();
4920
4921 wxPyEndAllowThreads(__tstate);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 }
4924 {
4925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4926 }
4927 return resultobj;
4928 fail:
4929 return NULL;
4930}
4931
4932
4933static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4934 PyObject *resultobj;
4935 wxCaret *arg1 = (wxCaret *) 0 ;
4936 bool result;
4937 PyObject * obj0 = 0 ;
4938 char *kwnames[] = {
4939 (char *) "self", NULL
4940 };
4941
4942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4945 {
4946 PyThreadState* __tstate = wxPyBeginAllowThreads();
4947 result = (bool)(arg1)->IsVisible();
4948
4949 wxPyEndAllowThreads(__tstate);
4950 if (PyErr_Occurred()) SWIG_fail;
4951 }
4952 {
4953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4954 }
4955 return resultobj;
4956 fail:
4957 return NULL;
4958}
4959
4960
4961static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4962 PyObject *resultobj;
4963 wxCaret *arg1 = (wxCaret *) 0 ;
4964 wxPoint result;
4965 PyObject * obj0 = 0 ;
4966 char *kwnames[] = {
4967 (char *) "self", NULL
4968 };
4969
4970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4973 {
4974 PyThreadState* __tstate = wxPyBeginAllowThreads();
4975 result = (arg1)->GetPosition();
4976
4977 wxPyEndAllowThreads(__tstate);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 {
4981 wxPoint * resultptr;
4982 resultptr = new wxPoint((wxPoint &) result);
4983 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4984 }
4985 return resultobj;
4986 fail:
4987 return NULL;
4988}
4989
4990
4991static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4992 PyObject *resultobj;
4993 wxCaret *arg1 = (wxCaret *) 0 ;
4994 int *arg2 = (int *) 0 ;
4995 int *arg3 = (int *) 0 ;
4996 int temp2 ;
4997 int temp3 ;
4998 PyObject * obj0 = 0 ;
4999 char *kwnames[] = {
5000 (char *) "self", NULL
5001 };
5002
5003 arg2 = &temp2;
5004 arg3 = &temp3;
5005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
5006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5008 {
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 (arg1)->GetPosition(arg2,arg3);
5011
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 Py_INCREF(Py_None); resultobj = Py_None;
5016 {
5017 PyObject *o = PyInt_FromLong((long) (*arg2));
5018 resultobj = t_output_helper(resultobj,o);
5019 }
5020 {
5021 PyObject *o = PyInt_FromLong((long) (*arg3));
5022 resultobj = t_output_helper(resultobj,o);
5023 }
5024 return resultobj;
5025 fail:
5026 return NULL;
5027}
5028
5029
5030static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5031 PyObject *resultobj;
5032 wxCaret *arg1 = (wxCaret *) 0 ;
5033 wxSize result;
5034 PyObject * obj0 = 0 ;
5035 char *kwnames[] = {
5036 (char *) "self", NULL
5037 };
5038
5039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
5040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5042 {
5043 PyThreadState* __tstate = wxPyBeginAllowThreads();
5044 result = (arg1)->GetSize();
5045
5046 wxPyEndAllowThreads(__tstate);
5047 if (PyErr_Occurred()) SWIG_fail;
5048 }
5049 {
5050 wxSize * resultptr;
5051 resultptr = new wxSize((wxSize &) result);
5052 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5053 }
5054 return resultobj;
5055 fail:
5056 return NULL;
5057}
5058
5059
5060static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj;
5062 wxCaret *arg1 = (wxCaret *) 0 ;
5063 int *arg2 = (int *) 0 ;
5064 int *arg3 = (int *) 0 ;
5065 int temp2 ;
5066 int temp3 ;
5067 PyObject * obj0 = 0 ;
5068 char *kwnames[] = {
5069 (char *) "self", NULL
5070 };
5071
5072 arg2 = &temp2;
5073 arg3 = &temp3;
5074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
5075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5077 {
5078 PyThreadState* __tstate = wxPyBeginAllowThreads();
5079 (arg1)->GetSize(arg2,arg3);
5080
5081 wxPyEndAllowThreads(__tstate);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 Py_INCREF(Py_None); resultobj = Py_None;
5085 {
5086 PyObject *o = PyInt_FromLong((long) (*arg2));
5087 resultobj = t_output_helper(resultobj,o);
5088 }
5089 {
5090 PyObject *o = PyInt_FromLong((long) (*arg3));
5091 resultobj = t_output_helper(resultobj,o);
5092 }
5093 return resultobj;
5094 fail:
5095 return NULL;
5096}
5097
5098
5099static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5100 PyObject *resultobj;
5101 wxCaret *arg1 = (wxCaret *) 0 ;
5102 wxWindow *result;
5103 PyObject * obj0 = 0 ;
5104 char *kwnames[] = {
5105 (char *) "self", NULL
5106 };
5107
5108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5111 {
5112 PyThreadState* __tstate = wxPyBeginAllowThreads();
5113 result = (wxWindow *)(arg1)->GetWindow();
5114
5115 wxPyEndAllowThreads(__tstate);
5116 if (PyErr_Occurred()) SWIG_fail;
5117 }
5118 {
5119 resultobj = wxPyMake_wxObject(result, 0);
5120 }
5121 return resultobj;
5122 fail:
5123 return NULL;
5124}
5125
5126
5127static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
5128 PyObject *resultobj;
5129 wxCaret *arg1 = (wxCaret *) 0 ;
5130 int arg2 ;
5131 int arg3 ;
5132 PyObject * obj0 = 0 ;
5133 PyObject * obj1 = 0 ;
5134 PyObject * obj2 = 0 ;
5135 char *kwnames[] = {
5136 (char *) "self",(char *) "x",(char *) "y", NULL
5137 };
5138
5139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5142 arg2 = (int) SWIG_AsInt(obj1);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 arg3 = (int) SWIG_AsInt(obj2);
5145 if (PyErr_Occurred()) SWIG_fail;
5146 {
5147 PyThreadState* __tstate = wxPyBeginAllowThreads();
5148 (arg1)->Move(arg2,arg3);
5149
5150 wxPyEndAllowThreads(__tstate);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 }
5153 Py_INCREF(Py_None); resultobj = Py_None;
5154 return resultobj;
5155 fail:
5156 return NULL;
5157}
5158
5159
5160static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
5161 PyObject *resultobj;
5162 wxCaret *arg1 = (wxCaret *) 0 ;
5163 wxPoint *arg2 = 0 ;
5164 wxPoint temp2 ;
5165 PyObject * obj0 = 0 ;
5166 PyObject * obj1 = 0 ;
5167 char *kwnames[] = {
5168 (char *) "self",(char *) "pt", NULL
5169 };
5170
5171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5174 {
5175 arg2 = &temp2;
5176 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5177 }
5178 {
5179 PyThreadState* __tstate = wxPyBeginAllowThreads();
5180 (arg1)->Move((wxPoint const &)*arg2);
5181
5182 wxPyEndAllowThreads(__tstate);
5183 if (PyErr_Occurred()) SWIG_fail;
5184 }
5185 Py_INCREF(Py_None); resultobj = Py_None;
5186 return resultobj;
5187 fail:
5188 return NULL;
5189}
5190
5191
5192static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
5193 PyObject *resultobj;
5194 wxCaret *arg1 = (wxCaret *) 0 ;
5195 int arg2 ;
5196 int arg3 ;
5197 PyObject * obj0 = 0 ;
5198 PyObject * obj1 = 0 ;
5199 PyObject * obj2 = 0 ;
5200 char *kwnames[] = {
5201 (char *) "self",(char *) "width",(char *) "height", NULL
5202 };
5203
5204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5207 arg2 = (int) SWIG_AsInt(obj1);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 arg3 = (int) SWIG_AsInt(obj2);
5210 if (PyErr_Occurred()) SWIG_fail;
5211 {
5212 PyThreadState* __tstate = wxPyBeginAllowThreads();
5213 (arg1)->SetSize(arg2,arg3);
5214
5215 wxPyEndAllowThreads(__tstate);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 Py_INCREF(Py_None); resultobj = Py_None;
5219 return resultobj;
5220 fail:
5221 return NULL;
5222}
5223
5224
5225static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5226 PyObject *resultobj;
5227 wxCaret *arg1 = (wxCaret *) 0 ;
5228 wxSize *arg2 = 0 ;
5229 wxSize temp2 ;
5230 PyObject * obj0 = 0 ;
5231 PyObject * obj1 = 0 ;
5232 char *kwnames[] = {
5233 (char *) "self",(char *) "size", NULL
5234 };
5235
5236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5239 {
5240 arg2 = &temp2;
5241 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5242 }
5243 {
5244 PyThreadState* __tstate = wxPyBeginAllowThreads();
5245 (arg1)->SetSize((wxSize const &)*arg2);
5246
5247 wxPyEndAllowThreads(__tstate);
5248 if (PyErr_Occurred()) SWIG_fail;
5249 }
5250 Py_INCREF(Py_None); resultobj = Py_None;
5251 return resultobj;
5252 fail:
5253 return NULL;
5254}
5255
5256
5257static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5258 PyObject *resultobj;
5259 wxCaret *arg1 = (wxCaret *) 0 ;
5260 int arg2 = (int) True ;
5261 PyObject * obj0 = 0 ;
5262 PyObject * obj1 = 0 ;
5263 char *kwnames[] = {
5264 (char *) "self",(char *) "show", NULL
5265 };
5266
5267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5270 if (obj1) {
5271 arg2 = (int) SWIG_AsInt(obj1);
5272 if (PyErr_Occurred()) SWIG_fail;
5273 }
5274 {
5275 PyThreadState* __tstate = wxPyBeginAllowThreads();
5276 (arg1)->Show(arg2);
5277
5278 wxPyEndAllowThreads(__tstate);
5279 if (PyErr_Occurred()) SWIG_fail;
5280 }
5281 Py_INCREF(Py_None); resultobj = Py_None;
5282 return resultobj;
5283 fail:
5284 return NULL;
5285}
5286
5287
5288static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5289 PyObject *resultobj;
5290 wxCaret *arg1 = (wxCaret *) 0 ;
5291 PyObject * obj0 = 0 ;
5292 char *kwnames[] = {
5293 (char *) "self", NULL
5294 };
5295
5296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5299 {
5300 PyThreadState* __tstate = wxPyBeginAllowThreads();
5301 (arg1)->Hide();
5302
5303 wxPyEndAllowThreads(__tstate);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 }
5306 Py_INCREF(Py_None); resultobj = Py_None;
5307 return resultobj;
5308 fail:
5309 return NULL;
5310}
5311
5312
5313static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5314 PyObject *obj;
5315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5316 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5317 Py_INCREF(obj);
5318 return Py_BuildValue((char *)"");
5319}
5320static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 int result;
5323 char *kwnames[] = {
5324 NULL
5325 };
5326
5327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5328 {
5329 PyThreadState* __tstate = wxPyBeginAllowThreads();
5330 result = (int)wxCaret_GetBlinkTime();
5331
5332 wxPyEndAllowThreads(__tstate);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 }
5335 resultobj = SWIG_FromInt((int)result);
5336 return resultobj;
5337 fail:
5338 return NULL;
5339}
5340
5341
5342static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5343 PyObject *resultobj;
5344 int arg1 ;
5345 PyObject * obj0 = 0 ;
5346 char *kwnames[] = {
5347 (char *) "milliseconds", NULL
5348 };
5349
5350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5351 arg1 = (int) SWIG_AsInt(obj0);
5352 if (PyErr_Occurred()) SWIG_fail;
5353 {
5354 PyThreadState* __tstate = wxPyBeginAllowThreads();
5355 wxCaret_SetBlinkTime(arg1);
5356
5357 wxPyEndAllowThreads(__tstate);
5358 if (PyErr_Occurred()) SWIG_fail;
5359 }
5360 Py_INCREF(Py_None); resultobj = Py_None;
5361 return resultobj;
5362 fail:
5363 return NULL;
5364}
5365
5366
5367static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5368 PyObject *resultobj;
5369 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5370 wxBusyCursor *result;
5371 PyObject * obj0 = 0 ;
5372 char *kwnames[] = {
5373 (char *) "cursor", NULL
5374 };
5375
5376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5377 if (obj0) {
5378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5380 }
5381 {
5382 if (!wxPyCheckForApp()) SWIG_fail;
5383 PyThreadState* __tstate = wxPyBeginAllowThreads();
5384 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5385
5386 wxPyEndAllowThreads(__tstate);
5387 if (PyErr_Occurred()) SWIG_fail;
5388 }
5389 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5390 return resultobj;
5391 fail:
5392 return NULL;
5393}
5394
5395
5396static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5397 PyObject *resultobj;
5398 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5399 PyObject * obj0 = 0 ;
5400 char *kwnames[] = {
5401 (char *) "self", NULL
5402 };
5403
5404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5407 {
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 delete arg1;
5410
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 Py_INCREF(Py_None); resultobj = Py_None;
5415 return resultobj;
5416 fail:
5417 return NULL;
5418}
5419
5420
5421static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5422 PyObject *obj;
5423 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5424 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5425 Py_INCREF(obj);
5426 return Py_BuildValue((char *)"");
5427}
5428static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5429 PyObject *resultobj;
5430 wxWindow *arg1 = (wxWindow *) NULL ;
5431 wxWindowDisabler *result;
5432 PyObject * obj0 = 0 ;
5433 char *kwnames[] = {
5434 (char *) "winToSkip", NULL
5435 };
5436
5437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5438 if (obj0) {
5439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5441 }
5442 {
5443 if (!wxPyCheckForApp()) SWIG_fail;
5444 PyThreadState* __tstate = wxPyBeginAllowThreads();
5445 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5446
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5451 return resultobj;
5452 fail:
5453 return NULL;
5454}
5455
5456
5457static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj;
5459 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5460 PyObject * obj0 = 0 ;
5461 char *kwnames[] = {
5462 (char *) "self", NULL
5463 };
5464
5465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5468 {
5469 PyThreadState* __tstate = wxPyBeginAllowThreads();
5470 delete arg1;
5471
5472 wxPyEndAllowThreads(__tstate);
5473 if (PyErr_Occurred()) SWIG_fail;
5474 }
5475 Py_INCREF(Py_None); resultobj = Py_None;
5476 return resultobj;
5477 fail:
5478 return NULL;
5479}
5480
5481
5482static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5483 PyObject *obj;
5484 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5485 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5486 Py_INCREF(obj);
5487 return Py_BuildValue((char *)"");
5488}
5489static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5490 PyObject *resultobj;
5491 wxString *arg1 = 0 ;
5492 wxBusyInfo *result;
5493 bool temp1 = False ;
5494 PyObject * obj0 = 0 ;
5495 char *kwnames[] = {
5496 (char *) "message", NULL
5497 };
5498
5499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5500 {
5501 arg1 = wxString_in_helper(obj0);
5502 if (arg1 == NULL) SWIG_fail;
5503 temp1 = True;
5504 }
5505 {
5506 if (!wxPyCheckForApp()) SWIG_fail;
5507 PyThreadState* __tstate = wxPyBeginAllowThreads();
5508 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5509
5510 wxPyEndAllowThreads(__tstate);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 }
5513 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5514 {
5515 if (temp1)
5516 delete arg1;
5517 }
5518 return resultobj;
5519 fail:
5520 {
5521 if (temp1)
5522 delete arg1;
5523 }
5524 return NULL;
5525}
5526
5527
5528static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5529 PyObject *resultobj;
5530 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5531 PyObject * obj0 = 0 ;
5532 char *kwnames[] = {
5533 (char *) "self", NULL
5534 };
5535
5536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5539 {
5540 PyThreadState* __tstate = wxPyBeginAllowThreads();
5541 delete arg1;
5542
5543 wxPyEndAllowThreads(__tstate);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 }
5546 Py_INCREF(Py_None); resultobj = Py_None;
5547 return resultobj;
5548 fail:
5549 return NULL;
5550}
5551
5552
5553static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5554 PyObject *obj;
5555 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5556 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5557 Py_INCREF(obj);
5558 return Py_BuildValue((char *)"");
5559}
5560static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5561 PyObject *resultobj;
5562 wxStopWatch *result;
5563 char *kwnames[] = {
5564 NULL
5565 };
5566
5567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 result = (wxStopWatch *)new wxStopWatch();
5571
5572 wxPyEndAllowThreads(__tstate);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 }
5575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5576 return resultobj;
5577 fail:
5578 return NULL;
5579}
5580
5581
5582static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5583 PyObject *resultobj;
5584 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5585 long arg2 = (long) 0 ;
5586 PyObject * obj0 = 0 ;
5587 PyObject * obj1 = 0 ;
5588 char *kwnames[] = {
5589 (char *) "self",(char *) "t0", NULL
5590 };
5591
5592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5595 if (obj1) {
5596 arg2 = (long) SWIG_AsLong(obj1);
5597 if (PyErr_Occurred()) SWIG_fail;
5598 }
5599 {
5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
5601 (arg1)->Start(arg2);
5602
5603 wxPyEndAllowThreads(__tstate);
5604 if (PyErr_Occurred()) SWIG_fail;
5605 }
5606 Py_INCREF(Py_None); resultobj = Py_None;
5607 return resultobj;
5608 fail:
5609 return NULL;
5610}
5611
5612
5613static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5614 PyObject *resultobj;
5615 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5616 PyObject * obj0 = 0 ;
5617 char *kwnames[] = {
5618 (char *) "self", NULL
5619 };
5620
5621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5624 {
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 (arg1)->Pause();
5627
5628 wxPyEndAllowThreads(__tstate);
5629 if (PyErr_Occurred()) SWIG_fail;
5630 }
5631 Py_INCREF(Py_None); resultobj = Py_None;
5632 return resultobj;
5633 fail:
5634 return NULL;
5635}
5636
5637
5638static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5639 PyObject *resultobj;
5640 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5641 PyObject * obj0 = 0 ;
5642 char *kwnames[] = {
5643 (char *) "self", NULL
5644 };
5645
5646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5649 {
5650 PyThreadState* __tstate = wxPyBeginAllowThreads();
5651 (arg1)->Resume();
5652
5653 wxPyEndAllowThreads(__tstate);
5654 if (PyErr_Occurred()) SWIG_fail;
5655 }
5656 Py_INCREF(Py_None); resultobj = Py_None;
5657 return resultobj;
5658 fail:
5659 return NULL;
5660}
5661
5662
5663static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5664 PyObject *resultobj;
5665 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5666 long result;
5667 PyObject * obj0 = 0 ;
5668 char *kwnames[] = {
5669 (char *) "self", NULL
5670 };
5671
5672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5675 {
5676 PyThreadState* __tstate = wxPyBeginAllowThreads();
5677 result = (long)((wxStopWatch const *)arg1)->Time();
5678
5679 wxPyEndAllowThreads(__tstate);
5680 if (PyErr_Occurred()) SWIG_fail;
5681 }
5682 resultobj = SWIG_FromLong((long)result);
5683 return resultobj;
5684 fail:
5685 return NULL;
5686}
5687
5688
5689static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5690 PyObject *obj;
5691 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5692 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5693 Py_INCREF(obj);
5694 return Py_BuildValue((char *)"");
5695}
5696static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5697 PyObject *resultobj;
5698 int arg1 = (int) 9 ;
5699 int arg2 = (int) wxID_FILE1 ;
5700 wxFileHistory *result;
5701 PyObject * obj0 = 0 ;
5702 PyObject * obj1 = 0 ;
5703 char *kwnames[] = {
5704 (char *) "maxFiles",(char *) "idBase", NULL
5705 };
5706
5707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
5708 if (obj0) {
5709 arg1 = (int) SWIG_AsInt(obj0);
5710 if (PyErr_Occurred()) SWIG_fail;
5711 }
5712 if (obj1) {
5713 arg2 = (int) SWIG_AsInt(obj1);
5714 if (PyErr_Occurred()) SWIG_fail;
5715 }
5716 {
5717 PyThreadState* __tstate = wxPyBeginAllowThreads();
5718 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
5719
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5724 return resultobj;
5725 fail:
5726 return NULL;
5727}
5728
5729
5730static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5731 PyObject *resultobj;
5732 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5733 PyObject * obj0 = 0 ;
5734 char *kwnames[] = {
5735 (char *) "self", NULL
5736 };
5737
5738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 delete arg1;
5744
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) SWIG_fail;
5747 }
5748 Py_INCREF(Py_None); resultobj = Py_None;
5749 return resultobj;
5750 fail:
5751 return NULL;
5752}
5753
5754
5755static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5756 PyObject *resultobj;
5757 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5758 wxString *arg2 = 0 ;
5759 bool temp2 = False ;
5760 PyObject * obj0 = 0 ;
5761 PyObject * obj1 = 0 ;
5762 char *kwnames[] = {
5763 (char *) "self",(char *) "file", NULL
5764 };
5765
5766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5769 {
5770 arg2 = wxString_in_helper(obj1);
5771 if (arg2 == NULL) SWIG_fail;
5772 temp2 = True;
5773 }
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 (arg1)->AddFileToHistory((wxString const &)*arg2);
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 Py_INCREF(Py_None); resultobj = Py_None;
5782 {
5783 if (temp2)
5784 delete arg2;
5785 }
5786 return resultobj;
5787 fail:
5788 {
5789 if (temp2)
5790 delete arg2;
5791 }
5792 return NULL;
5793}
5794
5795
5796static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5797 PyObject *resultobj;
5798 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5799 int arg2 ;
5800 PyObject * obj0 = 0 ;
5801 PyObject * obj1 = 0 ;
5802 char *kwnames[] = {
5803 (char *) "self",(char *) "i", NULL
5804 };
5805
5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5809 arg2 = (int) SWIG_AsInt(obj1);
5810 if (PyErr_Occurred()) SWIG_fail;
5811 {
5812 PyThreadState* __tstate = wxPyBeginAllowThreads();
5813 (arg1)->RemoveFileFromHistory(arg2);
5814
5815 wxPyEndAllowThreads(__tstate);
5816 if (PyErr_Occurred()) SWIG_fail;
5817 }
5818 Py_INCREF(Py_None); resultobj = Py_None;
5819 return resultobj;
5820 fail:
5821 return NULL;
5822}
5823
5824
5825static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5826 PyObject *resultobj;
5827 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5828 int result;
5829 PyObject * obj0 = 0 ;
5830 char *kwnames[] = {
5831 (char *) "self", NULL
5832 };
5833
5834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5837 {
5838 PyThreadState* __tstate = wxPyBeginAllowThreads();
5839 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5840
5841 wxPyEndAllowThreads(__tstate);
5842 if (PyErr_Occurred()) SWIG_fail;
5843 }
5844 resultobj = SWIG_FromInt((int)result);
5845 return resultobj;
5846 fail:
5847 return NULL;
5848}
5849
5850
5851static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5852 PyObject *resultobj;
5853 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5854 wxMenu *arg2 = (wxMenu *) 0 ;
5855 PyObject * obj0 = 0 ;
5856 PyObject * obj1 = 0 ;
5857 char *kwnames[] = {
5858 (char *) "self",(char *) "menu", NULL
5859 };
5860
5861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5864 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5866 {
5867 PyThreadState* __tstate = wxPyBeginAllowThreads();
5868 (arg1)->UseMenu(arg2);
5869
5870 wxPyEndAllowThreads(__tstate);
5871 if (PyErr_Occurred()) SWIG_fail;
5872 }
5873 Py_INCREF(Py_None); resultobj = Py_None;
5874 return resultobj;
5875 fail:
5876 return NULL;
5877}
5878
5879
5880static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5881 PyObject *resultobj;
5882 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5883 wxMenu *arg2 = (wxMenu *) 0 ;
5884 PyObject * obj0 = 0 ;
5885 PyObject * obj1 = 0 ;
5886 char *kwnames[] = {
5887 (char *) "self",(char *) "menu", NULL
5888 };
5889
5890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5893 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5895 {
5896 PyThreadState* __tstate = wxPyBeginAllowThreads();
5897 (arg1)->RemoveMenu(arg2);
5898
5899 wxPyEndAllowThreads(__tstate);
5900 if (PyErr_Occurred()) SWIG_fail;
5901 }
5902 Py_INCREF(Py_None); resultobj = Py_None;
5903 return resultobj;
5904 fail:
5905 return NULL;
5906}
5907
5908
5909static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5910 PyObject *resultobj;
5911 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5912 wxConfigBase *arg2 = 0 ;
5913 PyObject * obj0 = 0 ;
5914 PyObject * obj1 = 0 ;
5915 char *kwnames[] = {
5916 (char *) "self",(char *) "config", NULL
5917 };
5918
5919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5922 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5923 SWIG_POINTER_EXCEPTION | 0)) == -1)
5924 SWIG_fail;
5925 if (arg2 == NULL) {
5926 PyErr_SetString(PyExc_TypeError,"null reference");
5927 SWIG_fail;
5928 }
5929 {
5930 PyThreadState* __tstate = wxPyBeginAllowThreads();
5931 (arg1)->Load(*arg2);
5932
5933 wxPyEndAllowThreads(__tstate);
5934 if (PyErr_Occurred()) SWIG_fail;
5935 }
5936 Py_INCREF(Py_None); resultobj = Py_None;
5937 return resultobj;
5938 fail:
5939 return NULL;
5940}
5941
5942
5943static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5944 PyObject *resultobj;
5945 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5946 wxConfigBase *arg2 = 0 ;
5947 PyObject * obj0 = 0 ;
5948 PyObject * obj1 = 0 ;
5949 char *kwnames[] = {
5950 (char *) "self",(char *) "config", NULL
5951 };
5952
5953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5956 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5957 SWIG_POINTER_EXCEPTION | 0)) == -1)
5958 SWIG_fail;
5959 if (arg2 == NULL) {
5960 PyErr_SetString(PyExc_TypeError,"null reference");
5961 SWIG_fail;
5962 }
5963 {
5964 PyThreadState* __tstate = wxPyBeginAllowThreads();
5965 (arg1)->Save(*arg2);
5966
5967 wxPyEndAllowThreads(__tstate);
5968 if (PyErr_Occurred()) SWIG_fail;
5969 }
5970 Py_INCREF(Py_None); resultobj = Py_None;
5971 return resultobj;
5972 fail:
5973 return NULL;
5974}
5975
5976
5977static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5978 PyObject *resultobj;
5979 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5980 PyObject * obj0 = 0 ;
5981 char *kwnames[] = {
5982 (char *) "self", NULL
5983 };
5984
5985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 (arg1)->AddFilesToMenu();
5991
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 Py_INCREF(Py_None); resultobj = Py_None;
5996 return resultobj;
5997 fail:
5998 return NULL;
5999}
6000
6001
6002static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
6003 PyObject *resultobj;
6004 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6005 wxMenu *arg2 = (wxMenu *) 0 ;
6006 PyObject * obj0 = 0 ;
6007 PyObject * obj1 = 0 ;
6008 char *kwnames[] = {
6009 (char *) "self",(char *) "menu", NULL
6010 };
6011
6012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
6013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6017 {
6018 PyThreadState* __tstate = wxPyBeginAllowThreads();
6019 (arg1)->AddFilesToMenu(arg2);
6020
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 Py_INCREF(Py_None); resultobj = Py_None;
6025 return resultobj;
6026 fail:
6027 return NULL;
6028}
6029
6030
6031static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj;
6033 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6034 int arg2 ;
6035 wxString result;
6036 PyObject * obj0 = 0 ;
6037 PyObject * obj1 = 0 ;
6038 char *kwnames[] = {
6039 (char *) "self",(char *) "i", NULL
6040 };
6041
6042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
6043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6045 arg2 = (int) SWIG_AsInt(obj1);
6046 if (PyErr_Occurred()) SWIG_fail;
6047 {
6048 PyThreadState* __tstate = wxPyBeginAllowThreads();
6049 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
6050
6051 wxPyEndAllowThreads(__tstate);
6052 if (PyErr_Occurred()) SWIG_fail;
6053 }
6054 {
6055#if wxUSE_UNICODE
6056 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6057#else
6058 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6059#endif
6060 }
6061 return resultobj;
6062 fail:
6063 return NULL;
6064}
6065
6066
6067static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6068 PyObject *resultobj;
6069 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6070 int result;
6071 PyObject * obj0 = 0 ;
6072 char *kwnames[] = {
6073 (char *) "self", NULL
6074 };
6075
6076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
6077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6079 {
6080 PyThreadState* __tstate = wxPyBeginAllowThreads();
6081 result = (int)((wxFileHistory const *)arg1)->GetCount();
6082
6083 wxPyEndAllowThreads(__tstate);
6084 if (PyErr_Occurred()) SWIG_fail;
6085 }
6086 resultobj = SWIG_FromInt((int)result);
6087 return resultobj;
6088 fail:
6089 return NULL;
6090}
6091
6092
6093static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
6094 PyObject *obj;
6095 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6096 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
6097 Py_INCREF(obj);
6098 return Py_BuildValue((char *)"");
6099}
6100static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6101 PyObject *resultobj;
6102 wxString *arg1 = 0 ;
6103 wxString const &arg2_defvalue = wxPyEmptyString ;
6104 wxString *arg2 = (wxString *) &arg2_defvalue ;
6105 wxSingleInstanceChecker *result;
6106 bool temp1 = False ;
6107 bool temp2 = False ;
6108 PyObject * obj0 = 0 ;
6109 PyObject * obj1 = 0 ;
6110 char *kwnames[] = {
6111 (char *) "name",(char *) "path", NULL
6112 };
6113
6114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6115 {
6116 arg1 = wxString_in_helper(obj0);
6117 if (arg1 == NULL) SWIG_fail;
6118 temp1 = True;
6119 }
6120 if (obj1) {
6121 {
6122 arg2 = wxString_in_helper(obj1);
6123 if (arg2 == NULL) SWIG_fail;
6124 temp2 = True;
6125 }
6126 }
6127 {
6128 PyThreadState* __tstate = wxPyBeginAllowThreads();
6129 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6130
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6135 {
6136 if (temp1)
6137 delete arg1;
6138 }
6139 {
6140 if (temp2)
6141 delete arg2;
6142 }
6143 return resultobj;
6144 fail:
6145 {
6146 if (temp1)
6147 delete arg1;
6148 }
6149 {
6150 if (temp2)
6151 delete arg2;
6152 }
6153 return NULL;
6154}
6155
6156
6157static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6158 PyObject *resultobj;
6159 wxSingleInstanceChecker *result;
6160 char *kwnames[] = {
6161 NULL
6162 };
6163
6164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6165 {
6166 PyThreadState* __tstate = wxPyBeginAllowThreads();
6167 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6168
6169 wxPyEndAllowThreads(__tstate);
6170 if (PyErr_Occurred()) SWIG_fail;
6171 }
6172 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6173 return resultobj;
6174 fail:
6175 return NULL;
6176}
6177
6178
6179static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6180 PyObject *resultobj;
6181 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6182 PyObject * obj0 = 0 ;
6183 char *kwnames[] = {
6184 (char *) "self", NULL
6185 };
6186
6187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6190 {
6191 PyThreadState* __tstate = wxPyBeginAllowThreads();
6192 delete arg1;
6193
6194 wxPyEndAllowThreads(__tstate);
6195 if (PyErr_Occurred()) SWIG_fail;
6196 }
6197 Py_INCREF(Py_None); resultobj = Py_None;
6198 return resultobj;
6199 fail:
6200 return NULL;
6201}
6202
6203
6204static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6205 PyObject *resultobj;
6206 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6207 wxString *arg2 = 0 ;
6208 wxString const &arg3_defvalue = wxPyEmptyString ;
6209 wxString *arg3 = (wxString *) &arg3_defvalue ;
6210 bool result;
6211 bool temp2 = False ;
6212 bool temp3 = False ;
6213 PyObject * obj0 = 0 ;
6214 PyObject * obj1 = 0 ;
6215 PyObject * obj2 = 0 ;
6216 char *kwnames[] = {
6217 (char *) "self",(char *) "name",(char *) "path", NULL
6218 };
6219
6220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6223 {
6224 arg2 = wxString_in_helper(obj1);
6225 if (arg2 == NULL) SWIG_fail;
6226 temp2 = True;
6227 }
6228 if (obj2) {
6229 {
6230 arg3 = wxString_in_helper(obj2);
6231 if (arg3 == NULL) SWIG_fail;
6232 temp3 = True;
6233 }
6234 }
6235 {
6236 PyThreadState* __tstate = wxPyBeginAllowThreads();
6237 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6238
6239 wxPyEndAllowThreads(__tstate);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 {
6243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6244 }
6245 {
6246 if (temp2)
6247 delete arg2;
6248 }
6249 {
6250 if (temp3)
6251 delete arg3;
6252 }
6253 return resultobj;
6254 fail:
6255 {
6256 if (temp2)
6257 delete arg2;
6258 }
6259 {
6260 if (temp3)
6261 delete arg3;
6262 }
6263 return NULL;
6264}
6265
6266
6267static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6268 PyObject *resultobj;
6269 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6270 bool result;
6271 PyObject * obj0 = 0 ;
6272 char *kwnames[] = {
6273 (char *) "self", NULL
6274 };
6275
6276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6279 {
6280 PyThreadState* __tstate = wxPyBeginAllowThreads();
6281 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6282
6283 wxPyEndAllowThreads(__tstate);
6284 if (PyErr_Occurred()) SWIG_fail;
6285 }
6286 {
6287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6288 }
6289 return resultobj;
6290 fail:
6291 return NULL;
6292}
6293
6294
6295static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6296 PyObject *obj;
6297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6298 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6299 Py_INCREF(obj);
6300 return Py_BuildValue((char *)"");
6301}
6302static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6303 PyObject *resultobj;
6304 wxWindow *arg1 = (wxWindow *) 0 ;
6305 wxDC *arg2 = 0 ;
6306 int arg3 ;
6307 PyObject * obj0 = 0 ;
6308 PyObject * obj1 = 0 ;
6309 PyObject * obj2 = 0 ;
6310 char *kwnames[] = {
6311 (char *) "window",(char *) "dc",(char *) "method", NULL
6312 };
6313
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6317 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6318 SWIG_POINTER_EXCEPTION | 0)) == -1)
6319 SWIG_fail;
6320 if (arg2 == NULL) {
6321 PyErr_SetString(PyExc_TypeError,"null reference");
6322 SWIG_fail;
6323 }
6324 arg3 = (int) SWIG_AsInt(obj2);
6325 if (PyErr_Occurred()) SWIG_fail;
6326 {
6327 PyThreadState* __tstate = wxPyBeginAllowThreads();
6328 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6329
6330 wxPyEndAllowThreads(__tstate);
6331 if (PyErr_Occurred()) SWIG_fail;
6332 }
6333 Py_INCREF(Py_None); resultobj = Py_None;
6334 return resultobj;
6335 fail:
6336 return NULL;
6337}
6338
6339
6340static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6341 PyObject *resultobj;
6342 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6343 PyObject * obj0 = 0 ;
6344 char *kwnames[] = {
6345 (char *) "self", NULL
6346 };
6347
6348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6351 {
6352 PyThreadState* __tstate = wxPyBeginAllowThreads();
6353 delete arg1;
6354
6355 wxPyEndAllowThreads(__tstate);
6356 if (PyErr_Occurred()) SWIG_fail;
6357 }
6358 Py_INCREF(Py_None); resultobj = Py_None;
6359 return resultobj;
6360 fail:
6361 return NULL;
6362}
6363
6364
6365static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj;
6367 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6368 wxString result;
6369 PyObject * obj0 = 0 ;
6370 char *kwnames[] = {
6371 (char *) "self", NULL
6372 };
6373
6374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6377 {
6378 PyThreadState* __tstate = wxPyBeginAllowThreads();
6379 result = (arg1)->GetTip();
6380
6381 wxPyEndAllowThreads(__tstate);
6382 if (PyErr_Occurred()) SWIG_fail;
6383 }
6384 {
6385#if wxUSE_UNICODE
6386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6387#else
6388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6389#endif
6390 }
6391 return resultobj;
6392 fail:
6393 return NULL;
6394}
6395
6396
6397static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6398 PyObject *resultobj;
6399 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6400 size_t result;
6401 PyObject * obj0 = 0 ;
6402 char *kwnames[] = {
6403 (char *) "self", NULL
6404 };
6405
6406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6409 {
6410 PyThreadState* __tstate = wxPyBeginAllowThreads();
6411 result = (size_t)(arg1)->GetCurrentTip();
6412
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6417 return resultobj;
6418 fail:
6419 return NULL;
6420}
6421
6422
6423static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6424 PyObject *resultobj;
6425 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6426 wxString *arg2 = 0 ;
6427 wxString result;
6428 bool temp2 = False ;
6429 PyObject * obj0 = 0 ;
6430 PyObject * obj1 = 0 ;
6431 char *kwnames[] = {
6432 (char *) "self",(char *) "tip", NULL
6433 };
6434
6435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6438 {
6439 arg2 = wxString_in_helper(obj1);
6440 if (arg2 == NULL) SWIG_fail;
6441 temp2 = True;
6442 }
6443 {
6444 PyThreadState* __tstate = wxPyBeginAllowThreads();
6445 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6446
6447 wxPyEndAllowThreads(__tstate);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 }
6450 {
6451#if wxUSE_UNICODE
6452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6453#else
6454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6455#endif
6456 }
6457 {
6458 if (temp2)
6459 delete arg2;
6460 }
6461 return resultobj;
6462 fail:
6463 {
6464 if (temp2)
6465 delete arg2;
6466 }
6467 return NULL;
6468}
6469
6470
6471static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6472 PyObject *obj;
6473 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6474 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6475 Py_INCREF(obj);
6476 return Py_BuildValue((char *)"");
6477}
6478static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6479 PyObject *resultobj;
6480 size_t arg1 ;
6481 wxPyTipProvider *result;
6482 PyObject * obj0 = 0 ;
6483 char *kwnames[] = {
6484 (char *) "currentTip", NULL
6485 };
6486
6487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6488 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 {
6491 PyThreadState* __tstate = wxPyBeginAllowThreads();
6492 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6493
6494 wxPyEndAllowThreads(__tstate);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6498 return resultobj;
6499 fail:
6500 return NULL;
6501}
6502
6503
6504static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6505 PyObject *resultobj;
6506 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6507 PyObject *arg2 = (PyObject *) 0 ;
6508 PyObject *arg3 = (PyObject *) 0 ;
6509 PyObject * obj0 = 0 ;
6510 PyObject * obj1 = 0 ;
6511 PyObject * obj2 = 0 ;
6512 char *kwnames[] = {
6513 (char *) "self",(char *) "self",(char *) "_class", NULL
6514 };
6515
6516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6519 arg2 = obj1;
6520 arg3 = obj2;
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 (arg1)->_setCallbackInfo(arg2,arg3);
6524
6525 wxPyEndAllowThreads(__tstate);
6526 if (PyErr_Occurred()) SWIG_fail;
6527 }
6528 Py_INCREF(Py_None); resultobj = Py_None;
6529 return resultobj;
6530 fail:
6531 return NULL;
6532}
6533
6534
6535static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6536 PyObject *obj;
6537 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6538 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6539 Py_INCREF(obj);
6540 return Py_BuildValue((char *)"");
6541}
6542static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6543 PyObject *resultobj;
6544 wxWindow *arg1 = (wxWindow *) 0 ;
6545 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6546 bool arg3 = (bool) True ;
6547 bool result;
6548 PyObject * obj0 = 0 ;
6549 PyObject * obj1 = 0 ;
6550 PyObject * obj2 = 0 ;
6551 char *kwnames[] = {
6552 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6553 };
6554
6555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6558 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6560 if (obj2) {
6561 arg3 = (bool) SWIG_AsBool(obj2);
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 {
6565 if (!wxPyCheckForApp()) SWIG_fail;
6566 PyThreadState* __tstate = wxPyBeginAllowThreads();
6567 result = (bool)wxShowTip(arg1,arg2,arg3);
6568
6569 wxPyEndAllowThreads(__tstate);
6570 if (PyErr_Occurred()) SWIG_fail;
6571 }
6572 {
6573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6574 }
6575 return resultobj;
6576 fail:
6577 return NULL;
6578}
6579
6580
6581static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6582 PyObject *resultobj;
6583 wxString *arg1 = 0 ;
6584 size_t arg2 ;
6585 wxTipProvider *result;
6586 bool temp1 = False ;
6587 PyObject * obj0 = 0 ;
6588 PyObject * obj1 = 0 ;
6589 char *kwnames[] = {
6590 (char *) "filename",(char *) "currentTip", NULL
6591 };
6592
6593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6594 {
6595 arg1 = wxString_in_helper(obj0);
6596 if (arg1 == NULL) SWIG_fail;
6597 temp1 = True;
6598 }
6599 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 {
6602 if (!wxPyCheckForApp()) SWIG_fail;
6603 PyThreadState* __tstate = wxPyBeginAllowThreads();
6604 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6605
6606 wxPyEndAllowThreads(__tstate);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6610 {
6611 if (temp1)
6612 delete arg1;
6613 }
6614 return resultobj;
6615 fail:
6616 {
6617 if (temp1)
6618 delete arg1;
6619 }
6620 return NULL;
6621}
6622
6623
6624static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6625 PyObject *resultobj;
6626 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6627 int arg2 = (int) -1 ;
6628 wxPyTimer *result;
6629 PyObject * obj0 = 0 ;
6630 PyObject * obj1 = 0 ;
6631 char *kwnames[] = {
6632 (char *) "owner",(char *) "id", NULL
6633 };
6634
6635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6636 if (obj0) {
6637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6639 }
6640 if (obj1) {
6641 arg2 = (int) SWIG_AsInt(obj1);
6642 if (PyErr_Occurred()) SWIG_fail;
6643 }
6644 {
6645 if (!wxPyCheckForApp()) SWIG_fail;
6646 PyThreadState* __tstate = wxPyBeginAllowThreads();
6647 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6648
6649 wxPyEndAllowThreads(__tstate);
6650 if (PyErr_Occurred()) SWIG_fail;
6651 }
6652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6653 return resultobj;
6654 fail:
6655 return NULL;
6656}
6657
6658
6659static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6660 PyObject *resultobj;
6661 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6662 PyObject * obj0 = 0 ;
6663 char *kwnames[] = {
6664 (char *) "self", NULL
6665 };
6666
6667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6670 {
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 delete arg1;
6673
6674 wxPyEndAllowThreads(__tstate);
6675 if (PyErr_Occurred()) SWIG_fail;
6676 }
6677 Py_INCREF(Py_None); resultobj = Py_None;
6678 return resultobj;
6679 fail:
6680 return NULL;
6681}
6682
6683
6684static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6685 PyObject *resultobj;
6686 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6687 PyObject *arg2 = (PyObject *) 0 ;
6688 PyObject *arg3 = (PyObject *) 0 ;
6689 int arg4 = (int) 1 ;
6690 PyObject * obj0 = 0 ;
6691 PyObject * obj1 = 0 ;
6692 PyObject * obj2 = 0 ;
6693 PyObject * obj3 = 0 ;
6694 char *kwnames[] = {
6695 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6696 };
6697
6698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6701 arg2 = obj1;
6702 arg3 = obj2;
6703 if (obj3) {
6704 arg4 = (int) SWIG_AsInt(obj3);
6705 if (PyErr_Occurred()) SWIG_fail;
6706 }
6707 {
6708 PyThreadState* __tstate = wxPyBeginAllowThreads();
6709 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6710
6711 wxPyEndAllowThreads(__tstate);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 Py_INCREF(Py_None); resultobj = Py_None;
6715 return resultobj;
6716 fail:
6717 return NULL;
6718}
6719
6720
6721static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6722 PyObject *resultobj;
6723 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6724 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6725 int arg3 = (int) -1 ;
6726 PyObject * obj0 = 0 ;
6727 PyObject * obj1 = 0 ;
6728 PyObject * obj2 = 0 ;
6729 char *kwnames[] = {
6730 (char *) "self",(char *) "owner",(char *) "id", NULL
6731 };
6732
6733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6736 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6738 if (obj2) {
6739 arg3 = (int) SWIG_AsInt(obj2);
6740 if (PyErr_Occurred()) SWIG_fail;
6741 }
6742 {
6743 PyThreadState* __tstate = wxPyBeginAllowThreads();
6744 (arg1)->SetOwner(arg2,arg3);
6745
6746 wxPyEndAllowThreads(__tstate);
6747 if (PyErr_Occurred()) SWIG_fail;
6748 }
6749 Py_INCREF(Py_None); resultobj = Py_None;
6750 return resultobj;
6751 fail:
6752 return NULL;
6753}
6754
6755
6756static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6757 PyObject *resultobj;
6758 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6759 wxEvtHandler *result;
6760 PyObject * obj0 = 0 ;
6761 char *kwnames[] = {
6762 (char *) "self", NULL
6763 };
6764
6765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6768 {
6769 PyThreadState* __tstate = wxPyBeginAllowThreads();
6770 result = (wxEvtHandler *)(arg1)->GetOwner();
6771
6772 wxPyEndAllowThreads(__tstate);
6773 if (PyErr_Occurred()) SWIG_fail;
6774 }
6775 {
6776 resultobj = wxPyMake_wxObject(result, 0);
6777 }
6778 return resultobj;
6779 fail:
6780 return NULL;
6781}
6782
6783
6784static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6785 PyObject *resultobj;
6786 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6787 int arg2 = (int) -1 ;
6788 bool arg3 = (bool) False ;
6789 bool result;
6790 PyObject * obj0 = 0 ;
6791 PyObject * obj1 = 0 ;
6792 PyObject * obj2 = 0 ;
6793 char *kwnames[] = {
6794 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6795 };
6796
6797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6800 if (obj1) {
6801 arg2 = (int) SWIG_AsInt(obj1);
6802 if (PyErr_Occurred()) SWIG_fail;
6803 }
6804 if (obj2) {
6805 arg3 = (bool) SWIG_AsBool(obj2);
6806 if (PyErr_Occurred()) SWIG_fail;
6807 }
6808 {
6809 PyThreadState* __tstate = wxPyBeginAllowThreads();
6810 result = (bool)(arg1)->Start(arg2,arg3);
6811
6812 wxPyEndAllowThreads(__tstate);
6813 if (PyErr_Occurred()) SWIG_fail;
6814 }
6815 {
6816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6817 }
6818 return resultobj;
6819 fail:
6820 return NULL;
6821}
6822
6823
6824static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6825 PyObject *resultobj;
6826 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6827 PyObject * obj0 = 0 ;
6828 char *kwnames[] = {
6829 (char *) "self", NULL
6830 };
6831
6832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6835 {
6836 PyThreadState* __tstate = wxPyBeginAllowThreads();
6837 (arg1)->Stop();
6838
6839 wxPyEndAllowThreads(__tstate);
6840 if (PyErr_Occurred()) SWIG_fail;
6841 }
6842 Py_INCREF(Py_None); resultobj = Py_None;
6843 return resultobj;
6844 fail:
6845 return NULL;
6846}
6847
6848
6849static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj;
6851 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6852 bool result;
6853 PyObject * obj0 = 0 ;
6854 char *kwnames[] = {
6855 (char *) "self", NULL
6856 };
6857
6858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6861 {
6862 PyThreadState* __tstate = wxPyBeginAllowThreads();
6863 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6864
6865 wxPyEndAllowThreads(__tstate);
6866 if (PyErr_Occurred()) SWIG_fail;
6867 }
6868 {
6869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6870 }
6871 return resultobj;
6872 fail:
6873 return NULL;
6874}
6875
6876
6877static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6878 PyObject *resultobj;
6879 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6880 int result;
6881 PyObject * obj0 = 0 ;
6882 char *kwnames[] = {
6883 (char *) "self", NULL
6884 };
6885
6886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6889 {
6890 PyThreadState* __tstate = wxPyBeginAllowThreads();
6891 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6892
6893 wxPyEndAllowThreads(__tstate);
6894 if (PyErr_Occurred()) SWIG_fail;
6895 }
6896 resultobj = SWIG_FromInt((int)result);
6897 return resultobj;
6898 fail:
6899 return NULL;
6900}
6901
6902
6903static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6904 PyObject *resultobj;
6905 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6906 bool result;
6907 PyObject * obj0 = 0 ;
6908 char *kwnames[] = {
6909 (char *) "self", NULL
6910 };
6911
6912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6915 {
6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
6917 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6918
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 {
6923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6924 }
6925 return resultobj;
6926 fail:
6927 return NULL;
6928}
6929
6930
6931static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6932 PyObject *resultobj;
6933 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6934 int result;
6935 PyObject * obj0 = 0 ;
6936 char *kwnames[] = {
6937 (char *) "self", NULL
6938 };
6939
6940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6943 {
6944 PyThreadState* __tstate = wxPyBeginAllowThreads();
6945 result = (int)((wxPyTimer const *)arg1)->GetId();
6946
6947 wxPyEndAllowThreads(__tstate);
6948 if (PyErr_Occurred()) SWIG_fail;
6949 }
6950 resultobj = SWIG_FromInt((int)result);
6951 return resultobj;
6952 fail:
6953 return NULL;
6954}
6955
6956
6957static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6958 PyObject *obj;
6959 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6960 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6961 Py_INCREF(obj);
6962 return Py_BuildValue((char *)"");
6963}
6964static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj;
6966 int arg1 = (int) 0 ;
6967 int arg2 = (int) 0 ;
6968 wxTimerEvent *result;
6969 PyObject * obj0 = 0 ;
6970 PyObject * obj1 = 0 ;
6971 char *kwnames[] = {
6972 (char *) "timerid",(char *) "interval", NULL
6973 };
6974
6975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6976 if (obj0) {
6977 arg1 = (int) SWIG_AsInt(obj0);
6978 if (PyErr_Occurred()) SWIG_fail;
6979 }
6980 if (obj1) {
6981 arg2 = (int) SWIG_AsInt(obj1);
6982 if (PyErr_Occurred()) SWIG_fail;
6983 }
6984 {
6985 PyThreadState* __tstate = wxPyBeginAllowThreads();
6986 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6987
6988 wxPyEndAllowThreads(__tstate);
6989 if (PyErr_Occurred()) SWIG_fail;
6990 }
6991 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6992 return resultobj;
6993 fail:
6994 return NULL;
6995}
6996
6997
6998static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6999 PyObject *resultobj;
7000 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
7001 int result;
7002 PyObject * obj0 = 0 ;
7003 char *kwnames[] = {
7004 (char *) "self", NULL
7005 };
7006
7007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
7008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
7009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7010 {
7011 PyThreadState* __tstate = wxPyBeginAllowThreads();
7012 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
7013
7014 wxPyEndAllowThreads(__tstate);
7015 if (PyErr_Occurred()) SWIG_fail;
7016 }
7017 resultobj = SWIG_FromInt((int)result);
7018 return resultobj;
7019 fail:
7020 return NULL;
7021}
7022
7023
7024static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
7025 PyObject *obj;
7026 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7027 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
7028 Py_INCREF(obj);
7029 return Py_BuildValue((char *)"");
7030}
7031static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
7032 PyObject *resultobj;
7033 wxTimer *arg1 = 0 ;
7034 wxTimerRunner *result;
7035 PyObject * obj0 = 0 ;
7036
7037 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
7038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7039 SWIG_POINTER_EXCEPTION | 0)) == -1)
7040 SWIG_fail;
7041 if (arg1 == NULL) {
7042 PyErr_SetString(PyExc_TypeError,"null reference");
7043 SWIG_fail;
7044 }
7045 {
7046 if (!wxPyCheckForApp()) SWIG_fail;
7047 PyThreadState* __tstate = wxPyBeginAllowThreads();
7048 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
7049
7050 wxPyEndAllowThreads(__tstate);
7051 if (PyErr_Occurred()) SWIG_fail;
7052 }
7053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7054 return resultobj;
7055 fail:
7056 return NULL;
7057}
7058
7059
7060static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
7061 PyObject *resultobj;
7062 wxTimer *arg1 = 0 ;
7063 int arg2 ;
7064 bool arg3 = (bool) False ;
7065 wxTimerRunner *result;
7066 PyObject * obj0 = 0 ;
7067 PyObject * obj1 = 0 ;
7068 PyObject * obj2 = 0 ;
7069
7070 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
7071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7072 SWIG_POINTER_EXCEPTION | 0)) == -1)
7073 SWIG_fail;
7074 if (arg1 == NULL) {
7075 PyErr_SetString(PyExc_TypeError,"null reference");
7076 SWIG_fail;
7077 }
7078 arg2 = (int) SWIG_AsInt(obj1);
7079 if (PyErr_Occurred()) SWIG_fail;
7080 if (obj2) {
7081 arg3 = (bool) SWIG_AsBool(obj2);
7082 if (PyErr_Occurred()) SWIG_fail;
7083 }
7084 {
7085 if (!wxPyCheckForApp()) SWIG_fail;
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
7088
7089 wxPyEndAllowThreads(__tstate);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7093 return resultobj;
7094 fail:
7095 return NULL;
7096}
7097
7098
7099static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
7100 int argc;
7101 PyObject *argv[4];
7102 int ii;
7103
7104 argc = PyObject_Length(args);
7105 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7106 argv[ii] = PyTuple_GetItem(args,ii);
7107 }
7108 if (argc == 1) {
7109 int _v;
7110 {
7111 void *ptr;
7112 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7113 _v = 0;
7114 PyErr_Clear();
7115 } else {
7116 _v = 1;
7117 }
7118 }
7119 if (_v) {
7120 return _wrap_new_TimerRunner__SWIG_0(self,args);
7121 }
7122 }
7123 if ((argc >= 2) && (argc <= 3)) {
7124 int _v;
7125 {
7126 void *ptr;
7127 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7128 _v = 0;
7129 PyErr_Clear();
7130 } else {
7131 _v = 1;
7132 }
7133 }
7134 if (_v) {
7135 _v = SWIG_CheckInt(argv[1]);
7136 if (_v) {
7137 if (argc <= 2) {
7138 return _wrap_new_TimerRunner__SWIG_1(self,args);
7139 }
7140 _v = SWIG_CheckBool(argv[2]);
7141 if (_v) {
7142 return _wrap_new_TimerRunner__SWIG_1(self,args);
7143 }
7144 }
7145 }
7146 }
7147
7148 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7149 return NULL;
7150}
7151
7152
7153static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
7154 PyObject *resultobj;
7155 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7156 PyObject * obj0 = 0 ;
7157 char *kwnames[] = {
7158 (char *) "self", NULL
7159 };
7160
7161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7164 {
7165 PyThreadState* __tstate = wxPyBeginAllowThreads();
7166 delete arg1;
7167
7168 wxPyEndAllowThreads(__tstate);
7169 if (PyErr_Occurred()) SWIG_fail;
7170 }
7171 Py_INCREF(Py_None); resultobj = Py_None;
7172 return resultobj;
7173 fail:
7174 return NULL;
7175}
7176
7177
7178static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj;
7180 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7181 int arg2 ;
7182 bool arg3 = (bool) False ;
7183 PyObject * obj0 = 0 ;
7184 PyObject * obj1 = 0 ;
7185 PyObject * obj2 = 0 ;
7186 char *kwnames[] = {
7187 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7188 };
7189
7190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7193 arg2 = (int) SWIG_AsInt(obj1);
7194 if (PyErr_Occurred()) SWIG_fail;
7195 if (obj2) {
7196 arg3 = (bool) SWIG_AsBool(obj2);
7197 if (PyErr_Occurred()) SWIG_fail;
7198 }
7199 {
7200 PyThreadState* __tstate = wxPyBeginAllowThreads();
7201 (arg1)->Start(arg2,arg3);
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 * TimerRunner_swigregister(PyObject *self, PyObject *args) {
7214 PyObject *obj;
7215 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7216 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7217 Py_INCREF(obj);
7218 return Py_BuildValue((char *)"");
7219}
7220static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
7221 PyObject *resultobj;
7222 wxLog *result;
7223 char *kwnames[] = {
7224 NULL
7225 };
7226
7227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7228 {
7229 PyThreadState* __tstate = wxPyBeginAllowThreads();
7230 result = (wxLog *)new wxLog();
7231
7232 wxPyEndAllowThreads(__tstate);
7233 if (PyErr_Occurred()) SWIG_fail;
7234 }
7235 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7236 return resultobj;
7237 fail:
7238 return NULL;
7239}
7240
7241
7242static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7243 PyObject *resultobj;
7244 bool result;
7245 char *kwnames[] = {
7246 NULL
7247 };
7248
7249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7250 {
7251 PyThreadState* __tstate = wxPyBeginAllowThreads();
7252 result = (bool)wxLog::IsEnabled();
7253
7254 wxPyEndAllowThreads(__tstate);
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 {
7258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7259 }
7260 return resultobj;
7261 fail:
7262 return NULL;
7263}
7264
7265
7266static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
7267 PyObject *resultobj;
7268 bool arg1 = (bool) True ;
7269 bool result;
7270 PyObject * obj0 = 0 ;
7271 char *kwnames[] = {
7272 (char *) "doIt", NULL
7273 };
7274
7275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7276 if (obj0) {
7277 arg1 = (bool) SWIG_AsBool(obj0);
7278 if (PyErr_Occurred()) SWIG_fail;
7279 }
7280 {
7281 PyThreadState* __tstate = wxPyBeginAllowThreads();
7282 result = (bool)wxLog::EnableLogging(arg1);
7283
7284 wxPyEndAllowThreads(__tstate);
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 {
7288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7289 }
7290 return resultobj;
7291 fail:
7292 return NULL;
7293}
7294
7295
7296static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7297 PyObject *resultobj;
7298 wxLogLevel arg1 ;
7299 wxChar *arg2 = (wxChar *) 0 ;
7300 time_t arg3 ;
7301 PyObject * obj0 = 0 ;
7302 PyObject * obj1 = 0 ;
7303 PyObject * obj2 = 0 ;
7304 char *kwnames[] = {
7305 (char *) "level",(char *) "szString",(char *) "t", NULL
7306 };
7307
7308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7309 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7313 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 {
7316 PyThreadState* __tstate = wxPyBeginAllowThreads();
7317 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7318
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 Py_INCREF(Py_None); resultobj = Py_None;
7323 return resultobj;
7324 fail:
7325 return NULL;
7326}
7327
7328
7329static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7330 PyObject *resultobj;
7331 wxLog *arg1 = (wxLog *) 0 ;
7332 PyObject * obj0 = 0 ;
7333 char *kwnames[] = {
7334 (char *) "self", NULL
7335 };
7336
7337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7340 {
7341 PyThreadState* __tstate = wxPyBeginAllowThreads();
7342 (arg1)->Flush();
7343
7344 wxPyEndAllowThreads(__tstate);
7345 if (PyErr_Occurred()) SWIG_fail;
7346 }
7347 Py_INCREF(Py_None); resultobj = Py_None;
7348 return resultobj;
7349 fail:
7350 return NULL;
7351}
7352
7353
7354static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7355 PyObject *resultobj;
7356 char *kwnames[] = {
7357 NULL
7358 };
7359
7360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7361 {
7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
7363 wxLog::FlushActive();
7364
7365 wxPyEndAllowThreads(__tstate);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 }
7368 Py_INCREF(Py_None); resultobj = Py_None;
7369 return resultobj;
7370 fail:
7371 return NULL;
7372}
7373
7374
7375static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7376 PyObject *resultobj;
7377 wxLog *result;
7378 char *kwnames[] = {
7379 NULL
7380 };
7381
7382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7383 {
7384 PyThreadState* __tstate = wxPyBeginAllowThreads();
7385 result = (wxLog *)wxLog::GetActiveTarget();
7386
7387 wxPyEndAllowThreads(__tstate);
7388 if (PyErr_Occurred()) SWIG_fail;
7389 }
7390 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7391 return resultobj;
7392 fail:
7393 return NULL;
7394}
7395
7396
7397static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7398 PyObject *resultobj;
7399 wxLog *arg1 = (wxLog *) 0 ;
7400 wxLog *result;
7401 PyObject * obj0 = 0 ;
7402 char *kwnames[] = {
7403 (char *) "pLogger", NULL
7404 };
7405
7406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7409 {
7410 PyThreadState* __tstate = wxPyBeginAllowThreads();
7411 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7412
7413 wxPyEndAllowThreads(__tstate);
7414 if (PyErr_Occurred()) SWIG_fail;
7415 }
7416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7417 return resultobj;
7418 fail:
7419 return NULL;
7420}
7421
7422
7423static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7424 PyObject *resultobj;
7425 char *kwnames[] = {
7426 NULL
7427 };
7428
7429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7430 {
7431 PyThreadState* __tstate = wxPyBeginAllowThreads();
7432 wxLog::Suspend();
7433
7434 wxPyEndAllowThreads(__tstate);
7435 if (PyErr_Occurred()) SWIG_fail;
7436 }
7437 Py_INCREF(Py_None); resultobj = Py_None;
7438 return resultobj;
7439 fail:
7440 return NULL;
7441}
7442
7443
7444static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7445 PyObject *resultobj;
7446 char *kwnames[] = {
7447 NULL
7448 };
7449
7450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7451 {
7452 PyThreadState* __tstate = wxPyBeginAllowThreads();
7453 wxLog::Resume();
7454
7455 wxPyEndAllowThreads(__tstate);
7456 if (PyErr_Occurred()) SWIG_fail;
7457 }
7458 Py_INCREF(Py_None); resultobj = Py_None;
7459 return resultobj;
7460 fail:
7461 return NULL;
7462}
7463
7464
7465static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7466 PyObject *resultobj;
7467 bool arg1 = (bool) True ;
7468 PyObject * obj0 = 0 ;
7469 char *kwnames[] = {
7470 (char *) "bVerbose", NULL
7471 };
7472
7473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7474 if (obj0) {
7475 arg1 = (bool) SWIG_AsBool(obj0);
7476 if (PyErr_Occurred()) SWIG_fail;
7477 }
7478 {
7479 PyThreadState* __tstate = wxPyBeginAllowThreads();
7480 wxLog::SetVerbose(arg1);
7481
7482 wxPyEndAllowThreads(__tstate);
7483 if (PyErr_Occurred()) SWIG_fail;
7484 }
7485 Py_INCREF(Py_None); resultobj = Py_None;
7486 return resultobj;
7487 fail:
7488 return NULL;
7489}
7490
7491
7492static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7493 PyObject *resultobj;
7494 wxLogLevel arg1 ;
7495 PyObject * obj0 = 0 ;
7496 char *kwnames[] = {
7497 (char *) "logLevel", NULL
7498 };
7499
7500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7501 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7502 if (PyErr_Occurred()) SWIG_fail;
7503 {
7504 PyThreadState* __tstate = wxPyBeginAllowThreads();
7505 wxLog::SetLogLevel(arg1);
7506
7507 wxPyEndAllowThreads(__tstate);
7508 if (PyErr_Occurred()) SWIG_fail;
7509 }
7510 Py_INCREF(Py_None); resultobj = Py_None;
7511 return resultobj;
7512 fail:
7513 return NULL;
7514}
7515
7516
7517static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7518 PyObject *resultobj;
7519 char *kwnames[] = {
7520 NULL
7521 };
7522
7523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7524 {
7525 PyThreadState* __tstate = wxPyBeginAllowThreads();
7526 wxLog::DontCreateOnDemand();
7527
7528 wxPyEndAllowThreads(__tstate);
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 Py_INCREF(Py_None); resultobj = Py_None;
7532 return resultobj;
7533 fail:
7534 return NULL;
7535}
7536
7537
7538static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7539 PyObject *resultobj;
7540 wxTraceMask arg1 ;
7541 PyObject * obj0 = 0 ;
7542 char *kwnames[] = {
7543 (char *) "ulMask", NULL
7544 };
7545
7546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7547 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 {
7550 PyThreadState* __tstate = wxPyBeginAllowThreads();
7551 wxLog::SetTraceMask(arg1);
7552
7553 wxPyEndAllowThreads(__tstate);
7554 if (PyErr_Occurred()) SWIG_fail;
7555 }
7556 Py_INCREF(Py_None); resultobj = Py_None;
7557 return resultobj;
7558 fail:
7559 return NULL;
7560}
7561
7562
7563static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7564 PyObject *resultobj;
7565 wxString *arg1 = 0 ;
7566 bool temp1 = False ;
7567 PyObject * obj0 = 0 ;
7568 char *kwnames[] = {
7569 (char *) "str", NULL
7570 };
7571
7572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7573 {
7574 arg1 = wxString_in_helper(obj0);
7575 if (arg1 == NULL) SWIG_fail;
7576 temp1 = True;
7577 }
7578 {
7579 PyThreadState* __tstate = wxPyBeginAllowThreads();
7580 wxLog::AddTraceMask((wxString const &)*arg1);
7581
7582 wxPyEndAllowThreads(__tstate);
7583 if (PyErr_Occurred()) SWIG_fail;
7584 }
7585 Py_INCREF(Py_None); resultobj = Py_None;
7586 {
7587 if (temp1)
7588 delete arg1;
7589 }
7590 return resultobj;
7591 fail:
7592 {
7593 if (temp1)
7594 delete arg1;
7595 }
7596 return NULL;
7597}
7598
7599
7600static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7601 PyObject *resultobj;
7602 wxString *arg1 = 0 ;
7603 bool temp1 = False ;
7604 PyObject * obj0 = 0 ;
7605 char *kwnames[] = {
7606 (char *) "str", NULL
7607 };
7608
7609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7610 {
7611 arg1 = wxString_in_helper(obj0);
7612 if (arg1 == NULL) SWIG_fail;
7613 temp1 = True;
7614 }
7615 {
7616 PyThreadState* __tstate = wxPyBeginAllowThreads();
7617 wxLog::RemoveTraceMask((wxString const &)*arg1);
7618
7619 wxPyEndAllowThreads(__tstate);
7620 if (PyErr_Occurred()) SWIG_fail;
7621 }
7622 Py_INCREF(Py_None); resultobj = Py_None;
7623 {
7624 if (temp1)
7625 delete arg1;
7626 }
7627 return resultobj;
7628 fail:
7629 {
7630 if (temp1)
7631 delete arg1;
7632 }
7633 return NULL;
7634}
7635
7636
7637static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7638 PyObject *resultobj;
7639 char *kwnames[] = {
7640 NULL
7641 };
7642
7643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7644 {
7645 PyThreadState* __tstate = wxPyBeginAllowThreads();
7646 wxLog::ClearTraceMasks();
7647
7648 wxPyEndAllowThreads(__tstate);
7649 if (PyErr_Occurred()) SWIG_fail;
7650 }
7651 Py_INCREF(Py_None); resultobj = Py_None;
7652 return resultobj;
7653 fail:
7654 return NULL;
7655}
7656
7657
7658static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7659 PyObject *resultobj;
7660 wxArrayString *result;
7661 char *kwnames[] = {
7662 NULL
7663 };
7664
7665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7666 {
7667 PyThreadState* __tstate = wxPyBeginAllowThreads();
7668 {
7669 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7670 result = (wxArrayString *) &_result_ref;
7671 }
7672
7673 wxPyEndAllowThreads(__tstate);
7674 if (PyErr_Occurred()) SWIG_fail;
7675 }
7676 {
7677 resultobj = wxArrayString2PyList_helper(*result);
7678 }
7679 return resultobj;
7680 fail:
7681 return NULL;
7682}
7683
7684
7685static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7686 PyObject *resultobj;
7687 wxChar *arg1 = (wxChar *) 0 ;
7688 PyObject * obj0 = 0 ;
7689 char *kwnames[] = {
7690 (char *) "ts", NULL
7691 };
7692
7693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7696 {
7697 PyThreadState* __tstate = wxPyBeginAllowThreads();
7698 wxLog::SetTimestamp((wxChar const *)arg1);
7699
7700 wxPyEndAllowThreads(__tstate);
7701 if (PyErr_Occurred()) SWIG_fail;
7702 }
7703 Py_INCREF(Py_None); resultobj = Py_None;
7704 return resultobj;
7705 fail:
7706 return NULL;
7707}
7708
7709
7710static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7711 PyObject *resultobj;
7712 bool result;
7713 char *kwnames[] = {
7714 NULL
7715 };
7716
7717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7718 {
7719 PyThreadState* __tstate = wxPyBeginAllowThreads();
7720 result = (bool)wxLog::GetVerbose();
7721
7722 wxPyEndAllowThreads(__tstate);
7723 if (PyErr_Occurred()) SWIG_fail;
7724 }
7725 {
7726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7727 }
7728 return resultobj;
7729 fail:
7730 return NULL;
7731}
7732
7733
7734static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7735 PyObject *resultobj;
7736 wxTraceMask result;
7737 char *kwnames[] = {
7738 NULL
7739 };
7740
7741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7742 {
7743 PyThreadState* __tstate = wxPyBeginAllowThreads();
7744 result = (wxTraceMask)wxLog::GetTraceMask();
7745
7746 wxPyEndAllowThreads(__tstate);
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7750 return resultobj;
7751 fail:
7752 return NULL;
7753}
7754
7755
7756static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7757 PyObject *resultobj;
7758 wxChar *arg1 = (wxChar *) 0 ;
7759 bool result;
7760 PyObject * obj0 = 0 ;
7761 char *kwnames[] = {
7762 (char *) "mask", NULL
7763 };
7764
7765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7768 {
7769 PyThreadState* __tstate = wxPyBeginAllowThreads();
7770 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7771
7772 wxPyEndAllowThreads(__tstate);
7773 if (PyErr_Occurred()) SWIG_fail;
7774 }
7775 {
7776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7777 }
7778 return resultobj;
7779 fail:
7780 return NULL;
7781}
7782
7783
7784static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj;
7786 wxLogLevel result;
7787 char *kwnames[] = {
7788 NULL
7789 };
7790
7791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7792 {
7793 PyThreadState* __tstate = wxPyBeginAllowThreads();
7794 result = (wxLogLevel)wxLog::GetLogLevel();
7795
7796 wxPyEndAllowThreads(__tstate);
7797 if (PyErr_Occurred()) SWIG_fail;
7798 }
7799 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7800 return resultobj;
7801 fail:
7802 return NULL;
7803}
7804
7805
7806static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7807 PyObject *resultobj;
7808 wxChar *result;
7809 char *kwnames[] = {
7810 NULL
7811 };
7812
7813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7814 {
7815 PyThreadState* __tstate = wxPyBeginAllowThreads();
7816 result = (wxChar *)wxLog::GetTimestamp();
7817
7818 wxPyEndAllowThreads(__tstate);
7819 if (PyErr_Occurred()) SWIG_fail;
7820 }
7821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7822 return resultobj;
7823 fail:
7824 return NULL;
7825}
7826
7827
7828static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7829 PyObject *resultobj;
7830 wxString result;
7831 char *kwnames[] = {
7832 NULL
7833 };
7834
7835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7836 {
7837 PyThreadState* __tstate = wxPyBeginAllowThreads();
7838 result = Log_TimeStamp();
7839
7840 wxPyEndAllowThreads(__tstate);
7841 if (PyErr_Occurred()) SWIG_fail;
7842 }
7843 {
7844#if wxUSE_UNICODE
7845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7846#else
7847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7848#endif
7849 }
7850 return resultobj;
7851 fail:
7852 return NULL;
7853}
7854
7855
7856static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7857 PyObject *resultobj;
7858 wxLog *arg1 = (wxLog *) 0 ;
7859 PyObject * obj0 = 0 ;
7860 char *kwnames[] = {
7861 (char *) "self", NULL
7862 };
7863
7864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7867 {
7868 PyThreadState* __tstate = wxPyBeginAllowThreads();
7869 wxLog_Destroy(arg1);
7870
7871 wxPyEndAllowThreads(__tstate);
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 Py_INCREF(Py_None); resultobj = Py_None;
7875 return resultobj;
7876 fail:
7877 return NULL;
7878}
7879
7880
7881static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7882 PyObject *obj;
7883 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7884 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7885 Py_INCREF(obj);
7886 return Py_BuildValue((char *)"");
7887}
7888static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7889 PyObject *resultobj;
7890 wxLogStderr *result;
7891 char *kwnames[] = {
7892 NULL
7893 };
7894
7895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7896 {
7897 PyThreadState* __tstate = wxPyBeginAllowThreads();
7898 result = (wxLogStderr *)new wxLogStderr();
7899
7900 wxPyEndAllowThreads(__tstate);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7904 return resultobj;
7905 fail:
7906 return NULL;
7907}
7908
7909
7910static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7911 PyObject *obj;
7912 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7913 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7914 Py_INCREF(obj);
7915 return Py_BuildValue((char *)"");
7916}
7917static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7918 PyObject *resultobj;
7919 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7920 wxLogTextCtrl *result;
7921 PyObject * obj0 = 0 ;
7922 char *kwnames[] = {
7923 (char *) "pTextCtrl", NULL
7924 };
7925
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7929 {
7930 PyThreadState* __tstate = wxPyBeginAllowThreads();
7931 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7932
7933 wxPyEndAllowThreads(__tstate);
7934 if (PyErr_Occurred()) SWIG_fail;
7935 }
7936 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7937 return resultobj;
7938 fail:
7939 return NULL;
7940}
7941
7942
7943static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7944 PyObject *obj;
7945 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7946 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7947 Py_INCREF(obj);
7948 return Py_BuildValue((char *)"");
7949}
7950static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7951 PyObject *resultobj;
7952 wxLogGui *result;
7953 char *kwnames[] = {
7954 NULL
7955 };
7956
7957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 result = (wxLogGui *)new wxLogGui();
7961
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7966 return resultobj;
7967 fail:
7968 return NULL;
7969}
7970
7971
7972static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7973 PyObject *obj;
7974 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7975 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7976 Py_INCREF(obj);
7977 return Py_BuildValue((char *)"");
7978}
7979static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7980 PyObject *resultobj;
7981 wxFrame *arg1 = (wxFrame *) 0 ;
7982 wxString *arg2 = 0 ;
7983 bool arg3 = (bool) True ;
7984 bool arg4 = (bool) True ;
7985 wxLogWindow *result;
7986 bool temp2 = False ;
7987 PyObject * obj0 = 0 ;
7988 PyObject * obj1 = 0 ;
7989 PyObject * obj2 = 0 ;
7990 PyObject * obj3 = 0 ;
7991 char *kwnames[] = {
7992 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7993 };
7994
7995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7998 {
7999 arg2 = wxString_in_helper(obj1);
8000 if (arg2 == NULL) SWIG_fail;
8001 temp2 = True;
8002 }
8003 if (obj2) {
8004 arg3 = (bool) SWIG_AsBool(obj2);
8005 if (PyErr_Occurred()) SWIG_fail;
8006 }
8007 if (obj3) {
8008 arg4 = (bool) SWIG_AsBool(obj3);
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 {
8012 PyThreadState* __tstate = wxPyBeginAllowThreads();
8013 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
8014
8015 wxPyEndAllowThreads(__tstate);
8016 if (PyErr_Occurred()) SWIG_fail;
8017 }
8018 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
8019 {
8020 if (temp2)
8021 delete arg2;
8022 }
8023 return resultobj;
8024 fail:
8025 {
8026 if (temp2)
8027 delete arg2;
8028 }
8029 return NULL;
8030}
8031
8032
8033static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
8034 PyObject *resultobj;
8035 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8036 bool arg2 = (bool) True ;
8037 PyObject * obj0 = 0 ;
8038 PyObject * obj1 = 0 ;
8039 char *kwnames[] = {
8040 (char *) "self",(char *) "bShow", NULL
8041 };
8042
8043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
8044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8046 if (obj1) {
8047 arg2 = (bool) SWIG_AsBool(obj1);
8048 if (PyErr_Occurred()) SWIG_fail;
8049 }
8050 {
8051 PyThreadState* __tstate = wxPyBeginAllowThreads();
8052 (arg1)->Show(arg2);
8053
8054 wxPyEndAllowThreads(__tstate);
8055 if (PyErr_Occurred()) SWIG_fail;
8056 }
8057 Py_INCREF(Py_None); resultobj = Py_None;
8058 return resultobj;
8059 fail:
8060 return NULL;
8061}
8062
8063
8064static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8065 PyObject *resultobj;
8066 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8067 wxFrame *result;
8068 PyObject * obj0 = 0 ;
8069 char *kwnames[] = {
8070 (char *) "self", NULL
8071 };
8072
8073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
8074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8076 {
8077 PyThreadState* __tstate = wxPyBeginAllowThreads();
8078 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
8079
8080 wxPyEndAllowThreads(__tstate);
8081 if (PyErr_Occurred()) SWIG_fail;
8082 }
8083 {
8084 resultobj = wxPyMake_wxObject(result, 0);
8085 }
8086 return resultobj;
8087 fail:
8088 return NULL;
8089}
8090
8091
8092static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8093 PyObject *resultobj;
8094 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8095 wxLog *result;
8096 PyObject * obj0 = 0 ;
8097 char *kwnames[] = {
8098 (char *) "self", NULL
8099 };
8100
8101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
8102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8104 {
8105 PyThreadState* __tstate = wxPyBeginAllowThreads();
8106 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8107
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8112 return resultobj;
8113 fail:
8114 return NULL;
8115}
8116
8117
8118static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8119 PyObject *resultobj;
8120 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8121 bool result;
8122 PyObject * obj0 = 0 ;
8123 char *kwnames[] = {
8124 (char *) "self", NULL
8125 };
8126
8127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8130 {
8131 PyThreadState* __tstate = wxPyBeginAllowThreads();
8132 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8133
8134 wxPyEndAllowThreads(__tstate);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
8137 {
8138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8139 }
8140 return resultobj;
8141 fail:
8142 return NULL;
8143}
8144
8145
8146static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8147 PyObject *resultobj;
8148 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8149 bool arg2 ;
8150 PyObject * obj0 = 0 ;
8151 PyObject * obj1 = 0 ;
8152 char *kwnames[] = {
8153 (char *) "self",(char *) "bDoPass", NULL
8154 };
8155
8156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8159 arg2 = (bool) SWIG_AsBool(obj1);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 {
8162 PyThreadState* __tstate = wxPyBeginAllowThreads();
8163 (arg1)->PassMessages(arg2);
8164
8165 wxPyEndAllowThreads(__tstate);
8166 if (PyErr_Occurred()) SWIG_fail;
8167 }
8168 Py_INCREF(Py_None); resultobj = Py_None;
8169 return resultobj;
8170 fail:
8171 return NULL;
8172}
8173
8174
8175static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
8176 PyObject *obj;
8177 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8178 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8179 Py_INCREF(obj);
8180 return Py_BuildValue((char *)"");
8181}
8182static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
8183 PyObject *resultobj;
8184 wxLog *arg1 = (wxLog *) 0 ;
8185 wxLogChain *result;
8186 PyObject * obj0 = 0 ;
8187 char *kwnames[] = {
8188 (char *) "logger", NULL
8189 };
8190
8191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8194 {
8195 PyThreadState* __tstate = wxPyBeginAllowThreads();
8196 result = (wxLogChain *)new wxLogChain(arg1);
8197
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
8201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8202 return resultobj;
8203 fail:
8204 return NULL;
8205}
8206
8207
8208static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8209 PyObject *resultobj;
8210 wxLogChain *arg1 = (wxLogChain *) 0 ;
8211 wxLog *arg2 = (wxLog *) 0 ;
8212 PyObject * obj0 = 0 ;
8213 PyObject * obj1 = 0 ;
8214 char *kwnames[] = {
8215 (char *) "self",(char *) "logger", NULL
8216 };
8217
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8223 {
8224 PyThreadState* __tstate = wxPyBeginAllowThreads();
8225 (arg1)->SetLog(arg2);
8226
8227 wxPyEndAllowThreads(__tstate);
8228 if (PyErr_Occurred()) SWIG_fail;
8229 }
8230 Py_INCREF(Py_None); resultobj = Py_None;
8231 return resultobj;
8232 fail:
8233 return NULL;
8234}
8235
8236
8237static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8238 PyObject *resultobj;
8239 wxLogChain *arg1 = (wxLogChain *) 0 ;
8240 bool arg2 ;
8241 PyObject * obj0 = 0 ;
8242 PyObject * obj1 = 0 ;
8243 char *kwnames[] = {
8244 (char *) "self",(char *) "bDoPass", NULL
8245 };
8246
8247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8250 arg2 = (bool) SWIG_AsBool(obj1);
8251 if (PyErr_Occurred()) SWIG_fail;
8252 {
8253 PyThreadState* __tstate = wxPyBeginAllowThreads();
8254 (arg1)->PassMessages(arg2);
8255
8256 wxPyEndAllowThreads(__tstate);
8257 if (PyErr_Occurred()) SWIG_fail;
8258 }
8259 Py_INCREF(Py_None); resultobj = Py_None;
8260 return resultobj;
8261 fail:
8262 return NULL;
8263}
8264
8265
8266static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8267 PyObject *resultobj;
8268 wxLogChain *arg1 = (wxLogChain *) 0 ;
8269 bool result;
8270 PyObject * obj0 = 0 ;
8271 char *kwnames[] = {
8272 (char *) "self", NULL
8273 };
8274
8275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8278 {
8279 PyThreadState* __tstate = wxPyBeginAllowThreads();
8280 result = (bool)(arg1)->IsPassingMessages();
8281
8282 wxPyEndAllowThreads(__tstate);
8283 if (PyErr_Occurred()) SWIG_fail;
8284 }
8285 {
8286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8287 }
8288 return resultobj;
8289 fail:
8290 return NULL;
8291}
8292
8293
8294static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8295 PyObject *resultobj;
8296 wxLogChain *arg1 = (wxLogChain *) 0 ;
8297 wxLog *result;
8298 PyObject * obj0 = 0 ;
8299 char *kwnames[] = {
8300 (char *) "self", NULL
8301 };
8302
8303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8306 {
8307 PyThreadState* __tstate = wxPyBeginAllowThreads();
8308 result = (wxLog *)(arg1)->GetOldLog();
8309
8310 wxPyEndAllowThreads(__tstate);
8311 if (PyErr_Occurred()) SWIG_fail;
8312 }
8313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8314 return resultobj;
8315 fail:
8316 return NULL;
8317}
8318
8319
8320static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8321 PyObject *obj;
8322 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8323 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8324 Py_INCREF(obj);
8325 return Py_BuildValue((char *)"");
8326}
8327static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8328 PyObject *resultobj;
8329 unsigned long result;
8330 char *kwnames[] = {
8331 NULL
8332 };
8333
8334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8335 {
8336 PyThreadState* __tstate = wxPyBeginAllowThreads();
8337 result = (unsigned long)wxSysErrorCode();
8338
8339 wxPyEndAllowThreads(__tstate);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
8342 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8343 return resultobj;
8344 fail:
8345 return NULL;
8346}
8347
8348
8349static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8350 PyObject *resultobj;
8351 unsigned long arg1 = (unsigned long) 0 ;
8352 wxString result;
8353 PyObject * obj0 = 0 ;
8354 char *kwnames[] = {
8355 (char *) "nErrCode", NULL
8356 };
8357
8358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8359 if (obj0) {
8360 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 {
8364 PyThreadState* __tstate = wxPyBeginAllowThreads();
8365 result = wxSysErrorMsg(arg1);
8366
8367 wxPyEndAllowThreads(__tstate);
8368 if (PyErr_Occurred()) SWIG_fail;
8369 }
8370 {
8371#if wxUSE_UNICODE
8372 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8373#else
8374 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8375#endif
8376 }
8377 return resultobj;
8378 fail:
8379 return NULL;
8380}
8381
8382
8383static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8384 PyObject *resultobj;
8385 wxString *arg1 = 0 ;
8386 bool temp1 = False ;
8387 PyObject * obj0 = 0 ;
8388 char *kwnames[] = {
8389 (char *) "msg", NULL
8390 };
8391
8392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8393 {
8394 arg1 = wxString_in_helper(obj0);
8395 if (arg1 == NULL) SWIG_fail;
8396 temp1 = True;
8397 }
8398 {
8399 PyThreadState* __tstate = wxPyBeginAllowThreads();
8400 wxLogFatalError((wxString const &)*arg1);
8401
8402 wxPyEndAllowThreads(__tstate);
8403 if (PyErr_Occurred()) SWIG_fail;
8404 }
8405 Py_INCREF(Py_None); resultobj = Py_None;
8406 {
8407 if (temp1)
8408 delete arg1;
8409 }
8410 return resultobj;
8411 fail:
8412 {
8413 if (temp1)
8414 delete arg1;
8415 }
8416 return NULL;
8417}
8418
8419
8420static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8421 PyObject *resultobj;
8422 wxString *arg1 = 0 ;
8423 bool temp1 = False ;
8424 PyObject * obj0 = 0 ;
8425 char *kwnames[] = {
8426 (char *) "msg", NULL
8427 };
8428
8429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8430 {
8431 arg1 = wxString_in_helper(obj0);
8432 if (arg1 == NULL) SWIG_fail;
8433 temp1 = True;
8434 }
8435 {
8436 PyThreadState* __tstate = wxPyBeginAllowThreads();
8437 wxLogError((wxString const &)*arg1);
8438
8439 wxPyEndAllowThreads(__tstate);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 Py_INCREF(Py_None); resultobj = Py_None;
8443 {
8444 if (temp1)
8445 delete arg1;
8446 }
8447 return resultobj;
8448 fail:
8449 {
8450 if (temp1)
8451 delete arg1;
8452 }
8453 return NULL;
8454}
8455
8456
8457static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8458 PyObject *resultobj;
8459 wxString *arg1 = 0 ;
8460 bool temp1 = False ;
8461 PyObject * obj0 = 0 ;
8462 char *kwnames[] = {
8463 (char *) "msg", NULL
8464 };
8465
8466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8467 {
8468 arg1 = wxString_in_helper(obj0);
8469 if (arg1 == NULL) SWIG_fail;
8470 temp1 = True;
8471 }
8472 {
8473 PyThreadState* __tstate = wxPyBeginAllowThreads();
8474 wxLogWarning((wxString const &)*arg1);
8475
8476 wxPyEndAllowThreads(__tstate);
8477 if (PyErr_Occurred()) SWIG_fail;
8478 }
8479 Py_INCREF(Py_None); resultobj = Py_None;
8480 {
8481 if (temp1)
8482 delete arg1;
8483 }
8484 return resultobj;
8485 fail:
8486 {
8487 if (temp1)
8488 delete arg1;
8489 }
8490 return NULL;
8491}
8492
8493
8494static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8495 PyObject *resultobj;
8496 wxString *arg1 = 0 ;
8497 bool temp1 = False ;
8498 PyObject * obj0 = 0 ;
8499 char *kwnames[] = {
8500 (char *) "msg", NULL
8501 };
8502
8503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8504 {
8505 arg1 = wxString_in_helper(obj0);
8506 if (arg1 == NULL) SWIG_fail;
8507 temp1 = True;
8508 }
8509 {
8510 PyThreadState* __tstate = wxPyBeginAllowThreads();
8511 wxLogMessage((wxString const &)*arg1);
8512
8513 wxPyEndAllowThreads(__tstate);
8514 if (PyErr_Occurred()) SWIG_fail;
8515 }
8516 Py_INCREF(Py_None); resultobj = Py_None;
8517 {
8518 if (temp1)
8519 delete arg1;
8520 }
8521 return resultobj;
8522 fail:
8523 {
8524 if (temp1)
8525 delete arg1;
8526 }
8527 return NULL;
8528}
8529
8530
8531static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8532 PyObject *resultobj;
8533 wxString *arg1 = 0 ;
8534 bool temp1 = False ;
8535 PyObject * obj0 = 0 ;
8536 char *kwnames[] = {
8537 (char *) "msg", NULL
8538 };
8539
8540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8541 {
8542 arg1 = wxString_in_helper(obj0);
8543 if (arg1 == NULL) SWIG_fail;
8544 temp1 = True;
8545 }
8546 {
8547 PyThreadState* __tstate = wxPyBeginAllowThreads();
8548 wxLogInfo((wxString const &)*arg1);
8549
8550 wxPyEndAllowThreads(__tstate);
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 Py_INCREF(Py_None); resultobj = Py_None;
8554 {
8555 if (temp1)
8556 delete arg1;
8557 }
8558 return resultobj;
8559 fail:
8560 {
8561 if (temp1)
8562 delete arg1;
8563 }
8564 return NULL;
8565}
8566
8567
8568static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8569 PyObject *resultobj;
8570 wxString *arg1 = 0 ;
8571 bool temp1 = False ;
8572 PyObject * obj0 = 0 ;
8573 char *kwnames[] = {
8574 (char *) "msg", NULL
8575 };
8576
8577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8578 {
8579 arg1 = wxString_in_helper(obj0);
8580 if (arg1 == NULL) SWIG_fail;
8581 temp1 = True;
8582 }
8583 {
8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
8585 wxLogDebug((wxString const &)*arg1);
8586
8587 wxPyEndAllowThreads(__tstate);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 Py_INCREF(Py_None); resultobj = Py_None;
8591 {
8592 if (temp1)
8593 delete arg1;
8594 }
8595 return resultobj;
8596 fail:
8597 {
8598 if (temp1)
8599 delete arg1;
8600 }
8601 return NULL;
8602}
8603
8604
8605static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8606 PyObject *resultobj;
8607 wxString *arg1 = 0 ;
8608 bool temp1 = False ;
8609 PyObject * obj0 = 0 ;
8610 char *kwnames[] = {
8611 (char *) "msg", NULL
8612 };
8613
8614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8615 {
8616 arg1 = wxString_in_helper(obj0);
8617 if (arg1 == NULL) SWIG_fail;
8618 temp1 = True;
8619 }
8620 {
8621 PyThreadState* __tstate = wxPyBeginAllowThreads();
8622 wxLogVerbose((wxString const &)*arg1);
8623
8624 wxPyEndAllowThreads(__tstate);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 }
8627 Py_INCREF(Py_None); resultobj = Py_None;
8628 {
8629 if (temp1)
8630 delete arg1;
8631 }
8632 return resultobj;
8633 fail:
8634 {
8635 if (temp1)
8636 delete arg1;
8637 }
8638 return NULL;
8639}
8640
8641
8642static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8643 PyObject *resultobj;
8644 wxString *arg1 = 0 ;
8645 bool temp1 = False ;
8646 PyObject * obj0 = 0 ;
8647 char *kwnames[] = {
8648 (char *) "msg", NULL
8649 };
8650
8651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8652 {
8653 arg1 = wxString_in_helper(obj0);
8654 if (arg1 == NULL) SWIG_fail;
8655 temp1 = True;
8656 }
8657 {
8658 PyThreadState* __tstate = wxPyBeginAllowThreads();
8659 wxLogStatus((wxString const &)*arg1);
8660
8661 wxPyEndAllowThreads(__tstate);
8662 if (PyErr_Occurred()) SWIG_fail;
8663 }
8664 Py_INCREF(Py_None); resultobj = Py_None;
8665 {
8666 if (temp1)
8667 delete arg1;
8668 }
8669 return resultobj;
8670 fail:
8671 {
8672 if (temp1)
8673 delete arg1;
8674 }
8675 return NULL;
8676}
8677
8678
8679static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8680 PyObject *resultobj;
8681 wxFrame *arg1 = (wxFrame *) 0 ;
8682 wxString *arg2 = 0 ;
8683 bool temp2 = False ;
8684 PyObject * obj0 = 0 ;
8685 PyObject * obj1 = 0 ;
8686 char *kwnames[] = {
8687 (char *) "pFrame",(char *) "msg", NULL
8688 };
8689
8690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8693 {
8694 arg2 = wxString_in_helper(obj1);
8695 if (arg2 == NULL) SWIG_fail;
8696 temp2 = True;
8697 }
8698 {
8699 PyThreadState* __tstate = wxPyBeginAllowThreads();
8700 wxLogStatus(arg1,(wxString const &)*arg2);
8701
8702 wxPyEndAllowThreads(__tstate);
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 Py_INCREF(Py_None); resultobj = Py_None;
8706 {
8707 if (temp2)
8708 delete arg2;
8709 }
8710 return resultobj;
8711 fail:
8712 {
8713 if (temp2)
8714 delete arg2;
8715 }
8716 return NULL;
8717}
8718
8719
8720static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8721 PyObject *resultobj;
8722 wxString *arg1 = 0 ;
8723 bool temp1 = False ;
8724 PyObject * obj0 = 0 ;
8725 char *kwnames[] = {
8726 (char *) "msg", NULL
8727 };
8728
8729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8730 {
8731 arg1 = wxString_in_helper(obj0);
8732 if (arg1 == NULL) SWIG_fail;
8733 temp1 = True;
8734 }
8735 {
8736 PyThreadState* __tstate = wxPyBeginAllowThreads();
8737 wxLogSysError((wxString const &)*arg1);
8738
8739 wxPyEndAllowThreads(__tstate);
8740 if (PyErr_Occurred()) SWIG_fail;
8741 }
8742 Py_INCREF(Py_None); resultobj = Py_None;
8743 {
8744 if (temp1)
8745 delete arg1;
8746 }
8747 return resultobj;
8748 fail:
8749 {
8750 if (temp1)
8751 delete arg1;
8752 }
8753 return NULL;
8754}
8755
8756
8757static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8758 PyObject *resultobj;
8759 unsigned long arg1 ;
8760 wxString *arg2 = 0 ;
8761 bool temp2 = False ;
8762 PyObject * obj0 = 0 ;
8763 PyObject * obj1 = 0 ;
8764
8765 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8766 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8767 if (PyErr_Occurred()) SWIG_fail;
8768 {
8769 arg2 = wxString_in_helper(obj1);
8770 if (arg2 == NULL) SWIG_fail;
8771 temp2 = True;
8772 }
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 wxLogTrace(arg1,(wxString const &)*arg2);
8776
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 Py_INCREF(Py_None); resultobj = Py_None;
8781 {
8782 if (temp2)
8783 delete arg2;
8784 }
8785 return resultobj;
8786 fail:
8787 {
8788 if (temp2)
8789 delete arg2;
8790 }
8791 return NULL;
8792}
8793
8794
8795static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8796 PyObject *resultobj;
8797 wxString *arg1 = 0 ;
8798 wxString *arg2 = 0 ;
8799 bool temp1 = False ;
8800 bool temp2 = False ;
8801 PyObject * obj0 = 0 ;
8802 PyObject * obj1 = 0 ;
8803
8804 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8805 {
8806 arg1 = wxString_in_helper(obj0);
8807 if (arg1 == NULL) SWIG_fail;
8808 temp1 = True;
8809 }
8810 {
8811 arg2 = wxString_in_helper(obj1);
8812 if (arg2 == NULL) SWIG_fail;
8813 temp2 = True;
8814 }
8815 {
8816 PyThreadState* __tstate = wxPyBeginAllowThreads();
8817 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8818
8819 wxPyEndAllowThreads(__tstate);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 Py_INCREF(Py_None); resultobj = Py_None;
8823 {
8824 if (temp1)
8825 delete arg1;
8826 }
8827 {
8828 if (temp2)
8829 delete arg2;
8830 }
8831 return resultobj;
8832 fail:
8833 {
8834 if (temp1)
8835 delete arg1;
8836 }
8837 {
8838 if (temp2)
8839 delete arg2;
8840 }
8841 return NULL;
8842}
8843
8844
8845static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8846 int argc;
8847 PyObject *argv[3];
8848 int ii;
8849
8850 argc = PyObject_Length(args);
8851 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8852 argv[ii] = PyTuple_GetItem(args,ii);
8853 }
8854 if (argc == 2) {
8855 int _v;
8856 {
8857 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8858 }
8859 if (_v) {
8860 {
8861 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8862 }
8863 if (_v) {
8864 return _wrap_LogTrace__SWIG_1(self,args);
8865 }
8866 }
8867 }
8868 if (argc == 2) {
8869 int _v;
8870 _v = SWIG_CheckUnsignedLong(argv[0]);
8871 if (_v) {
8872 {
8873 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8874 }
8875 if (_v) {
8876 return _wrap_LogTrace__SWIG_0(self,args);
8877 }
8878 }
8879 }
8880
8881 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8882 return NULL;
8883}
8884
8885
8886static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8887 PyObject *resultobj;
8888 unsigned long arg1 ;
8889 wxString *arg2 = 0 ;
8890 bool temp2 = False ;
8891 PyObject * obj0 = 0 ;
8892 PyObject * obj1 = 0 ;
8893 char *kwnames[] = {
8894 (char *) "level",(char *) "msg", NULL
8895 };
8896
8897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8898 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 {
8901 arg2 = wxString_in_helper(obj1);
8902 if (arg2 == NULL) SWIG_fail;
8903 temp2 = True;
8904 }
8905 {
8906 PyThreadState* __tstate = wxPyBeginAllowThreads();
8907 wxLogGeneric(arg1,(wxString const &)*arg2);
8908
8909 wxPyEndAllowThreads(__tstate);
8910 if (PyErr_Occurred()) SWIG_fail;
8911 }
8912 Py_INCREF(Py_None); resultobj = Py_None;
8913 {
8914 if (temp2)
8915 delete arg2;
8916 }
8917 return resultobj;
8918 fail:
8919 {
8920 if (temp2)
8921 delete arg2;
8922 }
8923 return NULL;
8924}
8925
8926
8927static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8928 PyObject *resultobj;
8929 wxString *arg1 = 0 ;
8930 wxString *arg2 = 0 ;
8931 bool temp1 = False ;
8932 bool temp2 = False ;
8933 PyObject * obj0 = 0 ;
8934 PyObject * obj1 = 0 ;
8935 char *kwnames[] = {
8936 (char *) "title",(char *) "text", NULL
8937 };
8938
8939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8940 {
8941 arg1 = wxString_in_helper(obj0);
8942 if (arg1 == NULL) SWIG_fail;
8943 temp1 = True;
8944 }
8945 {
8946 arg2 = wxString_in_helper(obj1);
8947 if (arg2 == NULL) SWIG_fail;
8948 temp2 = True;
8949 }
8950 {
8951 PyThreadState* __tstate = wxPyBeginAllowThreads();
8952 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8953
8954 wxPyEndAllowThreads(__tstate);
8955 if (PyErr_Occurred()) SWIG_fail;
8956 }
8957 Py_INCREF(Py_None); resultobj = Py_None;
8958 {
8959 if (temp1)
8960 delete arg1;
8961 }
8962 {
8963 if (temp2)
8964 delete arg2;
8965 }
8966 return resultobj;
8967 fail:
8968 {
8969 if (temp1)
8970 delete arg1;
8971 }
8972 {
8973 if (temp2)
8974 delete arg2;
8975 }
8976 return NULL;
8977}
8978
8979
8980static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8981 PyObject *resultobj;
8982 wxLogNull *result;
8983 char *kwnames[] = {
8984 NULL
8985 };
8986
8987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8988 {
8989 PyThreadState* __tstate = wxPyBeginAllowThreads();
8990 result = (wxLogNull *)new wxLogNull();
8991
8992 wxPyEndAllowThreads(__tstate);
8993 if (PyErr_Occurred()) SWIG_fail;
8994 }
8995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8996 return resultobj;
8997 fail:
8998 return NULL;
8999}
9000
9001
9002static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
9003 PyObject *resultobj;
9004 wxLogNull *arg1 = (wxLogNull *) 0 ;
9005 PyObject * obj0 = 0 ;
9006 char *kwnames[] = {
9007 (char *) "self", NULL
9008 };
9009
9010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
9011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
9012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9013 {
9014 PyThreadState* __tstate = wxPyBeginAllowThreads();
9015 delete arg1;
9016
9017 wxPyEndAllowThreads(__tstate);
9018 if (PyErr_Occurred()) SWIG_fail;
9019 }
9020 Py_INCREF(Py_None); resultobj = Py_None;
9021 return resultobj;
9022 fail:
9023 return NULL;
9024}
9025
9026
9027static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
9028 PyObject *obj;
9029 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9030 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
9031 Py_INCREF(obj);
9032 return Py_BuildValue((char *)"");
9033}
9034static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
9035 PyObject *resultobj;
9036 wxPyLog *result;
9037 char *kwnames[] = {
9038 NULL
9039 };
9040
9041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
9042 {
9043 PyThreadState* __tstate = wxPyBeginAllowThreads();
9044 result = (wxPyLog *)new wxPyLog();
9045
9046 wxPyEndAllowThreads(__tstate);
9047 if (PyErr_Occurred()) SWIG_fail;
9048 }
9049 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
9050 return resultobj;
9051 fail:
9052 return NULL;
9053}
9054
9055
9056static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9057 PyObject *resultobj;
9058 wxPyLog *arg1 = (wxPyLog *) 0 ;
9059 PyObject *arg2 = (PyObject *) 0 ;
9060 PyObject *arg3 = (PyObject *) 0 ;
9061 PyObject * obj0 = 0 ;
9062 PyObject * obj1 = 0 ;
9063 PyObject * obj2 = 0 ;
9064 char *kwnames[] = {
9065 (char *) "self",(char *) "self",(char *) "_class", NULL
9066 };
9067
9068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
9070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9071 arg2 = obj1;
9072 arg3 = obj2;
9073 {
9074 PyThreadState* __tstate = wxPyBeginAllowThreads();
9075 (arg1)->_setCallbackInfo(arg2,arg3);
9076
9077 wxPyEndAllowThreads(__tstate);
9078 if (PyErr_Occurred()) SWIG_fail;
9079 }
9080 Py_INCREF(Py_None); resultobj = Py_None;
9081 return resultobj;
9082 fail:
9083 return NULL;
9084}
9085
9086
9087static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
9088 PyObject *obj;
9089 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9090 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
9091 Py_INCREF(obj);
9092 return Py_BuildValue((char *)"");
9093}
9094static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
9095 PyObject *resultobj;
9096 int arg1 ;
9097 int arg2 = (int) wxSIGTERM ;
9098 int result;
9099 PyObject * obj0 = 0 ;
9100 PyObject * obj1 = 0 ;
9101 char *kwnames[] = {
9102 (char *) "pid",(char *) "sig", NULL
9103 };
9104
9105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
9106 arg1 = (int) SWIG_AsInt(obj0);
9107 if (PyErr_Occurred()) SWIG_fail;
9108 if (obj1) {
9109 arg2 = (wxSignal) SWIG_AsInt(obj1);
9110 if (PyErr_Occurred()) SWIG_fail;
9111 }
9112 {
9113 PyThreadState* __tstate = wxPyBeginAllowThreads();
9114 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9115
9116 wxPyEndAllowThreads(__tstate);
9117 if (PyErr_Occurred()) SWIG_fail;
9118 }
9119 resultobj = SWIG_FromInt((int)result);
9120 return resultobj;
9121 fail:
9122 return NULL;
9123}
9124
9125
9126static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
9127 PyObject *resultobj;
9128 int arg1 ;
9129 bool result;
9130 PyObject * obj0 = 0 ;
9131 char *kwnames[] = {
9132 (char *) "pid", NULL
9133 };
9134
9135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
9136 arg1 = (int) SWIG_AsInt(obj0);
9137 if (PyErr_Occurred()) SWIG_fail;
9138 {
9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
9140 result = (bool)wxPyProcess::Exists(arg1);
9141
9142 wxPyEndAllowThreads(__tstate);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 {
9146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9147 }
9148 return resultobj;
9149 fail:
9150 return NULL;
9151}
9152
9153
9154static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
9155 PyObject *resultobj;
9156 wxString *arg1 = 0 ;
9157 int arg2 = (int) wxEXEC_ASYNC ;
9158 wxPyProcess *result;
9159 bool temp1 = False ;
9160 PyObject * obj0 = 0 ;
9161 PyObject * obj1 = 0 ;
9162 char *kwnames[] = {
9163 (char *) "cmd",(char *) "flags", NULL
9164 };
9165
9166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9167 {
9168 arg1 = wxString_in_helper(obj0);
9169 if (arg1 == NULL) SWIG_fail;
9170 temp1 = True;
9171 }
9172 if (obj1) {
9173 arg2 = (int) SWIG_AsInt(obj1);
9174 if (PyErr_Occurred()) SWIG_fail;
9175 }
9176 {
9177 PyThreadState* __tstate = wxPyBeginAllowThreads();
9178 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9179
9180 wxPyEndAllowThreads(__tstate);
9181 if (PyErr_Occurred()) SWIG_fail;
9182 }
9183 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9184 {
9185 if (temp1)
9186 delete arg1;
9187 }
9188 return resultobj;
9189 fail:
9190 {
9191 if (temp1)
9192 delete arg1;
9193 }
9194 return NULL;
9195}
9196
9197
9198static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
9199 PyObject *resultobj;
9200 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9201 int arg2 = (int) -1 ;
9202 wxPyProcess *result;
9203 PyObject * obj0 = 0 ;
9204 PyObject * obj1 = 0 ;
9205 char *kwnames[] = {
9206 (char *) "parent",(char *) "id", NULL
9207 };
9208
9209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9210 if (obj0) {
9211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9213 }
9214 if (obj1) {
9215 arg2 = (int) SWIG_AsInt(obj1);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 {
9219 PyThreadState* __tstate = wxPyBeginAllowThreads();
9220 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9221
9222 wxPyEndAllowThreads(__tstate);
9223 if (PyErr_Occurred()) SWIG_fail;
9224 }
9225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9226 return resultobj;
9227 fail:
9228 return NULL;
9229}
9230
9231
9232static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9233 PyObject *resultobj;
9234 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9235 PyObject *arg2 = (PyObject *) 0 ;
9236 PyObject *arg3 = (PyObject *) 0 ;
9237 PyObject * obj0 = 0 ;
9238 PyObject * obj1 = 0 ;
9239 PyObject * obj2 = 0 ;
9240 char *kwnames[] = {
9241 (char *) "self",(char *) "self",(char *) "_class", NULL
9242 };
9243
9244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9247 arg2 = obj1;
9248 arg3 = obj2;
9249 {
9250 PyThreadState* __tstate = wxPyBeginAllowThreads();
9251 (arg1)->_setCallbackInfo(arg2,arg3);
9252
9253 wxPyEndAllowThreads(__tstate);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 Py_INCREF(Py_None); resultobj = Py_None;
9257 return resultobj;
9258 fail:
9259 return NULL;
9260}
9261
9262
9263static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
9264 PyObject *resultobj;
9265 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9266 int arg2 ;
9267 int arg3 ;
9268 PyObject * obj0 = 0 ;
9269 PyObject * obj1 = 0 ;
9270 PyObject * obj2 = 0 ;
9271 char *kwnames[] = {
9272 (char *) "self",(char *) "pid",(char *) "status", NULL
9273 };
9274
9275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9278 arg2 = (int) SWIG_AsInt(obj1);
9279 if (PyErr_Occurred()) SWIG_fail;
9280 arg3 = (int) SWIG_AsInt(obj2);
9281 if (PyErr_Occurred()) SWIG_fail;
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 (arg1)->base_OnTerminate(arg2,arg3);
9285
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 Py_INCREF(Py_None); resultobj = Py_None;
9290 return resultobj;
9291 fail:
9292 return NULL;
9293}
9294
9295
9296static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9297 PyObject *resultobj;
9298 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9299 PyObject * obj0 = 0 ;
9300 char *kwnames[] = {
9301 (char *) "self", NULL
9302 };
9303
9304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9307 {
9308 PyThreadState* __tstate = wxPyBeginAllowThreads();
9309 (arg1)->Redirect();
9310
9311 wxPyEndAllowThreads(__tstate);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 }
9314 Py_INCREF(Py_None); resultobj = Py_None;
9315 return resultobj;
9316 fail:
9317 return NULL;
9318}
9319
9320
9321static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9322 PyObject *resultobj;
9323 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9324 bool result;
9325 PyObject * obj0 = 0 ;
9326 char *kwnames[] = {
9327 (char *) "self", NULL
9328 };
9329
9330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9333 {
9334 PyThreadState* __tstate = wxPyBeginAllowThreads();
9335 result = (bool)(arg1)->IsRedirected();
9336
9337 wxPyEndAllowThreads(__tstate);
9338 if (PyErr_Occurred()) SWIG_fail;
9339 }
9340 {
9341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9342 }
9343 return resultobj;
9344 fail:
9345 return NULL;
9346}
9347
9348
9349static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9350 PyObject *resultobj;
9351 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9352 PyObject * obj0 = 0 ;
9353 char *kwnames[] = {
9354 (char *) "self", NULL
9355 };
9356
9357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9360 {
9361 PyThreadState* __tstate = wxPyBeginAllowThreads();
9362 (arg1)->Detach();
9363
9364 wxPyEndAllowThreads(__tstate);
9365 if (PyErr_Occurred()) SWIG_fail;
9366 }
9367 Py_INCREF(Py_None); resultobj = Py_None;
9368 return resultobj;
9369 fail:
9370 return NULL;
9371}
9372
9373
9374static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9375 PyObject *resultobj;
9376 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9377 wxInputStream *result;
9378 PyObject * obj0 = 0 ;
9379 char *kwnames[] = {
9380 (char *) "self", NULL
9381 };
9382
9383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 result = (wxInputStream *)(arg1)->GetInputStream();
9389
9390 wxPyEndAllowThreads(__tstate);
9391 if (PyErr_Occurred()) SWIG_fail;
9392 }
9393 {
9394 wxPyInputStream * _ptr = NULL;
9395
9396 if (result) {
9397 _ptr = new wxPyInputStream(result);
9398 }
9399 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9400 }
9401 return resultobj;
9402 fail:
9403 return NULL;
9404}
9405
9406
9407static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9408 PyObject *resultobj;
9409 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9410 wxInputStream *result;
9411 PyObject * obj0 = 0 ;
9412 char *kwnames[] = {
9413 (char *) "self", NULL
9414 };
9415
9416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9419 {
9420 PyThreadState* __tstate = wxPyBeginAllowThreads();
9421 result = (wxInputStream *)(arg1)->GetErrorStream();
9422
9423 wxPyEndAllowThreads(__tstate);
9424 if (PyErr_Occurred()) SWIG_fail;
9425 }
9426 {
9427 wxPyInputStream * _ptr = NULL;
9428
9429 if (result) {
9430 _ptr = new wxPyInputStream(result);
9431 }
9432 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9433 }
9434 return resultobj;
9435 fail:
9436 return NULL;
9437}
9438
9439
9440static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9441 PyObject *resultobj;
9442 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9443 wxOutputStream *result;
9444 PyObject * obj0 = 0 ;
9445 char *kwnames[] = {
9446 (char *) "self", NULL
9447 };
9448
9449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9452 {
9453 PyThreadState* __tstate = wxPyBeginAllowThreads();
9454 result = (wxOutputStream *)(arg1)->GetOutputStream();
9455
9456 wxPyEndAllowThreads(__tstate);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 }
9459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9460 return resultobj;
9461 fail:
9462 return NULL;
9463}
9464
9465
9466static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9467 PyObject *resultobj;
9468 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9469 PyObject * obj0 = 0 ;
9470 char *kwnames[] = {
9471 (char *) "self", NULL
9472 };
9473
9474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9477 {
9478 PyThreadState* __tstate = wxPyBeginAllowThreads();
9479 (arg1)->CloseOutput();
9480
9481 wxPyEndAllowThreads(__tstate);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 }
9484 Py_INCREF(Py_None); resultobj = Py_None;
9485 return resultobj;
9486 fail:
9487 return NULL;
9488}
9489
9490
9491static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9492 PyObject *resultobj;
9493 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9494 bool result;
9495 PyObject * obj0 = 0 ;
9496 char *kwnames[] = {
9497 (char *) "self", NULL
9498 };
9499
9500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9503 {
9504 PyThreadState* __tstate = wxPyBeginAllowThreads();
9505 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9506
9507 wxPyEndAllowThreads(__tstate);
9508 if (PyErr_Occurred()) SWIG_fail;
9509 }
9510 {
9511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9512 }
9513 return resultobj;
9514 fail:
9515 return NULL;
9516}
9517
9518
9519static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9520 PyObject *resultobj;
9521 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9522 bool result;
9523 PyObject * obj0 = 0 ;
9524 char *kwnames[] = {
9525 (char *) "self", NULL
9526 };
9527
9528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9534
9535 wxPyEndAllowThreads(__tstate);
9536 if (PyErr_Occurred()) SWIG_fail;
9537 }
9538 {
9539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9540 }
9541 return resultobj;
9542 fail:
9543 return NULL;
9544}
9545
9546
9547static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9548 PyObject *resultobj;
9549 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9550 bool result;
9551 PyObject * obj0 = 0 ;
9552 char *kwnames[] = {
9553 (char *) "self", NULL
9554 };
9555
9556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9559 {
9560 PyThreadState* __tstate = wxPyBeginAllowThreads();
9561 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9562
9563 wxPyEndAllowThreads(__tstate);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 {
9567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9568 }
9569 return resultobj;
9570 fail:
9571 return NULL;
9572}
9573
9574
9575static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9576 PyObject *obj;
9577 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9578 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9579 Py_INCREF(obj);
9580 return Py_BuildValue((char *)"");
9581}
9582static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9583 PyObject *resultobj;
9584 int arg1 = (int) 0 ;
9585 int arg2 = (int) 0 ;
9586 int arg3 = (int) 0 ;
9587 wxProcessEvent *result;
9588 PyObject * obj0 = 0 ;
9589 PyObject * obj1 = 0 ;
9590 PyObject * obj2 = 0 ;
9591 char *kwnames[] = {
9592 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9593 };
9594
9595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9596 if (obj0) {
9597 arg1 = (int) SWIG_AsInt(obj0);
9598 if (PyErr_Occurred()) SWIG_fail;
9599 }
9600 if (obj1) {
9601 arg2 = (int) SWIG_AsInt(obj1);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 if (obj2) {
9605 arg3 = (int) SWIG_AsInt(obj2);
9606 if (PyErr_Occurred()) SWIG_fail;
9607 }
9608 {
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9611
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9616 return resultobj;
9617 fail:
9618 return NULL;
9619}
9620
9621
9622static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9623 PyObject *resultobj;
9624 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9625 int result;
9626 PyObject * obj0 = 0 ;
9627 char *kwnames[] = {
9628 (char *) "self", NULL
9629 };
9630
9631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9634 {
9635 PyThreadState* __tstate = wxPyBeginAllowThreads();
9636 result = (int)(arg1)->GetPid();
9637
9638 wxPyEndAllowThreads(__tstate);
9639 if (PyErr_Occurred()) SWIG_fail;
9640 }
9641 resultobj = SWIG_FromInt((int)result);
9642 return resultobj;
9643 fail:
9644 return NULL;
9645}
9646
9647
9648static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9649 PyObject *resultobj;
9650 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9651 int result;
9652 PyObject * obj0 = 0 ;
9653 char *kwnames[] = {
9654 (char *) "self", NULL
9655 };
9656
9657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9660 {
9661 PyThreadState* __tstate = wxPyBeginAllowThreads();
9662 result = (int)(arg1)->GetExitCode();
9663
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 resultobj = SWIG_FromInt((int)result);
9668 return resultobj;
9669 fail:
9670 return NULL;
9671}
9672
9673
9674static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9675 PyObject *resultobj;
9676 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9677 int arg2 ;
9678 PyObject * obj0 = 0 ;
9679 PyObject * obj1 = 0 ;
9680 char *kwnames[] = {
9681 (char *) "self",(char *) "m_pid", NULL
9682 };
9683
9684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9687 arg2 = (int) SWIG_AsInt(obj1);
9688 if (PyErr_Occurred()) SWIG_fail;
9689 if (arg1) (arg1)->m_pid = arg2;
9690
9691 Py_INCREF(Py_None); resultobj = Py_None;
9692 return resultobj;
9693 fail:
9694 return NULL;
9695}
9696
9697
9698static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9699 PyObject *resultobj;
9700 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9701 int result;
9702 PyObject * obj0 = 0 ;
9703 char *kwnames[] = {
9704 (char *) "self", NULL
9705 };
9706
9707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9710 result = (int) ((arg1)->m_pid);
9711
9712 resultobj = SWIG_FromInt((int)result);
9713 return resultobj;
9714 fail:
9715 return NULL;
9716}
9717
9718
9719static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9720 PyObject *resultobj;
9721 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9722 int arg2 ;
9723 PyObject * obj0 = 0 ;
9724 PyObject * obj1 = 0 ;
9725 char *kwnames[] = {
9726 (char *) "self",(char *) "m_exitcode", NULL
9727 };
9728
9729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9732 arg2 = (int) SWIG_AsInt(obj1);
9733 if (PyErr_Occurred()) SWIG_fail;
9734 if (arg1) (arg1)->m_exitcode = arg2;
9735
9736 Py_INCREF(Py_None); resultobj = Py_None;
9737 return resultobj;
9738 fail:
9739 return NULL;
9740}
9741
9742
9743static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9744 PyObject *resultobj;
9745 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9746 int result;
9747 PyObject * obj0 = 0 ;
9748 char *kwnames[] = {
9749 (char *) "self", NULL
9750 };
9751
9752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9755 result = (int) ((arg1)->m_exitcode);
9756
9757 resultobj = SWIG_FromInt((int)result);
9758 return resultobj;
9759 fail:
9760 return NULL;
9761}
9762
9763
9764static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9765 PyObject *obj;
9766 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9767 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9768 Py_INCREF(obj);
9769 return Py_BuildValue((char *)"");
9770}
9771static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9772 PyObject *resultobj;
9773 wxString *arg1 = 0 ;
9774 int arg2 = (int) wxEXEC_ASYNC ;
9775 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9776 long result;
9777 bool temp1 = False ;
9778 PyObject * obj0 = 0 ;
9779 PyObject * obj1 = 0 ;
9780 PyObject * obj2 = 0 ;
9781 char *kwnames[] = {
9782 (char *) "command",(char *) "flags",(char *) "process", NULL
9783 };
9784
9785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9786 {
9787 arg1 = wxString_in_helper(obj0);
9788 if (arg1 == NULL) SWIG_fail;
9789 temp1 = True;
9790 }
9791 if (obj1) {
9792 arg2 = (int) SWIG_AsInt(obj1);
9793 if (PyErr_Occurred()) SWIG_fail;
9794 }
9795 if (obj2) {
9796 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9798 }
9799 {
9800 if (!wxPyCheckForApp()) SWIG_fail;
9801 PyThreadState* __tstate = wxPyBeginAllowThreads();
9802 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9803
9804 wxPyEndAllowThreads(__tstate);
9805 if (PyErr_Occurred()) SWIG_fail;
9806 }
9807 resultobj = SWIG_FromLong((long)result);
9808 {
9809 if (temp1)
9810 delete arg1;
9811 }
9812 return resultobj;
9813 fail:
9814 {
9815 if (temp1)
9816 delete arg1;
9817 }
9818 return NULL;
9819}
9820
9821
9822static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9823 PyObject *resultobj;
9824 int arg1 = (int) wxJOYSTICK1 ;
9825 wxJoystick *result;
9826 PyObject * obj0 = 0 ;
9827 char *kwnames[] = {
9828 (char *) "joystick", NULL
9829 };
9830
9831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9832 if (obj0) {
9833 arg1 = (int) SWIG_AsInt(obj0);
9834 if (PyErr_Occurred()) SWIG_fail;
9835 }
9836 {
9837 if (!wxPyCheckForApp()) SWIG_fail;
9838 PyThreadState* __tstate = wxPyBeginAllowThreads();
9839 result = (wxJoystick *)new wxJoystick(arg1);
9840
9841 wxPyEndAllowThreads(__tstate);
9842 if (PyErr_Occurred()) SWIG_fail;
9843 }
9844 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9845 return resultobj;
9846 fail:
9847 return NULL;
9848}
9849
9850
9851static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9852 PyObject *resultobj;
9853 wxJoystick *arg1 = (wxJoystick *) 0 ;
9854 PyObject * obj0 = 0 ;
9855 char *kwnames[] = {
9856 (char *) "self", NULL
9857 };
9858
9859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9862 {
9863 PyThreadState* __tstate = wxPyBeginAllowThreads();
9864 delete arg1;
9865
9866 wxPyEndAllowThreads(__tstate);
9867 if (PyErr_Occurred()) SWIG_fail;
9868 }
9869 Py_INCREF(Py_None); resultobj = Py_None;
9870 return resultobj;
9871 fail:
9872 return NULL;
9873}
9874
9875
9876static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9877 PyObject *resultobj;
9878 wxJoystick *arg1 = (wxJoystick *) 0 ;
9879 wxPoint result;
9880 PyObject * obj0 = 0 ;
9881 char *kwnames[] = {
9882 (char *) "self", NULL
9883 };
9884
9885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9888 {
9889 PyThreadState* __tstate = wxPyBeginAllowThreads();
9890 result = (arg1)->GetPosition();
9891
9892 wxPyEndAllowThreads(__tstate);
9893 if (PyErr_Occurred()) SWIG_fail;
9894 }
9895 {
9896 wxPoint * resultptr;
9897 resultptr = new wxPoint((wxPoint &) result);
9898 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9899 }
9900 return resultobj;
9901 fail:
9902 return NULL;
9903}
9904
9905
9906static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9907 PyObject *resultobj;
9908 wxJoystick *arg1 = (wxJoystick *) 0 ;
9909 int result;
9910 PyObject * obj0 = 0 ;
9911 char *kwnames[] = {
9912 (char *) "self", NULL
9913 };
9914
9915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9918 {
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 result = (int)(arg1)->GetZPosition();
9921
9922 wxPyEndAllowThreads(__tstate);
9923 if (PyErr_Occurred()) SWIG_fail;
9924 }
9925 resultobj = SWIG_FromInt((int)result);
9926 return resultobj;
9927 fail:
9928 return NULL;
9929}
9930
9931
9932static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9933 PyObject *resultobj;
9934 wxJoystick *arg1 = (wxJoystick *) 0 ;
9935 int result;
9936 PyObject * obj0 = 0 ;
9937 char *kwnames[] = {
9938 (char *) "self", NULL
9939 };
9940
9941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 result = (int)(arg1)->GetButtonState();
9947
9948 wxPyEndAllowThreads(__tstate);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 resultobj = SWIG_FromInt((int)result);
9952 return resultobj;
9953 fail:
9954 return NULL;
9955}
9956
9957
9958static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9959 PyObject *resultobj;
9960 wxJoystick *arg1 = (wxJoystick *) 0 ;
9961 int result;
9962 PyObject * obj0 = 0 ;
9963 char *kwnames[] = {
9964 (char *) "self", NULL
9965 };
9966
9967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 result = (int)(arg1)->GetPOVPosition();
9973
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_FromInt((int)result);
9978 return resultobj;
9979 fail:
9980 return NULL;
9981}
9982
9983
9984static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj;
9986 wxJoystick *arg1 = (wxJoystick *) 0 ;
9987 int result;
9988 PyObject * obj0 = 0 ;
9989 char *kwnames[] = {
9990 (char *) "self", NULL
9991 };
9992
9993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9996 {
9997 PyThreadState* __tstate = wxPyBeginAllowThreads();
9998 result = (int)(arg1)->GetPOVCTSPosition();
9999
10000 wxPyEndAllowThreads(__tstate);
10001 if (PyErr_Occurred()) SWIG_fail;
10002 }
10003 resultobj = SWIG_FromInt((int)result);
10004 return resultobj;
10005 fail:
10006 return NULL;
10007}
10008
10009
10010static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10011 PyObject *resultobj;
10012 wxJoystick *arg1 = (wxJoystick *) 0 ;
10013 int result;
10014 PyObject * obj0 = 0 ;
10015 char *kwnames[] = {
10016 (char *) "self", NULL
10017 };
10018
10019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
10020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10022 {
10023 PyThreadState* __tstate = wxPyBeginAllowThreads();
10024 result = (int)(arg1)->GetRudderPosition();
10025
10026 wxPyEndAllowThreads(__tstate);
10027 if (PyErr_Occurred()) SWIG_fail;
10028 }
10029 resultobj = SWIG_FromInt((int)result);
10030 return resultobj;
10031 fail:
10032 return NULL;
10033}
10034
10035
10036static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10037 PyObject *resultobj;
10038 wxJoystick *arg1 = (wxJoystick *) 0 ;
10039 int result;
10040 PyObject * obj0 = 0 ;
10041 char *kwnames[] = {
10042 (char *) "self", NULL
10043 };
10044
10045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
10046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10048 {
10049 PyThreadState* __tstate = wxPyBeginAllowThreads();
10050 result = (int)(arg1)->GetUPosition();
10051
10052 wxPyEndAllowThreads(__tstate);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 resultobj = SWIG_FromInt((int)result);
10056 return resultobj;
10057 fail:
10058 return NULL;
10059}
10060
10061
10062static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10063 PyObject *resultobj;
10064 wxJoystick *arg1 = (wxJoystick *) 0 ;
10065 int result;
10066 PyObject * obj0 = 0 ;
10067 char *kwnames[] = {
10068 (char *) "self", NULL
10069 };
10070
10071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
10072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10074 {
10075 PyThreadState* __tstate = wxPyBeginAllowThreads();
10076 result = (int)(arg1)->GetVPosition();
10077
10078 wxPyEndAllowThreads(__tstate);
10079 if (PyErr_Occurred()) SWIG_fail;
10080 }
10081 resultobj = SWIG_FromInt((int)result);
10082 return resultobj;
10083 fail:
10084 return NULL;
10085}
10086
10087
10088static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
10089 PyObject *resultobj;
10090 wxJoystick *arg1 = (wxJoystick *) 0 ;
10091 int result;
10092 PyObject * obj0 = 0 ;
10093 char *kwnames[] = {
10094 (char *) "self", NULL
10095 };
10096
10097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
10098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10100 {
10101 PyThreadState* __tstate = wxPyBeginAllowThreads();
10102 result = (int)(arg1)->GetMovementThreshold();
10103
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 resultobj = SWIG_FromInt((int)result);
10108 return resultobj;
10109 fail:
10110 return NULL;
10111}
10112
10113
10114static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
10115 PyObject *resultobj;
10116 wxJoystick *arg1 = (wxJoystick *) 0 ;
10117 int arg2 ;
10118 PyObject * obj0 = 0 ;
10119 PyObject * obj1 = 0 ;
10120 char *kwnames[] = {
10121 (char *) "self",(char *) "threshold", NULL
10122 };
10123
10124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10127 arg2 = (int) SWIG_AsInt(obj1);
10128 if (PyErr_Occurred()) SWIG_fail;
10129 {
10130 PyThreadState* __tstate = wxPyBeginAllowThreads();
10131 (arg1)->SetMovementThreshold(arg2);
10132
10133 wxPyEndAllowThreads(__tstate);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 Py_INCREF(Py_None); resultobj = Py_None;
10137 return resultobj;
10138 fail:
10139 return NULL;
10140}
10141
10142
10143static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10144 PyObject *resultobj;
10145 wxJoystick *arg1 = (wxJoystick *) 0 ;
10146 bool result;
10147 PyObject * obj0 = 0 ;
10148 char *kwnames[] = {
10149 (char *) "self", NULL
10150 };
10151
10152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10155 {
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 result = (bool)(arg1)->IsOk();
10158
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 {
10163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10164 }
10165 return resultobj;
10166 fail:
10167 return NULL;
10168}
10169
10170
10171static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
10172 PyObject *resultobj;
10173 wxJoystick *arg1 = (wxJoystick *) 0 ;
10174 int result;
10175 PyObject * obj0 = 0 ;
10176 char *kwnames[] = {
10177 (char *) "self", NULL
10178 };
10179
10180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10183 {
10184 PyThreadState* __tstate = wxPyBeginAllowThreads();
10185 result = (int)(arg1)->GetNumberJoysticks();
10186
10187 wxPyEndAllowThreads(__tstate);
10188 if (PyErr_Occurred()) SWIG_fail;
10189 }
10190 resultobj = SWIG_FromInt((int)result);
10191 return resultobj;
10192 fail:
10193 return NULL;
10194}
10195
10196
10197static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
10198 PyObject *resultobj;
10199 wxJoystick *arg1 = (wxJoystick *) 0 ;
10200 int result;
10201 PyObject * obj0 = 0 ;
10202 char *kwnames[] = {
10203 (char *) "self", NULL
10204 };
10205
10206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10209 {
10210 PyThreadState* __tstate = wxPyBeginAllowThreads();
10211 result = (int)(arg1)->GetManufacturerId();
10212
10213 wxPyEndAllowThreads(__tstate);
10214 if (PyErr_Occurred()) SWIG_fail;
10215 }
10216 resultobj = SWIG_FromInt((int)result);
10217 return resultobj;
10218 fail:
10219 return NULL;
10220}
10221
10222
10223static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
10224 PyObject *resultobj;
10225 wxJoystick *arg1 = (wxJoystick *) 0 ;
10226 int result;
10227 PyObject * obj0 = 0 ;
10228 char *kwnames[] = {
10229 (char *) "self", NULL
10230 };
10231
10232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10235 {
10236 PyThreadState* __tstate = wxPyBeginAllowThreads();
10237 result = (int)(arg1)->GetProductId();
10238
10239 wxPyEndAllowThreads(__tstate);
10240 if (PyErr_Occurred()) SWIG_fail;
10241 }
10242 resultobj = SWIG_FromInt((int)result);
10243 return resultobj;
10244 fail:
10245 return NULL;
10246}
10247
10248
10249static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
10250 PyObject *resultobj;
10251 wxJoystick *arg1 = (wxJoystick *) 0 ;
10252 wxString result;
10253 PyObject * obj0 = 0 ;
10254 char *kwnames[] = {
10255 (char *) "self", NULL
10256 };
10257
10258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10261 {
10262 PyThreadState* __tstate = wxPyBeginAllowThreads();
10263 result = (arg1)->GetProductName();
10264
10265 wxPyEndAllowThreads(__tstate);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 {
10269#if wxUSE_UNICODE
10270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10271#else
10272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10273#endif
10274 }
10275 return resultobj;
10276 fail:
10277 return NULL;
10278}
10279
10280
10281static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10282 PyObject *resultobj;
10283 wxJoystick *arg1 = (wxJoystick *) 0 ;
10284 int result;
10285 PyObject * obj0 = 0 ;
10286 char *kwnames[] = {
10287 (char *) "self", NULL
10288 };
10289
10290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10293 {
10294 PyThreadState* __tstate = wxPyBeginAllowThreads();
10295 result = (int)(arg1)->GetXMin();
10296
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 resultobj = SWIG_FromInt((int)result);
10301 return resultobj;
10302 fail:
10303 return NULL;
10304}
10305
10306
10307static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10308 PyObject *resultobj;
10309 wxJoystick *arg1 = (wxJoystick *) 0 ;
10310 int result;
10311 PyObject * obj0 = 0 ;
10312 char *kwnames[] = {
10313 (char *) "self", NULL
10314 };
10315
10316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10319 {
10320 PyThreadState* __tstate = wxPyBeginAllowThreads();
10321 result = (int)(arg1)->GetYMin();
10322
10323 wxPyEndAllowThreads(__tstate);
10324 if (PyErr_Occurred()) SWIG_fail;
10325 }
10326 resultobj = SWIG_FromInt((int)result);
10327 return resultobj;
10328 fail:
10329 return NULL;
10330}
10331
10332
10333static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10334 PyObject *resultobj;
10335 wxJoystick *arg1 = (wxJoystick *) 0 ;
10336 int result;
10337 PyObject * obj0 = 0 ;
10338 char *kwnames[] = {
10339 (char *) "self", NULL
10340 };
10341
10342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10345 {
10346 PyThreadState* __tstate = wxPyBeginAllowThreads();
10347 result = (int)(arg1)->GetZMin();
10348
10349 wxPyEndAllowThreads(__tstate);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 resultobj = SWIG_FromInt((int)result);
10353 return resultobj;
10354 fail:
10355 return NULL;
10356}
10357
10358
10359static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj;
10361 wxJoystick *arg1 = (wxJoystick *) 0 ;
10362 int result;
10363 PyObject * obj0 = 0 ;
10364 char *kwnames[] = {
10365 (char *) "self", NULL
10366 };
10367
10368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = (int)(arg1)->GetXMax();
10374
10375 wxPyEndAllowThreads(__tstate);
10376 if (PyErr_Occurred()) SWIG_fail;
10377 }
10378 resultobj = SWIG_FromInt((int)result);
10379 return resultobj;
10380 fail:
10381 return NULL;
10382}
10383
10384
10385static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10386 PyObject *resultobj;
10387 wxJoystick *arg1 = (wxJoystick *) 0 ;
10388 int result;
10389 PyObject * obj0 = 0 ;
10390 char *kwnames[] = {
10391 (char *) "self", NULL
10392 };
10393
10394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10397 {
10398 PyThreadState* __tstate = wxPyBeginAllowThreads();
10399 result = (int)(arg1)->GetYMax();
10400
10401 wxPyEndAllowThreads(__tstate);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 resultobj = SWIG_FromInt((int)result);
10405 return resultobj;
10406 fail:
10407 return NULL;
10408}
10409
10410
10411static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10412 PyObject *resultobj;
10413 wxJoystick *arg1 = (wxJoystick *) 0 ;
10414 int result;
10415 PyObject * obj0 = 0 ;
10416 char *kwnames[] = {
10417 (char *) "self", NULL
10418 };
10419
10420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10423 {
10424 PyThreadState* __tstate = wxPyBeginAllowThreads();
10425 result = (int)(arg1)->GetZMax();
10426
10427 wxPyEndAllowThreads(__tstate);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 }
10430 resultobj = SWIG_FromInt((int)result);
10431 return resultobj;
10432 fail:
10433 return NULL;
10434}
10435
10436
10437static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10438 PyObject *resultobj;
10439 wxJoystick *arg1 = (wxJoystick *) 0 ;
10440 int result;
10441 PyObject * obj0 = 0 ;
10442 char *kwnames[] = {
10443 (char *) "self", NULL
10444 };
10445
10446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10449 {
10450 PyThreadState* __tstate = wxPyBeginAllowThreads();
10451 result = (int)(arg1)->GetNumberButtons();
10452
10453 wxPyEndAllowThreads(__tstate);
10454 if (PyErr_Occurred()) SWIG_fail;
10455 }
10456 resultobj = SWIG_FromInt((int)result);
10457 return resultobj;
10458 fail:
10459 return NULL;
10460}
10461
10462
10463static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10464 PyObject *resultobj;
10465 wxJoystick *arg1 = (wxJoystick *) 0 ;
10466 int result;
10467 PyObject * obj0 = 0 ;
10468 char *kwnames[] = {
10469 (char *) "self", NULL
10470 };
10471
10472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 result = (int)(arg1)->GetNumberAxes();
10478
10479 wxPyEndAllowThreads(__tstate);
10480 if (PyErr_Occurred()) SWIG_fail;
10481 }
10482 resultobj = SWIG_FromInt((int)result);
10483 return resultobj;
10484 fail:
10485 return NULL;
10486}
10487
10488
10489static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10490 PyObject *resultobj;
10491 wxJoystick *arg1 = (wxJoystick *) 0 ;
10492 int result;
10493 PyObject * obj0 = 0 ;
10494 char *kwnames[] = {
10495 (char *) "self", NULL
10496 };
10497
10498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (int)(arg1)->GetMaxButtons();
10504
10505 wxPyEndAllowThreads(__tstate);
10506 if (PyErr_Occurred()) SWIG_fail;
10507 }
10508 resultobj = SWIG_FromInt((int)result);
10509 return resultobj;
10510 fail:
10511 return NULL;
10512}
10513
10514
10515static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10516 PyObject *resultobj;
10517 wxJoystick *arg1 = (wxJoystick *) 0 ;
10518 int result;
10519 PyObject * obj0 = 0 ;
10520 char *kwnames[] = {
10521 (char *) "self", NULL
10522 };
10523
10524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10527 {
10528 PyThreadState* __tstate = wxPyBeginAllowThreads();
10529 result = (int)(arg1)->GetMaxAxes();
10530
10531 wxPyEndAllowThreads(__tstate);
10532 if (PyErr_Occurred()) SWIG_fail;
10533 }
10534 resultobj = SWIG_FromInt((int)result);
10535 return resultobj;
10536 fail:
10537 return NULL;
10538}
10539
10540
10541static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10542 PyObject *resultobj;
10543 wxJoystick *arg1 = (wxJoystick *) 0 ;
10544 int result;
10545 PyObject * obj0 = 0 ;
10546 char *kwnames[] = {
10547 (char *) "self", NULL
10548 };
10549
10550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10553 {
10554 PyThreadState* __tstate = wxPyBeginAllowThreads();
10555 result = (int)(arg1)->GetPollingMin();
10556
10557 wxPyEndAllowThreads(__tstate);
10558 if (PyErr_Occurred()) SWIG_fail;
10559 }
10560 resultobj = SWIG_FromInt((int)result);
10561 return resultobj;
10562 fail:
10563 return NULL;
10564}
10565
10566
10567static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10568 PyObject *resultobj;
10569 wxJoystick *arg1 = (wxJoystick *) 0 ;
10570 int result;
10571 PyObject * obj0 = 0 ;
10572 char *kwnames[] = {
10573 (char *) "self", NULL
10574 };
10575
10576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 result = (int)(arg1)->GetPollingMax();
10582
10583 wxPyEndAllowThreads(__tstate);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 resultobj = SWIG_FromInt((int)result);
10587 return resultobj;
10588 fail:
10589 return NULL;
10590}
10591
10592
10593static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10594 PyObject *resultobj;
10595 wxJoystick *arg1 = (wxJoystick *) 0 ;
10596 int result;
10597 PyObject * obj0 = 0 ;
10598 char *kwnames[] = {
10599 (char *) "self", NULL
10600 };
10601
10602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = (int)(arg1)->GetRudderMin();
10608
10609 wxPyEndAllowThreads(__tstate);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 resultobj = SWIG_FromInt((int)result);
10613 return resultobj;
10614 fail:
10615 return NULL;
10616}
10617
10618
10619static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj;
10621 wxJoystick *arg1 = (wxJoystick *) 0 ;
10622 int result;
10623 PyObject * obj0 = 0 ;
10624 char *kwnames[] = {
10625 (char *) "self", NULL
10626 };
10627
10628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10631 {
10632 PyThreadState* __tstate = wxPyBeginAllowThreads();
10633 result = (int)(arg1)->GetRudderMax();
10634
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 resultobj = SWIG_FromInt((int)result);
10639 return resultobj;
10640 fail:
10641 return NULL;
10642}
10643
10644
10645static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10646 PyObject *resultobj;
10647 wxJoystick *arg1 = (wxJoystick *) 0 ;
10648 int result;
10649 PyObject * obj0 = 0 ;
10650 char *kwnames[] = {
10651 (char *) "self", NULL
10652 };
10653
10654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 result = (int)(arg1)->GetUMin();
10660
10661 wxPyEndAllowThreads(__tstate);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 resultobj = SWIG_FromInt((int)result);
10665 return resultobj;
10666 fail:
10667 return NULL;
10668}
10669
10670
10671static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10672 PyObject *resultobj;
10673 wxJoystick *arg1 = (wxJoystick *) 0 ;
10674 int result;
10675 PyObject * obj0 = 0 ;
10676 char *kwnames[] = {
10677 (char *) "self", NULL
10678 };
10679
10680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10683 {
10684 PyThreadState* __tstate = wxPyBeginAllowThreads();
10685 result = (int)(arg1)->GetUMax();
10686
10687 wxPyEndAllowThreads(__tstate);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 resultobj = SWIG_FromInt((int)result);
10691 return resultobj;
10692 fail:
10693 return NULL;
10694}
10695
10696
10697static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10698 PyObject *resultobj;
10699 wxJoystick *arg1 = (wxJoystick *) 0 ;
10700 int result;
10701 PyObject * obj0 = 0 ;
10702 char *kwnames[] = {
10703 (char *) "self", NULL
10704 };
10705
10706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10709 {
10710 PyThreadState* __tstate = wxPyBeginAllowThreads();
10711 result = (int)(arg1)->GetVMin();
10712
10713 wxPyEndAllowThreads(__tstate);
10714 if (PyErr_Occurred()) SWIG_fail;
10715 }
10716 resultobj = SWIG_FromInt((int)result);
10717 return resultobj;
10718 fail:
10719 return NULL;
10720}
10721
10722
10723static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10724 PyObject *resultobj;
10725 wxJoystick *arg1 = (wxJoystick *) 0 ;
10726 int result;
10727 PyObject * obj0 = 0 ;
10728 char *kwnames[] = {
10729 (char *) "self", NULL
10730 };
10731
10732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10735 {
10736 PyThreadState* __tstate = wxPyBeginAllowThreads();
10737 result = (int)(arg1)->GetVMax();
10738
10739 wxPyEndAllowThreads(__tstate);
10740 if (PyErr_Occurred()) SWIG_fail;
10741 }
10742 resultobj = SWIG_FromInt((int)result);
10743 return resultobj;
10744 fail:
10745 return NULL;
10746}
10747
10748
10749static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10750 PyObject *resultobj;
10751 wxJoystick *arg1 = (wxJoystick *) 0 ;
10752 bool result;
10753 PyObject * obj0 = 0 ;
10754 char *kwnames[] = {
10755 (char *) "self", NULL
10756 };
10757
10758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10761 {
10762 PyThreadState* __tstate = wxPyBeginAllowThreads();
10763 result = (bool)(arg1)->HasRudder();
10764
10765 wxPyEndAllowThreads(__tstate);
10766 if (PyErr_Occurred()) SWIG_fail;
10767 }
10768 {
10769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10770 }
10771 return resultobj;
10772 fail:
10773 return NULL;
10774}
10775
10776
10777static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10778 PyObject *resultobj;
10779 wxJoystick *arg1 = (wxJoystick *) 0 ;
10780 bool result;
10781 PyObject * obj0 = 0 ;
10782 char *kwnames[] = {
10783 (char *) "self", NULL
10784 };
10785
10786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10789 {
10790 PyThreadState* __tstate = wxPyBeginAllowThreads();
10791 result = (bool)(arg1)->HasZ();
10792
10793 wxPyEndAllowThreads(__tstate);
10794 if (PyErr_Occurred()) SWIG_fail;
10795 }
10796 {
10797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10798 }
10799 return resultobj;
10800 fail:
10801 return NULL;
10802}
10803
10804
10805static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10806 PyObject *resultobj;
10807 wxJoystick *arg1 = (wxJoystick *) 0 ;
10808 bool result;
10809 PyObject * obj0 = 0 ;
10810 char *kwnames[] = {
10811 (char *) "self", NULL
10812 };
10813
10814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10817 {
10818 PyThreadState* __tstate = wxPyBeginAllowThreads();
10819 result = (bool)(arg1)->HasU();
10820
10821 wxPyEndAllowThreads(__tstate);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 {
10825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10826 }
10827 return resultobj;
10828 fail:
10829 return NULL;
10830}
10831
10832
10833static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10834 PyObject *resultobj;
10835 wxJoystick *arg1 = (wxJoystick *) 0 ;
10836 bool result;
10837 PyObject * obj0 = 0 ;
10838 char *kwnames[] = {
10839 (char *) "self", NULL
10840 };
10841
10842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10845 {
10846 PyThreadState* __tstate = wxPyBeginAllowThreads();
10847 result = (bool)(arg1)->HasV();
10848
10849 wxPyEndAllowThreads(__tstate);
10850 if (PyErr_Occurred()) SWIG_fail;
10851 }
10852 {
10853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10854 }
10855 return resultobj;
10856 fail:
10857 return NULL;
10858}
10859
10860
10861static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10862 PyObject *resultobj;
10863 wxJoystick *arg1 = (wxJoystick *) 0 ;
10864 bool result;
10865 PyObject * obj0 = 0 ;
10866 char *kwnames[] = {
10867 (char *) "self", NULL
10868 };
10869
10870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10873 {
10874 PyThreadState* __tstate = wxPyBeginAllowThreads();
10875 result = (bool)(arg1)->HasPOV();
10876
10877 wxPyEndAllowThreads(__tstate);
10878 if (PyErr_Occurred()) SWIG_fail;
10879 }
10880 {
10881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10882 }
10883 return resultobj;
10884 fail:
10885 return NULL;
10886}
10887
10888
10889static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10890 PyObject *resultobj;
10891 wxJoystick *arg1 = (wxJoystick *) 0 ;
10892 bool result;
10893 PyObject * obj0 = 0 ;
10894 char *kwnames[] = {
10895 (char *) "self", NULL
10896 };
10897
10898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10901 {
10902 PyThreadState* __tstate = wxPyBeginAllowThreads();
10903 result = (bool)(arg1)->HasPOV4Dir();
10904
10905 wxPyEndAllowThreads(__tstate);
10906 if (PyErr_Occurred()) SWIG_fail;
10907 }
10908 {
10909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10910 }
10911 return resultobj;
10912 fail:
10913 return NULL;
10914}
10915
10916
10917static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10918 PyObject *resultobj;
10919 wxJoystick *arg1 = (wxJoystick *) 0 ;
10920 bool result;
10921 PyObject * obj0 = 0 ;
10922 char *kwnames[] = {
10923 (char *) "self", NULL
10924 };
10925
10926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 result = (bool)(arg1)->HasPOVCTS();
10932
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 {
10937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10938 }
10939 return resultobj;
10940 fail:
10941 return NULL;
10942}
10943
10944
10945static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10946 PyObject *resultobj;
10947 wxJoystick *arg1 = (wxJoystick *) 0 ;
10948 wxWindow *arg2 = (wxWindow *) 0 ;
10949 int arg3 = (int) 0 ;
10950 bool result;
10951 PyObject * obj0 = 0 ;
10952 PyObject * obj1 = 0 ;
10953 PyObject * obj2 = 0 ;
10954 char *kwnames[] = {
10955 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10956 };
10957
10958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10961 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10963 if (obj2) {
10964 arg3 = (int) SWIG_AsInt(obj2);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 {
10968 PyThreadState* __tstate = wxPyBeginAllowThreads();
10969 result = (bool)(arg1)->SetCapture(arg2,arg3);
10970
10971 wxPyEndAllowThreads(__tstate);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 {
10975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10976 }
10977 return resultobj;
10978 fail:
10979 return NULL;
10980}
10981
10982
10983static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10984 PyObject *resultobj;
10985 wxJoystick *arg1 = (wxJoystick *) 0 ;
10986 bool result;
10987 PyObject * obj0 = 0 ;
10988 char *kwnames[] = {
10989 (char *) "self", NULL
10990 };
10991
10992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 result = (bool)(arg1)->ReleaseCapture();
10998
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 {
11003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11004 }
11005 return resultobj;
11006 fail:
11007 return NULL;
11008}
11009
11010
11011static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
11012 PyObject *obj;
11013 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11014 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
11015 Py_INCREF(obj);
11016 return Py_BuildValue((char *)"");
11017}
11018static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11019 PyObject *resultobj;
11020 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11021 wxPoint *arg2 = (wxPoint *) 0 ;
11022 PyObject * obj0 = 0 ;
11023 PyObject * obj1 = 0 ;
11024 char *kwnames[] = {
11025 (char *) "self",(char *) "m_pos", NULL
11026 };
11027
11028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
11029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
11032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11033 if (arg1) (arg1)->m_pos = *arg2;
11034
11035 Py_INCREF(Py_None); resultobj = Py_None;
11036 return resultobj;
11037 fail:
11038 return NULL;
11039}
11040
11041
11042static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11043 PyObject *resultobj;
11044 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11045 wxPoint *result;
11046 PyObject * obj0 = 0 ;
11047 char *kwnames[] = {
11048 (char *) "self", NULL
11049 };
11050
11051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
11052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11054 result = (wxPoint *)& ((arg1)->m_pos);
11055
11056 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
11057 return resultobj;
11058 fail:
11059 return NULL;
11060}
11061
11062
11063static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11064 PyObject *resultobj;
11065 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11066 int arg2 ;
11067 PyObject * obj0 = 0 ;
11068 PyObject * obj1 = 0 ;
11069 char *kwnames[] = {
11070 (char *) "self",(char *) "m_zPosition", NULL
11071 };
11072
11073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
11074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11076 arg2 = (int) SWIG_AsInt(obj1);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 if (arg1) (arg1)->m_zPosition = arg2;
11079
11080 Py_INCREF(Py_None); resultobj = Py_None;
11081 return resultobj;
11082 fail:
11083 return NULL;
11084}
11085
11086
11087static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11088 PyObject *resultobj;
11089 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11090 int result;
11091 PyObject * obj0 = 0 ;
11092 char *kwnames[] = {
11093 (char *) "self", NULL
11094 };
11095
11096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
11097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11099 result = (int) ((arg1)->m_zPosition);
11100
11101 resultobj = SWIG_FromInt((int)result);
11102 return resultobj;
11103 fail:
11104 return NULL;
11105}
11106
11107
11108static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11109 PyObject *resultobj;
11110 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11111 int arg2 ;
11112 PyObject * obj0 = 0 ;
11113 PyObject * obj1 = 0 ;
11114 char *kwnames[] = {
11115 (char *) "self",(char *) "m_buttonChange", NULL
11116 };
11117
11118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11121 arg2 = (int) SWIG_AsInt(obj1);
11122 if (PyErr_Occurred()) SWIG_fail;
11123 if (arg1) (arg1)->m_buttonChange = arg2;
11124
11125 Py_INCREF(Py_None); resultobj = Py_None;
11126 return resultobj;
11127 fail:
11128 return NULL;
11129}
11130
11131
11132static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11133 PyObject *resultobj;
11134 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11135 int result;
11136 PyObject * obj0 = 0 ;
11137 char *kwnames[] = {
11138 (char *) "self", NULL
11139 };
11140
11141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11144 result = (int) ((arg1)->m_buttonChange);
11145
11146 resultobj = SWIG_FromInt((int)result);
11147 return resultobj;
11148 fail:
11149 return NULL;
11150}
11151
11152
11153static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11154 PyObject *resultobj;
11155 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11156 int arg2 ;
11157 PyObject * obj0 = 0 ;
11158 PyObject * obj1 = 0 ;
11159 char *kwnames[] = {
11160 (char *) "self",(char *) "m_buttonState", NULL
11161 };
11162
11163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11166 arg2 = (int) SWIG_AsInt(obj1);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 if (arg1) (arg1)->m_buttonState = arg2;
11169
11170 Py_INCREF(Py_None); resultobj = Py_None;
11171 return resultobj;
11172 fail:
11173 return NULL;
11174}
11175
11176
11177static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11178 PyObject *resultobj;
11179 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11180 int result;
11181 PyObject * obj0 = 0 ;
11182 char *kwnames[] = {
11183 (char *) "self", NULL
11184 };
11185
11186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11189 result = (int) ((arg1)->m_buttonState);
11190
11191 resultobj = SWIG_FromInt((int)result);
11192 return resultobj;
11193 fail:
11194 return NULL;
11195}
11196
11197
11198static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11199 PyObject *resultobj;
11200 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11201 int arg2 ;
11202 PyObject * obj0 = 0 ;
11203 PyObject * obj1 = 0 ;
11204 char *kwnames[] = {
11205 (char *) "self",(char *) "m_joyStick", NULL
11206 };
11207
11208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11211 arg2 = (int) SWIG_AsInt(obj1);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 if (arg1) (arg1)->m_joyStick = arg2;
11214
11215 Py_INCREF(Py_None); resultobj = Py_None;
11216 return resultobj;
11217 fail:
11218 return NULL;
11219}
11220
11221
11222static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11223 PyObject *resultobj;
11224 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11225 int result;
11226 PyObject * obj0 = 0 ;
11227 char *kwnames[] = {
11228 (char *) "self", NULL
11229 };
11230
11231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11234 result = (int) ((arg1)->m_joyStick);
11235
11236 resultobj = SWIG_FromInt((int)result);
11237 return resultobj;
11238 fail:
11239 return NULL;
11240}
11241
11242
11243static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11244 PyObject *resultobj;
11245 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11246 int arg2 = (int) 0 ;
11247 int arg3 = (int) wxJOYSTICK1 ;
11248 int arg4 = (int) 0 ;
11249 wxJoystickEvent *result;
11250 PyObject * obj0 = 0 ;
11251 PyObject * obj1 = 0 ;
11252 PyObject * obj2 = 0 ;
11253 PyObject * obj3 = 0 ;
11254 char *kwnames[] = {
11255 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11256 };
11257
11258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11259 if (obj0) {
11260 arg1 = (wxEventType) SWIG_AsInt(obj0);
11261 if (PyErr_Occurred()) SWIG_fail;
11262 }
11263 if (obj1) {
11264 arg2 = (int) SWIG_AsInt(obj1);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 }
11267 if (obj2) {
11268 arg3 = (int) SWIG_AsInt(obj2);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 if (obj3) {
11272 arg4 = (int) SWIG_AsInt(obj3);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 {
11276 PyThreadState* __tstate = wxPyBeginAllowThreads();
11277 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11278
11279 wxPyEndAllowThreads(__tstate);
11280 if (PyErr_Occurred()) SWIG_fail;
11281 }
11282 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11283 return resultobj;
11284 fail:
11285 return NULL;
11286}
11287
11288
11289static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11290 PyObject *resultobj;
11291 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11292 wxPoint result;
11293 PyObject * obj0 = 0 ;
11294 char *kwnames[] = {
11295 (char *) "self", NULL
11296 };
11297
11298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11301 {
11302 PyThreadState* __tstate = wxPyBeginAllowThreads();
11303 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11304
11305 wxPyEndAllowThreads(__tstate);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 }
11308 {
11309 wxPoint * resultptr;
11310 resultptr = new wxPoint((wxPoint &) result);
11311 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11312 }
11313 return resultobj;
11314 fail:
11315 return NULL;
11316}
11317
11318
11319static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11320 PyObject *resultobj;
11321 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11322 int result;
11323 PyObject * obj0 = 0 ;
11324 char *kwnames[] = {
11325 (char *) "self", NULL
11326 };
11327
11328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11331 {
11332 PyThreadState* __tstate = wxPyBeginAllowThreads();
11333 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11334
11335 wxPyEndAllowThreads(__tstate);
11336 if (PyErr_Occurred()) SWIG_fail;
11337 }
11338 resultobj = SWIG_FromInt((int)result);
11339 return resultobj;
11340 fail:
11341 return NULL;
11342}
11343
11344
11345static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11346 PyObject *resultobj;
11347 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11348 int result;
11349 PyObject * obj0 = 0 ;
11350 char *kwnames[] = {
11351 (char *) "self", NULL
11352 };
11353
11354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11357 {
11358 PyThreadState* __tstate = wxPyBeginAllowThreads();
11359 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11360
11361 wxPyEndAllowThreads(__tstate);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 }
11364 resultobj = SWIG_FromInt((int)result);
11365 return resultobj;
11366 fail:
11367 return NULL;
11368}
11369
11370
11371static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11372 PyObject *resultobj;
11373 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11374 int result;
11375 PyObject * obj0 = 0 ;
11376 char *kwnames[] = {
11377 (char *) "self", NULL
11378 };
11379
11380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11383 {
11384 PyThreadState* __tstate = wxPyBeginAllowThreads();
11385 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11386
11387 wxPyEndAllowThreads(__tstate);
11388 if (PyErr_Occurred()) SWIG_fail;
11389 }
11390 resultobj = SWIG_FromInt((int)result);
11391 return resultobj;
11392 fail:
11393 return NULL;
11394}
11395
11396
11397static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11398 PyObject *resultobj;
11399 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11400 int result;
11401 PyObject * obj0 = 0 ;
11402 char *kwnames[] = {
11403 (char *) "self", NULL
11404 };
11405
11406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11412
11413 wxPyEndAllowThreads(__tstate);
11414 if (PyErr_Occurred()) SWIG_fail;
11415 }
11416 resultobj = SWIG_FromInt((int)result);
11417 return resultobj;
11418 fail:
11419 return NULL;
11420}
11421
11422
11423static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11424 PyObject *resultobj;
11425 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11426 int arg2 ;
11427 PyObject * obj0 = 0 ;
11428 PyObject * obj1 = 0 ;
11429 char *kwnames[] = {
11430 (char *) "self",(char *) "stick", NULL
11431 };
11432
11433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11436 arg2 = (int) SWIG_AsInt(obj1);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 {
11439 PyThreadState* __tstate = wxPyBeginAllowThreads();
11440 (arg1)->SetJoystick(arg2);
11441
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 Py_INCREF(Py_None); resultobj = Py_None;
11446 return resultobj;
11447 fail:
11448 return NULL;
11449}
11450
11451
11452static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11453 PyObject *resultobj;
11454 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11455 int arg2 ;
11456 PyObject * obj0 = 0 ;
11457 PyObject * obj1 = 0 ;
11458 char *kwnames[] = {
11459 (char *) "self",(char *) "state", NULL
11460 };
11461
11462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11465 arg2 = (int) SWIG_AsInt(obj1);
11466 if (PyErr_Occurred()) SWIG_fail;
11467 {
11468 PyThreadState* __tstate = wxPyBeginAllowThreads();
11469 (arg1)->SetButtonState(arg2);
11470
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 Py_INCREF(Py_None); resultobj = Py_None;
11475 return resultobj;
11476 fail:
11477 return NULL;
11478}
11479
11480
11481static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11482 PyObject *resultobj;
11483 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11484 int arg2 ;
11485 PyObject * obj0 = 0 ;
11486 PyObject * obj1 = 0 ;
11487 char *kwnames[] = {
11488 (char *) "self",(char *) "change", NULL
11489 };
11490
11491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11494 arg2 = (int) SWIG_AsInt(obj1);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 {
11497 PyThreadState* __tstate = wxPyBeginAllowThreads();
11498 (arg1)->SetButtonChange(arg2);
11499
11500 wxPyEndAllowThreads(__tstate);
11501 if (PyErr_Occurred()) SWIG_fail;
11502 }
11503 Py_INCREF(Py_None); resultobj = Py_None;
11504 return resultobj;
11505 fail:
11506 return NULL;
11507}
11508
11509
11510static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11511 PyObject *resultobj;
11512 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11513 wxPoint *arg2 = 0 ;
11514 wxPoint temp2 ;
11515 PyObject * obj0 = 0 ;
11516 PyObject * obj1 = 0 ;
11517 char *kwnames[] = {
11518 (char *) "self",(char *) "pos", NULL
11519 };
11520
11521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11524 {
11525 arg2 = &temp2;
11526 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11527 }
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 (arg1)->SetPosition((wxPoint const &)*arg2);
11531
11532 wxPyEndAllowThreads(__tstate);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 Py_INCREF(Py_None); resultobj = Py_None;
11536 return resultobj;
11537 fail:
11538 return NULL;
11539}
11540
11541
11542static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj;
11544 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11545 int arg2 ;
11546 PyObject * obj0 = 0 ;
11547 PyObject * obj1 = 0 ;
11548 char *kwnames[] = {
11549 (char *) "self",(char *) "zPos", NULL
11550 };
11551
11552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11555 arg2 = (int) SWIG_AsInt(obj1);
11556 if (PyErr_Occurred()) SWIG_fail;
11557 {
11558 PyThreadState* __tstate = wxPyBeginAllowThreads();
11559 (arg1)->SetZPosition(arg2);
11560
11561 wxPyEndAllowThreads(__tstate);
11562 if (PyErr_Occurred()) SWIG_fail;
11563 }
11564 Py_INCREF(Py_None); resultobj = Py_None;
11565 return resultobj;
11566 fail:
11567 return NULL;
11568}
11569
11570
11571static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11572 PyObject *resultobj;
11573 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11574 bool result;
11575 PyObject * obj0 = 0 ;
11576 char *kwnames[] = {
11577 (char *) "self", NULL
11578 };
11579
11580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
11585 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11586
11587 wxPyEndAllowThreads(__tstate);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 {
11591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11592 }
11593 return resultobj;
11594 fail:
11595 return NULL;
11596}
11597
11598
11599static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11600 PyObject *resultobj;
11601 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11602 bool result;
11603 PyObject * obj0 = 0 ;
11604 char *kwnames[] = {
11605 (char *) "self", NULL
11606 };
11607
11608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11611 {
11612 PyThreadState* __tstate = wxPyBeginAllowThreads();
11613 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11614
11615 wxPyEndAllowThreads(__tstate);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 }
11618 {
11619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11620 }
11621 return resultobj;
11622 fail:
11623 return NULL;
11624}
11625
11626
11627static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11628 PyObject *resultobj;
11629 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11630 bool result;
11631 PyObject * obj0 = 0 ;
11632 char *kwnames[] = {
11633 (char *) "self", NULL
11634 };
11635
11636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11639 {
11640 PyThreadState* __tstate = wxPyBeginAllowThreads();
11641 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11642
11643 wxPyEndAllowThreads(__tstate);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 {
11647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11648 }
11649 return resultobj;
11650 fail:
11651 return NULL;
11652}
11653
11654
11655static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11656 PyObject *resultobj;
11657 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11658 int arg2 = (int) wxJOY_BUTTON_ANY ;
11659 bool result;
11660 PyObject * obj0 = 0 ;
11661 PyObject * obj1 = 0 ;
11662 char *kwnames[] = {
11663 (char *) "self",(char *) "but", NULL
11664 };
11665
11666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11669 if (obj1) {
11670 arg2 = (int) SWIG_AsInt(obj1);
11671 if (PyErr_Occurred()) SWIG_fail;
11672 }
11673 {
11674 PyThreadState* __tstate = wxPyBeginAllowThreads();
11675 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11676
11677 wxPyEndAllowThreads(__tstate);
11678 if (PyErr_Occurred()) SWIG_fail;
11679 }
11680 {
11681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11682 }
11683 return resultobj;
11684 fail:
11685 return NULL;
11686}
11687
11688
11689static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11690 PyObject *resultobj;
11691 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11692 int arg2 = (int) wxJOY_BUTTON_ANY ;
11693 bool result;
11694 PyObject * obj0 = 0 ;
11695 PyObject * obj1 = 0 ;
11696 char *kwnames[] = {
11697 (char *) "self",(char *) "but", NULL
11698 };
11699
11700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11703 if (obj1) {
11704 arg2 = (int) SWIG_AsInt(obj1);
11705 if (PyErr_Occurred()) SWIG_fail;
11706 }
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
11709 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11710
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 {
11715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11716 }
11717 return resultobj;
11718 fail:
11719 return NULL;
11720}
11721
11722
11723static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11724 PyObject *resultobj;
11725 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11726 int arg2 = (int) wxJOY_BUTTON_ANY ;
11727 bool result;
11728 PyObject * obj0 = 0 ;
11729 PyObject * obj1 = 0 ;
11730 char *kwnames[] = {
11731 (char *) "self",(char *) "but", NULL
11732 };
11733
11734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11737 if (obj1) {
11738 arg2 = (int) SWIG_AsInt(obj1);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 {
11742 PyThreadState* __tstate = wxPyBeginAllowThreads();
11743 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11744
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 {
11749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11750 }
11751 return resultobj;
11752 fail:
11753 return NULL;
11754}
11755
11756
11757static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11758 PyObject *obj;
11759 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11760 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11761 Py_INCREF(obj);
11762 return Py_BuildValue((char *)"");
11763}
11764static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11765 PyObject *resultobj;
11766 wxString const &arg1_defvalue = wxPyEmptyString ;
11767 wxString *arg1 = (wxString *) &arg1_defvalue ;
11768 wxSound *result;
11769 bool temp1 = False ;
11770 PyObject * obj0 = 0 ;
11771 char *kwnames[] = {
11772 (char *) "fileName", NULL
11773 };
11774
11775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11776 if (obj0) {
11777 {
11778 arg1 = wxString_in_helper(obj0);
11779 if (arg1 == NULL) SWIG_fail;
11780 temp1 = True;
11781 }
11782 }
11783 {
11784 if (!wxPyCheckForApp()) SWIG_fail;
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11787
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11792 {
11793 if (temp1)
11794 delete arg1;
11795 }
11796 return resultobj;
11797 fail:
11798 {
11799 if (temp1)
11800 delete arg1;
11801 }
11802 return NULL;
11803}
11804
11805
11806static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11807 PyObject *resultobj;
11808 PyObject *arg1 = (PyObject *) 0 ;
11809 wxSound *result;
11810 PyObject * obj0 = 0 ;
11811 char *kwnames[] = {
11812 (char *) "data", NULL
11813 };
11814
11815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11816 arg1 = obj0;
11817 {
11818 if (!wxPyCheckForApp()) SWIG_fail;
11819 PyThreadState* __tstate = wxPyBeginAllowThreads();
11820 result = (wxSound *)new_wxSound(arg1);
11821
11822 wxPyEndAllowThreads(__tstate);
11823 if (PyErr_Occurred()) SWIG_fail;
11824 }
11825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11826 return resultobj;
11827 fail:
11828 return NULL;
11829}
11830
11831
11832static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11833 PyObject *resultobj;
11834 wxSound *arg1 = (wxSound *) 0 ;
11835 PyObject * obj0 = 0 ;
11836 char *kwnames[] = {
11837 (char *) "self", NULL
11838 };
11839
11840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11843 {
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 delete arg1;
11846
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 Py_INCREF(Py_None); resultobj = Py_None;
11851 return resultobj;
11852 fail:
11853 return NULL;
11854}
11855
11856
11857static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11858 PyObject *resultobj;
11859 wxSound *arg1 = (wxSound *) 0 ;
11860 wxString *arg2 = 0 ;
11861 bool result;
11862 bool temp2 = False ;
11863 PyObject * obj0 = 0 ;
11864 PyObject * obj1 = 0 ;
11865 char *kwnames[] = {
11866 (char *) "self",(char *) "fileName", NULL
11867 };
11868
11869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
11870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11872 {
11873 arg2 = wxString_in_helper(obj1);
11874 if (arg2 == NULL) SWIG_fail;
11875 temp2 = True;
11876 }
11877 {
11878 PyThreadState* __tstate = wxPyBeginAllowThreads();
11879 result = (bool)(arg1)->Create((wxString const &)*arg2);
11880
11881 wxPyEndAllowThreads(__tstate);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 }
11884 {
11885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11886 }
11887 {
11888 if (temp2)
11889 delete arg2;
11890 }
11891 return resultobj;
11892 fail:
11893 {
11894 if (temp2)
11895 delete arg2;
11896 }
11897 return NULL;
11898}
11899
11900
11901static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11902 PyObject *resultobj;
11903 wxSound *arg1 = (wxSound *) 0 ;
11904 PyObject *arg2 = (PyObject *) 0 ;
11905 bool result;
11906 PyObject * obj0 = 0 ;
11907 PyObject * obj1 = 0 ;
11908 char *kwnames[] = {
11909 (char *) "self",(char *) "data", NULL
11910 };
11911
11912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
11913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11915 arg2 = obj1;
11916 {
11917 PyThreadState* __tstate = wxPyBeginAllowThreads();
11918 result = (bool)wxSound_CreateFromData(arg1,arg2);
11919
11920 wxPyEndAllowThreads(__tstate);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 }
11923 {
11924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11925 }
11926 return resultobj;
11927 fail:
11928 return NULL;
11929}
11930
11931
11932static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11933 PyObject *resultobj;
11934 wxSound *arg1 = (wxSound *) 0 ;
11935 bool result;
11936 PyObject * obj0 = 0 ;
11937 char *kwnames[] = {
11938 (char *) "self", NULL
11939 };
11940
11941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11944 {
11945 PyThreadState* __tstate = wxPyBeginAllowThreads();
11946 result = (bool)(arg1)->IsOk();
11947
11948 wxPyEndAllowThreads(__tstate);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 }
11951 {
11952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11953 }
11954 return resultobj;
11955 fail:
11956 return NULL;
11957}
11958
11959
11960static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
11961 PyObject *resultobj;
11962 wxSound *arg1 = (wxSound *) 0 ;
11963 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11964 bool result;
11965 PyObject * obj0 = 0 ;
11966 PyObject * obj1 = 0 ;
11967 char *kwnames[] = {
11968 (char *) "self",(char *) "flags", NULL
11969 };
11970
11971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
11972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11974 if (obj1) {
11975 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11976 if (PyErr_Occurred()) SWIG_fail;
11977 }
11978 {
11979 if (!wxPyCheckForApp()) SWIG_fail;
11980 PyThreadState* __tstate = wxPyBeginAllowThreads();
11981 result = (bool)((wxSound const *)arg1)->Play(arg2);
11982
11983 wxPyEndAllowThreads(__tstate);
11984 if (PyErr_Occurred()) SWIG_fail;
11985 }
11986 {
11987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11988 }
11989 return resultobj;
11990 fail:
11991 return NULL;
11992}
11993
11994
11995static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
11996 PyObject *resultobj;
11997 wxString *arg1 = 0 ;
11998 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11999 bool result;
12000 bool temp1 = False ;
12001 PyObject * obj0 = 0 ;
12002 PyObject * obj1 = 0 ;
12003 char *kwnames[] = {
12004 (char *) "filename",(char *) "flags", NULL
12005 };
12006
12007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
12008 {
12009 arg1 = wxString_in_helper(obj0);
12010 if (arg1 == NULL) SWIG_fail;
12011 temp1 = True;
12012 }
12013 if (obj1) {
12014 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 {
12018 if (!wxPyCheckForApp()) SWIG_fail;
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
12021
12022 wxPyEndAllowThreads(__tstate);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 {
12026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12027 }
12028 {
12029 if (temp1)
12030 delete arg1;
12031 }
12032 return resultobj;
12033 fail:
12034 {
12035 if (temp1)
12036 delete arg1;
12037 }
12038 return NULL;
12039}
12040
12041
12042static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
12043 PyObject *resultobj;
12044 char *kwnames[] = {
12045 NULL
12046 };
12047
12048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
12049 {
12050 if (!wxPyCheckForApp()) SWIG_fail;
12051 PyThreadState* __tstate = wxPyBeginAllowThreads();
12052 Sound_Stop();
12053
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 Py_INCREF(Py_None); resultobj = Py_None;
12058 return resultobj;
12059 fail:
12060 return NULL;
12061}
12062
12063
12064static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
12065 PyObject *obj;
12066 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12067 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
12068 Py_INCREF(obj);
12069 return Py_BuildValue((char *)"");
12070}
12071static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12072 PyObject *resultobj;
12073 wxString *arg1 = 0 ;
12074 wxString *arg2 = 0 ;
12075 wxString *arg3 = 0 ;
12076 wxString *arg4 = 0 ;
12077 wxFileTypeInfo *result;
12078 bool temp1 = False ;
12079 bool temp2 = False ;
12080 bool temp3 = False ;
12081 bool temp4 = False ;
12082 PyObject * obj0 = 0 ;
12083 PyObject * obj1 = 0 ;
12084 PyObject * obj2 = 0 ;
12085 PyObject * obj3 = 0 ;
12086 char *kwnames[] = {
12087 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
12088 };
12089
12090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12091 {
12092 arg1 = wxString_in_helper(obj0);
12093 if (arg1 == NULL) SWIG_fail;
12094 temp1 = True;
12095 }
12096 {
12097 arg2 = wxString_in_helper(obj1);
12098 if (arg2 == NULL) SWIG_fail;
12099 temp2 = True;
12100 }
12101 {
12102 arg3 = wxString_in_helper(obj2);
12103 if (arg3 == NULL) SWIG_fail;
12104 temp3 = True;
12105 }
12106 {
12107 arg4 = wxString_in_helper(obj3);
12108 if (arg4 == NULL) SWIG_fail;
12109 temp4 = True;
12110 }
12111 {
12112 PyThreadState* __tstate = wxPyBeginAllowThreads();
12113 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12114
12115 wxPyEndAllowThreads(__tstate);
12116 if (PyErr_Occurred()) SWIG_fail;
12117 }
12118 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12119 {
12120 if (temp1)
12121 delete arg1;
12122 }
12123 {
12124 if (temp2)
12125 delete arg2;
12126 }
12127 {
12128 if (temp3)
12129 delete arg3;
12130 }
12131 {
12132 if (temp4)
12133 delete arg4;
12134 }
12135 return resultobj;
12136 fail:
12137 {
12138 if (temp1)
12139 delete arg1;
12140 }
12141 {
12142 if (temp2)
12143 delete arg2;
12144 }
12145 {
12146 if (temp3)
12147 delete arg3;
12148 }
12149 {
12150 if (temp4)
12151 delete arg4;
12152 }
12153 return NULL;
12154}
12155
12156
12157static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
12158 PyObject *resultobj;
12159 wxArrayString *arg1 = 0 ;
12160 wxFileTypeInfo *result;
12161 bool temp1 = False ;
12162 PyObject * obj0 = 0 ;
12163 char *kwnames[] = {
12164 (char *) "sArray", NULL
12165 };
12166
12167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12168 {
12169 if (! PySequence_Check(obj0)) {
12170 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12171 SWIG_fail;
12172 }
12173 arg1 = new wxArrayString;
12174 temp1 = True;
12175 int i, len=PySequence_Length(obj0);
12176 for (i=0; i<len; i++) {
12177 PyObject* item = PySequence_GetItem(obj0, i);
12178#if wxUSE_UNICODE
12179 PyObject* str = PyObject_Unicode(item);
12180#else
12181 PyObject* str = PyObject_Str(item);
12182#endif
12183 if (PyErr_Occurred()) SWIG_fail;
12184 arg1->Add(Py2wxString(str));
12185 Py_DECREF(item);
12186 Py_DECREF(str);
12187 }
12188 }
12189 {
12190 PyThreadState* __tstate = wxPyBeginAllowThreads();
12191 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12192
12193 wxPyEndAllowThreads(__tstate);
12194 if (PyErr_Occurred()) SWIG_fail;
12195 }
12196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12197 {
12198 if (temp1) delete arg1;
12199 }
12200 return resultobj;
12201 fail:
12202 {
12203 if (temp1) delete arg1;
12204 }
12205 return NULL;
12206}
12207
12208
12209static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12210 PyObject *resultobj;
12211 wxFileTypeInfo *result;
12212 char *kwnames[] = {
12213 NULL
12214 };
12215
12216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12220
12221 wxPyEndAllowThreads(__tstate);
12222 if (PyErr_Occurred()) SWIG_fail;
12223 }
12224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12225 return resultobj;
12226 fail:
12227 return NULL;
12228}
12229
12230
12231static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
12232 PyObject *resultobj;
12233 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12234 bool result;
12235 PyObject * obj0 = 0 ;
12236 char *kwnames[] = {
12237 (char *) "self", NULL
12238 };
12239
12240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12243 {
12244 PyThreadState* __tstate = wxPyBeginAllowThreads();
12245 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12246
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 {
12251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12252 }
12253 return resultobj;
12254 fail:
12255 return NULL;
12256}
12257
12258
12259static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12260 PyObject *resultobj;
12261 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12262 wxString *arg2 = 0 ;
12263 int arg3 = (int) 0 ;
12264 bool temp2 = False ;
12265 PyObject * obj0 = 0 ;
12266 PyObject * obj1 = 0 ;
12267 PyObject * obj2 = 0 ;
12268 char *kwnames[] = {
12269 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12270 };
12271
12272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12275 {
12276 arg2 = wxString_in_helper(obj1);
12277 if (arg2 == NULL) SWIG_fail;
12278 temp2 = True;
12279 }
12280 if (obj2) {
12281 arg3 = (int) SWIG_AsInt(obj2);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12287
12288 wxPyEndAllowThreads(__tstate);
12289 if (PyErr_Occurred()) SWIG_fail;
12290 }
12291 Py_INCREF(Py_None); resultobj = Py_None;
12292 {
12293 if (temp2)
12294 delete arg2;
12295 }
12296 return resultobj;
12297 fail:
12298 {
12299 if (temp2)
12300 delete arg2;
12301 }
12302 return NULL;
12303}
12304
12305
12306static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12307 PyObject *resultobj;
12308 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12309 wxString *arg2 = 0 ;
12310 bool temp2 = False ;
12311 PyObject * obj0 = 0 ;
12312 PyObject * obj1 = 0 ;
12313 char *kwnames[] = {
12314 (char *) "self",(char *) "shortDesc", NULL
12315 };
12316
12317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12320 {
12321 arg2 = wxString_in_helper(obj1);
12322 if (arg2 == NULL) SWIG_fail;
12323 temp2 = True;
12324 }
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 (arg1)->SetShortDesc((wxString const &)*arg2);
12328
12329 wxPyEndAllowThreads(__tstate);
12330 if (PyErr_Occurred()) SWIG_fail;
12331 }
12332 Py_INCREF(Py_None); resultobj = Py_None;
12333 {
12334 if (temp2)
12335 delete arg2;
12336 }
12337 return resultobj;
12338 fail:
12339 {
12340 if (temp2)
12341 delete arg2;
12342 }
12343 return NULL;
12344}
12345
12346
12347static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12348 PyObject *resultobj;
12349 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12350 wxString *result;
12351 PyObject * obj0 = 0 ;
12352 char *kwnames[] = {
12353 (char *) "self", NULL
12354 };
12355
12356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12359 {
12360 PyThreadState* __tstate = wxPyBeginAllowThreads();
12361 {
12362 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12363 result = (wxString *) &_result_ref;
12364 }
12365
12366 wxPyEndAllowThreads(__tstate);
12367 if (PyErr_Occurred()) SWIG_fail;
12368 }
12369 {
12370#if wxUSE_UNICODE
12371 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12372#else
12373 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12374#endif
12375 }
12376 return resultobj;
12377 fail:
12378 return NULL;
12379}
12380
12381
12382static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12383 PyObject *resultobj;
12384 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12385 wxString *result;
12386 PyObject * obj0 = 0 ;
12387 char *kwnames[] = {
12388 (char *) "self", NULL
12389 };
12390
12391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 {
12397 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12398 result = (wxString *) &_result_ref;
12399 }
12400
12401 wxPyEndAllowThreads(__tstate);
12402 if (PyErr_Occurred()) SWIG_fail;
12403 }
12404 {
12405#if wxUSE_UNICODE
12406 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12407#else
12408 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12409#endif
12410 }
12411 return resultobj;
12412 fail:
12413 return NULL;
12414}
12415
12416
12417static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12418 PyObject *resultobj;
12419 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12420 wxString *result;
12421 PyObject * obj0 = 0 ;
12422 char *kwnames[] = {
12423 (char *) "self", NULL
12424 };
12425
12426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12429 {
12430 PyThreadState* __tstate = wxPyBeginAllowThreads();
12431 {
12432 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12433 result = (wxString *) &_result_ref;
12434 }
12435
12436 wxPyEndAllowThreads(__tstate);
12437 if (PyErr_Occurred()) SWIG_fail;
12438 }
12439 {
12440#if wxUSE_UNICODE
12441 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12442#else
12443 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12444#endif
12445 }
12446 return resultobj;
12447 fail:
12448 return NULL;
12449}
12450
12451
12452static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12453 PyObject *resultobj;
12454 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12455 wxString *result;
12456 PyObject * obj0 = 0 ;
12457 char *kwnames[] = {
12458 (char *) "self", NULL
12459 };
12460
12461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12464 {
12465 PyThreadState* __tstate = wxPyBeginAllowThreads();
12466 {
12467 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12468 result = (wxString *) &_result_ref;
12469 }
12470
12471 wxPyEndAllowThreads(__tstate);
12472 if (PyErr_Occurred()) SWIG_fail;
12473 }
12474 {
12475#if wxUSE_UNICODE
12476 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12477#else
12478 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12479#endif
12480 }
12481 return resultobj;
12482 fail:
12483 return NULL;
12484}
12485
12486
12487static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12488 PyObject *resultobj;
12489 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12490 wxString *result;
12491 PyObject * obj0 = 0 ;
12492 char *kwnames[] = {
12493 (char *) "self", NULL
12494 };
12495
12496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12499 {
12500 PyThreadState* __tstate = wxPyBeginAllowThreads();
12501 {
12502 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12503 result = (wxString *) &_result_ref;
12504 }
12505
12506 wxPyEndAllowThreads(__tstate);
12507 if (PyErr_Occurred()) SWIG_fail;
12508 }
12509 {
12510#if wxUSE_UNICODE
12511 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12512#else
12513 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12514#endif
12515 }
12516 return resultobj;
12517 fail:
12518 return NULL;
12519}
12520
12521
12522static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12523 PyObject *resultobj;
12524 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12525 wxArrayString *result;
12526 PyObject * obj0 = 0 ;
12527 char *kwnames[] = {
12528 (char *) "self", NULL
12529 };
12530
12531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 {
12537 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12538 result = (wxArrayString *) &_result_ref;
12539 }
12540
12541 wxPyEndAllowThreads(__tstate);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 }
12544 {
12545 resultobj = wxArrayString2PyList_helper(*result);
12546 }
12547 return resultobj;
12548 fail:
12549 return NULL;
12550}
12551
12552
12553static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12554 PyObject *resultobj;
12555 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12556 int result;
12557 PyObject * obj0 = 0 ;
12558 char *kwnames[] = {
12559 (char *) "self", NULL
12560 };
12561
12562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12565 {
12566 PyThreadState* __tstate = wxPyBeginAllowThreads();
12567 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12568
12569 wxPyEndAllowThreads(__tstate);
12570 if (PyErr_Occurred()) SWIG_fail;
12571 }
12572 resultobj = SWIG_FromInt((int)result);
12573 return resultobj;
12574 fail:
12575 return NULL;
12576}
12577
12578
12579static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12580 PyObject *resultobj;
12581 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12582 wxString *result;
12583 PyObject * obj0 = 0 ;
12584 char *kwnames[] = {
12585 (char *) "self", NULL
12586 };
12587
12588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12591 {
12592 PyThreadState* __tstate = wxPyBeginAllowThreads();
12593 {
12594 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12595 result = (wxString *) &_result_ref;
12596 }
12597
12598 wxPyEndAllowThreads(__tstate);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 }
12601 {
12602#if wxUSE_UNICODE
12603 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12604#else
12605 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12606#endif
12607 }
12608 return resultobj;
12609 fail:
12610 return NULL;
12611}
12612
12613
12614static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12615 PyObject *resultobj;
12616 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12617 int result;
12618 PyObject * obj0 = 0 ;
12619 char *kwnames[] = {
12620 (char *) "self", NULL
12621 };
12622
12623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12626 {
12627 PyThreadState* __tstate = wxPyBeginAllowThreads();
12628 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12629
12630 wxPyEndAllowThreads(__tstate);
12631 if (PyErr_Occurred()) SWIG_fail;
12632 }
12633 resultobj = SWIG_FromInt((int)result);
12634 return resultobj;
12635 fail:
12636 return NULL;
12637}
12638
12639
12640static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12641 PyObject *obj;
12642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12643 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12644 Py_INCREF(obj);
12645 return Py_BuildValue((char *)"");
12646}
12647static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj;
12649 wxFileTypeInfo *arg1 = 0 ;
12650 wxFileType *result;
12651 PyObject * obj0 = 0 ;
12652 char *kwnames[] = {
12653 (char *) "ftInfo", NULL
12654 };
12655
12656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12658 SWIG_POINTER_EXCEPTION | 0)) == -1)
12659 SWIG_fail;
12660 if (arg1 == NULL) {
12661 PyErr_SetString(PyExc_TypeError,"null reference");
12662 SWIG_fail;
12663 }
12664 {
12665 PyThreadState* __tstate = wxPyBeginAllowThreads();
12666 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12667
12668 wxPyEndAllowThreads(__tstate);
12669 if (PyErr_Occurred()) SWIG_fail;
12670 }
12671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12672 return resultobj;
12673 fail:
12674 return NULL;
12675}
12676
12677
12678static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12679 PyObject *resultobj;
12680 wxFileType *arg1 = (wxFileType *) 0 ;
12681 PyObject * obj0 = 0 ;
12682 char *kwnames[] = {
12683 (char *) "self", NULL
12684 };
12685
12686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12689 {
12690 PyThreadState* __tstate = wxPyBeginAllowThreads();
12691 delete arg1;
12692
12693 wxPyEndAllowThreads(__tstate);
12694 if (PyErr_Occurred()) SWIG_fail;
12695 }
12696 Py_INCREF(Py_None); resultobj = Py_None;
12697 return resultobj;
12698 fail:
12699 return NULL;
12700}
12701
12702
12703static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12704 PyObject *resultobj;
12705 wxFileType *arg1 = (wxFileType *) 0 ;
12706 PyObject *result;
12707 PyObject * obj0 = 0 ;
12708 char *kwnames[] = {
12709 (char *) "self", NULL
12710 };
12711
12712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12715 {
12716 PyThreadState* __tstate = wxPyBeginAllowThreads();
12717 result = (PyObject *)wxFileType_GetMimeType(arg1);
12718
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 resultobj = result;
12723 return resultobj;
12724 fail:
12725 return NULL;
12726}
12727
12728
12729static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12730 PyObject *resultobj;
12731 wxFileType *arg1 = (wxFileType *) 0 ;
12732 PyObject *result;
12733 PyObject * obj0 = 0 ;
12734 char *kwnames[] = {
12735 (char *) "self", NULL
12736 };
12737
12738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12741 {
12742 PyThreadState* __tstate = wxPyBeginAllowThreads();
12743 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12744
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 resultobj = result;
12749 return resultobj;
12750 fail:
12751 return NULL;
12752}
12753
12754
12755static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12756 PyObject *resultobj;
12757 wxFileType *arg1 = (wxFileType *) 0 ;
12758 PyObject *result;
12759 PyObject * obj0 = 0 ;
12760 char *kwnames[] = {
12761 (char *) "self", NULL
12762 };
12763
12764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12767 {
12768 PyThreadState* __tstate = wxPyBeginAllowThreads();
12769 result = (PyObject *)wxFileType_GetExtensions(arg1);
12770
12771 wxPyEndAllowThreads(__tstate);
12772 if (PyErr_Occurred()) SWIG_fail;
12773 }
12774 resultobj = result;
12775 return resultobj;
12776 fail:
12777 return NULL;
12778}
12779
12780
12781static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12782 PyObject *resultobj;
12783 wxFileType *arg1 = (wxFileType *) 0 ;
12784 wxIcon *result;
12785 PyObject * obj0 = 0 ;
12786 char *kwnames[] = {
12787 (char *) "self", NULL
12788 };
12789
12790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12793 {
12794 PyThreadState* __tstate = wxPyBeginAllowThreads();
12795 result = (wxIcon *)wxFileType_GetIcon(arg1);
12796
12797 wxPyEndAllowThreads(__tstate);
12798 if (PyErr_Occurred()) SWIG_fail;
12799 }
12800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12801 return resultobj;
12802 fail:
12803 return NULL;
12804}
12805
12806
12807static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12808 PyObject *resultobj;
12809 wxFileType *arg1 = (wxFileType *) 0 ;
12810 PyObject *result;
12811 PyObject * obj0 = 0 ;
12812 char *kwnames[] = {
12813 (char *) "self", NULL
12814 };
12815
12816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12822
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 resultobj = result;
12827 return resultobj;
12828 fail:
12829 return NULL;
12830}
12831
12832
12833static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12834 PyObject *resultobj;
12835 wxFileType *arg1 = (wxFileType *) 0 ;
12836 PyObject *result;
12837 PyObject * obj0 = 0 ;
12838 char *kwnames[] = {
12839 (char *) "self", NULL
12840 };
12841
12842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12845 {
12846 PyThreadState* __tstate = wxPyBeginAllowThreads();
12847 result = (PyObject *)wxFileType_GetDescription(arg1);
12848
12849 wxPyEndAllowThreads(__tstate);
12850 if (PyErr_Occurred()) SWIG_fail;
12851 }
12852 resultobj = result;
12853 return resultobj;
12854 fail:
12855 return NULL;
12856}
12857
12858
12859static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12860 PyObject *resultobj;
12861 wxFileType *arg1 = (wxFileType *) 0 ;
12862 wxString *arg2 = 0 ;
12863 wxString const &arg3_defvalue = wxPyEmptyString ;
12864 wxString *arg3 = (wxString *) &arg3_defvalue ;
12865 PyObject *result;
12866 bool temp2 = False ;
12867 bool temp3 = False ;
12868 PyObject * obj0 = 0 ;
12869 PyObject * obj1 = 0 ;
12870 PyObject * obj2 = 0 ;
12871 char *kwnames[] = {
12872 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12873 };
12874
12875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12878 {
12879 arg2 = wxString_in_helper(obj1);
12880 if (arg2 == NULL) SWIG_fail;
12881 temp2 = True;
12882 }
12883 if (obj2) {
12884 {
12885 arg3 = wxString_in_helper(obj2);
12886 if (arg3 == NULL) SWIG_fail;
12887 temp3 = True;
12888 }
12889 }
12890 {
12891 PyThreadState* __tstate = wxPyBeginAllowThreads();
12892 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12893
12894 wxPyEndAllowThreads(__tstate);
12895 if (PyErr_Occurred()) SWIG_fail;
12896 }
12897 resultobj = result;
12898 {
12899 if (temp2)
12900 delete arg2;
12901 }
12902 {
12903 if (temp3)
12904 delete arg3;
12905 }
12906 return resultobj;
12907 fail:
12908 {
12909 if (temp2)
12910 delete arg2;
12911 }
12912 {
12913 if (temp3)
12914 delete arg3;
12915 }
12916 return NULL;
12917}
12918
12919
12920static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12921 PyObject *resultobj;
12922 wxFileType *arg1 = (wxFileType *) 0 ;
12923 wxString *arg2 = 0 ;
12924 wxString const &arg3_defvalue = wxPyEmptyString ;
12925 wxString *arg3 = (wxString *) &arg3_defvalue ;
12926 PyObject *result;
12927 bool temp2 = False ;
12928 bool temp3 = False ;
12929 PyObject * obj0 = 0 ;
12930 PyObject * obj1 = 0 ;
12931 PyObject * obj2 = 0 ;
12932 char *kwnames[] = {
12933 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12934 };
12935
12936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12939 {
12940 arg2 = wxString_in_helper(obj1);
12941 if (arg2 == NULL) SWIG_fail;
12942 temp2 = True;
12943 }
12944 if (obj2) {
12945 {
12946 arg3 = wxString_in_helper(obj2);
12947 if (arg3 == NULL) SWIG_fail;
12948 temp3 = True;
12949 }
12950 }
12951 {
12952 PyThreadState* __tstate = wxPyBeginAllowThreads();
12953 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12954
12955 wxPyEndAllowThreads(__tstate);
12956 if (PyErr_Occurred()) SWIG_fail;
12957 }
12958 resultobj = result;
12959 {
12960 if (temp2)
12961 delete arg2;
12962 }
12963 {
12964 if (temp3)
12965 delete arg3;
12966 }
12967 return resultobj;
12968 fail:
12969 {
12970 if (temp2)
12971 delete arg2;
12972 }
12973 {
12974 if (temp3)
12975 delete arg3;
12976 }
12977 return NULL;
12978}
12979
12980
12981static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12982 PyObject *resultobj;
12983 wxFileType *arg1 = (wxFileType *) 0 ;
12984 wxString *arg2 = 0 ;
12985 wxString const &arg3_defvalue = wxPyEmptyString ;
12986 wxString *arg3 = (wxString *) &arg3_defvalue ;
12987 PyObject *result;
12988 bool temp2 = False ;
12989 bool temp3 = False ;
12990 PyObject * obj0 = 0 ;
12991 PyObject * obj1 = 0 ;
12992 PyObject * obj2 = 0 ;
12993 char *kwnames[] = {
12994 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12995 };
12996
12997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13000 {
13001 arg2 = wxString_in_helper(obj1);
13002 if (arg2 == NULL) SWIG_fail;
13003 temp2 = True;
13004 }
13005 if (obj2) {
13006 {
13007 arg3 = wxString_in_helper(obj2);
13008 if (arg3 == NULL) SWIG_fail;
13009 temp3 = True;
13010 }
13011 }
13012 {
13013 PyThreadState* __tstate = wxPyBeginAllowThreads();
13014 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13015
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) SWIG_fail;
13018 }
13019 resultobj = result;
13020 {
13021 if (temp2)
13022 delete arg2;
13023 }
13024 {
13025 if (temp3)
13026 delete arg3;
13027 }
13028 return resultobj;
13029 fail:
13030 {
13031 if (temp2)
13032 delete arg2;
13033 }
13034 {
13035 if (temp3)
13036 delete arg3;
13037 }
13038 return NULL;
13039}
13040
13041
13042static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
13043 PyObject *resultobj;
13044 wxFileType *arg1 = (wxFileType *) 0 ;
13045 wxString *arg2 = 0 ;
13046 wxString *arg3 = 0 ;
13047 bool arg4 = (bool) True ;
13048 bool result;
13049 bool temp2 = False ;
13050 bool temp3 = False ;
13051 PyObject * obj0 = 0 ;
13052 PyObject * obj1 = 0 ;
13053 PyObject * obj2 = 0 ;
13054 PyObject * obj3 = 0 ;
13055 char *kwnames[] = {
13056 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
13057 };
13058
13059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13062 {
13063 arg2 = wxString_in_helper(obj1);
13064 if (arg2 == NULL) SWIG_fail;
13065 temp2 = True;
13066 }
13067 {
13068 arg3 = wxString_in_helper(obj2);
13069 if (arg3 == NULL) SWIG_fail;
13070 temp3 = True;
13071 }
13072 if (obj3) {
13073 arg4 = (bool) SWIG_AsBool(obj3);
13074 if (PyErr_Occurred()) SWIG_fail;
13075 }
13076 {
13077 PyThreadState* __tstate = wxPyBeginAllowThreads();
13078 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
13079
13080 wxPyEndAllowThreads(__tstate);
13081 if (PyErr_Occurred()) SWIG_fail;
13082 }
13083 {
13084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13085 }
13086 {
13087 if (temp2)
13088 delete arg2;
13089 }
13090 {
13091 if (temp3)
13092 delete arg3;
13093 }
13094 return resultobj;
13095 fail:
13096 {
13097 if (temp2)
13098 delete arg2;
13099 }
13100 {
13101 if (temp3)
13102 delete arg3;
13103 }
13104 return NULL;
13105}
13106
13107
13108static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13109 PyObject *resultobj;
13110 wxFileType *arg1 = (wxFileType *) 0 ;
13111 wxString const &arg2_defvalue = wxPyEmptyString ;
13112 wxString *arg2 = (wxString *) &arg2_defvalue ;
13113 int arg3 = (int) 0 ;
13114 bool result;
13115 bool temp2 = False ;
13116 PyObject * obj0 = 0 ;
13117 PyObject * obj1 = 0 ;
13118 PyObject * obj2 = 0 ;
13119 char *kwnames[] = {
13120 (char *) "self",(char *) "cmd",(char *) "index", NULL
13121 };
13122
13123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13126 if (obj1) {
13127 {
13128 arg2 = wxString_in_helper(obj1);
13129 if (arg2 == NULL) SWIG_fail;
13130 temp2 = True;
13131 }
13132 }
13133 if (obj2) {
13134 arg3 = (int) SWIG_AsInt(obj2);
13135 if (PyErr_Occurred()) SWIG_fail;
13136 }
13137 {
13138 PyThreadState* __tstate = wxPyBeginAllowThreads();
13139 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13140
13141 wxPyEndAllowThreads(__tstate);
13142 if (PyErr_Occurred()) SWIG_fail;
13143 }
13144 {
13145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13146 }
13147 {
13148 if (temp2)
13149 delete arg2;
13150 }
13151 return resultobj;
13152 fail:
13153 {
13154 if (temp2)
13155 delete arg2;
13156 }
13157 return NULL;
13158}
13159
13160
13161static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13162 PyObject *resultobj;
13163 wxFileType *arg1 = (wxFileType *) 0 ;
13164 bool result;
13165 PyObject * obj0 = 0 ;
13166 char *kwnames[] = {
13167 (char *) "self", NULL
13168 };
13169
13170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13173 {
13174 PyThreadState* __tstate = wxPyBeginAllowThreads();
13175 result = (bool)(arg1)->Unassociate();
13176
13177 wxPyEndAllowThreads(__tstate);
13178 if (PyErr_Occurred()) SWIG_fail;
13179 }
13180 {
13181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13182 }
13183 return resultobj;
13184 fail:
13185 return NULL;
13186}
13187
13188
13189static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
13190 PyObject *resultobj;
13191 wxString *arg1 = 0 ;
13192 wxString *arg2 = 0 ;
13193 wxString const &arg3_defvalue = wxPyEmptyString ;
13194 wxString *arg3 = (wxString *) &arg3_defvalue ;
13195 wxString result;
13196 bool temp1 = False ;
13197 bool temp2 = False ;
13198 bool temp3 = False ;
13199 PyObject * obj0 = 0 ;
13200 PyObject * obj1 = 0 ;
13201 PyObject * obj2 = 0 ;
13202 char *kwnames[] = {
13203 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13204 };
13205
13206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13207 {
13208 arg1 = wxString_in_helper(obj0);
13209 if (arg1 == NULL) SWIG_fail;
13210 temp1 = True;
13211 }
13212 {
13213 arg2 = wxString_in_helper(obj1);
13214 if (arg2 == NULL) SWIG_fail;
13215 temp2 = True;
13216 }
13217 if (obj2) {
13218 {
13219 arg3 = wxString_in_helper(obj2);
13220 if (arg3 == NULL) SWIG_fail;
13221 temp3 = True;
13222 }
13223 }
13224 {
13225 PyThreadState* __tstate = wxPyBeginAllowThreads();
13226 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13227
13228 wxPyEndAllowThreads(__tstate);
13229 if (PyErr_Occurred()) SWIG_fail;
13230 }
13231 {
13232#if wxUSE_UNICODE
13233 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13234#else
13235 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13236#endif
13237 }
13238 {
13239 if (temp1)
13240 delete arg1;
13241 }
13242 {
13243 if (temp2)
13244 delete arg2;
13245 }
13246 {
13247 if (temp3)
13248 delete arg3;
13249 }
13250 return resultobj;
13251 fail:
13252 {
13253 if (temp1)
13254 delete arg1;
13255 }
13256 {
13257 if (temp2)
13258 delete arg2;
13259 }
13260 {
13261 if (temp3)
13262 delete arg3;
13263 }
13264 return NULL;
13265}
13266
13267
13268static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13269 PyObject *obj;
13270 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13271 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13272 Py_INCREF(obj);
13273 return Py_BuildValue((char *)"");
13274}
13275static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13276 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13277 return 1;
13278}
13279
13280
13281static PyObject *_wrap_TheMimeTypesManager_get() {
13282 PyObject *pyobj;
13283
13284 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13285 return pyobj;
13286}
13287
13288
13289static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13290 PyObject *resultobj;
13291 wxString *arg1 = 0 ;
13292 wxString *arg2 = 0 ;
13293 bool result;
13294 bool temp1 = False ;
13295 bool temp2 = False ;
13296 PyObject * obj0 = 0 ;
13297 PyObject * obj1 = 0 ;
13298 char *kwnames[] = {
13299 (char *) "mimeType",(char *) "wildcard", NULL
13300 };
13301
13302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13303 {
13304 arg1 = wxString_in_helper(obj0);
13305 if (arg1 == NULL) SWIG_fail;
13306 temp1 = True;
13307 }
13308 {
13309 arg2 = wxString_in_helper(obj1);
13310 if (arg2 == NULL) SWIG_fail;
13311 temp2 = True;
13312 }
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13316
13317 wxPyEndAllowThreads(__tstate);
13318 if (PyErr_Occurred()) SWIG_fail;
13319 }
13320 {
13321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13322 }
13323 {
13324 if (temp1)
13325 delete arg1;
13326 }
13327 {
13328 if (temp2)
13329 delete arg2;
13330 }
13331 return resultobj;
13332 fail:
13333 {
13334 if (temp1)
13335 delete arg1;
13336 }
13337 {
13338 if (temp2)
13339 delete arg2;
13340 }
13341 return NULL;
13342}
13343
13344
13345static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13346 PyObject *resultobj;
13347 wxMimeTypesManager *result;
13348 char *kwnames[] = {
13349 NULL
13350 };
13351
13352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13353 {
13354 PyThreadState* __tstate = wxPyBeginAllowThreads();
13355 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13356
13357 wxPyEndAllowThreads(__tstate);
13358 if (PyErr_Occurred()) SWIG_fail;
13359 }
13360 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13361 return resultobj;
13362 fail:
13363 return NULL;
13364}
13365
13366
13367static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13368 PyObject *resultobj;
13369 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13370 int arg2 = (int) wxMAILCAP_ALL ;
13371 wxString const &arg3_defvalue = wxPyEmptyString ;
13372 wxString *arg3 = (wxString *) &arg3_defvalue ;
13373 bool temp3 = False ;
13374 PyObject * obj0 = 0 ;
13375 PyObject * obj1 = 0 ;
13376 PyObject * obj2 = 0 ;
13377 char *kwnames[] = {
13378 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13379 };
13380
13381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13384 if (obj1) {
13385 arg2 = (int) SWIG_AsInt(obj1);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 if (obj2) {
13389 {
13390 arg3 = wxString_in_helper(obj2);
13391 if (arg3 == NULL) SWIG_fail;
13392 temp3 = True;
13393 }
13394 }
13395 {
13396 PyThreadState* __tstate = wxPyBeginAllowThreads();
13397 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13398
13399 wxPyEndAllowThreads(__tstate);
13400 if (PyErr_Occurred()) SWIG_fail;
13401 }
13402 Py_INCREF(Py_None); resultobj = Py_None;
13403 {
13404 if (temp3)
13405 delete arg3;
13406 }
13407 return resultobj;
13408 fail:
13409 {
13410 if (temp3)
13411 delete arg3;
13412 }
13413 return NULL;
13414}
13415
13416
13417static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13418 PyObject *resultobj;
13419 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13420 PyObject * obj0 = 0 ;
13421 char *kwnames[] = {
13422 (char *) "self", NULL
13423 };
13424
13425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13428 {
13429 PyThreadState* __tstate = wxPyBeginAllowThreads();
13430 (arg1)->ClearData();
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_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13443 PyObject *resultobj;
13444 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13445 wxString *arg2 = 0 ;
13446 wxFileType *result;
13447 bool temp2 = False ;
13448 PyObject * obj0 = 0 ;
13449 PyObject * obj1 = 0 ;
13450 char *kwnames[] = {
13451 (char *) "self",(char *) "ext", NULL
13452 };
13453
13454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13457 {
13458 arg2 = wxString_in_helper(obj1);
13459 if (arg2 == NULL) SWIG_fail;
13460 temp2 = True;
13461 }
13462 {
13463 PyThreadState* __tstate = wxPyBeginAllowThreads();
13464 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13465
13466 wxPyEndAllowThreads(__tstate);
13467 if (PyErr_Occurred()) SWIG_fail;
13468 }
13469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13470 {
13471 if (temp2)
13472 delete arg2;
13473 }
13474 return resultobj;
13475 fail:
13476 {
13477 if (temp2)
13478 delete arg2;
13479 }
13480 return NULL;
13481}
13482
13483
13484static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13485 PyObject *resultobj;
13486 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13487 wxString *arg2 = 0 ;
13488 wxFileType *result;
13489 bool temp2 = False ;
13490 PyObject * obj0 = 0 ;
13491 PyObject * obj1 = 0 ;
13492 char *kwnames[] = {
13493 (char *) "self",(char *) "mimeType", NULL
13494 };
13495
13496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13499 {
13500 arg2 = wxString_in_helper(obj1);
13501 if (arg2 == NULL) SWIG_fail;
13502 temp2 = True;
13503 }
13504 {
13505 PyThreadState* __tstate = wxPyBeginAllowThreads();
13506 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13507
13508 wxPyEndAllowThreads(__tstate);
13509 if (PyErr_Occurred()) SWIG_fail;
13510 }
13511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13512 {
13513 if (temp2)
13514 delete arg2;
13515 }
13516 return resultobj;
13517 fail:
13518 {
13519 if (temp2)
13520 delete arg2;
13521 }
13522 return NULL;
13523}
13524
13525
13526static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13527 PyObject *resultobj;
13528 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13529 wxString *arg2 = 0 ;
13530 bool arg3 = (bool) False ;
13531 bool result;
13532 bool temp2 = False ;
13533 PyObject * obj0 = 0 ;
13534 PyObject * obj1 = 0 ;
13535 PyObject * obj2 = 0 ;
13536 char *kwnames[] = {
13537 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13538 };
13539
13540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13543 {
13544 arg2 = wxString_in_helper(obj1);
13545 if (arg2 == NULL) SWIG_fail;
13546 temp2 = True;
13547 }
13548 if (obj2) {
13549 arg3 = (bool) SWIG_AsBool(obj2);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 {
13553 PyThreadState* __tstate = wxPyBeginAllowThreads();
13554 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13555
13556 wxPyEndAllowThreads(__tstate);
13557 if (PyErr_Occurred()) SWIG_fail;
13558 }
13559 {
13560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13561 }
13562 {
13563 if (temp2)
13564 delete arg2;
13565 }
13566 return resultobj;
13567 fail:
13568 {
13569 if (temp2)
13570 delete arg2;
13571 }
13572 return NULL;
13573}
13574
13575
13576static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13577 PyObject *resultobj;
13578 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13579 wxString *arg2 = 0 ;
13580 bool result;
13581 bool temp2 = False ;
13582 PyObject * obj0 = 0 ;
13583 PyObject * obj1 = 0 ;
13584 char *kwnames[] = {
13585 (char *) "self",(char *) "filename", NULL
13586 };
13587
13588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13591 {
13592 arg2 = wxString_in_helper(obj1);
13593 if (arg2 == NULL) SWIG_fail;
13594 temp2 = True;
13595 }
13596 {
13597 PyThreadState* __tstate = wxPyBeginAllowThreads();
13598 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13599
13600 wxPyEndAllowThreads(__tstate);
13601 if (PyErr_Occurred()) SWIG_fail;
13602 }
13603 {
13604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13605 }
13606 {
13607 if (temp2)
13608 delete arg2;
13609 }
13610 return resultobj;
13611 fail:
13612 {
13613 if (temp2)
13614 delete arg2;
13615 }
13616 return NULL;
13617}
13618
13619
13620static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13621 PyObject *resultobj;
13622 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13623 PyObject *result;
13624 PyObject * obj0 = 0 ;
13625 char *kwnames[] = {
13626 (char *) "self", NULL
13627 };
13628
13629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13632 {
13633 PyThreadState* __tstate = wxPyBeginAllowThreads();
13634 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13635
13636 wxPyEndAllowThreads(__tstate);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 }
13639 resultobj = result;
13640 return resultobj;
13641 fail:
13642 return NULL;
13643}
13644
13645
13646static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13647 PyObject *resultobj;
13648 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13649 wxFileTypeInfo *arg2 = 0 ;
13650 PyObject * obj0 = 0 ;
13651 PyObject * obj1 = 0 ;
13652 char *kwnames[] = {
13653 (char *) "self",(char *) "ft", NULL
13654 };
13655
13656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13659 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13660 SWIG_POINTER_EXCEPTION | 0)) == -1)
13661 SWIG_fail;
13662 if (arg2 == NULL) {
13663 PyErr_SetString(PyExc_TypeError,"null reference");
13664 SWIG_fail;
13665 }
13666 {
13667 PyThreadState* __tstate = wxPyBeginAllowThreads();
13668 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13669
13670 wxPyEndAllowThreads(__tstate);
13671 if (PyErr_Occurred()) SWIG_fail;
13672 }
13673 Py_INCREF(Py_None); resultobj = Py_None;
13674 return resultobj;
13675 fail:
13676 return NULL;
13677}
13678
13679
13680static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj;
13682 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13683 wxFileTypeInfo *arg2 = 0 ;
13684 wxFileType *result;
13685 PyObject * obj0 = 0 ;
13686 PyObject * obj1 = 0 ;
13687 char *kwnames[] = {
13688 (char *) "self",(char *) "ftInfo", NULL
13689 };
13690
13691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13694 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13695 SWIG_POINTER_EXCEPTION | 0)) == -1)
13696 SWIG_fail;
13697 if (arg2 == NULL) {
13698 PyErr_SetString(PyExc_TypeError,"null reference");
13699 SWIG_fail;
13700 }
13701 {
13702 PyThreadState* __tstate = wxPyBeginAllowThreads();
13703 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13704
13705 wxPyEndAllowThreads(__tstate);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13709 return resultobj;
13710 fail:
13711 return NULL;
13712}
13713
13714
13715static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj;
13717 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13718 wxFileType *arg2 = (wxFileType *) 0 ;
13719 bool result;
13720 PyObject * obj0 = 0 ;
13721 PyObject * obj1 = 0 ;
13722 char *kwnames[] = {
13723 (char *) "self",(char *) "ft", NULL
13724 };
13725
13726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13729 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13731 {
13732 PyThreadState* __tstate = wxPyBeginAllowThreads();
13733 result = (bool)(arg1)->Unassociate(arg2);
13734
13735 wxPyEndAllowThreads(__tstate);
13736 if (PyErr_Occurred()) SWIG_fail;
13737 }
13738 {
13739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13740 }
13741 return resultobj;
13742 fail:
13743 return NULL;
13744}
13745
13746
13747static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13748 PyObject *resultobj;
13749 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13750 PyObject * obj0 = 0 ;
13751 char *kwnames[] = {
13752 (char *) "self", NULL
13753 };
13754
13755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13758 {
13759 PyThreadState* __tstate = wxPyBeginAllowThreads();
13760 delete arg1;
13761
13762 wxPyEndAllowThreads(__tstate);
13763 if (PyErr_Occurred()) SWIG_fail;
13764 }
13765 Py_INCREF(Py_None); resultobj = Py_None;
13766 return resultobj;
13767 fail:
13768 return NULL;
13769}
13770
13771
13772static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13773 PyObject *obj;
13774 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13775 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13776 Py_INCREF(obj);
13777 return Py_BuildValue((char *)"");
13778}
13779static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13780 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13781 return 1;
13782}
13783
13784
13785static PyObject *_wrap_ART_TOOLBAR_get() {
13786 PyObject *pyobj;
13787
13788 {
13789#if wxUSE_UNICODE
13790 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13791#else
13792 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13793#endif
13794 }
13795 return pyobj;
13796}
13797
13798
13799static int _wrap_ART_MENU_set(PyObject *_val) {
13800 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13801 return 1;
13802}
13803
13804
13805static PyObject *_wrap_ART_MENU_get() {
13806 PyObject *pyobj;
13807
13808 {
13809#if wxUSE_UNICODE
13810 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13811#else
13812 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13813#endif
13814 }
13815 return pyobj;
13816}
13817
13818
13819static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13820 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13821 return 1;
13822}
13823
13824
13825static PyObject *_wrap_ART_FRAME_ICON_get() {
13826 PyObject *pyobj;
13827
13828 {
13829#if wxUSE_UNICODE
13830 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13831#else
13832 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13833#endif
13834 }
13835 return pyobj;
13836}
13837
13838
13839static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13840 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13841 return 1;
13842}
13843
13844
13845static PyObject *_wrap_ART_CMN_DIALOG_get() {
13846 PyObject *pyobj;
13847
13848 {
13849#if wxUSE_UNICODE
13850 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13851#else
13852 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13853#endif
13854 }
13855 return pyobj;
13856}
13857
13858
13859static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13860 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13861 return 1;
13862}
13863
13864
13865static PyObject *_wrap_ART_HELP_BROWSER_get() {
13866 PyObject *pyobj;
13867
13868 {
13869#if wxUSE_UNICODE
13870 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13871#else
13872 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13873#endif
13874 }
13875 return pyobj;
13876}
13877
13878
13879static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13880 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13881 return 1;
13882}
13883
13884
13885static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13886 PyObject *pyobj;
13887
13888 {
13889#if wxUSE_UNICODE
13890 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13891#else
13892 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13893#endif
13894 }
13895 return pyobj;
13896}
13897
13898
13899static int _wrap_ART_BUTTON_set(PyObject *_val) {
13900 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
13901 return 1;
13902}
13903
13904
13905static PyObject *_wrap_ART_BUTTON_get() {
13906 PyObject *pyobj;
13907
13908 {
13909#if wxUSE_UNICODE
13910 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
13911#else
13912 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
13913#endif
13914 }
13915 return pyobj;
13916}
13917
13918
13919static int _wrap_ART_OTHER_set(PyObject *_val) {
13920 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13921 return 1;
13922}
13923
13924
13925static PyObject *_wrap_ART_OTHER_get() {
13926 PyObject *pyobj;
13927
13928 {
13929#if wxUSE_UNICODE
13930 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13931#else
13932 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13933#endif
13934 }
13935 return pyobj;
13936}
13937
13938
13939static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13940 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13941 return 1;
13942}
13943
13944
13945static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13946 PyObject *pyobj;
13947
13948 {
13949#if wxUSE_UNICODE
13950 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13951#else
13952 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13953#endif
13954 }
13955 return pyobj;
13956}
13957
13958
13959static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13960 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13961 return 1;
13962}
13963
13964
13965static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13966 PyObject *pyobj;
13967
13968 {
13969#if wxUSE_UNICODE
13970 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13971#else
13972 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13973#endif
13974 }
13975 return pyobj;
13976}
13977
13978
13979static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13980 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13981 return 1;
13982}
13983
13984
13985static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13986 PyObject *pyobj;
13987
13988 {
13989#if wxUSE_UNICODE
13990 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13991#else
13992 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13993#endif
13994 }
13995 return pyobj;
13996}
13997
13998
13999static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
14000 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
14001 return 1;
14002}
14003
14004
14005static PyObject *_wrap_ART_HELP_SETTINGS_get() {
14006 PyObject *pyobj;
14007
14008 {
14009#if wxUSE_UNICODE
14010 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14011#else
14012 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14013#endif
14014 }
14015 return pyobj;
14016}
14017
14018
14019static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
14020 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
14021 return 1;
14022}
14023
14024
14025static PyObject *_wrap_ART_HELP_BOOK_get() {
14026 PyObject *pyobj;
14027
14028 {
14029#if wxUSE_UNICODE
14030 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14031#else
14032 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14033#endif
14034 }
14035 return pyobj;
14036}
14037
14038
14039static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
14040 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
14041 return 1;
14042}
14043
14044
14045static PyObject *_wrap_ART_HELP_FOLDER_get() {
14046 PyObject *pyobj;
14047
14048 {
14049#if wxUSE_UNICODE
14050 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14051#else
14052 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14053#endif
14054 }
14055 return pyobj;
14056}
14057
14058
14059static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
14060 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
14061 return 1;
14062}
14063
14064
14065static PyObject *_wrap_ART_HELP_PAGE_get() {
14066 PyObject *pyobj;
14067
14068 {
14069#if wxUSE_UNICODE
14070 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14071#else
14072 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14073#endif
14074 }
14075 return pyobj;
14076}
14077
14078
14079static int _wrap_ART_GO_BACK_set(PyObject *_val) {
14080 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
14081 return 1;
14082}
14083
14084
14085static PyObject *_wrap_ART_GO_BACK_get() {
14086 PyObject *pyobj;
14087
14088 {
14089#if wxUSE_UNICODE
14090 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14091#else
14092 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14093#endif
14094 }
14095 return pyobj;
14096}
14097
14098
14099static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
14100 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
14101 return 1;
14102}
14103
14104
14105static PyObject *_wrap_ART_GO_FORWARD_get() {
14106 PyObject *pyobj;
14107
14108 {
14109#if wxUSE_UNICODE
14110 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14111#else
14112 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14113#endif
14114 }
14115 return pyobj;
14116}
14117
14118
14119static int _wrap_ART_GO_UP_set(PyObject *_val) {
14120 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14121 return 1;
14122}
14123
14124
14125static PyObject *_wrap_ART_GO_UP_get() {
14126 PyObject *pyobj;
14127
14128 {
14129#if wxUSE_UNICODE
14130 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14131#else
14132 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14133#endif
14134 }
14135 return pyobj;
14136}
14137
14138
14139static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
14140 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14141 return 1;
14142}
14143
14144
14145static PyObject *_wrap_ART_GO_DOWN_get() {
14146 PyObject *pyobj;
14147
14148 {
14149#if wxUSE_UNICODE
14150 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14151#else
14152 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14153#endif
14154 }
14155 return pyobj;
14156}
14157
14158
14159static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
14160 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14161 return 1;
14162}
14163
14164
14165static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14166 PyObject *pyobj;
14167
14168 {
14169#if wxUSE_UNICODE
14170 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14171#else
14172 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14173#endif
14174 }
14175 return pyobj;
14176}
14177
14178
14179static int _wrap_ART_GO_HOME_set(PyObject *_val) {
14180 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14181 return 1;
14182}
14183
14184
14185static PyObject *_wrap_ART_GO_HOME_get() {
14186 PyObject *pyobj;
14187
14188 {
14189#if wxUSE_UNICODE
14190 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14191#else
14192 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14193#endif
14194 }
14195 return pyobj;
14196}
14197
14198
14199static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
14200 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14201 return 1;
14202}
14203
14204
14205static PyObject *_wrap_ART_FILE_OPEN_get() {
14206 PyObject *pyobj;
14207
14208 {
14209#if wxUSE_UNICODE
14210 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14211#else
14212 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14213#endif
14214 }
14215 return pyobj;
14216}
14217
14218
14219static int _wrap_ART_PRINT_set(PyObject *_val) {
14220 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14221 return 1;
14222}
14223
14224
14225static PyObject *_wrap_ART_PRINT_get() {
14226 PyObject *pyobj;
14227
14228 {
14229#if wxUSE_UNICODE
14230 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14231#else
14232 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14233#endif
14234 }
14235 return pyobj;
14236}
14237
14238
14239static int _wrap_ART_HELP_set(PyObject *_val) {
14240 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14241 return 1;
14242}
14243
14244
14245static PyObject *_wrap_ART_HELP_get() {
14246 PyObject *pyobj;
14247
14248 {
14249#if wxUSE_UNICODE
14250 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14251#else
14252 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14253#endif
14254 }
14255 return pyobj;
14256}
14257
14258
14259static int _wrap_ART_TIP_set(PyObject *_val) {
14260 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14261 return 1;
14262}
14263
14264
14265static PyObject *_wrap_ART_TIP_get() {
14266 PyObject *pyobj;
14267
14268 {
14269#if wxUSE_UNICODE
14270 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14271#else
14272 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14273#endif
14274 }
14275 return pyobj;
14276}
14277
14278
14279static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14280 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14281 return 1;
14282}
14283
14284
14285static PyObject *_wrap_ART_REPORT_VIEW_get() {
14286 PyObject *pyobj;
14287
14288 {
14289#if wxUSE_UNICODE
14290 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14291#else
14292 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14293#endif
14294 }
14295 return pyobj;
14296}
14297
14298
14299static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14300 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14301 return 1;
14302}
14303
14304
14305static PyObject *_wrap_ART_LIST_VIEW_get() {
14306 PyObject *pyobj;
14307
14308 {
14309#if wxUSE_UNICODE
14310 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14311#else
14312 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14313#endif
14314 }
14315 return pyobj;
14316}
14317
14318
14319static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14320 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14321 return 1;
14322}
14323
14324
14325static PyObject *_wrap_ART_NEW_DIR_get() {
14326 PyObject *pyobj;
14327
14328 {
14329#if wxUSE_UNICODE
14330 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14331#else
14332 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14333#endif
14334 }
14335 return pyobj;
14336}
14337
14338
14339static int _wrap_ART_FOLDER_set(PyObject *_val) {
14340 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14341 return 1;
14342}
14343
14344
14345static PyObject *_wrap_ART_FOLDER_get() {
14346 PyObject *pyobj;
14347
14348 {
14349#if wxUSE_UNICODE
14350 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14351#else
14352 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14353#endif
14354 }
14355 return pyobj;
14356}
14357
14358
14359static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14360 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14361 return 1;
14362}
14363
14364
14365static PyObject *_wrap_ART_GO_DIR_UP_get() {
14366 PyObject *pyobj;
14367
14368 {
14369#if wxUSE_UNICODE
14370 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14371#else
14372 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14373#endif
14374 }
14375 return pyobj;
14376}
14377
14378
14379static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14380 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14381 return 1;
14382}
14383
14384
14385static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14386 PyObject *pyobj;
14387
14388 {
14389#if wxUSE_UNICODE
14390 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14391#else
14392 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14393#endif
14394 }
14395 return pyobj;
14396}
14397
14398
14399static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14400 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14401 return 1;
14402}
14403
14404
14405static PyObject *_wrap_ART_NORMAL_FILE_get() {
14406 PyObject *pyobj;
14407
14408 {
14409#if wxUSE_UNICODE
14410 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14411#else
14412 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14413#endif
14414 }
14415 return pyobj;
14416}
14417
14418
14419static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14420 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14421 return 1;
14422}
14423
14424
14425static PyObject *_wrap_ART_TICK_MARK_get() {
14426 PyObject *pyobj;
14427
14428 {
14429#if wxUSE_UNICODE
14430 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14431#else
14432 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14433#endif
14434 }
14435 return pyobj;
14436}
14437
14438
14439static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14440 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14441 return 1;
14442}
14443
14444
14445static PyObject *_wrap_ART_CROSS_MARK_get() {
14446 PyObject *pyobj;
14447
14448 {
14449#if wxUSE_UNICODE
14450 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14451#else
14452 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14453#endif
14454 }
14455 return pyobj;
14456}
14457
14458
14459static int _wrap_ART_ERROR_set(PyObject *_val) {
14460 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14461 return 1;
14462}
14463
14464
14465static PyObject *_wrap_ART_ERROR_get() {
14466 PyObject *pyobj;
14467
14468 {
14469#if wxUSE_UNICODE
14470 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14471#else
14472 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14473#endif
14474 }
14475 return pyobj;
14476}
14477
14478
14479static int _wrap_ART_QUESTION_set(PyObject *_val) {
14480 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14481 return 1;
14482}
14483
14484
14485static PyObject *_wrap_ART_QUESTION_get() {
14486 PyObject *pyobj;
14487
14488 {
14489#if wxUSE_UNICODE
14490 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14491#else
14492 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14493#endif
14494 }
14495 return pyobj;
14496}
14497
14498
14499static int _wrap_ART_WARNING_set(PyObject *_val) {
14500 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14501 return 1;
14502}
14503
14504
14505static PyObject *_wrap_ART_WARNING_get() {
14506 PyObject *pyobj;
14507
14508 {
14509#if wxUSE_UNICODE
14510 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14511#else
14512 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14513#endif
14514 }
14515 return pyobj;
14516}
14517
14518
14519static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14520 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14521 return 1;
14522}
14523
14524
14525static PyObject *_wrap_ART_INFORMATION_get() {
14526 PyObject *pyobj;
14527
14528 {
14529#if wxUSE_UNICODE
14530 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14531#else
14532 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14533#endif
14534 }
14535 return pyobj;
14536}
14537
14538
14539static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14540 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14541 return 1;
14542}
14543
14544
14545static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14546 PyObject *pyobj;
14547
14548 {
14549#if wxUSE_UNICODE
14550 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14551#else
14552 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14553#endif
14554 }
14555 return pyobj;
14556}
14557
14558
14559static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14560 PyObject *resultobj;
14561 wxPyArtProvider *result;
14562 char *kwnames[] = {
14563 NULL
14564 };
14565
14566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14567 {
14568 if (!wxPyCheckForApp()) SWIG_fail;
14569 PyThreadState* __tstate = wxPyBeginAllowThreads();
14570 result = (wxPyArtProvider *)new wxPyArtProvider();
14571
14572 wxPyEndAllowThreads(__tstate);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
14575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14576 return resultobj;
14577 fail:
14578 return NULL;
14579}
14580
14581
14582static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14583 PyObject *resultobj;
14584 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14585 PyObject *arg2 = (PyObject *) 0 ;
14586 PyObject *arg3 = (PyObject *) 0 ;
14587 PyObject * obj0 = 0 ;
14588 PyObject * obj1 = 0 ;
14589 PyObject * obj2 = 0 ;
14590 char *kwnames[] = {
14591 (char *) "self",(char *) "self",(char *) "_class", NULL
14592 };
14593
14594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14597 arg2 = obj1;
14598 arg3 = obj2;
14599 {
14600 PyThreadState* __tstate = wxPyBeginAllowThreads();
14601 (arg1)->_setCallbackInfo(arg2,arg3);
14602
14603 wxPyEndAllowThreads(__tstate);
14604 if (PyErr_Occurred()) SWIG_fail;
14605 }
14606 Py_INCREF(Py_None); resultobj = Py_None;
14607 return resultobj;
14608 fail:
14609 return NULL;
14610}
14611
14612
14613static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14614 PyObject *resultobj;
14615 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14616 PyObject * obj0 = 0 ;
14617 char *kwnames[] = {
14618 (char *) "provider", NULL
14619 };
14620
14621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14624 {
14625 PyThreadState* __tstate = wxPyBeginAllowThreads();
14626 wxPyArtProvider::PushProvider(arg1);
14627
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 Py_INCREF(Py_None); resultobj = Py_None;
14632 return resultobj;
14633 fail:
14634 return NULL;
14635}
14636
14637
14638static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14639 PyObject *resultobj;
14640 bool result;
14641 char *kwnames[] = {
14642 NULL
14643 };
14644
14645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14646 {
14647 PyThreadState* __tstate = wxPyBeginAllowThreads();
14648 result = (bool)wxPyArtProvider::PopProvider();
14649
14650 wxPyEndAllowThreads(__tstate);
14651 if (PyErr_Occurred()) SWIG_fail;
14652 }
14653 {
14654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14655 }
14656 return resultobj;
14657 fail:
14658 return NULL;
14659}
14660
14661
14662static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14663 PyObject *resultobj;
14664 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14665 bool result;
14666 PyObject * obj0 = 0 ;
14667 char *kwnames[] = {
14668 (char *) "provider", NULL
14669 };
14670
14671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14674 {
14675 PyThreadState* __tstate = wxPyBeginAllowThreads();
14676 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14677
14678 wxPyEndAllowThreads(__tstate);
14679 if (PyErr_Occurred()) SWIG_fail;
14680 }
14681 {
14682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14683 }
14684 return resultobj;
14685 fail:
14686 return NULL;
14687}
14688
14689
14690static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14691 PyObject *resultobj;
14692 wxString *arg1 = 0 ;
14693 wxString const &arg2_defvalue = wxPyART_OTHER ;
14694 wxString *arg2 = (wxString *) &arg2_defvalue ;
14695 wxSize const &arg3_defvalue = wxDefaultSize ;
14696 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14697 wxBitmap result;
14698 bool temp1 = False ;
14699 bool temp2 = False ;
14700 wxSize temp3 ;
14701 PyObject * obj0 = 0 ;
14702 PyObject * obj1 = 0 ;
14703 PyObject * obj2 = 0 ;
14704 char *kwnames[] = {
14705 (char *) "id",(char *) "client",(char *) "size", NULL
14706 };
14707
14708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14709 {
14710 arg1 = wxString_in_helper(obj0);
14711 if (arg1 == NULL) SWIG_fail;
14712 temp1 = True;
14713 }
14714 if (obj1) {
14715 {
14716 arg2 = wxString_in_helper(obj1);
14717 if (arg2 == NULL) SWIG_fail;
14718 temp2 = True;
14719 }
14720 }
14721 if (obj2) {
14722 {
14723 arg3 = &temp3;
14724 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14725 }
14726 }
14727 {
14728 if (!wxPyCheckForApp()) SWIG_fail;
14729 PyThreadState* __tstate = wxPyBeginAllowThreads();
14730 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14731
14732 wxPyEndAllowThreads(__tstate);
14733 if (PyErr_Occurred()) SWIG_fail;
14734 }
14735 {
14736 wxBitmap * resultptr;
14737 resultptr = new wxBitmap((wxBitmap &) result);
14738 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14739 }
14740 {
14741 if (temp1)
14742 delete arg1;
14743 }
14744 {
14745 if (temp2)
14746 delete arg2;
14747 }
14748 return resultobj;
14749 fail:
14750 {
14751 if (temp1)
14752 delete arg1;
14753 }
14754 {
14755 if (temp2)
14756 delete arg2;
14757 }
14758 return NULL;
14759}
14760
14761
14762static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14763 PyObject *resultobj;
14764 wxString *arg1 = 0 ;
14765 wxString const &arg2_defvalue = wxPyART_OTHER ;
14766 wxString *arg2 = (wxString *) &arg2_defvalue ;
14767 wxSize const &arg3_defvalue = wxDefaultSize ;
14768 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14769 wxIcon result;
14770 bool temp1 = False ;
14771 bool temp2 = False ;
14772 wxSize temp3 ;
14773 PyObject * obj0 = 0 ;
14774 PyObject * obj1 = 0 ;
14775 PyObject * obj2 = 0 ;
14776 char *kwnames[] = {
14777 (char *) "id",(char *) "client",(char *) "size", NULL
14778 };
14779
14780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14781 {
14782 arg1 = wxString_in_helper(obj0);
14783 if (arg1 == NULL) SWIG_fail;
14784 temp1 = True;
14785 }
14786 if (obj1) {
14787 {
14788 arg2 = wxString_in_helper(obj1);
14789 if (arg2 == NULL) SWIG_fail;
14790 temp2 = True;
14791 }
14792 }
14793 if (obj2) {
14794 {
14795 arg3 = &temp3;
14796 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14797 }
14798 }
14799 {
14800 if (!wxPyCheckForApp()) SWIG_fail;
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14803
14804 wxPyEndAllowThreads(__tstate);
14805 if (PyErr_Occurred()) SWIG_fail;
14806 }
14807 {
14808 wxIcon * resultptr;
14809 resultptr = new wxIcon((wxIcon &) result);
14810 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14811 }
14812 {
14813 if (temp1)
14814 delete arg1;
14815 }
14816 {
14817 if (temp2)
14818 delete arg2;
14819 }
14820 return resultobj;
14821 fail:
14822 {
14823 if (temp1)
14824 delete arg1;
14825 }
14826 {
14827 if (temp2)
14828 delete arg2;
14829 }
14830 return NULL;
14831}
14832
14833
14834static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14835 PyObject *resultobj;
14836 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14837 PyObject * obj0 = 0 ;
14838 char *kwnames[] = {
14839 (char *) "self", NULL
14840 };
14841
14842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14845 {
14846 PyThreadState* __tstate = wxPyBeginAllowThreads();
14847 wxPyArtProvider_Destroy(arg1);
14848
14849 wxPyEndAllowThreads(__tstate);
14850 if (PyErr_Occurred()) SWIG_fail;
14851 }
14852 Py_INCREF(Py_None); resultobj = Py_None;
14853 return resultobj;
14854 fail:
14855 return NULL;
14856}
14857
14858
14859static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14860 PyObject *obj;
14861 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14862 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14863 Py_INCREF(obj);
14864 return Py_BuildValue((char *)"");
14865}
14866static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14867 PyObject *resultobj;
14868 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14869 PyObject * obj0 = 0 ;
14870 char *kwnames[] = {
14871 (char *) "self", NULL
14872 };
14873
14874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14877 {
14878 PyThreadState* __tstate = wxPyBeginAllowThreads();
14879 delete arg1;
14880
14881 wxPyEndAllowThreads(__tstate);
14882 if (PyErr_Occurred()) SWIG_fail;
14883 }
14884 Py_INCREF(Py_None); resultobj = Py_None;
14885 return resultobj;
14886 fail:
14887 return NULL;
14888}
14889
14890
14891static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14892 PyObject *resultobj;
14893 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14894 wxConfigBase *result;
14895 PyObject * obj0 = 0 ;
14896 char *kwnames[] = {
14897 (char *) "config", NULL
14898 };
14899
14900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14903 {
14904 PyThreadState* __tstate = wxPyBeginAllowThreads();
14905 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14906
14907 wxPyEndAllowThreads(__tstate);
14908 if (PyErr_Occurred()) SWIG_fail;
14909 }
14910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14911 return resultobj;
14912 fail:
14913 return NULL;
14914}
14915
14916
14917static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14918 PyObject *resultobj;
14919 bool arg1 = (bool) True ;
14920 wxConfigBase *result;
14921 PyObject * obj0 = 0 ;
14922 char *kwnames[] = {
14923 (char *) "createOnDemand", NULL
14924 };
14925
14926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14927 if (obj0) {
14928 arg1 = (bool) SWIG_AsBool(obj0);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 {
14932 PyThreadState* __tstate = wxPyBeginAllowThreads();
14933 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14934
14935 wxPyEndAllowThreads(__tstate);
14936 if (PyErr_Occurred()) SWIG_fail;
14937 }
14938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14939 return resultobj;
14940 fail:
14941 return NULL;
14942}
14943
14944
14945static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14946 PyObject *resultobj;
14947 wxConfigBase *result;
14948 char *kwnames[] = {
14949 NULL
14950 };
14951
14952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14953 {
14954 PyThreadState* __tstate = wxPyBeginAllowThreads();
14955 result = (wxConfigBase *)wxConfigBase::Create();
14956
14957 wxPyEndAllowThreads(__tstate);
14958 if (PyErr_Occurred()) SWIG_fail;
14959 }
14960 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14961 return resultobj;
14962 fail:
14963 return NULL;
14964}
14965
14966
14967static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14968 PyObject *resultobj;
14969 char *kwnames[] = {
14970 NULL
14971 };
14972
14973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14974 {
14975 PyThreadState* __tstate = wxPyBeginAllowThreads();
14976 wxConfigBase::DontCreateOnDemand();
14977
14978 wxPyEndAllowThreads(__tstate);
14979 if (PyErr_Occurred()) SWIG_fail;
14980 }
14981 Py_INCREF(Py_None); resultobj = Py_None;
14982 return resultobj;
14983 fail:
14984 return NULL;
14985}
14986
14987
14988static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14989 PyObject *resultobj;
14990 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14991 wxString *arg2 = 0 ;
14992 bool temp2 = False ;
14993 PyObject * obj0 = 0 ;
14994 PyObject * obj1 = 0 ;
14995 char *kwnames[] = {
14996 (char *) "self",(char *) "path", NULL
14997 };
14998
14999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
15000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15002 {
15003 arg2 = wxString_in_helper(obj1);
15004 if (arg2 == NULL) SWIG_fail;
15005 temp2 = True;
15006 }
15007 {
15008 PyThreadState* __tstate = wxPyBeginAllowThreads();
15009 (arg1)->SetPath((wxString const &)*arg2);
15010
15011 wxPyEndAllowThreads(__tstate);
15012 if (PyErr_Occurred()) SWIG_fail;
15013 }
15014 Py_INCREF(Py_None); resultobj = Py_None;
15015 {
15016 if (temp2)
15017 delete arg2;
15018 }
15019 return resultobj;
15020 fail:
15021 {
15022 if (temp2)
15023 delete arg2;
15024 }
15025 return NULL;
15026}
15027
15028
15029static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
15030 PyObject *resultobj;
15031 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15032 wxString *result;
15033 PyObject * obj0 = 0 ;
15034 char *kwnames[] = {
15035 (char *) "self", NULL
15036 };
15037
15038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
15039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15041 {
15042 PyThreadState* __tstate = wxPyBeginAllowThreads();
15043 {
15044 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
15045 result = (wxString *) &_result_ref;
15046 }
15047
15048 wxPyEndAllowThreads(__tstate);
15049 if (PyErr_Occurred()) SWIG_fail;
15050 }
15051 {
15052#if wxUSE_UNICODE
15053 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15054#else
15055 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15056#endif
15057 }
15058 return resultobj;
15059 fail:
15060 return NULL;
15061}
15062
15063
15064static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15065 PyObject *resultobj;
15066 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15067 PyObject *result;
15068 PyObject * obj0 = 0 ;
15069 char *kwnames[] = {
15070 (char *) "self", NULL
15071 };
15072
15073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
15074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15076 {
15077 PyThreadState* __tstate = wxPyBeginAllowThreads();
15078 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
15079
15080 wxPyEndAllowThreads(__tstate);
15081 if (PyErr_Occurred()) SWIG_fail;
15082 }
15083 resultobj = result;
15084 return resultobj;
15085 fail:
15086 return NULL;
15087}
15088
15089
15090static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15091 PyObject *resultobj;
15092 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15093 long arg2 ;
15094 PyObject *result;
15095 PyObject * obj0 = 0 ;
15096 PyObject * obj1 = 0 ;
15097 char *kwnames[] = {
15098 (char *) "self",(char *) "index", NULL
15099 };
15100
15101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
15102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15104 arg2 = (long) SWIG_AsLong(obj1);
15105 if (PyErr_Occurred()) SWIG_fail;
15106 {
15107 PyThreadState* __tstate = wxPyBeginAllowThreads();
15108 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15109
15110 wxPyEndAllowThreads(__tstate);
15111 if (PyErr_Occurred()) SWIG_fail;
15112 }
15113 resultobj = result;
15114 return resultobj;
15115 fail:
15116 return NULL;
15117}
15118
15119
15120static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15121 PyObject *resultobj;
15122 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15123 PyObject *result;
15124 PyObject * obj0 = 0 ;
15125 char *kwnames[] = {
15126 (char *) "self", NULL
15127 };
15128
15129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15132 {
15133 PyThreadState* __tstate = wxPyBeginAllowThreads();
15134 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15135
15136 wxPyEndAllowThreads(__tstate);
15137 if (PyErr_Occurred()) SWIG_fail;
15138 }
15139 resultobj = result;
15140 return resultobj;
15141 fail:
15142 return NULL;
15143}
15144
15145
15146static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15147 PyObject *resultobj;
15148 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15149 long arg2 ;
15150 PyObject *result;
15151 PyObject * obj0 = 0 ;
15152 PyObject * obj1 = 0 ;
15153 char *kwnames[] = {
15154 (char *) "self",(char *) "index", NULL
15155 };
15156
15157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15160 arg2 = (long) SWIG_AsLong(obj1);
15161 if (PyErr_Occurred()) SWIG_fail;
15162 {
15163 PyThreadState* __tstate = wxPyBeginAllowThreads();
15164 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15165
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 resultobj = result;
15170 return resultobj;
15171 fail:
15172 return NULL;
15173}
15174
15175
15176static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
15177 PyObject *resultobj;
15178 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15179 bool arg2 = (bool) False ;
15180 size_t result;
15181 PyObject * obj0 = 0 ;
15182 PyObject * obj1 = 0 ;
15183 char *kwnames[] = {
15184 (char *) "self",(char *) "recursive", NULL
15185 };
15186
15187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15190 if (obj1) {
15191 arg2 = (bool) SWIG_AsBool(obj1);
15192 if (PyErr_Occurred()) SWIG_fail;
15193 }
15194 {
15195 PyThreadState* __tstate = wxPyBeginAllowThreads();
15196 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15197
15198 wxPyEndAllowThreads(__tstate);
15199 if (PyErr_Occurred()) SWIG_fail;
15200 }
15201 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15202 return resultobj;
15203 fail:
15204 return NULL;
15205}
15206
15207
15208static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
15209 PyObject *resultobj;
15210 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15211 bool arg2 = (bool) False ;
15212 size_t result;
15213 PyObject * obj0 = 0 ;
15214 PyObject * obj1 = 0 ;
15215 char *kwnames[] = {
15216 (char *) "self",(char *) "recursive", NULL
15217 };
15218
15219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15222 if (obj1) {
15223 arg2 = (bool) SWIG_AsBool(obj1);
15224 if (PyErr_Occurred()) SWIG_fail;
15225 }
15226 {
15227 PyThreadState* __tstate = wxPyBeginAllowThreads();
15228 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15229
15230 wxPyEndAllowThreads(__tstate);
15231 if (PyErr_Occurred()) SWIG_fail;
15232 }
15233 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15234 return resultobj;
15235 fail:
15236 return NULL;
15237}
15238
15239
15240static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15241 PyObject *resultobj;
15242 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15243 wxString *arg2 = 0 ;
15244 bool result;
15245 bool temp2 = False ;
15246 PyObject * obj0 = 0 ;
15247 PyObject * obj1 = 0 ;
15248 char *kwnames[] = {
15249 (char *) "self",(char *) "name", NULL
15250 };
15251
15252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15255 {
15256 arg2 = wxString_in_helper(obj1);
15257 if (arg2 == NULL) SWIG_fail;
15258 temp2 = True;
15259 }
15260 {
15261 PyThreadState* __tstate = wxPyBeginAllowThreads();
15262 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15263
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 {
15268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15269 }
15270 {
15271 if (temp2)
15272 delete arg2;
15273 }
15274 return resultobj;
15275 fail:
15276 {
15277 if (temp2)
15278 delete arg2;
15279 }
15280 return NULL;
15281}
15282
15283
15284static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15285 PyObject *resultobj;
15286 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15287 wxString *arg2 = 0 ;
15288 bool result;
15289 bool temp2 = False ;
15290 PyObject * obj0 = 0 ;
15291 PyObject * obj1 = 0 ;
15292 char *kwnames[] = {
15293 (char *) "self",(char *) "name", NULL
15294 };
15295
15296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15299 {
15300 arg2 = wxString_in_helper(obj1);
15301 if (arg2 == NULL) SWIG_fail;
15302 temp2 = True;
15303 }
15304 {
15305 PyThreadState* __tstate = wxPyBeginAllowThreads();
15306 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15307
15308 wxPyEndAllowThreads(__tstate);
15309 if (PyErr_Occurred()) SWIG_fail;
15310 }
15311 {
15312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15313 }
15314 {
15315 if (temp2)
15316 delete arg2;
15317 }
15318 return resultobj;
15319 fail:
15320 {
15321 if (temp2)
15322 delete arg2;
15323 }
15324 return NULL;
15325}
15326
15327
15328static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15329 PyObject *resultobj;
15330 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15331 wxString *arg2 = 0 ;
15332 bool result;
15333 bool temp2 = False ;
15334 PyObject * obj0 = 0 ;
15335 PyObject * obj1 = 0 ;
15336 char *kwnames[] = {
15337 (char *) "self",(char *) "name", NULL
15338 };
15339
15340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15343 {
15344 arg2 = wxString_in_helper(obj1);
15345 if (arg2 == NULL) SWIG_fail;
15346 temp2 = True;
15347 }
15348 {
15349 PyThreadState* __tstate = wxPyBeginAllowThreads();
15350 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15351
15352 wxPyEndAllowThreads(__tstate);
15353 if (PyErr_Occurred()) SWIG_fail;
15354 }
15355 {
15356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15357 }
15358 {
15359 if (temp2)
15360 delete arg2;
15361 }
15362 return resultobj;
15363 fail:
15364 {
15365 if (temp2)
15366 delete arg2;
15367 }
15368 return NULL;
15369}
15370
15371
15372static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15373 PyObject *resultobj;
15374 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15375 wxString *arg2 = 0 ;
15376 int result;
15377 bool temp2 = False ;
15378 PyObject * obj0 = 0 ;
15379 PyObject * obj1 = 0 ;
15380 char *kwnames[] = {
15381 (char *) "self",(char *) "name", NULL
15382 };
15383
15384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15387 {
15388 arg2 = wxString_in_helper(obj1);
15389 if (arg2 == NULL) SWIG_fail;
15390 temp2 = True;
15391 }
15392 {
15393 PyThreadState* __tstate = wxPyBeginAllowThreads();
15394 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15395
15396 wxPyEndAllowThreads(__tstate);
15397 if (PyErr_Occurred()) SWIG_fail;
15398 }
15399 resultobj = SWIG_FromInt((int)result);
15400 {
15401 if (temp2)
15402 delete arg2;
15403 }
15404 return resultobj;
15405 fail:
15406 {
15407 if (temp2)
15408 delete arg2;
15409 }
15410 return NULL;
15411}
15412
15413
15414static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15415 PyObject *resultobj;
15416 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15417 wxString *arg2 = 0 ;
15418 wxString const &arg3_defvalue = wxPyEmptyString ;
15419 wxString *arg3 = (wxString *) &arg3_defvalue ;
15420 wxString result;
15421 bool temp2 = False ;
15422 bool temp3 = False ;
15423 PyObject * obj0 = 0 ;
15424 PyObject * obj1 = 0 ;
15425 PyObject * obj2 = 0 ;
15426 char *kwnames[] = {
15427 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15428 };
15429
15430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15433 {
15434 arg2 = wxString_in_helper(obj1);
15435 if (arg2 == NULL) SWIG_fail;
15436 temp2 = True;
15437 }
15438 if (obj2) {
15439 {
15440 arg3 = wxString_in_helper(obj2);
15441 if (arg3 == NULL) SWIG_fail;
15442 temp3 = True;
15443 }
15444 }
15445 {
15446 PyThreadState* __tstate = wxPyBeginAllowThreads();
15447 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15448
15449 wxPyEndAllowThreads(__tstate);
15450 if (PyErr_Occurred()) SWIG_fail;
15451 }
15452 {
15453#if wxUSE_UNICODE
15454 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15455#else
15456 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15457#endif
15458 }
15459 {
15460 if (temp2)
15461 delete arg2;
15462 }
15463 {
15464 if (temp3)
15465 delete arg3;
15466 }
15467 return resultobj;
15468 fail:
15469 {
15470 if (temp2)
15471 delete arg2;
15472 }
15473 {
15474 if (temp3)
15475 delete arg3;
15476 }
15477 return NULL;
15478}
15479
15480
15481static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15482 PyObject *resultobj;
15483 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15484 wxString *arg2 = 0 ;
15485 long arg3 = (long) 0 ;
15486 long result;
15487 bool temp2 = False ;
15488 PyObject * obj0 = 0 ;
15489 PyObject * obj1 = 0 ;
15490 PyObject * obj2 = 0 ;
15491 char *kwnames[] = {
15492 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15493 };
15494
15495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15498 {
15499 arg2 = wxString_in_helper(obj1);
15500 if (arg2 == NULL) SWIG_fail;
15501 temp2 = True;
15502 }
15503 if (obj2) {
15504 arg3 = (long) SWIG_AsLong(obj2);
15505 if (PyErr_Occurred()) SWIG_fail;
15506 }
15507 {
15508 PyThreadState* __tstate = wxPyBeginAllowThreads();
15509 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15510
15511 wxPyEndAllowThreads(__tstate);
15512 if (PyErr_Occurred()) SWIG_fail;
15513 }
15514 resultobj = SWIG_FromLong((long)result);
15515 {
15516 if (temp2)
15517 delete arg2;
15518 }
15519 return resultobj;
15520 fail:
15521 {
15522 if (temp2)
15523 delete arg2;
15524 }
15525 return NULL;
15526}
15527
15528
15529static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15530 PyObject *resultobj;
15531 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15532 wxString *arg2 = 0 ;
15533 double arg3 = (double) 0.0 ;
15534 double result;
15535 bool temp2 = False ;
15536 PyObject * obj0 = 0 ;
15537 PyObject * obj1 = 0 ;
15538 PyObject * obj2 = 0 ;
15539 char *kwnames[] = {
15540 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15541 };
15542
15543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15546 {
15547 arg2 = wxString_in_helper(obj1);
15548 if (arg2 == NULL) SWIG_fail;
15549 temp2 = True;
15550 }
15551 if (obj2) {
15552 arg3 = (double) SWIG_AsDouble(obj2);
15553 if (PyErr_Occurred()) SWIG_fail;
15554 }
15555 {
15556 PyThreadState* __tstate = wxPyBeginAllowThreads();
15557 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15558
15559 wxPyEndAllowThreads(__tstate);
15560 if (PyErr_Occurred()) SWIG_fail;
15561 }
15562 resultobj = SWIG_FromDouble((double)result);
15563 {
15564 if (temp2)
15565 delete arg2;
15566 }
15567 return resultobj;
15568 fail:
15569 {
15570 if (temp2)
15571 delete arg2;
15572 }
15573 return NULL;
15574}
15575
15576
15577static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15578 PyObject *resultobj;
15579 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15580 wxString *arg2 = 0 ;
15581 bool arg3 = (bool) False ;
15582 bool result;
15583 bool temp2 = False ;
15584 PyObject * obj0 = 0 ;
15585 PyObject * obj1 = 0 ;
15586 PyObject * obj2 = 0 ;
15587 char *kwnames[] = {
15588 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15589 };
15590
15591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15594 {
15595 arg2 = wxString_in_helper(obj1);
15596 if (arg2 == NULL) SWIG_fail;
15597 temp2 = True;
15598 }
15599 if (obj2) {
15600 arg3 = (bool) SWIG_AsBool(obj2);
15601 if (PyErr_Occurred()) SWIG_fail;
15602 }
15603 {
15604 PyThreadState* __tstate = wxPyBeginAllowThreads();
15605 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15606
15607 wxPyEndAllowThreads(__tstate);
15608 if (PyErr_Occurred()) SWIG_fail;
15609 }
15610 {
15611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15612 }
15613 {
15614 if (temp2)
15615 delete arg2;
15616 }
15617 return resultobj;
15618 fail:
15619 {
15620 if (temp2)
15621 delete arg2;
15622 }
15623 return NULL;
15624}
15625
15626
15627static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15628 PyObject *resultobj;
15629 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15630 wxString *arg2 = 0 ;
15631 wxString *arg3 = 0 ;
15632 bool result;
15633 bool temp2 = False ;
15634 bool temp3 = False ;
15635 PyObject * obj0 = 0 ;
15636 PyObject * obj1 = 0 ;
15637 PyObject * obj2 = 0 ;
15638 char *kwnames[] = {
15639 (char *) "self",(char *) "key",(char *) "value", NULL
15640 };
15641
15642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15645 {
15646 arg2 = wxString_in_helper(obj1);
15647 if (arg2 == NULL) SWIG_fail;
15648 temp2 = True;
15649 }
15650 {
15651 arg3 = wxString_in_helper(obj2);
15652 if (arg3 == NULL) SWIG_fail;
15653 temp3 = True;
15654 }
15655 {
15656 PyThreadState* __tstate = wxPyBeginAllowThreads();
15657 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15658
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 {
15663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15664 }
15665 {
15666 if (temp2)
15667 delete arg2;
15668 }
15669 {
15670 if (temp3)
15671 delete arg3;
15672 }
15673 return resultobj;
15674 fail:
15675 {
15676 if (temp2)
15677 delete arg2;
15678 }
15679 {
15680 if (temp3)
15681 delete arg3;
15682 }
15683 return NULL;
15684}
15685
15686
15687static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15688 PyObject *resultobj;
15689 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15690 wxString *arg2 = 0 ;
15691 long arg3 ;
15692 bool result;
15693 bool temp2 = False ;
15694 PyObject * obj0 = 0 ;
15695 PyObject * obj1 = 0 ;
15696 PyObject * obj2 = 0 ;
15697 char *kwnames[] = {
15698 (char *) "self",(char *) "key",(char *) "value", NULL
15699 };
15700
15701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15704 {
15705 arg2 = wxString_in_helper(obj1);
15706 if (arg2 == NULL) SWIG_fail;
15707 temp2 = True;
15708 }
15709 arg3 = (long) SWIG_AsLong(obj2);
15710 if (PyErr_Occurred()) SWIG_fail;
15711 {
15712 PyThreadState* __tstate = wxPyBeginAllowThreads();
15713 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15714
15715 wxPyEndAllowThreads(__tstate);
15716 if (PyErr_Occurred()) SWIG_fail;
15717 }
15718 {
15719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15720 }
15721 {
15722 if (temp2)
15723 delete arg2;
15724 }
15725 return resultobj;
15726 fail:
15727 {
15728 if (temp2)
15729 delete arg2;
15730 }
15731 return NULL;
15732}
15733
15734
15735static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15736 PyObject *resultobj;
15737 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15738 wxString *arg2 = 0 ;
15739 double arg3 ;
15740 bool result;
15741 bool temp2 = False ;
15742 PyObject * obj0 = 0 ;
15743 PyObject * obj1 = 0 ;
15744 PyObject * obj2 = 0 ;
15745 char *kwnames[] = {
15746 (char *) "self",(char *) "key",(char *) "value", NULL
15747 };
15748
15749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15752 {
15753 arg2 = wxString_in_helper(obj1);
15754 if (arg2 == NULL) SWIG_fail;
15755 temp2 = True;
15756 }
15757 arg3 = (double) SWIG_AsDouble(obj2);
15758 if (PyErr_Occurred()) SWIG_fail;
15759 {
15760 PyThreadState* __tstate = wxPyBeginAllowThreads();
15761 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15762
15763 wxPyEndAllowThreads(__tstate);
15764 if (PyErr_Occurred()) SWIG_fail;
15765 }
15766 {
15767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15768 }
15769 {
15770 if (temp2)
15771 delete arg2;
15772 }
15773 return resultobj;
15774 fail:
15775 {
15776 if (temp2)
15777 delete arg2;
15778 }
15779 return NULL;
15780}
15781
15782
15783static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15784 PyObject *resultobj;
15785 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15786 wxString *arg2 = 0 ;
15787 bool arg3 ;
15788 bool result;
15789 bool temp2 = False ;
15790 PyObject * obj0 = 0 ;
15791 PyObject * obj1 = 0 ;
15792 PyObject * obj2 = 0 ;
15793 char *kwnames[] = {
15794 (char *) "self",(char *) "key",(char *) "value", NULL
15795 };
15796
15797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15800 {
15801 arg2 = wxString_in_helper(obj1);
15802 if (arg2 == NULL) SWIG_fail;
15803 temp2 = True;
15804 }
15805 arg3 = (bool) SWIG_AsBool(obj2);
15806 if (PyErr_Occurred()) SWIG_fail;
15807 {
15808 PyThreadState* __tstate = wxPyBeginAllowThreads();
15809 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15810
15811 wxPyEndAllowThreads(__tstate);
15812 if (PyErr_Occurred()) SWIG_fail;
15813 }
15814 {
15815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15816 }
15817 {
15818 if (temp2)
15819 delete arg2;
15820 }
15821 return resultobj;
15822 fail:
15823 {
15824 if (temp2)
15825 delete arg2;
15826 }
15827 return NULL;
15828}
15829
15830
15831static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15832 PyObject *resultobj;
15833 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15834 bool arg2 = (bool) False ;
15835 bool result;
15836 PyObject * obj0 = 0 ;
15837 PyObject * obj1 = 0 ;
15838 char *kwnames[] = {
15839 (char *) "self",(char *) "currentOnly", NULL
15840 };
15841
15842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15845 if (obj1) {
15846 arg2 = (bool) SWIG_AsBool(obj1);
15847 if (PyErr_Occurred()) SWIG_fail;
15848 }
15849 {
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 result = (bool)(arg1)->Flush(arg2);
15852
15853 wxPyEndAllowThreads(__tstate);
15854 if (PyErr_Occurred()) SWIG_fail;
15855 }
15856 {
15857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15858 }
15859 return resultobj;
15860 fail:
15861 return NULL;
15862}
15863
15864
15865static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15866 PyObject *resultobj;
15867 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15868 wxString *arg2 = 0 ;
15869 wxString *arg3 = 0 ;
15870 bool result;
15871 bool temp2 = False ;
15872 bool temp3 = False ;
15873 PyObject * obj0 = 0 ;
15874 PyObject * obj1 = 0 ;
15875 PyObject * obj2 = 0 ;
15876 char *kwnames[] = {
15877 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15878 };
15879
15880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15883 {
15884 arg2 = wxString_in_helper(obj1);
15885 if (arg2 == NULL) SWIG_fail;
15886 temp2 = True;
15887 }
15888 {
15889 arg3 = wxString_in_helper(obj2);
15890 if (arg3 == NULL) SWIG_fail;
15891 temp3 = True;
15892 }
15893 {
15894 PyThreadState* __tstate = wxPyBeginAllowThreads();
15895 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15896
15897 wxPyEndAllowThreads(__tstate);
15898 if (PyErr_Occurred()) SWIG_fail;
15899 }
15900 {
15901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15902 }
15903 {
15904 if (temp2)
15905 delete arg2;
15906 }
15907 {
15908 if (temp3)
15909 delete arg3;
15910 }
15911 return resultobj;
15912 fail:
15913 {
15914 if (temp2)
15915 delete arg2;
15916 }
15917 {
15918 if (temp3)
15919 delete arg3;
15920 }
15921 return NULL;
15922}
15923
15924
15925static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15926 PyObject *resultobj;
15927 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15928 wxString *arg2 = 0 ;
15929 wxString *arg3 = 0 ;
15930 bool result;
15931 bool temp2 = False ;
15932 bool temp3 = False ;
15933 PyObject * obj0 = 0 ;
15934 PyObject * obj1 = 0 ;
15935 PyObject * obj2 = 0 ;
15936 char *kwnames[] = {
15937 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15938 };
15939
15940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15943 {
15944 arg2 = wxString_in_helper(obj1);
15945 if (arg2 == NULL) SWIG_fail;
15946 temp2 = True;
15947 }
15948 {
15949 arg3 = wxString_in_helper(obj2);
15950 if (arg3 == NULL) SWIG_fail;
15951 temp3 = True;
15952 }
15953 {
15954 PyThreadState* __tstate = wxPyBeginAllowThreads();
15955 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15956
15957 wxPyEndAllowThreads(__tstate);
15958 if (PyErr_Occurred()) SWIG_fail;
15959 }
15960 {
15961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15962 }
15963 {
15964 if (temp2)
15965 delete arg2;
15966 }
15967 {
15968 if (temp3)
15969 delete arg3;
15970 }
15971 return resultobj;
15972 fail:
15973 {
15974 if (temp2)
15975 delete arg2;
15976 }
15977 {
15978 if (temp3)
15979 delete arg3;
15980 }
15981 return NULL;
15982}
15983
15984
15985static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15986 PyObject *resultobj;
15987 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15988 wxString *arg2 = 0 ;
15989 bool arg3 = (bool) True ;
15990 bool result;
15991 bool temp2 = False ;
15992 PyObject * obj0 = 0 ;
15993 PyObject * obj1 = 0 ;
15994 PyObject * obj2 = 0 ;
15995 char *kwnames[] = {
15996 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15997 };
15998
15999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16002 {
16003 arg2 = wxString_in_helper(obj1);
16004 if (arg2 == NULL) SWIG_fail;
16005 temp2 = True;
16006 }
16007 if (obj2) {
16008 arg3 = (bool) SWIG_AsBool(obj2);
16009 if (PyErr_Occurred()) SWIG_fail;
16010 }
16011 {
16012 PyThreadState* __tstate = wxPyBeginAllowThreads();
16013 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
16014
16015 wxPyEndAllowThreads(__tstate);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 }
16018 {
16019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16020 }
16021 {
16022 if (temp2)
16023 delete arg2;
16024 }
16025 return resultobj;
16026 fail:
16027 {
16028 if (temp2)
16029 delete arg2;
16030 }
16031 return NULL;
16032}
16033
16034
16035static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
16036 PyObject *resultobj;
16037 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16038 wxString *arg2 = 0 ;
16039 bool result;
16040 bool temp2 = False ;
16041 PyObject * obj0 = 0 ;
16042 PyObject * obj1 = 0 ;
16043 char *kwnames[] = {
16044 (char *) "self",(char *) "key", NULL
16045 };
16046
16047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
16048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16050 {
16051 arg2 = wxString_in_helper(obj1);
16052 if (arg2 == NULL) SWIG_fail;
16053 temp2 = True;
16054 }
16055 {
16056 PyThreadState* __tstate = wxPyBeginAllowThreads();
16057 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
16058
16059 wxPyEndAllowThreads(__tstate);
16060 if (PyErr_Occurred()) SWIG_fail;
16061 }
16062 {
16063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16064 }
16065 {
16066 if (temp2)
16067 delete arg2;
16068 }
16069 return resultobj;
16070 fail:
16071 {
16072 if (temp2)
16073 delete arg2;
16074 }
16075 return NULL;
16076}
16077
16078
16079static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16080 PyObject *resultobj;
16081 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16082 bool result;
16083 PyObject * obj0 = 0 ;
16084 char *kwnames[] = {
16085 (char *) "self", NULL
16086 };
16087
16088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
16089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16091 {
16092 PyThreadState* __tstate = wxPyBeginAllowThreads();
16093 result = (bool)(arg1)->DeleteAll();
16094
16095 wxPyEndAllowThreads(__tstate);
16096 if (PyErr_Occurred()) SWIG_fail;
16097 }
16098 {
16099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16100 }
16101 return resultobj;
16102 fail:
16103 return NULL;
16104}
16105
16106
16107static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16108 PyObject *resultobj;
16109 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16110 bool arg2 = (bool) True ;
16111 PyObject * obj0 = 0 ;
16112 PyObject * obj1 = 0 ;
16113 char *kwnames[] = {
16114 (char *) "self",(char *) "doIt", NULL
16115 };
16116
16117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16120 if (obj1) {
16121 arg2 = (bool) SWIG_AsBool(obj1);
16122 if (PyErr_Occurred()) SWIG_fail;
16123 }
16124 {
16125 PyThreadState* __tstate = wxPyBeginAllowThreads();
16126 (arg1)->SetExpandEnvVars(arg2);
16127
16128 wxPyEndAllowThreads(__tstate);
16129 if (PyErr_Occurred()) SWIG_fail;
16130 }
16131 Py_INCREF(Py_None); resultobj = Py_None;
16132 return resultobj;
16133 fail:
16134 return NULL;
16135}
16136
16137
16138static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16139 PyObject *resultobj;
16140 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16141 bool result;
16142 PyObject * obj0 = 0 ;
16143 char *kwnames[] = {
16144 (char *) "self", NULL
16145 };
16146
16147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16153
16154 wxPyEndAllowThreads(__tstate);
16155 if (PyErr_Occurred()) SWIG_fail;
16156 }
16157 {
16158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16159 }
16160 return resultobj;
16161 fail:
16162 return NULL;
16163}
16164
16165
16166static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16167 PyObject *resultobj;
16168 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16169 bool arg2 = (bool) True ;
16170 PyObject * obj0 = 0 ;
16171 PyObject * obj1 = 0 ;
16172 char *kwnames[] = {
16173 (char *) "self",(char *) "doIt", NULL
16174 };
16175
16176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16179 if (obj1) {
16180 arg2 = (bool) SWIG_AsBool(obj1);
16181 if (PyErr_Occurred()) SWIG_fail;
16182 }
16183 {
16184 PyThreadState* __tstate = wxPyBeginAllowThreads();
16185 (arg1)->SetRecordDefaults(arg2);
16186
16187 wxPyEndAllowThreads(__tstate);
16188 if (PyErr_Occurred()) SWIG_fail;
16189 }
16190 Py_INCREF(Py_None); resultobj = Py_None;
16191 return resultobj;
16192 fail:
16193 return NULL;
16194}
16195
16196
16197static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16198 PyObject *resultobj;
16199 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16200 bool result;
16201 PyObject * obj0 = 0 ;
16202 char *kwnames[] = {
16203 (char *) "self", NULL
16204 };
16205
16206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16209 {
16210 PyThreadState* __tstate = wxPyBeginAllowThreads();
16211 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16212
16213 wxPyEndAllowThreads(__tstate);
16214 if (PyErr_Occurred()) SWIG_fail;
16215 }
16216 {
16217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16218 }
16219 return resultobj;
16220 fail:
16221 return NULL;
16222}
16223
16224
16225static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16226 PyObject *resultobj;
16227 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16228 wxString *arg2 = 0 ;
16229 wxString result;
16230 bool temp2 = False ;
16231 PyObject * obj0 = 0 ;
16232 PyObject * obj1 = 0 ;
16233 char *kwnames[] = {
16234 (char *) "self",(char *) "str", NULL
16235 };
16236
16237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16240 {
16241 arg2 = wxString_in_helper(obj1);
16242 if (arg2 == NULL) SWIG_fail;
16243 temp2 = True;
16244 }
16245 {
16246 PyThreadState* __tstate = wxPyBeginAllowThreads();
16247 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16248
16249 wxPyEndAllowThreads(__tstate);
16250 if (PyErr_Occurred()) SWIG_fail;
16251 }
16252 {
16253#if wxUSE_UNICODE
16254 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16255#else
16256 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16257#endif
16258 }
16259 {
16260 if (temp2)
16261 delete arg2;
16262 }
16263 return resultobj;
16264 fail:
16265 {
16266 if (temp2)
16267 delete arg2;
16268 }
16269 return NULL;
16270}
16271
16272
16273static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16274 PyObject *resultobj;
16275 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16276 wxString result;
16277 PyObject * obj0 = 0 ;
16278 char *kwnames[] = {
16279 (char *) "self", NULL
16280 };
16281
16282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16285 {
16286 PyThreadState* __tstate = wxPyBeginAllowThreads();
16287 result = ((wxConfigBase const *)arg1)->GetAppName();
16288
16289 wxPyEndAllowThreads(__tstate);
16290 if (PyErr_Occurred()) SWIG_fail;
16291 }
16292 {
16293#if wxUSE_UNICODE
16294 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16295#else
16296 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16297#endif
16298 }
16299 return resultobj;
16300 fail:
16301 return NULL;
16302}
16303
16304
16305static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16306 PyObject *resultobj;
16307 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16308 wxString result;
16309 PyObject * obj0 = 0 ;
16310 char *kwnames[] = {
16311 (char *) "self", NULL
16312 };
16313
16314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16317 {
16318 PyThreadState* __tstate = wxPyBeginAllowThreads();
16319 result = ((wxConfigBase const *)arg1)->GetVendorName();
16320
16321 wxPyEndAllowThreads(__tstate);
16322 if (PyErr_Occurred()) SWIG_fail;
16323 }
16324 {
16325#if wxUSE_UNICODE
16326 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16327#else
16328 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16329#endif
16330 }
16331 return resultobj;
16332 fail:
16333 return NULL;
16334}
16335
16336
16337static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16338 PyObject *resultobj;
16339 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16340 wxString *arg2 = 0 ;
16341 bool temp2 = False ;
16342 PyObject * obj0 = 0 ;
16343 PyObject * obj1 = 0 ;
16344 char *kwnames[] = {
16345 (char *) "self",(char *) "appName", NULL
16346 };
16347
16348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16351 {
16352 arg2 = wxString_in_helper(obj1);
16353 if (arg2 == NULL) SWIG_fail;
16354 temp2 = True;
16355 }
16356 {
16357 PyThreadState* __tstate = wxPyBeginAllowThreads();
16358 (arg1)->SetAppName((wxString const &)*arg2);
16359
16360 wxPyEndAllowThreads(__tstate);
16361 if (PyErr_Occurred()) SWIG_fail;
16362 }
16363 Py_INCREF(Py_None); resultobj = Py_None;
16364 {
16365 if (temp2)
16366 delete arg2;
16367 }
16368 return resultobj;
16369 fail:
16370 {
16371 if (temp2)
16372 delete arg2;
16373 }
16374 return NULL;
16375}
16376
16377
16378static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16379 PyObject *resultobj;
16380 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16381 wxString *arg2 = 0 ;
16382 bool temp2 = False ;
16383 PyObject * obj0 = 0 ;
16384 PyObject * obj1 = 0 ;
16385 char *kwnames[] = {
16386 (char *) "self",(char *) "vendorName", NULL
16387 };
16388
16389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16392 {
16393 arg2 = wxString_in_helper(obj1);
16394 if (arg2 == NULL) SWIG_fail;
16395 temp2 = True;
16396 }
16397 {
16398 PyThreadState* __tstate = wxPyBeginAllowThreads();
16399 (arg1)->SetVendorName((wxString const &)*arg2);
16400
16401 wxPyEndAllowThreads(__tstate);
16402 if (PyErr_Occurred()) SWIG_fail;
16403 }
16404 Py_INCREF(Py_None); resultobj = Py_None;
16405 {
16406 if (temp2)
16407 delete arg2;
16408 }
16409 return resultobj;
16410 fail:
16411 {
16412 if (temp2)
16413 delete arg2;
16414 }
16415 return NULL;
16416}
16417
16418
16419static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16420 PyObject *resultobj;
16421 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16422 long arg2 ;
16423 PyObject * obj0 = 0 ;
16424 PyObject * obj1 = 0 ;
16425 char *kwnames[] = {
16426 (char *) "self",(char *) "style", NULL
16427 };
16428
16429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16432 arg2 = (long) SWIG_AsLong(obj1);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 {
16435 PyThreadState* __tstate = wxPyBeginAllowThreads();
16436 (arg1)->SetStyle(arg2);
16437
16438 wxPyEndAllowThreads(__tstate);
16439 if (PyErr_Occurred()) SWIG_fail;
16440 }
16441 Py_INCREF(Py_None); resultobj = Py_None;
16442 return resultobj;
16443 fail:
16444 return NULL;
16445}
16446
16447
16448static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16449 PyObject *resultobj;
16450 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16451 long result;
16452 PyObject * obj0 = 0 ;
16453 char *kwnames[] = {
16454 (char *) "self", NULL
16455 };
16456
16457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16463
16464 wxPyEndAllowThreads(__tstate);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
16467 resultobj = SWIG_FromLong((long)result);
16468 return resultobj;
16469 fail:
16470 return NULL;
16471}
16472
16473
16474static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16475 PyObject *obj;
16476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16477 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16478 Py_INCREF(obj);
16479 return Py_BuildValue((char *)"");
16480}
16481static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxString const &arg1_defvalue = wxPyEmptyString ;
16484 wxString *arg1 = (wxString *) &arg1_defvalue ;
16485 wxString const &arg2_defvalue = wxPyEmptyString ;
16486 wxString *arg2 = (wxString *) &arg2_defvalue ;
16487 wxString const &arg3_defvalue = wxPyEmptyString ;
16488 wxString *arg3 = (wxString *) &arg3_defvalue ;
16489 wxString const &arg4_defvalue = wxPyEmptyString ;
16490 wxString *arg4 = (wxString *) &arg4_defvalue ;
16491 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16492 wxConfig *result;
16493 bool temp1 = False ;
16494 bool temp2 = False ;
16495 bool temp3 = False ;
16496 bool temp4 = False ;
16497 PyObject * obj0 = 0 ;
16498 PyObject * obj1 = 0 ;
16499 PyObject * obj2 = 0 ;
16500 PyObject * obj3 = 0 ;
16501 PyObject * obj4 = 0 ;
16502 char *kwnames[] = {
16503 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16504 };
16505
16506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16507 if (obj0) {
16508 {
16509 arg1 = wxString_in_helper(obj0);
16510 if (arg1 == NULL) SWIG_fail;
16511 temp1 = True;
16512 }
16513 }
16514 if (obj1) {
16515 {
16516 arg2 = wxString_in_helper(obj1);
16517 if (arg2 == NULL) SWIG_fail;
16518 temp2 = True;
16519 }
16520 }
16521 if (obj2) {
16522 {
16523 arg3 = wxString_in_helper(obj2);
16524 if (arg3 == NULL) SWIG_fail;
16525 temp3 = True;
16526 }
16527 }
16528 if (obj3) {
16529 {
16530 arg4 = wxString_in_helper(obj3);
16531 if (arg4 == NULL) SWIG_fail;
16532 temp4 = True;
16533 }
16534 }
16535 if (obj4) {
16536 arg5 = (long) SWIG_AsLong(obj4);
16537 if (PyErr_Occurred()) SWIG_fail;
16538 }
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16542
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16547 {
16548 if (temp1)
16549 delete arg1;
16550 }
16551 {
16552 if (temp2)
16553 delete arg2;
16554 }
16555 {
16556 if (temp3)
16557 delete arg3;
16558 }
16559 {
16560 if (temp4)
16561 delete arg4;
16562 }
16563 return resultobj;
16564 fail:
16565 {
16566 if (temp1)
16567 delete arg1;
16568 }
16569 {
16570 if (temp2)
16571 delete arg2;
16572 }
16573 {
16574 if (temp3)
16575 delete arg3;
16576 }
16577 {
16578 if (temp4)
16579 delete arg4;
16580 }
16581 return NULL;
16582}
16583
16584
16585static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16586 PyObject *resultobj;
16587 wxConfig *arg1 = (wxConfig *) 0 ;
16588 PyObject * obj0 = 0 ;
16589 char *kwnames[] = {
16590 (char *) "self", NULL
16591 };
16592
16593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16596 {
16597 PyThreadState* __tstate = wxPyBeginAllowThreads();
16598 delete arg1;
16599
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 Py_INCREF(Py_None); resultobj = Py_None;
16604 return resultobj;
16605 fail:
16606 return NULL;
16607}
16608
16609
16610static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16611 PyObject *obj;
16612 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16613 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16614 Py_INCREF(obj);
16615 return Py_BuildValue((char *)"");
16616}
16617static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16618 PyObject *resultobj;
16619 wxString const &arg1_defvalue = wxPyEmptyString ;
16620 wxString *arg1 = (wxString *) &arg1_defvalue ;
16621 wxString const &arg2_defvalue = wxPyEmptyString ;
16622 wxString *arg2 = (wxString *) &arg2_defvalue ;
16623 wxString const &arg3_defvalue = wxPyEmptyString ;
16624 wxString *arg3 = (wxString *) &arg3_defvalue ;
16625 wxString const &arg4_defvalue = wxPyEmptyString ;
16626 wxString *arg4 = (wxString *) &arg4_defvalue ;
16627 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16628 wxFileConfig *result;
16629 bool temp1 = False ;
16630 bool temp2 = False ;
16631 bool temp3 = False ;
16632 bool temp4 = False ;
16633 PyObject * obj0 = 0 ;
16634 PyObject * obj1 = 0 ;
16635 PyObject * obj2 = 0 ;
16636 PyObject * obj3 = 0 ;
16637 PyObject * obj4 = 0 ;
16638 char *kwnames[] = {
16639 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16640 };
16641
16642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16643 if (obj0) {
16644 {
16645 arg1 = wxString_in_helper(obj0);
16646 if (arg1 == NULL) SWIG_fail;
16647 temp1 = True;
16648 }
16649 }
16650 if (obj1) {
16651 {
16652 arg2 = wxString_in_helper(obj1);
16653 if (arg2 == NULL) SWIG_fail;
16654 temp2 = True;
16655 }
16656 }
16657 if (obj2) {
16658 {
16659 arg3 = wxString_in_helper(obj2);
16660 if (arg3 == NULL) SWIG_fail;
16661 temp3 = True;
16662 }
16663 }
16664 if (obj3) {
16665 {
16666 arg4 = wxString_in_helper(obj3);
16667 if (arg4 == NULL) SWIG_fail;
16668 temp4 = True;
16669 }
16670 }
16671 if (obj4) {
16672 arg5 = (long) SWIG_AsLong(obj4);
16673 if (PyErr_Occurred()) SWIG_fail;
16674 }
16675 {
16676 PyThreadState* __tstate = wxPyBeginAllowThreads();
16677 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16678
16679 wxPyEndAllowThreads(__tstate);
16680 if (PyErr_Occurred()) SWIG_fail;
16681 }
16682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16683 {
16684 if (temp1)
16685 delete arg1;
16686 }
16687 {
16688 if (temp2)
16689 delete arg2;
16690 }
16691 {
16692 if (temp3)
16693 delete arg3;
16694 }
16695 {
16696 if (temp4)
16697 delete arg4;
16698 }
16699 return resultobj;
16700 fail:
16701 {
16702 if (temp1)
16703 delete arg1;
16704 }
16705 {
16706 if (temp2)
16707 delete arg2;
16708 }
16709 {
16710 if (temp3)
16711 delete arg3;
16712 }
16713 {
16714 if (temp4)
16715 delete arg4;
16716 }
16717 return NULL;
16718}
16719
16720
16721static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16722 PyObject *resultobj;
16723 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16724 PyObject * obj0 = 0 ;
16725 char *kwnames[] = {
16726 (char *) "self", NULL
16727 };
16728
16729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16732 {
16733 PyThreadState* __tstate = wxPyBeginAllowThreads();
16734 delete arg1;
16735
16736 wxPyEndAllowThreads(__tstate);
16737 if (PyErr_Occurred()) SWIG_fail;
16738 }
16739 Py_INCREF(Py_None); resultobj = Py_None;
16740 return resultobj;
16741 fail:
16742 return NULL;
16743}
16744
16745
16746static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16747 PyObject *obj;
16748 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16749 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16750 Py_INCREF(obj);
16751 return Py_BuildValue((char *)"");
16752}
16753static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16754 PyObject *resultobj;
16755 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16756 wxString *arg2 = 0 ;
16757 wxConfigPathChanger *result;
16758 bool temp2 = False ;
16759 PyObject * obj0 = 0 ;
16760 PyObject * obj1 = 0 ;
16761 char *kwnames[] = {
16762 (char *) "config",(char *) "entry", NULL
16763 };
16764
16765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16768 {
16769 arg2 = wxString_in_helper(obj1);
16770 if (arg2 == NULL) SWIG_fail;
16771 temp2 = True;
16772 }
16773 {
16774 PyThreadState* __tstate = wxPyBeginAllowThreads();
16775 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16776
16777 wxPyEndAllowThreads(__tstate);
16778 if (PyErr_Occurred()) SWIG_fail;
16779 }
16780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16781 {
16782 if (temp2)
16783 delete arg2;
16784 }
16785 return resultobj;
16786 fail:
16787 {
16788 if (temp2)
16789 delete arg2;
16790 }
16791 return NULL;
16792}
16793
16794
16795static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16796 PyObject *resultobj;
16797 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16798 PyObject * obj0 = 0 ;
16799 char *kwnames[] = {
16800 (char *) "self", NULL
16801 };
16802
16803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 delete arg1;
16809
16810 wxPyEndAllowThreads(__tstate);
16811 if (PyErr_Occurred()) SWIG_fail;
16812 }
16813 Py_INCREF(Py_None); resultobj = Py_None;
16814 return resultobj;
16815 fail:
16816 return NULL;
16817}
16818
16819
16820static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16821 PyObject *resultobj;
16822 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16823 wxString *result;
16824 PyObject * obj0 = 0 ;
16825 char *kwnames[] = {
16826 (char *) "self", NULL
16827 };
16828
16829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16832 {
16833 PyThreadState* __tstate = wxPyBeginAllowThreads();
16834 {
16835 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16836 result = (wxString *) &_result_ref;
16837 }
16838
16839 wxPyEndAllowThreads(__tstate);
16840 if (PyErr_Occurred()) SWIG_fail;
16841 }
16842 {
16843#if wxUSE_UNICODE
16844 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16845#else
16846 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16847#endif
16848 }
16849 return resultobj;
16850 fail:
16851 return NULL;
16852}
16853
16854
16855static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16856 PyObject *obj;
16857 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16858 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16859 Py_INCREF(obj);
16860 return Py_BuildValue((char *)"");
16861}
16862static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16863 PyObject *resultobj;
16864 wxString *arg1 = 0 ;
16865 wxString result;
16866 bool temp1 = False ;
16867 PyObject * obj0 = 0 ;
16868 char *kwnames[] = {
16869 (char *) "sz", NULL
16870 };
16871
16872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16873 {
16874 arg1 = wxString_in_helper(obj0);
16875 if (arg1 == NULL) SWIG_fail;
16876 temp1 = True;
16877 }
16878 {
16879 PyThreadState* __tstate = wxPyBeginAllowThreads();
16880 result = wxExpandEnvVars((wxString const &)*arg1);
16881
16882 wxPyEndAllowThreads(__tstate);
16883 if (PyErr_Occurred()) SWIG_fail;
16884 }
16885 {
16886#if wxUSE_UNICODE
16887 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16888#else
16889 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16890#endif
16891 }
16892 {
16893 if (temp1)
16894 delete arg1;
16895 }
16896 return resultobj;
16897 fail:
16898 {
16899 if (temp1)
16900 delete arg1;
16901 }
16902 return NULL;
16903}
16904
16905
16906static int _wrap_DateFormatStr_set(PyObject *_val) {
16907 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16908 return 1;
16909}
16910
16911
16912static PyObject *_wrap_DateFormatStr_get() {
16913 PyObject *pyobj;
16914
16915 {
16916#if wxUSE_UNICODE
16917 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16918#else
16919 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16920#endif
16921 }
16922 return pyobj;
16923}
16924
16925
16926static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16927 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16928 return 1;
16929}
16930
16931
16932static PyObject *_wrap_TimeSpanFormatStr_get() {
16933 PyObject *pyobj;
16934
16935 {
16936#if wxUSE_UNICODE
16937 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16938#else
16939 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16940#endif
16941 }
16942 return pyobj;
16943}
16944
16945
16946static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16947 PyObject *resultobj;
16948 int arg1 ;
16949 PyObject * obj0 = 0 ;
16950 char *kwnames[] = {
16951 (char *) "country", NULL
16952 };
16953
16954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16955 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16956 if (PyErr_Occurred()) SWIG_fail;
16957 {
16958 PyThreadState* __tstate = wxPyBeginAllowThreads();
16959 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16960
16961 wxPyEndAllowThreads(__tstate);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 Py_INCREF(Py_None); resultobj = Py_None;
16965 return resultobj;
16966 fail:
16967 return NULL;
16968}
16969
16970
16971static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16972 PyObject *resultobj;
16973 int result;
16974 char *kwnames[] = {
16975 NULL
16976 };
16977
16978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16979 {
16980 PyThreadState* __tstate = wxPyBeginAllowThreads();
16981 result = (int)wxDateTime::GetCountry();
16982
16983 wxPyEndAllowThreads(__tstate);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 resultobj = SWIG_FromInt((int)result);
16987 return resultobj;
16988 fail:
16989 return NULL;
16990}
16991
16992
16993static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16994 PyObject *resultobj;
16995 int arg1 = (int) wxDateTime::Country_Default ;
16996 bool result;
16997 PyObject * obj0 = 0 ;
16998 char *kwnames[] = {
16999 (char *) "country", NULL
17000 };
17001
17002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
17003 if (obj0) {
17004 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
17005 if (PyErr_Occurred()) SWIG_fail;
17006 }
17007 {
17008 PyThreadState* __tstate = wxPyBeginAllowThreads();
17009 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
17010
17011 wxPyEndAllowThreads(__tstate);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 {
17015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17016 }
17017 return resultobj;
17018 fail:
17019 return NULL;
17020}
17021
17022
17023static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17024 PyObject *resultobj;
17025 int arg1 = (int) wxDateTime::Gregorian ;
17026 int result;
17027 PyObject * obj0 = 0 ;
17028 char *kwnames[] = {
17029 (char *) "cal", NULL
17030 };
17031
17032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
17033 if (obj0) {
17034 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 {
17038 PyThreadState* __tstate = wxPyBeginAllowThreads();
17039 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
17040
17041 wxPyEndAllowThreads(__tstate);
17042 if (PyErr_Occurred()) SWIG_fail;
17043 }
17044 resultobj = SWIG_FromInt((int)result);
17045 return resultobj;
17046 fail:
17047 return NULL;
17048}
17049
17050
17051static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
17052 PyObject *resultobj;
17053 int arg1 ;
17054 int result;
17055 PyObject * obj0 = 0 ;
17056 char *kwnames[] = {
17057 (char *) "year", NULL
17058 };
17059
17060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
17061 arg1 = (int) SWIG_AsInt(obj0);
17062 if (PyErr_Occurred()) SWIG_fail;
17063 {
17064 PyThreadState* __tstate = wxPyBeginAllowThreads();
17065 result = (int)wxDateTime::ConvertYearToBC(arg1);
17066
17067 wxPyEndAllowThreads(__tstate);
17068 if (PyErr_Occurred()) SWIG_fail;
17069 }
17070 resultobj = SWIG_FromInt((int)result);
17071 return resultobj;
17072 fail:
17073 return NULL;
17074}
17075
17076
17077static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17078 PyObject *resultobj;
17079 int arg1 = (int) wxDateTime::Gregorian ;
17080 int result;
17081 PyObject * obj0 = 0 ;
17082 char *kwnames[] = {
17083 (char *) "cal", NULL
17084 };
17085
17086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
17087 if (obj0) {
17088 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
17089 if (PyErr_Occurred()) SWIG_fail;
17090 }
17091 {
17092 PyThreadState* __tstate = wxPyBeginAllowThreads();
17093 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
17094
17095 wxPyEndAllowThreads(__tstate);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 resultobj = SWIG_FromInt((int)result);
17099 return resultobj;
17100 fail:
17101 return NULL;
17102}
17103
17104
17105static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17106 PyObject *resultobj;
17107 int arg1 = (int) wxDateTime::Inv_Year ;
17108 int arg2 = (int) wxDateTime::Gregorian ;
17109 bool result;
17110 PyObject * obj0 = 0 ;
17111 PyObject * obj1 = 0 ;
17112 char *kwnames[] = {
17113 (char *) "year",(char *) "cal", NULL
17114 };
17115
17116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17117 if (obj0) {
17118 arg1 = (int) SWIG_AsInt(obj0);
17119 if (PyErr_Occurred()) SWIG_fail;
17120 }
17121 if (obj1) {
17122 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17123 if (PyErr_Occurred()) SWIG_fail;
17124 }
17125 {
17126 PyThreadState* __tstate = wxPyBeginAllowThreads();
17127 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17128
17129 wxPyEndAllowThreads(__tstate);
17130 if (PyErr_Occurred()) SWIG_fail;
17131 }
17132 {
17133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17134 }
17135 return resultobj;
17136 fail:
17137 return NULL;
17138}
17139
17140
17141static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
17142 PyObject *resultobj;
17143 int arg1 = (int) wxDateTime::Inv_Year ;
17144 int result;
17145 PyObject * obj0 = 0 ;
17146 char *kwnames[] = {
17147 (char *) "year", NULL
17148 };
17149
17150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17151 if (obj0) {
17152 arg1 = (int) SWIG_AsInt(obj0);
17153 if (PyErr_Occurred()) SWIG_fail;
17154 }
17155 {
17156 PyThreadState* __tstate = wxPyBeginAllowThreads();
17157 result = (int)wxDateTime::GetCentury(arg1);
17158
17159 wxPyEndAllowThreads(__tstate);
17160 if (PyErr_Occurred()) SWIG_fail;
17161 }
17162 resultobj = SWIG_FromInt((int)result);
17163 return resultobj;
17164 fail:
17165 return NULL;
17166}
17167
17168
17169static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17170 PyObject *resultobj;
17171 int arg1 ;
17172 int arg2 = (int) wxDateTime::Gregorian ;
17173 int result;
17174 PyObject * obj0 = 0 ;
17175 PyObject * obj1 = 0 ;
17176 char *kwnames[] = {
17177 (char *) "year",(char *) "cal", NULL
17178 };
17179
17180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17181 arg1 = (int) SWIG_AsInt(obj0);
17182 if (PyErr_Occurred()) SWIG_fail;
17183 if (obj1) {
17184 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17185 if (PyErr_Occurred()) SWIG_fail;
17186 }
17187 {
17188 PyThreadState* __tstate = wxPyBeginAllowThreads();
17189 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17190
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 resultobj = SWIG_FromInt((int)result);
17195 return resultobj;
17196 fail:
17197 return NULL;
17198}
17199
17200
17201static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17202 PyObject *resultobj;
17203 int arg1 ;
17204 int arg2 = (int) wxDateTime::Inv_Year ;
17205 int arg3 = (int) wxDateTime::Gregorian ;
17206 int result;
17207 PyObject * obj0 = 0 ;
17208 PyObject * obj1 = 0 ;
17209 PyObject * obj2 = 0 ;
17210 char *kwnames[] = {
17211 (char *) "month",(char *) "year",(char *) "cal", NULL
17212 };
17213
17214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17215 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17216 if (PyErr_Occurred()) SWIG_fail;
17217 if (obj1) {
17218 arg2 = (int) SWIG_AsInt(obj1);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 if (obj2) {
17222 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 {
17226 PyThreadState* __tstate = wxPyBeginAllowThreads();
17227 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17228
17229 wxPyEndAllowThreads(__tstate);
17230 if (PyErr_Occurred()) SWIG_fail;
17231 }
17232 resultobj = SWIG_FromInt((int)result);
17233 return resultobj;
17234 fail:
17235 return NULL;
17236}
17237
17238
17239static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
17240 PyObject *resultobj;
17241 int arg1 ;
17242 int arg2 = (int) wxDateTime::Name_Full ;
17243 wxString result;
17244 PyObject * obj0 = 0 ;
17245 PyObject * obj1 = 0 ;
17246 char *kwnames[] = {
17247 (char *) "month",(char *) "flags", NULL
17248 };
17249
17250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17251 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17252 if (PyErr_Occurred()) SWIG_fail;
17253 if (obj1) {
17254 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17255 if (PyErr_Occurred()) SWIG_fail;
17256 }
17257 {
17258 PyThreadState* __tstate = wxPyBeginAllowThreads();
17259 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17260
17261 wxPyEndAllowThreads(__tstate);
17262 if (PyErr_Occurred()) SWIG_fail;
17263 }
17264 {
17265#if wxUSE_UNICODE
17266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17267#else
17268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17269#endif
17270 }
17271 return resultobj;
17272 fail:
17273 return NULL;
17274}
17275
17276
17277static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17278 PyObject *resultobj;
17279 int arg1 ;
17280 int arg2 = (int) wxDateTime::Name_Full ;
17281 wxString result;
17282 PyObject * obj0 = 0 ;
17283 PyObject * obj1 = 0 ;
17284 char *kwnames[] = {
17285 (char *) "weekday",(char *) "flags", NULL
17286 };
17287
17288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17289 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17290 if (PyErr_Occurred()) SWIG_fail;
17291 if (obj1) {
17292 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17293 if (PyErr_Occurred()) SWIG_fail;
17294 }
17295 {
17296 PyThreadState* __tstate = wxPyBeginAllowThreads();
17297 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17298
17299 wxPyEndAllowThreads(__tstate);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 }
17302 {
17303#if wxUSE_UNICODE
17304 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17305#else
17306 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17307#endif
17308 }
17309 return resultobj;
17310 fail:
17311 return NULL;
17312}
17313
17314
17315static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17316 PyObject *resultobj;
17317 wxString *arg1 = (wxString *) 0 ;
17318 wxString *arg2 = (wxString *) 0 ;
17319 bool temp1 = False ;
17320 bool temp2 = False ;
17321 PyObject * obj0 = 0 ;
17322 PyObject * obj1 = 0 ;
17323 char *kwnames[] = {
17324 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17325 };
17326
17327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17328 {
17329 arg1 = wxString_in_helper(obj0);
17330 if (arg1 == NULL) SWIG_fail;
17331 temp1 = True;
17332 }
17333 {
17334 arg2 = wxString_in_helper(obj1);
17335 if (arg2 == NULL) SWIG_fail;
17336 temp2 = True;
17337 }
17338 {
17339 PyThreadState* __tstate = wxPyBeginAllowThreads();
17340 wxDateTime::GetAmPmStrings(arg1,arg2);
17341
17342 wxPyEndAllowThreads(__tstate);
17343 if (PyErr_Occurred()) SWIG_fail;
17344 }
17345 Py_INCREF(Py_None); resultobj = Py_None;
17346 {
17347 if (temp1)
17348 delete arg1;
17349 }
17350 {
17351 if (temp2)
17352 delete arg2;
17353 }
17354 return resultobj;
17355 fail:
17356 {
17357 if (temp1)
17358 delete arg1;
17359 }
17360 {
17361 if (temp2)
17362 delete arg2;
17363 }
17364 return NULL;
17365}
17366
17367
17368static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17369 PyObject *resultobj;
17370 int arg1 = (int) wxDateTime::Inv_Year ;
17371 int arg2 = (int) wxDateTime::Country_Default ;
17372 bool result;
17373 PyObject * obj0 = 0 ;
17374 PyObject * obj1 = 0 ;
17375 char *kwnames[] = {
17376 (char *) "year",(char *) "country", NULL
17377 };
17378
17379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17380 if (obj0) {
17381 arg1 = (int) SWIG_AsInt(obj0);
17382 if (PyErr_Occurred()) SWIG_fail;
17383 }
17384 if (obj1) {
17385 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17386 if (PyErr_Occurred()) SWIG_fail;
17387 }
17388 {
17389 PyThreadState* __tstate = wxPyBeginAllowThreads();
17390 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17391
17392 wxPyEndAllowThreads(__tstate);
17393 if (PyErr_Occurred()) SWIG_fail;
17394 }
17395 {
17396 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17397 }
17398 return resultobj;
17399 fail:
17400 return NULL;
17401}
17402
17403
17404static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17405 PyObject *resultobj;
17406 int arg1 = (int) wxDateTime::Inv_Year ;
17407 int arg2 = (int) wxDateTime::Country_Default ;
17408 wxDateTime result;
17409 PyObject * obj0 = 0 ;
17410 PyObject * obj1 = 0 ;
17411 char *kwnames[] = {
17412 (char *) "year",(char *) "country", NULL
17413 };
17414
17415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17416 if (obj0) {
17417 arg1 = (int) SWIG_AsInt(obj0);
17418 if (PyErr_Occurred()) SWIG_fail;
17419 }
17420 if (obj1) {
17421 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 }
17424 {
17425 PyThreadState* __tstate = wxPyBeginAllowThreads();
17426 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17427
17428 wxPyEndAllowThreads(__tstate);
17429 if (PyErr_Occurred()) SWIG_fail;
17430 }
17431 {
17432 wxDateTime * resultptr;
17433 resultptr = new wxDateTime((wxDateTime &) result);
17434 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17435 }
17436 return resultobj;
17437 fail:
17438 return NULL;
17439}
17440
17441
17442static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17443 PyObject *resultobj;
17444 int arg1 = (int) wxDateTime::Inv_Year ;
17445 int arg2 = (int) wxDateTime::Country_Default ;
17446 wxDateTime result;
17447 PyObject * obj0 = 0 ;
17448 PyObject * obj1 = 0 ;
17449 char *kwnames[] = {
17450 (char *) "year",(char *) "country", NULL
17451 };
17452
17453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17454 if (obj0) {
17455 arg1 = (int) SWIG_AsInt(obj0);
17456 if (PyErr_Occurred()) SWIG_fail;
17457 }
17458 if (obj1) {
17459 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17460 if (PyErr_Occurred()) SWIG_fail;
17461 }
17462 {
17463 PyThreadState* __tstate = wxPyBeginAllowThreads();
17464 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17465
17466 wxPyEndAllowThreads(__tstate);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 {
17470 wxDateTime * resultptr;
17471 resultptr = new wxDateTime((wxDateTime &) result);
17472 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17473 }
17474 return resultobj;
17475 fail:
17476 return NULL;
17477}
17478
17479
17480static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17481 PyObject *resultobj;
17482 wxDateTime result;
17483 char *kwnames[] = {
17484 NULL
17485 };
17486
17487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17488 {
17489 PyThreadState* __tstate = wxPyBeginAllowThreads();
17490 result = wxDateTime::Now();
17491
17492 wxPyEndAllowThreads(__tstate);
17493 if (PyErr_Occurred()) SWIG_fail;
17494 }
17495 {
17496 wxDateTime * resultptr;
17497 resultptr = new wxDateTime((wxDateTime &) result);
17498 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17499 }
17500 return resultobj;
17501 fail:
17502 return NULL;
17503}
17504
17505
17506static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17507 PyObject *resultobj;
17508 wxDateTime result;
17509 char *kwnames[] = {
17510 NULL
17511 };
17512
17513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = wxDateTime::UNow();
17517
17518 wxPyEndAllowThreads(__tstate);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 {
17522 wxDateTime * resultptr;
17523 resultptr = new wxDateTime((wxDateTime &) result);
17524 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17525 }
17526 return resultobj;
17527 fail:
17528 return NULL;
17529}
17530
17531
17532static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17533 PyObject *resultobj;
17534 wxDateTime result;
17535 char *kwnames[] = {
17536 NULL
17537 };
17538
17539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17540 {
17541 PyThreadState* __tstate = wxPyBeginAllowThreads();
17542 result = wxDateTime::Today();
17543
17544 wxPyEndAllowThreads(__tstate);
17545 if (PyErr_Occurred()) SWIG_fail;
17546 }
17547 {
17548 wxDateTime * resultptr;
17549 resultptr = new wxDateTime((wxDateTime &) result);
17550 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17551 }
17552 return resultobj;
17553 fail:
17554 return NULL;
17555}
17556
17557
17558static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17559 PyObject *resultobj;
17560 wxDateTime *result;
17561 char *kwnames[] = {
17562 NULL
17563 };
17564
17565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17566 {
17567 PyThreadState* __tstate = wxPyBeginAllowThreads();
17568 result = (wxDateTime *)new wxDateTime();
17569
17570 wxPyEndAllowThreads(__tstate);
17571 if (PyErr_Occurred()) SWIG_fail;
17572 }
17573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17574 return resultobj;
17575 fail:
17576 return NULL;
17577}
17578
17579
17580static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17581 PyObject *resultobj;
17582 time_t arg1 ;
17583 wxDateTime *result;
17584 PyObject * obj0 = 0 ;
17585 char *kwnames[] = {
17586 (char *) "timet", NULL
17587 };
17588
17589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17590 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17591 if (PyErr_Occurred()) SWIG_fail;
17592 {
17593 PyThreadState* __tstate = wxPyBeginAllowThreads();
17594 result = (wxDateTime *)new wxDateTime(arg1);
17595
17596 wxPyEndAllowThreads(__tstate);
17597 if (PyErr_Occurred()) SWIG_fail;
17598 }
17599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17600 return resultobj;
17601 fail:
17602 return NULL;
17603}
17604
17605
17606static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17607 PyObject *resultobj;
17608 double arg1 ;
17609 wxDateTime *result;
17610 PyObject * obj0 = 0 ;
17611 char *kwnames[] = {
17612 (char *) "jdn", NULL
17613 };
17614
17615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17616 arg1 = (double) SWIG_AsDouble(obj0);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 {
17619 PyThreadState* __tstate = wxPyBeginAllowThreads();
17620 result = (wxDateTime *)new wxDateTime(arg1);
17621
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17626 return resultobj;
17627 fail:
17628 return NULL;
17629}
17630
17631
17632static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj;
17634 int arg1 ;
17635 int arg2 = (int) 0 ;
17636 int arg3 = (int) 0 ;
17637 int arg4 = (int) 0 ;
17638 wxDateTime *result;
17639 PyObject * obj0 = 0 ;
17640 PyObject * obj1 = 0 ;
17641 PyObject * obj2 = 0 ;
17642 PyObject * obj3 = 0 ;
17643 char *kwnames[] = {
17644 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17645 };
17646
17647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17648 arg1 = (int) SWIG_AsInt(obj0);
17649 if (PyErr_Occurred()) SWIG_fail;
17650 if (obj1) {
17651 arg2 = (int) SWIG_AsInt(obj1);
17652 if (PyErr_Occurred()) SWIG_fail;
17653 }
17654 if (obj2) {
17655 arg3 = (int) SWIG_AsInt(obj2);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 }
17658 if (obj3) {
17659 arg4 = (int) SWIG_AsInt(obj3);
17660 if (PyErr_Occurred()) SWIG_fail;
17661 }
17662 {
17663 PyThreadState* __tstate = wxPyBeginAllowThreads();
17664 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17665
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17670 return resultobj;
17671 fail:
17672 return NULL;
17673}
17674
17675
17676static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17677 PyObject *resultobj;
17678 int arg1 ;
17679 int arg2 = (int) wxDateTime::Inv_Month ;
17680 int arg3 = (int) wxDateTime::Inv_Year ;
17681 int arg4 = (int) 0 ;
17682 int arg5 = (int) 0 ;
17683 int arg6 = (int) 0 ;
17684 int arg7 = (int) 0 ;
17685 wxDateTime *result;
17686 PyObject * obj0 = 0 ;
17687 PyObject * obj1 = 0 ;
17688 PyObject * obj2 = 0 ;
17689 PyObject * obj3 = 0 ;
17690 PyObject * obj4 = 0 ;
17691 PyObject * obj5 = 0 ;
17692 PyObject * obj6 = 0 ;
17693 char *kwnames[] = {
17694 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17695 };
17696
17697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17698 arg1 = (int) SWIG_AsInt(obj0);
17699 if (PyErr_Occurred()) SWIG_fail;
17700 if (obj1) {
17701 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17702 if (PyErr_Occurred()) SWIG_fail;
17703 }
17704 if (obj2) {
17705 arg3 = (int) SWIG_AsInt(obj2);
17706 if (PyErr_Occurred()) SWIG_fail;
17707 }
17708 if (obj3) {
17709 arg4 = (int) SWIG_AsInt(obj3);
17710 if (PyErr_Occurred()) SWIG_fail;
17711 }
17712 if (obj4) {
17713 arg5 = (int) SWIG_AsInt(obj4);
17714 if (PyErr_Occurred()) SWIG_fail;
17715 }
17716 if (obj5) {
17717 arg6 = (int) SWIG_AsInt(obj5);
17718 if (PyErr_Occurred()) SWIG_fail;
17719 }
17720 if (obj6) {
17721 arg7 = (int) SWIG_AsInt(obj6);
17722 if (PyErr_Occurred()) SWIG_fail;
17723 }
17724 {
17725 PyThreadState* __tstate = wxPyBeginAllowThreads();
17726 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17727
17728 wxPyEndAllowThreads(__tstate);
17729 if (PyErr_Occurred()) SWIG_fail;
17730 }
17731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17732 return resultobj;
17733 fail:
17734 return NULL;
17735}
17736
17737
17738static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17739 PyObject *resultobj;
17740 wxDateTime *arg1 = (wxDateTime *) 0 ;
17741 PyObject * obj0 = 0 ;
17742 char *kwnames[] = {
17743 (char *) "self", NULL
17744 };
17745
17746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17749 {
17750 PyThreadState* __tstate = wxPyBeginAllowThreads();
17751 delete arg1;
17752
17753 wxPyEndAllowThreads(__tstate);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 Py_INCREF(Py_None); resultobj = Py_None;
17757 return resultobj;
17758 fail:
17759 return NULL;
17760}
17761
17762
17763static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17764 PyObject *resultobj;
17765 wxDateTime *arg1 = (wxDateTime *) 0 ;
17766 wxDateTime *result;
17767 PyObject * obj0 = 0 ;
17768 char *kwnames[] = {
17769 (char *) "self", NULL
17770 };
17771
17772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17775 {
17776 PyThreadState* __tstate = wxPyBeginAllowThreads();
17777 {
17778 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17779 result = (wxDateTime *) &_result_ref;
17780 }
17781
17782 wxPyEndAllowThreads(__tstate);
17783 if (PyErr_Occurred()) SWIG_fail;
17784 }
17785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17786 return resultobj;
17787 fail:
17788 return NULL;
17789}
17790
17791
17792static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17793 PyObject *resultobj;
17794 wxDateTime *arg1 = (wxDateTime *) 0 ;
17795 time_t arg2 ;
17796 wxDateTime *result;
17797 PyObject * obj0 = 0 ;
17798 PyObject * obj1 = 0 ;
17799 char *kwnames[] = {
17800 (char *) "self",(char *) "timet", NULL
17801 };
17802
17803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17806 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17807 if (PyErr_Occurred()) SWIG_fail;
17808 {
17809 PyThreadState* __tstate = wxPyBeginAllowThreads();
17810 {
17811 wxDateTime &_result_ref = (arg1)->Set(arg2);
17812 result = (wxDateTime *) &_result_ref;
17813 }
17814
17815 wxPyEndAllowThreads(__tstate);
17816 if (PyErr_Occurred()) SWIG_fail;
17817 }
17818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17819 return resultobj;
17820 fail:
17821 return NULL;
17822}
17823
17824
17825static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17826 PyObject *resultobj;
17827 wxDateTime *arg1 = (wxDateTime *) 0 ;
17828 double arg2 ;
17829 wxDateTime *result;
17830 PyObject * obj0 = 0 ;
17831 PyObject * obj1 = 0 ;
17832 char *kwnames[] = {
17833 (char *) "self",(char *) "jdn", NULL
17834 };
17835
17836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17839 arg2 = (double) SWIG_AsDouble(obj1);
17840 if (PyErr_Occurred()) SWIG_fail;
17841 {
17842 PyThreadState* __tstate = wxPyBeginAllowThreads();
17843 {
17844 wxDateTime &_result_ref = (arg1)->Set(arg2);
17845 result = (wxDateTime *) &_result_ref;
17846 }
17847
17848 wxPyEndAllowThreads(__tstate);
17849 if (PyErr_Occurred()) SWIG_fail;
17850 }
17851 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17852 return resultobj;
17853 fail:
17854 return NULL;
17855}
17856
17857
17858static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17859 PyObject *resultobj;
17860 wxDateTime *arg1 = (wxDateTime *) 0 ;
17861 int arg2 ;
17862 int arg3 = (int) 0 ;
17863 int arg4 = (int) 0 ;
17864 int arg5 = (int) 0 ;
17865 wxDateTime *result;
17866 PyObject * obj0 = 0 ;
17867 PyObject * obj1 = 0 ;
17868 PyObject * obj2 = 0 ;
17869 PyObject * obj3 = 0 ;
17870 PyObject * obj4 = 0 ;
17871 char *kwnames[] = {
17872 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17873 };
17874
17875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17878 arg2 = (int) SWIG_AsInt(obj1);
17879 if (PyErr_Occurred()) SWIG_fail;
17880 if (obj2) {
17881 arg3 = (int) SWIG_AsInt(obj2);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 if (obj3) {
17885 arg4 = (int) SWIG_AsInt(obj3);
17886 if (PyErr_Occurred()) SWIG_fail;
17887 }
17888 if (obj4) {
17889 arg5 = (int) SWIG_AsInt(obj4);
17890 if (PyErr_Occurred()) SWIG_fail;
17891 }
17892 {
17893 PyThreadState* __tstate = wxPyBeginAllowThreads();
17894 {
17895 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17896 result = (wxDateTime *) &_result_ref;
17897 }
17898
17899 wxPyEndAllowThreads(__tstate);
17900 if (PyErr_Occurred()) SWIG_fail;
17901 }
17902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17903 return resultobj;
17904 fail:
17905 return NULL;
17906}
17907
17908
17909static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17910 PyObject *resultobj;
17911 wxDateTime *arg1 = (wxDateTime *) 0 ;
17912 int arg2 ;
17913 int arg3 = (int) wxDateTime::Inv_Month ;
17914 int arg4 = (int) wxDateTime::Inv_Year ;
17915 int arg5 = (int) 0 ;
17916 int arg6 = (int) 0 ;
17917 int arg7 = (int) 0 ;
17918 int arg8 = (int) 0 ;
17919 wxDateTime *result;
17920 PyObject * obj0 = 0 ;
17921 PyObject * obj1 = 0 ;
17922 PyObject * obj2 = 0 ;
17923 PyObject * obj3 = 0 ;
17924 PyObject * obj4 = 0 ;
17925 PyObject * obj5 = 0 ;
17926 PyObject * obj6 = 0 ;
17927 PyObject * obj7 = 0 ;
17928 char *kwnames[] = {
17929 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17930 };
17931
17932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17935 arg2 = (int) SWIG_AsInt(obj1);
17936 if (PyErr_Occurred()) SWIG_fail;
17937 if (obj2) {
17938 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17939 if (PyErr_Occurred()) SWIG_fail;
17940 }
17941 if (obj3) {
17942 arg4 = (int) SWIG_AsInt(obj3);
17943 if (PyErr_Occurred()) SWIG_fail;
17944 }
17945 if (obj4) {
17946 arg5 = (int) SWIG_AsInt(obj4);
17947 if (PyErr_Occurred()) SWIG_fail;
17948 }
17949 if (obj5) {
17950 arg6 = (int) SWIG_AsInt(obj5);
17951 if (PyErr_Occurred()) SWIG_fail;
17952 }
17953 if (obj6) {
17954 arg7 = (int) SWIG_AsInt(obj6);
17955 if (PyErr_Occurred()) SWIG_fail;
17956 }
17957 if (obj7) {
17958 arg8 = (int) SWIG_AsInt(obj7);
17959 if (PyErr_Occurred()) SWIG_fail;
17960 }
17961 {
17962 PyThreadState* __tstate = wxPyBeginAllowThreads();
17963 {
17964 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17965 result = (wxDateTime *) &_result_ref;
17966 }
17967
17968 wxPyEndAllowThreads(__tstate);
17969 if (PyErr_Occurred()) SWIG_fail;
17970 }
17971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17972 return resultobj;
17973 fail:
17974 return NULL;
17975}
17976
17977
17978static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17979 PyObject *resultobj;
17980 wxDateTime *arg1 = (wxDateTime *) 0 ;
17981 wxDateTime *result;
17982 PyObject * obj0 = 0 ;
17983 char *kwnames[] = {
17984 (char *) "self", NULL
17985 };
17986
17987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17990 {
17991 PyThreadState* __tstate = wxPyBeginAllowThreads();
17992 {
17993 wxDateTime &_result_ref = (arg1)->ResetTime();
17994 result = (wxDateTime *) &_result_ref;
17995 }
17996
17997 wxPyEndAllowThreads(__tstate);
17998 if (PyErr_Occurred()) SWIG_fail;
17999 }
18000 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18001 return resultobj;
18002 fail:
18003 return NULL;
18004}
18005
18006
18007static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18008 PyObject *resultobj;
18009 wxDateTime *arg1 = (wxDateTime *) 0 ;
18010 int arg2 ;
18011 wxDateTime *result;
18012 PyObject * obj0 = 0 ;
18013 PyObject * obj1 = 0 ;
18014 char *kwnames[] = {
18015 (char *) "self",(char *) "year", NULL
18016 };
18017
18018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
18019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18021 arg2 = (int) SWIG_AsInt(obj1);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 {
18024 PyThreadState* __tstate = wxPyBeginAllowThreads();
18025 {
18026 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
18027 result = (wxDateTime *) &_result_ref;
18028 }
18029
18030 wxPyEndAllowThreads(__tstate);
18031 if (PyErr_Occurred()) SWIG_fail;
18032 }
18033 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18034 return resultobj;
18035 fail:
18036 return NULL;
18037}
18038
18039
18040static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18041 PyObject *resultobj;
18042 wxDateTime *arg1 = (wxDateTime *) 0 ;
18043 int arg2 ;
18044 wxDateTime *result;
18045 PyObject * obj0 = 0 ;
18046 PyObject * obj1 = 0 ;
18047 char *kwnames[] = {
18048 (char *) "self",(char *) "month", NULL
18049 };
18050
18051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
18052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18054 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18055 if (PyErr_Occurred()) SWIG_fail;
18056 {
18057 PyThreadState* __tstate = wxPyBeginAllowThreads();
18058 {
18059 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
18060 result = (wxDateTime *) &_result_ref;
18061 }
18062
18063 wxPyEndAllowThreads(__tstate);
18064 if (PyErr_Occurred()) SWIG_fail;
18065 }
18066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18067 return resultobj;
18068 fail:
18069 return NULL;
18070}
18071
18072
18073static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18074 PyObject *resultobj;
18075 wxDateTime *arg1 = (wxDateTime *) 0 ;
18076 int arg2 ;
18077 wxDateTime *result;
18078 PyObject * obj0 = 0 ;
18079 PyObject * obj1 = 0 ;
18080 char *kwnames[] = {
18081 (char *) "self",(char *) "day", NULL
18082 };
18083
18084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
18085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18087 arg2 = (int) SWIG_AsInt(obj1);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 {
18090 PyThreadState* __tstate = wxPyBeginAllowThreads();
18091 {
18092 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
18093 result = (wxDateTime *) &_result_ref;
18094 }
18095
18096 wxPyEndAllowThreads(__tstate);
18097 if (PyErr_Occurred()) SWIG_fail;
18098 }
18099 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18100 return resultobj;
18101 fail:
18102 return NULL;
18103}
18104
18105
18106static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
18107 PyObject *resultobj;
18108 wxDateTime *arg1 = (wxDateTime *) 0 ;
18109 int arg2 ;
18110 wxDateTime *result;
18111 PyObject * obj0 = 0 ;
18112 PyObject * obj1 = 0 ;
18113 char *kwnames[] = {
18114 (char *) "self",(char *) "hour", NULL
18115 };
18116
18117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18120 arg2 = (int) SWIG_AsInt(obj1);
18121 if (PyErr_Occurred()) SWIG_fail;
18122 {
18123 PyThreadState* __tstate = wxPyBeginAllowThreads();
18124 {
18125 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18126 result = (wxDateTime *) &_result_ref;
18127 }
18128
18129 wxPyEndAllowThreads(__tstate);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18133 return resultobj;
18134 fail:
18135 return NULL;
18136}
18137
18138
18139static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj;
18141 wxDateTime *arg1 = (wxDateTime *) 0 ;
18142 int arg2 ;
18143 wxDateTime *result;
18144 PyObject * obj0 = 0 ;
18145 PyObject * obj1 = 0 ;
18146 char *kwnames[] = {
18147 (char *) "self",(char *) "minute", NULL
18148 };
18149
18150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18153 arg2 = (int) SWIG_AsInt(obj1);
18154 if (PyErr_Occurred()) SWIG_fail;
18155 {
18156 PyThreadState* __tstate = wxPyBeginAllowThreads();
18157 {
18158 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18159 result = (wxDateTime *) &_result_ref;
18160 }
18161
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18166 return resultobj;
18167 fail:
18168 return NULL;
18169}
18170
18171
18172static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18173 PyObject *resultobj;
18174 wxDateTime *arg1 = (wxDateTime *) 0 ;
18175 int arg2 ;
18176 wxDateTime *result;
18177 PyObject * obj0 = 0 ;
18178 PyObject * obj1 = 0 ;
18179 char *kwnames[] = {
18180 (char *) "self",(char *) "second", NULL
18181 };
18182
18183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18186 arg2 = (int) SWIG_AsInt(obj1);
18187 if (PyErr_Occurred()) SWIG_fail;
18188 {
18189 PyThreadState* __tstate = wxPyBeginAllowThreads();
18190 {
18191 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18192 result = (wxDateTime *) &_result_ref;
18193 }
18194
18195 wxPyEndAllowThreads(__tstate);
18196 if (PyErr_Occurred()) SWIG_fail;
18197 }
18198 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18199 return resultobj;
18200 fail:
18201 return NULL;
18202}
18203
18204
18205static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18206 PyObject *resultobj;
18207 wxDateTime *arg1 = (wxDateTime *) 0 ;
18208 int arg2 ;
18209 wxDateTime *result;
18210 PyObject * obj0 = 0 ;
18211 PyObject * obj1 = 0 ;
18212 char *kwnames[] = {
18213 (char *) "self",(char *) "millisecond", NULL
18214 };
18215
18216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18219 arg2 = (int) SWIG_AsInt(obj1);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 {
18222 PyThreadState* __tstate = wxPyBeginAllowThreads();
18223 {
18224 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18225 result = (wxDateTime *) &_result_ref;
18226 }
18227
18228 wxPyEndAllowThreads(__tstate);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
18231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18232 return resultobj;
18233 fail:
18234 return NULL;
18235}
18236
18237
18238static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18239 PyObject *resultobj;
18240 wxDateTime *arg1 = (wxDateTime *) 0 ;
18241 int arg2 ;
18242 int arg3 = (int) wxDateTime::Monday_First ;
18243 wxDateTime *result;
18244 PyObject * obj0 = 0 ;
18245 PyObject * obj1 = 0 ;
18246 PyObject * obj2 = 0 ;
18247 char *kwnames[] = {
18248 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18249 };
18250
18251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18254 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18255 if (PyErr_Occurred()) SWIG_fail;
18256 if (obj2) {
18257 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18258 if (PyErr_Occurred()) SWIG_fail;
18259 }
18260 {
18261 PyThreadState* __tstate = wxPyBeginAllowThreads();
18262 {
18263 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18264 result = (wxDateTime *) &_result_ref;
18265 }
18266
18267 wxPyEndAllowThreads(__tstate);
18268 if (PyErr_Occurred()) SWIG_fail;
18269 }
18270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18271 return resultobj;
18272 fail:
18273 return NULL;
18274}
18275
18276
18277static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18278 PyObject *resultobj;
18279 wxDateTime *arg1 = (wxDateTime *) 0 ;
18280 int arg2 ;
18281 int arg3 = (int) wxDateTime::Monday_First ;
18282 wxDateTime result;
18283 PyObject * obj0 = 0 ;
18284 PyObject * obj1 = 0 ;
18285 PyObject * obj2 = 0 ;
18286 char *kwnames[] = {
18287 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18288 };
18289
18290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18293 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18294 if (PyErr_Occurred()) SWIG_fail;
18295 if (obj2) {
18296 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18297 if (PyErr_Occurred()) SWIG_fail;
18298 }
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18302
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 {
18307 wxDateTime * resultptr;
18308 resultptr = new wxDateTime((wxDateTime &) result);
18309 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18310 }
18311 return resultobj;
18312 fail:
18313 return NULL;
18314}
18315
18316
18317static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18318 PyObject *resultobj;
18319 wxDateTime *arg1 = (wxDateTime *) 0 ;
18320 int arg2 ;
18321 wxDateTime *result;
18322 PyObject * obj0 = 0 ;
18323 PyObject * obj1 = 0 ;
18324 char *kwnames[] = {
18325 (char *) "self",(char *) "weekday", NULL
18326 };
18327
18328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18331 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 {
18334 PyThreadState* __tstate = wxPyBeginAllowThreads();
18335 {
18336 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18337 result = (wxDateTime *) &_result_ref;
18338 }
18339
18340 wxPyEndAllowThreads(__tstate);
18341 if (PyErr_Occurred()) SWIG_fail;
18342 }
18343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18344 return resultobj;
18345 fail:
18346 return NULL;
18347}
18348
18349
18350static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18351 PyObject *resultobj;
18352 wxDateTime *arg1 = (wxDateTime *) 0 ;
18353 int arg2 ;
18354 wxDateTime result;
18355 PyObject * obj0 = 0 ;
18356 PyObject * obj1 = 0 ;
18357 char *kwnames[] = {
18358 (char *) "self",(char *) "weekday", NULL
18359 };
18360
18361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18364 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18365 if (PyErr_Occurred()) SWIG_fail;
18366 {
18367 PyThreadState* __tstate = wxPyBeginAllowThreads();
18368 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18369
18370 wxPyEndAllowThreads(__tstate);
18371 if (PyErr_Occurred()) SWIG_fail;
18372 }
18373 {
18374 wxDateTime * resultptr;
18375 resultptr = new wxDateTime((wxDateTime &) result);
18376 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18377 }
18378 return resultobj;
18379 fail:
18380 return NULL;
18381}
18382
18383
18384static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18385 PyObject *resultobj;
18386 wxDateTime *arg1 = (wxDateTime *) 0 ;
18387 int arg2 ;
18388 wxDateTime *result;
18389 PyObject * obj0 = 0 ;
18390 PyObject * obj1 = 0 ;
18391 char *kwnames[] = {
18392 (char *) "self",(char *) "weekday", NULL
18393 };
18394
18395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18398 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18399 if (PyErr_Occurred()) SWIG_fail;
18400 {
18401 PyThreadState* __tstate = wxPyBeginAllowThreads();
18402 {
18403 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18404 result = (wxDateTime *) &_result_ref;
18405 }
18406
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18411 return resultobj;
18412 fail:
18413 return NULL;
18414}
18415
18416
18417static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18418 PyObject *resultobj;
18419 wxDateTime *arg1 = (wxDateTime *) 0 ;
18420 int arg2 ;
18421 wxDateTime result;
18422 PyObject * obj0 = 0 ;
18423 PyObject * obj1 = 0 ;
18424 char *kwnames[] = {
18425 (char *) "self",(char *) "weekday", NULL
18426 };
18427
18428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18431 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18432 if (PyErr_Occurred()) SWIG_fail;
18433 {
18434 PyThreadState* __tstate = wxPyBeginAllowThreads();
18435 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18436
18437 wxPyEndAllowThreads(__tstate);
18438 if (PyErr_Occurred()) SWIG_fail;
18439 }
18440 {
18441 wxDateTime * resultptr;
18442 resultptr = new wxDateTime((wxDateTime &) result);
18443 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18444 }
18445 return resultobj;
18446 fail:
18447 return NULL;
18448}
18449
18450
18451static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18452 PyObject *resultobj;
18453 wxDateTime *arg1 = (wxDateTime *) 0 ;
18454 int arg2 ;
18455 int arg3 = (int) 1 ;
18456 int arg4 = (int) wxDateTime::Inv_Month ;
18457 int arg5 = (int) wxDateTime::Inv_Year ;
18458 bool result;
18459 PyObject * obj0 = 0 ;
18460 PyObject * obj1 = 0 ;
18461 PyObject * obj2 = 0 ;
18462 PyObject * obj3 = 0 ;
18463 PyObject * obj4 = 0 ;
18464 char *kwnames[] = {
18465 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18466 };
18467
18468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18471 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 if (obj2) {
18474 arg3 = (int) SWIG_AsInt(obj2);
18475 if (PyErr_Occurred()) SWIG_fail;
18476 }
18477 if (obj3) {
18478 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18479 if (PyErr_Occurred()) SWIG_fail;
18480 }
18481 if (obj4) {
18482 arg5 = (int) SWIG_AsInt(obj4);
18483 if (PyErr_Occurred()) SWIG_fail;
18484 }
18485 {
18486 PyThreadState* __tstate = wxPyBeginAllowThreads();
18487 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18488
18489 wxPyEndAllowThreads(__tstate);
18490 if (PyErr_Occurred()) SWIG_fail;
18491 }
18492 {
18493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18494 }
18495 return resultobj;
18496 fail:
18497 return NULL;
18498}
18499
18500
18501static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18502 PyObject *resultobj;
18503 wxDateTime *arg1 = (wxDateTime *) 0 ;
18504 int arg2 ;
18505 int arg3 = (int) wxDateTime::Inv_Month ;
18506 int arg4 = (int) wxDateTime::Inv_Year ;
18507 bool result;
18508 PyObject * obj0 = 0 ;
18509 PyObject * obj1 = 0 ;
18510 PyObject * obj2 = 0 ;
18511 PyObject * obj3 = 0 ;
18512 char *kwnames[] = {
18513 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18514 };
18515
18516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18519 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18520 if (PyErr_Occurred()) SWIG_fail;
18521 if (obj2) {
18522 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18523 if (PyErr_Occurred()) SWIG_fail;
18524 }
18525 if (obj3) {
18526 arg4 = (int) SWIG_AsInt(obj3);
18527 if (PyErr_Occurred()) SWIG_fail;
18528 }
18529 {
18530 PyThreadState* __tstate = wxPyBeginAllowThreads();
18531 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18532
18533 wxPyEndAllowThreads(__tstate);
18534 if (PyErr_Occurred()) SWIG_fail;
18535 }
18536 {
18537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18538 }
18539 return resultobj;
18540 fail:
18541 return NULL;
18542}
18543
18544
18545static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18546 PyObject *resultobj;
18547 wxDateTime *arg1 = (wxDateTime *) 0 ;
18548 int arg2 ;
18549 int arg3 = (int) wxDateTime::Inv_Month ;
18550 int arg4 = (int) wxDateTime::Inv_Year ;
18551 wxDateTime result;
18552 PyObject * obj0 = 0 ;
18553 PyObject * obj1 = 0 ;
18554 PyObject * obj2 = 0 ;
18555 PyObject * obj3 = 0 ;
18556 char *kwnames[] = {
18557 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18558 };
18559
18560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18563 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18564 if (PyErr_Occurred()) SWIG_fail;
18565 if (obj2) {
18566 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18567 if (PyErr_Occurred()) SWIG_fail;
18568 }
18569 if (obj3) {
18570 arg4 = (int) SWIG_AsInt(obj3);
18571 if (PyErr_Occurred()) SWIG_fail;
18572 }
18573 {
18574 PyThreadState* __tstate = wxPyBeginAllowThreads();
18575 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18576
18577 wxPyEndAllowThreads(__tstate);
18578 if (PyErr_Occurred()) SWIG_fail;
18579 }
18580 {
18581 wxDateTime * resultptr;
18582 resultptr = new wxDateTime((wxDateTime &) result);
18583 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18584 }
18585 return resultobj;
18586 fail:
18587 return NULL;
18588}
18589
18590
18591static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18592 PyObject *resultobj;
18593 wxDateTime *arg1 = (wxDateTime *) 0 ;
18594 int arg2 ;
18595 int arg3 = (int) wxDateTime::Mon ;
18596 int arg4 = (int) wxDateTime::Monday_First ;
18597 bool result;
18598 PyObject * obj0 = 0 ;
18599 PyObject * obj1 = 0 ;
18600 PyObject * obj2 = 0 ;
18601 PyObject * obj3 = 0 ;
18602 char *kwnames[] = {
18603 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18604 };
18605
18606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18609 arg2 = (int) SWIG_AsInt(obj1);
18610 if (PyErr_Occurred()) SWIG_fail;
18611 if (obj2) {
18612 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18613 if (PyErr_Occurred()) SWIG_fail;
18614 }
18615 if (obj3) {
18616 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18617 if (PyErr_Occurred()) SWIG_fail;
18618 }
18619 {
18620 PyThreadState* __tstate = wxPyBeginAllowThreads();
18621 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18622
18623 wxPyEndAllowThreads(__tstate);
18624 if (PyErr_Occurred()) SWIG_fail;
18625 }
18626 {
18627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18628 }
18629 return resultobj;
18630 fail:
18631 return NULL;
18632}
18633
18634
18635static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18636 PyObject *resultobj;
18637 wxDateTime *arg1 = (wxDateTime *) 0 ;
18638 int arg2 ;
18639 int arg3 = (int) wxDateTime::Mon ;
18640 int arg4 = (int) wxDateTime::Monday_First ;
18641 wxDateTime result;
18642 PyObject * obj0 = 0 ;
18643 PyObject * obj1 = 0 ;
18644 PyObject * obj2 = 0 ;
18645 PyObject * obj3 = 0 ;
18646 char *kwnames[] = {
18647 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18648 };
18649
18650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18653 arg2 = (int) SWIG_AsInt(obj1);
18654 if (PyErr_Occurred()) SWIG_fail;
18655 if (obj2) {
18656 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18657 if (PyErr_Occurred()) SWIG_fail;
18658 }
18659 if (obj3) {
18660 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18661 if (PyErr_Occurred()) SWIG_fail;
18662 }
18663 {
18664 PyThreadState* __tstate = wxPyBeginAllowThreads();
18665 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18666
18667 wxPyEndAllowThreads(__tstate);
18668 if (PyErr_Occurred()) SWIG_fail;
18669 }
18670 {
18671 wxDateTime * resultptr;
18672 resultptr = new wxDateTime((wxDateTime &) result);
18673 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18674 }
18675 return resultobj;
18676 fail:
18677 return NULL;
18678}
18679
18680
18681static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18682 PyObject *resultobj;
18683 wxDateTime *arg1 = (wxDateTime *) 0 ;
18684 int arg2 = (int) wxDateTime::Inv_Month ;
18685 int arg3 = (int) wxDateTime::Inv_Year ;
18686 wxDateTime *result;
18687 PyObject * obj0 = 0 ;
18688 PyObject * obj1 = 0 ;
18689 PyObject * obj2 = 0 ;
18690 char *kwnames[] = {
18691 (char *) "self",(char *) "month",(char *) "year", NULL
18692 };
18693
18694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18697 if (obj1) {
18698 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18699 if (PyErr_Occurred()) SWIG_fail;
18700 }
18701 if (obj2) {
18702 arg3 = (int) SWIG_AsInt(obj2);
18703 if (PyErr_Occurred()) SWIG_fail;
18704 }
18705 {
18706 PyThreadState* __tstate = wxPyBeginAllowThreads();
18707 {
18708 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18709 result = (wxDateTime *) &_result_ref;
18710 }
18711
18712 wxPyEndAllowThreads(__tstate);
18713 if (PyErr_Occurred()) SWIG_fail;
18714 }
18715 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18716 return resultobj;
18717 fail:
18718 return NULL;
18719}
18720
18721
18722static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18723 PyObject *resultobj;
18724 wxDateTime *arg1 = (wxDateTime *) 0 ;
18725 int arg2 = (int) wxDateTime::Inv_Month ;
18726 int arg3 = (int) wxDateTime::Inv_Year ;
18727 wxDateTime result;
18728 PyObject * obj0 = 0 ;
18729 PyObject * obj1 = 0 ;
18730 PyObject * obj2 = 0 ;
18731 char *kwnames[] = {
18732 (char *) "self",(char *) "month",(char *) "year", NULL
18733 };
18734
18735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18738 if (obj1) {
18739 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18740 if (PyErr_Occurred()) SWIG_fail;
18741 }
18742 if (obj2) {
18743 arg3 = (int) SWIG_AsInt(obj2);
18744 if (PyErr_Occurred()) SWIG_fail;
18745 }
18746 {
18747 PyThreadState* __tstate = wxPyBeginAllowThreads();
18748 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18749
18750 wxPyEndAllowThreads(__tstate);
18751 if (PyErr_Occurred()) SWIG_fail;
18752 }
18753 {
18754 wxDateTime * resultptr;
18755 resultptr = new wxDateTime((wxDateTime &) result);
18756 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18757 }
18758 return resultobj;
18759 fail:
18760 return NULL;
18761}
18762
18763
18764static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18765 PyObject *resultobj;
18766 wxDateTime *arg1 = (wxDateTime *) 0 ;
18767 int arg2 ;
18768 wxDateTime *result;
18769 PyObject * obj0 = 0 ;
18770 PyObject * obj1 = 0 ;
18771 char *kwnames[] = {
18772 (char *) "self",(char *) "yday", NULL
18773 };
18774
18775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18778 arg2 = (int) SWIG_AsInt(obj1);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 {
18781 PyThreadState* __tstate = wxPyBeginAllowThreads();
18782 {
18783 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18784 result = (wxDateTime *) &_result_ref;
18785 }
18786
18787 wxPyEndAllowThreads(__tstate);
18788 if (PyErr_Occurred()) SWIG_fail;
18789 }
18790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18791 return resultobj;
18792 fail:
18793 return NULL;
18794}
18795
18796
18797static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18798 PyObject *resultobj;
18799 wxDateTime *arg1 = (wxDateTime *) 0 ;
18800 int arg2 ;
18801 wxDateTime result;
18802 PyObject * obj0 = 0 ;
18803 PyObject * obj1 = 0 ;
18804 char *kwnames[] = {
18805 (char *) "self",(char *) "yday", NULL
18806 };
18807
18808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18811 arg2 = (int) SWIG_AsInt(obj1);
18812 if (PyErr_Occurred()) SWIG_fail;
18813 {
18814 PyThreadState* __tstate = wxPyBeginAllowThreads();
18815 result = (arg1)->GetYearDay(arg2);
18816
18817 wxPyEndAllowThreads(__tstate);
18818 if (PyErr_Occurred()) SWIG_fail;
18819 }
18820 {
18821 wxDateTime * resultptr;
18822 resultptr = new wxDateTime((wxDateTime &) result);
18823 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18824 }
18825 return resultobj;
18826 fail:
18827 return NULL;
18828}
18829
18830
18831static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj;
18833 wxDateTime *arg1 = (wxDateTime *) 0 ;
18834 double result;
18835 PyObject * obj0 = 0 ;
18836 char *kwnames[] = {
18837 (char *) "self", NULL
18838 };
18839
18840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18843 {
18844 PyThreadState* __tstate = wxPyBeginAllowThreads();
18845 result = (double)(arg1)->GetJulianDayNumber();
18846
18847 wxPyEndAllowThreads(__tstate);
18848 if (PyErr_Occurred()) SWIG_fail;
18849 }
18850 resultobj = SWIG_FromDouble((double)result);
18851 return resultobj;
18852 fail:
18853 return NULL;
18854}
18855
18856
18857static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18858 PyObject *resultobj;
18859 wxDateTime *arg1 = (wxDateTime *) 0 ;
18860 double result;
18861 PyObject * obj0 = 0 ;
18862 char *kwnames[] = {
18863 (char *) "self", NULL
18864 };
18865
18866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18869 {
18870 PyThreadState* __tstate = wxPyBeginAllowThreads();
18871 result = (double)(arg1)->GetJDN();
18872
18873 wxPyEndAllowThreads(__tstate);
18874 if (PyErr_Occurred()) SWIG_fail;
18875 }
18876 resultobj = SWIG_FromDouble((double)result);
18877 return resultobj;
18878 fail:
18879 return NULL;
18880}
18881
18882
18883static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18884 PyObject *resultobj;
18885 wxDateTime *arg1 = (wxDateTime *) 0 ;
18886 double result;
18887 PyObject * obj0 = 0 ;
18888 char *kwnames[] = {
18889 (char *) "self", NULL
18890 };
18891
18892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18895 {
18896 PyThreadState* __tstate = wxPyBeginAllowThreads();
18897 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18898
18899 wxPyEndAllowThreads(__tstate);
18900 if (PyErr_Occurred()) SWIG_fail;
18901 }
18902 resultobj = SWIG_FromDouble((double)result);
18903 return resultobj;
18904 fail:
18905 return NULL;
18906}
18907
18908
18909static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18910 PyObject *resultobj;
18911 wxDateTime *arg1 = (wxDateTime *) 0 ;
18912 double result;
18913 PyObject * obj0 = 0 ;
18914 char *kwnames[] = {
18915 (char *) "self", NULL
18916 };
18917
18918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18921 {
18922 PyThreadState* __tstate = wxPyBeginAllowThreads();
18923 result = (double)(arg1)->GetMJD();
18924
18925 wxPyEndAllowThreads(__tstate);
18926 if (PyErr_Occurred()) SWIG_fail;
18927 }
18928 resultobj = SWIG_FromDouble((double)result);
18929 return resultobj;
18930 fail:
18931 return NULL;
18932}
18933
18934
18935static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18936 PyObject *resultobj;
18937 wxDateTime *arg1 = (wxDateTime *) 0 ;
18938 double result;
18939 PyObject * obj0 = 0 ;
18940 char *kwnames[] = {
18941 (char *) "self", NULL
18942 };
18943
18944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18947 {
18948 PyThreadState* __tstate = wxPyBeginAllowThreads();
18949 result = (double)(arg1)->GetRataDie();
18950
18951 wxPyEndAllowThreads(__tstate);
18952 if (PyErr_Occurred()) SWIG_fail;
18953 }
18954 resultobj = SWIG_FromDouble((double)result);
18955 return resultobj;
18956 fail:
18957 return NULL;
18958}
18959
18960
18961static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18962 PyObject *resultobj;
18963 wxDateTime *arg1 = (wxDateTime *) 0 ;
18964 wxDateTime::TimeZone *arg2 = 0 ;
18965 bool arg3 = (bool) False ;
18966 wxDateTime result;
18967 bool temp2 = False ;
18968 PyObject * obj0 = 0 ;
18969 PyObject * obj1 = 0 ;
18970 PyObject * obj2 = 0 ;
18971 char *kwnames[] = {
18972 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18973 };
18974
18975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18978 {
18979 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18980 temp2 = True;
18981 }
18982 if (obj2) {
18983 arg3 = (bool) SWIG_AsBool(obj2);
18984 if (PyErr_Occurred()) SWIG_fail;
18985 }
18986 {
18987 PyThreadState* __tstate = wxPyBeginAllowThreads();
18988 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18989
18990 wxPyEndAllowThreads(__tstate);
18991 if (PyErr_Occurred()) SWIG_fail;
18992 }
18993 {
18994 wxDateTime * resultptr;
18995 resultptr = new wxDateTime((wxDateTime &) result);
18996 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18997 }
18998 {
18999 if (temp2) delete arg2;
19000 }
19001 return resultobj;
19002 fail:
19003 {
19004 if (temp2) delete arg2;
19005 }
19006 return NULL;
19007}
19008
19009
19010static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
19011 PyObject *resultobj;
19012 wxDateTime *arg1 = (wxDateTime *) 0 ;
19013 wxDateTime::TimeZone *arg2 = 0 ;
19014 bool arg3 = (bool) False ;
19015 wxDateTime *result;
19016 bool temp2 = False ;
19017 PyObject * obj0 = 0 ;
19018 PyObject * obj1 = 0 ;
19019 PyObject * obj2 = 0 ;
19020 char *kwnames[] = {
19021 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19022 };
19023
19024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19027 {
19028 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19029 temp2 = True;
19030 }
19031 if (obj2) {
19032 arg3 = (bool) SWIG_AsBool(obj2);
19033 if (PyErr_Occurred()) SWIG_fail;
19034 }
19035 {
19036 PyThreadState* __tstate = wxPyBeginAllowThreads();
19037 {
19038 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19039 result = (wxDateTime *) &_result_ref;
19040 }
19041
19042 wxPyEndAllowThreads(__tstate);
19043 if (PyErr_Occurred()) SWIG_fail;
19044 }
19045 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19046 {
19047 if (temp2) delete arg2;
19048 }
19049 return resultobj;
19050 fail:
19051 {
19052 if (temp2) delete arg2;
19053 }
19054 return NULL;
19055}
19056
19057
19058static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
19059 PyObject *resultobj;
19060 wxDateTime *arg1 = (wxDateTime *) 0 ;
19061 bool arg2 = (bool) False ;
19062 wxDateTime result;
19063 PyObject * obj0 = 0 ;
19064 PyObject * obj1 = 0 ;
19065 char *kwnames[] = {
19066 (char *) "self",(char *) "noDST", NULL
19067 };
19068
19069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
19070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19072 if (obj1) {
19073 arg2 = (bool) SWIG_AsBool(obj1);
19074 if (PyErr_Occurred()) SWIG_fail;
19075 }
19076 {
19077 PyThreadState* __tstate = wxPyBeginAllowThreads();
19078 result = (arg1)->ToGMT(arg2);
19079
19080 wxPyEndAllowThreads(__tstate);
19081 if (PyErr_Occurred()) SWIG_fail;
19082 }
19083 {
19084 wxDateTime * resultptr;
19085 resultptr = new wxDateTime((wxDateTime &) result);
19086 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19087 }
19088 return resultobj;
19089 fail:
19090 return NULL;
19091}
19092
19093
19094static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
19095 PyObject *resultobj;
19096 wxDateTime *arg1 = (wxDateTime *) 0 ;
19097 bool arg2 = (bool) False ;
19098 wxDateTime *result;
19099 PyObject * obj0 = 0 ;
19100 PyObject * obj1 = 0 ;
19101 char *kwnames[] = {
19102 (char *) "self",(char *) "noDST", NULL
19103 };
19104
19105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19108 if (obj1) {
19109 arg2 = (bool) SWIG_AsBool(obj1);
19110 if (PyErr_Occurred()) SWIG_fail;
19111 }
19112 {
19113 PyThreadState* __tstate = wxPyBeginAllowThreads();
19114 {
19115 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19116 result = (wxDateTime *) &_result_ref;
19117 }
19118
19119 wxPyEndAllowThreads(__tstate);
19120 if (PyErr_Occurred()) SWIG_fail;
19121 }
19122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19123 return resultobj;
19124 fail:
19125 return NULL;
19126}
19127
19128
19129static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
19130 PyObject *resultobj;
19131 wxDateTime *arg1 = (wxDateTime *) 0 ;
19132 int arg2 = (int) wxDateTime::Country_Default ;
19133 int result;
19134 PyObject * obj0 = 0 ;
19135 PyObject * obj1 = 0 ;
19136 char *kwnames[] = {
19137 (char *) "self",(char *) "country", NULL
19138 };
19139
19140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19143 if (obj1) {
19144 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19145 if (PyErr_Occurred()) SWIG_fail;
19146 }
19147 {
19148 PyThreadState* __tstate = wxPyBeginAllowThreads();
19149 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19150
19151 wxPyEndAllowThreads(__tstate);
19152 if (PyErr_Occurred()) SWIG_fail;
19153 }
19154 resultobj = SWIG_FromInt((int)result);
19155 return resultobj;
19156 fail:
19157 return NULL;
19158}
19159
19160
19161static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
19162 PyObject *resultobj;
19163 wxDateTime *arg1 = (wxDateTime *) 0 ;
19164 bool result;
19165 PyObject * obj0 = 0 ;
19166 char *kwnames[] = {
19167 (char *) "self", NULL
19168 };
19169
19170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 result = (bool)((wxDateTime const *)arg1)->IsValid();
19176
19177 wxPyEndAllowThreads(__tstate);
19178 if (PyErr_Occurred()) SWIG_fail;
19179 }
19180 {
19181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19182 }
19183 return resultobj;
19184 fail:
19185 return NULL;
19186}
19187
19188
19189static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
19190 PyObject *resultobj;
19191 wxDateTime *arg1 = (wxDateTime *) 0 ;
19192 time_t result;
19193 PyObject * obj0 = 0 ;
19194 char *kwnames[] = {
19195 (char *) "self", NULL
19196 };
19197
19198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19201 {
19202 PyThreadState* __tstate = wxPyBeginAllowThreads();
19203 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19204
19205 wxPyEndAllowThreads(__tstate);
19206 if (PyErr_Occurred()) SWIG_fail;
19207 }
19208 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
19209 return resultobj;
19210 fail:
19211 return NULL;
19212}
19213
19214
19215static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19216 PyObject *resultobj;
19217 wxDateTime *arg1 = (wxDateTime *) 0 ;
19218 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19219 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19220 int result;
19221 bool temp2 = False ;
19222 PyObject * obj0 = 0 ;
19223 PyObject * obj1 = 0 ;
19224 char *kwnames[] = {
19225 (char *) "self",(char *) "tz", NULL
19226 };
19227
19228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19231 if (obj1) {
19232 {
19233 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19234 temp2 = True;
19235 }
19236 }
19237 {
19238 PyThreadState* __tstate = wxPyBeginAllowThreads();
19239 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19240
19241 wxPyEndAllowThreads(__tstate);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 }
19244 resultobj = SWIG_FromInt((int)result);
19245 {
19246 if (temp2) delete arg2;
19247 }
19248 return resultobj;
19249 fail:
19250 {
19251 if (temp2) delete arg2;
19252 }
19253 return NULL;
19254}
19255
19256
19257static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19258 PyObject *resultobj;
19259 wxDateTime *arg1 = (wxDateTime *) 0 ;
19260 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19261 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19262 int result;
19263 bool temp2 = False ;
19264 PyObject * obj0 = 0 ;
19265 PyObject * obj1 = 0 ;
19266 char *kwnames[] = {
19267 (char *) "self",(char *) "tz", NULL
19268 };
19269
19270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19273 if (obj1) {
19274 {
19275 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19276 temp2 = True;
19277 }
19278 }
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19282
19283 wxPyEndAllowThreads(__tstate);
19284 if (PyErr_Occurred()) SWIG_fail;
19285 }
19286 resultobj = SWIG_FromInt((int)result);
19287 {
19288 if (temp2) delete arg2;
19289 }
19290 return resultobj;
19291 fail:
19292 {
19293 if (temp2) delete arg2;
19294 }
19295 return NULL;
19296}
19297
19298
19299static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19300 PyObject *resultobj;
19301 wxDateTime *arg1 = (wxDateTime *) 0 ;
19302 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19303 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19304 int result;
19305 bool temp2 = False ;
19306 PyObject * obj0 = 0 ;
19307 PyObject * obj1 = 0 ;
19308 char *kwnames[] = {
19309 (char *) "self",(char *) "tz", NULL
19310 };
19311
19312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19315 if (obj1) {
19316 {
19317 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19318 temp2 = True;
19319 }
19320 }
19321 {
19322 PyThreadState* __tstate = wxPyBeginAllowThreads();
19323 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19324
19325 wxPyEndAllowThreads(__tstate);
19326 if (PyErr_Occurred()) SWIG_fail;
19327 }
19328 resultobj = SWIG_FromInt((int)result);
19329 {
19330 if (temp2) delete arg2;
19331 }
19332 return resultobj;
19333 fail:
19334 {
19335 if (temp2) delete arg2;
19336 }
19337 return NULL;
19338}
19339
19340
19341static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19342 PyObject *resultobj;
19343 wxDateTime *arg1 = (wxDateTime *) 0 ;
19344 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19345 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19346 int result;
19347 bool temp2 = False ;
19348 PyObject * obj0 = 0 ;
19349 PyObject * obj1 = 0 ;
19350 char *kwnames[] = {
19351 (char *) "self",(char *) "tz", NULL
19352 };
19353
19354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19357 if (obj1) {
19358 {
19359 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19360 temp2 = True;
19361 }
19362 }
19363 {
19364 PyThreadState* __tstate = wxPyBeginAllowThreads();
19365 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19366
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 resultobj = SWIG_FromInt((int)result);
19371 {
19372 if (temp2) delete arg2;
19373 }
19374 return resultobj;
19375 fail:
19376 {
19377 if (temp2) delete arg2;
19378 }
19379 return NULL;
19380}
19381
19382
19383static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19384 PyObject *resultobj;
19385 wxDateTime *arg1 = (wxDateTime *) 0 ;
19386 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19387 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19388 int result;
19389 bool temp2 = False ;
19390 PyObject * obj0 = 0 ;
19391 PyObject * obj1 = 0 ;
19392 char *kwnames[] = {
19393 (char *) "self",(char *) "tz", NULL
19394 };
19395
19396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19399 if (obj1) {
19400 {
19401 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19402 temp2 = True;
19403 }
19404 }
19405 {
19406 PyThreadState* __tstate = wxPyBeginAllowThreads();
19407 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19408
19409 wxPyEndAllowThreads(__tstate);
19410 if (PyErr_Occurred()) SWIG_fail;
19411 }
19412 resultobj = SWIG_FromInt((int)result);
19413 {
19414 if (temp2) delete arg2;
19415 }
19416 return resultobj;
19417 fail:
19418 {
19419 if (temp2) delete arg2;
19420 }
19421 return NULL;
19422}
19423
19424
19425static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19426 PyObject *resultobj;
19427 wxDateTime *arg1 = (wxDateTime *) 0 ;
19428 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19429 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19430 int result;
19431 bool temp2 = False ;
19432 PyObject * obj0 = 0 ;
19433 PyObject * obj1 = 0 ;
19434 char *kwnames[] = {
19435 (char *) "self",(char *) "tz", NULL
19436 };
19437
19438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19441 if (obj1) {
19442 {
19443 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19444 temp2 = True;
19445 }
19446 }
19447 {
19448 PyThreadState* __tstate = wxPyBeginAllowThreads();
19449 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19450
19451 wxPyEndAllowThreads(__tstate);
19452 if (PyErr_Occurred()) SWIG_fail;
19453 }
19454 resultobj = SWIG_FromInt((int)result);
19455 {
19456 if (temp2) delete arg2;
19457 }
19458 return resultobj;
19459 fail:
19460 {
19461 if (temp2) delete arg2;
19462 }
19463 return NULL;
19464}
19465
19466
19467static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19468 PyObject *resultobj;
19469 wxDateTime *arg1 = (wxDateTime *) 0 ;
19470 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19471 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19472 int result;
19473 bool temp2 = False ;
19474 PyObject * obj0 = 0 ;
19475 PyObject * obj1 = 0 ;
19476 char *kwnames[] = {
19477 (char *) "self",(char *) "tz", NULL
19478 };
19479
19480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19483 if (obj1) {
19484 {
19485 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19486 temp2 = True;
19487 }
19488 }
19489 {
19490 PyThreadState* __tstate = wxPyBeginAllowThreads();
19491 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19492
19493 wxPyEndAllowThreads(__tstate);
19494 if (PyErr_Occurred()) SWIG_fail;
19495 }
19496 resultobj = SWIG_FromInt((int)result);
19497 {
19498 if (temp2) delete arg2;
19499 }
19500 return resultobj;
19501 fail:
19502 {
19503 if (temp2) delete arg2;
19504 }
19505 return NULL;
19506}
19507
19508
19509static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19510 PyObject *resultobj;
19511 wxDateTime *arg1 = (wxDateTime *) 0 ;
19512 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19513 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19514 int result;
19515 bool temp2 = False ;
19516 PyObject * obj0 = 0 ;
19517 PyObject * obj1 = 0 ;
19518 char *kwnames[] = {
19519 (char *) "self",(char *) "tz", NULL
19520 };
19521
19522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19525 if (obj1) {
19526 {
19527 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19528 temp2 = True;
19529 }
19530 }
19531 {
19532 PyThreadState* __tstate = wxPyBeginAllowThreads();
19533 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19534
19535 wxPyEndAllowThreads(__tstate);
19536 if (PyErr_Occurred()) SWIG_fail;
19537 }
19538 resultobj = SWIG_FromInt((int)result);
19539 {
19540 if (temp2) delete arg2;
19541 }
19542 return resultobj;
19543 fail:
19544 {
19545 if (temp2) delete arg2;
19546 }
19547 return NULL;
19548}
19549
19550
19551static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19552 PyObject *resultobj;
19553 wxDateTime *arg1 = (wxDateTime *) 0 ;
19554 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19555 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19556 int result;
19557 bool temp2 = False ;
19558 PyObject * obj0 = 0 ;
19559 PyObject * obj1 = 0 ;
19560 char *kwnames[] = {
19561 (char *) "self",(char *) "tz", NULL
19562 };
19563
19564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19567 if (obj1) {
19568 {
19569 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19570 temp2 = True;
19571 }
19572 }
19573 {
19574 PyThreadState* __tstate = wxPyBeginAllowThreads();
19575 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19576
19577 wxPyEndAllowThreads(__tstate);
19578 if (PyErr_Occurred()) SWIG_fail;
19579 }
19580 resultobj = SWIG_FromInt((int)result);
19581 {
19582 if (temp2) delete arg2;
19583 }
19584 return resultobj;
19585 fail:
19586 {
19587 if (temp2) delete arg2;
19588 }
19589 return NULL;
19590}
19591
19592
19593static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19594 PyObject *resultobj;
19595 wxDateTime *arg1 = (wxDateTime *) 0 ;
19596 int arg2 = (int) wxDateTime::Monday_First ;
19597 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19598 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19599 int result;
19600 bool temp3 = False ;
19601 PyObject * obj0 = 0 ;
19602 PyObject * obj1 = 0 ;
19603 PyObject * obj2 = 0 ;
19604 char *kwnames[] = {
19605 (char *) "self",(char *) "flags",(char *) "tz", NULL
19606 };
19607
19608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19611 if (obj1) {
19612 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19613 if (PyErr_Occurred()) SWIG_fail;
19614 }
19615 if (obj2) {
19616 {
19617 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19618 temp3 = True;
19619 }
19620 }
19621 {
19622 PyThreadState* __tstate = wxPyBeginAllowThreads();
19623 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19624
19625 wxPyEndAllowThreads(__tstate);
19626 if (PyErr_Occurred()) SWIG_fail;
19627 }
19628 resultobj = SWIG_FromInt((int)result);
19629 {
19630 if (temp3) delete arg3;
19631 }
19632 return resultobj;
19633 fail:
19634 {
19635 if (temp3) delete arg3;
19636 }
19637 return NULL;
19638}
19639
19640
19641static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19642 PyObject *resultobj;
19643 wxDateTime *arg1 = (wxDateTime *) 0 ;
19644 int arg2 = (int) wxDateTime::Monday_First ;
19645 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19646 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19647 int result;
19648 bool temp3 = False ;
19649 PyObject * obj0 = 0 ;
19650 PyObject * obj1 = 0 ;
19651 PyObject * obj2 = 0 ;
19652 char *kwnames[] = {
19653 (char *) "self",(char *) "flags",(char *) "tz", NULL
19654 };
19655
19656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19659 if (obj1) {
19660 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19661 if (PyErr_Occurred()) SWIG_fail;
19662 }
19663 if (obj2) {
19664 {
19665 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19666 temp3 = True;
19667 }
19668 }
19669 {
19670 PyThreadState* __tstate = wxPyBeginAllowThreads();
19671 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19672
19673 wxPyEndAllowThreads(__tstate);
19674 if (PyErr_Occurred()) SWIG_fail;
19675 }
19676 resultobj = SWIG_FromInt((int)result);
19677 {
19678 if (temp3) delete arg3;
19679 }
19680 return resultobj;
19681 fail:
19682 {
19683 if (temp3) delete arg3;
19684 }
19685 return NULL;
19686}
19687
19688
19689static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19690 PyObject *resultobj;
19691 wxDateTime *arg1 = (wxDateTime *) 0 ;
19692 int arg2 = (int) wxDateTime::Country_Default ;
19693 bool result;
19694 PyObject * obj0 = 0 ;
19695 PyObject * obj1 = 0 ;
19696 char *kwnames[] = {
19697 (char *) "self",(char *) "country", NULL
19698 };
19699
19700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19703 if (obj1) {
19704 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19705 if (PyErr_Occurred()) SWIG_fail;
19706 }
19707 {
19708 PyThreadState* __tstate = wxPyBeginAllowThreads();
19709 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19710
19711 wxPyEndAllowThreads(__tstate);
19712 if (PyErr_Occurred()) SWIG_fail;
19713 }
19714 {
19715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19716 }
19717 return resultobj;
19718 fail:
19719 return NULL;
19720}
19721
19722
19723static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19724 PyObject *resultobj;
19725 wxDateTime *arg1 = (wxDateTime *) 0 ;
19726 wxDateTime *arg2 = 0 ;
19727 bool result;
19728 PyObject * obj0 = 0 ;
19729 PyObject * obj1 = 0 ;
19730 char *kwnames[] = {
19731 (char *) "self",(char *) "datetime", NULL
19732 };
19733
19734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19737 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19738 SWIG_POINTER_EXCEPTION | 0)) == -1)
19739 SWIG_fail;
19740 if (arg2 == NULL) {
19741 PyErr_SetString(PyExc_TypeError,"null reference");
19742 SWIG_fail;
19743 }
19744 {
19745 PyThreadState* __tstate = wxPyBeginAllowThreads();
19746 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19747
19748 wxPyEndAllowThreads(__tstate);
19749 if (PyErr_Occurred()) SWIG_fail;
19750 }
19751 {
19752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19753 }
19754 return resultobj;
19755 fail:
19756 return NULL;
19757}
19758
19759
19760static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19761 PyObject *resultobj;
19762 wxDateTime *arg1 = (wxDateTime *) 0 ;
19763 wxDateTime *arg2 = 0 ;
19764 bool result;
19765 PyObject * obj0 = 0 ;
19766 PyObject * obj1 = 0 ;
19767 char *kwnames[] = {
19768 (char *) "self",(char *) "datetime", NULL
19769 };
19770
19771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19775 SWIG_POINTER_EXCEPTION | 0)) == -1)
19776 SWIG_fail;
19777 if (arg2 == NULL) {
19778 PyErr_SetString(PyExc_TypeError,"null reference");
19779 SWIG_fail;
19780 }
19781 {
19782 PyThreadState* __tstate = wxPyBeginAllowThreads();
19783 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19784
19785 wxPyEndAllowThreads(__tstate);
19786 if (PyErr_Occurred()) SWIG_fail;
19787 }
19788 {
19789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19790 }
19791 return resultobj;
19792 fail:
19793 return NULL;
19794}
19795
19796
19797static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19798 PyObject *resultobj;
19799 wxDateTime *arg1 = (wxDateTime *) 0 ;
19800 wxDateTime *arg2 = 0 ;
19801 bool result;
19802 PyObject * obj0 = 0 ;
19803 PyObject * obj1 = 0 ;
19804 char *kwnames[] = {
19805 (char *) "self",(char *) "datetime", NULL
19806 };
19807
19808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19811 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19812 SWIG_POINTER_EXCEPTION | 0)) == -1)
19813 SWIG_fail;
19814 if (arg2 == NULL) {
19815 PyErr_SetString(PyExc_TypeError,"null reference");
19816 SWIG_fail;
19817 }
19818 {
19819 PyThreadState* __tstate = wxPyBeginAllowThreads();
19820 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19821
19822 wxPyEndAllowThreads(__tstate);
19823 if (PyErr_Occurred()) SWIG_fail;
19824 }
19825 {
19826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19827 }
19828 return resultobj;
19829 fail:
19830 return NULL;
19831}
19832
19833
19834static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19835 PyObject *resultobj;
19836 wxDateTime *arg1 = (wxDateTime *) 0 ;
19837 wxDateTime *arg2 = 0 ;
19838 wxDateTime *arg3 = 0 ;
19839 bool result;
19840 PyObject * obj0 = 0 ;
19841 PyObject * obj1 = 0 ;
19842 PyObject * obj2 = 0 ;
19843 char *kwnames[] = {
19844 (char *) "self",(char *) "t1",(char *) "t2", NULL
19845 };
19846
19847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19850 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19851 SWIG_POINTER_EXCEPTION | 0)) == -1)
19852 SWIG_fail;
19853 if (arg2 == NULL) {
19854 PyErr_SetString(PyExc_TypeError,"null reference");
19855 SWIG_fail;
19856 }
19857 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19858 SWIG_POINTER_EXCEPTION | 0)) == -1)
19859 SWIG_fail;
19860 if (arg3 == NULL) {
19861 PyErr_SetString(PyExc_TypeError,"null reference");
19862 SWIG_fail;
19863 }
19864 {
19865 PyThreadState* __tstate = wxPyBeginAllowThreads();
19866 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19867
19868 wxPyEndAllowThreads(__tstate);
19869 if (PyErr_Occurred()) SWIG_fail;
19870 }
19871 {
19872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19873 }
19874 return resultobj;
19875 fail:
19876 return NULL;
19877}
19878
19879
19880static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19881 PyObject *resultobj;
19882 wxDateTime *arg1 = (wxDateTime *) 0 ;
19883 wxDateTime *arg2 = 0 ;
19884 wxDateTime *arg3 = 0 ;
19885 bool result;
19886 PyObject * obj0 = 0 ;
19887 PyObject * obj1 = 0 ;
19888 PyObject * obj2 = 0 ;
19889 char *kwnames[] = {
19890 (char *) "self",(char *) "t1",(char *) "t2", NULL
19891 };
19892
19893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19896 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19897 SWIG_POINTER_EXCEPTION | 0)) == -1)
19898 SWIG_fail;
19899 if (arg2 == NULL) {
19900 PyErr_SetString(PyExc_TypeError,"null reference");
19901 SWIG_fail;
19902 }
19903 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19904 SWIG_POINTER_EXCEPTION | 0)) == -1)
19905 SWIG_fail;
19906 if (arg3 == NULL) {
19907 PyErr_SetString(PyExc_TypeError,"null reference");
19908 SWIG_fail;
19909 }
19910 {
19911 PyThreadState* __tstate = wxPyBeginAllowThreads();
19912 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19913
19914 wxPyEndAllowThreads(__tstate);
19915 if (PyErr_Occurred()) SWIG_fail;
19916 }
19917 {
19918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19919 }
19920 return resultobj;
19921 fail:
19922 return NULL;
19923}
19924
19925
19926static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19927 PyObject *resultobj;
19928 wxDateTime *arg1 = (wxDateTime *) 0 ;
19929 wxDateTime *arg2 = 0 ;
19930 bool result;
19931 PyObject * obj0 = 0 ;
19932 PyObject * obj1 = 0 ;
19933 char *kwnames[] = {
19934 (char *) "self",(char *) "dt", NULL
19935 };
19936
19937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19940 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19941 SWIG_POINTER_EXCEPTION | 0)) == -1)
19942 SWIG_fail;
19943 if (arg2 == NULL) {
19944 PyErr_SetString(PyExc_TypeError,"null reference");
19945 SWIG_fail;
19946 }
19947 {
19948 PyThreadState* __tstate = wxPyBeginAllowThreads();
19949 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19950
19951 wxPyEndAllowThreads(__tstate);
19952 if (PyErr_Occurred()) SWIG_fail;
19953 }
19954 {
19955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19956 }
19957 return resultobj;
19958 fail:
19959 return NULL;
19960}
19961
19962
19963static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19964 PyObject *resultobj;
19965 wxDateTime *arg1 = (wxDateTime *) 0 ;
19966 wxDateTime *arg2 = 0 ;
19967 bool result;
19968 PyObject * obj0 = 0 ;
19969 PyObject * obj1 = 0 ;
19970 char *kwnames[] = {
19971 (char *) "self",(char *) "dt", NULL
19972 };
19973
19974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19977 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19978 SWIG_POINTER_EXCEPTION | 0)) == -1)
19979 SWIG_fail;
19980 if (arg2 == NULL) {
19981 PyErr_SetString(PyExc_TypeError,"null reference");
19982 SWIG_fail;
19983 }
19984 {
19985 PyThreadState* __tstate = wxPyBeginAllowThreads();
19986 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19987
19988 wxPyEndAllowThreads(__tstate);
19989 if (PyErr_Occurred()) SWIG_fail;
19990 }
19991 {
19992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19993 }
19994 return resultobj;
19995 fail:
19996 return NULL;
19997}
19998
19999
20000static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
20001 PyObject *resultobj;
20002 wxDateTime *arg1 = (wxDateTime *) 0 ;
20003 wxDateTime *arg2 = 0 ;
20004 wxTimeSpan *arg3 = 0 ;
20005 bool result;
20006 PyObject * obj0 = 0 ;
20007 PyObject * obj1 = 0 ;
20008 PyObject * obj2 = 0 ;
20009 char *kwnames[] = {
20010 (char *) "self",(char *) "dt",(char *) "ts", NULL
20011 };
20012
20013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20016 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20017 SWIG_POINTER_EXCEPTION | 0)) == -1)
20018 SWIG_fail;
20019 if (arg2 == NULL) {
20020 PyErr_SetString(PyExc_TypeError,"null reference");
20021 SWIG_fail;
20022 }
20023 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
20024 SWIG_POINTER_EXCEPTION | 0)) == -1)
20025 SWIG_fail;
20026 if (arg3 == NULL) {
20027 PyErr_SetString(PyExc_TypeError,"null reference");
20028 SWIG_fail;
20029 }
20030 {
20031 PyThreadState* __tstate = wxPyBeginAllowThreads();
20032 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
20033
20034 wxPyEndAllowThreads(__tstate);
20035 if (PyErr_Occurred()) SWIG_fail;
20036 }
20037 {
20038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20039 }
20040 return resultobj;
20041 fail:
20042 return NULL;
20043}
20044
20045
20046static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
20047 PyObject *resultobj;
20048 wxDateTime *arg1 = (wxDateTime *) 0 ;
20049 wxTimeSpan *arg2 = 0 ;
20050 wxDateTime *result;
20051 PyObject * obj0 = 0 ;
20052 PyObject * obj1 = 0 ;
20053 char *kwnames[] = {
20054 (char *) "self",(char *) "diff", NULL
20055 };
20056
20057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
20058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20060 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20061 SWIG_POINTER_EXCEPTION | 0)) == -1)
20062 SWIG_fail;
20063 if (arg2 == NULL) {
20064 PyErr_SetString(PyExc_TypeError,"null reference");
20065 SWIG_fail;
20066 }
20067 {
20068 PyThreadState* __tstate = wxPyBeginAllowThreads();
20069 {
20070 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
20071 result = (wxDateTime *) &_result_ref;
20072 }
20073
20074 wxPyEndAllowThreads(__tstate);
20075 if (PyErr_Occurred()) SWIG_fail;
20076 }
20077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20078 return resultobj;
20079 fail:
20080 return NULL;
20081}
20082
20083
20084static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
20085 PyObject *resultobj;
20086 wxDateTime *arg1 = (wxDateTime *) 0 ;
20087 wxDateSpan *arg2 = 0 ;
20088 wxDateTime *result;
20089 PyObject * obj0 = 0 ;
20090 PyObject * obj1 = 0 ;
20091 char *kwnames[] = {
20092 (char *) "self",(char *) "diff", NULL
20093 };
20094
20095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
20096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20098 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20099 SWIG_POINTER_EXCEPTION | 0)) == -1)
20100 SWIG_fail;
20101 if (arg2 == NULL) {
20102 PyErr_SetString(PyExc_TypeError,"null reference");
20103 SWIG_fail;
20104 }
20105 {
20106 PyThreadState* __tstate = wxPyBeginAllowThreads();
20107 {
20108 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20109 result = (wxDateTime *) &_result_ref;
20110 }
20111
20112 wxPyEndAllowThreads(__tstate);
20113 if (PyErr_Occurred()) SWIG_fail;
20114 }
20115 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20116 return resultobj;
20117 fail:
20118 return NULL;
20119}
20120
20121
20122static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
20123 PyObject *resultobj;
20124 wxDateTime *arg1 = (wxDateTime *) 0 ;
20125 wxTimeSpan *arg2 = 0 ;
20126 wxDateTime *result;
20127 PyObject * obj0 = 0 ;
20128 PyObject * obj1 = 0 ;
20129 char *kwnames[] = {
20130 (char *) "self",(char *) "diff", NULL
20131 };
20132
20133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20136 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20137 SWIG_POINTER_EXCEPTION | 0)) == -1)
20138 SWIG_fail;
20139 if (arg2 == NULL) {
20140 PyErr_SetString(PyExc_TypeError,"null reference");
20141 SWIG_fail;
20142 }
20143 {
20144 PyThreadState* __tstate = wxPyBeginAllowThreads();
20145 {
20146 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20147 result = (wxDateTime *) &_result_ref;
20148 }
20149
20150 wxPyEndAllowThreads(__tstate);
20151 if (PyErr_Occurred()) SWIG_fail;
20152 }
20153 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20154 return resultobj;
20155 fail:
20156 return NULL;
20157}
20158
20159
20160static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
20161 PyObject *resultobj;
20162 wxDateTime *arg1 = (wxDateTime *) 0 ;
20163 wxDateSpan *arg2 = 0 ;
20164 wxDateTime *result;
20165 PyObject * obj0 = 0 ;
20166 PyObject * obj1 = 0 ;
20167 char *kwnames[] = {
20168 (char *) "self",(char *) "diff", NULL
20169 };
20170
20171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20174 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20175 SWIG_POINTER_EXCEPTION | 0)) == -1)
20176 SWIG_fail;
20177 if (arg2 == NULL) {
20178 PyErr_SetString(PyExc_TypeError,"null reference");
20179 SWIG_fail;
20180 }
20181 {
20182 PyThreadState* __tstate = wxPyBeginAllowThreads();
20183 {
20184 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20185 result = (wxDateTime *) &_result_ref;
20186 }
20187
20188 wxPyEndAllowThreads(__tstate);
20189 if (PyErr_Occurred()) SWIG_fail;
20190 }
20191 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20192 return resultobj;
20193 fail:
20194 return NULL;
20195}
20196
20197
20198static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
20199 PyObject *resultobj;
20200 wxDateTime *arg1 = (wxDateTime *) 0 ;
20201 wxDateTime *arg2 = 0 ;
20202 wxTimeSpan result;
20203 PyObject * obj0 = 0 ;
20204 PyObject * obj1 = 0 ;
20205 char *kwnames[] = {
20206 (char *) "self",(char *) "dt", NULL
20207 };
20208
20209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20213 SWIG_POINTER_EXCEPTION | 0)) == -1)
20214 SWIG_fail;
20215 if (arg2 == NULL) {
20216 PyErr_SetString(PyExc_TypeError,"null reference");
20217 SWIG_fail;
20218 }
20219 {
20220 PyThreadState* __tstate = wxPyBeginAllowThreads();
20221 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20222
20223 wxPyEndAllowThreads(__tstate);
20224 if (PyErr_Occurred()) SWIG_fail;
20225 }
20226 {
20227 wxTimeSpan * resultptr;
20228 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20229 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20230 }
20231 return resultobj;
20232 fail:
20233 return NULL;
20234}
20235
20236
20237static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
20238 PyObject *resultobj;
20239 wxDateTime *arg1 = (wxDateTime *) 0 ;
20240 wxTimeSpan *arg2 = 0 ;
20241 wxDateTime *result;
20242 PyObject * obj0 = 0 ;
20243 PyObject * obj1 = 0 ;
20244
20245 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20248 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20249 SWIG_POINTER_EXCEPTION | 0)) == -1)
20250 SWIG_fail;
20251 if (arg2 == NULL) {
20252 PyErr_SetString(PyExc_TypeError,"null reference");
20253 SWIG_fail;
20254 }
20255 {
20256 PyThreadState* __tstate = wxPyBeginAllowThreads();
20257 {
20258 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20259 result = (wxDateTime *) &_result_ref;
20260 }
20261
20262 wxPyEndAllowThreads(__tstate);
20263 if (PyErr_Occurred()) SWIG_fail;
20264 }
20265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20266 return resultobj;
20267 fail:
20268 return NULL;
20269}
20270
20271
20272static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20273 PyObject *resultobj;
20274 wxDateTime *arg1 = (wxDateTime *) 0 ;
20275 wxDateSpan *arg2 = 0 ;
20276 wxDateTime *result;
20277 PyObject * obj0 = 0 ;
20278 PyObject * obj1 = 0 ;
20279
20280 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20283 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20284 SWIG_POINTER_EXCEPTION | 0)) == -1)
20285 SWIG_fail;
20286 if (arg2 == NULL) {
20287 PyErr_SetString(PyExc_TypeError,"null reference");
20288 SWIG_fail;
20289 }
20290 {
20291 PyThreadState* __tstate = wxPyBeginAllowThreads();
20292 {
20293 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20294 result = (wxDateTime *) &_result_ref;
20295 }
20296
20297 wxPyEndAllowThreads(__tstate);
20298 if (PyErr_Occurred()) SWIG_fail;
20299 }
20300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20301 return resultobj;
20302 fail:
20303 return NULL;
20304}
20305
20306
20307static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20308 int argc;
20309 PyObject *argv[3];
20310 int ii;
20311
20312 argc = PyObject_Length(args);
20313 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20314 argv[ii] = PyTuple_GetItem(args,ii);
20315 }
20316 if (argc == 2) {
20317 int _v;
20318 {
20319 void *ptr;
20320 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20321 _v = 0;
20322 PyErr_Clear();
20323 } else {
20324 _v = 1;
20325 }
20326 }
20327 if (_v) {
20328 {
20329 void *ptr;
20330 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20331 _v = 0;
20332 PyErr_Clear();
20333 } else {
20334 _v = 1;
20335 }
20336 }
20337 if (_v) {
20338 return _wrap_DateTime___iadd____SWIG_0(self,args);
20339 }
20340 }
20341 }
20342 if (argc == 2) {
20343 int _v;
20344 {
20345 void *ptr;
20346 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20347 _v = 0;
20348 PyErr_Clear();
20349 } else {
20350 _v = 1;
20351 }
20352 }
20353 if (_v) {
20354 {
20355 void *ptr;
20356 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20357 _v = 0;
20358 PyErr_Clear();
20359 } else {
20360 _v = 1;
20361 }
20362 }
20363 if (_v) {
20364 return _wrap_DateTime___iadd____SWIG_1(self,args);
20365 }
20366 }
20367 }
20368
20369 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20370 return NULL;
20371}
20372
20373
20374static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20375 PyObject *resultobj;
20376 wxDateTime *arg1 = (wxDateTime *) 0 ;
20377 wxTimeSpan *arg2 = 0 ;
20378 wxDateTime *result;
20379 PyObject * obj0 = 0 ;
20380 PyObject * obj1 = 0 ;
20381
20382 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20385 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20386 SWIG_POINTER_EXCEPTION | 0)) == -1)
20387 SWIG_fail;
20388 if (arg2 == NULL) {
20389 PyErr_SetString(PyExc_TypeError,"null reference");
20390 SWIG_fail;
20391 }
20392 {
20393 PyThreadState* __tstate = wxPyBeginAllowThreads();
20394 {
20395 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20396 result = (wxDateTime *) &_result_ref;
20397 }
20398
20399 wxPyEndAllowThreads(__tstate);
20400 if (PyErr_Occurred()) SWIG_fail;
20401 }
20402 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20403 return resultobj;
20404 fail:
20405 return NULL;
20406}
20407
20408
20409static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20410 PyObject *resultobj;
20411 wxDateTime *arg1 = (wxDateTime *) 0 ;
20412 wxDateSpan *arg2 = 0 ;
20413 wxDateTime *result;
20414 PyObject * obj0 = 0 ;
20415 PyObject * obj1 = 0 ;
20416
20417 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20420 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20421 SWIG_POINTER_EXCEPTION | 0)) == -1)
20422 SWIG_fail;
20423 if (arg2 == NULL) {
20424 PyErr_SetString(PyExc_TypeError,"null reference");
20425 SWIG_fail;
20426 }
20427 {
20428 PyThreadState* __tstate = wxPyBeginAllowThreads();
20429 {
20430 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20431 result = (wxDateTime *) &_result_ref;
20432 }
20433
20434 wxPyEndAllowThreads(__tstate);
20435 if (PyErr_Occurred()) SWIG_fail;
20436 }
20437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20438 return resultobj;
20439 fail:
20440 return NULL;
20441}
20442
20443
20444static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20445 int argc;
20446 PyObject *argv[3];
20447 int ii;
20448
20449 argc = PyObject_Length(args);
20450 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20451 argv[ii] = PyTuple_GetItem(args,ii);
20452 }
20453 if (argc == 2) {
20454 int _v;
20455 {
20456 void *ptr;
20457 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20458 _v = 0;
20459 PyErr_Clear();
20460 } else {
20461 _v = 1;
20462 }
20463 }
20464 if (_v) {
20465 {
20466 void *ptr;
20467 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20468 _v = 0;
20469 PyErr_Clear();
20470 } else {
20471 _v = 1;
20472 }
20473 }
20474 if (_v) {
20475 return _wrap_DateTime___isub____SWIG_0(self,args);
20476 }
20477 }
20478 }
20479 if (argc == 2) {
20480 int _v;
20481 {
20482 void *ptr;
20483 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20484 _v = 0;
20485 PyErr_Clear();
20486 } else {
20487 _v = 1;
20488 }
20489 }
20490 if (_v) {
20491 {
20492 void *ptr;
20493 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20494 _v = 0;
20495 PyErr_Clear();
20496 } else {
20497 _v = 1;
20498 }
20499 }
20500 if (_v) {
20501 return _wrap_DateTime___isub____SWIG_1(self,args);
20502 }
20503 }
20504 }
20505
20506 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20507 return NULL;
20508}
20509
20510
20511static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20512 PyObject *resultobj;
20513 wxDateTime *arg1 = (wxDateTime *) 0 ;
20514 wxTimeSpan *arg2 = 0 ;
20515 wxDateTime result;
20516 PyObject * obj0 = 0 ;
20517 PyObject * obj1 = 0 ;
20518
20519 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20523 SWIG_POINTER_EXCEPTION | 0)) == -1)
20524 SWIG_fail;
20525 if (arg2 == NULL) {
20526 PyErr_SetString(PyExc_TypeError,"null reference");
20527 SWIG_fail;
20528 }
20529 {
20530 PyThreadState* __tstate = wxPyBeginAllowThreads();
20531 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20532
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 {
20537 wxDateTime * resultptr;
20538 resultptr = new wxDateTime((wxDateTime &) result);
20539 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20540 }
20541 return resultobj;
20542 fail:
20543 return NULL;
20544}
20545
20546
20547static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20548 PyObject *resultobj;
20549 wxDateTime *arg1 = (wxDateTime *) 0 ;
20550 wxDateSpan *arg2 = 0 ;
20551 wxDateTime result;
20552 PyObject * obj0 = 0 ;
20553 PyObject * obj1 = 0 ;
20554
20555 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20558 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20559 SWIG_POINTER_EXCEPTION | 0)) == -1)
20560 SWIG_fail;
20561 if (arg2 == NULL) {
20562 PyErr_SetString(PyExc_TypeError,"null reference");
20563 SWIG_fail;
20564 }
20565 {
20566 PyThreadState* __tstate = wxPyBeginAllowThreads();
20567 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20568
20569 wxPyEndAllowThreads(__tstate);
20570 if (PyErr_Occurred()) SWIG_fail;
20571 }
20572 {
20573 wxDateTime * resultptr;
20574 resultptr = new wxDateTime((wxDateTime &) result);
20575 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20576 }
20577 return resultobj;
20578 fail:
20579 return NULL;
20580}
20581
20582
20583static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20584 int argc;
20585 PyObject *argv[3];
20586 int ii;
20587
20588 argc = PyObject_Length(args);
20589 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20590 argv[ii] = PyTuple_GetItem(args,ii);
20591 }
20592 if (argc == 2) {
20593 int _v;
20594 {
20595 void *ptr;
20596 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20597 _v = 0;
20598 PyErr_Clear();
20599 } else {
20600 _v = 1;
20601 }
20602 }
20603 if (_v) {
20604 {
20605 void *ptr;
20606 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20607 _v = 0;
20608 PyErr_Clear();
20609 } else {
20610 _v = 1;
20611 }
20612 }
20613 if (_v) {
20614 return _wrap_DateTime___add____SWIG_0(self,args);
20615 }
20616 }
20617 }
20618 if (argc == 2) {
20619 int _v;
20620 {
20621 void *ptr;
20622 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20623 _v = 0;
20624 PyErr_Clear();
20625 } else {
20626 _v = 1;
20627 }
20628 }
20629 if (_v) {
20630 {
20631 void *ptr;
20632 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20633 _v = 0;
20634 PyErr_Clear();
20635 } else {
20636 _v = 1;
20637 }
20638 }
20639 if (_v) {
20640 return _wrap_DateTime___add____SWIG_1(self,args);
20641 }
20642 }
20643 }
20644
20645 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20646 return NULL;
20647}
20648
20649
20650static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20651 PyObject *resultobj;
20652 wxDateTime *arg1 = (wxDateTime *) 0 ;
20653 wxDateTime *arg2 = 0 ;
20654 wxTimeSpan result;
20655 PyObject * obj0 = 0 ;
20656 PyObject * obj1 = 0 ;
20657
20658 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20662 SWIG_POINTER_EXCEPTION | 0)) == -1)
20663 SWIG_fail;
20664 if (arg2 == NULL) {
20665 PyErr_SetString(PyExc_TypeError,"null reference");
20666 SWIG_fail;
20667 }
20668 {
20669 PyThreadState* __tstate = wxPyBeginAllowThreads();
20670 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20671
20672 wxPyEndAllowThreads(__tstate);
20673 if (PyErr_Occurred()) SWIG_fail;
20674 }
20675 {
20676 wxTimeSpan * resultptr;
20677 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20678 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20679 }
20680 return resultobj;
20681 fail:
20682 return NULL;
20683}
20684
20685
20686static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20687 PyObject *resultobj;
20688 wxDateTime *arg1 = (wxDateTime *) 0 ;
20689 wxTimeSpan *arg2 = 0 ;
20690 wxDateTime result;
20691 PyObject * obj0 = 0 ;
20692 PyObject * obj1 = 0 ;
20693
20694 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20697 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20698 SWIG_POINTER_EXCEPTION | 0)) == -1)
20699 SWIG_fail;
20700 if (arg2 == NULL) {
20701 PyErr_SetString(PyExc_TypeError,"null reference");
20702 SWIG_fail;
20703 }
20704 {
20705 PyThreadState* __tstate = wxPyBeginAllowThreads();
20706 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20707
20708 wxPyEndAllowThreads(__tstate);
20709 if (PyErr_Occurred()) SWIG_fail;
20710 }
20711 {
20712 wxDateTime * resultptr;
20713 resultptr = new wxDateTime((wxDateTime &) result);
20714 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20715 }
20716 return resultobj;
20717 fail:
20718 return NULL;
20719}
20720
20721
20722static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20723 PyObject *resultobj;
20724 wxDateTime *arg1 = (wxDateTime *) 0 ;
20725 wxDateSpan *arg2 = 0 ;
20726 wxDateTime result;
20727 PyObject * obj0 = 0 ;
20728 PyObject * obj1 = 0 ;
20729
20730 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20733 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20734 SWIG_POINTER_EXCEPTION | 0)) == -1)
20735 SWIG_fail;
20736 if (arg2 == NULL) {
20737 PyErr_SetString(PyExc_TypeError,"null reference");
20738 SWIG_fail;
20739 }
20740 {
20741 PyThreadState* __tstate = wxPyBeginAllowThreads();
20742 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20743
20744 wxPyEndAllowThreads(__tstate);
20745 if (PyErr_Occurred()) SWIG_fail;
20746 }
20747 {
20748 wxDateTime * resultptr;
20749 resultptr = new wxDateTime((wxDateTime &) result);
20750 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20751 }
20752 return resultobj;
20753 fail:
20754 return NULL;
20755}
20756
20757
20758static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20759 int argc;
20760 PyObject *argv[3];
20761 int ii;
20762
20763 argc = PyObject_Length(args);
20764 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20765 argv[ii] = PyTuple_GetItem(args,ii);
20766 }
20767 if (argc == 2) {
20768 int _v;
20769 {
20770 void *ptr;
20771 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20772 _v = 0;
20773 PyErr_Clear();
20774 } else {
20775 _v = 1;
20776 }
20777 }
20778 if (_v) {
20779 {
20780 void *ptr;
20781 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20782 _v = 0;
20783 PyErr_Clear();
20784 } else {
20785 _v = 1;
20786 }
20787 }
20788 if (_v) {
20789 return _wrap_DateTime___sub____SWIG_0(self,args);
20790 }
20791 }
20792 }
20793 if (argc == 2) {
20794 int _v;
20795 {
20796 void *ptr;
20797 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20798 _v = 0;
20799 PyErr_Clear();
20800 } else {
20801 _v = 1;
20802 }
20803 }
20804 if (_v) {
20805 {
20806 void *ptr;
20807 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20808 _v = 0;
20809 PyErr_Clear();
20810 } else {
20811 _v = 1;
20812 }
20813 }
20814 if (_v) {
20815 return _wrap_DateTime___sub____SWIG_1(self,args);
20816 }
20817 }
20818 }
20819 if (argc == 2) {
20820 int _v;
20821 {
20822 void *ptr;
20823 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20824 _v = 0;
20825 PyErr_Clear();
20826 } else {
20827 _v = 1;
20828 }
20829 }
20830 if (_v) {
20831 {
20832 void *ptr;
20833 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20834 _v = 0;
20835 PyErr_Clear();
20836 } else {
20837 _v = 1;
20838 }
20839 }
20840 if (_v) {
20841 return _wrap_DateTime___sub____SWIG_2(self,args);
20842 }
20843 }
20844 }
20845
20846 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20847 return NULL;
20848}
20849
20850
20851static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20852 PyObject *resultobj;
20853 wxDateTime *arg1 = (wxDateTime *) 0 ;
20854 wxDateTime *arg2 = (wxDateTime *) 0 ;
20855 bool result;
20856 PyObject * obj0 = 0 ;
20857 PyObject * obj1 = 0 ;
20858
20859 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20864 {
20865 PyThreadState* __tstate = wxPyBeginAllowThreads();
20866 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20867
20868 wxPyEndAllowThreads(__tstate);
20869 if (PyErr_Occurred()) SWIG_fail;
20870 }
20871 {
20872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20873 }
20874 return resultobj;
20875 fail:
20876 return NULL;
20877}
20878
20879
20880static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20881 PyObject *resultobj;
20882 wxDateTime *arg1 = (wxDateTime *) 0 ;
20883 wxDateTime *arg2 = (wxDateTime *) 0 ;
20884 bool result;
20885 PyObject * obj0 = 0 ;
20886 PyObject * obj1 = 0 ;
20887
20888 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20891 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20893 {
20894 PyThreadState* __tstate = wxPyBeginAllowThreads();
20895 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20896
20897 wxPyEndAllowThreads(__tstate);
20898 if (PyErr_Occurred()) SWIG_fail;
20899 }
20900 {
20901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20902 }
20903 return resultobj;
20904 fail:
20905 return NULL;
20906}
20907
20908
20909static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20910 PyObject *resultobj;
20911 wxDateTime *arg1 = (wxDateTime *) 0 ;
20912 wxDateTime *arg2 = (wxDateTime *) 0 ;
20913 bool result;
20914 PyObject * obj0 = 0 ;
20915 PyObject * obj1 = 0 ;
20916
20917 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20920 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20922 {
20923 PyThreadState* __tstate = wxPyBeginAllowThreads();
20924 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20925
20926 wxPyEndAllowThreads(__tstate);
20927 if (PyErr_Occurred()) SWIG_fail;
20928 }
20929 {
20930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20931 }
20932 return resultobj;
20933 fail:
20934 return NULL;
20935}
20936
20937
20938static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20939 PyObject *resultobj;
20940 wxDateTime *arg1 = (wxDateTime *) 0 ;
20941 wxDateTime *arg2 = (wxDateTime *) 0 ;
20942 bool result;
20943 PyObject * obj0 = 0 ;
20944 PyObject * obj1 = 0 ;
20945
20946 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20949 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20951 {
20952 PyThreadState* __tstate = wxPyBeginAllowThreads();
20953 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20954
20955 wxPyEndAllowThreads(__tstate);
20956 if (PyErr_Occurred()) SWIG_fail;
20957 }
20958 {
20959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20960 }
20961 return resultobj;
20962 fail:
20963 return NULL;
20964}
20965
20966
20967static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20968 PyObject *resultobj;
20969 wxDateTime *arg1 = (wxDateTime *) 0 ;
20970 wxDateTime *arg2 = (wxDateTime *) 0 ;
20971 bool result;
20972 PyObject * obj0 = 0 ;
20973 PyObject * obj1 = 0 ;
20974
20975 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20978 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20980 {
20981 PyThreadState* __tstate = wxPyBeginAllowThreads();
20982 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20983
20984 wxPyEndAllowThreads(__tstate);
20985 if (PyErr_Occurred()) SWIG_fail;
20986 }
20987 {
20988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20989 }
20990 return resultobj;
20991 fail:
20992 return NULL;
20993}
20994
20995
20996static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20997 PyObject *resultobj;
20998 wxDateTime *arg1 = (wxDateTime *) 0 ;
20999 wxDateTime *arg2 = (wxDateTime *) 0 ;
21000 bool result;
21001 PyObject * obj0 = 0 ;
21002 PyObject * obj1 = 0 ;
21003
21004 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
21005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21007 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21009 {
21010 PyThreadState* __tstate = wxPyBeginAllowThreads();
21011 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
21012
21013 wxPyEndAllowThreads(__tstate);
21014 if (PyErr_Occurred()) SWIG_fail;
21015 }
21016 {
21017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21018 }
21019 return resultobj;
21020 fail:
21021 return NULL;
21022}
21023
21024
21025static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
21026 PyObject *resultobj;
21027 wxDateTime *arg1 = (wxDateTime *) 0 ;
21028 wxString *arg2 = 0 ;
21029 int result;
21030 bool temp2 = False ;
21031 PyObject * obj0 = 0 ;
21032 PyObject * obj1 = 0 ;
21033 char *kwnames[] = {
21034 (char *) "self",(char *) "date", NULL
21035 };
21036
21037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
21038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21040 {
21041 arg2 = wxString_in_helper(obj1);
21042 if (arg2 == NULL) SWIG_fail;
21043 temp2 = True;
21044 }
21045 {
21046 PyThreadState* __tstate = wxPyBeginAllowThreads();
21047 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
21048
21049 wxPyEndAllowThreads(__tstate);
21050 if (PyErr_Occurred()) SWIG_fail;
21051 }
21052 resultobj = SWIG_FromInt((int)result);
21053 {
21054 if (temp2)
21055 delete arg2;
21056 }
21057 return resultobj;
21058 fail:
21059 {
21060 if (temp2)
21061 delete arg2;
21062 }
21063 return NULL;
21064}
21065
21066
21067static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
21068 PyObject *resultobj;
21069 wxDateTime *arg1 = (wxDateTime *) 0 ;
21070 wxString *arg2 = 0 ;
21071 wxString const &arg3_defvalue = wxPyDateFormatStr ;
21072 wxString *arg3 = (wxString *) &arg3_defvalue ;
21073 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
21074 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
21075 int result;
21076 bool temp2 = False ;
21077 bool temp3 = False ;
21078 PyObject * obj0 = 0 ;
21079 PyObject * obj1 = 0 ;
21080 PyObject * obj2 = 0 ;
21081 PyObject * obj3 = 0 ;
21082 char *kwnames[] = {
21083 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
21084 };
21085
21086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21089 {
21090 arg2 = wxString_in_helper(obj1);
21091 if (arg2 == NULL) SWIG_fail;
21092 temp2 = True;
21093 }
21094 if (obj2) {
21095 {
21096 arg3 = wxString_in_helper(obj2);
21097 if (arg3 == NULL) SWIG_fail;
21098 temp3 = True;
21099 }
21100 }
21101 if (obj3) {
21102 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
21103 SWIG_POINTER_EXCEPTION | 0)) == -1)
21104 SWIG_fail;
21105 if (arg4 == NULL) {
21106 PyErr_SetString(PyExc_TypeError,"null reference");
21107 SWIG_fail;
21108 }
21109 }
21110 {
21111 PyThreadState* __tstate = wxPyBeginAllowThreads();
21112 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21113
21114 wxPyEndAllowThreads(__tstate);
21115 if (PyErr_Occurred()) SWIG_fail;
21116 }
21117 resultobj = SWIG_FromInt((int)result);
21118 {
21119 if (temp2)
21120 delete arg2;
21121 }
21122 {
21123 if (temp3)
21124 delete arg3;
21125 }
21126 return resultobj;
21127 fail:
21128 {
21129 if (temp2)
21130 delete arg2;
21131 }
21132 {
21133 if (temp3)
21134 delete arg3;
21135 }
21136 return NULL;
21137}
21138
21139
21140static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21141 PyObject *resultobj;
21142 wxDateTime *arg1 = (wxDateTime *) 0 ;
21143 wxString *arg2 = 0 ;
21144 int result;
21145 bool temp2 = False ;
21146 PyObject * obj0 = 0 ;
21147 PyObject * obj1 = 0 ;
21148 char *kwnames[] = {
21149 (char *) "self",(char *) "datetime", NULL
21150 };
21151
21152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21155 {
21156 arg2 = wxString_in_helper(obj1);
21157 if (arg2 == NULL) SWIG_fail;
21158 temp2 = True;
21159 }
21160 {
21161 PyThreadState* __tstate = wxPyBeginAllowThreads();
21162 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21163
21164 wxPyEndAllowThreads(__tstate);
21165 if (PyErr_Occurred()) SWIG_fail;
21166 }
21167 resultobj = SWIG_FromInt((int)result);
21168 {
21169 if (temp2)
21170 delete arg2;
21171 }
21172 return resultobj;
21173 fail:
21174 {
21175 if (temp2)
21176 delete arg2;
21177 }
21178 return NULL;
21179}
21180
21181
21182static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21183 PyObject *resultobj;
21184 wxDateTime *arg1 = (wxDateTime *) 0 ;
21185 wxString *arg2 = 0 ;
21186 int result;
21187 bool temp2 = False ;
21188 PyObject * obj0 = 0 ;
21189 PyObject * obj1 = 0 ;
21190 char *kwnames[] = {
21191 (char *) "self",(char *) "date", NULL
21192 };
21193
21194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21197 {
21198 arg2 = wxString_in_helper(obj1);
21199 if (arg2 == NULL) SWIG_fail;
21200 temp2 = True;
21201 }
21202 {
21203 PyThreadState* __tstate = wxPyBeginAllowThreads();
21204 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21205
21206 wxPyEndAllowThreads(__tstate);
21207 if (PyErr_Occurred()) SWIG_fail;
21208 }
21209 resultobj = SWIG_FromInt((int)result);
21210 {
21211 if (temp2)
21212 delete arg2;
21213 }
21214 return resultobj;
21215 fail:
21216 {
21217 if (temp2)
21218 delete arg2;
21219 }
21220 return NULL;
21221}
21222
21223
21224static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21225 PyObject *resultobj;
21226 wxDateTime *arg1 = (wxDateTime *) 0 ;
21227 wxString *arg2 = 0 ;
21228 int result;
21229 bool temp2 = False ;
21230 PyObject * obj0 = 0 ;
21231 PyObject * obj1 = 0 ;
21232 char *kwnames[] = {
21233 (char *) "self",(char *) "time", NULL
21234 };
21235
21236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21239 {
21240 arg2 = wxString_in_helper(obj1);
21241 if (arg2 == NULL) SWIG_fail;
21242 temp2 = True;
21243 }
21244 {
21245 PyThreadState* __tstate = wxPyBeginAllowThreads();
21246 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21247
21248 wxPyEndAllowThreads(__tstate);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 }
21251 resultobj = SWIG_FromInt((int)result);
21252 {
21253 if (temp2)
21254 delete arg2;
21255 }
21256 return resultobj;
21257 fail:
21258 {
21259 if (temp2)
21260 delete arg2;
21261 }
21262 return NULL;
21263}
21264
21265
21266static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
21267 PyObject *resultobj;
21268 wxDateTime *arg1 = (wxDateTime *) 0 ;
21269 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21270 wxString *arg2 = (wxString *) &arg2_defvalue ;
21271 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21272 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21273 wxString result;
21274 bool temp2 = False ;
21275 bool temp3 = False ;
21276 PyObject * obj0 = 0 ;
21277 PyObject * obj1 = 0 ;
21278 PyObject * obj2 = 0 ;
21279 char *kwnames[] = {
21280 (char *) "self",(char *) "format",(char *) "tz", NULL
21281 };
21282
21283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21286 if (obj1) {
21287 {
21288 arg2 = wxString_in_helper(obj1);
21289 if (arg2 == NULL) SWIG_fail;
21290 temp2 = True;
21291 }
21292 }
21293 if (obj2) {
21294 {
21295 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21296 temp3 = True;
21297 }
21298 }
21299 {
21300 PyThreadState* __tstate = wxPyBeginAllowThreads();
21301 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21302
21303 wxPyEndAllowThreads(__tstate);
21304 if (PyErr_Occurred()) SWIG_fail;
21305 }
21306 {
21307#if wxUSE_UNICODE
21308 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21309#else
21310 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21311#endif
21312 }
21313 {
21314 if (temp2)
21315 delete arg2;
21316 }
21317 {
21318 if (temp3) delete arg3;
21319 }
21320 return resultobj;
21321 fail:
21322 {
21323 if (temp2)
21324 delete arg2;
21325 }
21326 {
21327 if (temp3) delete arg3;
21328 }
21329 return NULL;
21330}
21331
21332
21333static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21334 PyObject *resultobj;
21335 wxDateTime *arg1 = (wxDateTime *) 0 ;
21336 wxString result;
21337 PyObject * obj0 = 0 ;
21338 char *kwnames[] = {
21339 (char *) "self", NULL
21340 };
21341
21342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21345 {
21346 PyThreadState* __tstate = wxPyBeginAllowThreads();
21347 result = ((wxDateTime const *)arg1)->FormatDate();
21348
21349 wxPyEndAllowThreads(__tstate);
21350 if (PyErr_Occurred()) SWIG_fail;
21351 }
21352 {
21353#if wxUSE_UNICODE
21354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21355#else
21356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21357#endif
21358 }
21359 return resultobj;
21360 fail:
21361 return NULL;
21362}
21363
21364
21365static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21366 PyObject *resultobj;
21367 wxDateTime *arg1 = (wxDateTime *) 0 ;
21368 wxString result;
21369 PyObject * obj0 = 0 ;
21370 char *kwnames[] = {
21371 (char *) "self", NULL
21372 };
21373
21374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 result = ((wxDateTime const *)arg1)->FormatTime();
21380
21381 wxPyEndAllowThreads(__tstate);
21382 if (PyErr_Occurred()) SWIG_fail;
21383 }
21384 {
21385#if wxUSE_UNICODE
21386 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21387#else
21388 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21389#endif
21390 }
21391 return resultobj;
21392 fail:
21393 return NULL;
21394}
21395
21396
21397static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21398 PyObject *resultobj;
21399 wxDateTime *arg1 = (wxDateTime *) 0 ;
21400 wxString result;
21401 PyObject * obj0 = 0 ;
21402 char *kwnames[] = {
21403 (char *) "self", NULL
21404 };
21405
21406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21409 {
21410 PyThreadState* __tstate = wxPyBeginAllowThreads();
21411 result = ((wxDateTime const *)arg1)->FormatISODate();
21412
21413 wxPyEndAllowThreads(__tstate);
21414 if (PyErr_Occurred()) SWIG_fail;
21415 }
21416 {
21417#if wxUSE_UNICODE
21418 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21419#else
21420 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21421#endif
21422 }
21423 return resultobj;
21424 fail:
21425 return NULL;
21426}
21427
21428
21429static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21430 PyObject *resultobj;
21431 wxDateTime *arg1 = (wxDateTime *) 0 ;
21432 wxString result;
21433 PyObject * obj0 = 0 ;
21434 char *kwnames[] = {
21435 (char *) "self", NULL
21436 };
21437
21438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21441 {
21442 PyThreadState* __tstate = wxPyBeginAllowThreads();
21443 result = ((wxDateTime const *)arg1)->FormatISOTime();
21444
21445 wxPyEndAllowThreads(__tstate);
21446 if (PyErr_Occurred()) SWIG_fail;
21447 }
21448 {
21449#if wxUSE_UNICODE
21450 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21451#else
21452 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21453#endif
21454 }
21455 return resultobj;
21456 fail:
21457 return NULL;
21458}
21459
21460
21461static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21462 PyObject *obj;
21463 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21464 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21465 Py_INCREF(obj);
21466 return Py_BuildValue((char *)"");
21467}
21468static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21469 PyObject *resultobj;
21470 long arg1 ;
21471 wxTimeSpan result;
21472 PyObject * obj0 = 0 ;
21473 char *kwnames[] = {
21474 (char *) "sec", NULL
21475 };
21476
21477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21478 arg1 = (long) SWIG_AsLong(obj0);
21479 if (PyErr_Occurred()) SWIG_fail;
21480 {
21481 PyThreadState* __tstate = wxPyBeginAllowThreads();
21482 result = wxTimeSpan::Seconds(arg1);
21483
21484 wxPyEndAllowThreads(__tstate);
21485 if (PyErr_Occurred()) SWIG_fail;
21486 }
21487 {
21488 wxTimeSpan * resultptr;
21489 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21490 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21491 }
21492 return resultobj;
21493 fail:
21494 return NULL;
21495}
21496
21497
21498static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21499 PyObject *resultobj;
21500 wxTimeSpan result;
21501 char *kwnames[] = {
21502 NULL
21503 };
21504
21505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21506 {
21507 PyThreadState* __tstate = wxPyBeginAllowThreads();
21508 result = wxTimeSpan::Second();
21509
21510 wxPyEndAllowThreads(__tstate);
21511 if (PyErr_Occurred()) SWIG_fail;
21512 }
21513 {
21514 wxTimeSpan * resultptr;
21515 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21516 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21517 }
21518 return resultobj;
21519 fail:
21520 return NULL;
21521}
21522
21523
21524static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21525 PyObject *resultobj;
21526 long arg1 ;
21527 wxTimeSpan result;
21528 PyObject * obj0 = 0 ;
21529 char *kwnames[] = {
21530 (char *) "min", NULL
21531 };
21532
21533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21534 arg1 = (long) SWIG_AsLong(obj0);
21535 if (PyErr_Occurred()) SWIG_fail;
21536 {
21537 PyThreadState* __tstate = wxPyBeginAllowThreads();
21538 result = wxTimeSpan::Minutes(arg1);
21539
21540 wxPyEndAllowThreads(__tstate);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 {
21544 wxTimeSpan * resultptr;
21545 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21546 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21547 }
21548 return resultobj;
21549 fail:
21550 return NULL;
21551}
21552
21553
21554static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21555 PyObject *resultobj;
21556 wxTimeSpan result;
21557 char *kwnames[] = {
21558 NULL
21559 };
21560
21561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21562 {
21563 PyThreadState* __tstate = wxPyBeginAllowThreads();
21564 result = wxTimeSpan::Minute();
21565
21566 wxPyEndAllowThreads(__tstate);
21567 if (PyErr_Occurred()) SWIG_fail;
21568 }
21569 {
21570 wxTimeSpan * resultptr;
21571 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21572 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21573 }
21574 return resultobj;
21575 fail:
21576 return NULL;
21577}
21578
21579
21580static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21581 PyObject *resultobj;
21582 long arg1 ;
21583 wxTimeSpan result;
21584 PyObject * obj0 = 0 ;
21585 char *kwnames[] = {
21586 (char *) "hours", NULL
21587 };
21588
21589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21590 arg1 = (long) SWIG_AsLong(obj0);
21591 if (PyErr_Occurred()) SWIG_fail;
21592 {
21593 PyThreadState* __tstate = wxPyBeginAllowThreads();
21594 result = wxTimeSpan::Hours(arg1);
21595
21596 wxPyEndAllowThreads(__tstate);
21597 if (PyErr_Occurred()) SWIG_fail;
21598 }
21599 {
21600 wxTimeSpan * resultptr;
21601 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21602 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21603 }
21604 return resultobj;
21605 fail:
21606 return NULL;
21607}
21608
21609
21610static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21611 PyObject *resultobj;
21612 wxTimeSpan result;
21613 char *kwnames[] = {
21614 NULL
21615 };
21616
21617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21618 {
21619 PyThreadState* __tstate = wxPyBeginAllowThreads();
21620 result = wxTimeSpan::Hour();
21621
21622 wxPyEndAllowThreads(__tstate);
21623 if (PyErr_Occurred()) SWIG_fail;
21624 }
21625 {
21626 wxTimeSpan * resultptr;
21627 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21628 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21629 }
21630 return resultobj;
21631 fail:
21632 return NULL;
21633}
21634
21635
21636static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21637 PyObject *resultobj;
21638 long arg1 ;
21639 wxTimeSpan result;
21640 PyObject * obj0 = 0 ;
21641 char *kwnames[] = {
21642 (char *) "days", NULL
21643 };
21644
21645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21646 arg1 = (long) SWIG_AsLong(obj0);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 {
21649 PyThreadState* __tstate = wxPyBeginAllowThreads();
21650 result = wxTimeSpan::Days(arg1);
21651
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 {
21656 wxTimeSpan * resultptr;
21657 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21658 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21659 }
21660 return resultobj;
21661 fail:
21662 return NULL;
21663}
21664
21665
21666static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21667 PyObject *resultobj;
21668 wxTimeSpan result;
21669 char *kwnames[] = {
21670 NULL
21671 };
21672
21673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
21676 result = wxTimeSpan::Day();
21677
21678 wxPyEndAllowThreads(__tstate);
21679 if (PyErr_Occurred()) SWIG_fail;
21680 }
21681 {
21682 wxTimeSpan * resultptr;
21683 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21684 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21685 }
21686 return resultobj;
21687 fail:
21688 return NULL;
21689}
21690
21691
21692static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21693 PyObject *resultobj;
21694 long arg1 ;
21695 wxTimeSpan result;
21696 PyObject * obj0 = 0 ;
21697 char *kwnames[] = {
21698 (char *) "days", NULL
21699 };
21700
21701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21702 arg1 = (long) SWIG_AsLong(obj0);
21703 if (PyErr_Occurred()) SWIG_fail;
21704 {
21705 PyThreadState* __tstate = wxPyBeginAllowThreads();
21706 result = wxTimeSpan::Weeks(arg1);
21707
21708 wxPyEndAllowThreads(__tstate);
21709 if (PyErr_Occurred()) SWIG_fail;
21710 }
21711 {
21712 wxTimeSpan * resultptr;
21713 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21714 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21715 }
21716 return resultobj;
21717 fail:
21718 return NULL;
21719}
21720
21721
21722static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21723 PyObject *resultobj;
21724 wxTimeSpan result;
21725 char *kwnames[] = {
21726 NULL
21727 };
21728
21729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21730 {
21731 PyThreadState* __tstate = wxPyBeginAllowThreads();
21732 result = wxTimeSpan::Week();
21733
21734 wxPyEndAllowThreads(__tstate);
21735 if (PyErr_Occurred()) SWIG_fail;
21736 }
21737 {
21738 wxTimeSpan * resultptr;
21739 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21740 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21741 }
21742 return resultobj;
21743 fail:
21744 return NULL;
21745}
21746
21747
21748static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21749 PyObject *resultobj;
21750 long arg1 = (long) 0 ;
21751 long arg2 = (long) 0 ;
21752 long arg3 = (long) 0 ;
21753 long arg4 = (long) 0 ;
21754 wxTimeSpan *result;
21755 PyObject * obj0 = 0 ;
21756 PyObject * obj1 = 0 ;
21757 PyObject * obj2 = 0 ;
21758 PyObject * obj3 = 0 ;
21759 char *kwnames[] = {
21760 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21761 };
21762
21763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21764 if (obj0) {
21765 arg1 = (long) SWIG_AsLong(obj0);
21766 if (PyErr_Occurred()) SWIG_fail;
21767 }
21768 if (obj1) {
21769 arg2 = (long) SWIG_AsLong(obj1);
21770 if (PyErr_Occurred()) SWIG_fail;
21771 }
21772 if (obj2) {
21773 arg3 = (long) SWIG_AsLong(obj2);
21774 if (PyErr_Occurred()) SWIG_fail;
21775 }
21776 if (obj3) {
21777 arg4 = (long) SWIG_AsLong(obj3);
21778 if (PyErr_Occurred()) SWIG_fail;
21779 }
21780 {
21781 PyThreadState* __tstate = wxPyBeginAllowThreads();
21782 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21783
21784 wxPyEndAllowThreads(__tstate);
21785 if (PyErr_Occurred()) SWIG_fail;
21786 }
21787 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21788 return resultobj;
21789 fail:
21790 return NULL;
21791}
21792
21793
21794static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21795 PyObject *resultobj;
21796 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21797 PyObject * obj0 = 0 ;
21798 char *kwnames[] = {
21799 (char *) "self", NULL
21800 };
21801
21802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21805 {
21806 PyThreadState* __tstate = wxPyBeginAllowThreads();
21807 delete arg1;
21808
21809 wxPyEndAllowThreads(__tstate);
21810 if (PyErr_Occurred()) SWIG_fail;
21811 }
21812 Py_INCREF(Py_None); resultobj = Py_None;
21813 return resultobj;
21814 fail:
21815 return NULL;
21816}
21817
21818
21819static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21820 PyObject *resultobj;
21821 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21822 wxTimeSpan *arg2 = 0 ;
21823 wxTimeSpan *result;
21824 PyObject * obj0 = 0 ;
21825 PyObject * obj1 = 0 ;
21826 char *kwnames[] = {
21827 (char *) "self",(char *) "diff", NULL
21828 };
21829
21830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21833 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21834 SWIG_POINTER_EXCEPTION | 0)) == -1)
21835 SWIG_fail;
21836 if (arg2 == NULL) {
21837 PyErr_SetString(PyExc_TypeError,"null reference");
21838 SWIG_fail;
21839 }
21840 {
21841 PyThreadState* __tstate = wxPyBeginAllowThreads();
21842 {
21843 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21844 result = (wxTimeSpan *) &_result_ref;
21845 }
21846
21847 wxPyEndAllowThreads(__tstate);
21848 if (PyErr_Occurred()) SWIG_fail;
21849 }
21850 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21851 return resultobj;
21852 fail:
21853 return NULL;
21854}
21855
21856
21857static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21858 PyObject *resultobj;
21859 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21860 wxTimeSpan *arg2 = 0 ;
21861 wxTimeSpan *result;
21862 PyObject * obj0 = 0 ;
21863 PyObject * obj1 = 0 ;
21864 char *kwnames[] = {
21865 (char *) "self",(char *) "diff", NULL
21866 };
21867
21868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21871 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21872 SWIG_POINTER_EXCEPTION | 0)) == -1)
21873 SWIG_fail;
21874 if (arg2 == NULL) {
21875 PyErr_SetString(PyExc_TypeError,"null reference");
21876 SWIG_fail;
21877 }
21878 {
21879 PyThreadState* __tstate = wxPyBeginAllowThreads();
21880 {
21881 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21882 result = (wxTimeSpan *) &_result_ref;
21883 }
21884
21885 wxPyEndAllowThreads(__tstate);
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21889 return resultobj;
21890 fail:
21891 return NULL;
21892}
21893
21894
21895static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21896 PyObject *resultobj;
21897 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21898 int arg2 ;
21899 wxTimeSpan *result;
21900 PyObject * obj0 = 0 ;
21901 PyObject * obj1 = 0 ;
21902 char *kwnames[] = {
21903 (char *) "self",(char *) "n", NULL
21904 };
21905
21906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21909 arg2 = (int) SWIG_AsInt(obj1);
21910 if (PyErr_Occurred()) SWIG_fail;
21911 {
21912 PyThreadState* __tstate = wxPyBeginAllowThreads();
21913 {
21914 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21915 result = (wxTimeSpan *) &_result_ref;
21916 }
21917
21918 wxPyEndAllowThreads(__tstate);
21919 if (PyErr_Occurred()) SWIG_fail;
21920 }
21921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21922 return resultobj;
21923 fail:
21924 return NULL;
21925}
21926
21927
21928static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21929 PyObject *resultobj;
21930 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21931 wxTimeSpan *result;
21932 PyObject * obj0 = 0 ;
21933 char *kwnames[] = {
21934 (char *) "self", NULL
21935 };
21936
21937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21940 {
21941 PyThreadState* __tstate = wxPyBeginAllowThreads();
21942 {
21943 wxTimeSpan &_result_ref = (arg1)->Neg();
21944 result = (wxTimeSpan *) &_result_ref;
21945 }
21946
21947 wxPyEndAllowThreads(__tstate);
21948 if (PyErr_Occurred()) SWIG_fail;
21949 }
21950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21951 return resultobj;
21952 fail:
21953 return NULL;
21954}
21955
21956
21957static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21958 PyObject *resultobj;
21959 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21960 wxTimeSpan result;
21961 PyObject * obj0 = 0 ;
21962 char *kwnames[] = {
21963 (char *) "self", NULL
21964 };
21965
21966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21969 {
21970 PyThreadState* __tstate = wxPyBeginAllowThreads();
21971 result = ((wxTimeSpan const *)arg1)->Abs();
21972
21973 wxPyEndAllowThreads(__tstate);
21974 if (PyErr_Occurred()) SWIG_fail;
21975 }
21976 {
21977 wxTimeSpan * resultptr;
21978 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21979 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21980 }
21981 return resultobj;
21982 fail:
21983 return NULL;
21984}
21985
21986
21987static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21988 PyObject *resultobj;
21989 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21990 wxTimeSpan *arg2 = 0 ;
21991 wxTimeSpan *result;
21992 PyObject * obj0 = 0 ;
21993 PyObject * obj1 = 0 ;
21994 char *kwnames[] = {
21995 (char *) "self",(char *) "diff", NULL
21996 };
21997
21998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22002 SWIG_POINTER_EXCEPTION | 0)) == -1)
22003 SWIG_fail;
22004 if (arg2 == NULL) {
22005 PyErr_SetString(PyExc_TypeError,"null reference");
22006 SWIG_fail;
22007 }
22008 {
22009 PyThreadState* __tstate = wxPyBeginAllowThreads();
22010 {
22011 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
22012 result = (wxTimeSpan *) &_result_ref;
22013 }
22014
22015 wxPyEndAllowThreads(__tstate);
22016 if (PyErr_Occurred()) SWIG_fail;
22017 }
22018 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22019 return resultobj;
22020 fail:
22021 return NULL;
22022}
22023
22024
22025static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
22026 PyObject *resultobj;
22027 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22028 wxTimeSpan *arg2 = 0 ;
22029 wxTimeSpan *result;
22030 PyObject * obj0 = 0 ;
22031 PyObject * obj1 = 0 ;
22032 char *kwnames[] = {
22033 (char *) "self",(char *) "diff", NULL
22034 };
22035
22036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
22037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22039 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22040 SWIG_POINTER_EXCEPTION | 0)) == -1)
22041 SWIG_fail;
22042 if (arg2 == NULL) {
22043 PyErr_SetString(PyExc_TypeError,"null reference");
22044 SWIG_fail;
22045 }
22046 {
22047 PyThreadState* __tstate = wxPyBeginAllowThreads();
22048 {
22049 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
22050 result = (wxTimeSpan *) &_result_ref;
22051 }
22052
22053 wxPyEndAllowThreads(__tstate);
22054 if (PyErr_Occurred()) SWIG_fail;
22055 }
22056 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22057 return resultobj;
22058 fail:
22059 return NULL;
22060}
22061
22062
22063static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22064 PyObject *resultobj;
22065 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22066 int arg2 ;
22067 wxTimeSpan *result;
22068 PyObject * obj0 = 0 ;
22069 PyObject * obj1 = 0 ;
22070 char *kwnames[] = {
22071 (char *) "self",(char *) "n", NULL
22072 };
22073
22074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
22075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22077 arg2 = (int) SWIG_AsInt(obj1);
22078 if (PyErr_Occurred()) SWIG_fail;
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 {
22082 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
22083 result = (wxTimeSpan *) &_result_ref;
22084 }
22085
22086 wxPyEndAllowThreads(__tstate);
22087 if (PyErr_Occurred()) SWIG_fail;
22088 }
22089 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22090 return resultobj;
22091 fail:
22092 return NULL;
22093}
22094
22095
22096static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
22097 PyObject *resultobj;
22098 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22099 wxTimeSpan *result;
22100 PyObject * obj0 = 0 ;
22101 char *kwnames[] = {
22102 (char *) "self", NULL
22103 };
22104
22105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22108 {
22109 PyThreadState* __tstate = wxPyBeginAllowThreads();
22110 {
22111 wxTimeSpan &_result_ref = (arg1)->operator -();
22112 result = (wxTimeSpan *) &_result_ref;
22113 }
22114
22115 wxPyEndAllowThreads(__tstate);
22116 if (PyErr_Occurred()) SWIG_fail;
22117 }
22118 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22119 return resultobj;
22120 fail:
22121 return NULL;
22122}
22123
22124
22125static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
22126 PyObject *resultobj;
22127 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22128 wxTimeSpan *arg2 = 0 ;
22129 wxTimeSpan result;
22130 PyObject * obj0 = 0 ;
22131 PyObject * obj1 = 0 ;
22132 char *kwnames[] = {
22133 (char *) "self",(char *) "other", NULL
22134 };
22135
22136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22139 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22140 SWIG_POINTER_EXCEPTION | 0)) == -1)
22141 SWIG_fail;
22142 if (arg2 == NULL) {
22143 PyErr_SetString(PyExc_TypeError,"null reference");
22144 SWIG_fail;
22145 }
22146 {
22147 PyThreadState* __tstate = wxPyBeginAllowThreads();
22148 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22149
22150 wxPyEndAllowThreads(__tstate);
22151 if (PyErr_Occurred()) SWIG_fail;
22152 }
22153 {
22154 wxTimeSpan * resultptr;
22155 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22156 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22157 }
22158 return resultobj;
22159 fail:
22160 return NULL;
22161}
22162
22163
22164static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
22165 PyObject *resultobj;
22166 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22167 wxTimeSpan *arg2 = 0 ;
22168 wxTimeSpan result;
22169 PyObject * obj0 = 0 ;
22170 PyObject * obj1 = 0 ;
22171 char *kwnames[] = {
22172 (char *) "self",(char *) "other", NULL
22173 };
22174
22175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22178 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22179 SWIG_POINTER_EXCEPTION | 0)) == -1)
22180 SWIG_fail;
22181 if (arg2 == NULL) {
22182 PyErr_SetString(PyExc_TypeError,"null reference");
22183 SWIG_fail;
22184 }
22185 {
22186 PyThreadState* __tstate = wxPyBeginAllowThreads();
22187 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22188
22189 wxPyEndAllowThreads(__tstate);
22190 if (PyErr_Occurred()) SWIG_fail;
22191 }
22192 {
22193 wxTimeSpan * resultptr;
22194 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22195 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22196 }
22197 return resultobj;
22198 fail:
22199 return NULL;
22200}
22201
22202
22203static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22204 PyObject *resultobj;
22205 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22206 int arg2 ;
22207 wxTimeSpan result;
22208 PyObject * obj0 = 0 ;
22209 PyObject * obj1 = 0 ;
22210 char *kwnames[] = {
22211 (char *) "self",(char *) "n", NULL
22212 };
22213
22214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22217 arg2 = (int) SWIG_AsInt(obj1);
22218 if (PyErr_Occurred()) SWIG_fail;
22219 {
22220 PyThreadState* __tstate = wxPyBeginAllowThreads();
22221 result = wxTimeSpan___mul__(arg1,arg2);
22222
22223 wxPyEndAllowThreads(__tstate);
22224 if (PyErr_Occurred()) SWIG_fail;
22225 }
22226 {
22227 wxTimeSpan * resultptr;
22228 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22229 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22230 }
22231 return resultobj;
22232 fail:
22233 return NULL;
22234}
22235
22236
22237static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22238 PyObject *resultobj;
22239 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22240 int arg2 ;
22241 wxTimeSpan result;
22242 PyObject * obj0 = 0 ;
22243 PyObject * obj1 = 0 ;
22244 char *kwnames[] = {
22245 (char *) "self",(char *) "n", NULL
22246 };
22247
22248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22251 arg2 = (int) SWIG_AsInt(obj1);
22252 if (PyErr_Occurred()) SWIG_fail;
22253 {
22254 PyThreadState* __tstate = wxPyBeginAllowThreads();
22255 result = wxTimeSpan___rmul__(arg1,arg2);
22256
22257 wxPyEndAllowThreads(__tstate);
22258 if (PyErr_Occurred()) SWIG_fail;
22259 }
22260 {
22261 wxTimeSpan * resultptr;
22262 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22263 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22264 }
22265 return resultobj;
22266 fail:
22267 return NULL;
22268}
22269
22270
22271static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22272 PyObject *resultobj;
22273 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22274 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22275 bool result;
22276 PyObject * obj0 = 0 ;
22277 PyObject * obj1 = 0 ;
22278 char *kwnames[] = {
22279 (char *) "self",(char *) "other", NULL
22280 };
22281
22282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22285 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22287 {
22288 PyThreadState* __tstate = wxPyBeginAllowThreads();
22289 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22290
22291 wxPyEndAllowThreads(__tstate);
22292 if (PyErr_Occurred()) SWIG_fail;
22293 }
22294 {
22295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22296 }
22297 return resultobj;
22298 fail:
22299 return NULL;
22300}
22301
22302
22303static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22304 PyObject *resultobj;
22305 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22306 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22307 bool result;
22308 PyObject * obj0 = 0 ;
22309 PyObject * obj1 = 0 ;
22310 char *kwnames[] = {
22311 (char *) "self",(char *) "other", NULL
22312 };
22313
22314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22317 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22319 {
22320 PyThreadState* __tstate = wxPyBeginAllowThreads();
22321 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22322
22323 wxPyEndAllowThreads(__tstate);
22324 if (PyErr_Occurred()) SWIG_fail;
22325 }
22326 {
22327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22328 }
22329 return resultobj;
22330 fail:
22331 return NULL;
22332}
22333
22334
22335static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22336 PyObject *resultobj;
22337 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22338 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22339 bool result;
22340 PyObject * obj0 = 0 ;
22341 PyObject * obj1 = 0 ;
22342 char *kwnames[] = {
22343 (char *) "self",(char *) "other", NULL
22344 };
22345
22346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22351 {
22352 PyThreadState* __tstate = wxPyBeginAllowThreads();
22353 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22354
22355 wxPyEndAllowThreads(__tstate);
22356 if (PyErr_Occurred()) SWIG_fail;
22357 }
22358 {
22359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22360 }
22361 return resultobj;
22362 fail:
22363 return NULL;
22364}
22365
22366
22367static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22368 PyObject *resultobj;
22369 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22370 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22371 bool result;
22372 PyObject * obj0 = 0 ;
22373 PyObject * obj1 = 0 ;
22374 char *kwnames[] = {
22375 (char *) "self",(char *) "other", NULL
22376 };
22377
22378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22381 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22383 {
22384 PyThreadState* __tstate = wxPyBeginAllowThreads();
22385 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22386
22387 wxPyEndAllowThreads(__tstate);
22388 if (PyErr_Occurred()) SWIG_fail;
22389 }
22390 {
22391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22392 }
22393 return resultobj;
22394 fail:
22395 return NULL;
22396}
22397
22398
22399static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22400 PyObject *resultobj;
22401 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22402 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22403 bool result;
22404 PyObject * obj0 = 0 ;
22405 PyObject * obj1 = 0 ;
22406 char *kwnames[] = {
22407 (char *) "self",(char *) "other", NULL
22408 };
22409
22410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22413 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22415 {
22416 PyThreadState* __tstate = wxPyBeginAllowThreads();
22417 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22418
22419 wxPyEndAllowThreads(__tstate);
22420 if (PyErr_Occurred()) SWIG_fail;
22421 }
22422 {
22423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22424 }
22425 return resultobj;
22426 fail:
22427 return NULL;
22428}
22429
22430
22431static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22432 PyObject *resultobj;
22433 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22434 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22435 bool result;
22436 PyObject * obj0 = 0 ;
22437 PyObject * obj1 = 0 ;
22438 char *kwnames[] = {
22439 (char *) "self",(char *) "other", NULL
22440 };
22441
22442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22447 {
22448 PyThreadState* __tstate = wxPyBeginAllowThreads();
22449 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22450
22451 wxPyEndAllowThreads(__tstate);
22452 if (PyErr_Occurred()) SWIG_fail;
22453 }
22454 {
22455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22456 }
22457 return resultobj;
22458 fail:
22459 return NULL;
22460}
22461
22462
22463static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22464 PyObject *resultobj;
22465 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22466 bool result;
22467 PyObject * obj0 = 0 ;
22468 char *kwnames[] = {
22469 (char *) "self", NULL
22470 };
22471
22472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22475 {
22476 PyThreadState* __tstate = wxPyBeginAllowThreads();
22477 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22478
22479 wxPyEndAllowThreads(__tstate);
22480 if (PyErr_Occurred()) SWIG_fail;
22481 }
22482 {
22483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22484 }
22485 return resultobj;
22486 fail:
22487 return NULL;
22488}
22489
22490
22491static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22492 PyObject *resultobj;
22493 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22494 bool result;
22495 PyObject * obj0 = 0 ;
22496 char *kwnames[] = {
22497 (char *) "self", NULL
22498 };
22499
22500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
22505 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22506
22507 wxPyEndAllowThreads(__tstate);
22508 if (PyErr_Occurred()) SWIG_fail;
22509 }
22510 {
22511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22512 }
22513 return resultobj;
22514 fail:
22515 return NULL;
22516}
22517
22518
22519static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22520 PyObject *resultobj;
22521 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22522 bool result;
22523 PyObject * obj0 = 0 ;
22524 char *kwnames[] = {
22525 (char *) "self", NULL
22526 };
22527
22528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22531 {
22532 PyThreadState* __tstate = wxPyBeginAllowThreads();
22533 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22534
22535 wxPyEndAllowThreads(__tstate);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 }
22538 {
22539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22540 }
22541 return resultobj;
22542 fail:
22543 return NULL;
22544}
22545
22546
22547static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22548 PyObject *resultobj;
22549 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22550 wxTimeSpan *arg2 = 0 ;
22551 bool result;
22552 PyObject * obj0 = 0 ;
22553 PyObject * obj1 = 0 ;
22554 char *kwnames[] = {
22555 (char *) "self",(char *) "ts", NULL
22556 };
22557
22558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22562 SWIG_POINTER_EXCEPTION | 0)) == -1)
22563 SWIG_fail;
22564 if (arg2 == NULL) {
22565 PyErr_SetString(PyExc_TypeError,"null reference");
22566 SWIG_fail;
22567 }
22568 {
22569 PyThreadState* __tstate = wxPyBeginAllowThreads();
22570 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22571
22572 wxPyEndAllowThreads(__tstate);
22573 if (PyErr_Occurred()) SWIG_fail;
22574 }
22575 {
22576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22577 }
22578 return resultobj;
22579 fail:
22580 return NULL;
22581}
22582
22583
22584static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22585 PyObject *resultobj;
22586 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22587 wxTimeSpan *arg2 = 0 ;
22588 bool result;
22589 PyObject * obj0 = 0 ;
22590 PyObject * obj1 = 0 ;
22591 char *kwnames[] = {
22592 (char *) "self",(char *) "ts", NULL
22593 };
22594
22595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22598 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22599 SWIG_POINTER_EXCEPTION | 0)) == -1)
22600 SWIG_fail;
22601 if (arg2 == NULL) {
22602 PyErr_SetString(PyExc_TypeError,"null reference");
22603 SWIG_fail;
22604 }
22605 {
22606 PyThreadState* __tstate = wxPyBeginAllowThreads();
22607 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22608
22609 wxPyEndAllowThreads(__tstate);
22610 if (PyErr_Occurred()) SWIG_fail;
22611 }
22612 {
22613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22614 }
22615 return resultobj;
22616 fail:
22617 return NULL;
22618}
22619
22620
22621static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22622 PyObject *resultobj;
22623 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22624 wxTimeSpan *arg2 = 0 ;
22625 bool result;
22626 PyObject * obj0 = 0 ;
22627 PyObject * obj1 = 0 ;
22628 char *kwnames[] = {
22629 (char *) "self",(char *) "t", NULL
22630 };
22631
22632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22636 SWIG_POINTER_EXCEPTION | 0)) == -1)
22637 SWIG_fail;
22638 if (arg2 == NULL) {
22639 PyErr_SetString(PyExc_TypeError,"null reference");
22640 SWIG_fail;
22641 }
22642 {
22643 PyThreadState* __tstate = wxPyBeginAllowThreads();
22644 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22645
22646 wxPyEndAllowThreads(__tstate);
22647 if (PyErr_Occurred()) SWIG_fail;
22648 }
22649 {
22650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22651 }
22652 return resultobj;
22653 fail:
22654 return NULL;
22655}
22656
22657
22658static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22659 PyObject *resultobj;
22660 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22661 int result;
22662 PyObject * obj0 = 0 ;
22663 char *kwnames[] = {
22664 (char *) "self", NULL
22665 };
22666
22667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22670 {
22671 PyThreadState* __tstate = wxPyBeginAllowThreads();
22672 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22673
22674 wxPyEndAllowThreads(__tstate);
22675 if (PyErr_Occurred()) SWIG_fail;
22676 }
22677 resultobj = SWIG_FromInt((int)result);
22678 return resultobj;
22679 fail:
22680 return NULL;
22681}
22682
22683
22684static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22685 PyObject *resultobj;
22686 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22687 int result;
22688 PyObject * obj0 = 0 ;
22689 char *kwnames[] = {
22690 (char *) "self", NULL
22691 };
22692
22693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22696 {
22697 PyThreadState* __tstate = wxPyBeginAllowThreads();
22698 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22699
22700 wxPyEndAllowThreads(__tstate);
22701 if (PyErr_Occurred()) SWIG_fail;
22702 }
22703 resultobj = SWIG_FromInt((int)result);
22704 return resultobj;
22705 fail:
22706 return NULL;
22707}
22708
22709
22710static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22711 PyObject *resultobj;
22712 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22713 int result;
22714 PyObject * obj0 = 0 ;
22715 char *kwnames[] = {
22716 (char *) "self", NULL
22717 };
22718
22719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22722 {
22723 PyThreadState* __tstate = wxPyBeginAllowThreads();
22724 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22725
22726 wxPyEndAllowThreads(__tstate);
22727 if (PyErr_Occurred()) SWIG_fail;
22728 }
22729 resultobj = SWIG_FromInt((int)result);
22730 return resultobj;
22731 fail:
22732 return NULL;
22733}
22734
22735
22736static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22737 PyObject *resultobj;
22738 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22739 int result;
22740 PyObject * obj0 = 0 ;
22741 char *kwnames[] = {
22742 (char *) "self", NULL
22743 };
22744
22745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22748 {
22749 PyThreadState* __tstate = wxPyBeginAllowThreads();
22750 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22751
22752 wxPyEndAllowThreads(__tstate);
22753 if (PyErr_Occurred()) SWIG_fail;
22754 }
22755 resultobj = SWIG_FromInt((int)result);
22756 return resultobj;
22757 fail:
22758 return NULL;
22759}
22760
22761
22762static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22763 PyObject *resultobj;
22764 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22765 wxLongLong result;
22766 PyObject * obj0 = 0 ;
22767 char *kwnames[] = {
22768 (char *) "self", NULL
22769 };
22770
22771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22774 {
22775 PyThreadState* __tstate = wxPyBeginAllowThreads();
22776 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22777
22778 wxPyEndAllowThreads(__tstate);
22779 if (PyErr_Occurred()) SWIG_fail;
22780 }
22781 {
22782 PyObject *hi, *lo, *shifter, *shifted;
22783 hi = PyLong_FromLong( (&result)->GetHi() );
22784 lo = PyLong_FromLong( (&result)->GetLo() );
22785 shifter = PyLong_FromLong(32);
22786 shifted = PyNumber_Lshift(hi, shifter);
22787 resultobj = PyNumber_Or(shifted, lo);
22788 Py_DECREF(hi);
22789 Py_DECREF(lo);
22790 Py_DECREF(shifter);
22791 Py_DECREF(shifted);
22792 }
22793 return resultobj;
22794 fail:
22795 return NULL;
22796}
22797
22798
22799static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22800 PyObject *resultobj;
22801 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22802 wxLongLong result;
22803 PyObject * obj0 = 0 ;
22804 char *kwnames[] = {
22805 (char *) "self", NULL
22806 };
22807
22808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22811 {
22812 PyThreadState* __tstate = wxPyBeginAllowThreads();
22813 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22814
22815 wxPyEndAllowThreads(__tstate);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 {
22819 PyObject *hi, *lo, *shifter, *shifted;
22820 hi = PyLong_FromLong( (&result)->GetHi() );
22821 lo = PyLong_FromLong( (&result)->GetLo() );
22822 shifter = PyLong_FromLong(32);
22823 shifted = PyNumber_Lshift(hi, shifter);
22824 resultobj = PyNumber_Or(shifted, lo);
22825 Py_DECREF(hi);
22826 Py_DECREF(lo);
22827 Py_DECREF(shifter);
22828 Py_DECREF(shifted);
22829 }
22830 return resultobj;
22831 fail:
22832 return NULL;
22833}
22834
22835
22836static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22837 PyObject *resultobj;
22838 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22839 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22840 wxString *arg2 = (wxString *) &arg2_defvalue ;
22841 wxString result;
22842 bool temp2 = False ;
22843 PyObject * obj0 = 0 ;
22844 PyObject * obj1 = 0 ;
22845 char *kwnames[] = {
22846 (char *) "self",(char *) "format", NULL
22847 };
22848
22849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22852 if (obj1) {
22853 {
22854 arg2 = wxString_in_helper(obj1);
22855 if (arg2 == NULL) SWIG_fail;
22856 temp2 = True;
22857 }
22858 }
22859 {
22860 PyThreadState* __tstate = wxPyBeginAllowThreads();
22861 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22862
22863 wxPyEndAllowThreads(__tstate);
22864 if (PyErr_Occurred()) SWIG_fail;
22865 }
22866 {
22867#if wxUSE_UNICODE
22868 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22869#else
22870 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22871#endif
22872 }
22873 {
22874 if (temp2)
22875 delete arg2;
22876 }
22877 return resultobj;
22878 fail:
22879 {
22880 if (temp2)
22881 delete arg2;
22882 }
22883 return NULL;
22884}
22885
22886
22887static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22888 PyObject *obj;
22889 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22890 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22891 Py_INCREF(obj);
22892 return Py_BuildValue((char *)"");
22893}
22894static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22895 PyObject *resultobj;
22896 int arg1 = (int) 0 ;
22897 int arg2 = (int) 0 ;
22898 int arg3 = (int) 0 ;
22899 int arg4 = (int) 0 ;
22900 wxDateSpan *result;
22901 PyObject * obj0 = 0 ;
22902 PyObject * obj1 = 0 ;
22903 PyObject * obj2 = 0 ;
22904 PyObject * obj3 = 0 ;
22905 char *kwnames[] = {
22906 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22907 };
22908
22909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22910 if (obj0) {
22911 arg1 = (int) SWIG_AsInt(obj0);
22912 if (PyErr_Occurred()) SWIG_fail;
22913 }
22914 if (obj1) {
22915 arg2 = (int) SWIG_AsInt(obj1);
22916 if (PyErr_Occurred()) SWIG_fail;
22917 }
22918 if (obj2) {
22919 arg3 = (int) SWIG_AsInt(obj2);
22920 if (PyErr_Occurred()) SWIG_fail;
22921 }
22922 if (obj3) {
22923 arg4 = (int) SWIG_AsInt(obj3);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 }
22926 {
22927 PyThreadState* __tstate = wxPyBeginAllowThreads();
22928 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22929
22930 wxPyEndAllowThreads(__tstate);
22931 if (PyErr_Occurred()) SWIG_fail;
22932 }
22933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22934 return resultobj;
22935 fail:
22936 return NULL;
22937}
22938
22939
22940static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22941 PyObject *resultobj;
22942 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22943 PyObject * obj0 = 0 ;
22944 char *kwnames[] = {
22945 (char *) "self", NULL
22946 };
22947
22948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22951 {
22952 PyThreadState* __tstate = wxPyBeginAllowThreads();
22953 delete arg1;
22954
22955 wxPyEndAllowThreads(__tstate);
22956 if (PyErr_Occurred()) SWIG_fail;
22957 }
22958 Py_INCREF(Py_None); resultobj = Py_None;
22959 return resultobj;
22960 fail:
22961 return NULL;
22962}
22963
22964
22965static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22966 PyObject *resultobj;
22967 int arg1 ;
22968 wxDateSpan result;
22969 PyObject * obj0 = 0 ;
22970 char *kwnames[] = {
22971 (char *) "days", NULL
22972 };
22973
22974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22975 arg1 = (int) SWIG_AsInt(obj0);
22976 if (PyErr_Occurred()) SWIG_fail;
22977 {
22978 PyThreadState* __tstate = wxPyBeginAllowThreads();
22979 result = wxDateSpan::Days(arg1);
22980
22981 wxPyEndAllowThreads(__tstate);
22982 if (PyErr_Occurred()) SWIG_fail;
22983 }
22984 {
22985 wxDateSpan * resultptr;
22986 resultptr = new wxDateSpan((wxDateSpan &) result);
22987 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22988 }
22989 return resultobj;
22990 fail:
22991 return NULL;
22992}
22993
22994
22995static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22996 PyObject *resultobj;
22997 wxDateSpan result;
22998 char *kwnames[] = {
22999 NULL
23000 };
23001
23002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
23003 {
23004 PyThreadState* __tstate = wxPyBeginAllowThreads();
23005 result = wxDateSpan::Day();
23006
23007 wxPyEndAllowThreads(__tstate);
23008 if (PyErr_Occurred()) SWIG_fail;
23009 }
23010 {
23011 wxDateSpan * resultptr;
23012 resultptr = new wxDateSpan((wxDateSpan &) result);
23013 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23014 }
23015 return resultobj;
23016 fail:
23017 return NULL;
23018}
23019
23020
23021static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23022 PyObject *resultobj;
23023 int arg1 ;
23024 wxDateSpan result;
23025 PyObject * obj0 = 0 ;
23026 char *kwnames[] = {
23027 (char *) "weeks", NULL
23028 };
23029
23030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
23031 arg1 = (int) SWIG_AsInt(obj0);
23032 if (PyErr_Occurred()) SWIG_fail;
23033 {
23034 PyThreadState* __tstate = wxPyBeginAllowThreads();
23035 result = wxDateSpan::Weeks(arg1);
23036
23037 wxPyEndAllowThreads(__tstate);
23038 if (PyErr_Occurred()) SWIG_fail;
23039 }
23040 {
23041 wxDateSpan * resultptr;
23042 resultptr = new wxDateSpan((wxDateSpan &) result);
23043 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23044 }
23045 return resultobj;
23046 fail:
23047 return NULL;
23048}
23049
23050
23051static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
23052 PyObject *resultobj;
23053 wxDateSpan result;
23054 char *kwnames[] = {
23055 NULL
23056 };
23057
23058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
23059 {
23060 PyThreadState* __tstate = wxPyBeginAllowThreads();
23061 result = wxDateSpan::Week();
23062
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 {
23067 wxDateSpan * resultptr;
23068 resultptr = new wxDateSpan((wxDateSpan &) result);
23069 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23070 }
23071 return resultobj;
23072 fail:
23073 return NULL;
23074}
23075
23076
23077static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
23078 PyObject *resultobj;
23079 int arg1 ;
23080 wxDateSpan result;
23081 PyObject * obj0 = 0 ;
23082 char *kwnames[] = {
23083 (char *) "mon", NULL
23084 };
23085
23086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
23087 arg1 = (int) SWIG_AsInt(obj0);
23088 if (PyErr_Occurred()) SWIG_fail;
23089 {
23090 PyThreadState* __tstate = wxPyBeginAllowThreads();
23091 result = wxDateSpan::Months(arg1);
23092
23093 wxPyEndAllowThreads(__tstate);
23094 if (PyErr_Occurred()) SWIG_fail;
23095 }
23096 {
23097 wxDateSpan * resultptr;
23098 resultptr = new wxDateSpan((wxDateSpan &) result);
23099 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23100 }
23101 return resultobj;
23102 fail:
23103 return NULL;
23104}
23105
23106
23107static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
23108 PyObject *resultobj;
23109 wxDateSpan result;
23110 char *kwnames[] = {
23111 NULL
23112 };
23113
23114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23115 {
23116 PyThreadState* __tstate = wxPyBeginAllowThreads();
23117 result = wxDateSpan::Month();
23118
23119 wxPyEndAllowThreads(__tstate);
23120 if (PyErr_Occurred()) SWIG_fail;
23121 }
23122 {
23123 wxDateSpan * resultptr;
23124 resultptr = new wxDateSpan((wxDateSpan &) result);
23125 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23126 }
23127 return resultobj;
23128 fail:
23129 return NULL;
23130}
23131
23132
23133static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
23134 PyObject *resultobj;
23135 int arg1 ;
23136 wxDateSpan result;
23137 PyObject * obj0 = 0 ;
23138 char *kwnames[] = {
23139 (char *) "years", NULL
23140 };
23141
23142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
23143 arg1 = (int) SWIG_AsInt(obj0);
23144 if (PyErr_Occurred()) SWIG_fail;
23145 {
23146 PyThreadState* __tstate = wxPyBeginAllowThreads();
23147 result = wxDateSpan::Years(arg1);
23148
23149 wxPyEndAllowThreads(__tstate);
23150 if (PyErr_Occurred()) SWIG_fail;
23151 }
23152 {
23153 wxDateSpan * resultptr;
23154 resultptr = new wxDateSpan((wxDateSpan &) result);
23155 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23156 }
23157 return resultobj;
23158 fail:
23159 return NULL;
23160}
23161
23162
23163static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
23164 PyObject *resultobj;
23165 wxDateSpan result;
23166 char *kwnames[] = {
23167 NULL
23168 };
23169
23170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23171 {
23172 PyThreadState* __tstate = wxPyBeginAllowThreads();
23173 result = wxDateSpan::Year();
23174
23175 wxPyEndAllowThreads(__tstate);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
23178 {
23179 wxDateSpan * resultptr;
23180 resultptr = new wxDateSpan((wxDateSpan &) result);
23181 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23182 }
23183 return resultobj;
23184 fail:
23185 return NULL;
23186}
23187
23188
23189static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23190 PyObject *resultobj;
23191 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23192 int arg2 ;
23193 wxDateSpan *result;
23194 PyObject * obj0 = 0 ;
23195 PyObject * obj1 = 0 ;
23196 char *kwnames[] = {
23197 (char *) "self",(char *) "n", NULL
23198 };
23199
23200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23203 arg2 = (int) SWIG_AsInt(obj1);
23204 if (PyErr_Occurred()) SWIG_fail;
23205 {
23206 PyThreadState* __tstate = wxPyBeginAllowThreads();
23207 {
23208 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23209 result = (wxDateSpan *) &_result_ref;
23210 }
23211
23212 wxPyEndAllowThreads(__tstate);
23213 if (PyErr_Occurred()) SWIG_fail;
23214 }
23215 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23216 return resultobj;
23217 fail:
23218 return NULL;
23219}
23220
23221
23222static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23223 PyObject *resultobj;
23224 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23225 int arg2 ;
23226 wxDateSpan *result;
23227 PyObject * obj0 = 0 ;
23228 PyObject * obj1 = 0 ;
23229 char *kwnames[] = {
23230 (char *) "self",(char *) "n", NULL
23231 };
23232
23233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23236 arg2 = (int) SWIG_AsInt(obj1);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 {
23239 PyThreadState* __tstate = wxPyBeginAllowThreads();
23240 {
23241 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23242 result = (wxDateSpan *) &_result_ref;
23243 }
23244
23245 wxPyEndAllowThreads(__tstate);
23246 if (PyErr_Occurred()) SWIG_fail;
23247 }
23248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23249 return resultobj;
23250 fail:
23251 return NULL;
23252}
23253
23254
23255static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23256 PyObject *resultobj;
23257 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23258 int arg2 ;
23259 wxDateSpan *result;
23260 PyObject * obj0 = 0 ;
23261 PyObject * obj1 = 0 ;
23262 char *kwnames[] = {
23263 (char *) "self",(char *) "n", NULL
23264 };
23265
23266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23269 arg2 = (int) SWIG_AsInt(obj1);
23270 if (PyErr_Occurred()) SWIG_fail;
23271 {
23272 PyThreadState* __tstate = wxPyBeginAllowThreads();
23273 {
23274 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23275 result = (wxDateSpan *) &_result_ref;
23276 }
23277
23278 wxPyEndAllowThreads(__tstate);
23279 if (PyErr_Occurred()) SWIG_fail;
23280 }
23281 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23282 return resultobj;
23283 fail:
23284 return NULL;
23285}
23286
23287
23288static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23289 PyObject *resultobj;
23290 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23291 int arg2 ;
23292 wxDateSpan *result;
23293 PyObject * obj0 = 0 ;
23294 PyObject * obj1 = 0 ;
23295 char *kwnames[] = {
23296 (char *) "self",(char *) "n", NULL
23297 };
23298
23299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23302 arg2 = (int) SWIG_AsInt(obj1);
23303 if (PyErr_Occurred()) SWIG_fail;
23304 {
23305 PyThreadState* __tstate = wxPyBeginAllowThreads();
23306 {
23307 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23308 result = (wxDateSpan *) &_result_ref;
23309 }
23310
23311 wxPyEndAllowThreads(__tstate);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23315 return resultobj;
23316 fail:
23317 return NULL;
23318}
23319
23320
23321static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23322 PyObject *resultobj;
23323 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23324 int result;
23325 PyObject * obj0 = 0 ;
23326 char *kwnames[] = {
23327 (char *) "self", NULL
23328 };
23329
23330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = (int)((wxDateSpan const *)arg1)->GetYears();
23336
23337 wxPyEndAllowThreads(__tstate);
23338 if (PyErr_Occurred()) SWIG_fail;
23339 }
23340 resultobj = SWIG_FromInt((int)result);
23341 return resultobj;
23342 fail:
23343 return NULL;
23344}
23345
23346
23347static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23348 PyObject *resultobj;
23349 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23350 int result;
23351 PyObject * obj0 = 0 ;
23352 char *kwnames[] = {
23353 (char *) "self", NULL
23354 };
23355
23356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23359 {
23360 PyThreadState* __tstate = wxPyBeginAllowThreads();
23361 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23362
23363 wxPyEndAllowThreads(__tstate);
23364 if (PyErr_Occurred()) SWIG_fail;
23365 }
23366 resultobj = SWIG_FromInt((int)result);
23367 return resultobj;
23368 fail:
23369 return NULL;
23370}
23371
23372
23373static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23374 PyObject *resultobj;
23375 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23376 int result;
23377 PyObject * obj0 = 0 ;
23378 char *kwnames[] = {
23379 (char *) "self", NULL
23380 };
23381
23382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23385 {
23386 PyThreadState* __tstate = wxPyBeginAllowThreads();
23387 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23388
23389 wxPyEndAllowThreads(__tstate);
23390 if (PyErr_Occurred()) SWIG_fail;
23391 }
23392 resultobj = SWIG_FromInt((int)result);
23393 return resultobj;
23394 fail:
23395 return NULL;
23396}
23397
23398
23399static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23400 PyObject *resultobj;
23401 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23402 int result;
23403 PyObject * obj0 = 0 ;
23404 char *kwnames[] = {
23405 (char *) "self", NULL
23406 };
23407
23408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23411 {
23412 PyThreadState* __tstate = wxPyBeginAllowThreads();
23413 result = (int)((wxDateSpan const *)arg1)->GetDays();
23414
23415 wxPyEndAllowThreads(__tstate);
23416 if (PyErr_Occurred()) SWIG_fail;
23417 }
23418 resultobj = SWIG_FromInt((int)result);
23419 return resultobj;
23420 fail:
23421 return NULL;
23422}
23423
23424
23425static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23426 PyObject *resultobj;
23427 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23428 int result;
23429 PyObject * obj0 = 0 ;
23430 char *kwnames[] = {
23431 (char *) "self", NULL
23432 };
23433
23434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23437 {
23438 PyThreadState* __tstate = wxPyBeginAllowThreads();
23439 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23440
23441 wxPyEndAllowThreads(__tstate);
23442 if (PyErr_Occurred()) SWIG_fail;
23443 }
23444 resultobj = SWIG_FromInt((int)result);
23445 return resultobj;
23446 fail:
23447 return NULL;
23448}
23449
23450
23451static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23452 PyObject *resultobj;
23453 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23454 wxDateSpan *arg2 = 0 ;
23455 wxDateSpan *result;
23456 PyObject * obj0 = 0 ;
23457 PyObject * obj1 = 0 ;
23458 char *kwnames[] = {
23459 (char *) "self",(char *) "other", NULL
23460 };
23461
23462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23466 SWIG_POINTER_EXCEPTION | 0)) == -1)
23467 SWIG_fail;
23468 if (arg2 == NULL) {
23469 PyErr_SetString(PyExc_TypeError,"null reference");
23470 SWIG_fail;
23471 }
23472 {
23473 PyThreadState* __tstate = wxPyBeginAllowThreads();
23474 {
23475 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23476 result = (wxDateSpan *) &_result_ref;
23477 }
23478
23479 wxPyEndAllowThreads(__tstate);
23480 if (PyErr_Occurred()) SWIG_fail;
23481 }
23482 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23483 return resultobj;
23484 fail:
23485 return NULL;
23486}
23487
23488
23489static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23490 PyObject *resultobj;
23491 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23492 wxDateSpan *arg2 = 0 ;
23493 wxDateSpan *result;
23494 PyObject * obj0 = 0 ;
23495 PyObject * obj1 = 0 ;
23496 char *kwnames[] = {
23497 (char *) "self",(char *) "other", NULL
23498 };
23499
23500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23503 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23504 SWIG_POINTER_EXCEPTION | 0)) == -1)
23505 SWIG_fail;
23506 if (arg2 == NULL) {
23507 PyErr_SetString(PyExc_TypeError,"null reference");
23508 SWIG_fail;
23509 }
23510 {
23511 PyThreadState* __tstate = wxPyBeginAllowThreads();
23512 {
23513 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23514 result = (wxDateSpan *) &_result_ref;
23515 }
23516
23517 wxPyEndAllowThreads(__tstate);
23518 if (PyErr_Occurred()) SWIG_fail;
23519 }
23520 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23521 return resultobj;
23522 fail:
23523 return NULL;
23524}
23525
23526
23527static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23528 PyObject *resultobj;
23529 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23530 wxDateSpan *result;
23531 PyObject * obj0 = 0 ;
23532 char *kwnames[] = {
23533 (char *) "self", NULL
23534 };
23535
23536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23539 {
23540 PyThreadState* __tstate = wxPyBeginAllowThreads();
23541 {
23542 wxDateSpan &_result_ref = (arg1)->Neg();
23543 result = (wxDateSpan *) &_result_ref;
23544 }
23545
23546 wxPyEndAllowThreads(__tstate);
23547 if (PyErr_Occurred()) SWIG_fail;
23548 }
23549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23550 return resultobj;
23551 fail:
23552 return NULL;
23553}
23554
23555
23556static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23557 PyObject *resultobj;
23558 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23559 int arg2 ;
23560 wxDateSpan *result;
23561 PyObject * obj0 = 0 ;
23562 PyObject * obj1 = 0 ;
23563 char *kwnames[] = {
23564 (char *) "self",(char *) "factor", NULL
23565 };
23566
23567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23570 arg2 = (int) SWIG_AsInt(obj1);
23571 if (PyErr_Occurred()) SWIG_fail;
23572 {
23573 PyThreadState* __tstate = wxPyBeginAllowThreads();
23574 {
23575 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23576 result = (wxDateSpan *) &_result_ref;
23577 }
23578
23579 wxPyEndAllowThreads(__tstate);
23580 if (PyErr_Occurred()) SWIG_fail;
23581 }
23582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23583 return resultobj;
23584 fail:
23585 return NULL;
23586}
23587
23588
23589static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23590 PyObject *resultobj;
23591 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23592 wxDateSpan *arg2 = 0 ;
23593 wxDateSpan *result;
23594 PyObject * obj0 = 0 ;
23595 PyObject * obj1 = 0 ;
23596 char *kwnames[] = {
23597 (char *) "self",(char *) "other", NULL
23598 };
23599
23600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23603 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23604 SWIG_POINTER_EXCEPTION | 0)) == -1)
23605 SWIG_fail;
23606 if (arg2 == NULL) {
23607 PyErr_SetString(PyExc_TypeError,"null reference");
23608 SWIG_fail;
23609 }
23610 {
23611 PyThreadState* __tstate = wxPyBeginAllowThreads();
23612 {
23613 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23614 result = (wxDateSpan *) &_result_ref;
23615 }
23616
23617 wxPyEndAllowThreads(__tstate);
23618 if (PyErr_Occurred()) SWIG_fail;
23619 }
23620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23621 return resultobj;
23622 fail:
23623 return NULL;
23624}
23625
23626
23627static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23628 PyObject *resultobj;
23629 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23630 wxDateSpan *arg2 = 0 ;
23631 wxDateSpan *result;
23632 PyObject * obj0 = 0 ;
23633 PyObject * obj1 = 0 ;
23634 char *kwnames[] = {
23635 (char *) "self",(char *) "other", NULL
23636 };
23637
23638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23642 SWIG_POINTER_EXCEPTION | 0)) == -1)
23643 SWIG_fail;
23644 if (arg2 == NULL) {
23645 PyErr_SetString(PyExc_TypeError,"null reference");
23646 SWIG_fail;
23647 }
23648 {
23649 PyThreadState* __tstate = wxPyBeginAllowThreads();
23650 {
23651 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23652 result = (wxDateSpan *) &_result_ref;
23653 }
23654
23655 wxPyEndAllowThreads(__tstate);
23656 if (PyErr_Occurred()) SWIG_fail;
23657 }
23658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23659 return resultobj;
23660 fail:
23661 return NULL;
23662}
23663
23664
23665static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23666 PyObject *resultobj;
23667 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23668 wxDateSpan *result;
23669 PyObject * obj0 = 0 ;
23670 char *kwnames[] = {
23671 (char *) "self", NULL
23672 };
23673
23674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23677 {
23678 PyThreadState* __tstate = wxPyBeginAllowThreads();
23679 {
23680 wxDateSpan &_result_ref = (arg1)->operator -();
23681 result = (wxDateSpan *) &_result_ref;
23682 }
23683
23684 wxPyEndAllowThreads(__tstate);
23685 if (PyErr_Occurred()) SWIG_fail;
23686 }
23687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23688 return resultobj;
23689 fail:
23690 return NULL;
23691}
23692
23693
23694static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23695 PyObject *resultobj;
23696 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23697 int arg2 ;
23698 wxDateSpan *result;
23699 PyObject * obj0 = 0 ;
23700 PyObject * obj1 = 0 ;
23701 char *kwnames[] = {
23702 (char *) "self",(char *) "factor", NULL
23703 };
23704
23705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23708 arg2 = (int) SWIG_AsInt(obj1);
23709 if (PyErr_Occurred()) SWIG_fail;
23710 {
23711 PyThreadState* __tstate = wxPyBeginAllowThreads();
23712 {
23713 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23714 result = (wxDateSpan *) &_result_ref;
23715 }
23716
23717 wxPyEndAllowThreads(__tstate);
23718 if (PyErr_Occurred()) SWIG_fail;
23719 }
23720 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23721 return resultobj;
23722 fail:
23723 return NULL;
23724}
23725
23726
23727static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23728 PyObject *resultobj;
23729 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23730 wxDateSpan *arg2 = 0 ;
23731 wxDateSpan result;
23732 PyObject * obj0 = 0 ;
23733 PyObject * obj1 = 0 ;
23734 char *kwnames[] = {
23735 (char *) "self",(char *) "other", NULL
23736 };
23737
23738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23742 SWIG_POINTER_EXCEPTION | 0)) == -1)
23743 SWIG_fail;
23744 if (arg2 == NULL) {
23745 PyErr_SetString(PyExc_TypeError,"null reference");
23746 SWIG_fail;
23747 }
23748 {
23749 PyThreadState* __tstate = wxPyBeginAllowThreads();
23750 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23751
23752 wxPyEndAllowThreads(__tstate);
23753 if (PyErr_Occurred()) SWIG_fail;
23754 }
23755 {
23756 wxDateSpan * resultptr;
23757 resultptr = new wxDateSpan((wxDateSpan &) result);
23758 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23759 }
23760 return resultobj;
23761 fail:
23762 return NULL;
23763}
23764
23765
23766static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23767 PyObject *resultobj;
23768 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23769 wxDateSpan *arg2 = 0 ;
23770 wxDateSpan result;
23771 PyObject * obj0 = 0 ;
23772 PyObject * obj1 = 0 ;
23773 char *kwnames[] = {
23774 (char *) "self",(char *) "other", NULL
23775 };
23776
23777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23780 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23781 SWIG_POINTER_EXCEPTION | 0)) == -1)
23782 SWIG_fail;
23783 if (arg2 == NULL) {
23784 PyErr_SetString(PyExc_TypeError,"null reference");
23785 SWIG_fail;
23786 }
23787 {
23788 PyThreadState* __tstate = wxPyBeginAllowThreads();
23789 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23790
23791 wxPyEndAllowThreads(__tstate);
23792 if (PyErr_Occurred()) SWIG_fail;
23793 }
23794 {
23795 wxDateSpan * resultptr;
23796 resultptr = new wxDateSpan((wxDateSpan &) result);
23797 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23798 }
23799 return resultobj;
23800 fail:
23801 return NULL;
23802}
23803
23804
23805static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23806 PyObject *resultobj;
23807 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23808 int arg2 ;
23809 wxDateSpan result;
23810 PyObject * obj0 = 0 ;
23811 PyObject * obj1 = 0 ;
23812 char *kwnames[] = {
23813 (char *) "self",(char *) "n", NULL
23814 };
23815
23816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23819 arg2 = (int) SWIG_AsInt(obj1);
23820 if (PyErr_Occurred()) SWIG_fail;
23821 {
23822 PyThreadState* __tstate = wxPyBeginAllowThreads();
23823 result = wxDateSpan___mul__(arg1,arg2);
23824
23825 wxPyEndAllowThreads(__tstate);
23826 if (PyErr_Occurred()) SWIG_fail;
23827 }
23828 {
23829 wxDateSpan * resultptr;
23830 resultptr = new wxDateSpan((wxDateSpan &) result);
23831 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23832 }
23833 return resultobj;
23834 fail:
23835 return NULL;
23836}
23837
23838
23839static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23840 PyObject *resultobj;
23841 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23842 int arg2 ;
23843 wxDateSpan result;
23844 PyObject * obj0 = 0 ;
23845 PyObject * obj1 = 0 ;
23846 char *kwnames[] = {
23847 (char *) "self",(char *) "n", NULL
23848 };
23849
23850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23853 arg2 = (int) SWIG_AsInt(obj1);
23854 if (PyErr_Occurred()) SWIG_fail;
23855 {
23856 PyThreadState* __tstate = wxPyBeginAllowThreads();
23857 result = wxDateSpan___rmul__(arg1,arg2);
23858
23859 wxPyEndAllowThreads(__tstate);
23860 if (PyErr_Occurred()) SWIG_fail;
23861 }
23862 {
23863 wxDateSpan * resultptr;
23864 resultptr = new wxDateSpan((wxDateSpan &) result);
23865 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23866 }
23867 return resultobj;
23868 fail:
23869 return NULL;
23870}
23871
23872
23873static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23874 PyObject *resultobj;
23875 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23876 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23877 bool result;
23878 PyObject * obj0 = 0 ;
23879 PyObject * obj1 = 0 ;
23880 char *kwnames[] = {
23881 (char *) "self",(char *) "other", NULL
23882 };
23883
23884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23887 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23889 {
23890 PyThreadState* __tstate = wxPyBeginAllowThreads();
23891 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23892
23893 wxPyEndAllowThreads(__tstate);
23894 if (PyErr_Occurred()) SWIG_fail;
23895 }
23896 {
23897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23898 }
23899 return resultobj;
23900 fail:
23901 return NULL;
23902}
23903
23904
23905static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23906 PyObject *resultobj;
23907 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23908 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23909 bool result;
23910 PyObject * obj0 = 0 ;
23911 PyObject * obj1 = 0 ;
23912 char *kwnames[] = {
23913 (char *) "self",(char *) "other", NULL
23914 };
23915
23916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23919 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23921 {
23922 PyThreadState* __tstate = wxPyBeginAllowThreads();
23923 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23924
23925 wxPyEndAllowThreads(__tstate);
23926 if (PyErr_Occurred()) SWIG_fail;
23927 }
23928 {
23929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23930 }
23931 return resultobj;
23932 fail:
23933 return NULL;
23934}
23935
23936
23937static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23938 PyObject *obj;
23939 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23940 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23941 Py_INCREF(obj);
23942 return Py_BuildValue((char *)"");
23943}
23944static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23945 PyObject *resultobj;
23946 long result;
23947 char *kwnames[] = {
23948 NULL
23949 };
23950
23951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23952 {
23953 PyThreadState* __tstate = wxPyBeginAllowThreads();
23954 result = (long)wxGetLocalTime();
23955
23956 wxPyEndAllowThreads(__tstate);
23957 if (PyErr_Occurred()) SWIG_fail;
23958 }
23959 resultobj = SWIG_FromLong((long)result);
23960 return resultobj;
23961 fail:
23962 return NULL;
23963}
23964
23965
23966static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23967 PyObject *resultobj;
23968 long result;
23969 char *kwnames[] = {
23970 NULL
23971 };
23972
23973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23974 {
23975 PyThreadState* __tstate = wxPyBeginAllowThreads();
23976 result = (long)wxGetUTCTime();
23977
23978 wxPyEndAllowThreads(__tstate);
23979 if (PyErr_Occurred()) SWIG_fail;
23980 }
23981 resultobj = SWIG_FromLong((long)result);
23982 return resultobj;
23983 fail:
23984 return NULL;
23985}
23986
23987
23988static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23989 PyObject *resultobj;
23990 long result;
23991 char *kwnames[] = {
23992 NULL
23993 };
23994
23995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23996 {
23997 PyThreadState* __tstate = wxPyBeginAllowThreads();
23998 result = (long)wxGetCurrentTime();
23999
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 resultobj = SWIG_FromLong((long)result);
24004 return resultobj;
24005 fail:
24006 return NULL;
24007}
24008
24009
24010static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
24011 PyObject *resultobj;
24012 wxLongLong result;
24013 char *kwnames[] = {
24014 NULL
24015 };
24016
24017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
24018 {
24019 PyThreadState* __tstate = wxPyBeginAllowThreads();
24020 result = wxGetLocalTimeMillis();
24021
24022 wxPyEndAllowThreads(__tstate);
24023 if (PyErr_Occurred()) SWIG_fail;
24024 }
24025 {
24026 PyObject *hi, *lo, *shifter, *shifted;
24027 hi = PyLong_FromLong( (&result)->GetHi() );
24028 lo = PyLong_FromLong( (&result)->GetLo() );
24029 shifter = PyLong_FromLong(32);
24030 shifted = PyNumber_Lshift(hi, shifter);
24031 resultobj = PyNumber_Or(shifted, lo);
24032 Py_DECREF(hi);
24033 Py_DECREF(lo);
24034 Py_DECREF(shifter);
24035 Py_DECREF(shifted);
24036 }
24037 return resultobj;
24038 fail:
24039 return NULL;
24040}
24041
24042
24043static int _wrap_DefaultDateTime_set(PyObject *_val) {
24044 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
24045 return 1;
24046}
24047
24048
24049static PyObject *_wrap_DefaultDateTime_get() {
24050 PyObject *pyobj;
24051
24052 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
24053 return pyobj;
24054}
24055
24056
24057static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24058 PyObject *resultobj;
24059 int arg1 ;
24060 wxDataFormat *result;
24061 PyObject * obj0 = 0 ;
24062 char *kwnames[] = {
24063 (char *) "type", NULL
24064 };
24065
24066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
24067 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
24068 if (PyErr_Occurred()) SWIG_fail;
24069 {
24070 PyThreadState* __tstate = wxPyBeginAllowThreads();
24071 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
24072
24073 wxPyEndAllowThreads(__tstate);
24074 if (PyErr_Occurred()) SWIG_fail;
24075 }
24076 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24077 return resultobj;
24078 fail:
24079 return NULL;
24080}
24081
24082
24083static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24084 PyObject *resultobj;
24085 wxString *arg1 = 0 ;
24086 wxDataFormat *result;
24087 bool temp1 = False ;
24088 PyObject * obj0 = 0 ;
24089 char *kwnames[] = {
24090 (char *) "format", NULL
24091 };
24092
24093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
24094 {
24095 arg1 = wxString_in_helper(obj0);
24096 if (arg1 == NULL) SWIG_fail;
24097 temp1 = True;
24098 }
24099 {
24100 PyThreadState* __tstate = wxPyBeginAllowThreads();
24101 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
24102
24103 wxPyEndAllowThreads(__tstate);
24104 if (PyErr_Occurred()) SWIG_fail;
24105 }
24106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24107 {
24108 if (temp1)
24109 delete arg1;
24110 }
24111 return resultobj;
24112 fail:
24113 {
24114 if (temp1)
24115 delete arg1;
24116 }
24117 return NULL;
24118}
24119
24120
24121static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24122 PyObject *resultobj;
24123 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24124 PyObject * obj0 = 0 ;
24125 char *kwnames[] = {
24126 (char *) "self", NULL
24127 };
24128
24129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24132 {
24133 PyThreadState* __tstate = wxPyBeginAllowThreads();
24134 delete arg1;
24135
24136 wxPyEndAllowThreads(__tstate);
24137 if (PyErr_Occurred()) SWIG_fail;
24138 }
24139 Py_INCREF(Py_None); resultobj = Py_None;
24140 return resultobj;
24141 fail:
24142 return NULL;
24143}
24144
24145
24146static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
24147 PyObject *resultobj;
24148 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24149 int arg2 ;
24150 bool result;
24151 PyObject * obj0 = 0 ;
24152 PyObject * obj1 = 0 ;
24153
24154 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24157 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24158 if (PyErr_Occurred()) SWIG_fail;
24159 {
24160 PyThreadState* __tstate = wxPyBeginAllowThreads();
24161 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24162
24163 wxPyEndAllowThreads(__tstate);
24164 if (PyErr_Occurred()) SWIG_fail;
24165 }
24166 {
24167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24168 }
24169 return resultobj;
24170 fail:
24171 return NULL;
24172}
24173
24174
24175static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
24176 PyObject *resultobj;
24177 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24178 int arg2 ;
24179 bool result;
24180 PyObject * obj0 = 0 ;
24181 PyObject * obj1 = 0 ;
24182
24183 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24186 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24187 if (PyErr_Occurred()) SWIG_fail;
24188 {
24189 PyThreadState* __tstate = wxPyBeginAllowThreads();
24190 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24191
24192 wxPyEndAllowThreads(__tstate);
24193 if (PyErr_Occurred()) SWIG_fail;
24194 }
24195 {
24196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24197 }
24198 return resultobj;
24199 fail:
24200 return NULL;
24201}
24202
24203
24204static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
24205 PyObject *resultobj;
24206 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24207 wxDataFormat *arg2 = 0 ;
24208 bool result;
24209 PyObject * obj0 = 0 ;
24210 PyObject * obj1 = 0 ;
24211
24212 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24215 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24216 SWIG_POINTER_EXCEPTION | 0)) == -1)
24217 SWIG_fail;
24218 if (arg2 == NULL) {
24219 PyErr_SetString(PyExc_TypeError,"null reference");
24220 SWIG_fail;
24221 }
24222 {
24223 PyThreadState* __tstate = wxPyBeginAllowThreads();
24224 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24225
24226 wxPyEndAllowThreads(__tstate);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 }
24229 {
24230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24231 }
24232 return resultobj;
24233 fail:
24234 return NULL;
24235}
24236
24237
24238static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24239 int argc;
24240 PyObject *argv[3];
24241 int ii;
24242
24243 argc = PyObject_Length(args);
24244 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24245 argv[ii] = PyTuple_GetItem(args,ii);
24246 }
24247 if (argc == 2) {
24248 int _v;
24249 {
24250 void *ptr;
24251 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24252 _v = 0;
24253 PyErr_Clear();
24254 } else {
24255 _v = 1;
24256 }
24257 }
24258 if (_v) {
24259 {
24260 void *ptr;
24261 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24262 _v = 0;
24263 PyErr_Clear();
24264 } else {
24265 _v = 1;
24266 }
24267 }
24268 if (_v) {
24269 return _wrap_DataFormat___eq____SWIG_1(self,args);
24270 }
24271 }
24272 }
24273 if (argc == 2) {
24274 int _v;
24275 {
24276 void *ptr;
24277 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24278 _v = 0;
24279 PyErr_Clear();
24280 } else {
24281 _v = 1;
24282 }
24283 }
24284 if (_v) {
24285 _v = SWIG_CheckInt(argv[1]);
24286 if (_v) {
24287 return _wrap_DataFormat___eq____SWIG_0(self,args);
24288 }
24289 }
24290 }
24291
24292 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24293 return NULL;
24294}
24295
24296
24297static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24298 PyObject *resultobj;
24299 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24300 wxDataFormat *arg2 = 0 ;
24301 bool result;
24302 PyObject * obj0 = 0 ;
24303 PyObject * obj1 = 0 ;
24304
24305 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24308 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24309 SWIG_POINTER_EXCEPTION | 0)) == -1)
24310 SWIG_fail;
24311 if (arg2 == NULL) {
24312 PyErr_SetString(PyExc_TypeError,"null reference");
24313 SWIG_fail;
24314 }
24315 {
24316 PyThreadState* __tstate = wxPyBeginAllowThreads();
24317 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24318
24319 wxPyEndAllowThreads(__tstate);
24320 if (PyErr_Occurred()) SWIG_fail;
24321 }
24322 {
24323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24324 }
24325 return resultobj;
24326 fail:
24327 return NULL;
24328}
24329
24330
24331static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24332 int argc;
24333 PyObject *argv[3];
24334 int ii;
24335
24336 argc = PyObject_Length(args);
24337 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24338 argv[ii] = PyTuple_GetItem(args,ii);
24339 }
24340 if (argc == 2) {
24341 int _v;
24342 {
24343 void *ptr;
24344 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24345 _v = 0;
24346 PyErr_Clear();
24347 } else {
24348 _v = 1;
24349 }
24350 }
24351 if (_v) {
24352 {
24353 void *ptr;
24354 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24355 _v = 0;
24356 PyErr_Clear();
24357 } else {
24358 _v = 1;
24359 }
24360 }
24361 if (_v) {
24362 return _wrap_DataFormat___ne____SWIG_1(self,args);
24363 }
24364 }
24365 }
24366 if (argc == 2) {
24367 int _v;
24368 {
24369 void *ptr;
24370 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24371 _v = 0;
24372 PyErr_Clear();
24373 } else {
24374 _v = 1;
24375 }
24376 }
24377 if (_v) {
24378 _v = SWIG_CheckInt(argv[1]);
24379 if (_v) {
24380 return _wrap_DataFormat___ne____SWIG_0(self,args);
24381 }
24382 }
24383 }
24384
24385 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24386 return NULL;
24387}
24388
24389
24390static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24391 PyObject *resultobj;
24392 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24393 int arg2 ;
24394 PyObject * obj0 = 0 ;
24395 PyObject * obj1 = 0 ;
24396 char *kwnames[] = {
24397 (char *) "self",(char *) "format", NULL
24398 };
24399
24400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24403 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24404 if (PyErr_Occurred()) SWIG_fail;
24405 {
24406 PyThreadState* __tstate = wxPyBeginAllowThreads();
24407 (arg1)->SetType((wxDataFormatId )arg2);
24408
24409 wxPyEndAllowThreads(__tstate);
24410 if (PyErr_Occurred()) SWIG_fail;
24411 }
24412 Py_INCREF(Py_None); resultobj = Py_None;
24413 return resultobj;
24414 fail:
24415 return NULL;
24416}
24417
24418
24419static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24420 PyObject *resultobj;
24421 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24422 int result;
24423 PyObject * obj0 = 0 ;
24424 char *kwnames[] = {
24425 (char *) "self", NULL
24426 };
24427
24428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24431 {
24432 PyThreadState* __tstate = wxPyBeginAllowThreads();
24433 result = (int)((wxDataFormat const *)arg1)->GetType();
24434
24435 wxPyEndAllowThreads(__tstate);
24436 if (PyErr_Occurred()) SWIG_fail;
24437 }
24438 resultobj = SWIG_FromInt((int)result);
24439 return resultobj;
24440 fail:
24441 return NULL;
24442}
24443
24444
24445static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24446 PyObject *resultobj;
24447 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24448 wxString result;
24449 PyObject * obj0 = 0 ;
24450 char *kwnames[] = {
24451 (char *) "self", NULL
24452 };
24453
24454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24457 {
24458 PyThreadState* __tstate = wxPyBeginAllowThreads();
24459 result = ((wxDataFormat const *)arg1)->GetId();
24460
24461 wxPyEndAllowThreads(__tstate);
24462 if (PyErr_Occurred()) SWIG_fail;
24463 }
24464 {
24465#if wxUSE_UNICODE
24466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24467#else
24468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24469#endif
24470 }
24471 return resultobj;
24472 fail:
24473 return NULL;
24474}
24475
24476
24477static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24478 PyObject *resultobj;
24479 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24480 wxString *arg2 = 0 ;
24481 bool temp2 = False ;
24482 PyObject * obj0 = 0 ;
24483 PyObject * obj1 = 0 ;
24484 char *kwnames[] = {
24485 (char *) "self",(char *) "format", NULL
24486 };
24487
24488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24491 {
24492 arg2 = wxString_in_helper(obj1);
24493 if (arg2 == NULL) SWIG_fail;
24494 temp2 = True;
24495 }
24496 {
24497 PyThreadState* __tstate = wxPyBeginAllowThreads();
24498 (arg1)->SetId((wxString const &)*arg2);
24499
24500 wxPyEndAllowThreads(__tstate);
24501 if (PyErr_Occurred()) SWIG_fail;
24502 }
24503 Py_INCREF(Py_None); resultobj = Py_None;
24504 {
24505 if (temp2)
24506 delete arg2;
24507 }
24508 return resultobj;
24509 fail:
24510 {
24511 if (temp2)
24512 delete arg2;
24513 }
24514 return NULL;
24515}
24516
24517
24518static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24519 PyObject *obj;
24520 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24521 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24522 Py_INCREF(obj);
24523 return Py_BuildValue((char *)"");
24524}
24525static int _wrap_FormatInvalid_set(PyObject *_val) {
24526 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24527 return 1;
24528}
24529
24530
24531static PyObject *_wrap_FormatInvalid_get() {
24532 PyObject *pyobj;
24533
24534 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24535 return pyobj;
24536}
24537
24538
24539static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24540 PyObject *resultobj;
24541 wxDataObject *arg1 = (wxDataObject *) 0 ;
24542 PyObject * obj0 = 0 ;
24543 char *kwnames[] = {
24544 (char *) "self", NULL
24545 };
24546
24547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24550 {
24551 PyThreadState* __tstate = wxPyBeginAllowThreads();
24552 delete arg1;
24553
24554 wxPyEndAllowThreads(__tstate);
24555 if (PyErr_Occurred()) SWIG_fail;
24556 }
24557 Py_INCREF(Py_None); resultobj = Py_None;
24558 return resultobj;
24559 fail:
24560 return NULL;
24561}
24562
24563
24564static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24565 PyObject *resultobj;
24566 wxDataObject *arg1 = (wxDataObject *) 0 ;
24567 int arg2 = (int) wxDataObject::Get ;
24568 SwigValueWrapper< wxDataFormat > result;
24569 PyObject * obj0 = 0 ;
24570 PyObject * obj1 = 0 ;
24571 char *kwnames[] = {
24572 (char *) "self",(char *) "dir", NULL
24573 };
24574
24575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24578 if (obj1) {
24579 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24580 if (PyErr_Occurred()) SWIG_fail;
24581 }
24582 {
24583 PyThreadState* __tstate = wxPyBeginAllowThreads();
24584 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24585
24586 wxPyEndAllowThreads(__tstate);
24587 if (PyErr_Occurred()) SWIG_fail;
24588 }
24589 {
24590 wxDataFormat * resultptr;
24591 resultptr = new wxDataFormat((wxDataFormat &) result);
24592 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24593 }
24594 return resultobj;
24595 fail:
24596 return NULL;
24597}
24598
24599
24600static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24601 PyObject *resultobj;
24602 wxDataObject *arg1 = (wxDataObject *) 0 ;
24603 int arg2 = (int) wxDataObject::Get ;
24604 size_t result;
24605 PyObject * obj0 = 0 ;
24606 PyObject * obj1 = 0 ;
24607 char *kwnames[] = {
24608 (char *) "self",(char *) "dir", NULL
24609 };
24610
24611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24614 if (obj1) {
24615 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24616 if (PyErr_Occurred()) SWIG_fail;
24617 }
24618 {
24619 PyThreadState* __tstate = wxPyBeginAllowThreads();
24620 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24621
24622 wxPyEndAllowThreads(__tstate);
24623 if (PyErr_Occurred()) SWIG_fail;
24624 }
24625 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24626 return resultobj;
24627 fail:
24628 return NULL;
24629}
24630
24631
24632static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24633 PyObject *resultobj;
24634 wxDataObject *arg1 = (wxDataObject *) 0 ;
24635 wxDataFormat *arg2 = 0 ;
24636 int arg3 = (int) wxDataObject::Get ;
24637 bool result;
24638 PyObject * obj0 = 0 ;
24639 PyObject * obj1 = 0 ;
24640 PyObject * obj2 = 0 ;
24641 char *kwnames[] = {
24642 (char *) "self",(char *) "format",(char *) "dir", NULL
24643 };
24644
24645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24649 SWIG_POINTER_EXCEPTION | 0)) == -1)
24650 SWIG_fail;
24651 if (arg2 == NULL) {
24652 PyErr_SetString(PyExc_TypeError,"null reference");
24653 SWIG_fail;
24654 }
24655 if (obj2) {
24656 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24657 if (PyErr_Occurred()) SWIG_fail;
24658 }
24659 {
24660 PyThreadState* __tstate = wxPyBeginAllowThreads();
24661 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24662
24663 wxPyEndAllowThreads(__tstate);
24664 if (PyErr_Occurred()) SWIG_fail;
24665 }
24666 {
24667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24668 }
24669 return resultobj;
24670 fail:
24671 return NULL;
24672}
24673
24674
24675static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24676 PyObject *resultobj;
24677 wxDataObject *arg1 = (wxDataObject *) 0 ;
24678 wxDataFormat *arg2 = 0 ;
24679 size_t result;
24680 PyObject * obj0 = 0 ;
24681 PyObject * obj1 = 0 ;
24682 char *kwnames[] = {
24683 (char *) "self",(char *) "format", NULL
24684 };
24685
24686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24689 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24690 SWIG_POINTER_EXCEPTION | 0)) == -1)
24691 SWIG_fail;
24692 if (arg2 == NULL) {
24693 PyErr_SetString(PyExc_TypeError,"null reference");
24694 SWIG_fail;
24695 }
24696 {
24697 PyThreadState* __tstate = wxPyBeginAllowThreads();
24698 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24699
24700 wxPyEndAllowThreads(__tstate);
24701 if (PyErr_Occurred()) SWIG_fail;
24702 }
24703 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24704 return resultobj;
24705 fail:
24706 return NULL;
24707}
24708
24709
24710static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24711 PyObject *resultobj;
24712 wxDataObject *arg1 = (wxDataObject *) 0 ;
24713 int arg2 = (int) wxDataObject::Get ;
24714 PyObject *result;
24715 PyObject * obj0 = 0 ;
24716 PyObject * obj1 = 0 ;
24717 char *kwnames[] = {
24718 (char *) "self",(char *) "dir", NULL
24719 };
24720
24721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24724 if (obj1) {
24725 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24726 if (PyErr_Occurred()) SWIG_fail;
24727 }
24728 {
24729 PyThreadState* __tstate = wxPyBeginAllowThreads();
24730 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24731
24732 wxPyEndAllowThreads(__tstate);
24733 if (PyErr_Occurred()) SWIG_fail;
24734 }
24735 resultobj = result;
24736 return resultobj;
24737 fail:
24738 return NULL;
24739}
24740
24741
24742static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24743 PyObject *resultobj;
24744 wxDataObject *arg1 = (wxDataObject *) 0 ;
24745 wxDataFormat *arg2 = 0 ;
24746 PyObject *result;
24747 PyObject * obj0 = 0 ;
24748 PyObject * obj1 = 0 ;
24749 char *kwnames[] = {
24750 (char *) "self",(char *) "format", NULL
24751 };
24752
24753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24756 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24757 SWIG_POINTER_EXCEPTION | 0)) == -1)
24758 SWIG_fail;
24759 if (arg2 == NULL) {
24760 PyErr_SetString(PyExc_TypeError,"null reference");
24761 SWIG_fail;
24762 }
24763 {
24764 PyThreadState* __tstate = wxPyBeginAllowThreads();
24765 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24766
24767 wxPyEndAllowThreads(__tstate);
24768 if (PyErr_Occurred()) SWIG_fail;
24769 }
24770 resultobj = result;
24771 return resultobj;
24772 fail:
24773 return NULL;
24774}
24775
24776
24777static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24778 PyObject *resultobj;
24779 wxDataObject *arg1 = (wxDataObject *) 0 ;
24780 wxDataFormat *arg2 = 0 ;
24781 PyObject *arg3 = (PyObject *) 0 ;
24782 bool result;
24783 PyObject * obj0 = 0 ;
24784 PyObject * obj1 = 0 ;
24785 PyObject * obj2 = 0 ;
24786 char *kwnames[] = {
24787 (char *) "self",(char *) "format",(char *) "data", NULL
24788 };
24789
24790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24793 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24794 SWIG_POINTER_EXCEPTION | 0)) == -1)
24795 SWIG_fail;
24796 if (arg2 == NULL) {
24797 PyErr_SetString(PyExc_TypeError,"null reference");
24798 SWIG_fail;
24799 }
24800 arg3 = obj2;
24801 {
24802 PyThreadState* __tstate = wxPyBeginAllowThreads();
24803 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24804
24805 wxPyEndAllowThreads(__tstate);
24806 if (PyErr_Occurred()) SWIG_fail;
24807 }
24808 {
24809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24810 }
24811 return resultobj;
24812 fail:
24813 return NULL;
24814}
24815
24816
24817static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24818 PyObject *obj;
24819 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24820 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24821 Py_INCREF(obj);
24822 return Py_BuildValue((char *)"");
24823}
24824static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24825 PyObject *resultobj;
24826 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24827 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24828 wxDataObjectSimple *result;
24829 PyObject * obj0 = 0 ;
24830 char *kwnames[] = {
24831 (char *) "format", NULL
24832 };
24833
24834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24835 if (obj0) {
24836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24837 SWIG_POINTER_EXCEPTION | 0)) == -1)
24838 SWIG_fail;
24839 if (arg1 == NULL) {
24840 PyErr_SetString(PyExc_TypeError,"null reference");
24841 SWIG_fail;
24842 }
24843 }
24844 {
24845 PyThreadState* __tstate = wxPyBeginAllowThreads();
24846 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24847
24848 wxPyEndAllowThreads(__tstate);
24849 if (PyErr_Occurred()) SWIG_fail;
24850 }
24851 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24852 return resultobj;
24853 fail:
24854 return NULL;
24855}
24856
24857
24858static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24859 PyObject *resultobj;
24860 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24861 wxDataFormat *result;
24862 PyObject * obj0 = 0 ;
24863 char *kwnames[] = {
24864 (char *) "self", NULL
24865 };
24866
24867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24870 {
24871 PyThreadState* __tstate = wxPyBeginAllowThreads();
24872 {
24873 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24874 result = (wxDataFormat *) &_result_ref;
24875 }
24876
24877 wxPyEndAllowThreads(__tstate);
24878 if (PyErr_Occurred()) SWIG_fail;
24879 }
24880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24881 return resultobj;
24882 fail:
24883 return NULL;
24884}
24885
24886
24887static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24888 PyObject *resultobj;
24889 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24890 wxDataFormat *arg2 = 0 ;
24891 PyObject * obj0 = 0 ;
24892 PyObject * obj1 = 0 ;
24893 char *kwnames[] = {
24894 (char *) "self",(char *) "format", NULL
24895 };
24896
24897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24900 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24901 SWIG_POINTER_EXCEPTION | 0)) == -1)
24902 SWIG_fail;
24903 if (arg2 == NULL) {
24904 PyErr_SetString(PyExc_TypeError,"null reference");
24905 SWIG_fail;
24906 }
24907 {
24908 PyThreadState* __tstate = wxPyBeginAllowThreads();
24909 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24910
24911 wxPyEndAllowThreads(__tstate);
24912 if (PyErr_Occurred()) SWIG_fail;
24913 }
24914 Py_INCREF(Py_None); resultobj = Py_None;
24915 return resultobj;
24916 fail:
24917 return NULL;
24918}
24919
24920
24921static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24922 PyObject *resultobj;
24923 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24924 size_t result;
24925 PyObject * obj0 = 0 ;
24926 char *kwnames[] = {
24927 (char *) "self", NULL
24928 };
24929
24930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
24931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24933 {
24934 PyThreadState* __tstate = wxPyBeginAllowThreads();
24935 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
24936
24937 wxPyEndAllowThreads(__tstate);
24938 if (PyErr_Occurred()) SWIG_fail;
24939 }
24940 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24941 return resultobj;
24942 fail:
24943 return NULL;
24944}
24945
24946
24947static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24948 PyObject *resultobj;
24949 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24950 PyObject *result;
24951 PyObject * obj0 = 0 ;
24952 char *kwnames[] = {
24953 (char *) "self", NULL
24954 };
24955
24956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
24957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24959 {
24960 PyThreadState* __tstate = wxPyBeginAllowThreads();
24961 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
24962
24963 wxPyEndAllowThreads(__tstate);
24964 if (PyErr_Occurred()) SWIG_fail;
24965 }
24966 resultobj = result;
24967 return resultobj;
24968 fail:
24969 return NULL;
24970}
24971
24972
24973static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24974 PyObject *resultobj;
24975 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24976 PyObject *arg2 = (PyObject *) 0 ;
24977 bool result;
24978 PyObject * obj0 = 0 ;
24979 PyObject * obj1 = 0 ;
24980 char *kwnames[] = {
24981 (char *) "self",(char *) "data", NULL
24982 };
24983
24984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
24985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24987 arg2 = obj1;
24988 {
24989 PyThreadState* __tstate = wxPyBeginAllowThreads();
24990 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
24991
24992 wxPyEndAllowThreads(__tstate);
24993 if (PyErr_Occurred()) SWIG_fail;
24994 }
24995 {
24996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24997 }
24998 return resultobj;
24999 fail:
25000 return NULL;
25001}
25002
25003
25004static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
25005 PyObject *obj;
25006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25007 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
25008 Py_INCREF(obj);
25009 return Py_BuildValue((char *)"");
25010}
25011static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
25012 PyObject *resultobj;
25013 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25014 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25015 wxPyDataObjectSimple *result;
25016 PyObject * obj0 = 0 ;
25017 char *kwnames[] = {
25018 (char *) "format", NULL
25019 };
25020
25021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
25022 if (obj0) {
25023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25024 SWIG_POINTER_EXCEPTION | 0)) == -1)
25025 SWIG_fail;
25026 if (arg1 == NULL) {
25027 PyErr_SetString(PyExc_TypeError,"null reference");
25028 SWIG_fail;
25029 }
25030 }
25031 {
25032 PyThreadState* __tstate = wxPyBeginAllowThreads();
25033 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
25034
25035 wxPyEndAllowThreads(__tstate);
25036 if (PyErr_Occurred()) SWIG_fail;
25037 }
25038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
25039 return resultobj;
25040 fail:
25041 return NULL;
25042}
25043
25044
25045static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25046 PyObject *resultobj;
25047 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
25048 PyObject *arg2 = (PyObject *) 0 ;
25049 PyObject *arg3 = (PyObject *) 0 ;
25050 PyObject * obj0 = 0 ;
25051 PyObject * obj1 = 0 ;
25052 PyObject * obj2 = 0 ;
25053 char *kwnames[] = {
25054 (char *) "self",(char *) "self",(char *) "_class", NULL
25055 };
25056
25057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
25059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25060 arg2 = obj1;
25061 arg3 = obj2;
25062 {
25063 PyThreadState* __tstate = wxPyBeginAllowThreads();
25064 (arg1)->_setCallbackInfo(arg2,arg3);
25065
25066 wxPyEndAllowThreads(__tstate);
25067 if (PyErr_Occurred()) SWIG_fail;
25068 }
25069 Py_INCREF(Py_None); resultobj = Py_None;
25070 return resultobj;
25071 fail:
25072 return NULL;
25073}
25074
25075
25076static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
25077 PyObject *obj;
25078 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25079 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
25080 Py_INCREF(obj);
25081 return Py_BuildValue((char *)"");
25082}
25083static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
25084 PyObject *resultobj;
25085 wxDataObjectComposite *result;
25086 char *kwnames[] = {
25087 NULL
25088 };
25089
25090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
25091 {
25092 PyThreadState* __tstate = wxPyBeginAllowThreads();
25093 result = (wxDataObjectComposite *)new wxDataObjectComposite();
25094
25095 wxPyEndAllowThreads(__tstate);
25096 if (PyErr_Occurred()) SWIG_fail;
25097 }
25098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
25099 return resultobj;
25100 fail:
25101 return NULL;
25102}
25103
25104
25105static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
25106 PyObject *resultobj;
25107 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25108 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
25109 bool arg3 = (bool) False ;
25110 PyObject * obj0 = 0 ;
25111 PyObject * obj1 = 0 ;
25112 PyObject * obj2 = 0 ;
25113 char *kwnames[] = {
25114 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25115 };
25116
25117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25120 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25121 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25122 if (obj2) {
25123 arg3 = (bool) SWIG_AsBool(obj2);
25124 if (PyErr_Occurred()) SWIG_fail;
25125 }
25126 {
25127 PyThreadState* __tstate = wxPyBeginAllowThreads();
25128 (arg1)->Add(arg2,arg3);
25129
25130 wxPyEndAllowThreads(__tstate);
25131 if (PyErr_Occurred()) SWIG_fail;
25132 }
25133 Py_INCREF(Py_None); resultobj = Py_None;
25134 return resultobj;
25135 fail:
25136 return NULL;
25137}
25138
25139
25140static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
25141 PyObject *obj;
25142 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25143 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25144 Py_INCREF(obj);
25145 return Py_BuildValue((char *)"");
25146}
25147static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25148 PyObject *resultobj;
25149 wxString const &arg1_defvalue = wxPyEmptyString ;
25150 wxString *arg1 = (wxString *) &arg1_defvalue ;
25151 wxTextDataObject *result;
25152 bool temp1 = False ;
25153 PyObject * obj0 = 0 ;
25154 char *kwnames[] = {
25155 (char *) "text", NULL
25156 };
25157
25158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25159 if (obj0) {
25160 {
25161 arg1 = wxString_in_helper(obj0);
25162 if (arg1 == NULL) SWIG_fail;
25163 temp1 = True;
25164 }
25165 }
25166 {
25167 PyThreadState* __tstate = wxPyBeginAllowThreads();
25168 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25169
25170 wxPyEndAllowThreads(__tstate);
25171 if (PyErr_Occurred()) SWIG_fail;
25172 }
25173 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25174 {
25175 if (temp1)
25176 delete arg1;
25177 }
25178 return resultobj;
25179 fail:
25180 {
25181 if (temp1)
25182 delete arg1;
25183 }
25184 return NULL;
25185}
25186
25187
25188static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
25189 PyObject *resultobj;
25190 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25191 size_t result;
25192 PyObject * obj0 = 0 ;
25193 char *kwnames[] = {
25194 (char *) "self", NULL
25195 };
25196
25197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25200 {
25201 PyThreadState* __tstate = wxPyBeginAllowThreads();
25202 result = (size_t)(arg1)->GetTextLength();
25203
25204 wxPyEndAllowThreads(__tstate);
25205 if (PyErr_Occurred()) SWIG_fail;
25206 }
25207 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25208 return resultobj;
25209 fail:
25210 return NULL;
25211}
25212
25213
25214static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25215 PyObject *resultobj;
25216 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25217 wxString result;
25218 PyObject * obj0 = 0 ;
25219 char *kwnames[] = {
25220 (char *) "self", NULL
25221 };
25222
25223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25226 {
25227 PyThreadState* __tstate = wxPyBeginAllowThreads();
25228 result = (arg1)->GetText();
25229
25230 wxPyEndAllowThreads(__tstate);
25231 if (PyErr_Occurred()) SWIG_fail;
25232 }
25233 {
25234#if wxUSE_UNICODE
25235 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25236#else
25237 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25238#endif
25239 }
25240 return resultobj;
25241 fail:
25242 return NULL;
25243}
25244
25245
25246static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25247 PyObject *resultobj;
25248 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25249 wxString *arg2 = 0 ;
25250 bool temp2 = False ;
25251 PyObject * obj0 = 0 ;
25252 PyObject * obj1 = 0 ;
25253 char *kwnames[] = {
25254 (char *) "self",(char *) "text", NULL
25255 };
25256
25257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25260 {
25261 arg2 = wxString_in_helper(obj1);
25262 if (arg2 == NULL) SWIG_fail;
25263 temp2 = True;
25264 }
25265 {
25266 PyThreadState* __tstate = wxPyBeginAllowThreads();
25267 (arg1)->SetText((wxString const &)*arg2);
25268
25269 wxPyEndAllowThreads(__tstate);
25270 if (PyErr_Occurred()) SWIG_fail;
25271 }
25272 Py_INCREF(Py_None); resultobj = Py_None;
25273 {
25274 if (temp2)
25275 delete arg2;
25276 }
25277 return resultobj;
25278 fail:
25279 {
25280 if (temp2)
25281 delete arg2;
25282 }
25283 return NULL;
25284}
25285
25286
25287static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
25288 PyObject *obj;
25289 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25290 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25291 Py_INCREF(obj);
25292 return Py_BuildValue((char *)"");
25293}
25294static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25295 PyObject *resultobj;
25296 wxString const &arg1_defvalue = wxPyEmptyString ;
25297 wxString *arg1 = (wxString *) &arg1_defvalue ;
25298 wxPyTextDataObject *result;
25299 bool temp1 = False ;
25300 PyObject * obj0 = 0 ;
25301 char *kwnames[] = {
25302 (char *) "text", NULL
25303 };
25304
25305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25306 if (obj0) {
25307 {
25308 arg1 = wxString_in_helper(obj0);
25309 if (arg1 == NULL) SWIG_fail;
25310 temp1 = True;
25311 }
25312 }
25313 {
25314 PyThreadState* __tstate = wxPyBeginAllowThreads();
25315 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25316
25317 wxPyEndAllowThreads(__tstate);
25318 if (PyErr_Occurred()) SWIG_fail;
25319 }
25320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25321 {
25322 if (temp1)
25323 delete arg1;
25324 }
25325 return resultobj;
25326 fail:
25327 {
25328 if (temp1)
25329 delete arg1;
25330 }
25331 return NULL;
25332}
25333
25334
25335static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25336 PyObject *resultobj;
25337 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25338 PyObject *arg2 = (PyObject *) 0 ;
25339 PyObject *arg3 = (PyObject *) 0 ;
25340 PyObject * obj0 = 0 ;
25341 PyObject * obj1 = 0 ;
25342 PyObject * obj2 = 0 ;
25343 char *kwnames[] = {
25344 (char *) "self",(char *) "self",(char *) "_class", NULL
25345 };
25346
25347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25350 arg2 = obj1;
25351 arg3 = obj2;
25352 {
25353 PyThreadState* __tstate = wxPyBeginAllowThreads();
25354 (arg1)->_setCallbackInfo(arg2,arg3);
25355
25356 wxPyEndAllowThreads(__tstate);
25357 if (PyErr_Occurred()) SWIG_fail;
25358 }
25359 Py_INCREF(Py_None); resultobj = Py_None;
25360 return resultobj;
25361 fail:
25362 return NULL;
25363}
25364
25365
25366static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25367 PyObject *obj;
25368 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25369 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25370 Py_INCREF(obj);
25371 return Py_BuildValue((char *)"");
25372}
25373static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25374 PyObject *resultobj;
25375 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25376 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25377 wxBitmapDataObject *result;
25378 PyObject * obj0 = 0 ;
25379 char *kwnames[] = {
25380 (char *) "bitmap", NULL
25381 };
25382
25383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25384 if (obj0) {
25385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25386 SWIG_POINTER_EXCEPTION | 0)) == -1)
25387 SWIG_fail;
25388 if (arg1 == NULL) {
25389 PyErr_SetString(PyExc_TypeError,"null reference");
25390 SWIG_fail;
25391 }
25392 }
25393 {
25394 PyThreadState* __tstate = wxPyBeginAllowThreads();
25395 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25396
25397 wxPyEndAllowThreads(__tstate);
25398 if (PyErr_Occurred()) SWIG_fail;
25399 }
25400 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25401 return resultobj;
25402 fail:
25403 return NULL;
25404}
25405
25406
25407static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25408 PyObject *resultobj;
25409 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25410 wxBitmap result;
25411 PyObject * obj0 = 0 ;
25412 char *kwnames[] = {
25413 (char *) "self", NULL
25414 };
25415
25416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25419 {
25420 PyThreadState* __tstate = wxPyBeginAllowThreads();
25421 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25422
25423 wxPyEndAllowThreads(__tstate);
25424 if (PyErr_Occurred()) SWIG_fail;
25425 }
25426 {
25427 wxBitmap * resultptr;
25428 resultptr = new wxBitmap((wxBitmap &) result);
25429 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25430 }
25431 return resultobj;
25432 fail:
25433 return NULL;
25434}
25435
25436
25437static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25438 PyObject *resultobj;
25439 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25440 wxBitmap *arg2 = 0 ;
25441 PyObject * obj0 = 0 ;
25442 PyObject * obj1 = 0 ;
25443 char *kwnames[] = {
25444 (char *) "self",(char *) "bitmap", NULL
25445 };
25446
25447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25450 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25451 SWIG_POINTER_EXCEPTION | 0)) == -1)
25452 SWIG_fail;
25453 if (arg2 == NULL) {
25454 PyErr_SetString(PyExc_TypeError,"null reference");
25455 SWIG_fail;
25456 }
25457 {
25458 PyThreadState* __tstate = wxPyBeginAllowThreads();
25459 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25460
25461 wxPyEndAllowThreads(__tstate);
25462 if (PyErr_Occurred()) SWIG_fail;
25463 }
25464 Py_INCREF(Py_None); resultobj = Py_None;
25465 return resultobj;
25466 fail:
25467 return NULL;
25468}
25469
25470
25471static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25472 PyObject *obj;
25473 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25474 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25475 Py_INCREF(obj);
25476 return Py_BuildValue((char *)"");
25477}
25478static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25479 PyObject *resultobj;
25480 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25481 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25482 wxPyBitmapDataObject *result;
25483 PyObject * obj0 = 0 ;
25484 char *kwnames[] = {
25485 (char *) "bitmap", NULL
25486 };
25487
25488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25489 if (obj0) {
25490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25491 SWIG_POINTER_EXCEPTION | 0)) == -1)
25492 SWIG_fail;
25493 if (arg1 == NULL) {
25494 PyErr_SetString(PyExc_TypeError,"null reference");
25495 SWIG_fail;
25496 }
25497 }
25498 {
25499 PyThreadState* __tstate = wxPyBeginAllowThreads();
25500 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25501
25502 wxPyEndAllowThreads(__tstate);
25503 if (PyErr_Occurred()) SWIG_fail;
25504 }
25505 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25506 return resultobj;
25507 fail:
25508 return NULL;
25509}
25510
25511
25512static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25513 PyObject *resultobj;
25514 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25515 PyObject *arg2 = (PyObject *) 0 ;
25516 PyObject *arg3 = (PyObject *) 0 ;
25517 PyObject * obj0 = 0 ;
25518 PyObject * obj1 = 0 ;
25519 PyObject * obj2 = 0 ;
25520 char *kwnames[] = {
25521 (char *) "self",(char *) "self",(char *) "_class", NULL
25522 };
25523
25524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25527 arg2 = obj1;
25528 arg3 = obj2;
25529 {
25530 PyThreadState* __tstate = wxPyBeginAllowThreads();
25531 (arg1)->_setCallbackInfo(arg2,arg3);
25532
25533 wxPyEndAllowThreads(__tstate);
25534 if (PyErr_Occurred()) SWIG_fail;
25535 }
25536 Py_INCREF(Py_None); resultobj = Py_None;
25537 return resultobj;
25538 fail:
25539 return NULL;
25540}
25541
25542
25543static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25544 PyObject *obj;
25545 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25546 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25547 Py_INCREF(obj);
25548 return Py_BuildValue((char *)"");
25549}
25550static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25551 PyObject *resultobj;
25552 wxFileDataObject *result;
25553 char *kwnames[] = {
25554 NULL
25555 };
25556
25557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25558 {
25559 PyThreadState* __tstate = wxPyBeginAllowThreads();
25560 result = (wxFileDataObject *)new wxFileDataObject();
25561
25562 wxPyEndAllowThreads(__tstate);
25563 if (PyErr_Occurred()) SWIG_fail;
25564 }
25565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25566 return resultobj;
25567 fail:
25568 return NULL;
25569}
25570
25571
25572static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25573 PyObject *resultobj;
25574 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25575 wxArrayString *result;
25576 PyObject * obj0 = 0 ;
25577 char *kwnames[] = {
25578 (char *) "self", NULL
25579 };
25580
25581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25584 {
25585 PyThreadState* __tstate = wxPyBeginAllowThreads();
25586 {
25587 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25588 result = (wxArrayString *) &_result_ref;
25589 }
25590
25591 wxPyEndAllowThreads(__tstate);
25592 if (PyErr_Occurred()) SWIG_fail;
25593 }
25594 {
25595 resultobj = wxArrayString2PyList_helper(*result);
25596 }
25597 return resultobj;
25598 fail:
25599 return NULL;
25600}
25601
25602
25603static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25604 PyObject *resultobj;
25605 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25606 wxString *arg2 = 0 ;
25607 bool temp2 = False ;
25608 PyObject * obj0 = 0 ;
25609 PyObject * obj1 = 0 ;
25610 char *kwnames[] = {
25611 (char *) "self",(char *) "filename", NULL
25612 };
25613
25614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25617 {
25618 arg2 = wxString_in_helper(obj1);
25619 if (arg2 == NULL) SWIG_fail;
25620 temp2 = True;
25621 }
25622 {
25623 PyThreadState* __tstate = wxPyBeginAllowThreads();
25624 (arg1)->AddFile((wxString const &)*arg2);
25625
25626 wxPyEndAllowThreads(__tstate);
25627 if (PyErr_Occurred()) SWIG_fail;
25628 }
25629 Py_INCREF(Py_None); resultobj = Py_None;
25630 {
25631 if (temp2)
25632 delete arg2;
25633 }
25634 return resultobj;
25635 fail:
25636 {
25637 if (temp2)
25638 delete arg2;
25639 }
25640 return NULL;
25641}
25642
25643
25644static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25645 PyObject *obj;
25646 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25647 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25648 Py_INCREF(obj);
25649 return Py_BuildValue((char *)"");
25650}
25651static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25652 PyObject *resultobj;
25653 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25654 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25655 wxCustomDataObject *result;
25656 PyObject * obj0 = 0 ;
25657 char *kwnames[] = {
25658 (char *) "format", NULL
25659 };
25660
25661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25662 if (obj0) {
25663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25664 SWIG_POINTER_EXCEPTION | 0)) == -1)
25665 SWIG_fail;
25666 if (arg1 == NULL) {
25667 PyErr_SetString(PyExc_TypeError,"null reference");
25668 SWIG_fail;
25669 }
25670 }
25671 {
25672 PyThreadState* __tstate = wxPyBeginAllowThreads();
25673 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25674
25675 wxPyEndAllowThreads(__tstate);
25676 if (PyErr_Occurred()) SWIG_fail;
25677 }
25678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25679 return resultobj;
25680 fail:
25681 return NULL;
25682}
25683
25684
25685static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25686 PyObject *resultobj;
25687 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25688 PyObject *arg2 = (PyObject *) 0 ;
25689 bool result;
25690 PyObject * obj0 = 0 ;
25691 PyObject * obj1 = 0 ;
25692 char *kwnames[] = {
25693 (char *) "self",(char *) "data", NULL
25694 };
25695
25696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25699 arg2 = obj1;
25700 {
25701 PyThreadState* __tstate = wxPyBeginAllowThreads();
25702 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25703
25704 wxPyEndAllowThreads(__tstate);
25705 if (PyErr_Occurred()) SWIG_fail;
25706 }
25707 {
25708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25709 }
25710 return resultobj;
25711 fail:
25712 return NULL;
25713}
25714
25715
25716static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25717 PyObject *resultobj;
25718 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25719 size_t result;
25720 PyObject * obj0 = 0 ;
25721 char *kwnames[] = {
25722 (char *) "self", NULL
25723 };
25724
25725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25728 {
25729 PyThreadState* __tstate = wxPyBeginAllowThreads();
25730 result = (size_t)(arg1)->GetSize();
25731
25732 wxPyEndAllowThreads(__tstate);
25733 if (PyErr_Occurred()) SWIG_fail;
25734 }
25735 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25736 return resultobj;
25737 fail:
25738 return NULL;
25739}
25740
25741
25742static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25743 PyObject *resultobj;
25744 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25745 PyObject *result;
25746 PyObject * obj0 = 0 ;
25747 char *kwnames[] = {
25748 (char *) "self", NULL
25749 };
25750
25751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25754 {
25755 PyThreadState* __tstate = wxPyBeginAllowThreads();
25756 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25757
25758 wxPyEndAllowThreads(__tstate);
25759 if (PyErr_Occurred()) SWIG_fail;
25760 }
25761 resultobj = result;
25762 return resultobj;
25763 fail:
25764 return NULL;
25765}
25766
25767
25768static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25769 PyObject *obj;
25770 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25771 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25772 Py_INCREF(obj);
25773 return Py_BuildValue((char *)"");
25774}
25775static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25776 PyObject *resultobj;
25777 wxURLDataObject *result;
25778 char *kwnames[] = {
25779 NULL
25780 };
25781
25782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25783 {
25784 PyThreadState* __tstate = wxPyBeginAllowThreads();
25785 result = (wxURLDataObject *)new wxURLDataObject();
25786
25787 wxPyEndAllowThreads(__tstate);
25788 if (PyErr_Occurred()) SWIG_fail;
25789 }
25790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25791 return resultobj;
25792 fail:
25793 return NULL;
25794}
25795
25796
25797static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25798 PyObject *resultobj;
25799 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25800 wxString result;
25801 PyObject * obj0 = 0 ;
25802 char *kwnames[] = {
25803 (char *) "self", NULL
25804 };
25805
25806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25809 {
25810 PyThreadState* __tstate = wxPyBeginAllowThreads();
25811 result = (arg1)->GetURL();
25812
25813 wxPyEndAllowThreads(__tstate);
25814 if (PyErr_Occurred()) SWIG_fail;
25815 }
25816 {
25817#if wxUSE_UNICODE
25818 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25819#else
25820 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25821#endif
25822 }
25823 return resultobj;
25824 fail:
25825 return NULL;
25826}
25827
25828
25829static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25830 PyObject *resultobj;
25831 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25832 wxString *arg2 = 0 ;
25833 bool temp2 = False ;
25834 PyObject * obj0 = 0 ;
25835 PyObject * obj1 = 0 ;
25836 char *kwnames[] = {
25837 (char *) "self",(char *) "url", NULL
25838 };
25839
25840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25843 {
25844 arg2 = wxString_in_helper(obj1);
25845 if (arg2 == NULL) SWIG_fail;
25846 temp2 = True;
25847 }
25848 {
25849 PyThreadState* __tstate = wxPyBeginAllowThreads();
25850 (arg1)->SetURL((wxString const &)*arg2);
25851
25852 wxPyEndAllowThreads(__tstate);
25853 if (PyErr_Occurred()) SWIG_fail;
25854 }
25855 Py_INCREF(Py_None); resultobj = Py_None;
25856 {
25857 if (temp2)
25858 delete arg2;
25859 }
25860 return resultobj;
25861 fail:
25862 {
25863 if (temp2)
25864 delete arg2;
25865 }
25866 return NULL;
25867}
25868
25869
25870static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25871 PyObject *obj;
25872 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25873 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25874 Py_INCREF(obj);
25875 return Py_BuildValue((char *)"");
25876}
25877static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25878 PyObject *resultobj;
25879 wxMetafileDataObject *result;
25880 char *kwnames[] = {
25881 NULL
25882 };
25883
25884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25885 {
25886 PyThreadState* __tstate = wxPyBeginAllowThreads();
25887 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25888
25889 wxPyEndAllowThreads(__tstate);
25890 if (PyErr_Occurred()) SWIG_fail;
25891 }
25892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25893 return resultobj;
25894 fail:
25895 return NULL;
25896}
25897
25898
25899static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25900 PyObject *resultobj;
25901 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25902 wxMetafile *arg2 = 0 ;
25903 PyObject * obj0 = 0 ;
25904 PyObject * obj1 = 0 ;
25905 char *kwnames[] = {
25906 (char *) "self",(char *) "metafile", NULL
25907 };
25908
25909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25913 SWIG_POINTER_EXCEPTION | 0)) == -1)
25914 SWIG_fail;
25915 if (arg2 == NULL) {
25916 PyErr_SetString(PyExc_TypeError,"null reference");
25917 SWIG_fail;
25918 }
25919 {
25920 PyThreadState* __tstate = wxPyBeginAllowThreads();
25921 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25922
25923 wxPyEndAllowThreads(__tstate);
25924 if (PyErr_Occurred()) SWIG_fail;
25925 }
25926 Py_INCREF(Py_None); resultobj = Py_None;
25927 return resultobj;
25928 fail:
25929 return NULL;
25930}
25931
25932
25933static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25934 PyObject *resultobj;
25935 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25936 wxMetafile result;
25937 PyObject * obj0 = 0 ;
25938 char *kwnames[] = {
25939 (char *) "self", NULL
25940 };
25941
25942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25945 {
25946 PyThreadState* __tstate = wxPyBeginAllowThreads();
25947 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25948
25949 wxPyEndAllowThreads(__tstate);
25950 if (PyErr_Occurred()) SWIG_fail;
25951 }
25952 {
25953 wxMetafile * resultptr;
25954 resultptr = new wxMetafile((wxMetafile &) result);
25955 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25956 }
25957 return resultobj;
25958 fail:
25959 return NULL;
25960}
25961
25962
25963static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25964 PyObject *obj;
25965 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25966 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25967 Py_INCREF(obj);
25968 return Py_BuildValue((char *)"");
25969}
25970static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25971 PyObject *resultobj;
25972 int arg1 ;
25973 bool result;
25974 PyObject * obj0 = 0 ;
25975 char *kwnames[] = {
25976 (char *) "res", NULL
25977 };
25978
25979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25980 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25981 if (PyErr_Occurred()) SWIG_fail;
25982 {
25983 PyThreadState* __tstate = wxPyBeginAllowThreads();
25984 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25985
25986 wxPyEndAllowThreads(__tstate);
25987 if (PyErr_Occurred()) SWIG_fail;
25988 }
25989 {
25990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25991 }
25992 return resultobj;
25993 fail:
25994 return NULL;
25995}
25996
25997
25998static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25999 PyObject *resultobj;
26000 wxWindow *arg1 = (wxWindow *) 0 ;
26001 wxCursor const &arg2_defvalue = wxNullCursor ;
26002 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
26003 wxCursor const &arg3_defvalue = wxNullCursor ;
26004 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
26005 wxCursor const &arg4_defvalue = wxNullCursor ;
26006 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
26007 wxPyDropSource *result;
26008 PyObject * obj0 = 0 ;
26009 PyObject * obj1 = 0 ;
26010 PyObject * obj2 = 0 ;
26011 PyObject * obj3 = 0 ;
26012 char *kwnames[] = {
26013 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
26014 };
26015
26016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26019 if (obj1) {
26020 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26021 SWIG_POINTER_EXCEPTION | 0)) == -1)
26022 SWIG_fail;
26023 if (arg2 == NULL) {
26024 PyErr_SetString(PyExc_TypeError,"null reference");
26025 SWIG_fail;
26026 }
26027 }
26028 if (obj2) {
26029 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26030 SWIG_POINTER_EXCEPTION | 0)) == -1)
26031 SWIG_fail;
26032 if (arg3 == NULL) {
26033 PyErr_SetString(PyExc_TypeError,"null reference");
26034 SWIG_fail;
26035 }
26036 }
26037 if (obj3) {
26038 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
26039 SWIG_POINTER_EXCEPTION | 0)) == -1)
26040 SWIG_fail;
26041 if (arg4 == NULL) {
26042 PyErr_SetString(PyExc_TypeError,"null reference");
26043 SWIG_fail;
26044 }
26045 }
26046 {
26047 PyThreadState* __tstate = wxPyBeginAllowThreads();
26048 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
26049
26050 wxPyEndAllowThreads(__tstate);
26051 if (PyErr_Occurred()) SWIG_fail;
26052 }
26053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
26054 return resultobj;
26055 fail:
26056 return NULL;
26057}
26058
26059
26060static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26061 PyObject *resultobj;
26062 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26063 PyObject *arg2 = (PyObject *) 0 ;
26064 PyObject *arg3 = (PyObject *) 0 ;
26065 int arg4 ;
26066 PyObject * obj0 = 0 ;
26067 PyObject * obj1 = 0 ;
26068 PyObject * obj2 = 0 ;
26069 PyObject * obj3 = 0 ;
26070 char *kwnames[] = {
26071 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
26072 };
26073
26074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26077 arg2 = obj1;
26078 arg3 = obj2;
26079 arg4 = (int) SWIG_AsInt(obj3);
26080 if (PyErr_Occurred()) SWIG_fail;
26081 {
26082 PyThreadState* __tstate = wxPyBeginAllowThreads();
26083 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
26084
26085 wxPyEndAllowThreads(__tstate);
26086 if (PyErr_Occurred()) SWIG_fail;
26087 }
26088 Py_INCREF(Py_None); resultobj = Py_None;
26089 return resultobj;
26090 fail:
26091 return NULL;
26092}
26093
26094
26095static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
26096 PyObject *resultobj;
26097 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26098 PyObject * obj0 = 0 ;
26099 char *kwnames[] = {
26100 (char *) "self", NULL
26101 };
26102
26103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
26104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26106 {
26107 PyThreadState* __tstate = wxPyBeginAllowThreads();
26108 delete arg1;
26109
26110 wxPyEndAllowThreads(__tstate);
26111 if (PyErr_Occurred()) SWIG_fail;
26112 }
26113 Py_INCREF(Py_None); resultobj = Py_None;
26114 return resultobj;
26115 fail:
26116 return NULL;
26117}
26118
26119
26120static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26121 PyObject *resultobj;
26122 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26123 wxDataObject *arg2 = 0 ;
26124 PyObject * obj0 = 0 ;
26125 PyObject * obj1 = 0 ;
26126 char *kwnames[] = {
26127 (char *) "self",(char *) "data", NULL
26128 };
26129
26130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
26131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26133 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26134 SWIG_POINTER_EXCEPTION | 0)) == -1)
26135 SWIG_fail;
26136 if (arg2 == NULL) {
26137 PyErr_SetString(PyExc_TypeError,"null reference");
26138 SWIG_fail;
26139 }
26140 {
26141 PyThreadState* __tstate = wxPyBeginAllowThreads();
26142 (arg1)->SetData(*arg2);
26143
26144 wxPyEndAllowThreads(__tstate);
26145 if (PyErr_Occurred()) SWIG_fail;
26146 }
26147 Py_INCREF(Py_None); resultobj = Py_None;
26148 return resultobj;
26149 fail:
26150 return NULL;
26151}
26152
26153
26154static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26155 PyObject *resultobj;
26156 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26157 wxDataObject *result;
26158 PyObject * obj0 = 0 ;
26159 char *kwnames[] = {
26160 (char *) "self", NULL
26161 };
26162
26163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26166 {
26167 PyThreadState* __tstate = wxPyBeginAllowThreads();
26168 result = (wxDataObject *)(arg1)->GetDataObject();
26169
26170 wxPyEndAllowThreads(__tstate);
26171 if (PyErr_Occurred()) SWIG_fail;
26172 }
26173 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26174 return resultobj;
26175 fail:
26176 return NULL;
26177}
26178
26179
26180static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26181 PyObject *resultobj;
26182 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26183 int arg2 ;
26184 wxCursor *arg3 = 0 ;
26185 PyObject * obj0 = 0 ;
26186 PyObject * obj1 = 0 ;
26187 PyObject * obj2 = 0 ;
26188 char *kwnames[] = {
26189 (char *) "self",(char *) "res",(char *) "cursor", NULL
26190 };
26191
26192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26195 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26196 if (PyErr_Occurred()) SWIG_fail;
26197 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26198 SWIG_POINTER_EXCEPTION | 0)) == -1)
26199 SWIG_fail;
26200 if (arg3 == NULL) {
26201 PyErr_SetString(PyExc_TypeError,"null reference");
26202 SWIG_fail;
26203 }
26204 {
26205 PyThreadState* __tstate = wxPyBeginAllowThreads();
26206 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26207
26208 wxPyEndAllowThreads(__tstate);
26209 if (PyErr_Occurred()) SWIG_fail;
26210 }
26211 Py_INCREF(Py_None); resultobj = Py_None;
26212 return resultobj;
26213 fail:
26214 return NULL;
26215}
26216
26217
26218static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26219 PyObject *resultobj;
26220 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26221 int arg2 = (int) wxDrag_CopyOnly ;
26222 int result;
26223 PyObject * obj0 = 0 ;
26224 PyObject * obj1 = 0 ;
26225 char *kwnames[] = {
26226 (char *) "self",(char *) "flags", NULL
26227 };
26228
26229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26232 if (obj1) {
26233 arg2 = (int) SWIG_AsInt(obj1);
26234 if (PyErr_Occurred()) SWIG_fail;
26235 }
26236 {
26237 PyThreadState* __tstate = wxPyBeginAllowThreads();
26238 result = (int)(arg1)->DoDragDrop(arg2);
26239
26240 wxPyEndAllowThreads(__tstate);
26241 if (PyErr_Occurred()) SWIG_fail;
26242 }
26243 resultobj = SWIG_FromInt((int)result);
26244 return resultobj;
26245 fail:
26246 return NULL;
26247}
26248
26249
26250static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
26251 PyObject *resultobj;
26252 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26253 int arg2 ;
26254 bool result;
26255 PyObject * obj0 = 0 ;
26256 PyObject * obj1 = 0 ;
26257 char *kwnames[] = {
26258 (char *) "self",(char *) "effect", NULL
26259 };
26260
26261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26264 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26265 if (PyErr_Occurred()) SWIG_fail;
26266 {
26267 PyThreadState* __tstate = wxPyBeginAllowThreads();
26268 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26269
26270 wxPyEndAllowThreads(__tstate);
26271 if (PyErr_Occurred()) SWIG_fail;
26272 }
26273 {
26274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26275 }
26276 return resultobj;
26277 fail:
26278 return NULL;
26279}
26280
26281
26282static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
26283 PyObject *obj;
26284 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26285 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26286 Py_INCREF(obj);
26287 return Py_BuildValue((char *)"");
26288}
26289static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26290 PyObject *resultobj;
26291 wxDataObject *arg1 = (wxDataObject *) NULL ;
26292 wxPyDropTarget *result;
26293 PyObject * obj0 = 0 ;
26294 char *kwnames[] = {
26295 (char *) "dataObject", NULL
26296 };
26297
26298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26299 if (obj0) {
26300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26301 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26302 }
26303 {
26304 PyThreadState* __tstate = wxPyBeginAllowThreads();
26305 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26306
26307 wxPyEndAllowThreads(__tstate);
26308 if (PyErr_Occurred()) SWIG_fail;
26309 }
26310 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26311 return resultobj;
26312 fail:
26313 return NULL;
26314}
26315
26316
26317static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26318 PyObject *resultobj;
26319 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26320 PyObject *arg2 = (PyObject *) 0 ;
26321 PyObject *arg3 = (PyObject *) 0 ;
26322 PyObject * obj0 = 0 ;
26323 PyObject * obj1 = 0 ;
26324 PyObject * obj2 = 0 ;
26325 char *kwnames[] = {
26326 (char *) "self",(char *) "self",(char *) "_class", NULL
26327 };
26328
26329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26332 arg2 = obj1;
26333 arg3 = obj2;
26334 {
26335 PyThreadState* __tstate = wxPyBeginAllowThreads();
26336 (arg1)->_setCallbackInfo(arg2,arg3);
26337
26338 wxPyEndAllowThreads(__tstate);
26339 if (PyErr_Occurred()) SWIG_fail;
26340 }
26341 Py_INCREF(Py_None); resultobj = Py_None;
26342 return resultobj;
26343 fail:
26344 return NULL;
26345}
26346
26347
26348static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26349 PyObject *resultobj;
26350 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26351 PyObject * obj0 = 0 ;
26352 char *kwnames[] = {
26353 (char *) "self", NULL
26354 };
26355
26356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26359 {
26360 PyThreadState* __tstate = wxPyBeginAllowThreads();
26361 delete arg1;
26362
26363 wxPyEndAllowThreads(__tstate);
26364 if (PyErr_Occurred()) SWIG_fail;
26365 }
26366 Py_INCREF(Py_None); resultobj = Py_None;
26367 return resultobj;
26368 fail:
26369 return NULL;
26370}
26371
26372
26373static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26374 PyObject *resultobj;
26375 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26376 wxDataObject *result;
26377 PyObject * obj0 = 0 ;
26378 char *kwnames[] = {
26379 (char *) "self", NULL
26380 };
26381
26382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26385 {
26386 PyThreadState* __tstate = wxPyBeginAllowThreads();
26387 result = (wxDataObject *)(arg1)->GetDataObject();
26388
26389 wxPyEndAllowThreads(__tstate);
26390 if (PyErr_Occurred()) SWIG_fail;
26391 }
26392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26393 return resultobj;
26394 fail:
26395 return NULL;
26396}
26397
26398
26399static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26400 PyObject *resultobj;
26401 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26402 wxDataObject *arg2 = (wxDataObject *) 0 ;
26403 PyObject * obj0 = 0 ;
26404 PyObject * obj1 = 0 ;
26405 char *kwnames[] = {
26406 (char *) "self",(char *) "dataObject", NULL
26407 };
26408
26409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26412 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26413 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26414 {
26415 PyThreadState* __tstate = wxPyBeginAllowThreads();
26416 (arg1)->SetDataObject(arg2);
26417
26418 wxPyEndAllowThreads(__tstate);
26419 if (PyErr_Occurred()) SWIG_fail;
26420 }
26421 Py_INCREF(Py_None); resultobj = Py_None;
26422 return resultobj;
26423 fail:
26424 return NULL;
26425}
26426
26427
26428static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26429 PyObject *resultobj;
26430 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26431 int arg2 ;
26432 int arg3 ;
26433 int arg4 ;
26434 int result;
26435 PyObject * obj0 = 0 ;
26436 PyObject * obj1 = 0 ;
26437 PyObject * obj2 = 0 ;
26438 PyObject * obj3 = 0 ;
26439 char *kwnames[] = {
26440 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26441 };
26442
26443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26446 arg2 = (int) SWIG_AsInt(obj1);
26447 if (PyErr_Occurred()) SWIG_fail;
26448 arg3 = (int) SWIG_AsInt(obj2);
26449 if (PyErr_Occurred()) SWIG_fail;
26450 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26451 if (PyErr_Occurred()) SWIG_fail;
26452 {
26453 PyThreadState* __tstate = wxPyBeginAllowThreads();
26454 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26455
26456 wxPyEndAllowThreads(__tstate);
26457 if (PyErr_Occurred()) SWIG_fail;
26458 }
26459 resultobj = SWIG_FromInt((int)result);
26460 return resultobj;
26461 fail:
26462 return NULL;
26463}
26464
26465
26466static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26467 PyObject *resultobj;
26468 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26469 int arg2 ;
26470 int arg3 ;
26471 int arg4 ;
26472 int result;
26473 PyObject * obj0 = 0 ;
26474 PyObject * obj1 = 0 ;
26475 PyObject * obj2 = 0 ;
26476 PyObject * obj3 = 0 ;
26477 char *kwnames[] = {
26478 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26479 };
26480
26481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26484 arg2 = (int) SWIG_AsInt(obj1);
26485 if (PyErr_Occurred()) SWIG_fail;
26486 arg3 = (int) SWIG_AsInt(obj2);
26487 if (PyErr_Occurred()) SWIG_fail;
26488 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26489 if (PyErr_Occurred()) SWIG_fail;
26490 {
26491 PyThreadState* __tstate = wxPyBeginAllowThreads();
26492 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26493
26494 wxPyEndAllowThreads(__tstate);
26495 if (PyErr_Occurred()) SWIG_fail;
26496 }
26497 resultobj = SWIG_FromInt((int)result);
26498 return resultobj;
26499 fail:
26500 return NULL;
26501}
26502
26503
26504static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26505 PyObject *resultobj;
26506 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26507 PyObject * obj0 = 0 ;
26508 char *kwnames[] = {
26509 (char *) "self", NULL
26510 };
26511
26512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26515 {
26516 PyThreadState* __tstate = wxPyBeginAllowThreads();
26517 (arg1)->base_OnLeave();
26518
26519 wxPyEndAllowThreads(__tstate);
26520 if (PyErr_Occurred()) SWIG_fail;
26521 }
26522 Py_INCREF(Py_None); resultobj = Py_None;
26523 return resultobj;
26524 fail:
26525 return NULL;
26526}
26527
26528
26529static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26530 PyObject *resultobj;
26531 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26532 int arg2 ;
26533 int arg3 ;
26534 bool result;
26535 PyObject * obj0 = 0 ;
26536 PyObject * obj1 = 0 ;
26537 PyObject * obj2 = 0 ;
26538 char *kwnames[] = {
26539 (char *) "self",(char *) "x",(char *) "y", NULL
26540 };
26541
26542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26545 arg2 = (int) SWIG_AsInt(obj1);
26546 if (PyErr_Occurred()) SWIG_fail;
26547 arg3 = (int) SWIG_AsInt(obj2);
26548 if (PyErr_Occurred()) SWIG_fail;
26549 {
26550 PyThreadState* __tstate = wxPyBeginAllowThreads();
26551 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26552
26553 wxPyEndAllowThreads(__tstate);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 {
26557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26558 }
26559 return resultobj;
26560 fail:
26561 return NULL;
26562}
26563
26564
26565static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26566 PyObject *resultobj;
26567 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26568 bool result;
26569 PyObject * obj0 = 0 ;
26570 char *kwnames[] = {
26571 (char *) "self", NULL
26572 };
26573
26574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26577 {
26578 PyThreadState* __tstate = wxPyBeginAllowThreads();
26579 result = (bool)(arg1)->GetData();
26580
26581 wxPyEndAllowThreads(__tstate);
26582 if (PyErr_Occurred()) SWIG_fail;
26583 }
26584 {
26585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26586 }
26587 return resultobj;
26588 fail:
26589 return NULL;
26590}
26591
26592
26593static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26594 PyObject *obj;
26595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26596 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26597 Py_INCREF(obj);
26598 return Py_BuildValue((char *)"");
26599}
26600static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26601 PyObject *resultobj;
26602 wxPyTextDropTarget *result;
26603 char *kwnames[] = {
26604 NULL
26605 };
26606
26607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26608 {
26609 PyThreadState* __tstate = wxPyBeginAllowThreads();
26610 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26611
26612 wxPyEndAllowThreads(__tstate);
26613 if (PyErr_Occurred()) SWIG_fail;
26614 }
26615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26616 return resultobj;
26617 fail:
26618 return NULL;
26619}
26620
26621
26622static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26623 PyObject *resultobj;
26624 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26625 PyObject *arg2 = (PyObject *) 0 ;
26626 PyObject *arg3 = (PyObject *) 0 ;
26627 PyObject * obj0 = 0 ;
26628 PyObject * obj1 = 0 ;
26629 PyObject * obj2 = 0 ;
26630 char *kwnames[] = {
26631 (char *) "self",(char *) "self",(char *) "_class", NULL
26632 };
26633
26634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26637 arg2 = obj1;
26638 arg3 = obj2;
26639 {
26640 PyThreadState* __tstate = wxPyBeginAllowThreads();
26641 (arg1)->_setCallbackInfo(arg2,arg3);
26642
26643 wxPyEndAllowThreads(__tstate);
26644 if (PyErr_Occurred()) SWIG_fail;
26645 }
26646 Py_INCREF(Py_None); resultobj = Py_None;
26647 return resultobj;
26648 fail:
26649 return NULL;
26650}
26651
26652
26653static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26654 PyObject *resultobj;
26655 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26656 int arg2 ;
26657 int arg3 ;
26658 int arg4 ;
26659 int result;
26660 PyObject * obj0 = 0 ;
26661 PyObject * obj1 = 0 ;
26662 PyObject * obj2 = 0 ;
26663 PyObject * obj3 = 0 ;
26664 char *kwnames[] = {
26665 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26666 };
26667
26668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26671 arg2 = (int) SWIG_AsInt(obj1);
26672 if (PyErr_Occurred()) SWIG_fail;
26673 arg3 = (int) SWIG_AsInt(obj2);
26674 if (PyErr_Occurred()) SWIG_fail;
26675 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26676 if (PyErr_Occurred()) SWIG_fail;
26677 {
26678 PyThreadState* __tstate = wxPyBeginAllowThreads();
26679 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26680
26681 wxPyEndAllowThreads(__tstate);
26682 if (PyErr_Occurred()) SWIG_fail;
26683 }
26684 resultobj = SWIG_FromInt((int)result);
26685 return resultobj;
26686 fail:
26687 return NULL;
26688}
26689
26690
26691static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26692 PyObject *resultobj;
26693 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26694 int arg2 ;
26695 int arg3 ;
26696 int arg4 ;
26697 int result;
26698 PyObject * obj0 = 0 ;
26699 PyObject * obj1 = 0 ;
26700 PyObject * obj2 = 0 ;
26701 PyObject * obj3 = 0 ;
26702 char *kwnames[] = {
26703 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26704 };
26705
26706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26709 arg2 = (int) SWIG_AsInt(obj1);
26710 if (PyErr_Occurred()) SWIG_fail;
26711 arg3 = (int) SWIG_AsInt(obj2);
26712 if (PyErr_Occurred()) SWIG_fail;
26713 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26714 if (PyErr_Occurred()) SWIG_fail;
26715 {
26716 PyThreadState* __tstate = wxPyBeginAllowThreads();
26717 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26718
26719 wxPyEndAllowThreads(__tstate);
26720 if (PyErr_Occurred()) SWIG_fail;
26721 }
26722 resultobj = SWIG_FromInt((int)result);
26723 return resultobj;
26724 fail:
26725 return NULL;
26726}
26727
26728
26729static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26730 PyObject *resultobj;
26731 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26732 PyObject * obj0 = 0 ;
26733 char *kwnames[] = {
26734 (char *) "self", NULL
26735 };
26736
26737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26740 {
26741 PyThreadState* __tstate = wxPyBeginAllowThreads();
26742 (arg1)->base_OnLeave();
26743
26744 wxPyEndAllowThreads(__tstate);
26745 if (PyErr_Occurred()) SWIG_fail;
26746 }
26747 Py_INCREF(Py_None); resultobj = Py_None;
26748 return resultobj;
26749 fail:
26750 return NULL;
26751}
26752
26753
26754static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26755 PyObject *resultobj;
26756 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26757 int arg2 ;
26758 int arg3 ;
26759 bool result;
26760 PyObject * obj0 = 0 ;
26761 PyObject * obj1 = 0 ;
26762 PyObject * obj2 = 0 ;
26763 char *kwnames[] = {
26764 (char *) "self",(char *) "x",(char *) "y", NULL
26765 };
26766
26767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26770 arg2 = (int) SWIG_AsInt(obj1);
26771 if (PyErr_Occurred()) SWIG_fail;
26772 arg3 = (int) SWIG_AsInt(obj2);
26773 if (PyErr_Occurred()) SWIG_fail;
26774 {
26775 PyThreadState* __tstate = wxPyBeginAllowThreads();
26776 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26777
26778 wxPyEndAllowThreads(__tstate);
26779 if (PyErr_Occurred()) SWIG_fail;
26780 }
26781 {
26782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26783 }
26784 return resultobj;
26785 fail:
26786 return NULL;
26787}
26788
26789
26790static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26791 PyObject *resultobj;
26792 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26793 int arg2 ;
26794 int arg3 ;
26795 int arg4 ;
26796 int result;
26797 PyObject * obj0 = 0 ;
26798 PyObject * obj1 = 0 ;
26799 PyObject * obj2 = 0 ;
26800 PyObject * obj3 = 0 ;
26801 char *kwnames[] = {
26802 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26803 };
26804
26805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26808 arg2 = (int) SWIG_AsInt(obj1);
26809 if (PyErr_Occurred()) SWIG_fail;
26810 arg3 = (int) SWIG_AsInt(obj2);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26813 if (PyErr_Occurred()) SWIG_fail;
26814 {
26815 PyThreadState* __tstate = wxPyBeginAllowThreads();
26816 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26817
26818 wxPyEndAllowThreads(__tstate);
26819 if (PyErr_Occurred()) SWIG_fail;
26820 }
26821 resultobj = SWIG_FromInt((int)result);
26822 return resultobj;
26823 fail:
26824 return NULL;
26825}
26826
26827
26828static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26829 PyObject *obj;
26830 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26831 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26832 Py_INCREF(obj);
26833 return Py_BuildValue((char *)"");
26834}
26835static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26836 PyObject *resultobj;
26837 wxPyFileDropTarget *result;
26838 char *kwnames[] = {
26839 NULL
26840 };
26841
26842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26843 {
26844 PyThreadState* __tstate = wxPyBeginAllowThreads();
26845 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26846
26847 wxPyEndAllowThreads(__tstate);
26848 if (PyErr_Occurred()) SWIG_fail;
26849 }
26850 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26851 return resultobj;
26852 fail:
26853 return NULL;
26854}
26855
26856
26857static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26858 PyObject *resultobj;
26859 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26860 PyObject *arg2 = (PyObject *) 0 ;
26861 PyObject *arg3 = (PyObject *) 0 ;
26862 PyObject * obj0 = 0 ;
26863 PyObject * obj1 = 0 ;
26864 PyObject * obj2 = 0 ;
26865 char *kwnames[] = {
26866 (char *) "self",(char *) "self",(char *) "_class", NULL
26867 };
26868
26869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26872 arg2 = obj1;
26873 arg3 = obj2;
26874 {
26875 PyThreadState* __tstate = wxPyBeginAllowThreads();
26876 (arg1)->_setCallbackInfo(arg2,arg3);
26877
26878 wxPyEndAllowThreads(__tstate);
26879 if (PyErr_Occurred()) SWIG_fail;
26880 }
26881 Py_INCREF(Py_None); resultobj = Py_None;
26882 return resultobj;
26883 fail:
26884 return NULL;
26885}
26886
26887
26888static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26889 PyObject *resultobj;
26890 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26891 int arg2 ;
26892 int arg3 ;
26893 int arg4 ;
26894 int result;
26895 PyObject * obj0 = 0 ;
26896 PyObject * obj1 = 0 ;
26897 PyObject * obj2 = 0 ;
26898 PyObject * obj3 = 0 ;
26899 char *kwnames[] = {
26900 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26901 };
26902
26903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26906 arg2 = (int) SWIG_AsInt(obj1);
26907 if (PyErr_Occurred()) SWIG_fail;
26908 arg3 = (int) SWIG_AsInt(obj2);
26909 if (PyErr_Occurred()) SWIG_fail;
26910 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26911 if (PyErr_Occurred()) SWIG_fail;
26912 {
26913 PyThreadState* __tstate = wxPyBeginAllowThreads();
26914 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26915
26916 wxPyEndAllowThreads(__tstate);
26917 if (PyErr_Occurred()) SWIG_fail;
26918 }
26919 resultobj = SWIG_FromInt((int)result);
26920 return resultobj;
26921 fail:
26922 return NULL;
26923}
26924
26925
26926static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26927 PyObject *resultobj;
26928 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26929 int arg2 ;
26930 int arg3 ;
26931 int arg4 ;
26932 int result;
26933 PyObject * obj0 = 0 ;
26934 PyObject * obj1 = 0 ;
26935 PyObject * obj2 = 0 ;
26936 PyObject * obj3 = 0 ;
26937 char *kwnames[] = {
26938 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26939 };
26940
26941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26944 arg2 = (int) SWIG_AsInt(obj1);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 arg3 = (int) SWIG_AsInt(obj2);
26947 if (PyErr_Occurred()) SWIG_fail;
26948 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26949 if (PyErr_Occurred()) SWIG_fail;
26950 {
26951 PyThreadState* __tstate = wxPyBeginAllowThreads();
26952 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26953
26954 wxPyEndAllowThreads(__tstate);
26955 if (PyErr_Occurred()) SWIG_fail;
26956 }
26957 resultobj = SWIG_FromInt((int)result);
26958 return resultobj;
26959 fail:
26960 return NULL;
26961}
26962
26963
26964static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26965 PyObject *resultobj;
26966 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26967 PyObject * obj0 = 0 ;
26968 char *kwnames[] = {
26969 (char *) "self", NULL
26970 };
26971
26972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26975 {
26976 PyThreadState* __tstate = wxPyBeginAllowThreads();
26977 (arg1)->base_OnLeave();
26978
26979 wxPyEndAllowThreads(__tstate);
26980 if (PyErr_Occurred()) SWIG_fail;
26981 }
26982 Py_INCREF(Py_None); resultobj = Py_None;
26983 return resultobj;
26984 fail:
26985 return NULL;
26986}
26987
26988
26989static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26990 PyObject *resultobj;
26991 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26992 int arg2 ;
26993 int arg3 ;
26994 bool result;
26995 PyObject * obj0 = 0 ;
26996 PyObject * obj1 = 0 ;
26997 PyObject * obj2 = 0 ;
26998 char *kwnames[] = {
26999 (char *) "self",(char *) "x",(char *) "y", NULL
27000 };
27001
27002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
27003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27005 arg2 = (int) SWIG_AsInt(obj1);
27006 if (PyErr_Occurred()) SWIG_fail;
27007 arg3 = (int) SWIG_AsInt(obj2);
27008 if (PyErr_Occurred()) SWIG_fail;
27009 {
27010 PyThreadState* __tstate = wxPyBeginAllowThreads();
27011 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
27012
27013 wxPyEndAllowThreads(__tstate);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 }
27016 {
27017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27018 }
27019 return resultobj;
27020 fail:
27021 return NULL;
27022}
27023
27024
27025static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
27026 PyObject *resultobj;
27027 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27028 int arg2 ;
27029 int arg3 ;
27030 int arg4 ;
27031 int result;
27032 PyObject * obj0 = 0 ;
27033 PyObject * obj1 = 0 ;
27034 PyObject * obj2 = 0 ;
27035 PyObject * obj3 = 0 ;
27036 char *kwnames[] = {
27037 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27038 };
27039
27040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27043 arg2 = (int) SWIG_AsInt(obj1);
27044 if (PyErr_Occurred()) SWIG_fail;
27045 arg3 = (int) SWIG_AsInt(obj2);
27046 if (PyErr_Occurred()) SWIG_fail;
27047 arg4 = (wxDragResult) SWIG_AsInt(obj3);
27048 if (PyErr_Occurred()) SWIG_fail;
27049 {
27050 PyThreadState* __tstate = wxPyBeginAllowThreads();
27051 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27052
27053 wxPyEndAllowThreads(__tstate);
27054 if (PyErr_Occurred()) SWIG_fail;
27055 }
27056 resultobj = SWIG_FromInt((int)result);
27057 return resultobj;
27058 fail:
27059 return NULL;
27060}
27061
27062
27063static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
27064 PyObject *obj;
27065 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27066 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
27067 Py_INCREF(obj);
27068 return Py_BuildValue((char *)"");
27069}
27070static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
27071 PyObject *resultobj;
27072 wxClipboard *result;
27073 char *kwnames[] = {
27074 NULL
27075 };
27076
27077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
27078 {
27079 PyThreadState* __tstate = wxPyBeginAllowThreads();
27080 result = (wxClipboard *)new wxClipboard();
27081
27082 wxPyEndAllowThreads(__tstate);
27083 if (PyErr_Occurred()) SWIG_fail;
27084 }
27085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
27086 return resultobj;
27087 fail:
27088 return NULL;
27089}
27090
27091
27092static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
27093 PyObject *resultobj;
27094 wxClipboard *arg1 = (wxClipboard *) 0 ;
27095 PyObject * obj0 = 0 ;
27096 char *kwnames[] = {
27097 (char *) "self", NULL
27098 };
27099
27100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
27101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27103 {
27104 PyThreadState* __tstate = wxPyBeginAllowThreads();
27105 delete arg1;
27106
27107 wxPyEndAllowThreads(__tstate);
27108 if (PyErr_Occurred()) SWIG_fail;
27109 }
27110 Py_INCREF(Py_None); resultobj = Py_None;
27111 return resultobj;
27112 fail:
27113 return NULL;
27114}
27115
27116
27117static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
27118 PyObject *resultobj;
27119 wxClipboard *arg1 = (wxClipboard *) 0 ;
27120 bool result;
27121 PyObject * obj0 = 0 ;
27122 char *kwnames[] = {
27123 (char *) "self", NULL
27124 };
27125
27126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
27127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27129 {
27130 PyThreadState* __tstate = wxPyBeginAllowThreads();
27131 result = (bool)(arg1)->Open();
27132
27133 wxPyEndAllowThreads(__tstate);
27134 if (PyErr_Occurred()) SWIG_fail;
27135 }
27136 {
27137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27138 }
27139 return resultobj;
27140 fail:
27141 return NULL;
27142}
27143
27144
27145static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
27146 PyObject *resultobj;
27147 wxClipboard *arg1 = (wxClipboard *) 0 ;
27148 PyObject * obj0 = 0 ;
27149 char *kwnames[] = {
27150 (char *) "self", NULL
27151 };
27152
27153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27156 {
27157 PyThreadState* __tstate = wxPyBeginAllowThreads();
27158 (arg1)->Close();
27159
27160 wxPyEndAllowThreads(__tstate);
27161 if (PyErr_Occurred()) SWIG_fail;
27162 }
27163 Py_INCREF(Py_None); resultobj = Py_None;
27164 return resultobj;
27165 fail:
27166 return NULL;
27167}
27168
27169
27170static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
27171 PyObject *resultobj;
27172 wxClipboard *arg1 = (wxClipboard *) 0 ;
27173 bool result;
27174 PyObject * obj0 = 0 ;
27175 char *kwnames[] = {
27176 (char *) "self", NULL
27177 };
27178
27179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27182 {
27183 PyThreadState* __tstate = wxPyBeginAllowThreads();
27184 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27185
27186 wxPyEndAllowThreads(__tstate);
27187 if (PyErr_Occurred()) SWIG_fail;
27188 }
27189 {
27190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27191 }
27192 return resultobj;
27193 fail:
27194 return NULL;
27195}
27196
27197
27198static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
27199 PyObject *resultobj;
27200 wxClipboard *arg1 = (wxClipboard *) 0 ;
27201 wxDataObject *arg2 = (wxDataObject *) 0 ;
27202 bool result;
27203 PyObject * obj0 = 0 ;
27204 PyObject * obj1 = 0 ;
27205 char *kwnames[] = {
27206 (char *) "self",(char *) "data", NULL
27207 };
27208
27209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27213 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27214 {
27215 PyThreadState* __tstate = wxPyBeginAllowThreads();
27216 result = (bool)(arg1)->AddData(arg2);
27217
27218 wxPyEndAllowThreads(__tstate);
27219 if (PyErr_Occurred()) SWIG_fail;
27220 }
27221 {
27222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27223 }
27224 return resultobj;
27225 fail:
27226 return NULL;
27227}
27228
27229
27230static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27231 PyObject *resultobj;
27232 wxClipboard *arg1 = (wxClipboard *) 0 ;
27233 wxDataObject *arg2 = (wxDataObject *) 0 ;
27234 bool result;
27235 PyObject * obj0 = 0 ;
27236 PyObject * obj1 = 0 ;
27237 char *kwnames[] = {
27238 (char *) "self",(char *) "data", NULL
27239 };
27240
27241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27244 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27245 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27246 {
27247 PyThreadState* __tstate = wxPyBeginAllowThreads();
27248 result = (bool)(arg1)->SetData(arg2);
27249
27250 wxPyEndAllowThreads(__tstate);
27251 if (PyErr_Occurred()) SWIG_fail;
27252 }
27253 {
27254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27255 }
27256 return resultobj;
27257 fail:
27258 return NULL;
27259}
27260
27261
27262static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
27263 PyObject *resultobj;
27264 wxClipboard *arg1 = (wxClipboard *) 0 ;
27265 wxDataFormat *arg2 = 0 ;
27266 bool result;
27267 PyObject * obj0 = 0 ;
27268 PyObject * obj1 = 0 ;
27269 char *kwnames[] = {
27270 (char *) "self",(char *) "format", NULL
27271 };
27272
27273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27276 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27277 SWIG_POINTER_EXCEPTION | 0)) == -1)
27278 SWIG_fail;
27279 if (arg2 == NULL) {
27280 PyErr_SetString(PyExc_TypeError,"null reference");
27281 SWIG_fail;
27282 }
27283 {
27284 PyThreadState* __tstate = wxPyBeginAllowThreads();
27285 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27286
27287 wxPyEndAllowThreads(__tstate);
27288 if (PyErr_Occurred()) SWIG_fail;
27289 }
27290 {
27291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27292 }
27293 return resultobj;
27294 fail:
27295 return NULL;
27296}
27297
27298
27299static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27300 PyObject *resultobj;
27301 wxClipboard *arg1 = (wxClipboard *) 0 ;
27302 wxDataObject *arg2 = 0 ;
27303 bool result;
27304 PyObject * obj0 = 0 ;
27305 PyObject * obj1 = 0 ;
27306 char *kwnames[] = {
27307 (char *) "self",(char *) "data", NULL
27308 };
27309
27310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27314 SWIG_POINTER_EXCEPTION | 0)) == -1)
27315 SWIG_fail;
27316 if (arg2 == NULL) {
27317 PyErr_SetString(PyExc_TypeError,"null reference");
27318 SWIG_fail;
27319 }
27320 {
27321 PyThreadState* __tstate = wxPyBeginAllowThreads();
27322 result = (bool)(arg1)->GetData(*arg2);
27323
27324 wxPyEndAllowThreads(__tstate);
27325 if (PyErr_Occurred()) SWIG_fail;
27326 }
27327 {
27328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27329 }
27330 return resultobj;
27331 fail:
27332 return NULL;
27333}
27334
27335
27336static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27337 PyObject *resultobj;
27338 wxClipboard *arg1 = (wxClipboard *) 0 ;
27339 PyObject * obj0 = 0 ;
27340 char *kwnames[] = {
27341 (char *) "self", NULL
27342 };
27343
27344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27347 {
27348 PyThreadState* __tstate = wxPyBeginAllowThreads();
27349 (arg1)->Clear();
27350
27351 wxPyEndAllowThreads(__tstate);
27352 if (PyErr_Occurred()) SWIG_fail;
27353 }
27354 Py_INCREF(Py_None); resultobj = Py_None;
27355 return resultobj;
27356 fail:
27357 return NULL;
27358}
27359
27360
27361static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27362 PyObject *resultobj;
27363 wxClipboard *arg1 = (wxClipboard *) 0 ;
27364 bool result;
27365 PyObject * obj0 = 0 ;
27366 char *kwnames[] = {
27367 (char *) "self", NULL
27368 };
27369
27370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27373 {
27374 PyThreadState* __tstate = wxPyBeginAllowThreads();
27375 result = (bool)(arg1)->Flush();
27376
27377 wxPyEndAllowThreads(__tstate);
27378 if (PyErr_Occurred()) SWIG_fail;
27379 }
27380 {
27381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27382 }
27383 return resultobj;
27384 fail:
27385 return NULL;
27386}
27387
27388
27389static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27390 PyObject *resultobj;
27391 wxClipboard *arg1 = (wxClipboard *) 0 ;
27392 bool arg2 = (bool) True ;
27393 PyObject * obj0 = 0 ;
27394 PyObject * obj1 = 0 ;
27395 char *kwnames[] = {
27396 (char *) "self",(char *) "primary", NULL
27397 };
27398
27399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27402 if (obj1) {
27403 arg2 = (bool) SWIG_AsBool(obj1);
27404 if (PyErr_Occurred()) SWIG_fail;
27405 }
27406 {
27407 PyThreadState* __tstate = wxPyBeginAllowThreads();
27408 (arg1)->UsePrimarySelection(arg2);
27409
27410 wxPyEndAllowThreads(__tstate);
27411 if (PyErr_Occurred()) SWIG_fail;
27412 }
27413 Py_INCREF(Py_None); resultobj = Py_None;
27414 return resultobj;
27415 fail:
27416 return NULL;
27417}
27418
27419
27420static PyObject *_wrap_Clipboard_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
27421 PyObject *resultobj;
27422 wxClipboard *result;
27423 char *kwnames[] = {
27424 NULL
27425 };
27426
27427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27428 {
27429 PyThreadState* __tstate = wxPyBeginAllowThreads();
27430 result = (wxClipboard *)wxClipboard::Get();
27431
27432 wxPyEndAllowThreads(__tstate);
27433 if (PyErr_Occurred()) SWIG_fail;
27434 }
27435 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27436 return resultobj;
27437 fail:
27438 return NULL;
27439}
27440
27441
27442static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27443 PyObject *obj;
27444 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27445 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27446 Py_INCREF(obj);
27447 return Py_BuildValue((char *)"");
27448}
27449static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27450 PyObject *resultobj;
27451 wxClipboard *arg1 = (wxClipboard *) NULL ;
27452 wxClipboardLocker *result;
27453 PyObject * obj0 = 0 ;
27454 char *kwnames[] = {
27455 (char *) "clipboard", NULL
27456 };
27457
27458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27459 if (obj0) {
27460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27462 }
27463 {
27464 PyThreadState* __tstate = wxPyBeginAllowThreads();
27465 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27466
27467 wxPyEndAllowThreads(__tstate);
27468 if (PyErr_Occurred()) SWIG_fail;
27469 }
27470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27471 return resultobj;
27472 fail:
27473 return NULL;
27474}
27475
27476
27477static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27478 PyObject *resultobj;
27479 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27480 PyObject * obj0 = 0 ;
27481 char *kwnames[] = {
27482 (char *) "self", NULL
27483 };
27484
27485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27488 {
27489 PyThreadState* __tstate = wxPyBeginAllowThreads();
27490 delete arg1;
27491
27492 wxPyEndAllowThreads(__tstate);
27493 if (PyErr_Occurred()) SWIG_fail;
27494 }
27495 Py_INCREF(Py_None); resultobj = Py_None;
27496 return resultobj;
27497 fail:
27498 return NULL;
27499}
27500
27501
27502static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27503 PyObject *resultobj;
27504 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27505 bool result;
27506 PyObject * obj0 = 0 ;
27507 char *kwnames[] = {
27508 (char *) "self", NULL
27509 };
27510
27511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27514 {
27515 PyThreadState* __tstate = wxPyBeginAllowThreads();
27516 result = (bool)wxClipboardLocker___nonzero__(arg1);
27517
27518 wxPyEndAllowThreads(__tstate);
27519 if (PyErr_Occurred()) SWIG_fail;
27520 }
27521 {
27522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27523 }
27524 return resultobj;
27525 fail:
27526 return NULL;
27527}
27528
27529
27530static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27531 PyObject *obj;
27532 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27533 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27534 Py_INCREF(obj);
27535 return Py_BuildValue((char *)"");
27536}
27537static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27538 PyObject *resultobj;
27539 int arg1 = (int) 0 ;
27540 int arg2 = (int) 0 ;
27541 int arg3 = (int) 0 ;
27542 int arg4 = (int) 0 ;
27543 wxVideoMode *result;
27544 PyObject * obj0 = 0 ;
27545 PyObject * obj1 = 0 ;
27546 PyObject * obj2 = 0 ;
27547 PyObject * obj3 = 0 ;
27548 char *kwnames[] = {
27549 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27550 };
27551
27552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27553 if (obj0) {
27554 arg1 = (int) SWIG_AsInt(obj0);
27555 if (PyErr_Occurred()) SWIG_fail;
27556 }
27557 if (obj1) {
27558 arg2 = (int) SWIG_AsInt(obj1);
27559 if (PyErr_Occurred()) SWIG_fail;
27560 }
27561 if (obj2) {
27562 arg3 = (int) SWIG_AsInt(obj2);
27563 if (PyErr_Occurred()) SWIG_fail;
27564 }
27565 if (obj3) {
27566 arg4 = (int) SWIG_AsInt(obj3);
27567 if (PyErr_Occurred()) SWIG_fail;
27568 }
27569 {
27570 PyThreadState* __tstate = wxPyBeginAllowThreads();
27571 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27572
27573 wxPyEndAllowThreads(__tstate);
27574 if (PyErr_Occurred()) SWIG_fail;
27575 }
27576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27577 return resultobj;
27578 fail:
27579 return NULL;
27580}
27581
27582
27583static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27584 PyObject *resultobj;
27585 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27586 PyObject * obj0 = 0 ;
27587 char *kwnames[] = {
27588 (char *) "self", NULL
27589 };
27590
27591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27594 {
27595 PyThreadState* __tstate = wxPyBeginAllowThreads();
27596 delete arg1;
27597
27598 wxPyEndAllowThreads(__tstate);
27599 if (PyErr_Occurred()) SWIG_fail;
27600 }
27601 Py_INCREF(Py_None); resultobj = Py_None;
27602 return resultobj;
27603 fail:
27604 return NULL;
27605}
27606
27607
27608static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27609 PyObject *resultobj;
27610 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27611 wxVideoMode *arg2 = 0 ;
27612 bool result;
27613 PyObject * obj0 = 0 ;
27614 PyObject * obj1 = 0 ;
27615 char *kwnames[] = {
27616 (char *) "self",(char *) "other", NULL
27617 };
27618
27619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27623 SWIG_POINTER_EXCEPTION | 0)) == -1)
27624 SWIG_fail;
27625 if (arg2 == NULL) {
27626 PyErr_SetString(PyExc_TypeError,"null reference");
27627 SWIG_fail;
27628 }
27629 {
27630 PyThreadState* __tstate = wxPyBeginAllowThreads();
27631 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27632
27633 wxPyEndAllowThreads(__tstate);
27634 if (PyErr_Occurred()) SWIG_fail;
27635 }
27636 {
27637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27638 }
27639 return resultobj;
27640 fail:
27641 return NULL;
27642}
27643
27644
27645static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27646 PyObject *resultobj;
27647 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27648 int result;
27649 PyObject * obj0 = 0 ;
27650 char *kwnames[] = {
27651 (char *) "self", NULL
27652 };
27653
27654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27657 {
27658 PyThreadState* __tstate = wxPyBeginAllowThreads();
27659 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27660
27661 wxPyEndAllowThreads(__tstate);
27662 if (PyErr_Occurred()) SWIG_fail;
27663 }
27664 resultobj = SWIG_FromInt((int)result);
27665 return resultobj;
27666 fail:
27667 return NULL;
27668}
27669
27670
27671static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27672 PyObject *resultobj;
27673 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27674 int result;
27675 PyObject * obj0 = 0 ;
27676 char *kwnames[] = {
27677 (char *) "self", NULL
27678 };
27679
27680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27683 {
27684 PyThreadState* __tstate = wxPyBeginAllowThreads();
27685 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27686
27687 wxPyEndAllowThreads(__tstate);
27688 if (PyErr_Occurred()) SWIG_fail;
27689 }
27690 resultobj = SWIG_FromInt((int)result);
27691 return resultobj;
27692 fail:
27693 return NULL;
27694}
27695
27696
27697static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27698 PyObject *resultobj;
27699 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27700 int result;
27701 PyObject * obj0 = 0 ;
27702 char *kwnames[] = {
27703 (char *) "self", NULL
27704 };
27705
27706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27709 {
27710 PyThreadState* __tstate = wxPyBeginAllowThreads();
27711 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27712
27713 wxPyEndAllowThreads(__tstate);
27714 if (PyErr_Occurred()) SWIG_fail;
27715 }
27716 resultobj = SWIG_FromInt((int)result);
27717 return resultobj;
27718 fail:
27719 return NULL;
27720}
27721
27722
27723static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27724 PyObject *resultobj;
27725 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27726 bool result;
27727 PyObject * obj0 = 0 ;
27728 char *kwnames[] = {
27729 (char *) "self", NULL
27730 };
27731
27732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27735 {
27736 PyThreadState* __tstate = wxPyBeginAllowThreads();
27737 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27738
27739 wxPyEndAllowThreads(__tstate);
27740 if (PyErr_Occurred()) SWIG_fail;
27741 }
27742 {
27743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27744 }
27745 return resultobj;
27746 fail:
27747 return NULL;
27748}
27749
27750
27751static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27752 PyObject *resultobj;
27753 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27754 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27755 bool result;
27756 PyObject * obj0 = 0 ;
27757 PyObject * obj1 = 0 ;
27758 char *kwnames[] = {
27759 (char *) "self",(char *) "other", NULL
27760 };
27761
27762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27765 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27767 {
27768 PyThreadState* __tstate = wxPyBeginAllowThreads();
27769 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27770
27771 wxPyEndAllowThreads(__tstate);
27772 if (PyErr_Occurred()) SWIG_fail;
27773 }
27774 {
27775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27776 }
27777 return resultobj;
27778 fail:
27779 return NULL;
27780}
27781
27782
27783static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27784 PyObject *resultobj;
27785 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27786 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27787 bool result;
27788 PyObject * obj0 = 0 ;
27789 PyObject * obj1 = 0 ;
27790 char *kwnames[] = {
27791 (char *) "self",(char *) "other", NULL
27792 };
27793
27794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27799 {
27800 PyThreadState* __tstate = wxPyBeginAllowThreads();
27801 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27802
27803 wxPyEndAllowThreads(__tstate);
27804 if (PyErr_Occurred()) SWIG_fail;
27805 }
27806 {
27807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27808 }
27809 return resultobj;
27810 fail:
27811 return NULL;
27812}
27813
27814
27815static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27816 PyObject *resultobj;
27817 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27818 int arg2 ;
27819 PyObject * obj0 = 0 ;
27820 PyObject * obj1 = 0 ;
27821 char *kwnames[] = {
27822 (char *) "self",(char *) "w", NULL
27823 };
27824
27825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27828 arg2 = (int) SWIG_AsInt(obj1);
27829 if (PyErr_Occurred()) SWIG_fail;
27830 if (arg1) (arg1)->w = arg2;
27831
27832 Py_INCREF(Py_None); resultobj = Py_None;
27833 return resultobj;
27834 fail:
27835 return NULL;
27836}
27837
27838
27839static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27840 PyObject *resultobj;
27841 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27842 int result;
27843 PyObject * obj0 = 0 ;
27844 char *kwnames[] = {
27845 (char *) "self", NULL
27846 };
27847
27848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27851 result = (int) ((arg1)->w);
27852
27853 resultobj = SWIG_FromInt((int)result);
27854 return resultobj;
27855 fail:
27856 return NULL;
27857}
27858
27859
27860static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27861 PyObject *resultobj;
27862 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27863 int arg2 ;
27864 PyObject * obj0 = 0 ;
27865 PyObject * obj1 = 0 ;
27866 char *kwnames[] = {
27867 (char *) "self",(char *) "h", NULL
27868 };
27869
27870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27873 arg2 = (int) SWIG_AsInt(obj1);
27874 if (PyErr_Occurred()) SWIG_fail;
27875 if (arg1) (arg1)->h = arg2;
27876
27877 Py_INCREF(Py_None); resultobj = Py_None;
27878 return resultobj;
27879 fail:
27880 return NULL;
27881}
27882
27883
27884static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27885 PyObject *resultobj;
27886 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27887 int result;
27888 PyObject * obj0 = 0 ;
27889 char *kwnames[] = {
27890 (char *) "self", NULL
27891 };
27892
27893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27896 result = (int) ((arg1)->h);
27897
27898 resultobj = SWIG_FromInt((int)result);
27899 return resultobj;
27900 fail:
27901 return NULL;
27902}
27903
27904
27905static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27906 PyObject *resultobj;
27907 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27908 int arg2 ;
27909 PyObject * obj0 = 0 ;
27910 PyObject * obj1 = 0 ;
27911 char *kwnames[] = {
27912 (char *) "self",(char *) "bpp", NULL
27913 };
27914
27915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27918 arg2 = (int) SWIG_AsInt(obj1);
27919 if (PyErr_Occurred()) SWIG_fail;
27920 if (arg1) (arg1)->bpp = arg2;
27921
27922 Py_INCREF(Py_None); resultobj = Py_None;
27923 return resultobj;
27924 fail:
27925 return NULL;
27926}
27927
27928
27929static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27930 PyObject *resultobj;
27931 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27932 int result;
27933 PyObject * obj0 = 0 ;
27934 char *kwnames[] = {
27935 (char *) "self", NULL
27936 };
27937
27938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27941 result = (int) ((arg1)->bpp);
27942
27943 resultobj = SWIG_FromInt((int)result);
27944 return resultobj;
27945 fail:
27946 return NULL;
27947}
27948
27949
27950static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27951 PyObject *resultobj;
27952 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27953 int arg2 ;
27954 PyObject * obj0 = 0 ;
27955 PyObject * obj1 = 0 ;
27956 char *kwnames[] = {
27957 (char *) "self",(char *) "refresh", NULL
27958 };
27959
27960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27963 arg2 = (int) SWIG_AsInt(obj1);
27964 if (PyErr_Occurred()) SWIG_fail;
27965 if (arg1) (arg1)->refresh = arg2;
27966
27967 Py_INCREF(Py_None); resultobj = Py_None;
27968 return resultobj;
27969 fail:
27970 return NULL;
27971}
27972
27973
27974static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27975 PyObject *resultobj;
27976 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27977 int result;
27978 PyObject * obj0 = 0 ;
27979 char *kwnames[] = {
27980 (char *) "self", NULL
27981 };
27982
27983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27986 result = (int) ((arg1)->refresh);
27987
27988 resultobj = SWIG_FromInt((int)result);
27989 return resultobj;
27990 fail:
27991 return NULL;
27992}
27993
27994
27995static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27996 PyObject *obj;
27997 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27998 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27999 Py_INCREF(obj);
28000 return Py_BuildValue((char *)"");
28001}
28002static int _wrap_DefaultVideoMode_set(PyObject *_val) {
28003 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
28004 return 1;
28005}
28006
28007
28008static PyObject *_wrap_DefaultVideoMode_get() {
28009 PyObject *pyobj;
28010
28011 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
28012 return pyobj;
28013}
28014
28015
28016static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
28017 PyObject *resultobj;
28018 size_t arg1 = (size_t) 0 ;
28019 wxDisplay *result;
28020 PyObject * obj0 = 0 ;
28021 char *kwnames[] = {
28022 (char *) "index", NULL
28023 };
28024
28025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
28026 if (obj0) {
28027 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
28028 if (PyErr_Occurred()) SWIG_fail;
28029 }
28030 {
28031 PyThreadState* __tstate = wxPyBeginAllowThreads();
28032 result = (wxDisplay *)new wxDisplay(arg1);
28033
28034 wxPyEndAllowThreads(__tstate);
28035 if (PyErr_Occurred()) SWIG_fail;
28036 }
28037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
28038 return resultobj;
28039 fail:
28040 return NULL;
28041}
28042
28043
28044static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
28045 PyObject *resultobj;
28046 wxDisplay *arg1 = (wxDisplay *) 0 ;
28047 PyObject * obj0 = 0 ;
28048 char *kwnames[] = {
28049 (char *) "self", NULL
28050 };
28051
28052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
28053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28055 {
28056 PyThreadState* __tstate = wxPyBeginAllowThreads();
28057 delete arg1;
28058
28059 wxPyEndAllowThreads(__tstate);
28060 if (PyErr_Occurred()) SWIG_fail;
28061 }
28062 Py_INCREF(Py_None); resultobj = Py_None;
28063 return resultobj;
28064 fail:
28065 return NULL;
28066}
28067
28068
28069static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
28070 PyObject *resultobj;
28071 size_t result;
28072 char *kwnames[] = {
28073 NULL
28074 };
28075
28076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
28077 {
28078 PyThreadState* __tstate = wxPyBeginAllowThreads();
28079 result = (size_t)wxDisplay::GetCount();
28080
28081 wxPyEndAllowThreads(__tstate);
28082 if (PyErr_Occurred()) SWIG_fail;
28083 }
28084 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
28085 return resultobj;
28086 fail:
28087 return NULL;
28088}
28089
28090
28091static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
28092 PyObject *resultobj;
28093 wxPoint *arg1 = 0 ;
28094 int result;
28095 wxPoint temp1 ;
28096 PyObject * obj0 = 0 ;
28097 char *kwnames[] = {
28098 (char *) "pt", NULL
28099 };
28100
28101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
28102 {
28103 arg1 = &temp1;
28104 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
28105 }
28106 {
28107 PyThreadState* __tstate = wxPyBeginAllowThreads();
28108 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
28109
28110 wxPyEndAllowThreads(__tstate);
28111 if (PyErr_Occurred()) SWIG_fail;
28112 }
28113 resultobj = SWIG_FromInt((int)result);
28114 return resultobj;
28115 fail:
28116 return NULL;
28117}
28118
28119
28120static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28121 PyObject *resultobj;
28122 wxWindow *arg1 = (wxWindow *) 0 ;
28123 int result;
28124 PyObject * obj0 = 0 ;
28125 char *kwnames[] = {
28126 (char *) "window", NULL
28127 };
28128
28129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
28130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28132 {
28133 PyThreadState* __tstate = wxPyBeginAllowThreads();
28134 result = (int)Display_GetFromWindow(arg1);
28135
28136 wxPyEndAllowThreads(__tstate);
28137 if (PyErr_Occurred()) SWIG_fail;
28138 }
28139 resultobj = SWIG_FromInt((int)result);
28140 return resultobj;
28141 fail:
28142 return NULL;
28143}
28144
28145
28146static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
28147 PyObject *resultobj;
28148 wxDisplay *arg1 = (wxDisplay *) 0 ;
28149 bool result;
28150 PyObject * obj0 = 0 ;
28151 char *kwnames[] = {
28152 (char *) "self", NULL
28153 };
28154
28155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28158 {
28159 PyThreadState* __tstate = wxPyBeginAllowThreads();
28160 result = (bool)((wxDisplay const *)arg1)->IsOk();
28161
28162 wxPyEndAllowThreads(__tstate);
28163 if (PyErr_Occurred()) SWIG_fail;
28164 }
28165 {
28166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28167 }
28168 return resultobj;
28169 fail:
28170 return NULL;
28171}
28172
28173
28174static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
28175 PyObject *resultobj;
28176 wxDisplay *arg1 = (wxDisplay *) 0 ;
28177 wxRect result;
28178 PyObject * obj0 = 0 ;
28179 char *kwnames[] = {
28180 (char *) "self", NULL
28181 };
28182
28183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28186 {
28187 PyThreadState* __tstate = wxPyBeginAllowThreads();
28188 result = ((wxDisplay const *)arg1)->GetGeometry();
28189
28190 wxPyEndAllowThreads(__tstate);
28191 if (PyErr_Occurred()) SWIG_fail;
28192 }
28193 {
28194 wxRect * resultptr;
28195 resultptr = new wxRect((wxRect &) result);
28196 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28197 }
28198 return resultobj;
28199 fail:
28200 return NULL;
28201}
28202
28203
28204static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
28205 PyObject *resultobj;
28206 wxDisplay *arg1 = (wxDisplay *) 0 ;
28207 wxString result;
28208 PyObject * obj0 = 0 ;
28209 char *kwnames[] = {
28210 (char *) "self", NULL
28211 };
28212
28213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28216 {
28217 PyThreadState* __tstate = wxPyBeginAllowThreads();
28218 result = ((wxDisplay const *)arg1)->GetName();
28219
28220 wxPyEndAllowThreads(__tstate);
28221 if (PyErr_Occurred()) SWIG_fail;
28222 }
28223 {
28224#if wxUSE_UNICODE
28225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28226#else
28227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28228#endif
28229 }
28230 return resultobj;
28231 fail:
28232 return NULL;
28233}
28234
28235
28236static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
28237 PyObject *resultobj;
28238 wxDisplay *arg1 = (wxDisplay *) 0 ;
28239 bool result;
28240 PyObject * obj0 = 0 ;
28241 char *kwnames[] = {
28242 (char *) "self", NULL
28243 };
28244
28245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28248 {
28249 PyThreadState* __tstate = wxPyBeginAllowThreads();
28250 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28251
28252 wxPyEndAllowThreads(__tstate);
28253 if (PyErr_Occurred()) SWIG_fail;
28254 }
28255 {
28256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28257 }
28258 return resultobj;
28259 fail:
28260 return NULL;
28261}
28262
28263
28264static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
28265 PyObject *resultobj;
28266 wxDisplay *arg1 = (wxDisplay *) 0 ;
28267 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28268 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28269 PyObject *result;
28270 PyObject * obj0 = 0 ;
28271 PyObject * obj1 = 0 ;
28272 char *kwnames[] = {
28273 (char *) "self",(char *) "mode", NULL
28274 };
28275
28276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28279 if (obj1) {
28280 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28281 SWIG_POINTER_EXCEPTION | 0)) == -1)
28282 SWIG_fail;
28283 if (arg2 == NULL) {
28284 PyErr_SetString(PyExc_TypeError,"null reference");
28285 SWIG_fail;
28286 }
28287 }
28288 {
28289 PyThreadState* __tstate = wxPyBeginAllowThreads();
28290 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28291
28292 wxPyEndAllowThreads(__tstate);
28293 if (PyErr_Occurred()) SWIG_fail;
28294 }
28295 resultobj = result;
28296 return resultobj;
28297 fail:
28298 return NULL;
28299}
28300
28301
28302static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28303 PyObject *resultobj;
28304 wxDisplay *arg1 = (wxDisplay *) 0 ;
28305 wxVideoMode result;
28306 PyObject * obj0 = 0 ;
28307 char *kwnames[] = {
28308 (char *) "self", NULL
28309 };
28310
28311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28314 {
28315 PyThreadState* __tstate = wxPyBeginAllowThreads();
28316 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28317
28318 wxPyEndAllowThreads(__tstate);
28319 if (PyErr_Occurred()) SWIG_fail;
28320 }
28321 {
28322 wxVideoMode * resultptr;
28323 resultptr = new wxVideoMode((wxVideoMode &) result);
28324 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28325 }
28326 return resultobj;
28327 fail:
28328 return NULL;
28329}
28330
28331
28332static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28333 PyObject *resultobj;
28334 wxDisplay *arg1 = (wxDisplay *) 0 ;
28335 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28336 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28337 bool result;
28338 PyObject * obj0 = 0 ;
28339 PyObject * obj1 = 0 ;
28340 char *kwnames[] = {
28341 (char *) "self",(char *) "mode", NULL
28342 };
28343
28344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28347 if (obj1) {
28348 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28349 SWIG_POINTER_EXCEPTION | 0)) == -1)
28350 SWIG_fail;
28351 if (arg2 == NULL) {
28352 PyErr_SetString(PyExc_TypeError,"null reference");
28353 SWIG_fail;
28354 }
28355 }
28356 {
28357 PyThreadState* __tstate = wxPyBeginAllowThreads();
28358 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28359
28360 wxPyEndAllowThreads(__tstate);
28361 if (PyErr_Occurred()) SWIG_fail;
28362 }
28363 {
28364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28365 }
28366 return resultobj;
28367 fail:
28368 return NULL;
28369}
28370
28371
28372static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28373 PyObject *resultobj;
28374 wxDisplay *arg1 = (wxDisplay *) 0 ;
28375 PyObject * obj0 = 0 ;
28376 char *kwnames[] = {
28377 (char *) "self", NULL
28378 };
28379
28380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28383 {
28384 PyThreadState* __tstate = wxPyBeginAllowThreads();
28385 (arg1)->ResetMode();
28386
28387 wxPyEndAllowThreads(__tstate);
28388 if (PyErr_Occurred()) SWIG_fail;
28389 }
28390 Py_INCREF(Py_None); resultobj = Py_None;
28391 return resultobj;
28392 fail:
28393 return NULL;
28394}
28395
28396
28397static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28398 PyObject *obj;
28399 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28400 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28401 Py_INCREF(obj);
28402 return Py_BuildValue((char *)"");
28403}
28404static PyMethodDef SwigMethods[] = {
28405 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28411 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28412 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28419 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"wxIsStockID", (PyCFunction) _wrap_wxIsStockID, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"wxIsStockLabel", (PyCFunction) _wrap_wxIsStockLabel, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"wxGetStockLabel", (PyCFunction) _wrap_wxGetStockLabel, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28464 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28483 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28491 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28507 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28512 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28515 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28518 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28524 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28538 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28544 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28550 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28553 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28567 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28570 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28571 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28574 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28601 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28603 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28605 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28607 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28614 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28620 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28633 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28638 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28641 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28658 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28666 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28678 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28682 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28685 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28688 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28689 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28696 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28712 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28740 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28750 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28766 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28782 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28788 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28789 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28790 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28791 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28792 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28793 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28794 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28796 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28805 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28807 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28808 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28809 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28810 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28811 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28812 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28813 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28814 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28815 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28816 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28817 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28818 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28819 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28820 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28821 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28822 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28824 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28825 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28827 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28828 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28829 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28831 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28832 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28834 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28835 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28836 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28838 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28840 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28841 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28842 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28843 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28844 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28845 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28846 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28847 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28848 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28849 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28850 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28851 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28852 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28853 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28854 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28856 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28857 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28858 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28859 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28860 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28861 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28862 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28863 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28864 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28865 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28866 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28867 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28868 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28869 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28870 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28871 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28872 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28873 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28874 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28875 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28876 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28877 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28878 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28879 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28880 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28881 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28882 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28883 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28884 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28885 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28886 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28887 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28888 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28889 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28890 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28891 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28892 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28893 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28894 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28895 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28896 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28897 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28898 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28899 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28900 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28901 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28902 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28903 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28904 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28905 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28906 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28907 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28908 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28909 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28910 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28911 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28912 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28913 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28914 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28915 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28916 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28917 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28918 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28919 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28920 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28921 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28922 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28923 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28924 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28925 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28926 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28927 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28928 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28929 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28930 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28931 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28932 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28933 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28934 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28935 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28936 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28937 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28938 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28939 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28940 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28941 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28942 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28943 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28944 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28945 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28946 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28947 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28948 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28949 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28950 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28951 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28952 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28953 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28954 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28955 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28956 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28957 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28958 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28959 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28960 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28961 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28962 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28963 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28964 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28965 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28966 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28967 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28968 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28969 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28970 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28971 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28972 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28973 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28974 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28975 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28976 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28977 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28978 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28979 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28980 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28981 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28982 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28983 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28984 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28985 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28986 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28987 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28988 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28989 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28990 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28991 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28992 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28993 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28994 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28995 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28996 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28997 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28998 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28999 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
29000 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
29001 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
29002 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
29003 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
29004 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
29005 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
29006 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
29007 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
29008 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
29009 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
29010 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
29011 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
29012 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
29013 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
29014 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
29015 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
29016 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
29017 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
29018 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
29019 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
29020 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
29021 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
29022 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
29023 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
29024 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
29025 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
29026 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
29027 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
29028 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
29029 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
29030 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
29031 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
29032 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
29033 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
29034 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
29035 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
29036 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
29037 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
29038 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
29039 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
29040 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
29041 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
29042 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
29043 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
29044 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
29045 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
29046 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
29047 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
29048 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
29049 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
29050 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
29051 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
29052 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
29053 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
29054 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
29055 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
29056 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
29057 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
29058 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
29059 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
29060 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
29061 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
29062 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
29063 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
29064 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
29065 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
29066 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
29067 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
29068 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
29069 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
29070 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
29071 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
29072 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
29073 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
29074 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
29075 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS },
29076 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS },
29077 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS },
29078 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
29079 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
29080 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29081 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
29082 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
29083 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
29084 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
29085 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
29086 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
29087 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
29088 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
29089 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
29090 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
29091 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29092 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
29093 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
29094 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
29095 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
29096 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
29097 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
29098 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29099 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
29100 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
29101 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
29102 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
29103 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
29104 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
29105 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
29106 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
29107 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
29108 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
29109 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
29110 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
29111 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
29112 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
29113 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
29114 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
29115 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
29116 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
29117 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
29118 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
29119 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29120 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
29121 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
29122 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
29123 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
29124 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
29125 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
29126 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
29127 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
29128 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29129 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
29130 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
29131 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
29132 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29133 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29134 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29135 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29136 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
29137 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
29138 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
29139 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29140 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29141 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29142 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29143 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29144 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
29145 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
29146 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
29147 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29148 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29149 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29150 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29151 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29152 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
29153 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
29154 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
29155 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
29156 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
29157 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
29158 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
29159 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
29160 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
29161 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
29162 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
29163 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
29164 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
29165 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
29166 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS },
29167 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
29168 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29169 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29170 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
29171 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
29172 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
29173 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
29174 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
29175 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
29176 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
29177 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
29178 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
29179 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
29180 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
29181 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
29182 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
29183 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
29184 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
29185 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
29186 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
29187 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
29188 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
29189 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
29190 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
29191 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
29192 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
29193 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
29194 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
29195 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
29196 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
29197 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
29198 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
29199 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
29200 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
29201 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
29202 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
29203 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
29204 { NULL, NULL }
29205};
29206
29207
29208/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29209
29210static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29211 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29212}
29213static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29214 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29215}
29216static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29217 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29218}
29219static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29220 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29221}
29222static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29223 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29224}
29225static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29226 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29227}
29228static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29229 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29230}
29231static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29232 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29233}
29234static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29235 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29236}
29237static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29238 return (void *)((wxEvent *) ((wxPyEvent *) x));
29239}
29240static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29241 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29242}
29243static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29244 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29245}
29246static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29247 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29248}
29249static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29250 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29251}
29252static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29253 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29254}
29255static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29256 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29257}
29258static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29259 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29260}
29261static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29262 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29263}
29264static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29265 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29266}
29267static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29268 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29269}
29270static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29271 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29272}
29273static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29274 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29275}
29276static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29277 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29278}
29279static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29280 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29281}
29282static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29283 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29284}
29285static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29286 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29287}
29288static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29289 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29290}
29291static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29292 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29293}
29294static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29295 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29296}
29297static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29298 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29299}
29300static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29301 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29302}
29303static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29304 return (void *)((wxEvent *) ((wxShowEvent *) x));
29305}
29306static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29307 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29308}
29309static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29310 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29311}
29312static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29313 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29314}
29315static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29316 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29317}
29318static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29319 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29320}
29321static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29322 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29323}
29324static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29325 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29326}
29327static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29328 return (void *)((wxConfigBase *) ((wxConfig *) x));
29329}
29330static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29331 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29332}
29333static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29334 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29335}
29336static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29337 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29338}
29339static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29340 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29341}
29342static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29343 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29344}
29345static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29346 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29347}
29348static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29349 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29350}
29351static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29352 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29353}
29354static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29355 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29356}
29357static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29358 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29359}
29360static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29361 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29362}
29363static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29364 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29365}
29366static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29367 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29368}
29369static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29370 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29371}
29372static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29373 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29374}
29375static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29376 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29377}
29378static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29379 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29380}
29381static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29382 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29383}
29384static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29385 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29386}
29387static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29388 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29389}
29390static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29391 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29392}
29393static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29394 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29395}
29396static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29397 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29398}
29399static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29400 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29401}
29402static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29403 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29404}
29405static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29406 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29407}
29408static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29409 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29410}
29411static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29412 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29413}
29414static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29415 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29416}
29417static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29418 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29419}
29420static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29421 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29422}
29423static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29424 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29425}
29426static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29427 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29428}
29429static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29430 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29431}
29432static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29433 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29434}
29435static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29436 return (void *)((wxObject *) ((wxSizerItem *) x));
29437}
29438static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29439 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29440}
29441static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29442 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29443}
29444static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29445 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29446}
29447static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29448 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29449}
29450static void *_p_wxSizerTo_p_wxObject(void *x) {
29451 return (void *)((wxObject *) ((wxSizer *) x));
29452}
29453static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29454 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29455}
29456static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29457 return (void *)((wxObject *) ((wxFileHistory *) x));
29458}
29459static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29460 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29461}
29462static void *_p_wxEventTo_p_wxObject(void *x) {
29463 return (void *)((wxObject *) ((wxEvent *) x));
29464}
29465static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29466 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29467}
29468static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29469 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29470}
29471static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29472 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29473}
29474static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29475 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29476}
29477static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29478 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29479}
29480static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29481 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29482}
29483static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29484 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29485}
29486static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29487 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29488}
29489static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29490 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29491}
29492static void *_p_wxControlTo_p_wxObject(void *x) {
29493 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29494}
29495static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29496 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29497}
29498static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29499 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29500}
29501static void *_p_wxFSFileTo_p_wxObject(void *x) {
29502 return (void *)((wxObject *) ((wxFSFile *) x));
29503}
29504static void *_p_wxClipboardTo_p_wxObject(void *x) {
29505 return (void *)((wxObject *) ((wxClipboard *) x));
29506}
29507static void *_p_wxPySizerTo_p_wxObject(void *x) {
29508 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29509}
29510static void *_p_wxPyEventTo_p_wxObject(void *x) {
29511 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29512}
29513static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29514 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29515}
29516static void *_p_wxShowEventTo_p_wxObject(void *x) {
29517 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29518}
29519static void *_p_wxToolTipTo_p_wxObject(void *x) {
29520 return (void *)((wxObject *) ((wxToolTip *) x));
29521}
29522static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29523 return (void *)((wxObject *) ((wxMenuItem *) x));
29524}
29525static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29526 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29527}
29528static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29529 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29530}
29531static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29532 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29533}
29534static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29535 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29536}
29537static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29538 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29539}
29540static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29541 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29542}
29543static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29544 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29545}
29546static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29547 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29548}
29549static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29550 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29551}
29552static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29553 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29554}
29555static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29556 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29557}
29558static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29559 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29560}
29561static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29562 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29563}
29564static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29565 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29566}
29567static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29568 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29569}
29570static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29571 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29572}
29573static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29574 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29575}
29576static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29577 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29578}
29579static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29580 return (void *)((wxObject *) ((wxImageHandler *) x));
29581}
29582static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29583 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29584}
29585static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29586 return (void *)((wxObject *) ((wxEvtHandler *) x));
29587}
29588static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29589 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29590}
29591static void *_p_wxImageTo_p_wxObject(void *x) {
29592 return (void *)((wxObject *) ((wxImage *) x));
29593}
29594static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29595 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29596}
29597static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29598 return (void *)((wxObject *) ((wxSystemOptions *) x));
29599}
29600static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29601 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29602}
29603static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29604 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29605}
29606static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29607 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29608}
29609static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29610 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29611}
29612static void *_p_wxWindowTo_p_wxObject(void *x) {
29613 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29614}
29615static void *_p_wxMenuTo_p_wxObject(void *x) {
29616 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29617}
29618static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29620}
29621static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29622 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29623}
29624static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29625 return (void *)((wxObject *) ((wxFileSystem *) x));
29626}
29627static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29628 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29629}
29630static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29631 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29632}
29633static void *_p_wxPyAppTo_p_wxObject(void *x) {
29634 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29635}
29636static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29637 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29638}
29639static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29640 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29641}
29642static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29643 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29644}
29645static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29646 return (void *)((wxObject *) ((wxBusyInfo *) x));
29647}
29648static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29649 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29650}
29651static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29652 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29653}
29654static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29655 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29656}
29657static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29658 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29659}
29660static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29661 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29662}
29663static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29664 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29665}
29666static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29667 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29668}
29669static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29670 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29671}
29672static void *_p_wxValidatorTo_p_wxObject(void *x) {
29673 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29674}
29675static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29676 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29677}
29678static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29679 return (void *)((wxLog *) ((wxLogStderr *) x));
29680}
29681static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29682 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29683}
29684static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29685 return (void *)((wxLog *) ((wxLogWindow *) x));
29686}
29687static void *_p_wxLogChainTo_p_wxLog(void *x) {
29688 return (void *)((wxLog *) ((wxLogChain *) x));
29689}
29690static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29691 return (void *)((wxLog *) ((wxLogGui *) x));
29692}
29693static void *_p_wxPyLogTo_p_wxLog(void *x) {
29694 return (void *)((wxLog *) ((wxPyLog *) x));
29695}
29696static void *_p_wxControlTo_p_wxWindow(void *x) {
29697 return (void *)((wxWindow *) ((wxControl *) x));
29698}
29699static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29700 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29701}
29702static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29703 return (void *)((wxWindow *) ((wxMenuBar *) x));
29704}
29705static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29706 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29707}
29708static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29709 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29710}
29711static 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}};
29712static 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}};
29713static 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}};
29714static 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}};
29715static 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}};
29716static 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}};
29717static 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}};
29718static 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}};
29719static 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}};
29720static 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}};
29721static 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}};
29722static 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}};
29723static 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}};
29724static 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}};
29725static 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}};
29726static 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}};
29727static 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}};
29728static 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}};
29729static 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}};
29730static 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}};
29731static 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}};
29732static 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}};
29733static 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}};
29734static 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}};
29735static 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}};
29736static 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}};
29737static 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}};
29738static 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}};
29739static 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}};
29740static 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}};
29741static 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}};
29742static 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}};
29743static 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}};
29744static 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}};
29745static 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}};
29746static 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}};
29747static 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}};
29748static 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}};
29749static 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}};
29750static 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}};
29751static 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}};
29752static 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}};
29753static 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}};
29754static 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}};
29755static 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}};
29756static 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}};
29757static 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}};
29758static 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}};
29759static 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}};
29760static 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}};
29761static 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}};
29762static 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}};
29763static 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}};
29764static 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}};
29765static 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}};
29766static 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}};
29767static 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}};
29768static 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}};
29769static 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}};
29770static 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}};
29771static 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}};
29772static 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}};
29773static 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}};
29774static 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}};
29775static 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}};
29776static 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}};
29777static 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}};
29778static 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}};
29779static 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}};
29780static 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}};
29781static 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}};
29782static 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}};
29783static 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}};
29784static 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}};
29785static 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}};
29786static 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}};
29787static 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}};
29788static 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}};
29789static 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}};
29790static 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}};
29791static 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}};
29792static 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}};
29793static 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}};
29794static 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}};
29795static 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}};
29796static 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}};
29797
29798static swig_type_info *swig_types_initial[] = {
29799_swigt__p_wxLogChain,
29800_swigt__p_wxMutexGuiLocker,
29801_swigt__p_wxMetafile,
29802_swigt__p_wxFileHistory,
29803_swigt__p_wxLog,
29804_swigt__p_wxDateTime__TimeZone,
29805_swigt__p_wxMenu,
29806_swigt__p_wxEvent,
29807_swigt__p_wxConfigBase,
29808_swigt__p_wxDisplay,
29809_swigt__p_wxFileType,
29810_swigt__p_wxLogGui,
29811_swigt__p_wxFont,
29812_swigt__p_wxDataFormat,
29813_swigt__p_wxTimerEvent,
29814_swigt__p_wxCaret,
29815_swigt__p_int,
29816_swigt__p_wxSize,
29817_swigt__p_wxClipboard,
29818_swigt__p_wxStopWatch,
29819_swigt__p_wxDC,
29820_swigt__p_wxClipboardLocker,
29821_swigt__p_wxIcon,
29822_swigt__p_wxLogStderr,
29823_swigt__p_wxLogTextCtrl,
29824_swigt__p_wxTextCtrl,
29825_swigt__p_wxBusyCursor,
29826_swigt__p_wxPyBitmapDataObject,
29827_swigt__p_wxPyTextDataObject,
29828_swigt__p_wxBitmapDataObject,
29829_swigt__p_wxTextDataObject,
29830_swigt__p_wxDataObject,
29831_swigt__p_wxFileDataObject,
29832_swigt__p_wxCustomDataObject,
29833_swigt__p_wxURLDataObject,
29834_swigt__p_wxMetafileDataObject,
29835_swigt__p_wxSound,
29836_swigt__p_wxTimerRunner,
29837_swigt__p_wxLogWindow,
29838_swigt__p_wxTimeSpan,
29839_swigt__p_wxArrayString,
29840_swigt__p_wxWindowDisabler,
29841_swigt__p_wxToolTip,
29842_swigt__p_wxDataObjectComposite,
29843_swigt__p_wxFileConfig,
29844_swigt__p_wxSystemSettings,
29845_swigt__p_wxVideoMode,
29846_swigt__p_wxPyDataObjectSimple,
29847_swigt__p_wxDataObjectSimple,
29848_swigt__p_wxEvtHandler,
29849_swigt__p_wxRect,
29850_swigt__p_char,
29851_swigt__p_wxSingleInstanceChecker,
29852_swigt__p_wxFileTypeInfo,
29853_swigt__p_wxFrame,
29854_swigt__p_wxTimer,
29855_swigt__p_wxMimeTypesManager,
29856_swigt__p_wxPyArtProvider,
29857_swigt__p_wxPyTipProvider,
29858_swigt__p_wxTipProvider,
29859_swigt__p_wxJoystick,
29860_swigt__p_wxSystemOptions,
29861_swigt__p_wxPoint,
29862_swigt__p_wxJoystickEvent,
29863_swigt__p_wxCursor,
29864_swigt__p_wxObject,
29865_swigt__p_wxOutputStream,
29866_swigt__p_wxDateTime,
29867_swigt__p_wxPyDropSource,
29868_swigt__p_wxWindow,
29869_swigt__p_wxString,
29870_swigt__p_wxPyProcess,
29871_swigt__p_wxBitmap,
29872_swigt__p_wxConfig,
29873_swigt__p_wxChar,
29874_swigt__p_wxBusyInfo,
29875_swigt__p_wxPyDropTarget,
29876_swigt__p_wxPyTextDropTarget,
29877_swigt__p_wxPyFileDropTarget,
29878_swigt__p_wxProcessEvent,
29879_swigt__p_wxPyLog,
29880_swigt__p_wxLogNull,
29881_swigt__p_wxColour,
29882_swigt__p_wxConfigPathChanger,
29883_swigt__p_wxPyTimer,
29884_swigt__p_wxDateSpan,
298850
29886};
29887
29888
29889/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29890
29891static swig_const_info swig_const_table[] = {
29892{ SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29893{ SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29894{ SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29895{ SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29896{ SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29897{0}};
29898
29899#ifdef __cplusplus
29900}
29901#endif
29902
29903#ifdef __cplusplus
29904extern "C"
29905#endif
29906SWIGEXPORT(void) SWIG_init(void) {
29907 static PyObject *SWIG_globals = 0;
29908 static int typeinit = 0;
29909 PyObject *m, *d;
29910 int i;
29911 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29912 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29913 d = PyModule_GetDict(m);
29914
29915 if (!typeinit) {
29916 for (i = 0; swig_types_initial[i]; i++) {
29917 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29918 }
29919 typeinit = 1;
29920 }
29921 SWIG_InstallConstants(d,swig_const_table);
29922
29923 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29924 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29925 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29926 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29927 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29928 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29929 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29930 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29931 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29932 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29933 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29934 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29935 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29936 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29937 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29938 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29939 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29940 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29941 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29942 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29943 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29944 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29945 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29946 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29947 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29948 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29949 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29950 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29951 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29952 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29953 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29954 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29955 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29956 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29957 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29958 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29959 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29960 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29961 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29962 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29963 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29964 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29965 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29966 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29967 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29968 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29969 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29970 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29971 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29972 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29973 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29974 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29975 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29976 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29977 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29978 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29979 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29980 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29981 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29982 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29983 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29984 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29985 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29986 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29987 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29988 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29989 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29990 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29991 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29992 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29993 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29994 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29995 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29996 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29997 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29998 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29999 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
30000 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
30001 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
30002 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
30003 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
30004 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
30005 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
30006 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
30007 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
30008 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
30009 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
30010 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
30011 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
30012 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
30013 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
30014 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
30015 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
30016 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
30017 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
30018 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
30019 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
30020 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
30021 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
30022 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
30023
30024 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
30025
30026 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
30027 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
30028 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
30029 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
30030 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
30031 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
30032 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
30033 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
30034 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
30035 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
30036 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
30037 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
30038 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
30039 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
30040 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
30041 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
30042 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
30043 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
30044 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
30045 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
30046 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
30047 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
30048 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
30049 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
30050 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
30051 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
30052 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
30053 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
30054 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
30055 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
30056 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
30057 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
30058 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
30059 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
30060 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
30061 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
30062 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
30063 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
30064 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
30065 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
30066 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
30067 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
30068 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
30069 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
30070 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
30071 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
30072 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
30073 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
30074 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
30075 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
30076
30077 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
30078
30079 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
30080 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
30081 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
30082 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
30083 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
30084 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
30085 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
30086 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
30087 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
30088 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
30089 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
30090 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
30091 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
30092 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
30093 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
30094 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
30095 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
30096 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
30097 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
30098 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
30099 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
30100 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
30101 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
30102 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
30103 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
30104 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
30105 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
30106 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
30107 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
30108 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
30109 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
30110 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
30111 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
30112 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
30113 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
30114 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
30115 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
30116 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
30117 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
30118 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
30119 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
30120 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
30121 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
30122 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
30123 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
30124 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
30125 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
30126 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
30127 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
30128 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
30129 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
30130 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
30131 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
30132 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
30133 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
30134 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
30135 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
30136 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
30137 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
30138
30139 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30140
30141 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
30142 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
30143 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
30144 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30145 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
30146 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
30147 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
30148 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
30149 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
30150 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30151 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
30152 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
30153 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
30154 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
30155 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
30156 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
30157 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
30158 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
30159 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
30160 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
30161 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
30162 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
30163 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
30164 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
30165 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
30166 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
30167 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
30168 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
30169 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
30170 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
30171 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
30172 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
30173 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
30174 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
30175 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
30176 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
30177 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
30178 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
30179 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
30180 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
30181 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
30182 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
30183 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
30184 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
30185 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
30186 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
30187 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
30188 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
30189 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
30190 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
30191 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
30192 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
30193 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
30194 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
30195 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
30196 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
30197 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
30198 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
30199 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
30200 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
30201 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
30202 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
30203 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
30204 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
30205 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
30206 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
30207 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
30208 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
30209 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
30210 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
30211 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
30212 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
30213 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
30214 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
30215 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
30216 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
30217 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
30218 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
30219 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
30220 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
30221 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
30222 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
30223 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
30224 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
30225 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
30226 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
30227 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
30228 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
30229 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
30230 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
30231 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
30232 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
30233 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
30234 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
30235 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
30236 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
30237 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
30238 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
30239 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
30240 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
30241 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
30242 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
30243 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
30244 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
30245 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
30246 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
30247 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
30248 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
30249 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
30250 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
30251 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
30252 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
30253 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
30254 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
30255 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
30256 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
30257 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
30258 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
30259 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
30260 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
30261 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
30262 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
30263 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
30264 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
30265 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
30266 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
30267 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
30268 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
30269 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
30270 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
30271 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
30272 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
30273 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
30274 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
30275 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
30276 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
30277 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
30278 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
30279 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
30280 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
30281 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
30282 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
30283 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
30284 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
30285 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
30286 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
30287 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
30288 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
30289 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
30290 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
30291 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
30292 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
30293 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
30294 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
30295 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
30296 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
30297 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
30298 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
30299 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
30300 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
30301 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
30302 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
30303 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
30304 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
30305 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
30306 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
30307 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30308 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
30309 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
30310 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
30311 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
30312 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
30313 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
30314 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
30315 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
30316 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
30317 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
30318 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
30319 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
30320 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
30321 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
30322 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
30323 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
30324 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
30325 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
30326 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
30327 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
30328 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30329 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
30330 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
30331 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
30332 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
30333 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
30334 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
30335 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
30336 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
30337 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
30338 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
30339 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30340 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30341
30342 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30343 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30344 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30345 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30346
30347 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30348}
30349