]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_misc_wrap.cpp
Allow for Cmd-click on wxMac
[wxWidgets.git] / wxPython / src / mac / _misc_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
82#else
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
85#endif
86
87#ifdef SWIG_GLOBAL
88# define SWIGRUNTIME(a) SWIGEXPORT(a)
89#else
90# define SWIGRUNTIME(a) static a
91#endif
92
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122#ifdef __cplusplus
123}
124#endif
125
126/***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136#include "Python.h"
137
138#ifdef __cplusplus
139extern "C" {
140#endif
141
142#define SWIG_PY_INT 1
143#define SWIG_PY_FLOAT 2
144#define SWIG_PY_STRING 3
145#define SWIG_PY_POINTER 4
146#define SWIG_PY_BINARY 5
147
148/* Flags for pointer conversion */
149
150#define SWIG_POINTER_EXCEPTION 0x1
151#define SWIG_POINTER_DISOWN 0x2
152
153/* Exception handling in wrappers */
154#define SWIG_fail goto fail
155
156/* Constant information structure */
157typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164} swig_const_info;
165
166/* Common SWIG API */
167#define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169#define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171#define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174/* Python-specific SWIG API */
175#define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177#define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181#define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183#define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198/* Contract support */
199
200#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202#ifdef __cplusplus
203}
204#endif
205
206
207/* -------- TYPES TABLE (BEGIN) -------- */
208
209#define SWIGTYPE_p_wxLogChain swig_types[0]
210#define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211#define SWIGTYPE_p_wxMetafile swig_types[2]
212#define SWIGTYPE_p_wxFileHistory swig_types[3]
213#define SWIGTYPE_p_wxLog swig_types[4]
214#define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
215#define SWIGTYPE_p_wxMenu swig_types[6]
216#define SWIGTYPE_p_wxEvent swig_types[7]
217#define SWIGTYPE_p_wxConfigBase swig_types[8]
218#define SWIGTYPE_p_wxDisplay swig_types[9]
219#define SWIGTYPE_p_wxFileType swig_types[10]
220#define SWIGTYPE_p_wxLogGui swig_types[11]
221#define SWIGTYPE_p_wxFont swig_types[12]
222#define SWIGTYPE_p_wxDataFormat swig_types[13]
223#define SWIGTYPE_p_wxTimerEvent swig_types[14]
224#define SWIGTYPE_p_wxCaret swig_types[15]
225#define SWIGTYPE_p_int swig_types[16]
226#define SWIGTYPE_p_wxSize swig_types[17]
227#define SWIGTYPE_p_wxClipboard swig_types[18]
228#define SWIGTYPE_p_wxStopWatch swig_types[19]
229#define SWIGTYPE_p_wxDC swig_types[20]
230#define SWIGTYPE_p_wxClipboardLocker swig_types[21]
231#define SWIGTYPE_p_wxIcon swig_types[22]
232#define SWIGTYPE_p_wxLogStderr swig_types[23]
233#define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
234#define SWIGTYPE_p_wxTextCtrl swig_types[25]
235#define SWIGTYPE_p_wxBusyCursor swig_types[26]
0346c964
RD
236#define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
237#define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
238#define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
239#define SWIGTYPE_p_wxTextDataObject swig_types[30]
240#define SWIGTYPE_p_wxDataObject swig_types[31]
d55e5bfc
RD
241#define SWIGTYPE_p_wxFileDataObject swig_types[32]
242#define SWIGTYPE_p_wxCustomDataObject swig_types[33]
243#define SWIGTYPE_p_wxURLDataObject swig_types[34]
244#define SWIGTYPE_p_wxMetafileDataObject swig_types[35]
245#define SWIGTYPE_p_wxSound swig_types[36]
246#define SWIGTYPE_p_wxTimerRunner swig_types[37]
247#define SWIGTYPE_p_wxLogWindow swig_types[38]
248#define SWIGTYPE_p_wxTimeSpan swig_types[39]
249#define SWIGTYPE_p_wxArrayString swig_types[40]
250#define SWIGTYPE_p_wxWindowDisabler swig_types[41]
251#define SWIGTYPE_p_wxToolTip swig_types[42]
252#define SWIGTYPE_p_wxDataObjectComposite swig_types[43]
253#define SWIGTYPE_p_wxFileConfig swig_types[44]
254#define SWIGTYPE_p_wxSystemSettings swig_types[45]
255#define SWIGTYPE_p_wxVideoMode swig_types[46]
256#define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47]
257#define SWIGTYPE_p_wxDataObjectSimple swig_types[48]
258#define SWIGTYPE_p_wxEvtHandler swig_types[49]
259#define SWIGTYPE_p_wxRect swig_types[50]
260#define SWIGTYPE_p_char swig_types[51]
261#define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52]
262#define SWIGTYPE_p_wxFileTypeInfo swig_types[53]
263#define SWIGTYPE_p_wxFrame swig_types[54]
264#define SWIGTYPE_p_wxTimer swig_types[55]
265#define SWIGTYPE_p_wxMimeTypesManager swig_types[56]
266#define SWIGTYPE_p_wxPyArtProvider swig_types[57]
267#define SWIGTYPE_p_wxPyTipProvider swig_types[58]
268#define SWIGTYPE_p_wxTipProvider swig_types[59]
269#define SWIGTYPE_p_wxJoystick swig_types[60]
270#define SWIGTYPE_p_wxSystemOptions swig_types[61]
271#define SWIGTYPE_p_wxPoint swig_types[62]
272#define SWIGTYPE_p_wxJoystickEvent swig_types[63]
273#define SWIGTYPE_p_wxCursor swig_types[64]
274#define SWIGTYPE_p_wxObject swig_types[65]
275#define SWIGTYPE_p_wxOutputStream swig_types[66]
276#define SWIGTYPE_p_wxDateTime swig_types[67]
277#define SWIGTYPE_p_wxPyDropSource swig_types[68]
278#define SWIGTYPE_p_wxWindow swig_types[69]
279#define SWIGTYPE_p_wxString swig_types[70]
280#define SWIGTYPE_p_wxPyProcess swig_types[71]
281#define SWIGTYPE_p_wxBitmap swig_types[72]
282#define SWIGTYPE_p_wxConfig swig_types[73]
283#define SWIGTYPE_p_wxChar swig_types[74]
284#define SWIGTYPE_p_wxBusyInfo swig_types[75]
285#define SWIGTYPE_p_wxPyDropTarget swig_types[76]
286#define SWIGTYPE_p_wxPyTextDropTarget swig_types[77]
287#define SWIGTYPE_p_wxPyFileDropTarget swig_types[78]
288#define SWIGTYPE_p_wxProcessEvent swig_types[79]
289#define SWIGTYPE_p_wxPyLog swig_types[80]
290#define SWIGTYPE_p_wxLogNull swig_types[81]
291#define SWIGTYPE_p_wxColour swig_types[82]
0346c964
RD
292#define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
293#define SWIGTYPE_p_wxPyTimer swig_types[84]
294#define SWIGTYPE_p_wxDateSpan swig_types[85]
295static swig_type_info *swig_types[87];
d55e5bfc
RD
296
297/* -------- TYPES TABLE (END) -------- */
298
299
300/*-----------------------------------------------
301 @(target):= _misc_.so
302 ------------------------------------------------*/
303#define SWIG_init init_misc_
304
305#define SWIG_name "_misc_"
306
307/* Auxiliar swig macros */
308
309#ifdef __cplusplus
310#define SWIGSTATICINLINE(a) static inline a
311#define SWIGSTATIC(a) static a
312#define swig_new_array(type, size) (new type[(size)])
313#define swig_delete_array(cptr) delete[] cptr
314#define swig_const_cast(type,a) const_cast<type>(a)
315#define swig_static_cast(type,a) static_cast<type>(a)
316#define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
317
318#ifdef HAVE_NUMERIC_CAST
319#define swig_numeric_cast(type,a) numeric_cast<type>(a)
320#else
321#define swig_numeric_cast(type,a) static_cast<type>(a)
322#endif
323
324#else /* C case */
325
326#define SWIGSTATICINLINE(a) static a
327#define SWIGSTATIC(a) static a
328#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
329#define swig_delete_array(cptr) free((char*)cptr)
330#define swig_const_cast(type,a) (type)(a)
331#define swig_static_cast(type,a) (type)(a)
332#define swig_reinterpret_cast(type,a) (type)(a)
333#define swig_numeric_cast(type,a) (type)(a)
334
335#endif /* __cplusplus */
336
337
338#define SWIG_FromSignedChar PyInt_FromLong
339#define SWIG_FromUnsignedChar PyInt_FromLong
340#define SWIG_FromShort PyInt_FromLong
341#define SWIG_FromUnsignedShort PyInt_FromLong
342#define SWIG_FromInt PyInt_FromLong
343#define SWIG_FromLong PyInt_FromLong
344#define SWIG_FromFloat PyFloat_FromDouble
345#define SWIG_FromDouble PyFloat_FromDouble
346#define SWIG_FromFloat PyFloat_FromDouble
347#define SWIG_FromDouble PyFloat_FromDouble
348
349
350#include "wx/wxPython/wxPython.h"
351#include "wx/wxPython/pyclasses.h"
0439c23b 352#include "wx/wxPython/pyistream.h"
d55e5bfc
RD
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 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
426 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
427 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
428
429SWIGSTATICINLINE(int)
430SWIG_CheckLong(PyObject* obj)
431{
432 SWIG_AsLong(obj);
433 if (PyErr_Occurred()) {
434 PyErr_Clear();
435 return 0;
436 } else {
437 return 1;
438 }
439}
440
441
442SWIGSTATICINLINE(bool)
443SWIG_AsBool(PyObject *obj)
444{
445 return PyObject_IsTrue(obj) ? true : false;
446}
447
448
449SWIGSTATICINLINE(int)
450SWIG_CheckBool(PyObject* obj)
451{
452 SWIG_AsBool(obj);
453 if (PyErr_Occurred()) {
454 PyErr_Clear();
455 return 0;
456 } else {
457 return 1;
458 }
459}
460
461
462static PyObject* t_output_helper(PyObject* target, PyObject* o) {
463 PyObject* o2;
464 PyObject* o3;
465
466 if (!target) {
467 target = o;
468 } else if (target == Py_None) {
469 Py_DECREF(Py_None);
470 target = o;
471 } else {
472 if (!PyTuple_Check(target)) {
473 o2 = target;
474 target = PyTuple_New(1);
475 PyTuple_SetItem(target, 0, o2);
476 }
477 o3 = PyTuple_New(1);
478 PyTuple_SetItem(o3, 0, o);
479
480 o2 = target;
481 target = PySequence_Concat(o2, o3);
482 Py_DECREF(o2);
483 Py_DECREF(o3);
484 }
485 return target;
486}
487
488
489SWIGSTATICINLINE(unsigned long)
490SWIG_AsUnsignedLong(PyObject * obj)
491{
492 if (PyLong_Check(obj)) {
493 return PyLong_AsUnsignedLong(obj);
494 } else {
495 long i = SWIG_AsLong(obj);
496 if ( !PyErr_Occurred() && (i < 0)) {
497 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
498 }
499 return i;
500 }
501}
502
503
504SWIGSTATICINLINE(int)
505SWIG_CheckUnsignedLong(PyObject* obj)
506{
507 SWIG_AsUnsignedLong(obj);
508 if (PyErr_Occurred()) {
509 PyErr_Clear();
510 return 0;
511 } else {
512 return 1;
513 }
514}
515
516
517SWIGSTATICINLINE(PyObject* )
518SWIG_FromUnsignedLong(unsigned long value)
519{
520 return (value > LONG_MAX) ?
521 PyLong_FromUnsignedLong(value)
522 : PyInt_FromLong(swig_numeric_cast(long,value));
523}
524
525
526 bool wxThread_IsMain() {
527#ifdef WXP_WITH_THREAD
528 return wxThread::IsMain();
529#else
530 return True;
531#endif
532 }
533
534
535 int wxCaret_GetBlinkTime() {
536 return wxCaret::GetBlinkTime();
537 }
538
539 void wxCaret_SetBlinkTime(int milliseconds) {
540 wxCaret::SetBlinkTime(milliseconds);
541 }
542
543
544#include <wx/snglinst.h>
545
546
547#ifdef __WXMSW__
548#include <wx/msw/private.h>
549#include <wx/dynload.h>
550#endif
551
552
553
554void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
555{
556#ifdef __WXMSW__
557
558 switch (method)
559 {
560 case 1:
561 // This one only partially works. Appears to be an undocumented
562 // "standard" convention that not all widgets adhear to. For
563 // example, for some widgets backgrounds or non-client areas may
564 // not be painted.
565 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
566 break;
567
568 case 2:
569 // This one works much better, except for on XP. On Win2k nearly
570 // all widgets and their children are captured correctly[**]. On
571 // XP with Themes activated most native widgets draw only
572 // partially, if at all. Without themes it works just like on
573 // Win2k.
574 //
575 // ** For example the radio buttons in a wxRadioBox are not its
576 // children by default, but you can capture it via the panel
577 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
578 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
579 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
580 PRF_ERASEBKGND | PRF_OWNED );
581 break;
582
583 case 3:
584 // This one is only defined in the latest SDK and is only
585 // available on XP. MSDN says it is similar to sending WM_PRINT
586 // so I expect that it will work similar to the above. Since it
587 // is avaialble only on XP, it can't be compiled like this and
588 // will have to be loaded dynamically.
589 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
590
591 // fall through
592
593 case 4:
594 // Use PrintWindow if available, or fallback to WM_PRINT
595 // otherwise. Unfortunately using PrintWindow is even worse than
596 // WM_PRINT. For most native widgets nothing is drawn to the dc
597 // at all, with or without Themes.
598 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
599 static bool s_triedToLoad = False;
600 static PrintWindow_t pfnPrintWindow = NULL;
601 if ( !s_triedToLoad )
602 {
603
604 s_triedToLoad = True;
605 wxDynamicLibrary dllUser32(_T("user32.dll"));
606 if ( dllUser32.IsLoaded() )
607 {
608 wxLogNull nolog; // Don't report errors here
609 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
610 }
611 }
612 if (pfnPrintWindow)
613 {
614 printf("Using PrintWindow\n");
615 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
616 }
617 else
618 {
619 printf("Using WM_PRINT\n");
620 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
621 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
622 }
623 }
624#endif
625}
626
627
628
629#include <wx/tipdlg.h>
630
631
632class wxPyTipProvider : public wxTipProvider {
633public:
634 wxPyTipProvider(size_t currentTip)
635 : wxTipProvider(currentTip) {}
636
637 DEC_PYCALLBACK_STRING__pure(GetTip);
638 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
639 PYPRIVATE;
640};
641
642IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
643IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
644
645
646//IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
647
1a6bba1e
RD
648IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
649
d55e5bfc
RD
650void wxPyTimer::Notify() {
651 bool found;
652 bool blocked = wxPyBeginBlockThreads();
653 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
654 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
655 wxPyEndBlockThreads(blocked);
656 if (! found)
657 wxTimer::Notify();
658}
659void wxPyTimer::base_Notify() {
660 wxTimer::Notify();
661}
662
663
664
665SWIGSTATICINLINE(PyObject *)
666SWIG_FromCharPtr(const char* cptr)
667{
668 size_t size = cptr ? strlen(cptr) : 0;
669 if (cptr) {
670 if (size > INT_MAX) {
671 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
672 SWIG_TypeQuery("char *"), 0);
673 } else {
674 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
675 }
676 } else {
677 Py_INCREF(Py_None);
678 return Py_None;
679 }
680}
681
682
683SWIGSTATICINLINE(unsigned long)
684SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
685 unsigned long max_value)
686{
687 if (!PyErr_Occurred()) {
688 if (value > max_value) {
689 PyObject *err =
690 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
691 value, type, max_value);
692 PyErr_SetObject(PyExc_OverflowError, err);
693 Py_DECREF(err);
694 }
695 }
696 return value;
697}
698
699
700#if UINT_MAX != ULONG_MAX
701SWIGSTATICINLINE(unsigned int)
702SWIG_AsUnsignedInt(PyObject *obj)
703{
704 return swig_numeric_cast(unsigned int,
705 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
706 "unsigned int", UINT_MAX));
707}
708#else
709#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
710#endif
711
712
713SWIGSTATICINLINE(int)
714SWIG_CheckUnsignedInt(PyObject* obj)
715{
716 SWIG_AsUnsignedInt(obj);
717 if (PyErr_Occurred()) {
718 PyErr_Clear();
719 return 0;
720 } else {
721 return 1;
722 }
723}
724
725wxString Log_TimeStamp(){
726 wxString msg;
727 wxLog::TimeStamp(&msg);
728 return msg;
729 }
730void wxLog_Destroy(wxLog *self){ delete self; }
731
732// A wxLog class that can be derived from in wxPython
733class wxPyLog : public wxLog {
734public:
735 wxPyLog() : wxLog() {}
736
737 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
738 bool found;
739 bool blocked = wxPyBeginBlockThreads();
740 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
741 PyObject* s = wx2PyString(szString);
742 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
743 Py_DECREF(s);
744 }
745 wxPyEndBlockThreads(blocked);
746 if (! found)
747 wxLog::DoLog(level, szString, t);
748 }
749
750 virtual void DoLogString(const wxChar *szString, time_t t) {
751 bool found;
752 bool blocked = wxPyBeginBlockThreads();
753 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
754 PyObject* s = wx2PyString(szString);
755 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
756 Py_DECREF(s);
757 }
758 wxPyEndBlockThreads(blocked);
759 if (! found)
760 wxLog::DoLogString(szString, t);
761 }
762
763 PYPRIVATE;
764};
765
766
767
768
769IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
770
771
772#include <wx/joystick.h>
773
774
775#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
776// A C++ stub class for wxJoystick for platforms that don't have it.
777class wxJoystick : public wxObject {
778public:
779 wxJoystick(int joystick = wxJOYSTICK1) {
780 bool blocked = wxPyBeginBlockThreads();
781 PyErr_SetString(PyExc_NotImplementedError,
782 "wxJoystick is not available on this platform.");
783 wxPyEndBlockThreads(blocked);
784 }
785 wxPoint GetPosition() { return wxPoint(-1,-1); }
786 int GetZPosition() { return -1; }
787 int GetButtonState() { return -1; }
788 int GetPOVPosition() { return -1; }
789 int GetPOVCTSPosition() { return -1; }
790 int GetRudderPosition() { return -1; }
791 int GetUPosition() { return -1; }
792 int GetVPosition() { return -1; }
793 int GetMovementThreshold() { return -1; }
794 void SetMovementThreshold(int threshold) {}
795
796 bool IsOk(void) { return False; }
797 int GetNumberJoysticks() { return -1; }
798 int GetManufacturerId() { return -1; }
799 int GetProductId() { return -1; }
15817c7e 800 wxString GetProductName() { return wxEmptyString; }
d55e5bfc
RD
801 int GetXMin() { return -1; }
802 int GetYMin() { return -1; }
803 int GetZMin() { return -1; }
804 int GetXMax() { return -1; }
805 int GetYMax() { return -1; }
806 int GetZMax() { return -1; }
807 int GetNumberButtons() { return -1; }
808 int GetNumberAxes() { return -1; }
809 int GetMaxButtons() { return -1; }
810 int GetMaxAxes() { return -1; }
811 int GetPollingMin() { return -1; }
812 int GetPollingMax() { return -1; }
813 int GetRudderMin() { return -1; }
814 int GetRudderMax() { return -1; }
815 int GetUMin() { return -1; }
816 int GetUMax() { return -1; }
817 int GetVMin() { return -1; }
818 int GetVMax() { return -1; }
819
820 bool HasRudder() { return False; }
821 bool HasZ() { return False; }
822 bool HasU() { return False; }
823 bool HasV() { return False; }
824 bool HasPOV() { return False; }
825 bool HasPOV4Dir() { return False; }
826 bool HasPOVCTS() { return False; }
827
828 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
829 bool ReleaseCapture() { return False; }
830};
831#endif
832
833
834#include <wx/sound.h>
835
836
837#if !wxUSE_SOUND
838// A C++ stub class for wxWave for platforms that don't have it.
839class wxSound : public wxObject
840{
841public:
842 wxSound() {
843 bool blocked = wxPyBeginBlockThreads();
844 PyErr_SetString(PyExc_NotImplementedError,
845 "wxSound is not available on this platform.");
846 wxPyEndBlockThreads(blocked);
847 }
0346c964 848 wxSound(const wxString&/*, bool*/) {
d55e5bfc
RD
849 bool blocked = wxPyBeginBlockThreads();
850 PyErr_SetString(PyExc_NotImplementedError,
851 "wxSound is not available on this platform.");
852 wxPyEndBlockThreads(blocked);
853 }
854 wxSound(int, const wxByte*) {
855 bool blocked = wxPyBeginBlockThreads();
856 PyErr_SetString(PyExc_NotImplementedError,
857 "wxSound is not available on this platform.");
858 wxPyEndBlockThreads(blocked);
859 }
860
861 ~wxSound() {};
862
0346c964 863 bool Create(const wxString&/*, bool*/) { return false; }
d55e5bfc
RD
864 bool Create(int, const wxByte*) { return false; };
865 bool IsOk() { return false; };
866 bool Play(unsigned) const { return false; }
867 static bool Play(const wxString&, unsigned) { return false; }
868 static void Stop() {}
869};
870
871#endif
872
0346c964
RD
873wxSound *new_wxSound(wxString const &fileName){
874 if (fileName.Length() == 0)
875 return new wxSound;
876 else
877 return new wxSound(fileName);
878 }
879wxSound *new_wxSound(PyObject *data){
880 unsigned char* buffer; int size;
881 wxSound *sound = NULL;
882
d55e5bfc 883 bool blocked = wxPyBeginBlockThreads();
0346c964
RD
884 if (!PyArg_Parse(data, "t#", &buffer, &size))
885 goto done;
886 sound = new wxSound(size, buffer);
887 done:
d55e5bfc 888 wxPyEndBlockThreads(blocked);
0346c964
RD
889 return sound;
890 }
891bool wxSound_CreateFromData(wxSound *self,PyObject *data){
892 #ifndef __WXMAC__
893 unsigned char* buffer;
894 int size;
895 bool rv = False;
896
897 bool blocked = wxPyBeginBlockThreads();
898 if (!PyArg_Parse(data, "t#", &buffer, &size))
899 goto done;
900 rv = self->Create(size, buffer);
901 done:
902 wxPyEndBlockThreads(blocked);
903 return rv;
904 #else
905 bool blocked = wxPyBeginBlockThreads();
906 PyErr_SetString(PyExc_NotImplementedError,
907 "Create from data is not available on this platform.");
908 wxPyEndBlockThreads(blocked);
909 return False;
910 #endif
d55e5bfc
RD
911 }
912void Sound_Stop(){ wxPyRaiseNotImplemented(); }
913
914#include <wx/mimetype.h>
915
916PyObject *wxFileType_GetMimeType(wxFileType *self){
917 wxString str;
918 if (self->GetMimeType(&str))
919 return wx2PyString(str);
920 else
921 RETURN_NONE();
922 }
923PyObject *wxFileType_GetMimeTypes(wxFileType *self){
924 wxArrayString arr;
925 if (self->GetMimeTypes(arr))
926 return wxArrayString2PyList_helper(arr);
927 else
928 RETURN_NONE();
929 }
930PyObject *wxFileType_GetExtensions(wxFileType *self){
931 wxArrayString arr;
932 if (self->GetExtensions(arr))
933 return wxArrayString2PyList_helper(arr);
934 else
935 RETURN_NONE();
936 }
937wxIcon *wxFileType_GetIcon(wxFileType *self){
938 wxIconLocation loc;
939 if (self->GetIcon(&loc))
940 return new wxIcon(loc);
941 else
942 return NULL;
943 }
944PyObject *wxFileType_GetIconInfo(wxFileType *self){
945 wxIconLocation loc;
946 if (self->GetIcon(&loc)) {
947 wxString iconFile = loc.GetFileName();
948 int iconIndex = -1;
949
950
951
952 // Make a tuple and put the values in it
953 bool blocked = wxPyBeginBlockThreads();
954 PyObject* tuple = PyTuple_New(3);
955 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
956 wxT("wxIcon"), True));
957 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
958 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
959 wxPyEndBlockThreads(blocked);
960 return tuple;
961 }
962 else
963 RETURN_NONE();
964 }
965PyObject *wxFileType_GetDescription(wxFileType *self){
966 wxString str;
967 if (self->GetDescription(&str))
968 return wx2PyString(str);
969 else
970 RETURN_NONE();
971 }
972PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
973 wxString str;
974 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
975 return wx2PyString(str);
976 else
977 RETURN_NONE();
978 }
979PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
980 wxString str;
981 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
982 return wx2PyString(str);
983 else
984 RETURN_NONE();
985 }
986PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
987 wxArrayString verbs;
988 wxArrayString commands;
989 if (self->GetAllCommands(&verbs, &commands,
990 wxFileType::MessageParameters(filename, mimetype))) {
991 bool blocked = wxPyBeginBlockThreads();
992 PyObject* tuple = PyTuple_New(2);
993 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
994 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
995 wxPyEndBlockThreads(blocked);
996 return tuple;
997 }
998 else
999 RETURN_NONE();
1000 }
1001wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1002 return wxFileType::ExpandCommand(command,
1003 wxFileType::MessageParameters(filename, mimetype));
1004 }
1005PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1006 wxArrayString arr;
1007 self->EnumAllFileTypes(arr);
1008 return wxArrayString2PyList_helper(arr);
1009 }
1010
1011#include <wx/artprov.h>
1012
1013 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1014 static const wxString wxPyART_MENU(wxART_MENU);
1015 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1016 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1017 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1018 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1019 static const wxString wxPyART_OTHER(wxART_OTHER);
1020 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1021 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1022 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1023 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1024 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1025 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1026 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1027 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1028 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1029 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1030 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1031 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1032 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1033 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1034 static const wxString wxPyART_PRINT(wxART_PRINT);
1035 static const wxString wxPyART_HELP(wxART_HELP);
1036 static const wxString wxPyART_TIP(wxART_TIP);
1037 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1038 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1039 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1040 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1041 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1042 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1043 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1044 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1045 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1046 static const wxString wxPyART_ERROR(wxART_ERROR);
1047 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1048 static const wxString wxPyART_WARNING(wxART_WARNING);
1049 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1050 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1051 // Python aware wxArtProvider
1052class wxPyArtProvider : public wxArtProvider {
1053public:
1054
1055 virtual wxBitmap CreateBitmap(const wxArtID& id,
1056 const wxArtClient& client,
1057 const wxSize& size) {
1058 wxBitmap rval = wxNullBitmap;
1059 bool blocked = wxPyBeginBlockThreads();
1060 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1061 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1062 PyObject* ro;
1063 wxBitmap* ptr;
1064 PyObject* s1, *s2;
1065 s1 = wx2PyString(id);
1066 s2 = wx2PyString(client);
1067 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1068 Py_DECREF(so);
1069 Py_DECREF(s1);
1070 Py_DECREF(s2);
1071 if (ro) {
1072 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1073 rval = *ptr;
1074 Py_DECREF(ro);
1075 }
1076 }
1077 wxPyEndBlockThreads(blocked);
1078 return rval;
1079 }
1080
1081 PYPRIVATE;
1082};
1083
1084void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1085
1086
1087
1088 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1089 PyObject* ret = PyTuple_New(3);
1090 if (ret) {
1091 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1092 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1093 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1094 }
1095 return ret;
1096 }
1097
1098PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1099 bool cont;
1100 long index = 0;
1101 wxString value;
1102
1103 cont = self->GetFirstGroup(value, index);
1104 return __EnumerationHelper(cont, value, index);
1105 }
1106PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1107 bool cont;
1108 wxString value;
1109
1110 cont = self->GetNextGroup(value, index);
1111 return __EnumerationHelper(cont, value, index);
1112 }
1113PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1114 bool cont;
1115 long index = 0;
1116 wxString value;
1117
1118 cont = self->GetFirstEntry(value, index);
1119 return __EnumerationHelper(cont, value, index);
1120 }
1121PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1122 bool cont;
1123 wxString value;
1124
1125 cont = self->GetNextEntry(value, index);
1126 return __EnumerationHelper(cont, value, index);
1127 }
1128long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1129 long rv;
1130 self->Read(key, &rv, defaultVal);
1131 return rv;
1132 }
1133
1134SWIGSTATICINLINE(double)
1135SWIG_AsDouble(PyObject *obj)
1136{
1137 if (PyNumber_Check(obj))
1138 return PyFloat_AsDouble(obj);
1139 else {
1140 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1141 obj->ob_type->tp_name);
1142 PyErr_SetObject(PyExc_TypeError, errmsg);
1143 Py_DECREF(errmsg);
1144 return 0;
1145 }
1146}
1147
1148
1149SWIGSTATICINLINE(int)
1150SWIG_CheckDouble(PyObject* obj)
1151{
1152 SWIG_AsDouble(obj);
1153 if (PyErr_Occurred()) {
1154 PyErr_Clear();
1155 return 0;
1156 } else {
1157 return 1;
1158 }
1159}
1160
1161double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1162 double rv;
1163 self->Read(key, &rv, defaultVal);
1164 return rv;
1165 }
1166bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1167 bool rv;
1168 self->Read(key, &rv, defaultVal);
1169 return rv;
1170 }
1171
1172#include <wx/datetime.h>
1173
1174
1175 static const wxString wxPyDateFormatStr(wxT("%c"));
1176 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1177
1178#define LOCAL_TZ wxDateTime::Local
1179
1180
1181#if UINT_MAX < LONG_MAX
1182#define SWIG_FromUnsignedInt SWIG_FromLong
1183#else
1184#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1185#endif
1186
1187wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1188wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1189wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1190wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1191wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1192bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1193 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1194 return (*self < *other);
1195 }
1196bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1197 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1198 return (*self <= *other);
1199 }
1200bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1201 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1202 return (*self > *other);
1203 }
1204bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1205 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1206 return (*self >= *other);
1207 }
1208bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1209 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1210 return (*self == *other);
1211 }
1212bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1213 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1214 return (*self != *other);
1215 }
1216int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1217 const wxChar* rv;
1218 const wxChar* _date = date;
1219 rv = self->ParseRfc822Date(_date);
1220 if (rv == NULL) return -1;
1221 return rv - _date;
1222 }
1223int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1224 const wxChar* rv;
1225 const wxChar* _date = date;
1226 rv = self->ParseFormat(_date, format, dateDef);
1227 if (rv == NULL) return -1;
1228 return rv - _date;
1229 }
1230int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1231 const wxChar* rv;
1232 const wxChar* _datetime = datetime;
1233 rv = self->ParseDateTime(_datetime);
1234 if (rv == NULL) return -1;
1235 return rv - _datetime;
1236 }
1237int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1238 const wxChar* rv;
1239 const wxChar* _date = date;
1240 rv = self->ParseDate(_date);
1241 if (rv == NULL) return -1;
1242 return rv - _date;
1243 }
1244int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1245 const wxChar* rv;
1246 const wxChar* _time = time;
1247 rv = self->ParseTime(_time);
1248 if (rv == NULL) return -1;
1249 return rv - _time;
1250 }
1251wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1252wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1253wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1254wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1255bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1256bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1257bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1258bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1259bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1260bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1261wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1262wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1263wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1264wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1265bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1266bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1267
1268#include <wx/dataobj.h>
1269
68e533f8
RD
1270PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1271 size_t count = self->GetFormatCount(dir);
1272 wxDataFormat* formats = new wxDataFormat[count];
1273 self->GetAllFormats(formats, dir);
1274
1275 bool blocked = wxPyBeginBlockThreads();
1276 PyObject* list = PyList_New(count);
1277 for (size_t i=0; i<count; i++) {
1278 wxDataFormat* format = new wxDataFormat(formats[i]);
1279 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1280 PyList_Append(list, obj);
1281 Py_DECREF(obj);
1282 }
1283 wxPyEndBlockThreads(blocked);
1284 delete [] formats;
1285 return list;
1286 }
1287PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1288 PyObject* rval = NULL;
1289 size_t size = self->GetDataSize(format);
1290 bool blocked = wxPyBeginBlockThreads();
1291 if (size) {
1292 char* buf = new char[size];
1293 if (self->GetDataHere(format, buf))
1294 rval = PyString_FromStringAndSize(buf, size);
1295 delete [] buf;
1296 }
1297 if (! rval) {
1298 rval = Py_None;
1299 Py_INCREF(rval);
1300 }
1301 wxPyEndBlockThreads(blocked);
1302 return rval;
1303 }
1304bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1305 bool rval;
1306 bool blocked = wxPyBeginBlockThreads();
1307 if (PyString_Check(data)) {
1308 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1309 }
1310 else {
1311 // raise a TypeError if not a string
1312 PyErr_SetString(PyExc_TypeError, "String expected.");
1313 rval = False;
1314 }
1315 wxPyEndBlockThreads(blocked);
1316 return rval;
1317 }
1318PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1319 PyObject* rval = NULL;
1320 size_t size = self->GetDataSize();
1321 bool blocked = wxPyBeginBlockThreads();
1322 if (size) {
1323 char* buf = new char[size];
1324 if (self->GetDataHere(buf))
1325 rval = PyString_FromStringAndSize(buf, size);
1326 delete [] buf;
1327 }
1328 if (! rval) {
1329 rval = Py_None;
1330 Py_INCREF(rval);
1331 }
1332 wxPyEndBlockThreads(blocked);
1333 return rval;
1334 }
1335bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1336 bool rval;
1337 bool blocked = wxPyBeginBlockThreads();
1338 if (PyString_Check(data)) {
1339 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1340 }
1341 else {
1342 // raise a TypeError if not a string
1343 PyErr_SetString(PyExc_TypeError, "String expected.");
1344 rval = False;
1345 }
1346 wxPyEndBlockThreads(blocked);
1347 return rval;
1348 }
d55e5bfc
RD
1349 // Create a new class for wxPython to use
1350class wxPyDataObjectSimple : public wxDataObjectSimple {
1351public:
1352 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1353 : wxDataObjectSimple(format) {}
1354
1355 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1356 bool GetDataHere(void *buf) const;
1357 bool SetData(size_t len, const void *buf) const;
1358 PYPRIVATE;
1359};
1360
1361IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1362
1363bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1364 // We need to get the data for this object and write it to buf. I think
1365 // the best way to do this for wxPython is to have the Python method
1366 // return either a string or None and then act appropriately with the
1367 // C++ version.
1368
1369 bool rval = False;
1370 bool blocked = wxPyBeginBlockThreads();
1371 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1372 PyObject* ro;
1373 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1374 if (ro) {
1375 rval = (ro != Py_None && PyString_Check(ro));
1376 if (rval)
1377 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1378 Py_DECREF(ro);
1379 }
1380 }
1381 wxPyEndBlockThreads(blocked);
1382 return rval;
1383}
1384
1385bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1386 // For this one we simply need to make a string from buf and len
1387 // and send it to the Python method.
1388 bool rval = False;
1389 bool blocked = wxPyBeginBlockThreads();
1390 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1391 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1392 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1393 Py_DECREF(data);
1394 }
1395 wxPyEndBlockThreads(blocked);
1396 return rval;
1397}
1398
1399 // Create a new class for wxPython to use
1400class wxPyTextDataObject : public wxTextDataObject {
1401public:
1402 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1403 : wxTextDataObject(text) {}
1404
1405 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1406 DEC_PYCALLBACK_STRING__const(GetText);
1407 DEC_PYCALLBACK__STRING(SetText);
1408 PYPRIVATE;
1409};
1410
1411IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1412IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1413IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1414
1415
1416 // Create a new class for wxPython to use
1417class wxPyBitmapDataObject : public wxBitmapDataObject {
1418public:
1419 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1420 : wxBitmapDataObject(bitmap) {}
1421
1422 wxBitmap GetBitmap() const;
1423 void SetBitmap(const wxBitmap& bitmap);
1424 PYPRIVATE;
1425};
1426
1427wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1428 wxBitmap* rval = &wxNullBitmap;
1429 bool blocked = wxPyBeginBlockThreads();
1430 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1431 PyObject* ro;
1432 wxBitmap* ptr;
1433 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1434 if (ro) {
1435 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1436 rval = ptr;
1437 Py_DECREF(ro);
1438 }
1439 }
1440 wxPyEndBlockThreads(blocked);
1441 return *rval;
1442}
68e533f8 1443
d55e5bfc
RD
1444void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1445 bool blocked = wxPyBeginBlockThreads();
1446 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1447 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1448 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1449 Py_DECREF(bo);
1450 }
1451 wxPyEndBlockThreads(blocked);
1452}
1453
d55e5bfc 1454bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
68e533f8
RD
1455 bool rval;
1456 bool blocked = wxPyBeginBlockThreads();
d55e5bfc 1457 if (PyString_Check(data)) {
68e533f8 1458 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
d55e5bfc
RD
1459 }
1460 else {
1461 // raise a TypeError if not a string
1462 PyErr_SetString(PyExc_TypeError, "String expected.");
68e533f8 1463 rval = False;
d55e5bfc 1464 }
68e533f8
RD
1465 wxPyEndBlockThreads(blocked);
1466 return rval;
d55e5bfc
RD
1467 }
1468PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
68e533f8
RD
1469 PyObject* obj;
1470 bool blocked = wxPyBeginBlockThreads();
1471 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
a07a67e6
RD
1472 wxPyEndBlockThreads(blocked);
1473 return obj;
d55e5bfc
RD
1474 }
1475
1476#include <wx/metafile.h>
1477
1478
1479IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1480
1481
1482IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1483IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1484IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1485IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1486IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1487
1488
1489class wxPyTextDropTarget : public wxTextDropTarget {
1490public:
1491 wxPyTextDropTarget() {}
1492
1493 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1494
1495 DEC_PYCALLBACK__(OnLeave);
1496 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1497 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1498 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1499 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1500
1501 PYPRIVATE;
1502};
1503
1504IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1505IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1506IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1507IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1508IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1509IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1510
1511
1512
1513class wxPyFileDropTarget : public wxFileDropTarget {
1514public:
1515 wxPyFileDropTarget() {}
1516
1517 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1518
1519 DEC_PYCALLBACK__(OnLeave);
1520 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1521 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1522 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1523 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1524
1525 PYPRIVATE;
1526};
1527
1528bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1529 const wxArrayString& filenames) {
1530 bool rval = False;
1531 bool blocked = wxPyBeginBlockThreads();
1532 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1533 PyObject* list = wxArrayString2PyList_helper(filenames);
1534 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1535 Py_DECREF(list);
1536 }
1537 wxPyEndBlockThreads(blocked);
1538 return rval;
1539}
1540
1541
1542
1543IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1544IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1545IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1546IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1547IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1548
1549
1550
1551
1552bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1553
6923d0a9 1554#include <wx/display.h>
d55e5bfc
RD
1555
1556bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1557bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
6923d0a9
RD
1558
1559// dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1560#if !wxUSE_DISPLAY
1561#include <wx/dynarray.h>
1562#include <wx/vidmode.h>
1563
1564WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1565#include "wx/arrimpl.cpp"
1566WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1567const wxVideoMode wxDefaultVideoMode;
1568
1569class wxDisplay
1570{
1571public:
1572 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1573 ~wxDisplay() {}
1574
1575 static size_t GetCount()
1576 { wxPyRaiseNotImplemented(); return 0; }
1577
1578 static int GetFromPoint(const wxPoint& pt)
1579 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1580 static int GetFromWindow(wxWindow *window)
1581 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1582
1583 virtual bool IsOk() const { return false; }
1584 virtual wxRect GetGeometry() const { wxRect r; return r; }
1585 virtual wxString GetName() const { return wxEmptyString; }
1586 bool IsPrimary() const { return false; }
1587
1588 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1589 { wxArrayVideoModes a; return a; }
1590
1591 virtual wxVideoMode GetCurrentMode() const
1592 { return wxDefaultVideoMode; }
1593
1594 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1595 { return false; }
1596
1597 void ResetMode() {}
1598};
1599#endif
1600
d55e5bfc
RD
1601int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1602PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1603 PyObject* pyList = NULL;
1604 wxArrayVideoModes arr = self->GetModes(mode);
1605 bool blocked = wxPyBeginBlockThreads();
1606 pyList = PyList_New(0);
1607 for (int i=0; i < arr.GetCount(); i++) {
1608 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1609 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1610 PyList_Append(pyList, pyObj);
68e533f8 1611 Py_DECREF(pyObj);
d55e5bfc
RD
1612 }
1613 wxPyEndBlockThreads(blocked);
1614 return pyList;
1615 }
1616#ifdef __cplusplus
1617extern "C" {
1618#endif
1619static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1620 PyObject *resultobj;
1621 int arg1 ;
1622 wxColour result;
1623 PyObject * obj0 = 0 ;
1624 char *kwnames[] = {
1625 (char *) "index", NULL
1626 };
1627
1628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1629 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1630 if (PyErr_Occurred()) SWIG_fail;
1631 {
0439c23b 1632 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1633 PyThreadState* __tstate = wxPyBeginAllowThreads();
1634 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1635
1636 wxPyEndAllowThreads(__tstate);
0439c23b 1637 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1638 }
1639 {
1640 wxColour * resultptr;
1641 resultptr = new wxColour((wxColour &) result);
1642 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1643 }
1644 return resultobj;
1645 fail:
1646 return NULL;
1647}
1648
1649
1650static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1651 PyObject *resultobj;
1652 int arg1 ;
1653 wxFont result;
1654 PyObject * obj0 = 0 ;
1655 char *kwnames[] = {
1656 (char *) "index", NULL
1657 };
1658
1659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1660 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1661 if (PyErr_Occurred()) SWIG_fail;
1662 {
0439c23b 1663 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1664 PyThreadState* __tstate = wxPyBeginAllowThreads();
1665 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1666
1667 wxPyEndAllowThreads(__tstate);
0439c23b 1668 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1669 }
1670 {
1671 wxFont * resultptr;
1672 resultptr = new wxFont((wxFont &) result);
1673 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1674 }
1675 return resultobj;
1676 fail:
1677 return NULL;
1678}
1679
1680
1681static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1682 PyObject *resultobj;
1683 int arg1 ;
1684 int result;
1685 PyObject * obj0 = 0 ;
1686 char *kwnames[] = {
1687 (char *) "index", NULL
1688 };
1689
1690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1691 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1692 if (PyErr_Occurred()) SWIG_fail;
1693 {
0439c23b 1694 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1695 PyThreadState* __tstate = wxPyBeginAllowThreads();
1696 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1697
1698 wxPyEndAllowThreads(__tstate);
0439c23b 1699 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1700 }
1701 resultobj = SWIG_FromInt((int)result);
1702 return resultobj;
1703 fail:
1704 return NULL;
1705}
1706
1707
1708static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1709 PyObject *resultobj;
1710 int arg1 ;
1711 bool result;
1712 PyObject * obj0 = 0 ;
1713 char *kwnames[] = {
1714 (char *) "index", NULL
1715 };
1716
1717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1718 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1719 if (PyErr_Occurred()) SWIG_fail;
1720 {
0439c23b 1721 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1722 PyThreadState* __tstate = wxPyBeginAllowThreads();
1723 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1724
1725 wxPyEndAllowThreads(__tstate);
0439c23b 1726 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1727 }
1728 {
1729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1730 }
1731 return resultobj;
1732 fail:
1733 return NULL;
1734}
1735
1736
1737static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1738 PyObject *resultobj;
1739 int result;
1740 char *kwnames[] = {
1741 NULL
1742 };
1743
1744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1745 {
0439c23b 1746 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1747 PyThreadState* __tstate = wxPyBeginAllowThreads();
1748 result = (int)wxSystemSettings::GetScreenType();
1749
1750 wxPyEndAllowThreads(__tstate);
0439c23b 1751 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1752 }
1753 resultobj = SWIG_FromInt((int)result);
1754 return resultobj;
1755 fail:
1756 return NULL;
1757}
1758
1759
1760static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1761 PyObject *resultobj;
1762 int arg1 ;
1763 PyObject * obj0 = 0 ;
1764 char *kwnames[] = {
1765 (char *) "screen", NULL
1766 };
1767
1768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1769 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1770 if (PyErr_Occurred()) SWIG_fail;
1771 {
0439c23b 1772 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1773 PyThreadState* __tstate = wxPyBeginAllowThreads();
1774 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1775
1776 wxPyEndAllowThreads(__tstate);
0439c23b 1777 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1778 }
1779 Py_INCREF(Py_None); resultobj = Py_None;
1780 return resultobj;
1781 fail:
1782 return NULL;
1783}
1784
1785
1786static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1787 PyObject *obj;
1788 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1789 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1790 Py_INCREF(obj);
1791 return Py_BuildValue((char *)"");
1792}
1793static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1794 PyObject *resultobj;
1795 wxSystemOptions *result;
1796 char *kwnames[] = {
1797 NULL
1798 };
1799
1800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1801 {
1802 PyThreadState* __tstate = wxPyBeginAllowThreads();
1803 result = (wxSystemOptions *)new wxSystemOptions();
1804
1805 wxPyEndAllowThreads(__tstate);
1806 if (PyErr_Occurred()) SWIG_fail;
1807 }
1808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1809 return resultobj;
1810 fail:
1811 return NULL;
1812}
1813
1814
1815static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1816 PyObject *resultobj;
1817 wxString *arg1 = 0 ;
1818 wxString *arg2 = 0 ;
1819 bool temp1 = False ;
1820 bool temp2 = False ;
1821 PyObject * obj0 = 0 ;
1822 PyObject * obj1 = 0 ;
1823 char *kwnames[] = {
1824 (char *) "name",(char *) "value", NULL
1825 };
1826
1827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1828 {
1829 arg1 = wxString_in_helper(obj0);
1830 if (arg1 == NULL) SWIG_fail;
1831 temp1 = True;
1832 }
1833 {
1834 arg2 = wxString_in_helper(obj1);
1835 if (arg2 == NULL) SWIG_fail;
1836 temp2 = True;
1837 }
1838 {
1839 PyThreadState* __tstate = wxPyBeginAllowThreads();
1840 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1841
1842 wxPyEndAllowThreads(__tstate);
1843 if (PyErr_Occurred()) SWIG_fail;
1844 }
1845 Py_INCREF(Py_None); resultobj = Py_None;
1846 {
1847 if (temp1)
1848 delete arg1;
1849 }
1850 {
1851 if (temp2)
1852 delete arg2;
1853 }
1854 return resultobj;
1855 fail:
1856 {
1857 if (temp1)
1858 delete arg1;
1859 }
1860 {
1861 if (temp2)
1862 delete arg2;
1863 }
1864 return NULL;
1865}
1866
1867
1868static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1869 PyObject *resultobj;
1870 wxString *arg1 = 0 ;
1871 int arg2 ;
1872 bool temp1 = False ;
1873 PyObject * obj0 = 0 ;
1874 PyObject * obj1 = 0 ;
1875 char *kwnames[] = {
1876 (char *) "name",(char *) "value", NULL
1877 };
1878
1879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1880 {
1881 arg1 = wxString_in_helper(obj0);
1882 if (arg1 == NULL) SWIG_fail;
1883 temp1 = True;
1884 }
1885 arg2 = (int) SWIG_AsInt(obj1);
1886 if (PyErr_Occurred()) SWIG_fail;
1887 {
1888 PyThreadState* __tstate = wxPyBeginAllowThreads();
1889 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1890
1891 wxPyEndAllowThreads(__tstate);
1892 if (PyErr_Occurred()) SWIG_fail;
1893 }
1894 Py_INCREF(Py_None); resultobj = Py_None;
1895 {
1896 if (temp1)
1897 delete arg1;
1898 }
1899 return resultobj;
1900 fail:
1901 {
1902 if (temp1)
1903 delete arg1;
1904 }
1905 return NULL;
1906}
1907
1908
1909static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1910 PyObject *resultobj;
1911 wxString *arg1 = 0 ;
1912 wxString result;
1913 bool temp1 = False ;
1914 PyObject * obj0 = 0 ;
1915 char *kwnames[] = {
1916 (char *) "name", NULL
1917 };
1918
1919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1920 {
1921 arg1 = wxString_in_helper(obj0);
1922 if (arg1 == NULL) SWIG_fail;
1923 temp1 = True;
1924 }
1925 {
1926 PyThreadState* __tstate = wxPyBeginAllowThreads();
1927 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1928
1929 wxPyEndAllowThreads(__tstate);
1930 if (PyErr_Occurred()) SWIG_fail;
1931 }
1932 {
1933#if wxUSE_UNICODE
1934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1935#else
1936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1937#endif
1938 }
1939 {
1940 if (temp1)
1941 delete arg1;
1942 }
1943 return resultobj;
1944 fail:
1945 {
1946 if (temp1)
1947 delete arg1;
1948 }
1949 return NULL;
1950}
1951
1952
1953static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1954 PyObject *resultobj;
1955 wxString *arg1 = 0 ;
1956 int result;
1957 bool temp1 = False ;
1958 PyObject * obj0 = 0 ;
1959 char *kwnames[] = {
1960 (char *) "name", NULL
1961 };
1962
1963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1964 {
1965 arg1 = wxString_in_helper(obj0);
1966 if (arg1 == NULL) SWIG_fail;
1967 temp1 = True;
1968 }
1969 {
1970 PyThreadState* __tstate = wxPyBeginAllowThreads();
1971 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1972
1973 wxPyEndAllowThreads(__tstate);
1974 if (PyErr_Occurred()) SWIG_fail;
1975 }
1976 resultobj = SWIG_FromInt((int)result);
1977 {
1978 if (temp1)
1979 delete arg1;
1980 }
1981 return resultobj;
1982 fail:
1983 {
1984 if (temp1)
1985 delete arg1;
1986 }
1987 return NULL;
1988}
1989
1990
1991static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1992 PyObject *resultobj;
1993 wxString *arg1 = 0 ;
1994 bool result;
1995 bool temp1 = False ;
1996 PyObject * obj0 = 0 ;
1997 char *kwnames[] = {
1998 (char *) "name", NULL
1999 };
2000
2001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2002 {
2003 arg1 = wxString_in_helper(obj0);
2004 if (arg1 == NULL) SWIG_fail;
2005 temp1 = True;
2006 }
2007 {
2008 PyThreadState* __tstate = wxPyBeginAllowThreads();
2009 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2010
2011 wxPyEndAllowThreads(__tstate);
2012 if (PyErr_Occurred()) SWIG_fail;
2013 }
2014 {
2015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2016 }
2017 {
2018 if (temp1)
2019 delete arg1;
2020 }
2021 return resultobj;
2022 fail:
2023 {
2024 if (temp1)
2025 delete arg1;
2026 }
2027 return NULL;
2028}
2029
2030
2031static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
2032 PyObject *obj;
2033 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2034 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2035 Py_INCREF(obj);
2036 return Py_BuildValue((char *)"");
2037}
2038static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
2039 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2040 return 1;
2041}
2042
2043
2044static PyObject *_wrap_FileSelectorPromptStr_get() {
2045 PyObject *pyobj;
2046
2047 {
2048#if wxUSE_UNICODE
2049 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2050#else
2051 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2052#endif
2053 }
2054 return pyobj;
2055}
2056
2057
2058static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
2059 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2060 return 1;
2061}
2062
2063
2064static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2065 PyObject *pyobj;
2066
2067 {
2068#if wxUSE_UNICODE
2069 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2070#else
2071 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2072#endif
2073 }
2074 return pyobj;
2075}
2076
2077
2078static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
2079 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2080 return 1;
2081}
2082
2083
2084static PyObject *_wrap_DirSelectorPromptStr_get() {
2085 PyObject *pyobj;
2086
2087 {
2088#if wxUSE_UNICODE
2089 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2090#else
2091 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2092#endif
2093 }
2094 return pyobj;
2095}
2096
2097
2098static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
2099 PyObject *resultobj;
2100 long result;
2101 char *kwnames[] = {
2102 NULL
2103 };
2104
2105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2106 {
2107 PyThreadState* __tstate = wxPyBeginAllowThreads();
2108 result = (long)wxNewId();
2109
2110 wxPyEndAllowThreads(__tstate);
2111 if (PyErr_Occurred()) SWIG_fail;
2112 }
2113 resultobj = SWIG_FromLong((long)result);
2114 return resultobj;
2115 fail:
2116 return NULL;
2117}
2118
2119
2120static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2121 PyObject *resultobj;
2122 long arg1 ;
2123 PyObject * obj0 = 0 ;
2124 char *kwnames[] = {
2125 (char *) "id", NULL
2126 };
2127
2128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2129 arg1 = (long) SWIG_AsLong(obj0);
2130 if (PyErr_Occurred()) SWIG_fail;
2131 {
2132 PyThreadState* __tstate = wxPyBeginAllowThreads();
2133 wxRegisterId(arg1);
2134
2135 wxPyEndAllowThreads(__tstate);
2136 if (PyErr_Occurred()) SWIG_fail;
2137 }
2138 Py_INCREF(Py_None); resultobj = Py_None;
2139 return resultobj;
2140 fail:
2141 return NULL;
2142}
2143
2144
2145static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2146 PyObject *resultobj;
2147 long result;
2148 char *kwnames[] = {
2149 NULL
2150 };
2151
2152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2153 {
2154 PyThreadState* __tstate = wxPyBeginAllowThreads();
2155 result = (long)wxGetCurrentId();
2156
2157 wxPyEndAllowThreads(__tstate);
2158 if (PyErr_Occurred()) SWIG_fail;
2159 }
2160 resultobj = SWIG_FromLong((long)result);
2161 return resultobj;
2162 fail:
2163 return NULL;
2164}
2165
2166
2167static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2168 PyObject *resultobj;
2169 char *kwnames[] = {
2170 NULL
2171 };
2172
2173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2174 {
0439c23b 2175 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2176 PyThreadState* __tstate = wxPyBeginAllowThreads();
2177 wxBell();
2178
2179 wxPyEndAllowThreads(__tstate);
0439c23b 2180 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2181 }
2182 Py_INCREF(Py_None); resultobj = Py_None;
2183 return resultobj;
2184 fail:
2185 return NULL;
2186}
2187
2188
2189static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2190 PyObject *resultobj;
2191 char *kwnames[] = {
2192 NULL
2193 };
2194
2195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2196 {
0439c23b 2197 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2198 PyThreadState* __tstate = wxPyBeginAllowThreads();
2199 wxEndBusyCursor();
2200
2201 wxPyEndAllowThreads(__tstate);
0439c23b 2202 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2203 }
2204 Py_INCREF(Py_None); resultobj = Py_None;
2205 return resultobj;
2206 fail:
2207 return NULL;
2208}
2209
2210
2211static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2212 PyObject *resultobj;
2213 bool arg1 = (bool) True ;
2214 long result;
2215 PyObject * obj0 = 0 ;
2216 char *kwnames[] = {
2217 (char *) "resetTimer", NULL
2218 };
2219
2220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2221 if (obj0) {
2222 arg1 = (bool) SWIG_AsBool(obj0);
2223 if (PyErr_Occurred()) SWIG_fail;
2224 }
2225 {
2226 PyThreadState* __tstate = wxPyBeginAllowThreads();
2227 result = (long)wxGetElapsedTime(arg1);
2228
2229 wxPyEndAllowThreads(__tstate);
2230 if (PyErr_Occurred()) SWIG_fail;
2231 }
2232 resultobj = SWIG_FromLong((long)result);
2233 return resultobj;
2234 fail:
2235 return NULL;
2236}
2237
2238
2239static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2240 PyObject *resultobj;
2241 int *arg1 = (int *) 0 ;
2242 int *arg2 = (int *) 0 ;
2243 int temp1 ;
2244 int temp2 ;
2245 char *kwnames[] = {
2246 NULL
2247 };
2248
2249 arg1 = &temp1;
2250 arg2 = &temp2;
2251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2252 {
0439c23b 2253 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2254 PyThreadState* __tstate = wxPyBeginAllowThreads();
2255 wxGetMousePosition(arg1,arg2);
2256
2257 wxPyEndAllowThreads(__tstate);
0439c23b 2258 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2259 }
2260 Py_INCREF(Py_None); resultobj = Py_None;
2261 {
2262 PyObject *o = PyInt_FromLong((long) (*arg1));
2263 resultobj = t_output_helper(resultobj,o);
2264 }
2265 {
2266 PyObject *o = PyInt_FromLong((long) (*arg2));
2267 resultobj = t_output_helper(resultobj,o);
2268 }
2269 return resultobj;
2270 fail:
2271 return NULL;
2272}
2273
2274
2275static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2276 PyObject *resultobj;
2277 bool result;
2278 char *kwnames[] = {
2279 NULL
2280 };
2281
2282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2283 {
2284 PyThreadState* __tstate = wxPyBeginAllowThreads();
2285 result = (bool)wxIsBusy();
2286
2287 wxPyEndAllowThreads(__tstate);
2288 if (PyErr_Occurred()) SWIG_fail;
2289 }
2290 {
2291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2292 }
2293 return resultobj;
2294 fail:
2295 return NULL;
2296}
2297
2298
2299static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2300 PyObject *resultobj;
2301 wxString result;
2302 char *kwnames[] = {
2303 NULL
2304 };
2305
2306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2307 {
2308 PyThreadState* __tstate = wxPyBeginAllowThreads();
2309 result = wxNow();
2310
2311 wxPyEndAllowThreads(__tstate);
2312 if (PyErr_Occurred()) SWIG_fail;
2313 }
2314 {
2315#if wxUSE_UNICODE
2316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2317#else
2318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2319#endif
2320 }
2321 return resultobj;
2322 fail:
2323 return NULL;
2324}
2325
2326
2327static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2328 PyObject *resultobj;
2329 wxString const &arg1_defvalue = wxPyEmptyString ;
2330 wxString *arg1 = (wxString *) &arg1_defvalue ;
2331 bool result;
2332 bool temp1 = False ;
2333 PyObject * obj0 = 0 ;
2334 char *kwnames[] = {
2335 (char *) "command", NULL
2336 };
2337
2338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2339 if (obj0) {
2340 {
2341 arg1 = wxString_in_helper(obj0);
2342 if (arg1 == NULL) SWIG_fail;
2343 temp1 = True;
2344 }
2345 }
2346 {
2347 PyThreadState* __tstate = wxPyBeginAllowThreads();
2348 result = (bool)wxShell((wxString const &)*arg1);
2349
2350 wxPyEndAllowThreads(__tstate);
2351 if (PyErr_Occurred()) SWIG_fail;
2352 }
2353 {
2354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2355 }
2356 {
2357 if (temp1)
2358 delete arg1;
2359 }
2360 return resultobj;
2361 fail:
2362 {
2363 if (temp1)
2364 delete arg1;
2365 }
2366 return NULL;
2367}
2368
2369
2370static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2371 PyObject *resultobj;
2372 char *kwnames[] = {
2373 NULL
2374 };
2375
2376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2377 {
2378 PyThreadState* __tstate = wxPyBeginAllowThreads();
2379 wxStartTimer();
2380
2381 wxPyEndAllowThreads(__tstate);
2382 if (PyErr_Occurred()) SWIG_fail;
2383 }
2384 Py_INCREF(Py_None); resultobj = Py_None;
2385 return resultobj;
2386 fail:
2387 return NULL;
2388}
2389
2390
2391static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2392 PyObject *resultobj;
2393 int *arg1 = (int *) 0 ;
2394 int *arg2 = (int *) 0 ;
2395 int result;
2396 int temp1 ;
2397 int temp2 ;
2398 char *kwnames[] = {
2399 NULL
2400 };
2401
2402 arg1 = &temp1;
2403 arg2 = &temp2;
2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2405 {
2406 PyThreadState* __tstate = wxPyBeginAllowThreads();
2407 result = (int)wxGetOsVersion(arg1,arg2);
2408
2409 wxPyEndAllowThreads(__tstate);
2410 if (PyErr_Occurred()) SWIG_fail;
2411 }
2412 resultobj = SWIG_FromInt((int)result);
2413 {
2414 PyObject *o = PyInt_FromLong((long) (*arg1));
2415 resultobj = t_output_helper(resultobj,o);
2416 }
2417 {
2418 PyObject *o = PyInt_FromLong((long) (*arg2));
2419 resultobj = t_output_helper(resultobj,o);
2420 }
2421 return resultobj;
2422 fail:
2423 return NULL;
2424}
2425
2426
2427static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2428 PyObject *resultobj;
2429 wxString result;
2430 char *kwnames[] = {
2431 NULL
2432 };
2433
2434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2435 {
2436 PyThreadState* __tstate = wxPyBeginAllowThreads();
2437 result = wxGetOsDescription();
2438
2439 wxPyEndAllowThreads(__tstate);
2440 if (PyErr_Occurred()) SWIG_fail;
2441 }
2442 {
2443#if wxUSE_UNICODE
2444 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2445#else
2446 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2447#endif
2448 }
2449 return resultobj;
2450 fail:
2451 return NULL;
2452}
2453
2454
2455static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2456 PyObject *resultobj;
2457 long result;
2458 char *kwnames[] = {
2459 NULL
2460 };
2461
2462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2463 {
2464 PyThreadState* __tstate = wxPyBeginAllowThreads();
2465 result = (long)wxGetFreeMemory();
2466
2467 wxPyEndAllowThreads(__tstate);
2468 if (PyErr_Occurred()) SWIG_fail;
2469 }
2470 resultobj = SWIG_FromLong((long)result);
2471 return resultobj;
2472 fail:
2473 return NULL;
2474}
2475
2476
2477static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2478 PyObject *resultobj;
2479 int arg1 ;
2480 bool result;
2481 PyObject * obj0 = 0 ;
2482 char *kwnames[] = {
2483 (char *) "wFlags", NULL
2484 };
2485
2486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2487 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2488 if (PyErr_Occurred()) SWIG_fail;
2489 {
0439c23b 2490 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2491 PyThreadState* __tstate = wxPyBeginAllowThreads();
2492 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2493
2494 wxPyEndAllowThreads(__tstate);
0439c23b 2495 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2496 }
2497 {
2498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2499 }
2500 return resultobj;
2501 fail:
2502 return NULL;
2503}
2504
2505
2506static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2507 PyObject *resultobj;
2508 int arg1 ;
2509 PyObject * obj0 = 0 ;
2510 char *kwnames[] = {
2511 (char *) "secs", NULL
2512 };
2513
2514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2515 arg1 = (int) SWIG_AsInt(obj0);
2516 if (PyErr_Occurred()) SWIG_fail;
2517 {
2518 PyThreadState* __tstate = wxPyBeginAllowThreads();
2519 wxSleep(arg1);
2520
2521 wxPyEndAllowThreads(__tstate);
2522 if (PyErr_Occurred()) SWIG_fail;
2523 }
2524 Py_INCREF(Py_None); resultobj = Py_None;
2525 return resultobj;
2526 fail:
2527 return NULL;
2528}
2529
2530
2531static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2532 PyObject *resultobj;
2533 unsigned long arg1 ;
2534 PyObject * obj0 = 0 ;
2535 char *kwnames[] = {
2536 (char *) "milliseconds", NULL
2537 };
2538
2539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2540 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2541 if (PyErr_Occurred()) SWIG_fail;
2542 {
2543 PyThreadState* __tstate = wxPyBeginAllowThreads();
2544 wxUsleep(arg1);
2545
2546 wxPyEndAllowThreads(__tstate);
2547 if (PyErr_Occurred()) SWIG_fail;
2548 }
2549 Py_INCREF(Py_None); resultobj = Py_None;
2550 return resultobj;
2551 fail:
2552 return NULL;
2553}
2554
2555
2556static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2557 PyObject *resultobj;
2558 bool arg1 ;
2559 PyObject * obj0 = 0 ;
2560 char *kwnames[] = {
2561 (char *) "enable", NULL
2562 };
2563
2564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2565 arg1 = (bool) SWIG_AsBool(obj0);
2566 if (PyErr_Occurred()) SWIG_fail;
2567 {
2568 PyThreadState* __tstate = wxPyBeginAllowThreads();
2569 wxEnableTopLevelWindows(arg1);
2570
2571 wxPyEndAllowThreads(__tstate);
2572 if (PyErr_Occurred()) SWIG_fail;
2573 }
2574 Py_INCREF(Py_None); resultobj = Py_None;
2575 return resultobj;
2576 fail:
2577 return NULL;
2578}
2579
2580
2581static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2582 PyObject *resultobj;
2583 wxString *arg1 = 0 ;
2584 wxString result;
2585 bool temp1 = False ;
2586 PyObject * obj0 = 0 ;
2587 char *kwnames[] = {
2588 (char *) "in", NULL
2589 };
2590
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2592 {
2593 arg1 = wxString_in_helper(obj0);
2594 if (arg1 == NULL) SWIG_fail;
2595 temp1 = True;
2596 }
2597 {
2598 PyThreadState* __tstate = wxPyBeginAllowThreads();
2599 result = wxStripMenuCodes((wxString const &)*arg1);
2600
2601 wxPyEndAllowThreads(__tstate);
2602 if (PyErr_Occurred()) SWIG_fail;
2603 }
2604 {
2605#if wxUSE_UNICODE
2606 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2607#else
2608 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2609#endif
2610 }
2611 {
2612 if (temp1)
2613 delete arg1;
2614 }
2615 return resultobj;
2616 fail:
2617 {
2618 if (temp1)
2619 delete arg1;
2620 }
2621 return NULL;
2622}
2623
2624
2625static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2626 PyObject *resultobj;
2627 wxString result;
2628 char *kwnames[] = {
2629 NULL
2630 };
2631
2632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2633 {
2634 PyThreadState* __tstate = wxPyBeginAllowThreads();
2635 result = wxGetEmailAddress();
2636
2637 wxPyEndAllowThreads(__tstate);
2638 if (PyErr_Occurred()) SWIG_fail;
2639 }
2640 {
2641#if wxUSE_UNICODE
2642 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2643#else
2644 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2645#endif
2646 }
2647 return resultobj;
2648 fail:
2649 return NULL;
2650}
2651
2652
2653static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2654 PyObject *resultobj;
2655 wxString result;
2656 char *kwnames[] = {
2657 NULL
2658 };
2659
2660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2661 {
2662 PyThreadState* __tstate = wxPyBeginAllowThreads();
2663 result = wxGetHostName();
2664
2665 wxPyEndAllowThreads(__tstate);
2666 if (PyErr_Occurred()) SWIG_fail;
2667 }
2668 {
2669#if wxUSE_UNICODE
2670 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2671#else
2672 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2673#endif
2674 }
2675 return resultobj;
2676 fail:
2677 return NULL;
2678}
2679
2680
2681static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2682 PyObject *resultobj;
2683 wxString result;
2684 char *kwnames[] = {
2685 NULL
2686 };
2687
2688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2689 {
2690 PyThreadState* __tstate = wxPyBeginAllowThreads();
2691 result = wxGetFullHostName();
2692
2693 wxPyEndAllowThreads(__tstate);
2694 if (PyErr_Occurred()) SWIG_fail;
2695 }
2696 {
2697#if wxUSE_UNICODE
2698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2699#else
2700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2701#endif
2702 }
2703 return resultobj;
2704 fail:
2705 return NULL;
2706}
2707
2708
2709static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2710 PyObject *resultobj;
2711 wxString result;
2712 char *kwnames[] = {
2713 NULL
2714 };
2715
2716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2717 {
2718 PyThreadState* __tstate = wxPyBeginAllowThreads();
2719 result = wxGetUserId();
2720
2721 wxPyEndAllowThreads(__tstate);
2722 if (PyErr_Occurred()) SWIG_fail;
2723 }
2724 {
2725#if wxUSE_UNICODE
2726 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2727#else
2728 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2729#endif
2730 }
2731 return resultobj;
2732 fail:
2733 return NULL;
2734}
2735
2736
2737static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2738 PyObject *resultobj;
2739 wxString result;
2740 char *kwnames[] = {
2741 NULL
2742 };
2743
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2745 {
2746 PyThreadState* __tstate = wxPyBeginAllowThreads();
2747 result = wxGetUserName();
2748
2749 wxPyEndAllowThreads(__tstate);
2750 if (PyErr_Occurred()) SWIG_fail;
2751 }
2752 {
2753#if wxUSE_UNICODE
2754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2755#else
2756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2757#endif
2758 }
2759 return resultobj;
2760 fail:
2761 return NULL;
2762}
2763
2764
2765static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2766 PyObject *resultobj;
2767 wxString result;
2768 char *kwnames[] = {
2769 NULL
2770 };
2771
2772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2773 {
2774 PyThreadState* __tstate = wxPyBeginAllowThreads();
2775 result = wxGetHomeDir();
2776
2777 wxPyEndAllowThreads(__tstate);
2778 if (PyErr_Occurred()) SWIG_fail;
2779 }
2780 {
2781#if wxUSE_UNICODE
2782 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2783#else
2784 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2785#endif
2786 }
2787 return resultobj;
2788 fail:
2789 return NULL;
2790}
2791
2792
2793static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2794 PyObject *resultobj;
2795 wxString const &arg1_defvalue = wxPyEmptyString ;
2796 wxString *arg1 = (wxString *) &arg1_defvalue ;
2797 wxString result;
2798 bool temp1 = False ;
2799 PyObject * obj0 = 0 ;
2800 char *kwnames[] = {
2801 (char *) "user", NULL
2802 };
2803
2804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2805 if (obj0) {
2806 {
2807 arg1 = wxString_in_helper(obj0);
2808 if (arg1 == NULL) SWIG_fail;
2809 temp1 = True;
2810 }
2811 }
2812 {
2813 PyThreadState* __tstate = wxPyBeginAllowThreads();
2814 result = wxGetUserHome((wxString const &)*arg1);
2815
2816 wxPyEndAllowThreads(__tstate);
2817 if (PyErr_Occurred()) SWIG_fail;
2818 }
2819 {
2820#if wxUSE_UNICODE
2821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2822#else
2823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2824#endif
2825 }
2826 {
2827 if (temp1)
2828 delete arg1;
2829 }
2830 return resultobj;
2831 fail:
2832 {
2833 if (temp1)
2834 delete arg1;
2835 }
2836 return NULL;
2837}
2838
2839
2840static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2841 PyObject *resultobj;
2842 unsigned long result;
2843 char *kwnames[] = {
2844 NULL
2845 };
2846
2847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2848 {
2849 PyThreadState* __tstate = wxPyBeginAllowThreads();
2850 result = (unsigned long)wxGetProcessId();
2851
2852 wxPyEndAllowThreads(__tstate);
2853 if (PyErr_Occurred()) SWIG_fail;
2854 }
2855 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2856 return resultobj;
2857 fail:
2858 return NULL;
2859}
2860
2861
2862static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2863 PyObject *resultobj;
2864 char *kwnames[] = {
2865 NULL
2866 };
2867
2868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2869 {
2870 PyThreadState* __tstate = wxPyBeginAllowThreads();
2871 wxTrap();
2872
2873 wxPyEndAllowThreads(__tstate);
2874 if (PyErr_Occurred()) SWIG_fail;
2875 }
2876 Py_INCREF(Py_None); resultobj = Py_None;
2877 return resultobj;
2878 fail:
2879 return NULL;
2880}
2881
2882
2883static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2884 PyObject *resultobj;
2885 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2886 wxString *arg1 = (wxString *) &arg1_defvalue ;
2887 wxString const &arg2_defvalue = wxPyEmptyString ;
2888 wxString *arg2 = (wxString *) &arg2_defvalue ;
2889 wxString const &arg3_defvalue = wxPyEmptyString ;
2890 wxString *arg3 = (wxString *) &arg3_defvalue ;
2891 wxString const &arg4_defvalue = wxPyEmptyString ;
2892 wxString *arg4 = (wxString *) &arg4_defvalue ;
2893 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2894 wxString *arg5 = (wxString *) &arg5_defvalue ;
2895 int arg6 = (int) 0 ;
2896 wxWindow *arg7 = (wxWindow *) NULL ;
2897 int arg8 = (int) -1 ;
2898 int arg9 = (int) -1 ;
2899 wxString result;
2900 bool temp1 = False ;
2901 bool temp2 = False ;
2902 bool temp3 = False ;
2903 bool temp4 = False ;
2904 bool temp5 = False ;
2905 PyObject * obj0 = 0 ;
2906 PyObject * obj1 = 0 ;
2907 PyObject * obj2 = 0 ;
2908 PyObject * obj3 = 0 ;
2909 PyObject * obj4 = 0 ;
2910 PyObject * obj5 = 0 ;
2911 PyObject * obj6 = 0 ;
2912 PyObject * obj7 = 0 ;
2913 PyObject * obj8 = 0 ;
2914 char *kwnames[] = {
2915 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2916 };
2917
2918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2919 if (obj0) {
2920 {
2921 arg1 = wxString_in_helper(obj0);
2922 if (arg1 == NULL) SWIG_fail;
2923 temp1 = True;
2924 }
2925 }
2926 if (obj1) {
2927 {
2928 arg2 = wxString_in_helper(obj1);
2929 if (arg2 == NULL) SWIG_fail;
2930 temp2 = True;
2931 }
2932 }
2933 if (obj2) {
2934 {
2935 arg3 = wxString_in_helper(obj2);
2936 if (arg3 == NULL) SWIG_fail;
2937 temp3 = True;
2938 }
2939 }
2940 if (obj3) {
2941 {
2942 arg4 = wxString_in_helper(obj3);
2943 if (arg4 == NULL) SWIG_fail;
2944 temp4 = True;
2945 }
2946 }
2947 if (obj4) {
2948 {
2949 arg5 = wxString_in_helper(obj4);
2950 if (arg5 == NULL) SWIG_fail;
2951 temp5 = True;
2952 }
2953 }
2954 if (obj5) {
2955 arg6 = (int) SWIG_AsInt(obj5);
2956 if (PyErr_Occurred()) SWIG_fail;
2957 }
2958 if (obj6) {
2959 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2961 }
2962 if (obj7) {
2963 arg8 = (int) SWIG_AsInt(obj7);
2964 if (PyErr_Occurred()) SWIG_fail;
2965 }
2966 if (obj8) {
2967 arg9 = (int) SWIG_AsInt(obj8);
2968 if (PyErr_Occurred()) SWIG_fail;
2969 }
2970 {
0439c23b 2971 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2972 PyThreadState* __tstate = wxPyBeginAllowThreads();
2973 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2974
2975 wxPyEndAllowThreads(__tstate);
0439c23b 2976 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2977 }
2978 {
2979#if wxUSE_UNICODE
2980 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2981#else
2982 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2983#endif
2984 }
2985 {
2986 if (temp1)
2987 delete arg1;
2988 }
2989 {
2990 if (temp2)
2991 delete arg2;
2992 }
2993 {
2994 if (temp3)
2995 delete arg3;
2996 }
2997 {
2998 if (temp4)
2999 delete arg4;
3000 }
3001 {
3002 if (temp5)
3003 delete arg5;
3004 }
3005 return resultobj;
3006 fail:
3007 {
3008 if (temp1)
3009 delete arg1;
3010 }
3011 {
3012 if (temp2)
3013 delete arg2;
3014 }
3015 {
3016 if (temp3)
3017 delete arg3;
3018 }
3019 {
3020 if (temp4)
3021 delete arg4;
3022 }
3023 {
3024 if (temp5)
3025 delete arg5;
3026 }
3027 return NULL;
3028}
3029
3030
3031static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3032 PyObject *resultobj;
3033 wxString *arg1 = 0 ;
3034 wxString *arg2 = 0 ;
3035 wxString const &arg3_defvalue = wxPyEmptyString ;
3036 wxString *arg3 = (wxString *) &arg3_defvalue ;
3037 wxWindow *arg4 = (wxWindow *) NULL ;
3038 wxString result;
3039 bool temp1 = False ;
3040 bool temp2 = False ;
3041 bool temp3 = False ;
3042 PyObject * obj0 = 0 ;
3043 PyObject * obj1 = 0 ;
3044 PyObject * obj2 = 0 ;
3045 PyObject * obj3 = 0 ;
3046 char *kwnames[] = {
3047 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3048 };
3049
3050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3051 {
3052 arg1 = wxString_in_helper(obj0);
3053 if (arg1 == NULL) SWIG_fail;
3054 temp1 = True;
3055 }
3056 {
3057 arg2 = wxString_in_helper(obj1);
3058 if (arg2 == NULL) SWIG_fail;
3059 temp2 = True;
3060 }
3061 if (obj2) {
3062 {
3063 arg3 = wxString_in_helper(obj2);
3064 if (arg3 == NULL) SWIG_fail;
3065 temp3 = True;
3066 }
3067 }
3068 if (obj3) {
3069 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3071 }
3072 {
0439c23b 3073 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3074 PyThreadState* __tstate = wxPyBeginAllowThreads();
3075 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3076
3077 wxPyEndAllowThreads(__tstate);
0439c23b 3078 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3079 }
3080 {
3081#if wxUSE_UNICODE
3082 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3083#else
3084 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3085#endif
3086 }
3087 {
3088 if (temp1)
3089 delete arg1;
3090 }
3091 {
3092 if (temp2)
3093 delete arg2;
3094 }
3095 {
3096 if (temp3)
3097 delete arg3;
3098 }
3099 return resultobj;
3100 fail:
3101 {
3102 if (temp1)
3103 delete arg1;
3104 }
3105 {
3106 if (temp2)
3107 delete arg2;
3108 }
3109 {
3110 if (temp3)
3111 delete arg3;
3112 }
3113 return NULL;
3114}
3115
3116
3117static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3118 PyObject *resultobj;
3119 wxString *arg1 = 0 ;
3120 wxString *arg2 = 0 ;
3121 wxString const &arg3_defvalue = wxPyEmptyString ;
3122 wxString *arg3 = (wxString *) &arg3_defvalue ;
3123 wxWindow *arg4 = (wxWindow *) NULL ;
3124 wxString result;
3125 bool temp1 = False ;
3126 bool temp2 = False ;
3127 bool temp3 = False ;
3128 PyObject * obj0 = 0 ;
3129 PyObject * obj1 = 0 ;
3130 PyObject * obj2 = 0 ;
3131 PyObject * obj3 = 0 ;
3132 char *kwnames[] = {
3133 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3134 };
3135
3136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3137 {
3138 arg1 = wxString_in_helper(obj0);
3139 if (arg1 == NULL) SWIG_fail;
3140 temp1 = True;
3141 }
3142 {
3143 arg2 = wxString_in_helper(obj1);
3144 if (arg2 == NULL) SWIG_fail;
3145 temp2 = True;
3146 }
3147 if (obj2) {
3148 {
3149 arg3 = wxString_in_helper(obj2);
3150 if (arg3 == NULL) SWIG_fail;
3151 temp3 = True;
3152 }
3153 }
3154 if (obj3) {
3155 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3157 }
3158 {
0439c23b 3159 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3160 PyThreadState* __tstate = wxPyBeginAllowThreads();
3161 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3162
3163 wxPyEndAllowThreads(__tstate);
0439c23b 3164 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3165 }
3166 {
3167#if wxUSE_UNICODE
3168 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3169#else
3170 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3171#endif
3172 }
3173 {
3174 if (temp1)
3175 delete arg1;
3176 }
3177 {
3178 if (temp2)
3179 delete arg2;
3180 }
3181 {
3182 if (temp3)
3183 delete arg3;
3184 }
3185 return resultobj;
3186 fail:
3187 {
3188 if (temp1)
3189 delete arg1;
3190 }
3191 {
3192 if (temp2)
3193 delete arg2;
3194 }
3195 {
3196 if (temp3)
3197 delete arg3;
3198 }
3199 return NULL;
3200}
3201
3202
3203static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3204 PyObject *resultobj;
3205 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3206 wxString *arg1 = (wxString *) &arg1_defvalue ;
3207 wxString const &arg2_defvalue = wxPyEmptyString ;
3208 wxString *arg2 = (wxString *) &arg2_defvalue ;
3209 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3210 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3211 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3212 wxWindow *arg5 = (wxWindow *) NULL ;
3213 wxString result;
3214 bool temp1 = False ;
3215 bool temp2 = False ;
3216 wxPoint temp4 ;
3217 PyObject * obj0 = 0 ;
3218 PyObject * obj1 = 0 ;
3219 PyObject * obj2 = 0 ;
3220 PyObject * obj3 = 0 ;
3221 PyObject * obj4 = 0 ;
3222 char *kwnames[] = {
3223 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3224 };
3225
3226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3227 if (obj0) {
3228 {
3229 arg1 = wxString_in_helper(obj0);
3230 if (arg1 == NULL) SWIG_fail;
3231 temp1 = True;
3232 }
3233 }
3234 if (obj1) {
3235 {
3236 arg2 = wxString_in_helper(obj1);
3237 if (arg2 == NULL) SWIG_fail;
3238 temp2 = True;
3239 }
3240 }
3241 if (obj2) {
3242 arg3 = (long) SWIG_AsLong(obj2);
3243 if (PyErr_Occurred()) SWIG_fail;
3244 }
3245 if (obj3) {
3246 {
3247 arg4 = &temp4;
3248 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3249 }
3250 }
3251 if (obj4) {
3252 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3254 }
3255 {
0439c23b 3256 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3257 PyThreadState* __tstate = wxPyBeginAllowThreads();
3258 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3259
3260 wxPyEndAllowThreads(__tstate);
0439c23b 3261 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3262 }
3263 {
3264#if wxUSE_UNICODE
3265 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3266#else
3267 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3268#endif
3269 }
3270 {
3271 if (temp1)
3272 delete arg1;
3273 }
3274 {
3275 if (temp2)
3276 delete arg2;
3277 }
3278 return resultobj;
3279 fail:
3280 {
3281 if (temp1)
3282 delete arg1;
3283 }
3284 {
3285 if (temp2)
3286 delete arg2;
3287 }
3288 return NULL;
3289}
3290
3291
3292static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3293 PyObject *resultobj;
3294 wxString *arg1 = 0 ;
3295 wxString const &arg2_defvalue = wxPyEmptyString ;
3296 wxString *arg2 = (wxString *) &arg2_defvalue ;
3297 wxString const &arg3_defvalue = wxPyEmptyString ;
3298 wxString *arg3 = (wxString *) &arg3_defvalue ;
3299 wxWindow *arg4 = (wxWindow *) NULL ;
3300 int arg5 = (int) -1 ;
3301 int arg6 = (int) -1 ;
3302 bool arg7 = (bool) True ;
3303 wxString result;
3304 bool temp1 = False ;
3305 bool temp2 = False ;
3306 bool temp3 = False ;
3307 PyObject * obj0 = 0 ;
3308 PyObject * obj1 = 0 ;
3309 PyObject * obj2 = 0 ;
3310 PyObject * obj3 = 0 ;
3311 PyObject * obj4 = 0 ;
3312 PyObject * obj5 = 0 ;
3313 PyObject * obj6 = 0 ;
3314 char *kwnames[] = {
3315 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3316 };
3317
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3319 {
3320 arg1 = wxString_in_helper(obj0);
3321 if (arg1 == NULL) SWIG_fail;
3322 temp1 = True;
3323 }
3324 if (obj1) {
3325 {
3326 arg2 = wxString_in_helper(obj1);
3327 if (arg2 == NULL) SWIG_fail;
3328 temp2 = True;
3329 }
3330 }
3331 if (obj2) {
3332 {
3333 arg3 = wxString_in_helper(obj2);
3334 if (arg3 == NULL) SWIG_fail;
3335 temp3 = True;
3336 }
3337 }
3338 if (obj3) {
3339 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3341 }
3342 if (obj4) {
3343 arg5 = (int) SWIG_AsInt(obj4);
3344 if (PyErr_Occurred()) SWIG_fail;
3345 }
3346 if (obj5) {
3347 arg6 = (int) SWIG_AsInt(obj5);
3348 if (PyErr_Occurred()) SWIG_fail;
3349 }
3350 if (obj6) {
3351 arg7 = (bool) SWIG_AsBool(obj6);
3352 if (PyErr_Occurred()) SWIG_fail;
3353 }
3354 {
0439c23b 3355 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3356 PyThreadState* __tstate = wxPyBeginAllowThreads();
3357 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3358
3359 wxPyEndAllowThreads(__tstate);
0439c23b 3360 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3361 }
3362 {
3363#if wxUSE_UNICODE
3364 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3365#else
3366 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3367#endif
3368 }
3369 {
3370 if (temp1)
3371 delete arg1;
3372 }
3373 {
3374 if (temp2)
3375 delete arg2;
3376 }
3377 {
3378 if (temp3)
3379 delete arg3;
3380 }
3381 return resultobj;
3382 fail:
3383 {
3384 if (temp1)
3385 delete arg1;
3386 }
3387 {
3388 if (temp2)
3389 delete arg2;
3390 }
3391 {
3392 if (temp3)
3393 delete arg3;
3394 }
3395 return NULL;
3396}
3397
3398
3399static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3400 PyObject *resultobj;
3401 wxString *arg1 = 0 ;
3402 wxString const &arg2_defvalue = wxPyEmptyString ;
3403 wxString *arg2 = (wxString *) &arg2_defvalue ;
3404 wxString const &arg3_defvalue = wxPyEmptyString ;
3405 wxString *arg3 = (wxString *) &arg3_defvalue ;
3406 wxWindow *arg4 = (wxWindow *) NULL ;
3407 wxString result;
3408 bool temp1 = False ;
3409 bool temp2 = False ;
3410 bool temp3 = False ;
3411 PyObject * obj0 = 0 ;
3412 PyObject * obj1 = 0 ;
3413 PyObject * obj2 = 0 ;
3414 PyObject * obj3 = 0 ;
3415 char *kwnames[] = {
3416 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3417 };
3418
3419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3420 {
3421 arg1 = wxString_in_helper(obj0);
3422 if (arg1 == NULL) SWIG_fail;
3423 temp1 = True;
3424 }
3425 if (obj1) {
3426 {
3427 arg2 = wxString_in_helper(obj1);
3428 if (arg2 == NULL) SWIG_fail;
3429 temp2 = True;
3430 }
3431 }
3432 if (obj2) {
3433 {
3434 arg3 = wxString_in_helper(obj2);
3435 if (arg3 == NULL) SWIG_fail;
3436 temp3 = True;
3437 }
3438 }
3439 if (obj3) {
3440 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3442 }
3443 {
0439c23b 3444 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3445 PyThreadState* __tstate = wxPyBeginAllowThreads();
3446 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3447
3448 wxPyEndAllowThreads(__tstate);
0439c23b 3449 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3450 }
3451 {
3452#if wxUSE_UNICODE
3453 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3454#else
3455 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3456#endif
3457 }
3458 {
3459 if (temp1)
3460 delete arg1;
3461 }
3462 {
3463 if (temp2)
3464 delete arg2;
3465 }
3466 {
3467 if (temp3)
3468 delete arg3;
3469 }
3470 return resultobj;
3471 fail:
3472 {
3473 if (temp1)
3474 delete arg1;
3475 }
3476 {
3477 if (temp2)
3478 delete arg2;
3479 }
3480 {
3481 if (temp3)
3482 delete arg3;
3483 }
3484 return NULL;
3485}
3486
3487
3488static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3489 PyObject *resultobj;
3490 wxString *arg1 = 0 ;
3491 wxString *arg2 = 0 ;
3492 int arg3 ;
3493 wxString *arg4 = (wxString *) 0 ;
3494 wxWindow *arg5 = (wxWindow *) NULL ;
3495 int arg6 = (int) -1 ;
3496 int arg7 = (int) -1 ;
3497 bool arg8 = (bool) True ;
3498 int arg9 = (int) 150 ;
3499 int arg10 = (int) 200 ;
3500 wxString result;
3501 bool temp1 = False ;
3502 bool temp2 = False ;
3503 PyObject * obj0 = 0 ;
3504 PyObject * obj1 = 0 ;
3505 PyObject * obj2 = 0 ;
3506 PyObject * obj3 = 0 ;
3507 PyObject * obj4 = 0 ;
3508 PyObject * obj5 = 0 ;
3509 PyObject * obj6 = 0 ;
3510 PyObject * obj7 = 0 ;
3511 PyObject * obj8 = 0 ;
3512 char *kwnames[] = {
3513 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3514 };
3515
3516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3517 {
3518 arg1 = wxString_in_helper(obj0);
3519 if (arg1 == NULL) SWIG_fail;
3520 temp1 = True;
3521 }
3522 {
3523 arg2 = wxString_in_helper(obj1);
3524 if (arg2 == NULL) SWIG_fail;
3525 temp2 = True;
3526 }
3527 {
3528 arg3 = PyList_Size(obj2);
3529 arg4 = wxString_LIST_helper(obj2);
3530 if (arg4 == NULL) SWIG_fail;
3531 }
3532 if (obj3) {
3533 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3535 }
3536 if (obj4) {
3537 arg6 = (int) SWIG_AsInt(obj4);
3538 if (PyErr_Occurred()) SWIG_fail;
3539 }
3540 if (obj5) {
3541 arg7 = (int) SWIG_AsInt(obj5);
3542 if (PyErr_Occurred()) SWIG_fail;
3543 }
3544 if (obj6) {
3545 arg8 = (bool) SWIG_AsBool(obj6);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 }
3548 if (obj7) {
3549 arg9 = (int) SWIG_AsInt(obj7);
3550 if (PyErr_Occurred()) SWIG_fail;
3551 }
3552 if (obj8) {
3553 arg10 = (int) SWIG_AsInt(obj8);
3554 if (PyErr_Occurred()) SWIG_fail;
3555 }
3556 {
0439c23b 3557 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3560
3561 wxPyEndAllowThreads(__tstate);
0439c23b 3562 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3563 }
3564 {
3565#if wxUSE_UNICODE
3566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3567#else
3568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3569#endif
3570 }
3571 {
3572 if (temp1)
3573 delete arg1;
3574 }
3575 {
3576 if (temp2)
3577 delete arg2;
3578 }
3579 {
3580 if (arg4) delete [] arg4;
3581 }
3582 return resultobj;
3583 fail:
3584 {
3585 if (temp1)
3586 delete arg1;
3587 }
3588 {
3589 if (temp2)
3590 delete arg2;
3591 }
3592 {
3593 if (arg4) delete [] arg4;
3594 }
3595 return NULL;
3596}
3597
3598
3599static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3600 PyObject *resultobj;
3601 wxString *arg1 = 0 ;
3602 wxString *arg2 = 0 ;
3603 int arg3 ;
3604 wxString *arg4 = (wxString *) 0 ;
3605 wxWindow *arg5 = (wxWindow *) NULL ;
3606 int arg6 = (int) -1 ;
3607 int arg7 = (int) -1 ;
3608 bool arg8 = (bool) True ;
3609 int arg9 = (int) 150 ;
3610 int arg10 = (int) 200 ;
3611 int result;
3612 bool temp1 = False ;
3613 bool temp2 = False ;
3614 PyObject * obj0 = 0 ;
3615 PyObject * obj1 = 0 ;
3616 PyObject * obj2 = 0 ;
3617 PyObject * obj3 = 0 ;
3618 PyObject * obj4 = 0 ;
3619 PyObject * obj5 = 0 ;
3620 PyObject * obj6 = 0 ;
3621 PyObject * obj7 = 0 ;
3622 PyObject * obj8 = 0 ;
3623 char *kwnames[] = {
3624 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3625 };
3626
3627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3628 {
3629 arg1 = wxString_in_helper(obj0);
3630 if (arg1 == NULL) SWIG_fail;
3631 temp1 = True;
3632 }
3633 {
3634 arg2 = wxString_in_helper(obj1);
3635 if (arg2 == NULL) SWIG_fail;
3636 temp2 = True;
3637 }
3638 {
3639 arg3 = PyList_Size(obj2);
3640 arg4 = wxString_LIST_helper(obj2);
3641 if (arg4 == NULL) SWIG_fail;
3642 }
3643 if (obj3) {
3644 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3646 }
3647 if (obj4) {
3648 arg6 = (int) SWIG_AsInt(obj4);
3649 if (PyErr_Occurred()) SWIG_fail;
3650 }
3651 if (obj5) {
3652 arg7 = (int) SWIG_AsInt(obj5);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 }
3655 if (obj6) {
3656 arg8 = (bool) SWIG_AsBool(obj6);
3657 if (PyErr_Occurred()) SWIG_fail;
3658 }
3659 if (obj7) {
3660 arg9 = (int) SWIG_AsInt(obj7);
3661 if (PyErr_Occurred()) SWIG_fail;
3662 }
3663 if (obj8) {
3664 arg10 = (int) SWIG_AsInt(obj8);
3665 if (PyErr_Occurred()) SWIG_fail;
3666 }
3667 {
0439c23b 3668 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3669 PyThreadState* __tstate = wxPyBeginAllowThreads();
3670 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3671
3672 wxPyEndAllowThreads(__tstate);
0439c23b 3673 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3674 }
3675 resultobj = SWIG_FromInt((int)result);
3676 {
3677 if (temp1)
3678 delete arg1;
3679 }
3680 {
3681 if (temp2)
3682 delete arg2;
3683 }
3684 {
3685 if (arg4) delete [] arg4;
3686 }
3687 return resultobj;
3688 fail:
3689 {
3690 if (temp1)
3691 delete arg1;
3692 }
3693 {
3694 if (temp2)
3695 delete arg2;
3696 }
3697 {
3698 if (arg4) delete [] arg4;
3699 }
3700 return NULL;
3701}
3702
3703
3704static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3705 PyObject *resultobj;
3706 wxString *arg1 = 0 ;
3707 wxString const &arg2_defvalue = wxPyEmptyString ;
3708 wxString *arg2 = (wxString *) &arg2_defvalue ;
3709 int arg3 = (int) wxOK|wxCENTRE ;
3710 wxWindow *arg4 = (wxWindow *) NULL ;
3711 int arg5 = (int) -1 ;
3712 int arg6 = (int) -1 ;
3713 int result;
3714 bool temp1 = False ;
3715 bool temp2 = False ;
3716 PyObject * obj0 = 0 ;
3717 PyObject * obj1 = 0 ;
3718 PyObject * obj2 = 0 ;
3719 PyObject * obj3 = 0 ;
3720 PyObject * obj4 = 0 ;
3721 PyObject * obj5 = 0 ;
3722 char *kwnames[] = {
3723 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3724 };
3725
3726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3727 {
3728 arg1 = wxString_in_helper(obj0);
3729 if (arg1 == NULL) SWIG_fail;
3730 temp1 = True;
3731 }
3732 if (obj1) {
3733 {
3734 arg2 = wxString_in_helper(obj1);
3735 if (arg2 == NULL) SWIG_fail;
3736 temp2 = True;
3737 }
3738 }
3739 if (obj2) {
3740 arg3 = (int) SWIG_AsInt(obj2);
3741 if (PyErr_Occurred()) SWIG_fail;
3742 }
3743 if (obj3) {
3744 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3746 }
3747 if (obj4) {
3748 arg5 = (int) SWIG_AsInt(obj4);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 if (obj5) {
3752 arg6 = (int) SWIG_AsInt(obj5);
3753 if (PyErr_Occurred()) SWIG_fail;
3754 }
3755 {
0439c23b 3756 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3759
3760 wxPyEndAllowThreads(__tstate);
0439c23b 3761 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3762 }
3763 resultobj = SWIG_FromInt((int)result);
3764 {
3765 if (temp1)
3766 delete arg1;
3767 }
3768 {
3769 if (temp2)
3770 delete arg2;
3771 }
3772 return resultobj;
3773 fail:
3774 {
3775 if (temp1)
3776 delete arg1;
3777 }
3778 {
3779 if (temp2)
3780 delete arg2;
3781 }
3782 return NULL;
3783}
3784
3785
3786static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3787 PyObject *resultobj;
3788 wxString *arg1 = 0 ;
3789 wxString *arg2 = 0 ;
3790 wxString *arg3 = 0 ;
3791 long arg4 ;
3792 long arg5 = (long) 0 ;
3793 long arg6 = (long) 100 ;
3794 wxWindow *arg7 = (wxWindow *) NULL ;
3795 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3796 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3797 long result;
3798 bool temp1 = False ;
3799 bool temp2 = False ;
3800 bool temp3 = False ;
3801 wxPoint temp8 ;
3802 PyObject * obj0 = 0 ;
3803 PyObject * obj1 = 0 ;
3804 PyObject * obj2 = 0 ;
3805 PyObject * obj3 = 0 ;
3806 PyObject * obj4 = 0 ;
3807 PyObject * obj5 = 0 ;
3808 PyObject * obj6 = 0 ;
3809 PyObject * obj7 = 0 ;
3810 char *kwnames[] = {
3811 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3812 };
3813
3814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3815 {
3816 arg1 = wxString_in_helper(obj0);
3817 if (arg1 == NULL) SWIG_fail;
3818 temp1 = True;
3819 }
3820 {
3821 arg2 = wxString_in_helper(obj1);
3822 if (arg2 == NULL) SWIG_fail;
3823 temp2 = True;
3824 }
3825 {
3826 arg3 = wxString_in_helper(obj2);
3827 if (arg3 == NULL) SWIG_fail;
3828 temp3 = True;
3829 }
3830 arg4 = (long) SWIG_AsLong(obj3);
3831 if (PyErr_Occurred()) SWIG_fail;
3832 if (obj4) {
3833 arg5 = (long) SWIG_AsLong(obj4);
3834 if (PyErr_Occurred()) SWIG_fail;
3835 }
3836 if (obj5) {
3837 arg6 = (long) SWIG_AsLong(obj5);
3838 if (PyErr_Occurred()) SWIG_fail;
3839 }
3840 if (obj6) {
3841 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3843 }
3844 if (obj7) {
3845 {
3846 arg8 = &temp8;
3847 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3848 }
3849 }
3850 {
0439c23b 3851 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3854
3855 wxPyEndAllowThreads(__tstate);
0439c23b 3856 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3857 }
3858 resultobj = SWIG_FromLong((long)result);
3859 {
3860 if (temp1)
3861 delete arg1;
3862 }
3863 {
3864 if (temp2)
3865 delete arg2;
3866 }
3867 {
3868 if (temp3)
3869 delete arg3;
3870 }
3871 return resultobj;
3872 fail:
3873 {
3874 if (temp1)
3875 delete arg1;
3876 }
3877 {
3878 if (temp2)
3879 delete arg2;
3880 }
3881 {
3882 if (temp3)
3883 delete arg3;
3884 }
3885 return NULL;
3886}
3887
3888
3889static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3890 PyObject *resultobj;
3891 bool result;
3892 char *kwnames[] = {
3893 NULL
3894 };
3895
3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3897 {
0439c23b 3898 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3899 PyThreadState* __tstate = wxPyBeginAllowThreads();
3900 result = (bool)wxColourDisplay();
3901
3902 wxPyEndAllowThreads(__tstate);
0439c23b 3903 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3904 }
3905 {
3906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3907 }
3908 return resultobj;
3909 fail:
3910 return NULL;
3911}
3912
3913
3914static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3915 PyObject *resultobj;
3916 int result;
3917 char *kwnames[] = {
3918 NULL
3919 };
3920
3921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3922 {
0439c23b 3923 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 result = (int)wxDisplayDepth();
3926
3927 wxPyEndAllowThreads(__tstate);
0439c23b 3928 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3929 }
3930 resultobj = SWIG_FromInt((int)result);
3931 return resultobj;
3932 fail:
3933 return NULL;
3934}
3935
3936
3937static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3938 PyObject *resultobj;
3939 int result;
3940 char *kwnames[] = {
3941 NULL
3942 };
3943
3944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3945 {
0439c23b 3946 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3947 PyThreadState* __tstate = wxPyBeginAllowThreads();
3948 result = (int)wxGetDisplayDepth();
3949
3950 wxPyEndAllowThreads(__tstate);
0439c23b 3951 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3952 }
3953 resultobj = SWIG_FromInt((int)result);
3954 return resultobj;
3955 fail:
3956 return NULL;
3957}
3958
3959
3960static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3961 PyObject *resultobj;
3962 int *arg1 = (int *) 0 ;
3963 int *arg2 = (int *) 0 ;
3964 int temp1 ;
3965 int temp2 ;
3966 char *kwnames[] = {
3967 NULL
3968 };
3969
3970 arg1 = &temp1;
3971 arg2 = &temp2;
3972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3973 {
0439c23b 3974 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3975 PyThreadState* __tstate = wxPyBeginAllowThreads();
3976 wxDisplaySize(arg1,arg2);
3977
3978 wxPyEndAllowThreads(__tstate);
0439c23b 3979 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3980 }
3981 Py_INCREF(Py_None); resultobj = Py_None;
3982 {
3983 PyObject *o = PyInt_FromLong((long) (*arg1));
3984 resultobj = t_output_helper(resultobj,o);
3985 }
3986 {
3987 PyObject *o = PyInt_FromLong((long) (*arg2));
3988 resultobj = t_output_helper(resultobj,o);
3989 }
3990 return resultobj;
3991 fail:
3992 return NULL;
3993}
3994
3995
3996static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3997 PyObject *resultobj;
3998 wxSize result;
3999 char *kwnames[] = {
4000 NULL
4001 };
4002
4003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4004 {
0439c23b 4005 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 result = wxGetDisplaySize();
4008
4009 wxPyEndAllowThreads(__tstate);
0439c23b 4010 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4011 }
4012 {
4013 wxSize * resultptr;
4014 resultptr = new wxSize((wxSize &) result);
4015 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4016 }
4017 return resultobj;
4018 fail:
4019 return NULL;
4020}
4021
4022
4023static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4024 PyObject *resultobj;
4025 int *arg1 = (int *) 0 ;
4026 int *arg2 = (int *) 0 ;
4027 int temp1 ;
4028 int temp2 ;
4029 char *kwnames[] = {
4030 NULL
4031 };
4032
4033 arg1 = &temp1;
4034 arg2 = &temp2;
4035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4036 {
0439c23b 4037 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4038 PyThreadState* __tstate = wxPyBeginAllowThreads();
4039 wxDisplaySizeMM(arg1,arg2);
4040
4041 wxPyEndAllowThreads(__tstate);
0439c23b 4042 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4043 }
4044 Py_INCREF(Py_None); resultobj = Py_None;
4045 {
4046 PyObject *o = PyInt_FromLong((long) (*arg1));
4047 resultobj = t_output_helper(resultobj,o);
4048 }
4049 {
4050 PyObject *o = PyInt_FromLong((long) (*arg2));
4051 resultobj = t_output_helper(resultobj,o);
4052 }
4053 return resultobj;
4054 fail:
4055 return NULL;
4056}
4057
4058
4059static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4060 PyObject *resultobj;
4061 wxSize result;
4062 char *kwnames[] = {
4063 NULL
4064 };
4065
4066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4067 {
0439c23b 4068 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4069 PyThreadState* __tstate = wxPyBeginAllowThreads();
4070 result = wxGetDisplaySizeMM();
4071
4072 wxPyEndAllowThreads(__tstate);
0439c23b 4073 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4074 }
4075 {
4076 wxSize * resultptr;
4077 resultptr = new wxSize((wxSize &) result);
4078 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4079 }
4080 return resultobj;
4081 fail:
4082 return NULL;
4083}
4084
4085
4086static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4087 PyObject *resultobj;
4088 int *arg1 = (int *) 0 ;
4089 int *arg2 = (int *) 0 ;
4090 int *arg3 = (int *) 0 ;
4091 int *arg4 = (int *) 0 ;
4092 int temp1 ;
4093 int temp2 ;
4094 int temp3 ;
4095 int temp4 ;
4096 char *kwnames[] = {
4097 NULL
4098 };
4099
4100 arg1 = &temp1;
4101 arg2 = &temp2;
4102 arg3 = &temp3;
4103 arg4 = &temp4;
4104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4105 {
0439c23b 4106 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4109
4110 wxPyEndAllowThreads(__tstate);
0439c23b 4111 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4112 }
4113 Py_INCREF(Py_None); resultobj = Py_None;
4114 {
4115 PyObject *o = PyInt_FromLong((long) (*arg1));
4116 resultobj = t_output_helper(resultobj,o);
4117 }
4118 {
4119 PyObject *o = PyInt_FromLong((long) (*arg2));
4120 resultobj = t_output_helper(resultobj,o);
4121 }
4122 {
4123 PyObject *o = PyInt_FromLong((long) (*arg3));
4124 resultobj = t_output_helper(resultobj,o);
4125 }
4126 {
4127 PyObject *o = PyInt_FromLong((long) (*arg4));
4128 resultobj = t_output_helper(resultobj,o);
4129 }
4130 return resultobj;
4131 fail:
4132 return NULL;
4133}
4134
4135
4136static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4137 PyObject *resultobj;
4138 wxRect result;
4139 char *kwnames[] = {
4140 NULL
4141 };
4142
4143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4144 {
0439c23b 4145 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4146 PyThreadState* __tstate = wxPyBeginAllowThreads();
4147 result = wxGetClientDisplayRect();
4148
4149 wxPyEndAllowThreads(__tstate);
0439c23b 4150 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4151 }
4152 {
4153 wxRect * resultptr;
4154 resultptr = new wxRect((wxRect &) result);
4155 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4156 }
4157 return resultobj;
4158 fail:
4159 return NULL;
4160}
4161
4162
4163static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4164 PyObject *resultobj;
4165 wxCursor *arg1 = 0 ;
4166 PyObject * obj0 = 0 ;
4167 char *kwnames[] = {
4168 (char *) "cursor", NULL
4169 };
4170
4171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4173 SWIG_POINTER_EXCEPTION | 0)) == -1)
4174 SWIG_fail;
4175 if (arg1 == NULL) {
4176 PyErr_SetString(PyExc_TypeError,"null reference");
4177 SWIG_fail;
4178 }
4179 {
0439c23b 4180 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4181 PyThreadState* __tstate = wxPyBeginAllowThreads();
4182 wxSetCursor(*arg1);
4183
4184 wxPyEndAllowThreads(__tstate);
0439c23b 4185 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4186 }
4187 Py_INCREF(Py_None); resultobj = Py_None;
4188 return resultobj;
4189 fail:
4190 return NULL;
4191}
4192
4193
4194static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4195 PyObject *resultobj;
4196 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4197 PyObject * obj0 = 0 ;
4198 char *kwnames[] = {
4199 (char *) "cursor", NULL
4200 };
4201
4202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4203 if (obj0) {
4204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4206 }
4207 {
0439c23b 4208 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4209 PyThreadState* __tstate = wxPyBeginAllowThreads();
4210 wxBeginBusyCursor(arg1);
4211
4212 wxPyEndAllowThreads(__tstate);
0439c23b 4213 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4214 }
4215 Py_INCREF(Py_None); resultobj = Py_None;
4216 return resultobj;
4217 fail:
4218 return NULL;
4219}
4220
4221
4222static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj;
4224 wxWindow *result;
4225 char *kwnames[] = {
4226 NULL
4227 };
4228
4229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4230 {
0439c23b 4231 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 result = (wxWindow *)wxGetActiveWindow();
4234
4235 wxPyEndAllowThreads(__tstate);
0439c23b 4236 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4237 }
4238 {
4239 resultobj = wxPyMake_wxObject(result);
4240 }
4241 return resultobj;
4242 fail:
4243 return NULL;
4244}
4245
4246
4247static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4248 PyObject *resultobj;
4249 wxPoint *arg1 = 0 ;
4250 wxWindow *result;
4251 wxPoint temp1 ;
4252 PyObject * obj0 = 0 ;
4253 char *kwnames[] = {
4254 (char *) "pt", NULL
4255 };
4256
4257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4258 {
4259 arg1 = &temp1;
4260 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4261 }
4262 {
0439c23b 4263 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4264 PyThreadState* __tstate = wxPyBeginAllowThreads();
4265 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4266
4267 wxPyEndAllowThreads(__tstate);
0439c23b 4268 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4269 }
4270 {
4271 resultobj = wxPyMake_wxObject(result);
4272 }
4273 return resultobj;
4274 fail:
4275 return NULL;
4276}
4277
4278
4279static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4280 PyObject *resultobj;
4281 wxPoint *arg1 = 0 ;
4282 wxWindow *result;
4283 wxPoint temp1 ;
4284 PyObject * obj0 = 0 ;
4285 char *kwnames[] = {
4286 (char *) "pt", NULL
4287 };
4288
4289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4290 {
4291 arg1 = &temp1;
4292 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4293 }
4294 {
0439c23b 4295 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
4297 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4298
4299 wxPyEndAllowThreads(__tstate);
0439c23b 4300 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4301 }
4302 {
4303 resultobj = wxPyMake_wxObject(result);
4304 }
4305 return resultobj;
4306 fail:
4307 return NULL;
4308}
4309
4310
4311static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4312 PyObject *resultobj;
4313 wxWindow *arg1 = (wxWindow *) 0 ;
4314 wxWindow *result;
4315 PyObject * obj0 = 0 ;
4316 char *kwnames[] = {
4317 (char *) "win", NULL
4318 };
4319
4320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4323 {
0439c23b 4324 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4325 PyThreadState* __tstate = wxPyBeginAllowThreads();
4326 result = (wxWindow *)wxGetTopLevelParent(arg1);
4327
4328 wxPyEndAllowThreads(__tstate);
0439c23b 4329 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4330 }
4331 {
4332 resultobj = wxPyMake_wxObject(result);
4333 }
4334 return resultobj;
4335 fail:
4336 return NULL;
4337}
4338
4339
4340static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj;
4342 int arg1 ;
4343 bool result;
4344 PyObject * obj0 = 0 ;
4345 char *kwnames[] = {
4346 (char *) "key", NULL
4347 };
4348
4349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4350 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4351 if (PyErr_Occurred()) SWIG_fail;
4352 {
0439c23b 4353 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4356
4357 wxPyEndAllowThreads(__tstate);
0439c23b 4358 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4359 }
4360 {
4361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4362 }
4363 return resultobj;
4364 fail:
4365 return NULL;
4366}
4367
4368
4369static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4370 PyObject *resultobj;
4371 char *kwnames[] = {
4372 NULL
4373 };
4374
4375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4376 {
0439c23b 4377 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4378 PyThreadState* __tstate = wxPyBeginAllowThreads();
4379 wxWakeUpMainThread();
4380
4381 wxPyEndAllowThreads(__tstate);
0439c23b 4382 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4383 }
4384 Py_INCREF(Py_None); resultobj = Py_None;
4385 return resultobj;
4386 fail:
4387 return NULL;
4388}
4389
4390
4391static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4392 PyObject *resultobj;
4393 char *kwnames[] = {
4394 NULL
4395 };
4396
4397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4398 {
0439c23b 4399 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4400 PyThreadState* __tstate = wxPyBeginAllowThreads();
4401 wxMutexGuiEnter();
4402
4403 wxPyEndAllowThreads(__tstate);
0439c23b 4404 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4405 }
4406 Py_INCREF(Py_None); resultobj = Py_None;
4407 return resultobj;
4408 fail:
4409 return NULL;
4410}
4411
4412
4413static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4414 PyObject *resultobj;
4415 char *kwnames[] = {
4416 NULL
4417 };
4418
4419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4420 {
0439c23b 4421 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4422 PyThreadState* __tstate = wxPyBeginAllowThreads();
4423 wxMutexGuiLeave();
4424
4425 wxPyEndAllowThreads(__tstate);
0439c23b 4426 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4427 }
4428 Py_INCREF(Py_None); resultobj = Py_None;
4429 return resultobj;
4430 fail:
4431 return NULL;
4432}
4433
4434
4435static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4436 PyObject *resultobj;
4437 wxMutexGuiLocker *result;
4438 char *kwnames[] = {
4439 NULL
4440 };
4441
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4443 {
0439c23b 4444 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4447
4448 wxPyEndAllowThreads(__tstate);
0439c23b 4449 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4450 }
4451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4452 return resultobj;
4453 fail:
4454 return NULL;
4455}
4456
4457
4458static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4459 PyObject *resultobj;
4460 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4461 PyObject * obj0 = 0 ;
4462 char *kwnames[] = {
4463 (char *) "self", NULL
4464 };
4465
4466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4469 {
4470 PyThreadState* __tstate = wxPyBeginAllowThreads();
4471 delete arg1;
4472
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 Py_INCREF(Py_None); resultobj = Py_None;
4477 return resultobj;
4478 fail:
4479 return NULL;
4480}
4481
4482
4483static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4484 PyObject *obj;
4485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4486 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4487 Py_INCREF(obj);
4488 return Py_BuildValue((char *)"");
4489}
4490static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4491 PyObject *resultobj;
4492 bool result;
4493 char *kwnames[] = {
4494 NULL
4495 };
4496
4497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4498 {
4499 PyThreadState* __tstate = wxPyBeginAllowThreads();
4500 result = (bool)wxThread_IsMain();
4501
4502 wxPyEndAllowThreads(__tstate);
4503 if (PyErr_Occurred()) SWIG_fail;
4504 }
4505 {
4506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4507 }
4508 return resultobj;
4509 fail:
4510 return NULL;
4511}
4512
4513
4514static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4515 PyObject *resultobj;
4516 wxString *arg1 = 0 ;
4517 wxToolTip *result;
4518 bool temp1 = False ;
4519 PyObject * obj0 = 0 ;
4520 char *kwnames[] = {
4521 (char *) "tip", NULL
4522 };
4523
4524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4525 {
4526 arg1 = wxString_in_helper(obj0);
4527 if (arg1 == NULL) SWIG_fail;
4528 temp1 = True;
4529 }
4530 {
0439c23b 4531 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4532 PyThreadState* __tstate = wxPyBeginAllowThreads();
4533 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4534
4535 wxPyEndAllowThreads(__tstate);
0439c23b 4536 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4537 }
4538 {
4539 resultobj = wxPyMake_wxObject(result);
4540 }
4541 {
4542 if (temp1)
4543 delete arg1;
4544 }
4545 return resultobj;
4546 fail:
4547 {
4548 if (temp1)
4549 delete arg1;
4550 }
4551 return NULL;
4552}
4553
4554
4555static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4556 PyObject *resultobj;
4557 wxToolTip *arg1 = (wxToolTip *) 0 ;
4558 wxString *arg2 = 0 ;
4559 bool temp2 = False ;
4560 PyObject * obj0 = 0 ;
4561 PyObject * obj1 = 0 ;
4562 char *kwnames[] = {
4563 (char *) "self",(char *) "tip", NULL
4564 };
4565
4566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4569 {
4570 arg2 = wxString_in_helper(obj1);
4571 if (arg2 == NULL) SWIG_fail;
4572 temp2 = True;
4573 }
4574 {
4575 PyThreadState* __tstate = wxPyBeginAllowThreads();
4576 (arg1)->SetTip((wxString const &)*arg2);
4577
4578 wxPyEndAllowThreads(__tstate);
4579 if (PyErr_Occurred()) SWIG_fail;
4580 }
4581 Py_INCREF(Py_None); resultobj = Py_None;
4582 {
4583 if (temp2)
4584 delete arg2;
4585 }
4586 return resultobj;
4587 fail:
4588 {
4589 if (temp2)
4590 delete arg2;
4591 }
4592 return NULL;
4593}
4594
4595
4596static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4597 PyObject *resultobj;
4598 wxToolTip *arg1 = (wxToolTip *) 0 ;
4599 wxString result;
4600 PyObject * obj0 = 0 ;
4601 char *kwnames[] = {
4602 (char *) "self", NULL
4603 };
4604
4605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4608 {
4609 PyThreadState* __tstate = wxPyBeginAllowThreads();
4610 result = (arg1)->GetTip();
4611
4612 wxPyEndAllowThreads(__tstate);
4613 if (PyErr_Occurred()) SWIG_fail;
4614 }
4615 {
4616#if wxUSE_UNICODE
4617 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4618#else
4619 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4620#endif
4621 }
4622 return resultobj;
4623 fail:
4624 return NULL;
4625}
4626
4627
4628static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4629 PyObject *resultobj;
4630 wxToolTip *arg1 = (wxToolTip *) 0 ;
4631 wxWindow *result;
4632 PyObject * obj0 = 0 ;
4633 char *kwnames[] = {
4634 (char *) "self", NULL
4635 };
4636
4637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4640 {
4641 PyThreadState* __tstate = wxPyBeginAllowThreads();
4642 result = (wxWindow *)(arg1)->GetWindow();
4643
4644 wxPyEndAllowThreads(__tstate);
4645 if (PyErr_Occurred()) SWIG_fail;
4646 }
4647 {
4648 resultobj = wxPyMake_wxObject(result);
4649 }
4650 return resultobj;
4651 fail:
4652 return NULL;
4653}
4654
4655
4656static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4657 PyObject *resultobj;
4658 bool arg1 ;
4659 PyObject * obj0 = 0 ;
4660 char *kwnames[] = {
4661 (char *) "flag", NULL
4662 };
4663
4664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4665 arg1 = (bool) SWIG_AsBool(obj0);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 {
4668 PyThreadState* __tstate = wxPyBeginAllowThreads();
4669 wxToolTip::Enable(arg1);
4670
4671 wxPyEndAllowThreads(__tstate);
4672 if (PyErr_Occurred()) SWIG_fail;
4673 }
4674 Py_INCREF(Py_None); resultobj = Py_None;
4675 return resultobj;
4676 fail:
4677 return NULL;
4678}
4679
4680
4681static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4682 PyObject *resultobj;
4683 long arg1 ;
4684 PyObject * obj0 = 0 ;
4685 char *kwnames[] = {
4686 (char *) "milliseconds", NULL
4687 };
4688
4689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4690 arg1 = (long) SWIG_AsLong(obj0);
4691 if (PyErr_Occurred()) SWIG_fail;
4692 {
4693 PyThreadState* __tstate = wxPyBeginAllowThreads();
4694 wxToolTip::SetDelay(arg1);
4695
4696 wxPyEndAllowThreads(__tstate);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 Py_INCREF(Py_None); resultobj = Py_None;
4700 return resultobj;
4701 fail:
4702 return NULL;
4703}
4704
4705
4706static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4707 PyObject *obj;
4708 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4709 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4710 Py_INCREF(obj);
4711 return Py_BuildValue((char *)"");
4712}
4713static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4714 PyObject *resultobj;
4715 wxWindow *arg1 = (wxWindow *) 0 ;
4716 wxSize *arg2 = 0 ;
4717 wxCaret *result;
4718 wxSize temp2 ;
4719 PyObject * obj0 = 0 ;
4720 PyObject * obj1 = 0 ;
4721 char *kwnames[] = {
4722 (char *) "window",(char *) "size", NULL
4723 };
4724
4725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4728 {
4729 arg2 = &temp2;
4730 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4731 }
4732 {
0439c23b 4733 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4734 PyThreadState* __tstate = wxPyBeginAllowThreads();
4735 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4736
4737 wxPyEndAllowThreads(__tstate);
0439c23b 4738 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4739 }
4740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4741 return resultobj;
4742 fail:
4743 return NULL;
4744}
4745
4746
4747static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4748 PyObject *resultobj;
4749 wxCaret *arg1 = (wxCaret *) 0 ;
4750 PyObject * obj0 = 0 ;
4751 char *kwnames[] = {
4752 (char *) "self", NULL
4753 };
4754
4755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4758 {
4759 PyThreadState* __tstate = wxPyBeginAllowThreads();
4760 delete arg1;
4761
4762 wxPyEndAllowThreads(__tstate);
4763 if (PyErr_Occurred()) SWIG_fail;
4764 }
4765 Py_INCREF(Py_None); resultobj = Py_None;
4766 return resultobj;
4767 fail:
4768 return NULL;
4769}
4770
4771
4772static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4773 PyObject *resultobj;
4774 wxCaret *arg1 = (wxCaret *) 0 ;
4775 bool result;
4776 PyObject * obj0 = 0 ;
4777 char *kwnames[] = {
4778 (char *) "self", NULL
4779 };
4780
4781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4784 {
4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
4786 result = (bool)(arg1)->IsOk();
4787
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 {
4792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4793 }
4794 return resultobj;
4795 fail:
4796 return NULL;
4797}
4798
4799
4800static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4801 PyObject *resultobj;
4802 wxCaret *arg1 = (wxCaret *) 0 ;
4803 bool result;
4804 PyObject * obj0 = 0 ;
4805 char *kwnames[] = {
4806 (char *) "self", NULL
4807 };
4808
4809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (bool)(arg1)->IsVisible();
4815
4816 wxPyEndAllowThreads(__tstate);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 {
4820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4821 }
4822 return resultobj;
4823 fail:
4824 return NULL;
4825}
4826
4827
4828static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4829 PyObject *resultobj;
4830 wxCaret *arg1 = (wxCaret *) 0 ;
4831 wxPoint result;
4832 PyObject * obj0 = 0 ;
4833 char *kwnames[] = {
4834 (char *) "self", NULL
4835 };
4836
4837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4840 {
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
4842 result = (arg1)->GetPosition();
4843
4844 wxPyEndAllowThreads(__tstate);
4845 if (PyErr_Occurred()) SWIG_fail;
4846 }
4847 {
4848 wxPoint * resultptr;
4849 resultptr = new wxPoint((wxPoint &) result);
4850 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4851 }
4852 return resultobj;
4853 fail:
4854 return NULL;
4855}
4856
4857
4858static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4859 PyObject *resultobj;
4860 wxCaret *arg1 = (wxCaret *) 0 ;
4861 int *arg2 = (int *) 0 ;
4862 int *arg3 = (int *) 0 ;
4863 int temp2 ;
4864 int temp3 ;
4865 PyObject * obj0 = 0 ;
4866 char *kwnames[] = {
4867 (char *) "self", NULL
4868 };
4869
4870 arg2 = &temp2;
4871 arg3 = &temp3;
4872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4875 {
4876 PyThreadState* __tstate = wxPyBeginAllowThreads();
4877 (arg1)->GetPosition(arg2,arg3);
4878
4879 wxPyEndAllowThreads(__tstate);
4880 if (PyErr_Occurred()) SWIG_fail;
4881 }
4882 Py_INCREF(Py_None); resultobj = Py_None;
4883 {
4884 PyObject *o = PyInt_FromLong((long) (*arg2));
4885 resultobj = t_output_helper(resultobj,o);
4886 }
4887 {
4888 PyObject *o = PyInt_FromLong((long) (*arg3));
4889 resultobj = t_output_helper(resultobj,o);
4890 }
4891 return resultobj;
4892 fail:
4893 return NULL;
4894}
4895
4896
4897static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4898 PyObject *resultobj;
4899 wxCaret *arg1 = (wxCaret *) 0 ;
4900 wxSize result;
4901 PyObject * obj0 = 0 ;
4902 char *kwnames[] = {
4903 (char *) "self", NULL
4904 };
4905
4906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4909 {
4910 PyThreadState* __tstate = wxPyBeginAllowThreads();
4911 result = (arg1)->GetSize();
4912
4913 wxPyEndAllowThreads(__tstate);
4914 if (PyErr_Occurred()) SWIG_fail;
4915 }
4916 {
4917 wxSize * resultptr;
4918 resultptr = new wxSize((wxSize &) result);
4919 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4920 }
4921 return resultobj;
4922 fail:
4923 return NULL;
4924}
4925
4926
4927static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj;
4929 wxCaret *arg1 = (wxCaret *) 0 ;
4930 int *arg2 = (int *) 0 ;
4931 int *arg3 = (int *) 0 ;
4932 int temp2 ;
4933 int temp3 ;
4934 PyObject * obj0 = 0 ;
4935 char *kwnames[] = {
4936 (char *) "self", NULL
4937 };
4938
4939 arg2 = &temp2;
4940 arg3 = &temp3;
4941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 (arg1)->GetSize(arg2,arg3);
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 Py_INCREF(Py_None); resultobj = Py_None;
4952 {
4953 PyObject *o = PyInt_FromLong((long) (*arg2));
4954 resultobj = t_output_helper(resultobj,o);
4955 }
4956 {
4957 PyObject *o = PyInt_FromLong((long) (*arg3));
4958 resultobj = t_output_helper(resultobj,o);
4959 }
4960 return resultobj;
4961 fail:
4962 return NULL;
4963}
4964
4965
4966static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4967 PyObject *resultobj;
4968 wxCaret *arg1 = (wxCaret *) 0 ;
4969 wxWindow *result;
4970 PyObject * obj0 = 0 ;
4971 char *kwnames[] = {
4972 (char *) "self", NULL
4973 };
4974
4975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4978 {
4979 PyThreadState* __tstate = wxPyBeginAllowThreads();
4980 result = (wxWindow *)(arg1)->GetWindow();
4981
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 }
4985 {
4986 resultobj = wxPyMake_wxObject(result);
4987 }
4988 return resultobj;
4989 fail:
4990 return NULL;
4991}
4992
4993
4994static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4995 PyObject *resultobj;
4996 wxCaret *arg1 = (wxCaret *) 0 ;
4997 int arg2 ;
4998 int arg3 ;
4999 PyObject * obj0 = 0 ;
5000 PyObject * obj1 = 0 ;
5001 PyObject * obj2 = 0 ;
5002 char *kwnames[] = {
5003 (char *) "self",(char *) "x",(char *) "y", NULL
5004 };
5005
5006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5009 arg2 = (int) SWIG_AsInt(obj1);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 arg3 = (int) SWIG_AsInt(obj2);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 (arg1)->Move(arg2,arg3);
5016
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 Py_INCREF(Py_None); resultobj = Py_None;
5021 return resultobj;
5022 fail:
5023 return NULL;
5024}
5025
5026
5027static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
5028 PyObject *resultobj;
5029 wxCaret *arg1 = (wxCaret *) 0 ;
5030 wxPoint *arg2 = 0 ;
5031 wxPoint temp2 ;
5032 PyObject * obj0 = 0 ;
5033 PyObject * obj1 = 0 ;
5034 char *kwnames[] = {
5035 (char *) "self",(char *) "pt", NULL
5036 };
5037
5038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5041 {
5042 arg2 = &temp2;
5043 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5044 }
5045 {
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 (arg1)->Move((wxPoint const &)*arg2);
5048
5049 wxPyEndAllowThreads(__tstate);
5050 if (PyErr_Occurred()) SWIG_fail;
5051 }
5052 Py_INCREF(Py_None); resultobj = Py_None;
5053 return resultobj;
5054 fail:
5055 return NULL;
5056}
5057
5058
5059static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
5060 PyObject *resultobj;
5061 wxCaret *arg1 = (wxCaret *) 0 ;
5062 int arg2 ;
5063 int arg3 ;
5064 PyObject * obj0 = 0 ;
5065 PyObject * obj1 = 0 ;
5066 PyObject * obj2 = 0 ;
5067 char *kwnames[] = {
5068 (char *) "self",(char *) "width",(char *) "height", NULL
5069 };
5070
5071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5074 arg2 = (int) SWIG_AsInt(obj1);
5075 if (PyErr_Occurred()) SWIG_fail;
5076 arg3 = (int) SWIG_AsInt(obj2);
5077 if (PyErr_Occurred()) SWIG_fail;
5078 {
5079 PyThreadState* __tstate = wxPyBeginAllowThreads();
5080 (arg1)->SetSize(arg2,arg3);
5081
5082 wxPyEndAllowThreads(__tstate);
5083 if (PyErr_Occurred()) SWIG_fail;
5084 }
5085 Py_INCREF(Py_None); resultobj = Py_None;
5086 return resultobj;
5087 fail:
5088 return NULL;
5089}
5090
5091
5092static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5093 PyObject *resultobj;
5094 wxCaret *arg1 = (wxCaret *) 0 ;
5095 wxSize *arg2 = 0 ;
5096 wxSize temp2 ;
5097 PyObject * obj0 = 0 ;
5098 PyObject * obj1 = 0 ;
5099 char *kwnames[] = {
5100 (char *) "self",(char *) "size", NULL
5101 };
5102
5103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5106 {
5107 arg2 = &temp2;
5108 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5109 }
5110 {
5111 PyThreadState* __tstate = wxPyBeginAllowThreads();
5112 (arg1)->SetSize((wxSize const &)*arg2);
5113
5114 wxPyEndAllowThreads(__tstate);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 Py_INCREF(Py_None); resultobj = Py_None;
5118 return resultobj;
5119 fail:
5120 return NULL;
5121}
5122
5123
5124static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5125 PyObject *resultobj;
5126 wxCaret *arg1 = (wxCaret *) 0 ;
5127 int arg2 = (int) True ;
5128 PyObject * obj0 = 0 ;
5129 PyObject * obj1 = 0 ;
5130 char *kwnames[] = {
5131 (char *) "self",(char *) "show", NULL
5132 };
5133
5134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5137 if (obj1) {
5138 arg2 = (int) SWIG_AsInt(obj1);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 }
5141 {
5142 PyThreadState* __tstate = wxPyBeginAllowThreads();
5143 (arg1)->Show(arg2);
5144
5145 wxPyEndAllowThreads(__tstate);
5146 if (PyErr_Occurred()) SWIG_fail;
5147 }
5148 Py_INCREF(Py_None); resultobj = Py_None;
5149 return resultobj;
5150 fail:
5151 return NULL;
5152}
5153
5154
5155static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5156 PyObject *resultobj;
5157 wxCaret *arg1 = (wxCaret *) 0 ;
5158 PyObject * obj0 = 0 ;
5159 char *kwnames[] = {
5160 (char *) "self", NULL
5161 };
5162
5163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5166 {
5167 PyThreadState* __tstate = wxPyBeginAllowThreads();
5168 (arg1)->Hide();
5169
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 Py_INCREF(Py_None); resultobj = Py_None;
5174 return resultobj;
5175 fail:
5176 return NULL;
5177}
5178
5179
5180static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5181 PyObject *obj;
5182 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5183 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5184 Py_INCREF(obj);
5185 return Py_BuildValue((char *)"");
5186}
5187static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5188 PyObject *resultobj;
5189 int result;
5190 char *kwnames[] = {
5191 NULL
5192 };
5193
5194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5195 {
5196 PyThreadState* __tstate = wxPyBeginAllowThreads();
5197 result = (int)wxCaret_GetBlinkTime();
5198
5199 wxPyEndAllowThreads(__tstate);
5200 if (PyErr_Occurred()) SWIG_fail;
5201 }
5202 resultobj = SWIG_FromInt((int)result);
5203 return resultobj;
5204 fail:
5205 return NULL;
5206}
5207
5208
5209static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5210 PyObject *resultobj;
5211 int arg1 ;
5212 PyObject * obj0 = 0 ;
5213 char *kwnames[] = {
5214 (char *) "milliseconds", NULL
5215 };
5216
5217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5218 arg1 = (int) SWIG_AsInt(obj0);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 {
5221 PyThreadState* __tstate = wxPyBeginAllowThreads();
5222 wxCaret_SetBlinkTime(arg1);
5223
5224 wxPyEndAllowThreads(__tstate);
5225 if (PyErr_Occurred()) SWIG_fail;
5226 }
5227 Py_INCREF(Py_None); resultobj = Py_None;
5228 return resultobj;
5229 fail:
5230 return NULL;
5231}
5232
5233
5234static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5235 PyObject *resultobj;
5236 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5237 wxBusyCursor *result;
5238 PyObject * obj0 = 0 ;
5239 char *kwnames[] = {
5240 (char *) "cursor", NULL
5241 };
5242
5243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5244 if (obj0) {
5245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5247 }
5248 {
0439c23b 5249 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5252
5253 wxPyEndAllowThreads(__tstate);
0439c23b 5254 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5255 }
5256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5257 return resultobj;
5258 fail:
5259 return NULL;
5260}
5261
5262
5263static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5264 PyObject *resultobj;
5265 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5266 PyObject * obj0 = 0 ;
5267 char *kwnames[] = {
5268 (char *) "self", NULL
5269 };
5270
5271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5274 {
5275 PyThreadState* __tstate = wxPyBeginAllowThreads();
5276 delete arg1;
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 * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5289 PyObject *obj;
5290 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5291 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5292 Py_INCREF(obj);
5293 return Py_BuildValue((char *)"");
5294}
5295static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5296 PyObject *resultobj;
5297 wxWindow *arg1 = (wxWindow *) NULL ;
5298 wxWindowDisabler *result;
5299 PyObject * obj0 = 0 ;
5300 char *kwnames[] = {
5301 (char *) "winToSkip", NULL
5302 };
5303
5304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5305 if (obj0) {
5306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5308 }
5309 {
0439c23b 5310 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5311 PyThreadState* __tstate = wxPyBeginAllowThreads();
5312 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5313
5314 wxPyEndAllowThreads(__tstate);
0439c23b 5315 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5316 }
5317 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5318 return resultobj;
5319 fail:
5320 return NULL;
5321}
5322
5323
5324static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5325 PyObject *resultobj;
5326 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5327 PyObject * obj0 = 0 ;
5328 char *kwnames[] = {
5329 (char *) "self", NULL
5330 };
5331
5332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5335 {
5336 PyThreadState* __tstate = wxPyBeginAllowThreads();
5337 delete arg1;
5338
5339 wxPyEndAllowThreads(__tstate);
5340 if (PyErr_Occurred()) SWIG_fail;
5341 }
5342 Py_INCREF(Py_None); resultobj = Py_None;
5343 return resultobj;
5344 fail:
5345 return NULL;
5346}
5347
5348
5349static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5350 PyObject *obj;
5351 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5352 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5353 Py_INCREF(obj);
5354 return Py_BuildValue((char *)"");
5355}
5356static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5357 PyObject *resultobj;
5358 wxString *arg1 = 0 ;
5359 wxBusyInfo *result;
5360 bool temp1 = False ;
5361 PyObject * obj0 = 0 ;
5362 char *kwnames[] = {
5363 (char *) "message", NULL
5364 };
5365
5366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5367 {
5368 arg1 = wxString_in_helper(obj0);
5369 if (arg1 == NULL) SWIG_fail;
5370 temp1 = True;
5371 }
5372 {
0439c23b 5373 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5374 PyThreadState* __tstate = wxPyBeginAllowThreads();
5375 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5376
5377 wxPyEndAllowThreads(__tstate);
0439c23b 5378 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5379 }
5380 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5381 {
5382 if (temp1)
5383 delete arg1;
5384 }
5385 return resultobj;
5386 fail:
5387 {
5388 if (temp1)
5389 delete arg1;
5390 }
5391 return NULL;
5392}
5393
5394
5395static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5396 PyObject *resultobj;
5397 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5398 PyObject * obj0 = 0 ;
5399 char *kwnames[] = {
5400 (char *) "self", NULL
5401 };
5402
5403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 delete arg1;
5409
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 Py_INCREF(Py_None); resultobj = Py_None;
5414 return resultobj;
5415 fail:
5416 return NULL;
5417}
5418
5419
5420static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5421 PyObject *obj;
5422 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5423 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5424 Py_INCREF(obj);
5425 return Py_BuildValue((char *)"");
5426}
5427static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5428 PyObject *resultobj;
5429 wxStopWatch *result;
5430 char *kwnames[] = {
5431 NULL
5432 };
5433
5434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5435 {
5436 PyThreadState* __tstate = wxPyBeginAllowThreads();
5437 result = (wxStopWatch *)new wxStopWatch();
5438
5439 wxPyEndAllowThreads(__tstate);
5440 if (PyErr_Occurred()) SWIG_fail;
5441 }
5442 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5443 return resultobj;
5444 fail:
5445 return NULL;
5446}
5447
5448
5449static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5450 PyObject *resultobj;
5451 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5452 long arg2 = (long) 0 ;
5453 PyObject * obj0 = 0 ;
5454 PyObject * obj1 = 0 ;
5455 char *kwnames[] = {
5456 (char *) "self",(char *) "t0", NULL
5457 };
5458
5459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5462 if (obj1) {
5463 arg2 = (long) SWIG_AsLong(obj1);
5464 if (PyErr_Occurred()) SWIG_fail;
5465 }
5466 {
5467 PyThreadState* __tstate = wxPyBeginAllowThreads();
5468 (arg1)->Start(arg2);
5469
5470 wxPyEndAllowThreads(__tstate);
5471 if (PyErr_Occurred()) SWIG_fail;
5472 }
5473 Py_INCREF(Py_None); resultobj = Py_None;
5474 return resultobj;
5475 fail:
5476 return NULL;
5477}
5478
5479
5480static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5481 PyObject *resultobj;
5482 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5483 PyObject * obj0 = 0 ;
5484 char *kwnames[] = {
5485 (char *) "self", NULL
5486 };
5487
5488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5491 {
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 (arg1)->Pause();
5494
5495 wxPyEndAllowThreads(__tstate);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 }
5498 Py_INCREF(Py_None); resultobj = Py_None;
5499 return resultobj;
5500 fail:
5501 return NULL;
5502}
5503
5504
5505static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5506 PyObject *resultobj;
5507 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5508 PyObject * obj0 = 0 ;
5509 char *kwnames[] = {
5510 (char *) "self", NULL
5511 };
5512
5513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5516 {
5517 PyThreadState* __tstate = wxPyBeginAllowThreads();
5518 (arg1)->Resume();
5519
5520 wxPyEndAllowThreads(__tstate);
5521 if (PyErr_Occurred()) SWIG_fail;
5522 }
5523 Py_INCREF(Py_None); resultobj = Py_None;
5524 return resultobj;
5525 fail:
5526 return NULL;
5527}
5528
5529
5530static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5531 PyObject *resultobj;
5532 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5533 long result;
5534 PyObject * obj0 = 0 ;
5535 char *kwnames[] = {
5536 (char *) "self", NULL
5537 };
5538
5539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5542 {
5543 PyThreadState* __tstate = wxPyBeginAllowThreads();
5544 result = (long)((wxStopWatch const *)arg1)->Time();
5545
5546 wxPyEndAllowThreads(__tstate);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 }
5549 resultobj = SWIG_FromLong((long)result);
5550 return resultobj;
5551 fail:
5552 return NULL;
5553}
5554
5555
5556static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5557 PyObject *obj;
5558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5559 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5560 Py_INCREF(obj);
5561 return Py_BuildValue((char *)"");
5562}
5563static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5564 PyObject *resultobj;
5565 int arg1 = (int) 9 ;
5566 wxFileHistory *result;
5567 PyObject * obj0 = 0 ;
5568 char *kwnames[] = {
5569 (char *) "maxFiles", NULL
5570 };
5571
5572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5573 if (obj0) {
5574 arg1 = (int) SWIG_AsInt(obj0);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
5577 {
5578 PyThreadState* __tstate = wxPyBeginAllowThreads();
5579 result = (wxFileHistory *)new wxFileHistory(arg1);
5580
5581 wxPyEndAllowThreads(__tstate);
5582 if (PyErr_Occurred()) SWIG_fail;
5583 }
5584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5585 return resultobj;
5586 fail:
5587 return NULL;
5588}
5589
5590
5591static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5592 PyObject *resultobj;
5593 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5594 PyObject * obj0 = 0 ;
5595 char *kwnames[] = {
5596 (char *) "self", NULL
5597 };
5598
5599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5602 {
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 delete arg1;
5605
5606 wxPyEndAllowThreads(__tstate);
5607 if (PyErr_Occurred()) SWIG_fail;
5608 }
5609 Py_INCREF(Py_None); resultobj = Py_None;
5610 return resultobj;
5611 fail:
5612 return NULL;
5613}
5614
5615
5616static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5617 PyObject *resultobj;
5618 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5619 wxString *arg2 = 0 ;
5620 bool temp2 = False ;
5621 PyObject * obj0 = 0 ;
5622 PyObject * obj1 = 0 ;
5623 char *kwnames[] = {
5624 (char *) "self",(char *) "file", NULL
5625 };
5626
5627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5630 {
5631 arg2 = wxString_in_helper(obj1);
5632 if (arg2 == NULL) SWIG_fail;
5633 temp2 = True;
5634 }
5635 {
5636 PyThreadState* __tstate = wxPyBeginAllowThreads();
5637 (arg1)->AddFileToHistory((wxString const &)*arg2);
5638
5639 wxPyEndAllowThreads(__tstate);
5640 if (PyErr_Occurred()) SWIG_fail;
5641 }
5642 Py_INCREF(Py_None); resultobj = Py_None;
5643 {
5644 if (temp2)
5645 delete arg2;
5646 }
5647 return resultobj;
5648 fail:
5649 {
5650 if (temp2)
5651 delete arg2;
5652 }
5653 return NULL;
5654}
5655
5656
5657static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj;
5659 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5660 int arg2 ;
5661 PyObject * obj0 = 0 ;
5662 PyObject * obj1 = 0 ;
5663 char *kwnames[] = {
5664 (char *) "self",(char *) "i", NULL
5665 };
5666
5667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5670 arg2 = (int) SWIG_AsInt(obj1);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 {
5673 PyThreadState* __tstate = wxPyBeginAllowThreads();
5674 (arg1)->RemoveFileFromHistory(arg2);
5675
5676 wxPyEndAllowThreads(__tstate);
5677 if (PyErr_Occurred()) SWIG_fail;
5678 }
5679 Py_INCREF(Py_None); resultobj = Py_None;
5680 return resultobj;
5681 fail:
5682 return NULL;
5683}
5684
5685
5686static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5687 PyObject *resultobj;
5688 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5689 int result;
5690 PyObject * obj0 = 0 ;
5691 char *kwnames[] = {
5692 (char *) "self", NULL
5693 };
5694
5695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5698 {
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5701
5702 wxPyEndAllowThreads(__tstate);
5703 if (PyErr_Occurred()) SWIG_fail;
5704 }
5705 resultobj = SWIG_FromInt((int)result);
5706 return resultobj;
5707 fail:
5708 return NULL;
5709}
5710
5711
5712static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5713 PyObject *resultobj;
5714 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5715 wxMenu *arg2 = (wxMenu *) 0 ;
5716 PyObject * obj0 = 0 ;
5717 PyObject * obj1 = 0 ;
5718 char *kwnames[] = {
5719 (char *) "self",(char *) "menu", NULL
5720 };
5721
5722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5725 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5727 {
5728 PyThreadState* __tstate = wxPyBeginAllowThreads();
5729 (arg1)->UseMenu(arg2);
5730
5731 wxPyEndAllowThreads(__tstate);
5732 if (PyErr_Occurred()) SWIG_fail;
5733 }
5734 Py_INCREF(Py_None); resultobj = Py_None;
5735 return resultobj;
5736 fail:
5737 return NULL;
5738}
5739
5740
5741static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5742 PyObject *resultobj;
5743 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5744 wxMenu *arg2 = (wxMenu *) 0 ;
5745 PyObject * obj0 = 0 ;
5746 PyObject * obj1 = 0 ;
5747 char *kwnames[] = {
5748 (char *) "self",(char *) "menu", NULL
5749 };
5750
5751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5754 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 (arg1)->RemoveMenu(arg2);
5759
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 Py_INCREF(Py_None); resultobj = Py_None;
5764 return resultobj;
5765 fail:
5766 return NULL;
5767}
5768
5769
5770static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5771 PyObject *resultobj;
5772 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5773 wxConfigBase *arg2 = 0 ;
5774 PyObject * obj0 = 0 ;
5775 PyObject * obj1 = 0 ;
5776 char *kwnames[] = {
5777 (char *) "self",(char *) "config", NULL
5778 };
5779
5780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5784 SWIG_POINTER_EXCEPTION | 0)) == -1)
5785 SWIG_fail;
5786 if (arg2 == NULL) {
5787 PyErr_SetString(PyExc_TypeError,"null reference");
5788 SWIG_fail;
5789 }
5790 {
5791 PyThreadState* __tstate = wxPyBeginAllowThreads();
5792 (arg1)->Load(*arg2);
5793
5794 wxPyEndAllowThreads(__tstate);
5795 if (PyErr_Occurred()) SWIG_fail;
5796 }
5797 Py_INCREF(Py_None); resultobj = Py_None;
5798 return resultobj;
5799 fail:
5800 return NULL;
5801}
5802
5803
5804static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5805 PyObject *resultobj;
5806 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5807 wxConfigBase *arg2 = 0 ;
5808 PyObject * obj0 = 0 ;
5809 PyObject * obj1 = 0 ;
5810 char *kwnames[] = {
5811 (char *) "self",(char *) "config", NULL
5812 };
5813
5814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5817 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5818 SWIG_POINTER_EXCEPTION | 0)) == -1)
5819 SWIG_fail;
5820 if (arg2 == NULL) {
5821 PyErr_SetString(PyExc_TypeError,"null reference");
5822 SWIG_fail;
5823 }
5824 {
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 (arg1)->Save(*arg2);
5827
5828 wxPyEndAllowThreads(__tstate);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 Py_INCREF(Py_None); resultobj = Py_None;
5832 return resultobj;
5833 fail:
5834 return NULL;
5835}
5836
5837
5838static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5839 PyObject *resultobj;
5840 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5841 PyObject * obj0 = 0 ;
5842 char *kwnames[] = {
5843 (char *) "self", NULL
5844 };
5845
5846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5849 {
5850 PyThreadState* __tstate = wxPyBeginAllowThreads();
5851 (arg1)->AddFilesToMenu();
5852
5853 wxPyEndAllowThreads(__tstate);
5854 if (PyErr_Occurred()) SWIG_fail;
5855 }
5856 Py_INCREF(Py_None); resultobj = Py_None;
5857 return resultobj;
5858 fail:
5859 return NULL;
5860}
5861
5862
5863static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5864 PyObject *resultobj;
5865 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5866 wxMenu *arg2 = (wxMenu *) 0 ;
5867 PyObject * obj0 = 0 ;
5868 PyObject * obj1 = 0 ;
5869 char *kwnames[] = {
5870 (char *) "self",(char *) "menu", NULL
5871 };
5872
5873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5876 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 (arg1)->AddFilesToMenu(arg2);
5881
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 Py_INCREF(Py_None); resultobj = Py_None;
5886 return resultobj;
5887 fail:
5888 return NULL;
5889}
5890
5891
5892static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5893 PyObject *resultobj;
5894 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5895 int arg2 ;
5896 wxString result;
5897 PyObject * obj0 = 0 ;
5898 PyObject * obj1 = 0 ;
5899 char *kwnames[] = {
5900 (char *) "self",(char *) "i", NULL
5901 };
5902
5903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5906 arg2 = (int) SWIG_AsInt(obj1);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 {
5909 PyThreadState* __tstate = wxPyBeginAllowThreads();
5910 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5911
5912 wxPyEndAllowThreads(__tstate);
5913 if (PyErr_Occurred()) SWIG_fail;
5914 }
5915 {
5916#if wxUSE_UNICODE
5917 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5918#else
5919 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5920#endif
5921 }
5922 return resultobj;
5923 fail:
5924 return NULL;
5925}
5926
5927
5928static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5929 PyObject *resultobj;
5930 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5931 int result;
5932 PyObject * obj0 = 0 ;
5933 char *kwnames[] = {
5934 (char *) "self", NULL
5935 };
5936
5937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 result = (int)((wxFileHistory const *)arg1)->GetCount();
5943
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_FromInt((int)result);
5948 return resultobj;
5949 fail:
5950 return NULL;
5951}
5952
5953
5954static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5955 PyObject *obj;
5956 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5957 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5958 Py_INCREF(obj);
5959 return Py_BuildValue((char *)"");
5960}
5961static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxString *arg1 = 0 ;
5964 wxString const &arg2_defvalue = wxPyEmptyString ;
5965 wxString *arg2 = (wxString *) &arg2_defvalue ;
5966 wxSingleInstanceChecker *result;
5967 bool temp1 = False ;
5968 bool temp2 = False ;
5969 PyObject * obj0 = 0 ;
5970 PyObject * obj1 = 0 ;
5971 char *kwnames[] = {
5972 (char *) "name",(char *) "path", NULL
5973 };
5974
5975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5976 {
5977 arg1 = wxString_in_helper(obj0);
5978 if (arg1 == NULL) SWIG_fail;
5979 temp1 = True;
5980 }
5981 if (obj1) {
5982 {
5983 arg2 = wxString_in_helper(obj1);
5984 if (arg2 == NULL) SWIG_fail;
5985 temp2 = True;
5986 }
5987 }
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5991
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5996 {
5997 if (temp1)
5998 delete arg1;
5999 }
6000 {
6001 if (temp2)
6002 delete arg2;
6003 }
6004 return resultobj;
6005 fail:
6006 {
6007 if (temp1)
6008 delete arg1;
6009 }
6010 {
6011 if (temp2)
6012 delete arg2;
6013 }
6014 return NULL;
6015}
6016
6017
6018static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6019 PyObject *resultobj;
6020 wxSingleInstanceChecker *result;
6021 char *kwnames[] = {
6022 NULL
6023 };
6024
6025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6026 {
6027 PyThreadState* __tstate = wxPyBeginAllowThreads();
6028 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6029
6030 wxPyEndAllowThreads(__tstate);
6031 if (PyErr_Occurred()) SWIG_fail;
6032 }
6033 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6034 return resultobj;
6035 fail:
6036 return NULL;
6037}
6038
6039
6040static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6041 PyObject *resultobj;
6042 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6043 PyObject * obj0 = 0 ;
6044 char *kwnames[] = {
6045 (char *) "self", NULL
6046 };
6047
6048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6051 {
6052 PyThreadState* __tstate = wxPyBeginAllowThreads();
6053 delete arg1;
6054
6055 wxPyEndAllowThreads(__tstate);
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 Py_INCREF(Py_None); resultobj = Py_None;
6059 return resultobj;
6060 fail:
6061 return NULL;
6062}
6063
6064
6065static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6066 PyObject *resultobj;
6067 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6068 wxString *arg2 = 0 ;
6069 wxString const &arg3_defvalue = wxPyEmptyString ;
6070 wxString *arg3 = (wxString *) &arg3_defvalue ;
6071 bool result;
6072 bool temp2 = False ;
6073 bool temp3 = False ;
6074 PyObject * obj0 = 0 ;
6075 PyObject * obj1 = 0 ;
6076 PyObject * obj2 = 0 ;
6077 char *kwnames[] = {
6078 (char *) "self",(char *) "name",(char *) "path", NULL
6079 };
6080
6081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6084 {
6085 arg2 = wxString_in_helper(obj1);
6086 if (arg2 == NULL) SWIG_fail;
6087 temp2 = True;
6088 }
6089 if (obj2) {
6090 {
6091 arg3 = wxString_in_helper(obj2);
6092 if (arg3 == NULL) SWIG_fail;
6093 temp3 = True;
6094 }
6095 }
6096 {
6097 PyThreadState* __tstate = wxPyBeginAllowThreads();
6098 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6099
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 {
6104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6105 }
6106 {
6107 if (temp2)
6108 delete arg2;
6109 }
6110 {
6111 if (temp3)
6112 delete arg3;
6113 }
6114 return resultobj;
6115 fail:
6116 {
6117 if (temp2)
6118 delete arg2;
6119 }
6120 {
6121 if (temp3)
6122 delete arg3;
6123 }
6124 return NULL;
6125}
6126
6127
6128static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6129 PyObject *resultobj;
6130 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6131 bool result;
6132 PyObject * obj0 = 0 ;
6133 char *kwnames[] = {
6134 (char *) "self", NULL
6135 };
6136
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6140 {
6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
6142 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6143
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 {
6148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6149 }
6150 return resultobj;
6151 fail:
6152 return NULL;
6153}
6154
6155
6156static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6157 PyObject *obj;
6158 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6159 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6160 Py_INCREF(obj);
6161 return Py_BuildValue((char *)"");
6162}
6163static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6164 PyObject *resultobj;
6165 wxWindow *arg1 = (wxWindow *) 0 ;
6166 wxDC *arg2 = 0 ;
6167 int arg3 ;
6168 PyObject * obj0 = 0 ;
6169 PyObject * obj1 = 0 ;
6170 PyObject * obj2 = 0 ;
6171 char *kwnames[] = {
6172 (char *) "window",(char *) "dc",(char *) "method", NULL
6173 };
6174
6175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6178 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6179 SWIG_POINTER_EXCEPTION | 0)) == -1)
6180 SWIG_fail;
6181 if (arg2 == NULL) {
6182 PyErr_SetString(PyExc_TypeError,"null reference");
6183 SWIG_fail;
6184 }
6185 arg3 = (int) SWIG_AsInt(obj2);
6186 if (PyErr_Occurred()) SWIG_fail;
6187 {
6188 PyThreadState* __tstate = wxPyBeginAllowThreads();
6189 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6190
6191 wxPyEndAllowThreads(__tstate);
6192 if (PyErr_Occurred()) SWIG_fail;
6193 }
6194 Py_INCREF(Py_None); resultobj = Py_None;
6195 return resultobj;
6196 fail:
6197 return NULL;
6198}
6199
6200
6201static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6202 PyObject *resultobj;
6203 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6204 PyObject * obj0 = 0 ;
6205 char *kwnames[] = {
6206 (char *) "self", NULL
6207 };
6208
6209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 delete arg1;
6215
6216 wxPyEndAllowThreads(__tstate);
6217 if (PyErr_Occurred()) SWIG_fail;
6218 }
6219 Py_INCREF(Py_None); resultobj = Py_None;
6220 return resultobj;
6221 fail:
6222 return NULL;
6223}
6224
6225
6226static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6227 PyObject *resultobj;
6228 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6229 wxString result;
6230 PyObject * obj0 = 0 ;
6231 char *kwnames[] = {
6232 (char *) "self", NULL
6233 };
6234
6235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 result = (arg1)->GetTip();
6241
6242 wxPyEndAllowThreads(__tstate);
6243 if (PyErr_Occurred()) SWIG_fail;
6244 }
6245 {
6246#if wxUSE_UNICODE
6247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6248#else
6249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6250#endif
6251 }
6252 return resultobj;
6253 fail:
6254 return NULL;
6255}
6256
6257
6258static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6259 PyObject *resultobj;
6260 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6261 size_t result;
6262 PyObject * obj0 = 0 ;
6263 char *kwnames[] = {
6264 (char *) "self", NULL
6265 };
6266
6267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6270 {
6271 PyThreadState* __tstate = wxPyBeginAllowThreads();
6272 result = (size_t)(arg1)->GetCurrentTip();
6273
6274 wxPyEndAllowThreads(__tstate);
6275 if (PyErr_Occurred()) SWIG_fail;
6276 }
6277 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6278 return resultobj;
6279 fail:
6280 return NULL;
6281}
6282
6283
6284static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6285 PyObject *resultobj;
6286 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6287 wxString *arg2 = 0 ;
6288 wxString result;
6289 bool temp2 = False ;
6290 PyObject * obj0 = 0 ;
6291 PyObject * obj1 = 0 ;
6292 char *kwnames[] = {
6293 (char *) "self",(char *) "tip", NULL
6294 };
6295
6296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6299 {
6300 arg2 = wxString_in_helper(obj1);
6301 if (arg2 == NULL) SWIG_fail;
6302 temp2 = True;
6303 }
6304 {
6305 PyThreadState* __tstate = wxPyBeginAllowThreads();
6306 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6307
6308 wxPyEndAllowThreads(__tstate);
6309 if (PyErr_Occurred()) SWIG_fail;
6310 }
6311 {
6312#if wxUSE_UNICODE
6313 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6314#else
6315 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6316#endif
6317 }
6318 {
6319 if (temp2)
6320 delete arg2;
6321 }
6322 return resultobj;
6323 fail:
6324 {
6325 if (temp2)
6326 delete arg2;
6327 }
6328 return NULL;
6329}
6330
6331
6332static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6333 PyObject *obj;
6334 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6335 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6336 Py_INCREF(obj);
6337 return Py_BuildValue((char *)"");
6338}
6339static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6340 PyObject *resultobj;
6341 size_t arg1 ;
6342 wxPyTipProvider *result;
6343 PyObject * obj0 = 0 ;
6344 char *kwnames[] = {
6345 (char *) "currentTip", NULL
6346 };
6347
6348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6349 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6350 if (PyErr_Occurred()) SWIG_fail;
6351 {
6352 PyThreadState* __tstate = wxPyBeginAllowThreads();
6353 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6354
6355 wxPyEndAllowThreads(__tstate);
6356 if (PyErr_Occurred()) SWIG_fail;
6357 }
6358 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6359 return resultobj;
6360 fail:
6361 return NULL;
6362}
6363
6364
6365static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj;
6367 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6368 PyObject *arg2 = (PyObject *) 0 ;
6369 PyObject *arg3 = (PyObject *) 0 ;
6370 PyObject * obj0 = 0 ;
6371 PyObject * obj1 = 0 ;
6372 PyObject * obj2 = 0 ;
6373 char *kwnames[] = {
6374 (char *) "self",(char *) "self",(char *) "_class", NULL
6375 };
6376
6377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6380 arg2 = obj1;
6381 arg3 = obj2;
6382 {
6383 PyThreadState* __tstate = wxPyBeginAllowThreads();
6384 (arg1)->_setCallbackInfo(arg2,arg3);
6385
6386 wxPyEndAllowThreads(__tstate);
6387 if (PyErr_Occurred()) SWIG_fail;
6388 }
6389 Py_INCREF(Py_None); resultobj = Py_None;
6390 return resultobj;
6391 fail:
6392 return NULL;
6393}
6394
6395
6396static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6397 PyObject *obj;
6398 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6399 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6400 Py_INCREF(obj);
6401 return Py_BuildValue((char *)"");
6402}
6403static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6404 PyObject *resultobj;
6405 wxWindow *arg1 = (wxWindow *) 0 ;
6406 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6407 bool arg3 = (bool) True ;
6408 bool result;
6409 PyObject * obj0 = 0 ;
6410 PyObject * obj1 = 0 ;
6411 PyObject * obj2 = 0 ;
6412 char *kwnames[] = {
6413 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6414 };
6415
6416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6419 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6421 if (obj2) {
6422 arg3 = (bool) SWIG_AsBool(obj2);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 {
0439c23b 6426 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6427 PyThreadState* __tstate = wxPyBeginAllowThreads();
6428 result = (bool)wxShowTip(arg1,arg2,arg3);
6429
6430 wxPyEndAllowThreads(__tstate);
0439c23b 6431 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6432 }
6433 {
6434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6435 }
6436 return resultobj;
6437 fail:
6438 return NULL;
6439}
6440
6441
6442static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6443 PyObject *resultobj;
6444 wxString *arg1 = 0 ;
6445 size_t arg2 ;
6446 wxTipProvider *result;
6447 bool temp1 = False ;
6448 PyObject * obj0 = 0 ;
6449 PyObject * obj1 = 0 ;
6450 char *kwnames[] = {
6451 (char *) "filename",(char *) "currentTip", NULL
6452 };
6453
6454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6455 {
6456 arg1 = wxString_in_helper(obj0);
6457 if (arg1 == NULL) SWIG_fail;
6458 temp1 = True;
6459 }
6460 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 {
0439c23b 6463 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6466
6467 wxPyEndAllowThreads(__tstate);
0439c23b 6468 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6469 }
6470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6471 {
6472 if (temp1)
6473 delete arg1;
6474 }
6475 return resultobj;
6476 fail:
6477 {
6478 if (temp1)
6479 delete arg1;
6480 }
6481 return NULL;
6482}
6483
6484
6485static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6486 PyObject *resultobj;
6487 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6488 int arg2 = (int) -1 ;
6489 wxPyTimer *result;
6490 PyObject * obj0 = 0 ;
6491 PyObject * obj1 = 0 ;
6492 char *kwnames[] = {
6493 (char *) "owner",(char *) "id", NULL
6494 };
6495
6496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6497 if (obj0) {
6498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6500 }
6501 if (obj1) {
6502 arg2 = (int) SWIG_AsInt(obj1);
6503 if (PyErr_Occurred()) SWIG_fail;
6504 }
6505 {
0439c23b 6506 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6507 PyThreadState* __tstate = wxPyBeginAllowThreads();
6508 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6509
6510 wxPyEndAllowThreads(__tstate);
0439c23b 6511 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6512 }
6513 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6514 return resultobj;
6515 fail:
6516 return NULL;
6517}
6518
6519
6520static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6521 PyObject *resultobj;
6522 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6523 PyObject * obj0 = 0 ;
6524 char *kwnames[] = {
6525 (char *) "self", NULL
6526 };
6527
6528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6531 {
6532 PyThreadState* __tstate = wxPyBeginAllowThreads();
6533 delete arg1;
6534
6535 wxPyEndAllowThreads(__tstate);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
6538 Py_INCREF(Py_None); resultobj = Py_None;
6539 return resultobj;
6540 fail:
6541 return NULL;
6542}
6543
6544
6545static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6546 PyObject *resultobj;
6547 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6548 PyObject *arg2 = (PyObject *) 0 ;
6549 PyObject *arg3 = (PyObject *) 0 ;
6550 int arg4 = (int) 1 ;
6551 PyObject * obj0 = 0 ;
6552 PyObject * obj1 = 0 ;
6553 PyObject * obj2 = 0 ;
6554 PyObject * obj3 = 0 ;
6555 char *kwnames[] = {
6556 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6557 };
6558
6559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6562 arg2 = obj1;
6563 arg3 = obj2;
6564 if (obj3) {
6565 arg4 = (int) SWIG_AsInt(obj3);
6566 if (PyErr_Occurred()) SWIG_fail;
6567 }
6568 {
6569 PyThreadState* __tstate = wxPyBeginAllowThreads();
6570 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6571
6572 wxPyEndAllowThreads(__tstate);
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 Py_INCREF(Py_None); resultobj = Py_None;
6576 return resultobj;
6577 fail:
6578 return NULL;
6579}
6580
6581
6582static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6583 PyObject *resultobj;
6584 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6585 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6586 int arg3 = (int) -1 ;
6587 PyObject * obj0 = 0 ;
6588 PyObject * obj1 = 0 ;
6589 PyObject * obj2 = 0 ;
6590 char *kwnames[] = {
6591 (char *) "self",(char *) "owner",(char *) "id", NULL
6592 };
6593
6594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6597 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6599 if (obj2) {
6600 arg3 = (int) SWIG_AsInt(obj2);
6601 if (PyErr_Occurred()) SWIG_fail;
6602 }
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 (arg1)->SetOwner(arg2,arg3);
6606
6607 wxPyEndAllowThreads(__tstate);
6608 if (PyErr_Occurred()) SWIG_fail;
6609 }
6610 Py_INCREF(Py_None); resultobj = Py_None;
6611 return resultobj;
6612 fail:
6613 return NULL;
6614}
6615
6616
1a6bba1e
RD
6617static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6618 PyObject *resultobj;
6619 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6620 wxEvtHandler *result;
6621 PyObject * obj0 = 0 ;
6622 char *kwnames[] = {
6623 (char *) "self", NULL
6624 };
6625
6626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6629 {
6630 PyThreadState* __tstate = wxPyBeginAllowThreads();
6631 result = (wxEvtHandler *)(arg1)->GetOwner();
6632
6633 wxPyEndAllowThreads(__tstate);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 {
6637 resultobj = wxPyMake_wxObject(result);
6638 }
6639 return resultobj;
6640 fail:
6641 return NULL;
6642}
6643
6644
d55e5bfc
RD
6645static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6646 PyObject *resultobj;
6647 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6648 int arg2 = (int) -1 ;
6649 bool arg3 = (bool) False ;
6650 bool result;
6651 PyObject * obj0 = 0 ;
6652 PyObject * obj1 = 0 ;
6653 PyObject * obj2 = 0 ;
6654 char *kwnames[] = {
6655 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6656 };
6657
6658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6661 if (obj1) {
6662 arg2 = (int) SWIG_AsInt(obj1);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 if (obj2) {
6666 arg3 = (bool) SWIG_AsBool(obj2);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 {
6670 PyThreadState* __tstate = wxPyBeginAllowThreads();
6671 result = (bool)(arg1)->Start(arg2,arg3);
6672
6673 wxPyEndAllowThreads(__tstate);
6674 if (PyErr_Occurred()) SWIG_fail;
6675 }
6676 {
6677 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6678 }
6679 return resultobj;
6680 fail:
6681 return NULL;
6682}
6683
6684
6685static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6686 PyObject *resultobj;
6687 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6688 PyObject * obj0 = 0 ;
6689 char *kwnames[] = {
6690 (char *) "self", NULL
6691 };
6692
6693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6696 {
6697 PyThreadState* __tstate = wxPyBeginAllowThreads();
6698 (arg1)->Stop();
6699
6700 wxPyEndAllowThreads(__tstate);
6701 if (PyErr_Occurred()) SWIG_fail;
6702 }
6703 Py_INCREF(Py_None); resultobj = Py_None;
6704 return resultobj;
6705 fail:
6706 return NULL;
6707}
6708
6709
6710static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6711 PyObject *resultobj;
6712 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6713 bool result;
6714 PyObject * obj0 = 0 ;
6715 char *kwnames[] = {
6716 (char *) "self", NULL
6717 };
6718
6719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6722 {
6723 PyThreadState* __tstate = wxPyBeginAllowThreads();
6724 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6725
6726 wxPyEndAllowThreads(__tstate);
6727 if (PyErr_Occurred()) SWIG_fail;
6728 }
6729 {
6730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6731 }
6732 return resultobj;
6733 fail:
6734 return NULL;
6735}
6736
6737
6738static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6739 PyObject *resultobj;
6740 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6741 int result;
6742 PyObject * obj0 = 0 ;
6743 char *kwnames[] = {
6744 (char *) "self", NULL
6745 };
6746
6747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6750 {
6751 PyThreadState* __tstate = wxPyBeginAllowThreads();
6752 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6753
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_FromInt((int)result);
6758 return resultobj;
6759 fail:
6760 return NULL;
6761}
6762
6763
6764static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6765 PyObject *resultobj;
6766 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6767 bool result;
6768 PyObject * obj0 = 0 ;
6769 char *kwnames[] = {
6770 (char *) "self", NULL
6771 };
6772
6773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6776 {
6777 PyThreadState* __tstate = wxPyBeginAllowThreads();
6778 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6779
6780 wxPyEndAllowThreads(__tstate);
6781 if (PyErr_Occurred()) SWIG_fail;
6782 }
6783 {
6784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6785 }
6786 return resultobj;
6787 fail:
6788 return NULL;
6789}
6790
6791
6792static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6793 PyObject *resultobj;
6794 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6795 int result;
6796 PyObject * obj0 = 0 ;
6797 char *kwnames[] = {
6798 (char *) "self", NULL
6799 };
6800
6801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6804 {
6805 PyThreadState* __tstate = wxPyBeginAllowThreads();
6806 result = (int)((wxPyTimer const *)arg1)->GetId();
6807
6808 wxPyEndAllowThreads(__tstate);
6809 if (PyErr_Occurred()) SWIG_fail;
6810 }
6811 resultobj = SWIG_FromInt((int)result);
6812 return resultobj;
6813 fail:
6814 return NULL;
6815}
6816
6817
6818static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6819 PyObject *obj;
6820 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6821 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6822 Py_INCREF(obj);
6823 return Py_BuildValue((char *)"");
6824}
6825static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6826 PyObject *resultobj;
6827 int arg1 = (int) 0 ;
6828 int arg2 = (int) 0 ;
6829 wxTimerEvent *result;
6830 PyObject * obj0 = 0 ;
6831 PyObject * obj1 = 0 ;
6832 char *kwnames[] = {
6833 (char *) "timerid",(char *) "interval", NULL
6834 };
6835
6836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6837 if (obj0) {
6838 arg1 = (int) SWIG_AsInt(obj0);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 if (obj1) {
6842 arg2 = (int) SWIG_AsInt(obj1);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 {
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6848
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6853 return resultobj;
6854 fail:
6855 return NULL;
6856}
6857
6858
6859static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6860 PyObject *resultobj;
6861 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6862 int result;
6863 PyObject * obj0 = 0 ;
6864 char *kwnames[] = {
6865 (char *) "self", NULL
6866 };
6867
6868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6871 {
6872 PyThreadState* __tstate = wxPyBeginAllowThreads();
6873 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6874
6875 wxPyEndAllowThreads(__tstate);
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 resultobj = SWIG_FromInt((int)result);
6879 return resultobj;
6880 fail:
6881 return NULL;
6882}
6883
6884
6885static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6886 PyObject *obj;
6887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6888 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6889 Py_INCREF(obj);
6890 return Py_BuildValue((char *)"");
6891}
6892static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6893 PyObject *resultobj;
6894 wxTimer *arg1 = 0 ;
6895 wxTimerRunner *result;
6896 PyObject * obj0 = 0 ;
6897
6898 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6900 SWIG_POINTER_EXCEPTION | 0)) == -1)
6901 SWIG_fail;
6902 if (arg1 == NULL) {
6903 PyErr_SetString(PyExc_TypeError,"null reference");
6904 SWIG_fail;
6905 }
6906 {
0439c23b 6907 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6908 PyThreadState* __tstate = wxPyBeginAllowThreads();
6909 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6910
6911 wxPyEndAllowThreads(__tstate);
0439c23b 6912 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6913 }
6914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6915 return resultobj;
6916 fail:
6917 return NULL;
6918}
6919
6920
6921static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6922 PyObject *resultobj;
6923 wxTimer *arg1 = 0 ;
6924 int arg2 ;
6925 bool arg3 = (bool) False ;
6926 wxTimerRunner *result;
6927 PyObject * obj0 = 0 ;
6928 PyObject * obj1 = 0 ;
6929 PyObject * obj2 = 0 ;
6930
6931 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6933 SWIG_POINTER_EXCEPTION | 0)) == -1)
6934 SWIG_fail;
6935 if (arg1 == NULL) {
6936 PyErr_SetString(PyExc_TypeError,"null reference");
6937 SWIG_fail;
6938 }
6939 arg2 = (int) SWIG_AsInt(obj1);
6940 if (PyErr_Occurred()) SWIG_fail;
6941 if (obj2) {
6942 arg3 = (bool) SWIG_AsBool(obj2);
6943 if (PyErr_Occurred()) SWIG_fail;
6944 }
6945 {
0439c23b 6946 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
6947 PyThreadState* __tstate = wxPyBeginAllowThreads();
6948 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6949
6950 wxPyEndAllowThreads(__tstate);
0439c23b 6951 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
6952 }
6953 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6954 return resultobj;
6955 fail:
6956 return NULL;
6957}
6958
6959
6960static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6961 int argc;
6962 PyObject *argv[4];
6963 int ii;
6964
6965 argc = PyObject_Length(args);
6966 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6967 argv[ii] = PyTuple_GetItem(args,ii);
6968 }
6969 if (argc == 1) {
6970 int _v;
6971 {
6972 void *ptr;
6973 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6974 _v = 0;
6975 PyErr_Clear();
6976 } else {
6977 _v = 1;
6978 }
6979 }
6980 if (_v) {
6981 return _wrap_new_TimerRunner__SWIG_0(self,args);
6982 }
6983 }
6984 if ((argc >= 2) && (argc <= 3)) {
6985 int _v;
6986 {
6987 void *ptr;
6988 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6989 _v = 0;
6990 PyErr_Clear();
6991 } else {
6992 _v = 1;
6993 }
6994 }
6995 if (_v) {
6996 _v = SWIG_CheckInt(argv[1]);
6997 if (_v) {
6998 if (argc <= 2) {
6999 return _wrap_new_TimerRunner__SWIG_1(self,args);
7000 }
7001 _v = SWIG_CheckBool(argv[2]);
7002 if (_v) {
7003 return _wrap_new_TimerRunner__SWIG_1(self,args);
7004 }
7005 }
7006 }
7007 }
7008
7009 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7010 return NULL;
7011}
7012
7013
7014static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
7015 PyObject *resultobj;
7016 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7017 PyObject * obj0 = 0 ;
7018 char *kwnames[] = {
7019 (char *) "self", NULL
7020 };
7021
7022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7025 {
7026 PyThreadState* __tstate = wxPyBeginAllowThreads();
7027 delete arg1;
7028
7029 wxPyEndAllowThreads(__tstate);
7030 if (PyErr_Occurred()) SWIG_fail;
7031 }
7032 Py_INCREF(Py_None); resultobj = Py_None;
7033 return resultobj;
7034 fail:
7035 return NULL;
7036}
7037
7038
7039static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
7040 PyObject *resultobj;
7041 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7042 int arg2 ;
7043 bool arg3 = (bool) False ;
7044 PyObject * obj0 = 0 ;
7045 PyObject * obj1 = 0 ;
7046 PyObject * obj2 = 0 ;
7047 char *kwnames[] = {
7048 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7049 };
7050
7051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7054 arg2 = (int) SWIG_AsInt(obj1);
7055 if (PyErr_Occurred()) SWIG_fail;
7056 if (obj2) {
7057 arg3 = (bool) SWIG_AsBool(obj2);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 {
7061 PyThreadState* __tstate = wxPyBeginAllowThreads();
7062 (arg1)->Start(arg2,arg3);
7063
7064 wxPyEndAllowThreads(__tstate);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 Py_INCREF(Py_None); resultobj = Py_None;
7068 return resultobj;
7069 fail:
7070 return NULL;
7071}
7072
7073
7074static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
7075 PyObject *obj;
7076 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7077 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7078 Py_INCREF(obj);
7079 return Py_BuildValue((char *)"");
7080}
7081static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj;
7083 wxLog *result;
7084 char *kwnames[] = {
7085 NULL
7086 };
7087
7088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7089 {
7090 PyThreadState* __tstate = wxPyBeginAllowThreads();
7091 result = (wxLog *)new wxLog();
7092
7093 wxPyEndAllowThreads(__tstate);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 }
7096 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7097 return resultobj;
7098 fail:
7099 return NULL;
7100}
7101
7102
7103static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7104 PyObject *resultobj;
7105 bool result;
7106 char *kwnames[] = {
7107 NULL
7108 };
7109
7110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7111 {
7112 PyThreadState* __tstate = wxPyBeginAllowThreads();
7113 result = (bool)wxLog::IsEnabled();
7114
7115 wxPyEndAllowThreads(__tstate);
7116 if (PyErr_Occurred()) SWIG_fail;
7117 }
7118 {
7119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7120 }
7121 return resultobj;
7122 fail:
7123 return NULL;
7124}
7125
7126
7127static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
7128 PyObject *resultobj;
7129 bool arg1 = (bool) True ;
7130 bool result;
7131 PyObject * obj0 = 0 ;
7132 char *kwnames[] = {
7133 (char *) "doIt", NULL
7134 };
7135
7136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7137 if (obj0) {
7138 arg1 = (bool) SWIG_AsBool(obj0);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 {
7142 PyThreadState* __tstate = wxPyBeginAllowThreads();
7143 result = (bool)wxLog::EnableLogging(arg1);
7144
7145 wxPyEndAllowThreads(__tstate);
7146 if (PyErr_Occurred()) SWIG_fail;
7147 }
7148 {
7149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7150 }
7151 return resultobj;
7152 fail:
7153 return NULL;
7154}
7155
7156
7157static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7158 PyObject *resultobj;
7159 wxLogLevel arg1 ;
7160 wxChar *arg2 = (wxChar *) 0 ;
7161 time_t arg3 ;
7162 PyObject * obj0 = 0 ;
7163 PyObject * obj1 = 0 ;
7164 PyObject * obj2 = 0 ;
7165 char *kwnames[] = {
7166 (char *) "level",(char *) "szString",(char *) "t", NULL
7167 };
7168
7169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7170 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7174 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 {
7177 PyThreadState* __tstate = wxPyBeginAllowThreads();
7178 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7179
7180 wxPyEndAllowThreads(__tstate);
7181 if (PyErr_Occurred()) SWIG_fail;
7182 }
7183 Py_INCREF(Py_None); resultobj = Py_None;
7184 return resultobj;
7185 fail:
7186 return NULL;
7187}
7188
7189
7190static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7191 PyObject *resultobj;
7192 wxLog *arg1 = (wxLog *) 0 ;
7193 PyObject * obj0 = 0 ;
7194 char *kwnames[] = {
7195 (char *) "self", NULL
7196 };
7197
7198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7201 {
7202 PyThreadState* __tstate = wxPyBeginAllowThreads();
7203 (arg1)->Flush();
7204
7205 wxPyEndAllowThreads(__tstate);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 }
7208 Py_INCREF(Py_None); resultobj = Py_None;
7209 return resultobj;
7210 fail:
7211 return NULL;
7212}
7213
7214
7215static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7216 PyObject *resultobj;
7217 char *kwnames[] = {
7218 NULL
7219 };
7220
7221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7222 {
7223 PyThreadState* __tstate = wxPyBeginAllowThreads();
7224 wxLog::FlushActive();
7225
7226 wxPyEndAllowThreads(__tstate);
7227 if (PyErr_Occurred()) SWIG_fail;
7228 }
7229 Py_INCREF(Py_None); resultobj = Py_None;
7230 return resultobj;
7231 fail:
7232 return NULL;
7233}
7234
7235
7236static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7237 PyObject *resultobj;
7238 wxLog *result;
7239 char *kwnames[] = {
7240 NULL
7241 };
7242
7243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7244 {
7245 PyThreadState* __tstate = wxPyBeginAllowThreads();
7246 result = (wxLog *)wxLog::GetActiveTarget();
7247
7248 wxPyEndAllowThreads(__tstate);
7249 if (PyErr_Occurred()) SWIG_fail;
7250 }
7251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7252 return resultobj;
7253 fail:
7254 return NULL;
7255}
7256
7257
7258static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7259 PyObject *resultobj;
7260 wxLog *arg1 = (wxLog *) 0 ;
7261 wxLog *result;
7262 PyObject * obj0 = 0 ;
7263 char *kwnames[] = {
7264 (char *) "pLogger", NULL
7265 };
7266
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7273
7274 wxPyEndAllowThreads(__tstate);
7275 if (PyErr_Occurred()) SWIG_fail;
7276 }
7277 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7278 return resultobj;
7279 fail:
7280 return NULL;
7281}
7282
7283
7284static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7285 PyObject *resultobj;
7286 char *kwnames[] = {
7287 NULL
7288 };
7289
7290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7291 {
7292 PyThreadState* __tstate = wxPyBeginAllowThreads();
7293 wxLog::Suspend();
7294
7295 wxPyEndAllowThreads(__tstate);
7296 if (PyErr_Occurred()) SWIG_fail;
7297 }
7298 Py_INCREF(Py_None); resultobj = Py_None;
7299 return resultobj;
7300 fail:
7301 return NULL;
7302}
7303
7304
7305static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7306 PyObject *resultobj;
7307 char *kwnames[] = {
7308 NULL
7309 };
7310
7311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7312 {
7313 PyThreadState* __tstate = wxPyBeginAllowThreads();
7314 wxLog::Resume();
7315
7316 wxPyEndAllowThreads(__tstate);
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 Py_INCREF(Py_None); resultobj = Py_None;
7320 return resultobj;
7321 fail:
7322 return NULL;
7323}
7324
7325
7326static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7327 PyObject *resultobj;
7328 bool arg1 = (bool) True ;
7329 PyObject * obj0 = 0 ;
7330 char *kwnames[] = {
7331 (char *) "bVerbose", NULL
7332 };
7333
7334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7335 if (obj0) {
7336 arg1 = (bool) SWIG_AsBool(obj0);
7337 if (PyErr_Occurred()) SWIG_fail;
7338 }
7339 {
7340 PyThreadState* __tstate = wxPyBeginAllowThreads();
7341 wxLog::SetVerbose(arg1);
7342
7343 wxPyEndAllowThreads(__tstate);
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 Py_INCREF(Py_None); resultobj = Py_None;
7347 return resultobj;
7348 fail:
7349 return NULL;
7350}
7351
7352
7353static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7354 PyObject *resultobj;
7355 wxLogLevel arg1 ;
7356 PyObject * obj0 = 0 ;
7357 char *kwnames[] = {
7358 (char *) "logLevel", NULL
7359 };
7360
7361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7362 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7363 if (PyErr_Occurred()) SWIG_fail;
7364 {
7365 PyThreadState* __tstate = wxPyBeginAllowThreads();
7366 wxLog::SetLogLevel(arg1);
7367
7368 wxPyEndAllowThreads(__tstate);
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 Py_INCREF(Py_None); resultobj = Py_None;
7372 return resultobj;
7373 fail:
7374 return NULL;
7375}
7376
7377
7378static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7379 PyObject *resultobj;
7380 char *kwnames[] = {
7381 NULL
7382 };
7383
7384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7385 {
7386 PyThreadState* __tstate = wxPyBeginAllowThreads();
7387 wxLog::DontCreateOnDemand();
7388
7389 wxPyEndAllowThreads(__tstate);
7390 if (PyErr_Occurred()) SWIG_fail;
7391 }
7392 Py_INCREF(Py_None); resultobj = Py_None;
7393 return resultobj;
7394 fail:
7395 return NULL;
7396}
7397
7398
7399static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7400 PyObject *resultobj;
7401 wxTraceMask arg1 ;
7402 PyObject * obj0 = 0 ;
7403 char *kwnames[] = {
7404 (char *) "ulMask", NULL
7405 };
7406
7407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7408 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 {
7411 PyThreadState* __tstate = wxPyBeginAllowThreads();
7412 wxLog::SetTraceMask(arg1);
7413
7414 wxPyEndAllowThreads(__tstate);
7415 if (PyErr_Occurred()) SWIG_fail;
7416 }
7417 Py_INCREF(Py_None); resultobj = Py_None;
7418 return resultobj;
7419 fail:
7420 return NULL;
7421}
7422
7423
7424static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7425 PyObject *resultobj;
7426 wxString *arg1 = 0 ;
7427 bool temp1 = False ;
7428 PyObject * obj0 = 0 ;
7429 char *kwnames[] = {
7430 (char *) "str", NULL
7431 };
7432
7433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7434 {
7435 arg1 = wxString_in_helper(obj0);
7436 if (arg1 == NULL) SWIG_fail;
7437 temp1 = True;
7438 }
7439 {
7440 PyThreadState* __tstate = wxPyBeginAllowThreads();
7441 wxLog::AddTraceMask((wxString const &)*arg1);
7442
7443 wxPyEndAllowThreads(__tstate);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 Py_INCREF(Py_None); resultobj = Py_None;
7447 {
7448 if (temp1)
7449 delete arg1;
7450 }
7451 return resultobj;
7452 fail:
7453 {
7454 if (temp1)
7455 delete arg1;
7456 }
7457 return NULL;
7458}
7459
7460
7461static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7462 PyObject *resultobj;
7463 wxString *arg1 = 0 ;
7464 bool temp1 = False ;
7465 PyObject * obj0 = 0 ;
7466 char *kwnames[] = {
7467 (char *) "str", NULL
7468 };
7469
7470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7471 {
7472 arg1 = wxString_in_helper(obj0);
7473 if (arg1 == NULL) SWIG_fail;
7474 temp1 = True;
7475 }
7476 {
7477 PyThreadState* __tstate = wxPyBeginAllowThreads();
7478 wxLog::RemoveTraceMask((wxString const &)*arg1);
7479
7480 wxPyEndAllowThreads(__tstate);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 Py_INCREF(Py_None); resultobj = Py_None;
7484 {
7485 if (temp1)
7486 delete arg1;
7487 }
7488 return resultobj;
7489 fail:
7490 {
7491 if (temp1)
7492 delete arg1;
7493 }
7494 return NULL;
7495}
7496
7497
7498static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7499 PyObject *resultobj;
7500 char *kwnames[] = {
7501 NULL
7502 };
7503
7504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7505 {
7506 PyThreadState* __tstate = wxPyBeginAllowThreads();
7507 wxLog::ClearTraceMasks();
7508
7509 wxPyEndAllowThreads(__tstate);
7510 if (PyErr_Occurred()) SWIG_fail;
7511 }
7512 Py_INCREF(Py_None); resultobj = Py_None;
7513 return resultobj;
7514 fail:
7515 return NULL;
7516}
7517
7518
7519static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7520 PyObject *resultobj;
7521 wxArrayString *result;
7522 char *kwnames[] = {
7523 NULL
7524 };
7525
7526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7527 {
7528 PyThreadState* __tstate = wxPyBeginAllowThreads();
7529 {
7530 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7531 result = (wxArrayString *) &_result_ref;
7532 }
7533
7534 wxPyEndAllowThreads(__tstate);
7535 if (PyErr_Occurred()) SWIG_fail;
7536 }
7537 {
7538 resultobj = wxArrayString2PyList_helper(*result);
7539 }
7540 return resultobj;
7541 fail:
7542 return NULL;
7543}
7544
7545
7546static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7547 PyObject *resultobj;
7548 wxChar *arg1 = (wxChar *) 0 ;
7549 PyObject * obj0 = 0 ;
7550 char *kwnames[] = {
7551 (char *) "ts", NULL
7552 };
7553
7554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7557 {
7558 PyThreadState* __tstate = wxPyBeginAllowThreads();
7559 wxLog::SetTimestamp((wxChar const *)arg1);
7560
7561 wxPyEndAllowThreads(__tstate);
7562 if (PyErr_Occurred()) SWIG_fail;
7563 }
7564 Py_INCREF(Py_None); resultobj = Py_None;
7565 return resultobj;
7566 fail:
7567 return NULL;
7568}
7569
7570
7571static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7572 PyObject *resultobj;
7573 bool result;
7574 char *kwnames[] = {
7575 NULL
7576 };
7577
7578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7579 {
7580 PyThreadState* __tstate = wxPyBeginAllowThreads();
7581 result = (bool)wxLog::GetVerbose();
7582
7583 wxPyEndAllowThreads(__tstate);
7584 if (PyErr_Occurred()) SWIG_fail;
7585 }
7586 {
7587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7588 }
7589 return resultobj;
7590 fail:
7591 return NULL;
7592}
7593
7594
7595static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7596 PyObject *resultobj;
7597 wxTraceMask result;
7598 char *kwnames[] = {
7599 NULL
7600 };
7601
7602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7603 {
7604 PyThreadState* __tstate = wxPyBeginAllowThreads();
7605 result = (wxTraceMask)wxLog::GetTraceMask();
7606
7607 wxPyEndAllowThreads(__tstate);
7608 if (PyErr_Occurred()) SWIG_fail;
7609 }
7610 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7611 return resultobj;
7612 fail:
7613 return NULL;
7614}
7615
7616
7617static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7618 PyObject *resultobj;
7619 wxChar *arg1 = (wxChar *) 0 ;
7620 bool result;
7621 PyObject * obj0 = 0 ;
7622 char *kwnames[] = {
7623 (char *) "mask", NULL
7624 };
7625
7626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7632
7633 wxPyEndAllowThreads(__tstate);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 {
7637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7638 }
7639 return resultobj;
7640 fail:
7641 return NULL;
7642}
7643
7644
7645static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7646 PyObject *resultobj;
7647 wxLogLevel result;
7648 char *kwnames[] = {
7649 NULL
7650 };
7651
7652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7653 {
7654 PyThreadState* __tstate = wxPyBeginAllowThreads();
7655 result = (wxLogLevel)wxLog::GetLogLevel();
7656
7657 wxPyEndAllowThreads(__tstate);
7658 if (PyErr_Occurred()) SWIG_fail;
7659 }
7660 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7661 return resultobj;
7662 fail:
7663 return NULL;
7664}
7665
7666
7667static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7668 PyObject *resultobj;
7669 wxChar *result;
7670 char *kwnames[] = {
7671 NULL
7672 };
7673
7674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7675 {
7676 PyThreadState* __tstate = wxPyBeginAllowThreads();
7677 result = (wxChar *)wxLog::GetTimestamp();
7678
7679 wxPyEndAllowThreads(__tstate);
7680 if (PyErr_Occurred()) SWIG_fail;
7681 }
7682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7683 return resultobj;
7684 fail:
7685 return NULL;
7686}
7687
7688
7689static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7690 PyObject *resultobj;
7691 wxString result;
7692 char *kwnames[] = {
7693 NULL
7694 };
7695
7696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7697 {
7698 PyThreadState* __tstate = wxPyBeginAllowThreads();
7699 result = Log_TimeStamp();
7700
7701 wxPyEndAllowThreads(__tstate);
7702 if (PyErr_Occurred()) SWIG_fail;
7703 }
7704 {
7705#if wxUSE_UNICODE
7706 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7707#else
7708 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7709#endif
7710 }
7711 return resultobj;
7712 fail:
7713 return NULL;
7714}
7715
7716
7717static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7718 PyObject *resultobj;
7719 wxLog *arg1 = (wxLog *) 0 ;
7720 PyObject * obj0 = 0 ;
7721 char *kwnames[] = {
7722 (char *) "self", NULL
7723 };
7724
7725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7728 {
7729 PyThreadState* __tstate = wxPyBeginAllowThreads();
7730 wxLog_Destroy(arg1);
7731
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 Py_INCREF(Py_None); resultobj = Py_None;
7736 return resultobj;
7737 fail:
7738 return NULL;
7739}
7740
7741
7742static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7743 PyObject *obj;
7744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7745 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7746 Py_INCREF(obj);
7747 return Py_BuildValue((char *)"");
7748}
7749static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7750 PyObject *resultobj;
7751 wxLogStderr *result;
7752 char *kwnames[] = {
7753 NULL
7754 };
7755
7756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7757 {
7758 PyThreadState* __tstate = wxPyBeginAllowThreads();
7759 result = (wxLogStderr *)new wxLogStderr();
7760
7761 wxPyEndAllowThreads(__tstate);
7762 if (PyErr_Occurred()) SWIG_fail;
7763 }
7764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7765 return resultobj;
7766 fail:
7767 return NULL;
7768}
7769
7770
7771static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7772 PyObject *obj;
7773 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7774 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7775 Py_INCREF(obj);
7776 return Py_BuildValue((char *)"");
7777}
7778static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7779 PyObject *resultobj;
7780 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7781 wxLogTextCtrl *result;
7782 PyObject * obj0 = 0 ;
7783 char *kwnames[] = {
7784 (char *) "pTextCtrl", NULL
7785 };
7786
7787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7793
7794 wxPyEndAllowThreads(__tstate);
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7798 return resultobj;
7799 fail:
7800 return NULL;
7801}
7802
7803
7804static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7805 PyObject *obj;
7806 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7807 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7808 Py_INCREF(obj);
7809 return Py_BuildValue((char *)"");
7810}
7811static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7812 PyObject *resultobj;
7813 wxLogGui *result;
7814 char *kwnames[] = {
7815 NULL
7816 };
7817
7818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7819 {
7820 PyThreadState* __tstate = wxPyBeginAllowThreads();
7821 result = (wxLogGui *)new wxLogGui();
7822
7823 wxPyEndAllowThreads(__tstate);
7824 if (PyErr_Occurred()) SWIG_fail;
7825 }
7826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7827 return resultobj;
7828 fail:
7829 return NULL;
7830}
7831
7832
7833static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7834 PyObject *obj;
7835 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7836 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7837 Py_INCREF(obj);
7838 return Py_BuildValue((char *)"");
7839}
7840static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7841 PyObject *resultobj;
7842 wxFrame *arg1 = (wxFrame *) 0 ;
7843 wxString *arg2 = 0 ;
7844 bool arg3 = (bool) True ;
7845 bool arg4 = (bool) True ;
7846 wxLogWindow *result;
7847 bool temp2 = False ;
7848 PyObject * obj0 = 0 ;
7849 PyObject * obj1 = 0 ;
7850 PyObject * obj2 = 0 ;
7851 PyObject * obj3 = 0 ;
7852 char *kwnames[] = {
7853 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7854 };
7855
7856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7859 {
7860 arg2 = wxString_in_helper(obj1);
7861 if (arg2 == NULL) SWIG_fail;
7862 temp2 = True;
7863 }
7864 if (obj2) {
7865 arg3 = (bool) SWIG_AsBool(obj2);
7866 if (PyErr_Occurred()) SWIG_fail;
7867 }
7868 if (obj3) {
7869 arg4 = (bool) SWIG_AsBool(obj3);
7870 if (PyErr_Occurred()) SWIG_fail;
7871 }
7872 {
7873 PyThreadState* __tstate = wxPyBeginAllowThreads();
7874 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7875
7876 wxPyEndAllowThreads(__tstate);
7877 if (PyErr_Occurred()) SWIG_fail;
7878 }
7879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7880 {
7881 if (temp2)
7882 delete arg2;
7883 }
7884 return resultobj;
7885 fail:
7886 {
7887 if (temp2)
7888 delete arg2;
7889 }
7890 return NULL;
7891}
7892
7893
7894static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7895 PyObject *resultobj;
7896 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7897 bool arg2 = (bool) True ;
7898 PyObject * obj0 = 0 ;
7899 PyObject * obj1 = 0 ;
7900 char *kwnames[] = {
7901 (char *) "self",(char *) "bShow", NULL
7902 };
7903
7904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7907 if (obj1) {
7908 arg2 = (bool) SWIG_AsBool(obj1);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 {
7912 PyThreadState* __tstate = wxPyBeginAllowThreads();
7913 (arg1)->Show(arg2);
7914
7915 wxPyEndAllowThreads(__tstate);
7916 if (PyErr_Occurred()) SWIG_fail;
7917 }
7918 Py_INCREF(Py_None); resultobj = Py_None;
7919 return resultobj;
7920 fail:
7921 return NULL;
7922}
7923
7924
7925static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7926 PyObject *resultobj;
7927 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7928 wxFrame *result;
7929 PyObject * obj0 = 0 ;
7930 char *kwnames[] = {
7931 (char *) "self", NULL
7932 };
7933
7934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7937 {
7938 PyThreadState* __tstate = wxPyBeginAllowThreads();
7939 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7940
7941 wxPyEndAllowThreads(__tstate);
7942 if (PyErr_Occurred()) SWIG_fail;
7943 }
7944 {
7945 resultobj = wxPyMake_wxObject(result);
7946 }
7947 return resultobj;
7948 fail:
7949 return NULL;
7950}
7951
7952
7953static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7954 PyObject *resultobj;
7955 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7956 wxLog *result;
7957 PyObject * obj0 = 0 ;
7958 char *kwnames[] = {
7959 (char *) "self", NULL
7960 };
7961
7962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7965 {
7966 PyThreadState* __tstate = wxPyBeginAllowThreads();
7967 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7968
7969 wxPyEndAllowThreads(__tstate);
7970 if (PyErr_Occurred()) SWIG_fail;
7971 }
7972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7973 return resultobj;
7974 fail:
7975 return NULL;
7976}
7977
7978
7979static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7980 PyObject *resultobj;
7981 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7982 bool result;
7983 PyObject * obj0 = 0 ;
7984 char *kwnames[] = {
7985 (char *) "self", NULL
7986 };
7987
7988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7991 {
7992 PyThreadState* __tstate = wxPyBeginAllowThreads();
7993 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7994
7995 wxPyEndAllowThreads(__tstate);
7996 if (PyErr_Occurred()) SWIG_fail;
7997 }
7998 {
7999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8000 }
8001 return resultobj;
8002 fail:
8003 return NULL;
8004}
8005
8006
8007static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8008 PyObject *resultobj;
8009 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8010 bool arg2 ;
8011 PyObject * obj0 = 0 ;
8012 PyObject * obj1 = 0 ;
8013 char *kwnames[] = {
8014 (char *) "self",(char *) "bDoPass", NULL
8015 };
8016
8017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8020 arg2 = (bool) SWIG_AsBool(obj1);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 {
8023 PyThreadState* __tstate = wxPyBeginAllowThreads();
8024 (arg1)->PassMessages(arg2);
8025
8026 wxPyEndAllowThreads(__tstate);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 Py_INCREF(Py_None); resultobj = Py_None;
8030 return resultobj;
8031 fail:
8032 return NULL;
8033}
8034
8035
8036static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
8037 PyObject *obj;
8038 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8039 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8040 Py_INCREF(obj);
8041 return Py_BuildValue((char *)"");
8042}
8043static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
8044 PyObject *resultobj;
8045 wxLog *arg1 = (wxLog *) 0 ;
8046 wxLogChain *result;
8047 PyObject * obj0 = 0 ;
8048 char *kwnames[] = {
8049 (char *) "logger", NULL
8050 };
8051
8052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8055 {
8056 PyThreadState* __tstate = wxPyBeginAllowThreads();
8057 result = (wxLogChain *)new wxLogChain(arg1);
8058
8059 wxPyEndAllowThreads(__tstate);
8060 if (PyErr_Occurred()) SWIG_fail;
8061 }
8062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8063 return resultobj;
8064 fail:
8065 return NULL;
8066}
8067
8068
8069static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8070 PyObject *resultobj;
8071 wxLogChain *arg1 = (wxLogChain *) 0 ;
8072 wxLog *arg2 = (wxLog *) 0 ;
8073 PyObject * obj0 = 0 ;
8074 PyObject * obj1 = 0 ;
8075 char *kwnames[] = {
8076 (char *) "self",(char *) "logger", NULL
8077 };
8078
8079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8084 {
8085 PyThreadState* __tstate = wxPyBeginAllowThreads();
8086 (arg1)->SetLog(arg2);
8087
8088 wxPyEndAllowThreads(__tstate);
8089 if (PyErr_Occurred()) SWIG_fail;
8090 }
8091 Py_INCREF(Py_None); resultobj = Py_None;
8092 return resultobj;
8093 fail:
8094 return NULL;
8095}
8096
8097
8098static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8099 PyObject *resultobj;
8100 wxLogChain *arg1 = (wxLogChain *) 0 ;
8101 bool arg2 ;
8102 PyObject * obj0 = 0 ;
8103 PyObject * obj1 = 0 ;
8104 char *kwnames[] = {
8105 (char *) "self",(char *) "bDoPass", NULL
8106 };
8107
8108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8111 arg2 = (bool) SWIG_AsBool(obj1);
8112 if (PyErr_Occurred()) SWIG_fail;
8113 {
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 (arg1)->PassMessages(arg2);
8116
8117 wxPyEndAllowThreads(__tstate);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 Py_INCREF(Py_None); resultobj = Py_None;
8121 return resultobj;
8122 fail:
8123 return NULL;
8124}
8125
8126
8127static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8128 PyObject *resultobj;
8129 wxLogChain *arg1 = (wxLogChain *) 0 ;
8130 bool result;
8131 PyObject * obj0 = 0 ;
8132 char *kwnames[] = {
8133 (char *) "self", NULL
8134 };
8135
8136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8139 {
8140 PyThreadState* __tstate = wxPyBeginAllowThreads();
8141 result = (bool)(arg1)->IsPassingMessages();
8142
8143 wxPyEndAllowThreads(__tstate);
8144 if (PyErr_Occurred()) SWIG_fail;
8145 }
8146 {
8147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8148 }
8149 return resultobj;
8150 fail:
8151 return NULL;
8152}
8153
8154
8155static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8156 PyObject *resultobj;
8157 wxLogChain *arg1 = (wxLogChain *) 0 ;
8158 wxLog *result;
8159 PyObject * obj0 = 0 ;
8160 char *kwnames[] = {
8161 (char *) "self", NULL
8162 };
8163
8164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8167 {
8168 PyThreadState* __tstate = wxPyBeginAllowThreads();
8169 result = (wxLog *)(arg1)->GetOldLog();
8170
8171 wxPyEndAllowThreads(__tstate);
8172 if (PyErr_Occurred()) SWIG_fail;
8173 }
8174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8175 return resultobj;
8176 fail:
8177 return NULL;
8178}
8179
8180
8181static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8182 PyObject *obj;
8183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8184 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8185 Py_INCREF(obj);
8186 return Py_BuildValue((char *)"");
8187}
8188static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8189 PyObject *resultobj;
8190 unsigned long result;
8191 char *kwnames[] = {
8192 NULL
8193 };
8194
8195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8196 {
8197 PyThreadState* __tstate = wxPyBeginAllowThreads();
8198 result = (unsigned long)wxSysErrorCode();
8199
8200 wxPyEndAllowThreads(__tstate);
8201 if (PyErr_Occurred()) SWIG_fail;
8202 }
8203 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8204 return resultobj;
8205 fail:
8206 return NULL;
8207}
8208
8209
8210static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8211 PyObject *resultobj;
8212 unsigned long arg1 = (unsigned long) 0 ;
8213 wxString result;
8214 PyObject * obj0 = 0 ;
8215 char *kwnames[] = {
8216 (char *) "nErrCode", NULL
8217 };
8218
8219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8220 if (obj0) {
8221 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8222 if (PyErr_Occurred()) SWIG_fail;
8223 }
8224 {
8225 PyThreadState* __tstate = wxPyBeginAllowThreads();
8226 result = wxSysErrorMsg(arg1);
8227
8228 wxPyEndAllowThreads(__tstate);
8229 if (PyErr_Occurred()) SWIG_fail;
8230 }
8231 {
8232#if wxUSE_UNICODE
8233 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8234#else
8235 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8236#endif
8237 }
8238 return resultobj;
8239 fail:
8240 return NULL;
8241}
8242
8243
8244static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8245 PyObject *resultobj;
8246 wxString *arg1 = 0 ;
8247 bool temp1 = False ;
8248 PyObject * obj0 = 0 ;
8249 char *kwnames[] = {
8250 (char *) "msg", NULL
8251 };
8252
8253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8254 {
8255 arg1 = wxString_in_helper(obj0);
8256 if (arg1 == NULL) SWIG_fail;
8257 temp1 = True;
8258 }
8259 {
8260 PyThreadState* __tstate = wxPyBeginAllowThreads();
8261 wxLogFatalError((wxString const &)*arg1);
8262
8263 wxPyEndAllowThreads(__tstate);
8264 if (PyErr_Occurred()) SWIG_fail;
8265 }
8266 Py_INCREF(Py_None); resultobj = Py_None;
8267 {
8268 if (temp1)
8269 delete arg1;
8270 }
8271 return resultobj;
8272 fail:
8273 {
8274 if (temp1)
8275 delete arg1;
8276 }
8277 return NULL;
8278}
8279
8280
8281static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8282 PyObject *resultobj;
8283 wxString *arg1 = 0 ;
8284 bool temp1 = False ;
8285 PyObject * obj0 = 0 ;
8286 char *kwnames[] = {
8287 (char *) "msg", NULL
8288 };
8289
8290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8291 {
8292 arg1 = wxString_in_helper(obj0);
8293 if (arg1 == NULL) SWIG_fail;
8294 temp1 = True;
8295 }
8296 {
8297 PyThreadState* __tstate = wxPyBeginAllowThreads();
8298 wxLogError((wxString const &)*arg1);
8299
8300 wxPyEndAllowThreads(__tstate);
8301 if (PyErr_Occurred()) SWIG_fail;
8302 }
8303 Py_INCREF(Py_None); resultobj = Py_None;
8304 {
8305 if (temp1)
8306 delete arg1;
8307 }
8308 return resultobj;
8309 fail:
8310 {
8311 if (temp1)
8312 delete arg1;
8313 }
8314 return NULL;
8315}
8316
8317
8318static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8319 PyObject *resultobj;
8320 wxString *arg1 = 0 ;
8321 bool temp1 = False ;
8322 PyObject * obj0 = 0 ;
8323 char *kwnames[] = {
8324 (char *) "msg", NULL
8325 };
8326
8327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8328 {
8329 arg1 = wxString_in_helper(obj0);
8330 if (arg1 == NULL) SWIG_fail;
8331 temp1 = True;
8332 }
8333 {
8334 PyThreadState* __tstate = wxPyBeginAllowThreads();
8335 wxLogWarning((wxString const &)*arg1);
8336
8337 wxPyEndAllowThreads(__tstate);
8338 if (PyErr_Occurred()) SWIG_fail;
8339 }
8340 Py_INCREF(Py_None); resultobj = Py_None;
8341 {
8342 if (temp1)
8343 delete arg1;
8344 }
8345 return resultobj;
8346 fail:
8347 {
8348 if (temp1)
8349 delete arg1;
8350 }
8351 return NULL;
8352}
8353
8354
8355static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8356 PyObject *resultobj;
8357 wxString *arg1 = 0 ;
8358 bool temp1 = False ;
8359 PyObject * obj0 = 0 ;
8360 char *kwnames[] = {
8361 (char *) "msg", NULL
8362 };
8363
8364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8365 {
8366 arg1 = wxString_in_helper(obj0);
8367 if (arg1 == NULL) SWIG_fail;
8368 temp1 = True;
8369 }
8370 {
8371 PyThreadState* __tstate = wxPyBeginAllowThreads();
8372 wxLogMessage((wxString const &)*arg1);
8373
8374 wxPyEndAllowThreads(__tstate);
8375 if (PyErr_Occurred()) SWIG_fail;
8376 }
8377 Py_INCREF(Py_None); resultobj = Py_None;
8378 {
8379 if (temp1)
8380 delete arg1;
8381 }
8382 return resultobj;
8383 fail:
8384 {
8385 if (temp1)
8386 delete arg1;
8387 }
8388 return NULL;
8389}
8390
8391
8392static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8393 PyObject *resultobj;
8394 wxString *arg1 = 0 ;
8395 bool temp1 = False ;
8396 PyObject * obj0 = 0 ;
8397 char *kwnames[] = {
8398 (char *) "msg", NULL
8399 };
8400
8401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8402 {
8403 arg1 = wxString_in_helper(obj0);
8404 if (arg1 == NULL) SWIG_fail;
8405 temp1 = True;
8406 }
8407 {
8408 PyThreadState* __tstate = wxPyBeginAllowThreads();
8409 wxLogInfo((wxString const &)*arg1);
8410
8411 wxPyEndAllowThreads(__tstate);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 }
8414 Py_INCREF(Py_None); resultobj = Py_None;
8415 {
8416 if (temp1)
8417 delete arg1;
8418 }
8419 return resultobj;
8420 fail:
8421 {
8422 if (temp1)
8423 delete arg1;
8424 }
8425 return NULL;
8426}
8427
8428
8429static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8430 PyObject *resultobj;
8431 wxString *arg1 = 0 ;
8432 bool temp1 = False ;
8433 PyObject * obj0 = 0 ;
8434 char *kwnames[] = {
8435 (char *) "msg", NULL
8436 };
8437
8438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8439 {
8440 arg1 = wxString_in_helper(obj0);
8441 if (arg1 == NULL) SWIG_fail;
8442 temp1 = True;
8443 }
8444 {
8445 PyThreadState* __tstate = wxPyBeginAllowThreads();
8446 wxLogDebug((wxString const &)*arg1);
8447
8448 wxPyEndAllowThreads(__tstate);
8449 if (PyErr_Occurred()) SWIG_fail;
8450 }
8451 Py_INCREF(Py_None); resultobj = Py_None;
8452 {
8453 if (temp1)
8454 delete arg1;
8455 }
8456 return resultobj;
8457 fail:
8458 {
8459 if (temp1)
8460 delete arg1;
8461 }
8462 return NULL;
8463}
8464
8465
8466static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8467 PyObject *resultobj;
8468 wxString *arg1 = 0 ;
8469 bool temp1 = False ;
8470 PyObject * obj0 = 0 ;
8471 char *kwnames[] = {
8472 (char *) "msg", NULL
8473 };
8474
8475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8476 {
8477 arg1 = wxString_in_helper(obj0);
8478 if (arg1 == NULL) SWIG_fail;
8479 temp1 = True;
8480 }
8481 {
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 wxLogVerbose((wxString const &)*arg1);
8484
8485 wxPyEndAllowThreads(__tstate);
8486 if (PyErr_Occurred()) SWIG_fail;
8487 }
8488 Py_INCREF(Py_None); resultobj = Py_None;
8489 {
8490 if (temp1)
8491 delete arg1;
8492 }
8493 return resultobj;
8494 fail:
8495 {
8496 if (temp1)
8497 delete arg1;
8498 }
8499 return NULL;
8500}
8501
8502
8503static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8504 PyObject *resultobj;
8505 wxString *arg1 = 0 ;
8506 bool temp1 = False ;
8507 PyObject * obj0 = 0 ;
8508 char *kwnames[] = {
8509 (char *) "msg", NULL
8510 };
8511
8512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8513 {
8514 arg1 = wxString_in_helper(obj0);
8515 if (arg1 == NULL) SWIG_fail;
8516 temp1 = True;
8517 }
8518 {
8519 PyThreadState* __tstate = wxPyBeginAllowThreads();
8520 wxLogStatus((wxString const &)*arg1);
8521
8522 wxPyEndAllowThreads(__tstate);
8523 if (PyErr_Occurred()) SWIG_fail;
8524 }
8525 Py_INCREF(Py_None); resultobj = Py_None;
8526 {
8527 if (temp1)
8528 delete arg1;
8529 }
8530 return resultobj;
8531 fail:
8532 {
8533 if (temp1)
8534 delete arg1;
8535 }
8536 return NULL;
8537}
8538
8539
8540static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8541 PyObject *resultobj;
8542 wxFrame *arg1 = (wxFrame *) 0 ;
8543 wxString *arg2 = 0 ;
8544 bool temp2 = False ;
8545 PyObject * obj0 = 0 ;
8546 PyObject * obj1 = 0 ;
8547 char *kwnames[] = {
8548 (char *) "pFrame",(char *) "msg", NULL
8549 };
8550
8551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8554 {
8555 arg2 = wxString_in_helper(obj1);
8556 if (arg2 == NULL) SWIG_fail;
8557 temp2 = True;
8558 }
8559 {
8560 PyThreadState* __tstate = wxPyBeginAllowThreads();
8561 wxLogStatus(arg1,(wxString const &)*arg2);
8562
8563 wxPyEndAllowThreads(__tstate);
8564 if (PyErr_Occurred()) SWIG_fail;
8565 }
8566 Py_INCREF(Py_None); resultobj = Py_None;
8567 {
8568 if (temp2)
8569 delete arg2;
8570 }
8571 return resultobj;
8572 fail:
8573 {
8574 if (temp2)
8575 delete arg2;
8576 }
8577 return NULL;
8578}
8579
8580
8581static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8582 PyObject *resultobj;
8583 wxString *arg1 = 0 ;
8584 bool temp1 = False ;
8585 PyObject * obj0 = 0 ;
8586 char *kwnames[] = {
8587 (char *) "msg", NULL
8588 };
8589
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8591 {
8592 arg1 = wxString_in_helper(obj0);
8593 if (arg1 == NULL) SWIG_fail;
8594 temp1 = True;
8595 }
8596 {
8597 PyThreadState* __tstate = wxPyBeginAllowThreads();
8598 wxLogSysError((wxString const &)*arg1);
8599
8600 wxPyEndAllowThreads(__tstate);
8601 if (PyErr_Occurred()) SWIG_fail;
8602 }
8603 Py_INCREF(Py_None); resultobj = Py_None;
8604 {
8605 if (temp1)
8606 delete arg1;
8607 }
8608 return resultobj;
8609 fail:
8610 {
8611 if (temp1)
8612 delete arg1;
8613 }
8614 return NULL;
8615}
8616
8617
8618static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8619 PyObject *resultobj;
8620 unsigned long arg1 ;
8621 wxString *arg2 = 0 ;
8622 bool temp2 = False ;
8623 PyObject * obj0 = 0 ;
8624 PyObject * obj1 = 0 ;
8625
8626 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8627 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 {
8630 arg2 = wxString_in_helper(obj1);
8631 if (arg2 == NULL) SWIG_fail;
8632 temp2 = True;
8633 }
8634 {
8635 PyThreadState* __tstate = wxPyBeginAllowThreads();
8636 wxLogTrace(arg1,(wxString const &)*arg2);
8637
8638 wxPyEndAllowThreads(__tstate);
8639 if (PyErr_Occurred()) SWIG_fail;
8640 }
8641 Py_INCREF(Py_None); resultobj = Py_None;
8642 {
8643 if (temp2)
8644 delete arg2;
8645 }
8646 return resultobj;
8647 fail:
8648 {
8649 if (temp2)
8650 delete arg2;
8651 }
8652 return NULL;
8653}
8654
8655
8656static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8657 PyObject *resultobj;
8658 wxString *arg1 = 0 ;
8659 wxString *arg2 = 0 ;
8660 bool temp1 = False ;
8661 bool temp2 = False ;
8662 PyObject * obj0 = 0 ;
8663 PyObject * obj1 = 0 ;
8664
8665 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8666 {
8667 arg1 = wxString_in_helper(obj0);
8668 if (arg1 == NULL) SWIG_fail;
8669 temp1 = True;
8670 }
8671 {
8672 arg2 = wxString_in_helper(obj1);
8673 if (arg2 == NULL) SWIG_fail;
8674 temp2 = True;
8675 }
8676 {
8677 PyThreadState* __tstate = wxPyBeginAllowThreads();
8678 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8679
8680 wxPyEndAllowThreads(__tstate);
8681 if (PyErr_Occurred()) SWIG_fail;
8682 }
8683 Py_INCREF(Py_None); resultobj = Py_None;
8684 {
8685 if (temp1)
8686 delete arg1;
8687 }
8688 {
8689 if (temp2)
8690 delete arg2;
8691 }
8692 return resultobj;
8693 fail:
8694 {
8695 if (temp1)
8696 delete arg1;
8697 }
8698 {
8699 if (temp2)
8700 delete arg2;
8701 }
8702 return NULL;
8703}
8704
8705
8706static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8707 int argc;
8708 PyObject *argv[3];
8709 int ii;
8710
8711 argc = PyObject_Length(args);
8712 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8713 argv[ii] = PyTuple_GetItem(args,ii);
8714 }
8715 if (argc == 2) {
8716 int _v;
8717 {
8718 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8719 }
8720 if (_v) {
8721 {
8722 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8723 }
8724 if (_v) {
8725 return _wrap_LogTrace__SWIG_1(self,args);
8726 }
8727 }
8728 }
8729 if (argc == 2) {
8730 int _v;
8731 _v = SWIG_CheckUnsignedLong(argv[0]);
8732 if (_v) {
8733 {
8734 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8735 }
8736 if (_v) {
8737 return _wrap_LogTrace__SWIG_0(self,args);
8738 }
8739 }
8740 }
8741
8742 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8743 return NULL;
8744}
8745
8746
8747static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8748 PyObject *resultobj;
8749 unsigned long arg1 ;
8750 wxString *arg2 = 0 ;
8751 bool temp2 = False ;
8752 PyObject * obj0 = 0 ;
8753 PyObject * obj1 = 0 ;
8754 char *kwnames[] = {
8755 (char *) "level",(char *) "msg", NULL
8756 };
8757
8758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8759 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8760 if (PyErr_Occurred()) SWIG_fail;
8761 {
8762 arg2 = wxString_in_helper(obj1);
8763 if (arg2 == NULL) SWIG_fail;
8764 temp2 = True;
8765 }
8766 {
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 wxLogGeneric(arg1,(wxString const &)*arg2);
8769
8770 wxPyEndAllowThreads(__tstate);
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 Py_INCREF(Py_None); resultobj = Py_None;
8774 {
8775 if (temp2)
8776 delete arg2;
8777 }
8778 return resultobj;
8779 fail:
8780 {
8781 if (temp2)
8782 delete arg2;
8783 }
8784 return NULL;
8785}
8786
8787
8788static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8789 PyObject *resultobj;
8790 wxString *arg1 = 0 ;
8791 wxString *arg2 = 0 ;
8792 bool temp1 = False ;
8793 bool temp2 = False ;
8794 PyObject * obj0 = 0 ;
8795 PyObject * obj1 = 0 ;
8796 char *kwnames[] = {
8797 (char *) "title",(char *) "text", NULL
8798 };
8799
8800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8801 {
8802 arg1 = wxString_in_helper(obj0);
8803 if (arg1 == NULL) SWIG_fail;
8804 temp1 = True;
8805 }
8806 {
8807 arg2 = wxString_in_helper(obj1);
8808 if (arg2 == NULL) SWIG_fail;
8809 temp2 = True;
8810 }
8811 {
8812 PyThreadState* __tstate = wxPyBeginAllowThreads();
8813 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8814
8815 wxPyEndAllowThreads(__tstate);
8816 if (PyErr_Occurred()) SWIG_fail;
8817 }
8818 Py_INCREF(Py_None); resultobj = Py_None;
8819 {
8820 if (temp1)
8821 delete arg1;
8822 }
8823 {
8824 if (temp2)
8825 delete arg2;
8826 }
8827 return resultobj;
8828 fail:
8829 {
8830 if (temp1)
8831 delete arg1;
8832 }
8833 {
8834 if (temp2)
8835 delete arg2;
8836 }
8837 return NULL;
8838}
8839
8840
8841static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8842 PyObject *resultobj;
8843 wxLogNull *result;
8844 char *kwnames[] = {
8845 NULL
8846 };
8847
8848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8849 {
8850 PyThreadState* __tstate = wxPyBeginAllowThreads();
8851 result = (wxLogNull *)new wxLogNull();
8852
8853 wxPyEndAllowThreads(__tstate);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 }
8856 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8857 return resultobj;
8858 fail:
8859 return NULL;
8860}
8861
8862
8863static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8864 PyObject *resultobj;
8865 wxLogNull *arg1 = (wxLogNull *) 0 ;
8866 PyObject * obj0 = 0 ;
8867 char *kwnames[] = {
8868 (char *) "self", NULL
8869 };
8870
8871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8874 {
8875 PyThreadState* __tstate = wxPyBeginAllowThreads();
8876 delete arg1;
8877
8878 wxPyEndAllowThreads(__tstate);
8879 if (PyErr_Occurred()) SWIG_fail;
8880 }
8881 Py_INCREF(Py_None); resultobj = Py_None;
8882 return resultobj;
8883 fail:
8884 return NULL;
8885}
8886
8887
8888static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8889 PyObject *obj;
8890 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8891 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8892 Py_INCREF(obj);
8893 return Py_BuildValue((char *)"");
8894}
8895static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8896 PyObject *resultobj;
8897 wxPyLog *result;
8898 char *kwnames[] = {
8899 NULL
8900 };
8901
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8903 {
8904 PyThreadState* __tstate = wxPyBeginAllowThreads();
8905 result = (wxPyLog *)new wxPyLog();
8906
8907 wxPyEndAllowThreads(__tstate);
8908 if (PyErr_Occurred()) SWIG_fail;
8909 }
8910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8911 return resultobj;
8912 fail:
8913 return NULL;
8914}
8915
8916
8917static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8918 PyObject *resultobj;
8919 wxPyLog *arg1 = (wxPyLog *) 0 ;
8920 PyObject *arg2 = (PyObject *) 0 ;
8921 PyObject *arg3 = (PyObject *) 0 ;
8922 PyObject * obj0 = 0 ;
8923 PyObject * obj1 = 0 ;
8924 PyObject * obj2 = 0 ;
8925 char *kwnames[] = {
8926 (char *) "self",(char *) "self",(char *) "_class", NULL
8927 };
8928
8929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8932 arg2 = obj1;
8933 arg3 = obj2;
8934 {
8935 PyThreadState* __tstate = wxPyBeginAllowThreads();
8936 (arg1)->_setCallbackInfo(arg2,arg3);
8937
8938 wxPyEndAllowThreads(__tstate);
8939 if (PyErr_Occurred()) SWIG_fail;
8940 }
8941 Py_INCREF(Py_None); resultobj = Py_None;
8942 return resultobj;
8943 fail:
8944 return NULL;
8945}
8946
8947
8948static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8949 PyObject *obj;
8950 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8951 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8952 Py_INCREF(obj);
8953 return Py_BuildValue((char *)"");
8954}
8955static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8956 PyObject *resultobj;
8957 int arg1 ;
8958 int arg2 = (int) wxSIGTERM ;
8959 int result;
8960 PyObject * obj0 = 0 ;
8961 PyObject * obj1 = 0 ;
8962 char *kwnames[] = {
8963 (char *) "pid",(char *) "sig", NULL
8964 };
8965
8966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8967 arg1 = (int) SWIG_AsInt(obj0);
8968 if (PyErr_Occurred()) SWIG_fail;
8969 if (obj1) {
8970 arg2 = (wxSignal) SWIG_AsInt(obj1);
8971 if (PyErr_Occurred()) SWIG_fail;
8972 }
8973 {
8974 PyThreadState* __tstate = wxPyBeginAllowThreads();
8975 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8976
8977 wxPyEndAllowThreads(__tstate);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 }
8980 resultobj = SWIG_FromInt((int)result);
8981 return resultobj;
8982 fail:
8983 return NULL;
8984}
8985
8986
8987static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8988 PyObject *resultobj;
8989 int arg1 ;
8990 bool result;
8991 PyObject * obj0 = 0 ;
8992 char *kwnames[] = {
8993 (char *) "pid", NULL
8994 };
8995
8996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8997 arg1 = (int) SWIG_AsInt(obj0);
8998 if (PyErr_Occurred()) SWIG_fail;
8999 {
9000 PyThreadState* __tstate = wxPyBeginAllowThreads();
9001 result = (bool)wxPyProcess::Exists(arg1);
9002
9003 wxPyEndAllowThreads(__tstate);
9004 if (PyErr_Occurred()) SWIG_fail;
9005 }
9006 {
9007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9008 }
9009 return resultobj;
9010 fail:
9011 return NULL;
9012}
9013
9014
9015static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
9016 PyObject *resultobj;
9017 wxString *arg1 = 0 ;
9018 int arg2 = (int) wxEXEC_ASYNC ;
9019 wxPyProcess *result;
9020 bool temp1 = False ;
9021 PyObject * obj0 = 0 ;
9022 PyObject * obj1 = 0 ;
9023 char *kwnames[] = {
9024 (char *) "cmd",(char *) "flags", NULL
9025 };
9026
9027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9028 {
9029 arg1 = wxString_in_helper(obj0);
9030 if (arg1 == NULL) SWIG_fail;
9031 temp1 = True;
9032 }
9033 if (obj1) {
9034 arg2 = (int) SWIG_AsInt(obj1);
9035 if (PyErr_Occurred()) SWIG_fail;
9036 }
9037 {
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9040
9041 wxPyEndAllowThreads(__tstate);
9042 if (PyErr_Occurred()) SWIG_fail;
9043 }
9044 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9045 {
9046 if (temp1)
9047 delete arg1;
9048 }
9049 return resultobj;
9050 fail:
9051 {
9052 if (temp1)
9053 delete arg1;
9054 }
9055 return NULL;
9056}
9057
9058
9059static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
9060 PyObject *resultobj;
9061 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9062 int arg2 = (int) -1 ;
9063 wxPyProcess *result;
9064 PyObject * obj0 = 0 ;
9065 PyObject * obj1 = 0 ;
9066 char *kwnames[] = {
9067 (char *) "parent",(char *) "id", NULL
9068 };
9069
9070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9071 if (obj0) {
9072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9074 }
9075 if (obj1) {
9076 arg2 = (int) SWIG_AsInt(obj1);
9077 if (PyErr_Occurred()) SWIG_fail;
9078 }
9079 {
9080 PyThreadState* __tstate = wxPyBeginAllowThreads();
9081 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9082
9083 wxPyEndAllowThreads(__tstate);
9084 if (PyErr_Occurred()) SWIG_fail;
9085 }
9086 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9087 return resultobj;
9088 fail:
9089 return NULL;
9090}
9091
9092
9093static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj;
9095 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9096 PyObject *arg2 = (PyObject *) 0 ;
9097 PyObject *arg3 = (PyObject *) 0 ;
9098 PyObject * obj0 = 0 ;
9099 PyObject * obj1 = 0 ;
9100 PyObject * obj2 = 0 ;
9101 char *kwnames[] = {
9102 (char *) "self",(char *) "self",(char *) "_class", NULL
9103 };
9104
9105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9108 arg2 = obj1;
9109 arg3 = obj2;
9110 {
9111 PyThreadState* __tstate = wxPyBeginAllowThreads();
9112 (arg1)->_setCallbackInfo(arg2,arg3);
9113
9114 wxPyEndAllowThreads(__tstate);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 Py_INCREF(Py_None); resultobj = Py_None;
9118 return resultobj;
9119 fail:
9120 return NULL;
9121}
9122
9123
9124static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
9125 PyObject *resultobj;
9126 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9127 int arg2 ;
9128 int arg3 ;
9129 PyObject * obj0 = 0 ;
9130 PyObject * obj1 = 0 ;
9131 PyObject * obj2 = 0 ;
9132 char *kwnames[] = {
9133 (char *) "self",(char *) "pid",(char *) "status", NULL
9134 };
9135
9136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9139 arg2 = (int) SWIG_AsInt(obj1);
9140 if (PyErr_Occurred()) SWIG_fail;
9141 arg3 = (int) SWIG_AsInt(obj2);
9142 if (PyErr_Occurred()) SWIG_fail;
9143 {
9144 PyThreadState* __tstate = wxPyBeginAllowThreads();
9145 (arg1)->base_OnTerminate(arg2,arg3);
9146
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 Py_INCREF(Py_None); resultobj = Py_None;
9151 return resultobj;
9152 fail:
9153 return NULL;
9154}
9155
9156
9157static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9158 PyObject *resultobj;
9159 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9160 PyObject * obj0 = 0 ;
9161 char *kwnames[] = {
9162 (char *) "self", NULL
9163 };
9164
9165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9168 {
9169 PyThreadState* __tstate = wxPyBeginAllowThreads();
9170 (arg1)->Redirect();
9171
9172 wxPyEndAllowThreads(__tstate);
9173 if (PyErr_Occurred()) SWIG_fail;
9174 }
9175 Py_INCREF(Py_None); resultobj = Py_None;
9176 return resultobj;
9177 fail:
9178 return NULL;
9179}
9180
9181
9182static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9183 PyObject *resultobj;
9184 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9185 bool result;
9186 PyObject * obj0 = 0 ;
9187 char *kwnames[] = {
9188 (char *) "self", NULL
9189 };
9190
9191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9194 {
9195 PyThreadState* __tstate = wxPyBeginAllowThreads();
9196 result = (bool)(arg1)->IsRedirected();
9197
9198 wxPyEndAllowThreads(__tstate);
9199 if (PyErr_Occurred()) SWIG_fail;
9200 }
9201 {
9202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9203 }
9204 return resultobj;
9205 fail:
9206 return NULL;
9207}
9208
9209
9210static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9211 PyObject *resultobj;
9212 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9213 PyObject * obj0 = 0 ;
9214 char *kwnames[] = {
9215 (char *) "self", NULL
9216 };
9217
9218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9221 {
9222 PyThreadState* __tstate = wxPyBeginAllowThreads();
9223 (arg1)->Detach();
9224
9225 wxPyEndAllowThreads(__tstate);
9226 if (PyErr_Occurred()) SWIG_fail;
9227 }
9228 Py_INCREF(Py_None); resultobj = Py_None;
9229 return resultobj;
9230 fail:
9231 return NULL;
9232}
9233
9234
9235static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9236 PyObject *resultobj;
9237 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9238 wxInputStream *result;
9239 PyObject * obj0 = 0 ;
9240 char *kwnames[] = {
9241 (char *) "self", NULL
9242 };
9243
9244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 result = (wxInputStream *)(arg1)->GetInputStream();
9250
9251 wxPyEndAllowThreads(__tstate);
9252 if (PyErr_Occurred()) SWIG_fail;
9253 }
9254 {
9255 wxPyInputStream * _ptr = NULL;
9256
9257 if (result) {
9258 _ptr = new wxPyInputStream(result);
9259 }
9260 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9261 }
9262 return resultobj;
9263 fail:
9264 return NULL;
9265}
9266
9267
9268static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9269 PyObject *resultobj;
9270 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9271 wxInputStream *result;
9272 PyObject * obj0 = 0 ;
9273 char *kwnames[] = {
9274 (char *) "self", NULL
9275 };
9276
9277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 result = (wxInputStream *)(arg1)->GetErrorStream();
9283
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 {
9288 wxPyInputStream * _ptr = NULL;
9289
9290 if (result) {
9291 _ptr = new wxPyInputStream(result);
9292 }
9293 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9294 }
9295 return resultobj;
9296 fail:
9297 return NULL;
9298}
9299
9300
9301static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9302 PyObject *resultobj;
9303 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9304 wxOutputStream *result;
9305 PyObject * obj0 = 0 ;
9306 char *kwnames[] = {
9307 (char *) "self", NULL
9308 };
9309
9310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9313 {
9314 PyThreadState* __tstate = wxPyBeginAllowThreads();
9315 result = (wxOutputStream *)(arg1)->GetOutputStream();
9316
9317 wxPyEndAllowThreads(__tstate);
9318 if (PyErr_Occurred()) SWIG_fail;
9319 }
9320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9321 return resultobj;
9322 fail:
9323 return NULL;
9324}
9325
9326
9327static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9328 PyObject *resultobj;
9329 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9330 PyObject * obj0 = 0 ;
9331 char *kwnames[] = {
9332 (char *) "self", NULL
9333 };
9334
9335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9338 {
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 (arg1)->CloseOutput();
9341
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 Py_INCREF(Py_None); resultobj = Py_None;
9346 return resultobj;
9347 fail:
9348 return NULL;
9349}
9350
9351
9352static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj;
9354 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9355 bool result;
9356 PyObject * obj0 = 0 ;
9357 char *kwnames[] = {
9358 (char *) "self", NULL
9359 };
9360
9361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9364 {
9365 PyThreadState* __tstate = wxPyBeginAllowThreads();
9366 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9367
9368 wxPyEndAllowThreads(__tstate);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 {
9372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9373 }
9374 return resultobj;
9375 fail:
9376 return NULL;
9377}
9378
9379
9380static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9381 PyObject *resultobj;
9382 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9383 bool result;
9384 PyObject * obj0 = 0 ;
9385 char *kwnames[] = {
9386 (char *) "self", NULL
9387 };
9388
9389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9392 {
9393 PyThreadState* __tstate = wxPyBeginAllowThreads();
9394 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9395
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
9399 {
9400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9401 }
9402 return resultobj;
9403 fail:
9404 return NULL;
9405}
9406
9407
9408static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9409 PyObject *resultobj;
9410 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9411 bool result;
9412 PyObject * obj0 = 0 ;
9413 char *kwnames[] = {
9414 (char *) "self", NULL
9415 };
9416
9417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9420 {
9421 PyThreadState* __tstate = wxPyBeginAllowThreads();
9422 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9423
9424 wxPyEndAllowThreads(__tstate);
9425 if (PyErr_Occurred()) SWIG_fail;
9426 }
9427 {
9428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9429 }
9430 return resultobj;
9431 fail:
9432 return NULL;
9433}
9434
9435
9436static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9437 PyObject *obj;
9438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9439 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9440 Py_INCREF(obj);
9441 return Py_BuildValue((char *)"");
9442}
9443static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9444 PyObject *resultobj;
9445 int arg1 = (int) 0 ;
9446 int arg2 = (int) 0 ;
9447 int arg3 = (int) 0 ;
9448 wxProcessEvent *result;
9449 PyObject * obj0 = 0 ;
9450 PyObject * obj1 = 0 ;
9451 PyObject * obj2 = 0 ;
9452 char *kwnames[] = {
9453 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9454 };
9455
9456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9457 if (obj0) {
9458 arg1 = (int) SWIG_AsInt(obj0);
9459 if (PyErr_Occurred()) SWIG_fail;
9460 }
9461 if (obj1) {
9462 arg2 = (int) SWIG_AsInt(obj1);
9463 if (PyErr_Occurred()) SWIG_fail;
9464 }
9465 if (obj2) {
9466 arg3 = (int) SWIG_AsInt(obj2);
9467 if (PyErr_Occurred()) SWIG_fail;
9468 }
9469 {
9470 PyThreadState* __tstate = wxPyBeginAllowThreads();
9471 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9472
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9477 return resultobj;
9478 fail:
9479 return NULL;
9480}
9481
9482
9483static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj;
9485 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9486 int result;
9487 PyObject * obj0 = 0 ;
9488 char *kwnames[] = {
9489 (char *) "self", NULL
9490 };
9491
9492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9495 {
9496 PyThreadState* __tstate = wxPyBeginAllowThreads();
9497 result = (int)(arg1)->GetPid();
9498
9499 wxPyEndAllowThreads(__tstate);
9500 if (PyErr_Occurred()) SWIG_fail;
9501 }
9502 resultobj = SWIG_FromInt((int)result);
9503 return resultobj;
9504 fail:
9505 return NULL;
9506}
9507
9508
9509static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9510 PyObject *resultobj;
9511 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9512 int result;
9513 PyObject * obj0 = 0 ;
9514 char *kwnames[] = {
9515 (char *) "self", NULL
9516 };
9517
9518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9521 {
9522 PyThreadState* __tstate = wxPyBeginAllowThreads();
9523 result = (int)(arg1)->GetExitCode();
9524
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 resultobj = SWIG_FromInt((int)result);
9529 return resultobj;
9530 fail:
9531 return NULL;
9532}
9533
9534
9535static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9536 PyObject *resultobj;
9537 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9538 int arg2 ;
9539 PyObject * obj0 = 0 ;
9540 PyObject * obj1 = 0 ;
9541 char *kwnames[] = {
9542 (char *) "self",(char *) "m_pid", NULL
9543 };
9544
9545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9548 arg2 = (int) SWIG_AsInt(obj1);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 if (arg1) (arg1)->m_pid = arg2;
9551
9552 Py_INCREF(Py_None); resultobj = Py_None;
9553 return resultobj;
9554 fail:
9555 return NULL;
9556}
9557
9558
9559static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9560 PyObject *resultobj;
9561 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9562 int result;
9563 PyObject * obj0 = 0 ;
9564 char *kwnames[] = {
9565 (char *) "self", NULL
9566 };
9567
9568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9571 result = (int) ((arg1)->m_pid);
9572
9573 resultobj = SWIG_FromInt((int)result);
9574 return resultobj;
9575 fail:
9576 return NULL;
9577}
9578
9579
9580static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9581 PyObject *resultobj;
9582 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9583 int arg2 ;
9584 PyObject * obj0 = 0 ;
9585 PyObject * obj1 = 0 ;
9586 char *kwnames[] = {
9587 (char *) "self",(char *) "m_exitcode", NULL
9588 };
9589
9590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9593 arg2 = (int) SWIG_AsInt(obj1);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 if (arg1) (arg1)->m_exitcode = arg2;
9596
9597 Py_INCREF(Py_None); resultobj = Py_None;
9598 return resultobj;
9599 fail:
9600 return NULL;
9601}
9602
9603
9604static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9605 PyObject *resultobj;
9606 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9607 int result;
9608 PyObject * obj0 = 0 ;
9609 char *kwnames[] = {
9610 (char *) "self", NULL
9611 };
9612
9613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9616 result = (int) ((arg1)->m_exitcode);
9617
9618 resultobj = SWIG_FromInt((int)result);
9619 return resultobj;
9620 fail:
9621 return NULL;
9622}
9623
9624
9625static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9626 PyObject *obj;
9627 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9628 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9629 Py_INCREF(obj);
9630 return Py_BuildValue((char *)"");
9631}
9632static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9633 PyObject *resultobj;
9634 wxString *arg1 = 0 ;
9635 int arg2 = (int) wxEXEC_ASYNC ;
9636 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9637 long result;
9638 bool temp1 = False ;
9639 PyObject * obj0 = 0 ;
9640 PyObject * obj1 = 0 ;
9641 PyObject * obj2 = 0 ;
9642 char *kwnames[] = {
9643 (char *) "command",(char *) "flags",(char *) "process", NULL
9644 };
9645
9646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9647 {
9648 arg1 = wxString_in_helper(obj0);
9649 if (arg1 == NULL) SWIG_fail;
9650 temp1 = True;
9651 }
9652 if (obj1) {
9653 arg2 = (int) SWIG_AsInt(obj1);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 if (obj2) {
9657 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9659 }
9660 {
0439c23b 9661 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9662 PyThreadState* __tstate = wxPyBeginAllowThreads();
9663 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9664
9665 wxPyEndAllowThreads(__tstate);
0439c23b 9666 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9667 }
9668 resultobj = SWIG_FromLong((long)result);
9669 {
9670 if (temp1)
9671 delete arg1;
9672 }
9673 return resultobj;
9674 fail:
9675 {
9676 if (temp1)
9677 delete arg1;
9678 }
9679 return NULL;
9680}
9681
9682
9683static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9684 PyObject *resultobj;
9685 int arg1 = (int) wxJOYSTICK1 ;
9686 wxJoystick *result;
9687 PyObject * obj0 = 0 ;
9688 char *kwnames[] = {
9689 (char *) "joystick", NULL
9690 };
9691
9692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9693 if (obj0) {
9694 arg1 = (int) SWIG_AsInt(obj0);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 {
0439c23b 9698 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 result = (wxJoystick *)new wxJoystick(arg1);
9701
9702 wxPyEndAllowThreads(__tstate);
0439c23b 9703 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9704 }
9705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9706 return resultobj;
9707 fail:
9708 return NULL;
9709}
9710
9711
9712static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9713 PyObject *resultobj;
9714 wxJoystick *arg1 = (wxJoystick *) 0 ;
9715 PyObject * obj0 = 0 ;
9716 char *kwnames[] = {
9717 (char *) "self", NULL
9718 };
9719
9720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 delete arg1;
9726
9727 wxPyEndAllowThreads(__tstate);
9728 if (PyErr_Occurred()) SWIG_fail;
9729 }
9730 Py_INCREF(Py_None); resultobj = Py_None;
9731 return resultobj;
9732 fail:
9733 return NULL;
9734}
9735
9736
9737static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9738 PyObject *resultobj;
9739 wxJoystick *arg1 = (wxJoystick *) 0 ;
9740 wxPoint result;
9741 PyObject * obj0 = 0 ;
9742 char *kwnames[] = {
9743 (char *) "self", NULL
9744 };
9745
9746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9749 {
9750 PyThreadState* __tstate = wxPyBeginAllowThreads();
9751 result = (arg1)->GetPosition();
9752
9753 wxPyEndAllowThreads(__tstate);
9754 if (PyErr_Occurred()) SWIG_fail;
9755 }
9756 {
9757 wxPoint * resultptr;
9758 resultptr = new wxPoint((wxPoint &) result);
9759 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9760 }
9761 return resultobj;
9762 fail:
9763 return NULL;
9764}
9765
9766
9767static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9768 PyObject *resultobj;
9769 wxJoystick *arg1 = (wxJoystick *) 0 ;
9770 int result;
9771 PyObject * obj0 = 0 ;
9772 char *kwnames[] = {
9773 (char *) "self", NULL
9774 };
9775
9776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9779 {
9780 PyThreadState* __tstate = wxPyBeginAllowThreads();
9781 result = (int)(arg1)->GetZPosition();
9782
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 resultobj = SWIG_FromInt((int)result);
9787 return resultobj;
9788 fail:
9789 return NULL;
9790}
9791
9792
9793static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9794 PyObject *resultobj;
9795 wxJoystick *arg1 = (wxJoystick *) 0 ;
9796 int result;
9797 PyObject * obj0 = 0 ;
9798 char *kwnames[] = {
9799 (char *) "self", NULL
9800 };
9801
9802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9805 {
9806 PyThreadState* __tstate = wxPyBeginAllowThreads();
9807 result = (int)(arg1)->GetButtonState();
9808
9809 wxPyEndAllowThreads(__tstate);
9810 if (PyErr_Occurred()) SWIG_fail;
9811 }
9812 resultobj = SWIG_FromInt((int)result);
9813 return resultobj;
9814 fail:
9815 return NULL;
9816}
9817
9818
9819static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9820 PyObject *resultobj;
9821 wxJoystick *arg1 = (wxJoystick *) 0 ;
9822 int result;
9823 PyObject * obj0 = 0 ;
9824 char *kwnames[] = {
9825 (char *) "self", NULL
9826 };
9827
9828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9831 {
9832 PyThreadState* __tstate = wxPyBeginAllowThreads();
9833 result = (int)(arg1)->GetPOVPosition();
9834
9835 wxPyEndAllowThreads(__tstate);
9836 if (PyErr_Occurred()) SWIG_fail;
9837 }
9838 resultobj = SWIG_FromInt((int)result);
9839 return resultobj;
9840 fail:
9841 return NULL;
9842}
9843
9844
9845static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9846 PyObject *resultobj;
9847 wxJoystick *arg1 = (wxJoystick *) 0 ;
9848 int result;
9849 PyObject * obj0 = 0 ;
9850 char *kwnames[] = {
9851 (char *) "self", NULL
9852 };
9853
9854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9857 {
9858 PyThreadState* __tstate = wxPyBeginAllowThreads();
9859 result = (int)(arg1)->GetPOVCTSPosition();
9860
9861 wxPyEndAllowThreads(__tstate);
9862 if (PyErr_Occurred()) SWIG_fail;
9863 }
9864 resultobj = SWIG_FromInt((int)result);
9865 return resultobj;
9866 fail:
9867 return NULL;
9868}
9869
9870
9871static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9872 PyObject *resultobj;
9873 wxJoystick *arg1 = (wxJoystick *) 0 ;
9874 int result;
9875 PyObject * obj0 = 0 ;
9876 char *kwnames[] = {
9877 (char *) "self", NULL
9878 };
9879
9880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 result = (int)(arg1)->GetRudderPosition();
9886
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 resultobj = SWIG_FromInt((int)result);
9891 return resultobj;
9892 fail:
9893 return NULL;
9894}
9895
9896
9897static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9898 PyObject *resultobj;
9899 wxJoystick *arg1 = (wxJoystick *) 0 ;
9900 int result;
9901 PyObject * obj0 = 0 ;
9902 char *kwnames[] = {
9903 (char *) "self", NULL
9904 };
9905
9906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9909 {
9910 PyThreadState* __tstate = wxPyBeginAllowThreads();
9911 result = (int)(arg1)->GetUPosition();
9912
9913 wxPyEndAllowThreads(__tstate);
9914 if (PyErr_Occurred()) SWIG_fail;
9915 }
9916 resultobj = SWIG_FromInt((int)result);
9917 return resultobj;
9918 fail:
9919 return NULL;
9920}
9921
9922
9923static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9924 PyObject *resultobj;
9925 wxJoystick *arg1 = (wxJoystick *) 0 ;
9926 int result;
9927 PyObject * obj0 = 0 ;
9928 char *kwnames[] = {
9929 (char *) "self", NULL
9930 };
9931
9932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9935 {
9936 PyThreadState* __tstate = wxPyBeginAllowThreads();
9937 result = (int)(arg1)->GetVPosition();
9938
9939 wxPyEndAllowThreads(__tstate);
9940 if (PyErr_Occurred()) SWIG_fail;
9941 }
9942 resultobj = SWIG_FromInt((int)result);
9943 return resultobj;
9944 fail:
9945 return NULL;
9946}
9947
9948
9949static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9950 PyObject *resultobj;
9951 wxJoystick *arg1 = (wxJoystick *) 0 ;
9952 int result;
9953 PyObject * obj0 = 0 ;
9954 char *kwnames[] = {
9955 (char *) "self", NULL
9956 };
9957
9958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 result = (int)(arg1)->GetMovementThreshold();
9964
9965 wxPyEndAllowThreads(__tstate);
9966 if (PyErr_Occurred()) SWIG_fail;
9967 }
9968 resultobj = SWIG_FromInt((int)result);
9969 return resultobj;
9970 fail:
9971 return NULL;
9972}
9973
9974
9975static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9976 PyObject *resultobj;
9977 wxJoystick *arg1 = (wxJoystick *) 0 ;
9978 int arg2 ;
9979 PyObject * obj0 = 0 ;
9980 PyObject * obj1 = 0 ;
9981 char *kwnames[] = {
9982 (char *) "self",(char *) "threshold", NULL
9983 };
9984
9985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9988 arg2 = (int) SWIG_AsInt(obj1);
9989 if (PyErr_Occurred()) SWIG_fail;
9990 {
9991 PyThreadState* __tstate = wxPyBeginAllowThreads();
9992 (arg1)->SetMovementThreshold(arg2);
9993
9994 wxPyEndAllowThreads(__tstate);
9995 if (PyErr_Occurred()) SWIG_fail;
9996 }
9997 Py_INCREF(Py_None); resultobj = Py_None;
9998 return resultobj;
9999 fail:
10000 return NULL;
10001}
10002
10003
10004static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10005 PyObject *resultobj;
10006 wxJoystick *arg1 = (wxJoystick *) 0 ;
10007 bool result;
10008 PyObject * obj0 = 0 ;
10009 char *kwnames[] = {
10010 (char *) "self", NULL
10011 };
10012
10013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 result = (bool)(arg1)->IsOk();
10019
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 {
10024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10025 }
10026 return resultobj;
10027 fail:
10028 return NULL;
10029}
10030
10031
10032static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
10033 PyObject *resultobj;
10034 wxJoystick *arg1 = (wxJoystick *) 0 ;
10035 int result;
10036 PyObject * obj0 = 0 ;
10037 char *kwnames[] = {
10038 (char *) "self", NULL
10039 };
10040
10041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10044 {
10045 PyThreadState* __tstate = wxPyBeginAllowThreads();
10046 result = (int)(arg1)->GetNumberJoysticks();
10047
10048 wxPyEndAllowThreads(__tstate);
10049 if (PyErr_Occurred()) SWIG_fail;
10050 }
10051 resultobj = SWIG_FromInt((int)result);
10052 return resultobj;
10053 fail:
10054 return NULL;
10055}
10056
10057
10058static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
10059 PyObject *resultobj;
10060 wxJoystick *arg1 = (wxJoystick *) 0 ;
10061 int result;
10062 PyObject * obj0 = 0 ;
10063 char *kwnames[] = {
10064 (char *) "self", NULL
10065 };
10066
10067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10070 {
10071 PyThreadState* __tstate = wxPyBeginAllowThreads();
10072 result = (int)(arg1)->GetManufacturerId();
10073
10074 wxPyEndAllowThreads(__tstate);
10075 if (PyErr_Occurred()) SWIG_fail;
10076 }
10077 resultobj = SWIG_FromInt((int)result);
10078 return resultobj;
10079 fail:
10080 return NULL;
10081}
10082
10083
10084static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
10085 PyObject *resultobj;
10086 wxJoystick *arg1 = (wxJoystick *) 0 ;
10087 int result;
10088 PyObject * obj0 = 0 ;
10089 char *kwnames[] = {
10090 (char *) "self", NULL
10091 };
10092
10093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10096 {
10097 PyThreadState* __tstate = wxPyBeginAllowThreads();
10098 result = (int)(arg1)->GetProductId();
10099
10100 wxPyEndAllowThreads(__tstate);
10101 if (PyErr_Occurred()) SWIG_fail;
10102 }
10103 resultobj = SWIG_FromInt((int)result);
10104 return resultobj;
10105 fail:
10106 return NULL;
10107}
10108
10109
10110static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
10111 PyObject *resultobj;
10112 wxJoystick *arg1 = (wxJoystick *) 0 ;
10113 wxString result;
10114 PyObject * obj0 = 0 ;
10115 char *kwnames[] = {
10116 (char *) "self", NULL
10117 };
10118
10119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10122 {
10123 PyThreadState* __tstate = wxPyBeginAllowThreads();
10124 result = (arg1)->GetProductName();
10125
10126 wxPyEndAllowThreads(__tstate);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 }
10129 {
10130#if wxUSE_UNICODE
10131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10132#else
10133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10134#endif
10135 }
10136 return resultobj;
10137 fail:
10138 return NULL;
10139}
10140
10141
10142static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10143 PyObject *resultobj;
10144 wxJoystick *arg1 = (wxJoystick *) 0 ;
10145 int result;
10146 PyObject * obj0 = 0 ;
10147 char *kwnames[] = {
10148 (char *) "self", NULL
10149 };
10150
10151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10154 {
10155 PyThreadState* __tstate = wxPyBeginAllowThreads();
10156 result = (int)(arg1)->GetXMin();
10157
10158 wxPyEndAllowThreads(__tstate);
10159 if (PyErr_Occurred()) SWIG_fail;
10160 }
10161 resultobj = SWIG_FromInt((int)result);
10162 return resultobj;
10163 fail:
10164 return NULL;
10165}
10166
10167
10168static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10169 PyObject *resultobj;
10170 wxJoystick *arg1 = (wxJoystick *) 0 ;
10171 int result;
10172 PyObject * obj0 = 0 ;
10173 char *kwnames[] = {
10174 (char *) "self", NULL
10175 };
10176
10177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10180 {
10181 PyThreadState* __tstate = wxPyBeginAllowThreads();
10182 result = (int)(arg1)->GetYMin();
10183
10184 wxPyEndAllowThreads(__tstate);
10185 if (PyErr_Occurred()) SWIG_fail;
10186 }
10187 resultobj = SWIG_FromInt((int)result);
10188 return resultobj;
10189 fail:
10190 return NULL;
10191}
10192
10193
10194static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10195 PyObject *resultobj;
10196 wxJoystick *arg1 = (wxJoystick *) 0 ;
10197 int result;
10198 PyObject * obj0 = 0 ;
10199 char *kwnames[] = {
10200 (char *) "self", NULL
10201 };
10202
10203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10206 {
10207 PyThreadState* __tstate = wxPyBeginAllowThreads();
10208 result = (int)(arg1)->GetZMin();
10209
10210 wxPyEndAllowThreads(__tstate);
10211 if (PyErr_Occurred()) SWIG_fail;
10212 }
10213 resultobj = SWIG_FromInt((int)result);
10214 return resultobj;
10215 fail:
10216 return NULL;
10217}
10218
10219
10220static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10221 PyObject *resultobj;
10222 wxJoystick *arg1 = (wxJoystick *) 0 ;
10223 int result;
10224 PyObject * obj0 = 0 ;
10225 char *kwnames[] = {
10226 (char *) "self", NULL
10227 };
10228
10229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10232 {
10233 PyThreadState* __tstate = wxPyBeginAllowThreads();
10234 result = (int)(arg1)->GetXMax();
10235
10236 wxPyEndAllowThreads(__tstate);
10237 if (PyErr_Occurred()) SWIG_fail;
10238 }
10239 resultobj = SWIG_FromInt((int)result);
10240 return resultobj;
10241 fail:
10242 return NULL;
10243}
10244
10245
10246static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10247 PyObject *resultobj;
10248 wxJoystick *arg1 = (wxJoystick *) 0 ;
10249 int result;
10250 PyObject * obj0 = 0 ;
10251 char *kwnames[] = {
10252 (char *) "self", NULL
10253 };
10254
10255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10258 {
10259 PyThreadState* __tstate = wxPyBeginAllowThreads();
10260 result = (int)(arg1)->GetYMax();
10261
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
10265 resultobj = SWIG_FromInt((int)result);
10266 return resultobj;
10267 fail:
10268 return NULL;
10269}
10270
10271
10272static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10273 PyObject *resultobj;
10274 wxJoystick *arg1 = (wxJoystick *) 0 ;
10275 int result;
10276 PyObject * obj0 = 0 ;
10277 char *kwnames[] = {
10278 (char *) "self", NULL
10279 };
10280
10281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10284 {
10285 PyThreadState* __tstate = wxPyBeginAllowThreads();
10286 result = (int)(arg1)->GetZMax();
10287
10288 wxPyEndAllowThreads(__tstate);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 resultobj = SWIG_FromInt((int)result);
10292 return resultobj;
10293 fail:
10294 return NULL;
10295}
10296
10297
10298static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10299 PyObject *resultobj;
10300 wxJoystick *arg1 = (wxJoystick *) 0 ;
10301 int result;
10302 PyObject * obj0 = 0 ;
10303 char *kwnames[] = {
10304 (char *) "self", NULL
10305 };
10306
10307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10310 {
10311 PyThreadState* __tstate = wxPyBeginAllowThreads();
10312 result = (int)(arg1)->GetNumberButtons();
10313
10314 wxPyEndAllowThreads(__tstate);
10315 if (PyErr_Occurred()) SWIG_fail;
10316 }
10317 resultobj = SWIG_FromInt((int)result);
10318 return resultobj;
10319 fail:
10320 return NULL;
10321}
10322
10323
10324static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10325 PyObject *resultobj;
10326 wxJoystick *arg1 = (wxJoystick *) 0 ;
10327 int result;
10328 PyObject * obj0 = 0 ;
10329 char *kwnames[] = {
10330 (char *) "self", NULL
10331 };
10332
10333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10336 {
10337 PyThreadState* __tstate = wxPyBeginAllowThreads();
10338 result = (int)(arg1)->GetNumberAxes();
10339
10340 wxPyEndAllowThreads(__tstate);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 }
10343 resultobj = SWIG_FromInt((int)result);
10344 return resultobj;
10345 fail:
10346 return NULL;
10347}
10348
10349
10350static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10351 PyObject *resultobj;
10352 wxJoystick *arg1 = (wxJoystick *) 0 ;
10353 int result;
10354 PyObject * obj0 = 0 ;
10355 char *kwnames[] = {
10356 (char *) "self", NULL
10357 };
10358
10359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10362 {
10363 PyThreadState* __tstate = wxPyBeginAllowThreads();
10364 result = (int)(arg1)->GetMaxButtons();
10365
10366 wxPyEndAllowThreads(__tstate);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 }
10369 resultobj = SWIG_FromInt((int)result);
10370 return resultobj;
10371 fail:
10372 return NULL;
10373}
10374
10375
10376static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10377 PyObject *resultobj;
10378 wxJoystick *arg1 = (wxJoystick *) 0 ;
10379 int result;
10380 PyObject * obj0 = 0 ;
10381 char *kwnames[] = {
10382 (char *) "self", NULL
10383 };
10384
10385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10388 {
10389 PyThreadState* __tstate = wxPyBeginAllowThreads();
10390 result = (int)(arg1)->GetMaxAxes();
10391
10392 wxPyEndAllowThreads(__tstate);
10393 if (PyErr_Occurred()) SWIG_fail;
10394 }
10395 resultobj = SWIG_FromInt((int)result);
10396 return resultobj;
10397 fail:
10398 return NULL;
10399}
10400
10401
10402static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10403 PyObject *resultobj;
10404 wxJoystick *arg1 = (wxJoystick *) 0 ;
10405 int result;
10406 PyObject * obj0 = 0 ;
10407 char *kwnames[] = {
10408 (char *) "self", NULL
10409 };
10410
10411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10414 {
10415 PyThreadState* __tstate = wxPyBeginAllowThreads();
10416 result = (int)(arg1)->GetPollingMin();
10417
10418 wxPyEndAllowThreads(__tstate);
10419 if (PyErr_Occurred()) SWIG_fail;
10420 }
10421 resultobj = SWIG_FromInt((int)result);
10422 return resultobj;
10423 fail:
10424 return NULL;
10425}
10426
10427
10428static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj;
10430 wxJoystick *arg1 = (wxJoystick *) 0 ;
10431 int result;
10432 PyObject * obj0 = 0 ;
10433 char *kwnames[] = {
10434 (char *) "self", NULL
10435 };
10436
10437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10440 {
10441 PyThreadState* __tstate = wxPyBeginAllowThreads();
10442 result = (int)(arg1)->GetPollingMax();
10443
10444 wxPyEndAllowThreads(__tstate);
10445 if (PyErr_Occurred()) SWIG_fail;
10446 }
10447 resultobj = SWIG_FromInt((int)result);
10448 return resultobj;
10449 fail:
10450 return NULL;
10451}
10452
10453
10454static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10455 PyObject *resultobj;
10456 wxJoystick *arg1 = (wxJoystick *) 0 ;
10457 int result;
10458 PyObject * obj0 = 0 ;
10459 char *kwnames[] = {
10460 (char *) "self", NULL
10461 };
10462
10463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10466 {
10467 PyThreadState* __tstate = wxPyBeginAllowThreads();
10468 result = (int)(arg1)->GetRudderMin();
10469
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 resultobj = SWIG_FromInt((int)result);
10474 return resultobj;
10475 fail:
10476 return NULL;
10477}
10478
10479
10480static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10481 PyObject *resultobj;
10482 wxJoystick *arg1 = (wxJoystick *) 0 ;
10483 int result;
10484 PyObject * obj0 = 0 ;
10485 char *kwnames[] = {
10486 (char *) "self", NULL
10487 };
10488
10489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10492 {
10493 PyThreadState* __tstate = wxPyBeginAllowThreads();
10494 result = (int)(arg1)->GetRudderMax();
10495
10496 wxPyEndAllowThreads(__tstate);
10497 if (PyErr_Occurred()) SWIG_fail;
10498 }
10499 resultobj = SWIG_FromInt((int)result);
10500 return resultobj;
10501 fail:
10502 return NULL;
10503}
10504
10505
10506static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10507 PyObject *resultobj;
10508 wxJoystick *arg1 = (wxJoystick *) 0 ;
10509 int result;
10510 PyObject * obj0 = 0 ;
10511 char *kwnames[] = {
10512 (char *) "self", NULL
10513 };
10514
10515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10518 {
10519 PyThreadState* __tstate = wxPyBeginAllowThreads();
10520 result = (int)(arg1)->GetUMin();
10521
10522 wxPyEndAllowThreads(__tstate);
10523 if (PyErr_Occurred()) SWIG_fail;
10524 }
10525 resultobj = SWIG_FromInt((int)result);
10526 return resultobj;
10527 fail:
10528 return NULL;
10529}
10530
10531
10532static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10533 PyObject *resultobj;
10534 wxJoystick *arg1 = (wxJoystick *) 0 ;
10535 int result;
10536 PyObject * obj0 = 0 ;
10537 char *kwnames[] = {
10538 (char *) "self", NULL
10539 };
10540
10541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
10546 result = (int)(arg1)->GetUMax();
10547
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
10551 resultobj = SWIG_FromInt((int)result);
10552 return resultobj;
10553 fail:
10554 return NULL;
10555}
10556
10557
10558static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10559 PyObject *resultobj;
10560 wxJoystick *arg1 = (wxJoystick *) 0 ;
10561 int result;
10562 PyObject * obj0 = 0 ;
10563 char *kwnames[] = {
10564 (char *) "self", NULL
10565 };
10566
10567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10570 {
10571 PyThreadState* __tstate = wxPyBeginAllowThreads();
10572 result = (int)(arg1)->GetVMin();
10573
10574 wxPyEndAllowThreads(__tstate);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 resultobj = SWIG_FromInt((int)result);
10578 return resultobj;
10579 fail:
10580 return NULL;
10581}
10582
10583
10584static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj;
10586 wxJoystick *arg1 = (wxJoystick *) 0 ;
10587 int result;
10588 PyObject * obj0 = 0 ;
10589 char *kwnames[] = {
10590 (char *) "self", NULL
10591 };
10592
10593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10596 {
10597 PyThreadState* __tstate = wxPyBeginAllowThreads();
10598 result = (int)(arg1)->GetVMax();
10599
10600 wxPyEndAllowThreads(__tstate);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 }
10603 resultobj = SWIG_FromInt((int)result);
10604 return resultobj;
10605 fail:
10606 return NULL;
10607}
10608
10609
10610static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10611 PyObject *resultobj;
10612 wxJoystick *arg1 = (wxJoystick *) 0 ;
10613 bool result;
10614 PyObject * obj0 = 0 ;
10615 char *kwnames[] = {
10616 (char *) "self", NULL
10617 };
10618
10619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10622 {
10623 PyThreadState* __tstate = wxPyBeginAllowThreads();
10624 result = (bool)(arg1)->HasRudder();
10625
10626 wxPyEndAllowThreads(__tstate);
10627 if (PyErr_Occurred()) SWIG_fail;
10628 }
10629 {
10630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10631 }
10632 return resultobj;
10633 fail:
10634 return NULL;
10635}
10636
10637
10638static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10639 PyObject *resultobj;
10640 wxJoystick *arg1 = (wxJoystick *) 0 ;
10641 bool result;
10642 PyObject * obj0 = 0 ;
10643 char *kwnames[] = {
10644 (char *) "self", NULL
10645 };
10646
10647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 result = (bool)(arg1)->HasZ();
10653
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
10657 {
10658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10659 }
10660 return resultobj;
10661 fail:
10662 return NULL;
10663}
10664
10665
10666static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj;
10668 wxJoystick *arg1 = (wxJoystick *) 0 ;
10669 bool result;
10670 PyObject * obj0 = 0 ;
10671 char *kwnames[] = {
10672 (char *) "self", NULL
10673 };
10674
10675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10678 {
10679 PyThreadState* __tstate = wxPyBeginAllowThreads();
10680 result = (bool)(arg1)->HasU();
10681
10682 wxPyEndAllowThreads(__tstate);
10683 if (PyErr_Occurred()) SWIG_fail;
10684 }
10685 {
10686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10687 }
10688 return resultobj;
10689 fail:
10690 return NULL;
10691}
10692
10693
10694static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10695 PyObject *resultobj;
10696 wxJoystick *arg1 = (wxJoystick *) 0 ;
10697 bool result;
10698 PyObject * obj0 = 0 ;
10699 char *kwnames[] = {
10700 (char *) "self", NULL
10701 };
10702
10703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10706 {
10707 PyThreadState* __tstate = wxPyBeginAllowThreads();
10708 result = (bool)(arg1)->HasV();
10709
10710 wxPyEndAllowThreads(__tstate);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 }
10713 {
10714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10715 }
10716 return resultobj;
10717 fail:
10718 return NULL;
10719}
10720
10721
10722static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10723 PyObject *resultobj;
10724 wxJoystick *arg1 = (wxJoystick *) 0 ;
10725 bool result;
10726 PyObject * obj0 = 0 ;
10727 char *kwnames[] = {
10728 (char *) "self", NULL
10729 };
10730
10731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10734 {
10735 PyThreadState* __tstate = wxPyBeginAllowThreads();
10736 result = (bool)(arg1)->HasPOV();
10737
10738 wxPyEndAllowThreads(__tstate);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 }
10741 {
10742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10743 }
10744 return resultobj;
10745 fail:
10746 return NULL;
10747}
10748
10749
10750static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10751 PyObject *resultobj;
10752 wxJoystick *arg1 = (wxJoystick *) 0 ;
10753 bool result;
10754 PyObject * obj0 = 0 ;
10755 char *kwnames[] = {
10756 (char *) "self", NULL
10757 };
10758
10759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10762 {
10763 PyThreadState* __tstate = wxPyBeginAllowThreads();
10764 result = (bool)(arg1)->HasPOV4Dir();
10765
10766 wxPyEndAllowThreads(__tstate);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 {
10770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10771 }
10772 return resultobj;
10773 fail:
10774 return NULL;
10775}
10776
10777
10778static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10779 PyObject *resultobj;
10780 wxJoystick *arg1 = (wxJoystick *) 0 ;
10781 bool result;
10782 PyObject * obj0 = 0 ;
10783 char *kwnames[] = {
10784 (char *) "self", NULL
10785 };
10786
10787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10790 {
10791 PyThreadState* __tstate = wxPyBeginAllowThreads();
10792 result = (bool)(arg1)->HasPOVCTS();
10793
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 }
10797 {
10798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10799 }
10800 return resultobj;
10801 fail:
10802 return NULL;
10803}
10804
10805
10806static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10807 PyObject *resultobj;
10808 wxJoystick *arg1 = (wxJoystick *) 0 ;
10809 wxWindow *arg2 = (wxWindow *) 0 ;
10810 int arg3 = (int) 0 ;
10811 bool result;
10812 PyObject * obj0 = 0 ;
10813 PyObject * obj1 = 0 ;
10814 PyObject * obj2 = 0 ;
10815 char *kwnames[] = {
10816 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10817 };
10818
10819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10822 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10824 if (obj2) {
10825 arg3 = (int) SWIG_AsInt(obj2);
10826 if (PyErr_Occurred()) SWIG_fail;
10827 }
10828 {
10829 PyThreadState* __tstate = wxPyBeginAllowThreads();
10830 result = (bool)(arg1)->SetCapture(arg2,arg3);
10831
10832 wxPyEndAllowThreads(__tstate);
10833 if (PyErr_Occurred()) SWIG_fail;
10834 }
10835 {
10836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10837 }
10838 return resultobj;
10839 fail:
10840 return NULL;
10841}
10842
10843
10844static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10845 PyObject *resultobj;
10846 wxJoystick *arg1 = (wxJoystick *) 0 ;
10847 bool result;
10848 PyObject * obj0 = 0 ;
10849 char *kwnames[] = {
10850 (char *) "self", NULL
10851 };
10852
10853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 result = (bool)(arg1)->ReleaseCapture();
10859
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 {
10864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10865 }
10866 return resultobj;
10867 fail:
10868 return NULL;
10869}
10870
10871
10872static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10873 PyObject *obj;
10874 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10875 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10876 Py_INCREF(obj);
10877 return Py_BuildValue((char *)"");
10878}
10879static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj;
10881 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10882 wxPoint *arg2 = (wxPoint *) 0 ;
10883 PyObject * obj0 = 0 ;
10884 PyObject * obj1 = 0 ;
10885 char *kwnames[] = {
10886 (char *) "self",(char *) "m_pos", NULL
10887 };
10888
10889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10892 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10894 if (arg1) (arg1)->m_pos = *arg2;
10895
10896 Py_INCREF(Py_None); resultobj = Py_None;
10897 return resultobj;
10898 fail:
10899 return NULL;
10900}
10901
10902
10903static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10904 PyObject *resultobj;
10905 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10906 wxPoint *result;
10907 PyObject * obj0 = 0 ;
10908 char *kwnames[] = {
10909 (char *) "self", NULL
10910 };
10911
10912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10915 result = (wxPoint *)& ((arg1)->m_pos);
10916
10917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10918 return resultobj;
10919 fail:
10920 return NULL;
10921}
10922
10923
10924static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10925 PyObject *resultobj;
10926 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10927 int arg2 ;
10928 PyObject * obj0 = 0 ;
10929 PyObject * obj1 = 0 ;
10930 char *kwnames[] = {
10931 (char *) "self",(char *) "m_zPosition", NULL
10932 };
10933
10934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10937 arg2 = (int) SWIG_AsInt(obj1);
10938 if (PyErr_Occurred()) SWIG_fail;
10939 if (arg1) (arg1)->m_zPosition = arg2;
10940
10941 Py_INCREF(Py_None); resultobj = Py_None;
10942 return resultobj;
10943 fail:
10944 return NULL;
10945}
10946
10947
10948static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10949 PyObject *resultobj;
10950 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10951 int result;
10952 PyObject * obj0 = 0 ;
10953 char *kwnames[] = {
10954 (char *) "self", NULL
10955 };
10956
10957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10960 result = (int) ((arg1)->m_zPosition);
10961
10962 resultobj = SWIG_FromInt((int)result);
10963 return resultobj;
10964 fail:
10965 return NULL;
10966}
10967
10968
10969static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10970 PyObject *resultobj;
10971 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10972 int arg2 ;
10973 PyObject * obj0 = 0 ;
10974 PyObject * obj1 = 0 ;
10975 char *kwnames[] = {
10976 (char *) "self",(char *) "m_buttonChange", NULL
10977 };
10978
10979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10982 arg2 = (int) SWIG_AsInt(obj1);
10983 if (PyErr_Occurred()) SWIG_fail;
10984 if (arg1) (arg1)->m_buttonChange = arg2;
10985
10986 Py_INCREF(Py_None); resultobj = Py_None;
10987 return resultobj;
10988 fail:
10989 return NULL;
10990}
10991
10992
10993static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10994 PyObject *resultobj;
10995 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10996 int result;
10997 PyObject * obj0 = 0 ;
10998 char *kwnames[] = {
10999 (char *) "self", NULL
11000 };
11001
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11005 result = (int) ((arg1)->m_buttonChange);
11006
11007 resultobj = SWIG_FromInt((int)result);
11008 return resultobj;
11009 fail:
11010 return NULL;
11011}
11012
11013
11014static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11015 PyObject *resultobj;
11016 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11017 int arg2 ;
11018 PyObject * obj0 = 0 ;
11019 PyObject * obj1 = 0 ;
11020 char *kwnames[] = {
11021 (char *) "self",(char *) "m_buttonState", NULL
11022 };
11023
11024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11027 arg2 = (int) SWIG_AsInt(obj1);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 if (arg1) (arg1)->m_buttonState = arg2;
11030
11031 Py_INCREF(Py_None); resultobj = Py_None;
11032 return resultobj;
11033 fail:
11034 return NULL;
11035}
11036
11037
11038static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11039 PyObject *resultobj;
11040 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11041 int result;
11042 PyObject * obj0 = 0 ;
11043 char *kwnames[] = {
11044 (char *) "self", NULL
11045 };
11046
11047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11050 result = (int) ((arg1)->m_buttonState);
11051
11052 resultobj = SWIG_FromInt((int)result);
11053 return resultobj;
11054 fail:
11055 return NULL;
11056}
11057
11058
11059static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11060 PyObject *resultobj;
11061 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11062 int arg2 ;
11063 PyObject * obj0 = 0 ;
11064 PyObject * obj1 = 0 ;
11065 char *kwnames[] = {
11066 (char *) "self",(char *) "m_joyStick", NULL
11067 };
11068
11069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11072 arg2 = (int) SWIG_AsInt(obj1);
11073 if (PyErr_Occurred()) SWIG_fail;
11074 if (arg1) (arg1)->m_joyStick = arg2;
11075
11076 Py_INCREF(Py_None); resultobj = Py_None;
11077 return resultobj;
11078 fail:
11079 return NULL;
11080}
11081
11082
11083static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11084 PyObject *resultobj;
11085 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11086 int result;
11087 PyObject * obj0 = 0 ;
11088 char *kwnames[] = {
11089 (char *) "self", NULL
11090 };
11091
11092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11095 result = (int) ((arg1)->m_joyStick);
11096
11097 resultobj = SWIG_FromInt((int)result);
11098 return resultobj;
11099 fail:
11100 return NULL;
11101}
11102
11103
11104static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11105 PyObject *resultobj;
11106 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11107 int arg2 = (int) 0 ;
11108 int arg3 = (int) wxJOYSTICK1 ;
11109 int arg4 = (int) 0 ;
11110 wxJoystickEvent *result;
11111 PyObject * obj0 = 0 ;
11112 PyObject * obj1 = 0 ;
11113 PyObject * obj2 = 0 ;
11114 PyObject * obj3 = 0 ;
11115 char *kwnames[] = {
11116 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11117 };
11118
11119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11120 if (obj0) {
11121 arg1 = (wxEventType) SWIG_AsInt(obj0);
11122 if (PyErr_Occurred()) SWIG_fail;
11123 }
11124 if (obj1) {
11125 arg2 = (int) SWIG_AsInt(obj1);
11126 if (PyErr_Occurred()) SWIG_fail;
11127 }
11128 if (obj2) {
11129 arg3 = (int) SWIG_AsInt(obj2);
11130 if (PyErr_Occurred()) SWIG_fail;
11131 }
11132 if (obj3) {
11133 arg4 = (int) SWIG_AsInt(obj3);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 {
11137 PyThreadState* __tstate = wxPyBeginAllowThreads();
11138 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11139
11140 wxPyEndAllowThreads(__tstate);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 }
11143 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11144 return resultobj;
11145 fail:
11146 return NULL;
11147}
11148
11149
11150static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11151 PyObject *resultobj;
11152 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11153 wxPoint result;
11154 PyObject * obj0 = 0 ;
11155 char *kwnames[] = {
11156 (char *) "self", NULL
11157 };
11158
11159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11162 {
11163 PyThreadState* __tstate = wxPyBeginAllowThreads();
11164 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11165
11166 wxPyEndAllowThreads(__tstate);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 {
11170 wxPoint * resultptr;
11171 resultptr = new wxPoint((wxPoint &) result);
11172 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11173 }
11174 return resultobj;
11175 fail:
11176 return NULL;
11177}
11178
11179
11180static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11181 PyObject *resultobj;
11182 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11183 int result;
11184 PyObject * obj0 = 0 ;
11185 char *kwnames[] = {
11186 (char *) "self", NULL
11187 };
11188
11189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11192 {
11193 PyThreadState* __tstate = wxPyBeginAllowThreads();
11194 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11195
11196 wxPyEndAllowThreads(__tstate);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 }
11199 resultobj = SWIG_FromInt((int)result);
11200 return resultobj;
11201 fail:
11202 return NULL;
11203}
11204
11205
11206static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11207 PyObject *resultobj;
11208 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11209 int result;
11210 PyObject * obj0 = 0 ;
11211 char *kwnames[] = {
11212 (char *) "self", NULL
11213 };
11214
11215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11218 {
11219 PyThreadState* __tstate = wxPyBeginAllowThreads();
11220 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11221
11222 wxPyEndAllowThreads(__tstate);
11223 if (PyErr_Occurred()) SWIG_fail;
11224 }
11225 resultobj = SWIG_FromInt((int)result);
11226 return resultobj;
11227 fail:
11228 return NULL;
11229}
11230
11231
11232static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11233 PyObject *resultobj;
11234 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11235 int result;
11236 PyObject * obj0 = 0 ;
11237 char *kwnames[] = {
11238 (char *) "self", NULL
11239 };
11240
11241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11244 {
11245 PyThreadState* __tstate = wxPyBeginAllowThreads();
11246 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11247
11248 wxPyEndAllowThreads(__tstate);
11249 if (PyErr_Occurred()) SWIG_fail;
11250 }
11251 resultobj = SWIG_FromInt((int)result);
11252 return resultobj;
11253 fail:
11254 return NULL;
11255}
11256
11257
11258static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11259 PyObject *resultobj;
11260 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11261 int result;
11262 PyObject * obj0 = 0 ;
11263 char *kwnames[] = {
11264 (char *) "self", NULL
11265 };
11266
11267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11270 {
11271 PyThreadState* __tstate = wxPyBeginAllowThreads();
11272 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11273
11274 wxPyEndAllowThreads(__tstate);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 }
11277 resultobj = SWIG_FromInt((int)result);
11278 return resultobj;
11279 fail:
11280 return NULL;
11281}
11282
11283
11284static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11285 PyObject *resultobj;
11286 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11287 int arg2 ;
11288 PyObject * obj0 = 0 ;
11289 PyObject * obj1 = 0 ;
11290 char *kwnames[] = {
11291 (char *) "self",(char *) "stick", NULL
11292 };
11293
11294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11297 arg2 = (int) SWIG_AsInt(obj1);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 {
11300 PyThreadState* __tstate = wxPyBeginAllowThreads();
11301 (arg1)->SetJoystick(arg2);
11302
11303 wxPyEndAllowThreads(__tstate);
11304 if (PyErr_Occurred()) SWIG_fail;
11305 }
11306 Py_INCREF(Py_None); resultobj = Py_None;
11307 return resultobj;
11308 fail:
11309 return NULL;
11310}
11311
11312
11313static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11314 PyObject *resultobj;
11315 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11316 int arg2 ;
11317 PyObject * obj0 = 0 ;
11318 PyObject * obj1 = 0 ;
11319 char *kwnames[] = {
11320 (char *) "self",(char *) "state", NULL
11321 };
11322
11323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11326 arg2 = (int) SWIG_AsInt(obj1);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 {
11329 PyThreadState* __tstate = wxPyBeginAllowThreads();
11330 (arg1)->SetButtonState(arg2);
11331
11332 wxPyEndAllowThreads(__tstate);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 }
11335 Py_INCREF(Py_None); resultobj = Py_None;
11336 return resultobj;
11337 fail:
11338 return NULL;
11339}
11340
11341
11342static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11343 PyObject *resultobj;
11344 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11345 int arg2 ;
11346 PyObject * obj0 = 0 ;
11347 PyObject * obj1 = 0 ;
11348 char *kwnames[] = {
11349 (char *) "self",(char *) "change", NULL
11350 };
11351
11352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11355 arg2 = (int) SWIG_AsInt(obj1);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 {
11358 PyThreadState* __tstate = wxPyBeginAllowThreads();
11359 (arg1)->SetButtonChange(arg2);
11360
11361 wxPyEndAllowThreads(__tstate);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 }
11364 Py_INCREF(Py_None); resultobj = Py_None;
11365 return resultobj;
11366 fail:
11367 return NULL;
11368}
11369
11370
11371static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11372 PyObject *resultobj;
11373 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11374 wxPoint *arg2 = 0 ;
11375 wxPoint temp2 ;
11376 PyObject * obj0 = 0 ;
11377 PyObject * obj1 = 0 ;
11378 char *kwnames[] = {
11379 (char *) "self",(char *) "pos", NULL
11380 };
11381
11382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11385 {
11386 arg2 = &temp2;
11387 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11388 }
11389 {
11390 PyThreadState* __tstate = wxPyBeginAllowThreads();
11391 (arg1)->SetPosition((wxPoint const &)*arg2);
11392
11393 wxPyEndAllowThreads(__tstate);
11394 if (PyErr_Occurred()) SWIG_fail;
11395 }
11396 Py_INCREF(Py_None); resultobj = Py_None;
11397 return resultobj;
11398 fail:
11399 return NULL;
11400}
11401
11402
11403static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11404 PyObject *resultobj;
11405 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11406 int arg2 ;
11407 PyObject * obj0 = 0 ;
11408 PyObject * obj1 = 0 ;
11409 char *kwnames[] = {
11410 (char *) "self",(char *) "zPos", NULL
11411 };
11412
11413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11416 arg2 = (int) SWIG_AsInt(obj1);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 (arg1)->SetZPosition(arg2);
11421
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 Py_INCREF(Py_None); resultobj = Py_None;
11426 return resultobj;
11427 fail:
11428 return NULL;
11429}
11430
11431
11432static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11433 PyObject *resultobj;
11434 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11435 bool result;
11436 PyObject * obj0 = 0 ;
11437 char *kwnames[] = {
11438 (char *) "self", NULL
11439 };
11440
11441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11444 {
11445 PyThreadState* __tstate = wxPyBeginAllowThreads();
11446 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11447
11448 wxPyEndAllowThreads(__tstate);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 {
11452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11453 }
11454 return resultobj;
11455 fail:
11456 return NULL;
11457}
11458
11459
11460static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11461 PyObject *resultobj;
11462 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11463 bool result;
11464 PyObject * obj0 = 0 ;
11465 char *kwnames[] = {
11466 (char *) "self", NULL
11467 };
11468
11469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11481 }
11482 return resultobj;
11483 fail:
11484 return NULL;
11485}
11486
11487
11488static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11489 PyObject *resultobj;
11490 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11491 bool result;
11492 PyObject * obj0 = 0 ;
11493 char *kwnames[] = {
11494 (char *) "self", NULL
11495 };
11496
11497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11503
11504 wxPyEndAllowThreads(__tstate);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 {
11508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11509 }
11510 return resultobj;
11511 fail:
11512 return NULL;
11513}
11514
11515
11516static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11517 PyObject *resultobj;
11518 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11519 int arg2 = (int) wxJOY_BUTTON_ANY ;
11520 bool result;
11521 PyObject * obj0 = 0 ;
11522 PyObject * obj1 = 0 ;
11523 char *kwnames[] = {
11524 (char *) "self",(char *) "but", NULL
11525 };
11526
11527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11530 if (obj1) {
11531 arg2 = (int) SWIG_AsInt(obj1);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 {
11535 PyThreadState* __tstate = wxPyBeginAllowThreads();
11536 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11537
11538 wxPyEndAllowThreads(__tstate);
11539 if (PyErr_Occurred()) SWIG_fail;
11540 }
11541 {
11542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11543 }
11544 return resultobj;
11545 fail:
11546 return NULL;
11547}
11548
11549
11550static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11551 PyObject *resultobj;
11552 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11553 int arg2 = (int) wxJOY_BUTTON_ANY ;
11554 bool result;
11555 PyObject * obj0 = 0 ;
11556 PyObject * obj1 = 0 ;
11557 char *kwnames[] = {
11558 (char *) "self",(char *) "but", NULL
11559 };
11560
11561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11564 if (obj1) {
11565 arg2 = (int) SWIG_AsInt(obj1);
11566 if (PyErr_Occurred()) SWIG_fail;
11567 }
11568 {
11569 PyThreadState* __tstate = wxPyBeginAllowThreads();
11570 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11571
11572 wxPyEndAllowThreads(__tstate);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 {
11576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11577 }
11578 return resultobj;
11579 fail:
11580 return NULL;
11581}
11582
11583
11584static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11585 PyObject *resultobj;
11586 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11587 int arg2 = (int) wxJOY_BUTTON_ANY ;
11588 bool result;
11589 PyObject * obj0 = 0 ;
11590 PyObject * obj1 = 0 ;
11591 char *kwnames[] = {
11592 (char *) "self",(char *) "but", NULL
11593 };
11594
11595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11598 if (obj1) {
11599 arg2 = (int) SWIG_AsInt(obj1);
11600 if (PyErr_Occurred()) SWIG_fail;
11601 }
11602 {
11603 PyThreadState* __tstate = wxPyBeginAllowThreads();
11604 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11605
11606 wxPyEndAllowThreads(__tstate);
11607 if (PyErr_Occurred()) SWIG_fail;
11608 }
11609 {
11610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11611 }
11612 return resultobj;
11613 fail:
11614 return NULL;
11615}
11616
11617
11618static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11619 PyObject *obj;
11620 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11621 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11622 Py_INCREF(obj);
11623 return Py_BuildValue((char *)"");
11624}
0346c964 11625static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 11626 PyObject *resultobj;
0346c964
RD
11627 wxString const &arg1_defvalue = wxPyEmptyString ;
11628 wxString *arg1 = (wxString *) &arg1_defvalue ;
d55e5bfc
RD
11629 wxSound *result;
11630 bool temp1 = False ;
11631 PyObject * obj0 = 0 ;
0346c964
RD
11632 char *kwnames[] = {
11633 (char *) "fileName", NULL
11634 };
d55e5bfc 11635
0346c964
RD
11636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11637 if (obj0) {
11638 {
11639 arg1 = wxString_in_helper(obj0);
11640 if (arg1 == NULL) SWIG_fail;
11641 temp1 = True;
11642 }
d55e5bfc
RD
11643 }
11644 {
0439c23b 11645 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 11646 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 11647 result = (wxSound *)new_wxSound((wxString const &)*arg1);
d55e5bfc
RD
11648
11649 wxPyEndAllowThreads(__tstate);
0439c23b 11650 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11651 }
11652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11653 {
11654 if (temp1)
11655 delete arg1;
11656 }
11657 return resultobj;
11658 fail:
11659 {
11660 if (temp1)
11661 delete arg1;
11662 }
11663 return NULL;
11664}
11665
11666
0346c964 11667static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 11668 PyObject *resultobj;
0346c964 11669 PyObject *arg1 = (PyObject *) 0 ;
d55e5bfc
RD
11670 wxSound *result;
11671 PyObject * obj0 = 0 ;
0346c964
RD
11672 char *kwnames[] = {
11673 (char *) "data", NULL
11674 };
d55e5bfc 11675
0346c964
RD
11676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11677 arg1 = obj0;
d55e5bfc 11678 {
0439c23b 11679 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 11681 result = (wxSound *)new_wxSound(arg1);
d55e5bfc
RD
11682
11683 wxPyEndAllowThreads(__tstate);
0439c23b 11684 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11685 }
11686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11687 return resultobj;
11688 fail:
11689 return NULL;
11690}
11691
11692
d55e5bfc
RD
11693static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11694 PyObject *resultobj;
11695 wxSound *arg1 = (wxSound *) 0 ;
11696 PyObject * obj0 = 0 ;
11697 char *kwnames[] = {
11698 (char *) "self", NULL
11699 };
11700
11701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11704 {
11705 PyThreadState* __tstate = wxPyBeginAllowThreads();
11706 delete arg1;
11707
11708 wxPyEndAllowThreads(__tstate);
11709 if (PyErr_Occurred()) SWIG_fail;
11710 }
11711 Py_INCREF(Py_None); resultobj = Py_None;
11712 return resultobj;
11713 fail:
11714 return NULL;
11715}
11716
11717
0346c964 11718static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11719 PyObject *resultobj;
11720 wxSound *arg1 = (wxSound *) 0 ;
11721 wxString *arg2 = 0 ;
d55e5bfc
RD
11722 bool result;
11723 bool temp2 = False ;
11724 PyObject * obj0 = 0 ;
11725 PyObject * obj1 = 0 ;
0346c964
RD
11726 char *kwnames[] = {
11727 (char *) "self",(char *) "fileName", NULL
11728 };
d55e5bfc 11729
0346c964 11730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11733 {
11734 arg2 = wxString_in_helper(obj1);
11735 if (arg2 == NULL) SWIG_fail;
11736 temp2 = True;
11737 }
d55e5bfc
RD
11738 {
11739 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 11740 result = (bool)(arg1)->Create((wxString const &)*arg2);
d55e5bfc
RD
11741
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 {
11746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11747 }
11748 {
11749 if (temp2)
11750 delete arg2;
11751 }
11752 return resultobj;
11753 fail:
11754 {
11755 if (temp2)
11756 delete arg2;
11757 }
11758 return NULL;
11759}
11760
11761
0346c964 11762static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11763 PyObject *resultobj;
11764 wxSound *arg1 = (wxSound *) 0 ;
0346c964 11765 PyObject *arg2 = (PyObject *) 0 ;
d55e5bfc
RD
11766 bool result;
11767 PyObject * obj0 = 0 ;
11768 PyObject * obj1 = 0 ;
0346c964
RD
11769 char *kwnames[] = {
11770 (char *) "self",(char *) "data", NULL
11771 };
d55e5bfc 11772
0346c964 11773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
0346c964 11776 arg2 = obj1;
d55e5bfc
RD
11777 {
11778 PyThreadState* __tstate = wxPyBeginAllowThreads();
0346c964 11779 result = (bool)wxSound_CreateFromData(arg1,arg2);
d55e5bfc
RD
11780
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 {
11785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11786 }
11787 return resultobj;
11788 fail:
11789 return NULL;
11790}
11791
11792
d55e5bfc
RD
11793static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11794 PyObject *resultobj;
11795 wxSound *arg1 = (wxSound *) 0 ;
11796 bool result;
11797 PyObject * obj0 = 0 ;
11798 char *kwnames[] = {
11799 (char *) "self", NULL
11800 };
11801
11802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11805 {
11806 PyThreadState* __tstate = wxPyBeginAllowThreads();
11807 result = (bool)(arg1)->IsOk();
11808
11809 wxPyEndAllowThreads(__tstate);
11810 if (PyErr_Occurred()) SWIG_fail;
11811 }
11812 {
11813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11814 }
11815 return resultobj;
11816 fail:
11817 return NULL;
11818}
11819
11820
0346c964 11821static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11822 PyObject *resultobj;
11823 wxSound *arg1 = (wxSound *) 0 ;
11824 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11825 bool result;
11826 PyObject * obj0 = 0 ;
11827 PyObject * obj1 = 0 ;
0346c964
RD
11828 char *kwnames[] = {
11829 (char *) "self",(char *) "flags", NULL
11830 };
d55e5bfc 11831
0346c964 11832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11835 if (obj1) {
11836 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11837 if (PyErr_Occurred()) SWIG_fail;
11838 }
11839 {
0439c23b 11840 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 result = (bool)((wxSound const *)arg1)->Play(arg2);
11843
11844 wxPyEndAllowThreads(__tstate);
0439c23b 11845 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11846 }
11847 {
11848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11849 }
11850 return resultobj;
11851 fail:
11852 return NULL;
11853}
11854
11855
0346c964 11856static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11857 PyObject *resultobj;
11858 wxString *arg1 = 0 ;
11859 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11860 bool result;
11861 bool temp1 = False ;
11862 PyObject * obj0 = 0 ;
11863 PyObject * obj1 = 0 ;
0346c964
RD
11864 char *kwnames[] = {
11865 (char *) "filename",(char *) "flags", NULL
11866 };
d55e5bfc 11867
0346c964 11868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11869 {
11870 arg1 = wxString_in_helper(obj0);
11871 if (arg1 == NULL) SWIG_fail;
11872 temp1 = True;
11873 }
11874 if (obj1) {
11875 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 }
11878 {
0439c23b 11879 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11880 PyThreadState* __tstate = wxPyBeginAllowThreads();
11881 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11882
11883 wxPyEndAllowThreads(__tstate);
0439c23b 11884 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11885 }
11886 {
11887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11888 }
11889 {
11890 if (temp1)
11891 delete arg1;
11892 }
11893 return resultobj;
11894 fail:
11895 {
11896 if (temp1)
11897 delete arg1;
11898 }
11899 return NULL;
11900}
11901
11902
11903static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11904 PyObject *resultobj;
11905 char *kwnames[] = {
11906 NULL
11907 };
11908
11909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11910 {
0439c23b 11911 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11912 PyThreadState* __tstate = wxPyBeginAllowThreads();
11913 Sound_Stop();
11914
11915 wxPyEndAllowThreads(__tstate);
0439c23b 11916 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11917 }
11918 Py_INCREF(Py_None); resultobj = Py_None;
11919 return resultobj;
11920 fail:
11921 return NULL;
11922}
11923
11924
11925static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11926 PyObject *obj;
11927 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11928 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11929 Py_INCREF(obj);
11930 return Py_BuildValue((char *)"");
11931}
11932static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11933 PyObject *resultobj;
11934 wxString *arg1 = 0 ;
11935 wxString *arg2 = 0 ;
11936 wxString *arg3 = 0 ;
11937 wxString *arg4 = 0 ;
11938 wxFileTypeInfo *result;
11939 bool temp1 = False ;
11940 bool temp2 = False ;
11941 bool temp3 = False ;
11942 bool temp4 = False ;
11943 PyObject * obj0 = 0 ;
11944 PyObject * obj1 = 0 ;
11945 PyObject * obj2 = 0 ;
11946 PyObject * obj3 = 0 ;
11947 char *kwnames[] = {
11948 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11949 };
11950
11951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11952 {
11953 arg1 = wxString_in_helper(obj0);
11954 if (arg1 == NULL) SWIG_fail;
11955 temp1 = True;
11956 }
11957 {
11958 arg2 = wxString_in_helper(obj1);
11959 if (arg2 == NULL) SWIG_fail;
11960 temp2 = True;
11961 }
11962 {
11963 arg3 = wxString_in_helper(obj2);
11964 if (arg3 == NULL) SWIG_fail;
11965 temp3 = True;
11966 }
11967 {
11968 arg4 = wxString_in_helper(obj3);
11969 if (arg4 == NULL) SWIG_fail;
11970 temp4 = True;
11971 }
11972 {
11973 PyThreadState* __tstate = wxPyBeginAllowThreads();
11974 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11975
11976 wxPyEndAllowThreads(__tstate);
11977 if (PyErr_Occurred()) SWIG_fail;
11978 }
11979 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11980 {
11981 if (temp1)
11982 delete arg1;
11983 }
11984 {
11985 if (temp2)
11986 delete arg2;
11987 }
11988 {
11989 if (temp3)
11990 delete arg3;
11991 }
11992 {
11993 if (temp4)
11994 delete arg4;
11995 }
11996 return resultobj;
11997 fail:
11998 {
11999 if (temp1)
12000 delete arg1;
12001 }
12002 {
12003 if (temp2)
12004 delete arg2;
12005 }
12006 {
12007 if (temp3)
12008 delete arg3;
12009 }
12010 {
12011 if (temp4)
12012 delete arg4;
12013 }
12014 return NULL;
12015}
12016
12017
12018static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
12019 PyObject *resultobj;
12020 wxArrayString *arg1 = 0 ;
12021 wxFileTypeInfo *result;
12022 bool temp1 = False ;
12023 PyObject * obj0 = 0 ;
12024 char *kwnames[] = {
12025 (char *) "sArray", NULL
12026 };
12027
12028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12029 {
12030 if (! PySequence_Check(obj0)) {
12031 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12032 SWIG_fail;
12033 }
12034 arg1 = new wxArrayString;
12035 temp1 = True;
12036 int i, len=PySequence_Length(obj0);
12037 for (i=0; i<len; i++) {
12038 PyObject* item = PySequence_GetItem(obj0, i);
12039#if wxUSE_UNICODE
12040 PyObject* str = PyObject_Unicode(item);
12041#else
12042 PyObject* str = PyObject_Str(item);
12043#endif
12044 if (PyErr_Occurred()) SWIG_fail;
12045 arg1->Add(Py2wxString(str));
12046 Py_DECREF(item);
12047 Py_DECREF(str);
12048 }
12049 }
12050 {
12051 PyThreadState* __tstate = wxPyBeginAllowThreads();
12052 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12053
12054 wxPyEndAllowThreads(__tstate);
12055 if (PyErr_Occurred()) SWIG_fail;
12056 }
12057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12058 {
12059 if (temp1) delete arg1;
12060 }
12061 return resultobj;
12062 fail:
12063 {
12064 if (temp1) delete arg1;
12065 }
12066 return NULL;
12067}
12068
12069
12070static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12071 PyObject *resultobj;
12072 wxFileTypeInfo *result;
12073 char *kwnames[] = {
12074 NULL
12075 };
12076
12077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12078 {
12079 PyThreadState* __tstate = wxPyBeginAllowThreads();
12080 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12081
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
12085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12086 return resultobj;
12087 fail:
12088 return NULL;
12089}
12090
12091
12092static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
12093 PyObject *resultobj;
12094 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12095 bool result;
12096 PyObject * obj0 = 0 ;
12097 char *kwnames[] = {
12098 (char *) "self", NULL
12099 };
12100
12101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12104 {
12105 PyThreadState* __tstate = wxPyBeginAllowThreads();
12106 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12107
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 {
12112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12113 }
12114 return resultobj;
12115 fail:
12116 return NULL;
12117}
12118
12119
12120static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12121 PyObject *resultobj;
12122 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12123 wxString *arg2 = 0 ;
12124 int arg3 = (int) 0 ;
12125 bool temp2 = False ;
12126 PyObject * obj0 = 0 ;
12127 PyObject * obj1 = 0 ;
12128 PyObject * obj2 = 0 ;
12129 char *kwnames[] = {
12130 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12131 };
12132
12133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12136 {
12137 arg2 = wxString_in_helper(obj1);
12138 if (arg2 == NULL) SWIG_fail;
12139 temp2 = True;
12140 }
12141 if (obj2) {
12142 arg3 = (int) SWIG_AsInt(obj2);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 }
12145 {
12146 PyThreadState* __tstate = wxPyBeginAllowThreads();
12147 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12148
12149 wxPyEndAllowThreads(__tstate);
12150 if (PyErr_Occurred()) SWIG_fail;
12151 }
12152 Py_INCREF(Py_None); resultobj = Py_None;
12153 {
12154 if (temp2)
12155 delete arg2;
12156 }
12157 return resultobj;
12158 fail:
12159 {
12160 if (temp2)
12161 delete arg2;
12162 }
12163 return NULL;
12164}
12165
12166
12167static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12168 PyObject *resultobj;
12169 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12170 wxString *arg2 = 0 ;
12171 bool temp2 = False ;
12172 PyObject * obj0 = 0 ;
12173 PyObject * obj1 = 0 ;
12174 char *kwnames[] = {
12175 (char *) "self",(char *) "shortDesc", NULL
12176 };
12177
12178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12181 {
12182 arg2 = wxString_in_helper(obj1);
12183 if (arg2 == NULL) SWIG_fail;
12184 temp2 = True;
12185 }
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 (arg1)->SetShortDesc((wxString const &)*arg2);
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 Py_INCREF(Py_None); resultobj = Py_None;
12194 {
12195 if (temp2)
12196 delete arg2;
12197 }
12198 return resultobj;
12199 fail:
12200 {
12201 if (temp2)
12202 delete arg2;
12203 }
12204 return NULL;
12205}
12206
12207
12208static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12209 PyObject *resultobj;
12210 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12211 wxString *result;
12212 PyObject * obj0 = 0 ;
12213 char *kwnames[] = {
12214 (char *) "self", NULL
12215 };
12216
12217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12220 {
12221 PyThreadState* __tstate = wxPyBeginAllowThreads();
12222 {
12223 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12224 result = (wxString *) &_result_ref;
12225 }
12226
12227 wxPyEndAllowThreads(__tstate);
12228 if (PyErr_Occurred()) SWIG_fail;
12229 }
12230 {
12231#if wxUSE_UNICODE
12232 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12233#else
12234 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12235#endif
12236 }
12237 return resultobj;
12238 fail:
12239 return NULL;
12240}
12241
12242
12243static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12244 PyObject *resultobj;
12245 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12246 wxString *result;
12247 PyObject * obj0 = 0 ;
12248 char *kwnames[] = {
12249 (char *) "self", NULL
12250 };
12251
12252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12255 {
12256 PyThreadState* __tstate = wxPyBeginAllowThreads();
12257 {
12258 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12259 result = (wxString *) &_result_ref;
12260 }
12261
12262 wxPyEndAllowThreads(__tstate);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 {
12266#if wxUSE_UNICODE
12267 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12268#else
12269 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12270#endif
12271 }
12272 return resultobj;
12273 fail:
12274 return NULL;
12275}
12276
12277
12278static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12279 PyObject *resultobj;
12280 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12281 wxString *result;
12282 PyObject * obj0 = 0 ;
12283 char *kwnames[] = {
12284 (char *) "self", NULL
12285 };
12286
12287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12290 {
12291 PyThreadState* __tstate = wxPyBeginAllowThreads();
12292 {
12293 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12294 result = (wxString *) &_result_ref;
12295 }
12296
12297 wxPyEndAllowThreads(__tstate);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 {
12301#if wxUSE_UNICODE
12302 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12303#else
12304 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12305#endif
12306 }
12307 return resultobj;
12308 fail:
12309 return NULL;
12310}
12311
12312
12313static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12314 PyObject *resultobj;
12315 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12316 wxString *result;
12317 PyObject * obj0 = 0 ;
12318 char *kwnames[] = {
12319 (char *) "self", NULL
12320 };
12321
12322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 {
12328 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12329 result = (wxString *) &_result_ref;
12330 }
12331
12332 wxPyEndAllowThreads(__tstate);
12333 if (PyErr_Occurred()) SWIG_fail;
12334 }
12335 {
12336#if wxUSE_UNICODE
12337 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12338#else
12339 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12340#endif
12341 }
12342 return resultobj;
12343 fail:
12344 return NULL;
12345}
12346
12347
12348static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12349 PyObject *resultobj;
12350 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12351 wxString *result;
12352 PyObject * obj0 = 0 ;
12353 char *kwnames[] = {
12354 (char *) "self", NULL
12355 };
12356
12357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12360 {
12361 PyThreadState* __tstate = wxPyBeginAllowThreads();
12362 {
12363 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12364 result = (wxString *) &_result_ref;
12365 }
12366
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 {
12371#if wxUSE_UNICODE
12372 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12373#else
12374 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12375#endif
12376 }
12377 return resultobj;
12378 fail:
12379 return NULL;
12380}
12381
12382
12383static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12384 PyObject *resultobj;
12385 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12386 wxArrayString *result;
12387 PyObject * obj0 = 0 ;
12388 char *kwnames[] = {
12389 (char *) "self", NULL
12390 };
12391
12392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12395 {
12396 PyThreadState* __tstate = wxPyBeginAllowThreads();
12397 {
12398 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12399 result = (wxArrayString *) &_result_ref;
12400 }
12401
12402 wxPyEndAllowThreads(__tstate);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 {
12406 resultobj = wxArrayString2PyList_helper(*result);
12407 }
12408 return resultobj;
12409 fail:
12410 return NULL;
12411}
12412
12413
12414static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12415 PyObject *resultobj;
12416 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12417 int result;
12418 PyObject * obj0 = 0 ;
12419 char *kwnames[] = {
12420 (char *) "self", NULL
12421 };
12422
12423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12426 {
12427 PyThreadState* __tstate = wxPyBeginAllowThreads();
12428 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12429
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 resultobj = SWIG_FromInt((int)result);
12434 return resultobj;
12435 fail:
12436 return NULL;
12437}
12438
12439
12440static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj;
12442 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12443 wxString *result;
12444 PyObject * obj0 = 0 ;
12445 char *kwnames[] = {
12446 (char *) "self", NULL
12447 };
12448
12449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 {
12455 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12456 result = (wxString *) &_result_ref;
12457 }
12458
12459 wxPyEndAllowThreads(__tstate);
12460 if (PyErr_Occurred()) SWIG_fail;
12461 }
12462 {
12463#if wxUSE_UNICODE
12464 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12465#else
12466 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12467#endif
12468 }
12469 return resultobj;
12470 fail:
12471 return NULL;
12472}
12473
12474
12475static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12476 PyObject *resultobj;
12477 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12478 int result;
12479 PyObject * obj0 = 0 ;
12480 char *kwnames[] = {
12481 (char *) "self", NULL
12482 };
12483
12484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12487 {
12488 PyThreadState* __tstate = wxPyBeginAllowThreads();
12489 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12490
12491 wxPyEndAllowThreads(__tstate);
12492 if (PyErr_Occurred()) SWIG_fail;
12493 }
12494 resultobj = SWIG_FromInt((int)result);
12495 return resultobj;
12496 fail:
12497 return NULL;
12498}
12499
12500
12501static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12502 PyObject *obj;
12503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12504 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12505 Py_INCREF(obj);
12506 return Py_BuildValue((char *)"");
12507}
12508static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12509 PyObject *resultobj;
12510 wxFileTypeInfo *arg1 = 0 ;
12511 wxFileType *result;
12512 PyObject * obj0 = 0 ;
12513 char *kwnames[] = {
12514 (char *) "ftInfo", NULL
12515 };
12516
12517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12519 SWIG_POINTER_EXCEPTION | 0)) == -1)
12520 SWIG_fail;
12521 if (arg1 == NULL) {
12522 PyErr_SetString(PyExc_TypeError,"null reference");
12523 SWIG_fail;
12524 }
12525 {
12526 PyThreadState* __tstate = wxPyBeginAllowThreads();
12527 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12528
12529 wxPyEndAllowThreads(__tstate);
12530 if (PyErr_Occurred()) SWIG_fail;
12531 }
12532 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12533 return resultobj;
12534 fail:
12535 return NULL;
12536}
12537
12538
12539static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12540 PyObject *resultobj;
12541 wxFileType *arg1 = (wxFileType *) 0 ;
12542 PyObject * obj0 = 0 ;
12543 char *kwnames[] = {
12544 (char *) "self", NULL
12545 };
12546
12547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12550 {
12551 PyThreadState* __tstate = wxPyBeginAllowThreads();
12552 delete arg1;
12553
12554 wxPyEndAllowThreads(__tstate);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 }
12557 Py_INCREF(Py_None); resultobj = Py_None;
12558 return resultobj;
12559 fail:
12560 return NULL;
12561}
12562
12563
12564static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12565 PyObject *resultobj;
12566 wxFileType *arg1 = (wxFileType *) 0 ;
12567 PyObject *result;
12568 PyObject * obj0 = 0 ;
12569 char *kwnames[] = {
12570 (char *) "self", NULL
12571 };
12572
12573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12576 {
12577 PyThreadState* __tstate = wxPyBeginAllowThreads();
12578 result = (PyObject *)wxFileType_GetMimeType(arg1);
12579
12580 wxPyEndAllowThreads(__tstate);
12581 if (PyErr_Occurred()) SWIG_fail;
12582 }
12583 resultobj = result;
12584 return resultobj;
12585 fail:
12586 return NULL;
12587}
12588
12589
12590static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12591 PyObject *resultobj;
12592 wxFileType *arg1 = (wxFileType *) 0 ;
12593 PyObject *result;
12594 PyObject * obj0 = 0 ;
12595 char *kwnames[] = {
12596 (char *) "self", NULL
12597 };
12598
12599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12602 {
12603 PyThreadState* __tstate = wxPyBeginAllowThreads();
12604 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12605
12606 wxPyEndAllowThreads(__tstate);
12607 if (PyErr_Occurred()) SWIG_fail;
12608 }
12609 resultobj = result;
12610 return resultobj;
12611 fail:
12612 return NULL;
12613}
12614
12615
12616static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12617 PyObject *resultobj;
12618 wxFileType *arg1 = (wxFileType *) 0 ;
12619 PyObject *result;
12620 PyObject * obj0 = 0 ;
12621 char *kwnames[] = {
12622 (char *) "self", NULL
12623 };
12624
12625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12628 {
12629 PyThreadState* __tstate = wxPyBeginAllowThreads();
12630 result = (PyObject *)wxFileType_GetExtensions(arg1);
12631
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 resultobj = result;
12636 return resultobj;
12637 fail:
12638 return NULL;
12639}
12640
12641
12642static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj;
12644 wxFileType *arg1 = (wxFileType *) 0 ;
12645 wxIcon *result;
12646 PyObject * obj0 = 0 ;
12647 char *kwnames[] = {
12648 (char *) "self", NULL
12649 };
12650
12651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12654 {
12655 PyThreadState* __tstate = wxPyBeginAllowThreads();
12656 result = (wxIcon *)wxFileType_GetIcon(arg1);
12657
12658 wxPyEndAllowThreads(__tstate);
12659 if (PyErr_Occurred()) SWIG_fail;
12660 }
12661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12662 return resultobj;
12663 fail:
12664 return NULL;
12665}
12666
12667
12668static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12669 PyObject *resultobj;
12670 wxFileType *arg1 = (wxFileType *) 0 ;
12671 PyObject *result;
12672 PyObject * obj0 = 0 ;
12673 char *kwnames[] = {
12674 (char *) "self", NULL
12675 };
12676
12677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12680 {
12681 PyThreadState* __tstate = wxPyBeginAllowThreads();
12682 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12683
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 resultobj = result;
12688 return resultobj;
12689 fail:
12690 return NULL;
12691}
12692
12693
12694static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12695 PyObject *resultobj;
12696 wxFileType *arg1 = (wxFileType *) 0 ;
12697 PyObject *result;
12698 PyObject * obj0 = 0 ;
12699 char *kwnames[] = {
12700 (char *) "self", NULL
12701 };
12702
12703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12706 {
12707 PyThreadState* __tstate = wxPyBeginAllowThreads();
12708 result = (PyObject *)wxFileType_GetDescription(arg1);
12709
12710 wxPyEndAllowThreads(__tstate);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 }
12713 resultobj = result;
12714 return resultobj;
12715 fail:
12716 return NULL;
12717}
12718
12719
12720static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12721 PyObject *resultobj;
12722 wxFileType *arg1 = (wxFileType *) 0 ;
12723 wxString *arg2 = 0 ;
12724 wxString const &arg3_defvalue = wxPyEmptyString ;
12725 wxString *arg3 = (wxString *) &arg3_defvalue ;
12726 PyObject *result;
12727 bool temp2 = False ;
12728 bool temp3 = False ;
12729 PyObject * obj0 = 0 ;
12730 PyObject * obj1 = 0 ;
12731 PyObject * obj2 = 0 ;
12732 char *kwnames[] = {
12733 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12734 };
12735
12736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12739 {
12740 arg2 = wxString_in_helper(obj1);
12741 if (arg2 == NULL) SWIG_fail;
12742 temp2 = True;
12743 }
12744 if (obj2) {
12745 {
12746 arg3 = wxString_in_helper(obj2);
12747 if (arg3 == NULL) SWIG_fail;
12748 temp3 = True;
12749 }
12750 }
12751 {
12752 PyThreadState* __tstate = wxPyBeginAllowThreads();
12753 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12754
12755 wxPyEndAllowThreads(__tstate);
12756 if (PyErr_Occurred()) SWIG_fail;
12757 }
12758 resultobj = result;
12759 {
12760 if (temp2)
12761 delete arg2;
12762 }
12763 {
12764 if (temp3)
12765 delete arg3;
12766 }
12767 return resultobj;
12768 fail:
12769 {
12770 if (temp2)
12771 delete arg2;
12772 }
12773 {
12774 if (temp3)
12775 delete arg3;
12776 }
12777 return NULL;
12778}
12779
12780
12781static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12782 PyObject *resultobj;
12783 wxFileType *arg1 = (wxFileType *) 0 ;
12784 wxString *arg2 = 0 ;
12785 wxString const &arg3_defvalue = wxPyEmptyString ;
12786 wxString *arg3 = (wxString *) &arg3_defvalue ;
12787 PyObject *result;
12788 bool temp2 = False ;
12789 bool temp3 = False ;
12790 PyObject * obj0 = 0 ;
12791 PyObject * obj1 = 0 ;
12792 PyObject * obj2 = 0 ;
12793 char *kwnames[] = {
12794 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12795 };
12796
12797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12800 {
12801 arg2 = wxString_in_helper(obj1);
12802 if (arg2 == NULL) SWIG_fail;
12803 temp2 = True;
12804 }
12805 if (obj2) {
12806 {
12807 arg3 = wxString_in_helper(obj2);
12808 if (arg3 == NULL) SWIG_fail;
12809 temp3 = True;
12810 }
12811 }
12812 {
12813 PyThreadState* __tstate = wxPyBeginAllowThreads();
12814 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12815
12816 wxPyEndAllowThreads(__tstate);
12817 if (PyErr_Occurred()) SWIG_fail;
12818 }
12819 resultobj = result;
12820 {
12821 if (temp2)
12822 delete arg2;
12823 }
12824 {
12825 if (temp3)
12826 delete arg3;
12827 }
12828 return resultobj;
12829 fail:
12830 {
12831 if (temp2)
12832 delete arg2;
12833 }
12834 {
12835 if (temp3)
12836 delete arg3;
12837 }
12838 return NULL;
12839}
12840
12841
12842static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12843 PyObject *resultobj;
12844 wxFileType *arg1 = (wxFileType *) 0 ;
12845 wxString *arg2 = 0 ;
12846 wxString const &arg3_defvalue = wxPyEmptyString ;
12847 wxString *arg3 = (wxString *) &arg3_defvalue ;
12848 PyObject *result;
12849 bool temp2 = False ;
12850 bool temp3 = False ;
12851 PyObject * obj0 = 0 ;
12852 PyObject * obj1 = 0 ;
12853 PyObject * obj2 = 0 ;
12854 char *kwnames[] = {
12855 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12856 };
12857
12858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12861 {
12862 arg2 = wxString_in_helper(obj1);
12863 if (arg2 == NULL) SWIG_fail;
12864 temp2 = True;
12865 }
12866 if (obj2) {
12867 {
12868 arg3 = wxString_in_helper(obj2);
12869 if (arg3 == NULL) SWIG_fail;
12870 temp3 = True;
12871 }
12872 }
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12876
12877 wxPyEndAllowThreads(__tstate);
12878 if (PyErr_Occurred()) SWIG_fail;
12879 }
12880 resultobj = result;
12881 {
12882 if (temp2)
12883 delete arg2;
12884 }
12885 {
12886 if (temp3)
12887 delete arg3;
12888 }
12889 return resultobj;
12890 fail:
12891 {
12892 if (temp2)
12893 delete arg2;
12894 }
12895 {
12896 if (temp3)
12897 delete arg3;
12898 }
12899 return NULL;
12900}
12901
12902
12903static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12904 PyObject *resultobj;
12905 wxFileType *arg1 = (wxFileType *) 0 ;
12906 wxString *arg2 = 0 ;
12907 wxString *arg3 = 0 ;
12908 bool arg4 = (bool) True ;
12909 bool result;
12910 bool temp2 = False ;
12911 bool temp3 = False ;
12912 PyObject * obj0 = 0 ;
12913 PyObject * obj1 = 0 ;
12914 PyObject * obj2 = 0 ;
12915 PyObject * obj3 = 0 ;
12916 char *kwnames[] = {
12917 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12918 };
12919
12920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12923 {
12924 arg2 = wxString_in_helper(obj1);
12925 if (arg2 == NULL) SWIG_fail;
12926 temp2 = True;
12927 }
12928 {
12929 arg3 = wxString_in_helper(obj2);
12930 if (arg3 == NULL) SWIG_fail;
12931 temp3 = True;
12932 }
12933 if (obj3) {
12934 arg4 = (bool) SWIG_AsBool(obj3);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 }
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12940
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 {
12945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12946 }
12947 {
12948 if (temp2)
12949 delete arg2;
12950 }
12951 {
12952 if (temp3)
12953 delete arg3;
12954 }
12955 return resultobj;
12956 fail:
12957 {
12958 if (temp2)
12959 delete arg2;
12960 }
12961 {
12962 if (temp3)
12963 delete arg3;
12964 }
12965 return NULL;
12966}
12967
12968
12969static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12970 PyObject *resultobj;
12971 wxFileType *arg1 = (wxFileType *) 0 ;
12972 wxString const &arg2_defvalue = wxPyEmptyString ;
12973 wxString *arg2 = (wxString *) &arg2_defvalue ;
12974 int arg3 = (int) 0 ;
12975 bool result;
12976 bool temp2 = False ;
12977 PyObject * obj0 = 0 ;
12978 PyObject * obj1 = 0 ;
12979 PyObject * obj2 = 0 ;
12980 char *kwnames[] = {
12981 (char *) "self",(char *) "cmd",(char *) "index", NULL
12982 };
12983
12984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12987 if (obj1) {
12988 {
12989 arg2 = wxString_in_helper(obj1);
12990 if (arg2 == NULL) SWIG_fail;
12991 temp2 = True;
12992 }
12993 }
12994 if (obj2) {
12995 arg3 = (int) SWIG_AsInt(obj2);
12996 if (PyErr_Occurred()) SWIG_fail;
12997 }
12998 {
12999 PyThreadState* __tstate = wxPyBeginAllowThreads();
13000 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13001
13002 wxPyEndAllowThreads(__tstate);
13003 if (PyErr_Occurred()) SWIG_fail;
13004 }
13005 {
13006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13007 }
13008 {
13009 if (temp2)
13010 delete arg2;
13011 }
13012 return resultobj;
13013 fail:
13014 {
13015 if (temp2)
13016 delete arg2;
13017 }
13018 return NULL;
13019}
13020
13021
13022static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13023 PyObject *resultobj;
13024 wxFileType *arg1 = (wxFileType *) 0 ;
13025 bool result;
13026 PyObject * obj0 = 0 ;
13027 char *kwnames[] = {
13028 (char *) "self", NULL
13029 };
13030
13031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13034 {
13035 PyThreadState* __tstate = wxPyBeginAllowThreads();
13036 result = (bool)(arg1)->Unassociate();
13037
13038 wxPyEndAllowThreads(__tstate);
13039 if (PyErr_Occurred()) SWIG_fail;
13040 }
13041 {
13042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13043 }
13044 return resultobj;
13045 fail:
13046 return NULL;
13047}
13048
13049
13050static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
13051 PyObject *resultobj;
13052 wxString *arg1 = 0 ;
13053 wxString *arg2 = 0 ;
13054 wxString const &arg3_defvalue = wxPyEmptyString ;
13055 wxString *arg3 = (wxString *) &arg3_defvalue ;
13056 wxString result;
13057 bool temp1 = False ;
13058 bool temp2 = False ;
13059 bool temp3 = False ;
13060 PyObject * obj0 = 0 ;
13061 PyObject * obj1 = 0 ;
13062 PyObject * obj2 = 0 ;
13063 char *kwnames[] = {
13064 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13065 };
13066
13067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13068 {
13069 arg1 = wxString_in_helper(obj0);
13070 if (arg1 == NULL) SWIG_fail;
13071 temp1 = True;
13072 }
13073 {
13074 arg2 = wxString_in_helper(obj1);
13075 if (arg2 == NULL) SWIG_fail;
13076 temp2 = True;
13077 }
13078 if (obj2) {
13079 {
13080 arg3 = wxString_in_helper(obj2);
13081 if (arg3 == NULL) SWIG_fail;
13082 temp3 = True;
13083 }
13084 }
13085 {
13086 PyThreadState* __tstate = wxPyBeginAllowThreads();
13087 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13088
13089 wxPyEndAllowThreads(__tstate);
13090 if (PyErr_Occurred()) SWIG_fail;
13091 }
13092 {
13093#if wxUSE_UNICODE
13094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13095#else
13096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13097#endif
13098 }
13099 {
13100 if (temp1)
13101 delete arg1;
13102 }
13103 {
13104 if (temp2)
13105 delete arg2;
13106 }
13107 {
13108 if (temp3)
13109 delete arg3;
13110 }
13111 return resultobj;
13112 fail:
13113 {
13114 if (temp1)
13115 delete arg1;
13116 }
13117 {
13118 if (temp2)
13119 delete arg2;
13120 }
13121 {
13122 if (temp3)
13123 delete arg3;
13124 }
13125 return NULL;
13126}
13127
13128
13129static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13130 PyObject *obj;
13131 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13132 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13133 Py_INCREF(obj);
13134 return Py_BuildValue((char *)"");
13135}
13136static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13137 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13138 return 1;
13139}
13140
13141
13142static PyObject *_wrap_TheMimeTypesManager_get() {
13143 PyObject *pyobj;
13144
13145 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13146 return pyobj;
13147}
13148
13149
13150static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13151 PyObject *resultobj;
13152 wxString *arg1 = 0 ;
13153 wxString *arg2 = 0 ;
13154 bool result;
13155 bool temp1 = False ;
13156 bool temp2 = False ;
13157 PyObject * obj0 = 0 ;
13158 PyObject * obj1 = 0 ;
13159 char *kwnames[] = {
13160 (char *) "mimeType",(char *) "wildcard", NULL
13161 };
13162
13163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13164 {
13165 arg1 = wxString_in_helper(obj0);
13166 if (arg1 == NULL) SWIG_fail;
13167 temp1 = True;
13168 }
13169 {
13170 arg2 = wxString_in_helper(obj1);
13171 if (arg2 == NULL) SWIG_fail;
13172 temp2 = True;
13173 }
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13177
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 {
13182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13183 }
13184 {
13185 if (temp1)
13186 delete arg1;
13187 }
13188 {
13189 if (temp2)
13190 delete arg2;
13191 }
13192 return resultobj;
13193 fail:
13194 {
13195 if (temp1)
13196 delete arg1;
13197 }
13198 {
13199 if (temp2)
13200 delete arg2;
13201 }
13202 return NULL;
13203}
13204
13205
13206static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13207 PyObject *resultobj;
13208 wxMimeTypesManager *result;
13209 char *kwnames[] = {
13210 NULL
13211 };
13212
13213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13214 {
13215 PyThreadState* __tstate = wxPyBeginAllowThreads();
13216 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13217
13218 wxPyEndAllowThreads(__tstate);
13219 if (PyErr_Occurred()) SWIG_fail;
13220 }
13221 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13222 return resultobj;
13223 fail:
13224 return NULL;
13225}
13226
13227
13228static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13229 PyObject *resultobj;
13230 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13231 int arg2 = (int) wxMAILCAP_ALL ;
13232 wxString const &arg3_defvalue = wxPyEmptyString ;
13233 wxString *arg3 = (wxString *) &arg3_defvalue ;
13234 bool temp3 = False ;
13235 PyObject * obj0 = 0 ;
13236 PyObject * obj1 = 0 ;
13237 PyObject * obj2 = 0 ;
13238 char *kwnames[] = {
13239 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13240 };
13241
13242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13245 if (obj1) {
13246 arg2 = (int) SWIG_AsInt(obj1);
13247 if (PyErr_Occurred()) SWIG_fail;
13248 }
13249 if (obj2) {
13250 {
13251 arg3 = wxString_in_helper(obj2);
13252 if (arg3 == NULL) SWIG_fail;
13253 temp3 = True;
13254 }
13255 }
13256 {
13257 PyThreadState* __tstate = wxPyBeginAllowThreads();
13258 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13259
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
13263 Py_INCREF(Py_None); resultobj = Py_None;
13264 {
13265 if (temp3)
13266 delete arg3;
13267 }
13268 return resultobj;
13269 fail:
13270 {
13271 if (temp3)
13272 delete arg3;
13273 }
13274 return NULL;
13275}
13276
13277
13278static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13279 PyObject *resultobj;
13280 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13281 PyObject * obj0 = 0 ;
13282 char *kwnames[] = {
13283 (char *) "self", NULL
13284 };
13285
13286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 (arg1)->ClearData();
13292
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 Py_INCREF(Py_None); resultobj = Py_None;
13297 return resultobj;
13298 fail:
13299 return NULL;
13300}
13301
13302
13303static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13304 PyObject *resultobj;
13305 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13306 wxString *arg2 = 0 ;
13307 wxFileType *result;
13308 bool temp2 = False ;
13309 PyObject * obj0 = 0 ;
13310 PyObject * obj1 = 0 ;
13311 char *kwnames[] = {
13312 (char *) "self",(char *) "ext", NULL
13313 };
13314
13315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13318 {
13319 arg2 = wxString_in_helper(obj1);
13320 if (arg2 == NULL) SWIG_fail;
13321 temp2 = True;
13322 }
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13326
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13331 {
13332 if (temp2)
13333 delete arg2;
13334 }
13335 return resultobj;
13336 fail:
13337 {
13338 if (temp2)
13339 delete arg2;
13340 }
13341 return NULL;
13342}
13343
13344
13345static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13346 PyObject *resultobj;
13347 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13348 wxString *arg2 = 0 ;
13349 wxFileType *result;
13350 bool temp2 = False ;
13351 PyObject * obj0 = 0 ;
13352 PyObject * obj1 = 0 ;
13353 char *kwnames[] = {
13354 (char *) "self",(char *) "mimeType", NULL
13355 };
13356
13357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13360 {
13361 arg2 = wxString_in_helper(obj1);
13362 if (arg2 == NULL) SWIG_fail;
13363 temp2 = True;
13364 }
13365 {
13366 PyThreadState* __tstate = wxPyBeginAllowThreads();
13367 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13368
13369 wxPyEndAllowThreads(__tstate);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 }
13372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13373 {
13374 if (temp2)
13375 delete arg2;
13376 }
13377 return resultobj;
13378 fail:
13379 {
13380 if (temp2)
13381 delete arg2;
13382 }
13383 return NULL;
13384}
13385
13386
13387static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13388 PyObject *resultobj;
13389 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13390 wxString *arg2 = 0 ;
13391 bool arg3 = (bool) False ;
13392 bool result;
13393 bool temp2 = False ;
13394 PyObject * obj0 = 0 ;
13395 PyObject * obj1 = 0 ;
13396 PyObject * obj2 = 0 ;
13397 char *kwnames[] = {
13398 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13399 };
13400
13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13404 {
13405 arg2 = wxString_in_helper(obj1);
13406 if (arg2 == NULL) SWIG_fail;
13407 temp2 = True;
13408 }
13409 if (obj2) {
13410 arg3 = (bool) SWIG_AsBool(obj2);
13411 if (PyErr_Occurred()) SWIG_fail;
13412 }
13413 {
13414 PyThreadState* __tstate = wxPyBeginAllowThreads();
13415 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13416
13417 wxPyEndAllowThreads(__tstate);
13418 if (PyErr_Occurred()) SWIG_fail;
13419 }
13420 {
13421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13422 }
13423 {
13424 if (temp2)
13425 delete arg2;
13426 }
13427 return resultobj;
13428 fail:
13429 {
13430 if (temp2)
13431 delete arg2;
13432 }
13433 return NULL;
13434}
13435
13436
13437static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13438 PyObject *resultobj;
13439 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13440 wxString *arg2 = 0 ;
13441 bool result;
13442 bool temp2 = False ;
13443 PyObject * obj0 = 0 ;
13444 PyObject * obj1 = 0 ;
13445 char *kwnames[] = {
13446 (char *) "self",(char *) "filename", NULL
13447 };
13448
13449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13452 {
13453 arg2 = wxString_in_helper(obj1);
13454 if (arg2 == NULL) SWIG_fail;
13455 temp2 = True;
13456 }
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13460
13461 wxPyEndAllowThreads(__tstate);
13462 if (PyErr_Occurred()) SWIG_fail;
13463 }
13464 {
13465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13466 }
13467 {
13468 if (temp2)
13469 delete arg2;
13470 }
13471 return resultobj;
13472 fail:
13473 {
13474 if (temp2)
13475 delete arg2;
13476 }
13477 return NULL;
13478}
13479
13480
13481static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj;
13483 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13484 PyObject *result;
13485 PyObject * obj0 = 0 ;
13486 char *kwnames[] = {
13487 (char *) "self", NULL
13488 };
13489
13490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13493 {
13494 PyThreadState* __tstate = wxPyBeginAllowThreads();
13495 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13496
13497 wxPyEndAllowThreads(__tstate);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 }
13500 resultobj = result;
13501 return resultobj;
13502 fail:
13503 return NULL;
13504}
13505
13506
13507static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13508 PyObject *resultobj;
13509 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13510 wxFileTypeInfo *arg2 = 0 ;
13511 PyObject * obj0 = 0 ;
13512 PyObject * obj1 = 0 ;
13513 char *kwnames[] = {
13514 (char *) "self",(char *) "ft", NULL
13515 };
13516
13517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13520 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13521 SWIG_POINTER_EXCEPTION | 0)) == -1)
13522 SWIG_fail;
13523 if (arg2 == NULL) {
13524 PyErr_SetString(PyExc_TypeError,"null reference");
13525 SWIG_fail;
13526 }
13527 {
13528 PyThreadState* __tstate = wxPyBeginAllowThreads();
13529 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13530
13531 wxPyEndAllowThreads(__tstate);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 }
13534 Py_INCREF(Py_None); resultobj = Py_None;
13535 return resultobj;
13536 fail:
13537 return NULL;
13538}
13539
13540
13541static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13542 PyObject *resultobj;
13543 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13544 wxFileTypeInfo *arg2 = 0 ;
13545 wxFileType *result;
13546 PyObject * obj0 = 0 ;
13547 PyObject * obj1 = 0 ;
13548 char *kwnames[] = {
13549 (char *) "self",(char *) "ftInfo", NULL
13550 };
13551
13552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13555 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13556 SWIG_POINTER_EXCEPTION | 0)) == -1)
13557 SWIG_fail;
13558 if (arg2 == NULL) {
13559 PyErr_SetString(PyExc_TypeError,"null reference");
13560 SWIG_fail;
13561 }
13562 {
13563 PyThreadState* __tstate = wxPyBeginAllowThreads();
13564 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13565
13566 wxPyEndAllowThreads(__tstate);
13567 if (PyErr_Occurred()) SWIG_fail;
13568 }
13569 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13570 return resultobj;
13571 fail:
13572 return NULL;
13573}
13574
13575
13576static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13577 PyObject *resultobj;
13578 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13579 wxFileType *arg2 = (wxFileType *) 0 ;
13580 bool result;
13581 PyObject * obj0 = 0 ;
13582 PyObject * obj1 = 0 ;
13583 char *kwnames[] = {
13584 (char *) "self",(char *) "ft", NULL
13585 };
13586
13587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13590 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13592 {
13593 PyThreadState* __tstate = wxPyBeginAllowThreads();
13594 result = (bool)(arg1)->Unassociate(arg2);
13595
13596 wxPyEndAllowThreads(__tstate);
13597 if (PyErr_Occurred()) SWIG_fail;
13598 }
13599 {
13600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13601 }
13602 return resultobj;
13603 fail:
13604 return NULL;
13605}
13606
13607
13608static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13609 PyObject *resultobj;
13610 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13611 PyObject * obj0 = 0 ;
13612 char *kwnames[] = {
13613 (char *) "self", NULL
13614 };
13615
13616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13619 {
13620 PyThreadState* __tstate = wxPyBeginAllowThreads();
13621 delete arg1;
13622
13623 wxPyEndAllowThreads(__tstate);
13624 if (PyErr_Occurred()) SWIG_fail;
13625 }
13626 Py_INCREF(Py_None); resultobj = Py_None;
13627 return resultobj;
13628 fail:
13629 return NULL;
13630}
13631
13632
13633static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13634 PyObject *obj;
13635 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13636 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13637 Py_INCREF(obj);
13638 return Py_BuildValue((char *)"");
13639}
13640static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13641 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13642 return 1;
13643}
13644
13645
13646static PyObject *_wrap_ART_TOOLBAR_get() {
13647 PyObject *pyobj;
13648
13649 {
13650#if wxUSE_UNICODE
13651 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13652#else
13653 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13654#endif
13655 }
13656 return pyobj;
13657}
13658
13659
13660static int _wrap_ART_MENU_set(PyObject *_val) {
13661 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13662 return 1;
13663}
13664
13665
13666static PyObject *_wrap_ART_MENU_get() {
13667 PyObject *pyobj;
13668
13669 {
13670#if wxUSE_UNICODE
13671 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13672#else
13673 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13674#endif
13675 }
13676 return pyobj;
13677}
13678
13679
13680static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13681 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13682 return 1;
13683}
13684
13685
13686static PyObject *_wrap_ART_FRAME_ICON_get() {
13687 PyObject *pyobj;
13688
13689 {
13690#if wxUSE_UNICODE
13691 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13692#else
13693 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13694#endif
13695 }
13696 return pyobj;
13697}
13698
13699
13700static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13701 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13702 return 1;
13703}
13704
13705
13706static PyObject *_wrap_ART_CMN_DIALOG_get() {
13707 PyObject *pyobj;
13708
13709 {
13710#if wxUSE_UNICODE
13711 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13712#else
13713 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13714#endif
13715 }
13716 return pyobj;
13717}
13718
13719
13720static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13721 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13722 return 1;
13723}
13724
13725
13726static PyObject *_wrap_ART_HELP_BROWSER_get() {
13727 PyObject *pyobj;
13728
13729 {
13730#if wxUSE_UNICODE
13731 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13732#else
13733 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13734#endif
13735 }
13736 return pyobj;
13737}
13738
13739
13740static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13741 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13742 return 1;
13743}
13744
13745
13746static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13747 PyObject *pyobj;
13748
13749 {
13750#if wxUSE_UNICODE
13751 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13752#else
13753 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13754#endif
13755 }
13756 return pyobj;
13757}
13758
13759
13760static int _wrap_ART_OTHER_set(PyObject *_val) {
13761 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13762 return 1;
13763}
13764
13765
13766static PyObject *_wrap_ART_OTHER_get() {
13767 PyObject *pyobj;
13768
13769 {
13770#if wxUSE_UNICODE
13771 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13772#else
13773 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13774#endif
13775 }
13776 return pyobj;
13777}
13778
13779
13780static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13781 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13782 return 1;
13783}
13784
13785
13786static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13787 PyObject *pyobj;
13788
13789 {
13790#if wxUSE_UNICODE
13791 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13792#else
13793 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13794#endif
13795 }
13796 return pyobj;
13797}
13798
13799
13800static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13801 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13802 return 1;
13803}
13804
13805
13806static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13807 PyObject *pyobj;
13808
13809 {
13810#if wxUSE_UNICODE
13811 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13812#else
13813 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13814#endif
13815 }
13816 return pyobj;
13817}
13818
13819
13820static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13821 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13822 return 1;
13823}
13824
13825
13826static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13827 PyObject *pyobj;
13828
13829 {
13830#if wxUSE_UNICODE
13831 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13832#else
13833 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13834#endif
13835 }
13836 return pyobj;
13837}
13838
13839
13840static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13841 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13842 return 1;
13843}
13844
13845
13846static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13847 PyObject *pyobj;
13848
13849 {
13850#if wxUSE_UNICODE
13851 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13852#else
13853 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13854#endif
13855 }
13856 return pyobj;
13857}
13858
13859
13860static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13861 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13862 return 1;
13863}
13864
13865
13866static PyObject *_wrap_ART_HELP_BOOK_get() {
13867 PyObject *pyobj;
13868
13869 {
13870#if wxUSE_UNICODE
13871 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13872#else
13873 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13874#endif
13875 }
13876 return pyobj;
13877}
13878
13879
13880static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13881 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13882 return 1;
13883}
13884
13885
13886static PyObject *_wrap_ART_HELP_FOLDER_get() {
13887 PyObject *pyobj;
13888
13889 {
13890#if wxUSE_UNICODE
13891 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13892#else
13893 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13894#endif
13895 }
13896 return pyobj;
13897}
13898
13899
13900static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13901 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13902 return 1;
13903}
13904
13905
13906static PyObject *_wrap_ART_HELP_PAGE_get() {
13907 PyObject *pyobj;
13908
13909 {
13910#if wxUSE_UNICODE
13911 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13912#else
13913 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13914#endif
13915 }
13916 return pyobj;
13917}
13918
13919
13920static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13921 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13922 return 1;
13923}
13924
13925
13926static PyObject *_wrap_ART_GO_BACK_get() {
13927 PyObject *pyobj;
13928
13929 {
13930#if wxUSE_UNICODE
13931 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13932#else
13933 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13934#endif
13935 }
13936 return pyobj;
13937}
13938
13939
13940static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13941 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13942 return 1;
13943}
13944
13945
13946static PyObject *_wrap_ART_GO_FORWARD_get() {
13947 PyObject *pyobj;
13948
13949 {
13950#if wxUSE_UNICODE
13951 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13952#else
13953 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13954#endif
13955 }
13956 return pyobj;
13957}
13958
13959
13960static int _wrap_ART_GO_UP_set(PyObject *_val) {
13961 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13962 return 1;
13963}
13964
13965
13966static PyObject *_wrap_ART_GO_UP_get() {
13967 PyObject *pyobj;
13968
13969 {
13970#if wxUSE_UNICODE
13971 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13972#else
13973 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13974#endif
13975 }
13976 return pyobj;
13977}
13978
13979
13980static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13981 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13982 return 1;
13983}
13984
13985
13986static PyObject *_wrap_ART_GO_DOWN_get() {
13987 PyObject *pyobj;
13988
13989 {
13990#if wxUSE_UNICODE
13991 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13992#else
13993 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13994#endif
13995 }
13996 return pyobj;
13997}
13998
13999
14000static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
14001 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14002 return 1;
14003}
14004
14005
14006static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14007 PyObject *pyobj;
14008
14009 {
14010#if wxUSE_UNICODE
14011 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14012#else
14013 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14014#endif
14015 }
14016 return pyobj;
14017}
14018
14019
14020static int _wrap_ART_GO_HOME_set(PyObject *_val) {
14021 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14022 return 1;
14023}
14024
14025
14026static PyObject *_wrap_ART_GO_HOME_get() {
14027 PyObject *pyobj;
14028
14029 {
14030#if wxUSE_UNICODE
14031 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14032#else
14033 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14034#endif
14035 }
14036 return pyobj;
14037}
14038
14039
14040static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
14041 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14042 return 1;
14043}
14044
14045
14046static PyObject *_wrap_ART_FILE_OPEN_get() {
14047 PyObject *pyobj;
14048
14049 {
14050#if wxUSE_UNICODE
14051 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14052#else
14053 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14054#endif
14055 }
14056 return pyobj;
14057}
14058
14059
14060static int _wrap_ART_PRINT_set(PyObject *_val) {
14061 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14062 return 1;
14063}
14064
14065
14066static PyObject *_wrap_ART_PRINT_get() {
14067 PyObject *pyobj;
14068
14069 {
14070#if wxUSE_UNICODE
14071 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14072#else
14073 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14074#endif
14075 }
14076 return pyobj;
14077}
14078
14079
14080static int _wrap_ART_HELP_set(PyObject *_val) {
14081 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14082 return 1;
14083}
14084
14085
14086static PyObject *_wrap_ART_HELP_get() {
14087 PyObject *pyobj;
14088
14089 {
14090#if wxUSE_UNICODE
14091 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14092#else
14093 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14094#endif
14095 }
14096 return pyobj;
14097}
14098
14099
14100static int _wrap_ART_TIP_set(PyObject *_val) {
14101 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14102 return 1;
14103}
14104
14105
14106static PyObject *_wrap_ART_TIP_get() {
14107 PyObject *pyobj;
14108
14109 {
14110#if wxUSE_UNICODE
14111 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14112#else
14113 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14114#endif
14115 }
14116 return pyobj;
14117}
14118
14119
14120static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14121 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14122 return 1;
14123}
14124
14125
14126static PyObject *_wrap_ART_REPORT_VIEW_get() {
14127 PyObject *pyobj;
14128
14129 {
14130#if wxUSE_UNICODE
14131 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14132#else
14133 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14134#endif
14135 }
14136 return pyobj;
14137}
14138
14139
14140static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14141 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14142 return 1;
14143}
14144
14145
14146static PyObject *_wrap_ART_LIST_VIEW_get() {
14147 PyObject *pyobj;
14148
14149 {
14150#if wxUSE_UNICODE
14151 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14152#else
14153 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14154#endif
14155 }
14156 return pyobj;
14157}
14158
14159
14160static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14161 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14162 return 1;
14163}
14164
14165
14166static PyObject *_wrap_ART_NEW_DIR_get() {
14167 PyObject *pyobj;
14168
14169 {
14170#if wxUSE_UNICODE
14171 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14172#else
14173 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14174#endif
14175 }
14176 return pyobj;
14177}
14178
14179
14180static int _wrap_ART_FOLDER_set(PyObject *_val) {
14181 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14182 return 1;
14183}
14184
14185
14186static PyObject *_wrap_ART_FOLDER_get() {
14187 PyObject *pyobj;
14188
14189 {
14190#if wxUSE_UNICODE
14191 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14192#else
14193 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14194#endif
14195 }
14196 return pyobj;
14197}
14198
14199
14200static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14201 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14202 return 1;
14203}
14204
14205
14206static PyObject *_wrap_ART_GO_DIR_UP_get() {
14207 PyObject *pyobj;
14208
14209 {
14210#if wxUSE_UNICODE
14211 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14212#else
14213 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14214#endif
14215 }
14216 return pyobj;
14217}
14218
14219
14220static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14221 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14222 return 1;
14223}
14224
14225
14226static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14227 PyObject *pyobj;
14228
14229 {
14230#if wxUSE_UNICODE
14231 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14232#else
14233 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14234#endif
14235 }
14236 return pyobj;
14237}
14238
14239
14240static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14241 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14242 return 1;
14243}
14244
14245
14246static PyObject *_wrap_ART_NORMAL_FILE_get() {
14247 PyObject *pyobj;
14248
14249 {
14250#if wxUSE_UNICODE
14251 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14252#else
14253 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14254#endif
14255 }
14256 return pyobj;
14257}
14258
14259
14260static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14261 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14262 return 1;
14263}
14264
14265
14266static PyObject *_wrap_ART_TICK_MARK_get() {
14267 PyObject *pyobj;
14268
14269 {
14270#if wxUSE_UNICODE
14271 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14272#else
14273 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14274#endif
14275 }
14276 return pyobj;
14277}
14278
14279
14280static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14281 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14282 return 1;
14283}
14284
14285
14286static PyObject *_wrap_ART_CROSS_MARK_get() {
14287 PyObject *pyobj;
14288
14289 {
14290#if wxUSE_UNICODE
14291 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14292#else
14293 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14294#endif
14295 }
14296 return pyobj;
14297}
14298
14299
14300static int _wrap_ART_ERROR_set(PyObject *_val) {
14301 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14302 return 1;
14303}
14304
14305
14306static PyObject *_wrap_ART_ERROR_get() {
14307 PyObject *pyobj;
14308
14309 {
14310#if wxUSE_UNICODE
14311 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14312#else
14313 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14314#endif
14315 }
14316 return pyobj;
14317}
14318
14319
14320static int _wrap_ART_QUESTION_set(PyObject *_val) {
14321 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14322 return 1;
14323}
14324
14325
14326static PyObject *_wrap_ART_QUESTION_get() {
14327 PyObject *pyobj;
14328
14329 {
14330#if wxUSE_UNICODE
14331 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14332#else
14333 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14334#endif
14335 }
14336 return pyobj;
14337}
14338
14339
14340static int _wrap_ART_WARNING_set(PyObject *_val) {
14341 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14342 return 1;
14343}
14344
14345
14346static PyObject *_wrap_ART_WARNING_get() {
14347 PyObject *pyobj;
14348
14349 {
14350#if wxUSE_UNICODE
14351 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14352#else
14353 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14354#endif
14355 }
14356 return pyobj;
14357}
14358
14359
14360static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14361 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14362 return 1;
14363}
14364
14365
14366static PyObject *_wrap_ART_INFORMATION_get() {
14367 PyObject *pyobj;
14368
14369 {
14370#if wxUSE_UNICODE
14371 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14372#else
14373 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14374#endif
14375 }
14376 return pyobj;
14377}
14378
14379
14380static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14381 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14382 return 1;
14383}
14384
14385
14386static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14387 PyObject *pyobj;
14388
14389 {
14390#if wxUSE_UNICODE
14391 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14392#else
14393 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14394#endif
14395 }
14396 return pyobj;
14397}
14398
14399
14400static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14401 PyObject *resultobj;
14402 wxPyArtProvider *result;
14403 char *kwnames[] = {
14404 NULL
14405 };
14406
14407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14408 {
0439c23b 14409 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
14410 PyThreadState* __tstate = wxPyBeginAllowThreads();
14411 result = (wxPyArtProvider *)new wxPyArtProvider();
14412
14413 wxPyEndAllowThreads(__tstate);
0439c23b 14414 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
14415 }
14416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14417 return resultobj;
14418 fail:
14419 return NULL;
14420}
14421
14422
14423static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14424 PyObject *resultobj;
14425 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14426 PyObject *arg2 = (PyObject *) 0 ;
14427 PyObject *arg3 = (PyObject *) 0 ;
14428 PyObject * obj0 = 0 ;
14429 PyObject * obj1 = 0 ;
14430 PyObject * obj2 = 0 ;
14431 char *kwnames[] = {
14432 (char *) "self",(char *) "self",(char *) "_class", NULL
14433 };
14434
14435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14438 arg2 = obj1;
14439 arg3 = obj2;
14440 {
14441 PyThreadState* __tstate = wxPyBeginAllowThreads();
14442 (arg1)->_setCallbackInfo(arg2,arg3);
14443
14444 wxPyEndAllowThreads(__tstate);
14445 if (PyErr_Occurred()) SWIG_fail;
14446 }
14447 Py_INCREF(Py_None); resultobj = Py_None;
14448 return resultobj;
14449 fail:
14450 return NULL;
14451}
14452
14453
14454static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14455 PyObject *resultobj;
14456 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14457 PyObject * obj0 = 0 ;
14458 char *kwnames[] = {
14459 (char *) "provider", NULL
14460 };
14461
14462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14465 {
14466 PyThreadState* __tstate = wxPyBeginAllowThreads();
14467 wxPyArtProvider::PushProvider(arg1);
14468
14469 wxPyEndAllowThreads(__tstate);
14470 if (PyErr_Occurred()) SWIG_fail;
14471 }
14472 Py_INCREF(Py_None); resultobj = Py_None;
14473 return resultobj;
14474 fail:
14475 return NULL;
14476}
14477
14478
14479static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14480 PyObject *resultobj;
14481 bool result;
14482 char *kwnames[] = {
14483 NULL
14484 };
14485
14486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14487 {
14488 PyThreadState* __tstate = wxPyBeginAllowThreads();
14489 result = (bool)wxPyArtProvider::PopProvider();
14490
14491 wxPyEndAllowThreads(__tstate);
14492 if (PyErr_Occurred()) SWIG_fail;
14493 }
14494 {
14495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14496 }
14497 return resultobj;
14498 fail:
14499 return NULL;
14500}
14501
14502
14503static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14504 PyObject *resultobj;
14505 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14506 bool result;
14507 PyObject * obj0 = 0 ;
14508 char *kwnames[] = {
14509 (char *) "provider", NULL
14510 };
14511
14512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14515 {
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
14517 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14518
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 {
14523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14524 }
14525 return resultobj;
14526 fail:
14527 return NULL;
14528}
14529
14530
14531static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14532 PyObject *resultobj;
14533 wxString *arg1 = 0 ;
14534 wxString const &arg2_defvalue = wxPyART_OTHER ;
14535 wxString *arg2 = (wxString *) &arg2_defvalue ;
14536 wxSize const &arg3_defvalue = wxDefaultSize ;
14537 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14538 wxBitmap result;
14539 bool temp1 = False ;
14540 bool temp2 = False ;
14541 wxSize temp3 ;
14542 PyObject * obj0 = 0 ;
14543 PyObject * obj1 = 0 ;
14544 PyObject * obj2 = 0 ;
14545 char *kwnames[] = {
14546 (char *) "id",(char *) "client",(char *) "size", NULL
14547 };
14548
14549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14550 {
14551 arg1 = wxString_in_helper(obj0);
14552 if (arg1 == NULL) SWIG_fail;
14553 temp1 = True;
14554 }
14555 if (obj1) {
14556 {
14557 arg2 = wxString_in_helper(obj1);
14558 if (arg2 == NULL) SWIG_fail;
14559 temp2 = True;
14560 }
14561 }
14562 if (obj2) {
14563 {
14564 arg3 = &temp3;
14565 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14566 }
14567 }
14568 {
0439c23b 14569 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
14570 PyThreadState* __tstate = wxPyBeginAllowThreads();
14571 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14572
14573 wxPyEndAllowThreads(__tstate);
0439c23b 14574 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
14575 }
14576 {
14577 wxBitmap * resultptr;
14578 resultptr = new wxBitmap((wxBitmap &) result);
14579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14580 }
14581 {
14582 if (temp1)
14583 delete arg1;
14584 }
14585 {
14586 if (temp2)
14587 delete arg2;
14588 }
14589 return resultobj;
14590 fail:
14591 {
14592 if (temp1)
14593 delete arg1;
14594 }
14595 {
14596 if (temp2)
14597 delete arg2;
14598 }
14599 return NULL;
14600}
14601
14602
14603static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14604 PyObject *resultobj;
14605 wxString *arg1 = 0 ;
14606 wxString const &arg2_defvalue = wxPyART_OTHER ;
14607 wxString *arg2 = (wxString *) &arg2_defvalue ;
14608 wxSize const &arg3_defvalue = wxDefaultSize ;
14609 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14610 wxIcon result;
14611 bool temp1 = False ;
14612 bool temp2 = False ;
14613 wxSize temp3 ;
14614 PyObject * obj0 = 0 ;
14615 PyObject * obj1 = 0 ;
14616 PyObject * obj2 = 0 ;
14617 char *kwnames[] = {
14618 (char *) "id",(char *) "client",(char *) "size", NULL
14619 };
14620
14621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14622 {
14623 arg1 = wxString_in_helper(obj0);
14624 if (arg1 == NULL) SWIG_fail;
14625 temp1 = True;
14626 }
14627 if (obj1) {
14628 {
14629 arg2 = wxString_in_helper(obj1);
14630 if (arg2 == NULL) SWIG_fail;
14631 temp2 = True;
14632 }
14633 }
14634 if (obj2) {
14635 {
14636 arg3 = &temp3;
14637 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14638 }
14639 }
14640 {
0439c23b 14641 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
14642 PyThreadState* __tstate = wxPyBeginAllowThreads();
14643 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14644
14645 wxPyEndAllowThreads(__tstate);
0439c23b 14646 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
14647 }
14648 {
14649 wxIcon * resultptr;
14650 resultptr = new wxIcon((wxIcon &) result);
14651 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14652 }
14653 {
14654 if (temp1)
14655 delete arg1;
14656 }
14657 {
14658 if (temp2)
14659 delete arg2;
14660 }
14661 return resultobj;
14662 fail:
14663 {
14664 if (temp1)
14665 delete arg1;
14666 }
14667 {
14668 if (temp2)
14669 delete arg2;
14670 }
14671 return NULL;
14672}
14673
14674
14675static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14676 PyObject *resultobj;
14677 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14678 PyObject * obj0 = 0 ;
14679 char *kwnames[] = {
14680 (char *) "self", NULL
14681 };
14682
14683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14686 {
14687 PyThreadState* __tstate = wxPyBeginAllowThreads();
14688 wxPyArtProvider_Destroy(arg1);
14689
14690 wxPyEndAllowThreads(__tstate);
14691 if (PyErr_Occurred()) SWIG_fail;
14692 }
14693 Py_INCREF(Py_None); resultobj = Py_None;
14694 return resultobj;
14695 fail:
14696 return NULL;
14697}
14698
14699
14700static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14701 PyObject *obj;
14702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14703 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14704 Py_INCREF(obj);
14705 return Py_BuildValue((char *)"");
14706}
14707static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14708 PyObject *resultobj;
14709 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14710 PyObject * obj0 = 0 ;
14711 char *kwnames[] = {
14712 (char *) "self", NULL
14713 };
14714
14715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14718 {
14719 PyThreadState* __tstate = wxPyBeginAllowThreads();
14720 delete arg1;
14721
14722 wxPyEndAllowThreads(__tstate);
14723 if (PyErr_Occurred()) SWIG_fail;
14724 }
14725 Py_INCREF(Py_None); resultobj = Py_None;
14726 return resultobj;
14727 fail:
14728 return NULL;
14729}
14730
14731
14732static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14733 PyObject *resultobj;
14734 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14735 wxConfigBase *result;
14736 PyObject * obj0 = 0 ;
14737 char *kwnames[] = {
14738 (char *) "config", NULL
14739 };
14740
14741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14747
14748 wxPyEndAllowThreads(__tstate);
14749 if (PyErr_Occurred()) SWIG_fail;
14750 }
14751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14752 return resultobj;
14753 fail:
14754 return NULL;
14755}
14756
14757
14758static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14759 PyObject *resultobj;
14760 bool arg1 = (bool) True ;
14761 wxConfigBase *result;
14762 PyObject * obj0 = 0 ;
14763 char *kwnames[] = {
14764 (char *) "createOnDemand", NULL
14765 };
14766
14767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14768 if (obj0) {
14769 arg1 = (bool) SWIG_AsBool(obj0);
14770 if (PyErr_Occurred()) SWIG_fail;
14771 }
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14775
14776 wxPyEndAllowThreads(__tstate);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 }
14779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14780 return resultobj;
14781 fail:
14782 return NULL;
14783}
14784
14785
14786static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14787 PyObject *resultobj;
14788 wxConfigBase *result;
14789 char *kwnames[] = {
14790 NULL
14791 };
14792
14793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14794 {
14795 PyThreadState* __tstate = wxPyBeginAllowThreads();
14796 result = (wxConfigBase *)wxConfigBase::Create();
14797
14798 wxPyEndAllowThreads(__tstate);
14799 if (PyErr_Occurred()) SWIG_fail;
14800 }
14801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14802 return resultobj;
14803 fail:
14804 return NULL;
14805}
14806
14807
14808static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14809 PyObject *resultobj;
14810 char *kwnames[] = {
14811 NULL
14812 };
14813
14814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14815 {
14816 PyThreadState* __tstate = wxPyBeginAllowThreads();
14817 wxConfigBase::DontCreateOnDemand();
14818
14819 wxPyEndAllowThreads(__tstate);
14820 if (PyErr_Occurred()) SWIG_fail;
14821 }
14822 Py_INCREF(Py_None); resultobj = Py_None;
14823 return resultobj;
14824 fail:
14825 return NULL;
14826}
14827
14828
14829static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14830 PyObject *resultobj;
14831 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14832 wxString *arg2 = 0 ;
14833 bool temp2 = False ;
14834 PyObject * obj0 = 0 ;
14835 PyObject * obj1 = 0 ;
14836 char *kwnames[] = {
14837 (char *) "self",(char *) "path", NULL
14838 };
14839
14840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14843 {
14844 arg2 = wxString_in_helper(obj1);
14845 if (arg2 == NULL) SWIG_fail;
14846 temp2 = True;
14847 }
14848 {
14849 PyThreadState* __tstate = wxPyBeginAllowThreads();
14850 (arg1)->SetPath((wxString const &)*arg2);
14851
14852 wxPyEndAllowThreads(__tstate);
14853 if (PyErr_Occurred()) SWIG_fail;
14854 }
14855 Py_INCREF(Py_None); resultobj = Py_None;
14856 {
14857 if (temp2)
14858 delete arg2;
14859 }
14860 return resultobj;
14861 fail:
14862 {
14863 if (temp2)
14864 delete arg2;
14865 }
14866 return NULL;
14867}
14868
14869
14870static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14871 PyObject *resultobj;
14872 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14873 wxString *result;
14874 PyObject * obj0 = 0 ;
14875 char *kwnames[] = {
14876 (char *) "self", NULL
14877 };
14878
14879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14882 {
14883 PyThreadState* __tstate = wxPyBeginAllowThreads();
14884 {
14885 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14886 result = (wxString *) &_result_ref;
14887 }
14888
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 {
14893#if wxUSE_UNICODE
14894 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14895#else
14896 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14897#endif
14898 }
14899 return resultobj;
14900 fail:
14901 return NULL;
14902}
14903
14904
14905static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14906 PyObject *resultobj;
14907 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14908 PyObject *result;
14909 PyObject * obj0 = 0 ;
14910 char *kwnames[] = {
14911 (char *) "self", NULL
14912 };
14913
14914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14917 {
14918 PyThreadState* __tstate = wxPyBeginAllowThreads();
14919 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14920
14921 wxPyEndAllowThreads(__tstate);
14922 if (PyErr_Occurred()) SWIG_fail;
14923 }
14924 resultobj = result;
14925 return resultobj;
14926 fail:
14927 return NULL;
14928}
14929
14930
14931static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14932 PyObject *resultobj;
14933 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14934 long arg2 ;
14935 PyObject *result;
14936 PyObject * obj0 = 0 ;
14937 PyObject * obj1 = 0 ;
14938 char *kwnames[] = {
14939 (char *) "self",(char *) "index", NULL
14940 };
14941
14942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14945 arg2 = (long) SWIG_AsLong(obj1);
14946 if (PyErr_Occurred()) SWIG_fail;
14947 {
14948 PyThreadState* __tstate = wxPyBeginAllowThreads();
14949 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14950
14951 wxPyEndAllowThreads(__tstate);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 resultobj = result;
14955 return resultobj;
14956 fail:
14957 return NULL;
14958}
14959
14960
14961static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14962 PyObject *resultobj;
14963 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14964 PyObject *result;
14965 PyObject * obj0 = 0 ;
14966 char *kwnames[] = {
14967 (char *) "self", NULL
14968 };
14969
14970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14973 {
14974 PyThreadState* __tstate = wxPyBeginAllowThreads();
14975 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14976
14977 wxPyEndAllowThreads(__tstate);
14978 if (PyErr_Occurred()) SWIG_fail;
14979 }
14980 resultobj = result;
14981 return resultobj;
14982 fail:
14983 return NULL;
14984}
14985
14986
14987static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14988 PyObject *resultobj;
14989 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14990 long arg2 ;
14991 PyObject *result;
14992 PyObject * obj0 = 0 ;
14993 PyObject * obj1 = 0 ;
14994 char *kwnames[] = {
14995 (char *) "self",(char *) "index", NULL
14996 };
14997
14998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15001 arg2 = (long) SWIG_AsLong(obj1);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 {
15004 PyThreadState* __tstate = wxPyBeginAllowThreads();
15005 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15006
15007 wxPyEndAllowThreads(__tstate);
15008 if (PyErr_Occurred()) SWIG_fail;
15009 }
15010 resultobj = result;
15011 return resultobj;
15012 fail:
15013 return NULL;
15014}
15015
15016
15017static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
15018 PyObject *resultobj;
15019 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15020 bool arg2 = (bool) False ;
15021 size_t result;
15022 PyObject * obj0 = 0 ;
15023 PyObject * obj1 = 0 ;
15024 char *kwnames[] = {
15025 (char *) "self",(char *) "recursive", NULL
15026 };
15027
15028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15031 if (obj1) {
15032 arg2 = (bool) SWIG_AsBool(obj1);
15033 if (PyErr_Occurred()) SWIG_fail;
15034 }
15035 {
15036 PyThreadState* __tstate = wxPyBeginAllowThreads();
15037 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15038
15039 wxPyEndAllowThreads(__tstate);
15040 if (PyErr_Occurred()) SWIG_fail;
15041 }
15042 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15043 return resultobj;
15044 fail:
15045 return NULL;
15046}
15047
15048
15049static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
15050 PyObject *resultobj;
15051 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15052 bool arg2 = (bool) False ;
15053 size_t result;
15054 PyObject * obj0 = 0 ;
15055 PyObject * obj1 = 0 ;
15056 char *kwnames[] = {
15057 (char *) "self",(char *) "recursive", NULL
15058 };
15059
15060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15063 if (obj1) {
15064 arg2 = (bool) SWIG_AsBool(obj1);
15065 if (PyErr_Occurred()) SWIG_fail;
15066 }
15067 {
15068 PyThreadState* __tstate = wxPyBeginAllowThreads();
15069 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15070
15071 wxPyEndAllowThreads(__tstate);
15072 if (PyErr_Occurred()) SWIG_fail;
15073 }
15074 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15075 return resultobj;
15076 fail:
15077 return NULL;
15078}
15079
15080
15081static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15082 PyObject *resultobj;
15083 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15084 wxString *arg2 = 0 ;
15085 bool result;
15086 bool temp2 = False ;
15087 PyObject * obj0 = 0 ;
15088 PyObject * obj1 = 0 ;
15089 char *kwnames[] = {
15090 (char *) "self",(char *) "name", NULL
15091 };
15092
15093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15096 {
15097 arg2 = wxString_in_helper(obj1);
15098 if (arg2 == NULL) SWIG_fail;
15099 temp2 = True;
15100 }
15101 {
15102 PyThreadState* __tstate = wxPyBeginAllowThreads();
15103 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15104
15105 wxPyEndAllowThreads(__tstate);
15106 if (PyErr_Occurred()) SWIG_fail;
15107 }
15108 {
15109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15110 }
15111 {
15112 if (temp2)
15113 delete arg2;
15114 }
15115 return resultobj;
15116 fail:
15117 {
15118 if (temp2)
15119 delete arg2;
15120 }
15121 return NULL;
15122}
15123
15124
15125static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15126 PyObject *resultobj;
15127 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15128 wxString *arg2 = 0 ;
15129 bool result;
15130 bool temp2 = False ;
15131 PyObject * obj0 = 0 ;
15132 PyObject * obj1 = 0 ;
15133 char *kwnames[] = {
15134 (char *) "self",(char *) "name", NULL
15135 };
15136
15137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15140 {
15141 arg2 = wxString_in_helper(obj1);
15142 if (arg2 == NULL) SWIG_fail;
15143 temp2 = True;
15144 }
15145 {
15146 PyThreadState* __tstate = wxPyBeginAllowThreads();
15147 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15148
15149 wxPyEndAllowThreads(__tstate);
15150 if (PyErr_Occurred()) SWIG_fail;
15151 }
15152 {
15153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15154 }
15155 {
15156 if (temp2)
15157 delete arg2;
15158 }
15159 return resultobj;
15160 fail:
15161 {
15162 if (temp2)
15163 delete arg2;
15164 }
15165 return NULL;
15166}
15167
15168
15169static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15170 PyObject *resultobj;
15171 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15172 wxString *arg2 = 0 ;
15173 bool result;
15174 bool temp2 = False ;
15175 PyObject * obj0 = 0 ;
15176 PyObject * obj1 = 0 ;
15177 char *kwnames[] = {
15178 (char *) "self",(char *) "name", NULL
15179 };
15180
15181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15184 {
15185 arg2 = wxString_in_helper(obj1);
15186 if (arg2 == NULL) SWIG_fail;
15187 temp2 = True;
15188 }
15189 {
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15192
15193 wxPyEndAllowThreads(__tstate);
15194 if (PyErr_Occurred()) SWIG_fail;
15195 }
15196 {
15197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15198 }
15199 {
15200 if (temp2)
15201 delete arg2;
15202 }
15203 return resultobj;
15204 fail:
15205 {
15206 if (temp2)
15207 delete arg2;
15208 }
15209 return NULL;
15210}
15211
15212
15213static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15214 PyObject *resultobj;
15215 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15216 wxString *arg2 = 0 ;
15217 int result;
15218 bool temp2 = False ;
15219 PyObject * obj0 = 0 ;
15220 PyObject * obj1 = 0 ;
15221 char *kwnames[] = {
15222 (char *) "self",(char *) "name", NULL
15223 };
15224
15225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15228 {
15229 arg2 = wxString_in_helper(obj1);
15230 if (arg2 == NULL) SWIG_fail;
15231 temp2 = True;
15232 }
15233 {
15234 PyThreadState* __tstate = wxPyBeginAllowThreads();
15235 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15236
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 resultobj = SWIG_FromInt((int)result);
15241 {
15242 if (temp2)
15243 delete arg2;
15244 }
15245 return resultobj;
15246 fail:
15247 {
15248 if (temp2)
15249 delete arg2;
15250 }
15251 return NULL;
15252}
15253
15254
15255static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15256 PyObject *resultobj;
15257 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15258 wxString *arg2 = 0 ;
15259 wxString const &arg3_defvalue = wxPyEmptyString ;
15260 wxString *arg3 = (wxString *) &arg3_defvalue ;
15261 wxString result;
15262 bool temp2 = False ;
15263 bool temp3 = False ;
15264 PyObject * obj0 = 0 ;
15265 PyObject * obj1 = 0 ;
15266 PyObject * obj2 = 0 ;
15267 char *kwnames[] = {
15268 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15269 };
15270
15271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15274 {
15275 arg2 = wxString_in_helper(obj1);
15276 if (arg2 == NULL) SWIG_fail;
15277 temp2 = True;
15278 }
15279 if (obj2) {
15280 {
15281 arg3 = wxString_in_helper(obj2);
15282 if (arg3 == NULL) SWIG_fail;
15283 temp3 = True;
15284 }
15285 }
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
15288 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15289
15290 wxPyEndAllowThreads(__tstate);
15291 if (PyErr_Occurred()) SWIG_fail;
15292 }
15293 {
15294#if wxUSE_UNICODE
15295 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15296#else
15297 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15298#endif
15299 }
15300 {
15301 if (temp2)
15302 delete arg2;
15303 }
15304 {
15305 if (temp3)
15306 delete arg3;
15307 }
15308 return resultobj;
15309 fail:
15310 {
15311 if (temp2)
15312 delete arg2;
15313 }
15314 {
15315 if (temp3)
15316 delete arg3;
15317 }
15318 return NULL;
15319}
15320
15321
15322static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15323 PyObject *resultobj;
15324 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15325 wxString *arg2 = 0 ;
15326 long arg3 = (long) 0 ;
15327 long result;
15328 bool temp2 = False ;
15329 PyObject * obj0 = 0 ;
15330 PyObject * obj1 = 0 ;
15331 PyObject * obj2 = 0 ;
15332 char *kwnames[] = {
15333 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15334 };
15335
15336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15339 {
15340 arg2 = wxString_in_helper(obj1);
15341 if (arg2 == NULL) SWIG_fail;
15342 temp2 = True;
15343 }
15344 if (obj2) {
15345 arg3 = (long) SWIG_AsLong(obj2);
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 {
15349 PyThreadState* __tstate = wxPyBeginAllowThreads();
15350 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15351
15352 wxPyEndAllowThreads(__tstate);
15353 if (PyErr_Occurred()) SWIG_fail;
15354 }
15355 resultobj = SWIG_FromLong((long)result);
15356 {
15357 if (temp2)
15358 delete arg2;
15359 }
15360 return resultobj;
15361 fail:
15362 {
15363 if (temp2)
15364 delete arg2;
15365 }
15366 return NULL;
15367}
15368
15369
15370static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15371 PyObject *resultobj;
15372 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15373 wxString *arg2 = 0 ;
15374 double arg3 = (double) 0.0 ;
15375 double result;
15376 bool temp2 = False ;
15377 PyObject * obj0 = 0 ;
15378 PyObject * obj1 = 0 ;
15379 PyObject * obj2 = 0 ;
15380 char *kwnames[] = {
15381 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15382 };
15383
15384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) 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 if (obj2) {
15393 arg3 = (double) SWIG_AsDouble(obj2);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 {
15397 PyThreadState* __tstate = wxPyBeginAllowThreads();
15398 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15399
15400 wxPyEndAllowThreads(__tstate);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 resultobj = SWIG_FromDouble((double)result);
15404 {
15405 if (temp2)
15406 delete arg2;
15407 }
15408 return resultobj;
15409 fail:
15410 {
15411 if (temp2)
15412 delete arg2;
15413 }
15414 return NULL;
15415}
15416
15417
15418static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15419 PyObject *resultobj;
15420 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15421 wxString *arg2 = 0 ;
15422 bool arg3 = (bool) False ;
15423 bool result;
15424 bool temp2 = False ;
15425 PyObject * obj0 = 0 ;
15426 PyObject * obj1 = 0 ;
15427 PyObject * obj2 = 0 ;
15428 char *kwnames[] = {
15429 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15430 };
15431
15432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15435 {
15436 arg2 = wxString_in_helper(obj1);
15437 if (arg2 == NULL) SWIG_fail;
15438 temp2 = True;
15439 }
15440 if (obj2) {
15441 arg3 = (bool) SWIG_AsBool(obj2);
15442 if (PyErr_Occurred()) SWIG_fail;
15443 }
15444 {
15445 PyThreadState* __tstate = wxPyBeginAllowThreads();
15446 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15447
15448 wxPyEndAllowThreads(__tstate);
15449 if (PyErr_Occurred()) SWIG_fail;
15450 }
15451 {
15452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15453 }
15454 {
15455 if (temp2)
15456 delete arg2;
15457 }
15458 return resultobj;
15459 fail:
15460 {
15461 if (temp2)
15462 delete arg2;
15463 }
15464 return NULL;
15465}
15466
15467
15468static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15469 PyObject *resultobj;
15470 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15471 wxString *arg2 = 0 ;
15472 wxString *arg3 = 0 ;
15473 bool result;
15474 bool temp2 = False ;
15475 bool temp3 = False ;
15476 PyObject * obj0 = 0 ;
15477 PyObject * obj1 = 0 ;
15478 PyObject * obj2 = 0 ;
15479 char *kwnames[] = {
15480 (char *) "self",(char *) "key",(char *) "value", NULL
15481 };
15482
15483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15486 {
15487 arg2 = wxString_in_helper(obj1);
15488 if (arg2 == NULL) SWIG_fail;
15489 temp2 = True;
15490 }
15491 {
15492 arg3 = wxString_in_helper(obj2);
15493 if (arg3 == NULL) SWIG_fail;
15494 temp3 = True;
15495 }
15496 {
15497 PyThreadState* __tstate = wxPyBeginAllowThreads();
15498 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15499
15500 wxPyEndAllowThreads(__tstate);
15501 if (PyErr_Occurred()) SWIG_fail;
15502 }
15503 {
15504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15505 }
15506 {
15507 if (temp2)
15508 delete arg2;
15509 }
15510 {
15511 if (temp3)
15512 delete arg3;
15513 }
15514 return resultobj;
15515 fail:
15516 {
15517 if (temp2)
15518 delete arg2;
15519 }
15520 {
15521 if (temp3)
15522 delete arg3;
15523 }
15524 return NULL;
15525}
15526
15527
15528static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15529 PyObject *resultobj;
15530 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15531 wxString *arg2 = 0 ;
15532 long arg3 ;
15533 bool result;
15534 bool temp2 = False ;
15535 PyObject * obj0 = 0 ;
15536 PyObject * obj1 = 0 ;
15537 PyObject * obj2 = 0 ;
15538 char *kwnames[] = {
15539 (char *) "self",(char *) "key",(char *) "value", NULL
15540 };
15541
15542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15545 {
15546 arg2 = wxString_in_helper(obj1);
15547 if (arg2 == NULL) SWIG_fail;
15548 temp2 = True;
15549 }
15550 arg3 = (long) SWIG_AsLong(obj2);
15551 if (PyErr_Occurred()) SWIG_fail;
15552 {
15553 PyThreadState* __tstate = wxPyBeginAllowThreads();
15554 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15555
15556 wxPyEndAllowThreads(__tstate);
15557 if (PyErr_Occurred()) SWIG_fail;
15558 }
15559 {
15560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15561 }
15562 {
15563 if (temp2)
15564 delete arg2;
15565 }
15566 return resultobj;
15567 fail:
15568 {
15569 if (temp2)
15570 delete arg2;
15571 }
15572 return NULL;
15573}
15574
15575
15576static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15577 PyObject *resultobj;
15578 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15579 wxString *arg2 = 0 ;
15580 double arg3 ;
15581 bool result;
15582 bool temp2 = False ;
15583 PyObject * obj0 = 0 ;
15584 PyObject * obj1 = 0 ;
15585 PyObject * obj2 = 0 ;
15586 char *kwnames[] = {
15587 (char *) "self",(char *) "key",(char *) "value", NULL
15588 };
15589
15590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15593 {
15594 arg2 = wxString_in_helper(obj1);
15595 if (arg2 == NULL) SWIG_fail;
15596 temp2 = True;
15597 }
15598 arg3 = (double) SWIG_AsDouble(obj2);
15599 if (PyErr_Occurred()) SWIG_fail;
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
15602 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15603
15604 wxPyEndAllowThreads(__tstate);
15605 if (PyErr_Occurred()) SWIG_fail;
15606 }
15607 {
15608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15609 }
15610 {
15611 if (temp2)
15612 delete arg2;
15613 }
15614 return resultobj;
15615 fail:
15616 {
15617 if (temp2)
15618 delete arg2;
15619 }
15620 return NULL;
15621}
15622
15623
15624static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15625 PyObject *resultobj;
15626 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15627 wxString *arg2 = 0 ;
15628 bool arg3 ;
15629 bool result;
15630 bool temp2 = False ;
15631 PyObject * obj0 = 0 ;
15632 PyObject * obj1 = 0 ;
15633 PyObject * obj2 = 0 ;
15634 char *kwnames[] = {
15635 (char *) "self",(char *) "key",(char *) "value", NULL
15636 };
15637
15638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15641 {
15642 arg2 = wxString_in_helper(obj1);
15643 if (arg2 == NULL) SWIG_fail;
15644 temp2 = True;
15645 }
15646 arg3 = (bool) SWIG_AsBool(obj2);
15647 if (PyErr_Occurred()) SWIG_fail;
15648 {
15649 PyThreadState* __tstate = wxPyBeginAllowThreads();
15650 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15651
15652 wxPyEndAllowThreads(__tstate);
15653 if (PyErr_Occurred()) SWIG_fail;
15654 }
15655 {
15656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15657 }
15658 {
15659 if (temp2)
15660 delete arg2;
15661 }
15662 return resultobj;
15663 fail:
15664 {
15665 if (temp2)
15666 delete arg2;
15667 }
15668 return NULL;
15669}
15670
15671
15672static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15673 PyObject *resultobj;
15674 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15675 bool arg2 = (bool) False ;
15676 bool result;
15677 PyObject * obj0 = 0 ;
15678 PyObject * obj1 = 0 ;
15679 char *kwnames[] = {
15680 (char *) "self",(char *) "currentOnly", NULL
15681 };
15682
15683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15686 if (obj1) {
15687 arg2 = (bool) SWIG_AsBool(obj1);
15688 if (PyErr_Occurred()) SWIG_fail;
15689 }
15690 {
15691 PyThreadState* __tstate = wxPyBeginAllowThreads();
15692 result = (bool)(arg1)->Flush(arg2);
15693
15694 wxPyEndAllowThreads(__tstate);
15695 if (PyErr_Occurred()) SWIG_fail;
15696 }
15697 {
15698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15699 }
15700 return resultobj;
15701 fail:
15702 return NULL;
15703}
15704
15705
15706static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15707 PyObject *resultobj;
15708 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15709 wxString *arg2 = 0 ;
15710 wxString *arg3 = 0 ;
15711 bool result;
15712 bool temp2 = False ;
15713 bool temp3 = False ;
15714 PyObject * obj0 = 0 ;
15715 PyObject * obj1 = 0 ;
15716 PyObject * obj2 = 0 ;
15717 char *kwnames[] = {
15718 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15719 };
15720
15721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15724 {
15725 arg2 = wxString_in_helper(obj1);
15726 if (arg2 == NULL) SWIG_fail;
15727 temp2 = True;
15728 }
15729 {
15730 arg3 = wxString_in_helper(obj2);
15731 if (arg3 == NULL) SWIG_fail;
15732 temp3 = True;
15733 }
15734 {
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15737
15738 wxPyEndAllowThreads(__tstate);
15739 if (PyErr_Occurred()) SWIG_fail;
15740 }
15741 {
15742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15743 }
15744 {
15745 if (temp2)
15746 delete arg2;
15747 }
15748 {
15749 if (temp3)
15750 delete arg3;
15751 }
15752 return resultobj;
15753 fail:
15754 {
15755 if (temp2)
15756 delete arg2;
15757 }
15758 {
15759 if (temp3)
15760 delete arg3;
15761 }
15762 return NULL;
15763}
15764
15765
15766static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15767 PyObject *resultobj;
15768 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15769 wxString *arg2 = 0 ;
15770 wxString *arg3 = 0 ;
15771 bool result;
15772 bool temp2 = False ;
15773 bool temp3 = False ;
15774 PyObject * obj0 = 0 ;
15775 PyObject * obj1 = 0 ;
15776 PyObject * obj2 = 0 ;
15777 char *kwnames[] = {
15778 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15779 };
15780
15781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15784 {
15785 arg2 = wxString_in_helper(obj1);
15786 if (arg2 == NULL) SWIG_fail;
15787 temp2 = True;
15788 }
15789 {
15790 arg3 = wxString_in_helper(obj2);
15791 if (arg3 == NULL) SWIG_fail;
15792 temp3 = True;
15793 }
15794 {
15795 PyThreadState* __tstate = wxPyBeginAllowThreads();
15796 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15797
15798 wxPyEndAllowThreads(__tstate);
15799 if (PyErr_Occurred()) SWIG_fail;
15800 }
15801 {
15802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15803 }
15804 {
15805 if (temp2)
15806 delete arg2;
15807 }
15808 {
15809 if (temp3)
15810 delete arg3;
15811 }
15812 return resultobj;
15813 fail:
15814 {
15815 if (temp2)
15816 delete arg2;
15817 }
15818 {
15819 if (temp3)
15820 delete arg3;
15821 }
15822 return NULL;
15823}
15824
15825
15826static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15827 PyObject *resultobj;
15828 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15829 wxString *arg2 = 0 ;
15830 bool arg3 = (bool) True ;
15831 bool result;
15832 bool temp2 = False ;
15833 PyObject * obj0 = 0 ;
15834 PyObject * obj1 = 0 ;
15835 PyObject * obj2 = 0 ;
15836 char *kwnames[] = {
15837 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15838 };
15839
15840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15843 {
15844 arg2 = wxString_in_helper(obj1);
15845 if (arg2 == NULL) SWIG_fail;
15846 temp2 = True;
15847 }
15848 if (obj2) {
15849 arg3 = (bool) SWIG_AsBool(obj2);
15850 if (PyErr_Occurred()) SWIG_fail;
15851 }
15852 {
15853 PyThreadState* __tstate = wxPyBeginAllowThreads();
15854 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15855
15856 wxPyEndAllowThreads(__tstate);
15857 if (PyErr_Occurred()) SWIG_fail;
15858 }
15859 {
15860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15861 }
15862 {
15863 if (temp2)
15864 delete arg2;
15865 }
15866 return resultobj;
15867 fail:
15868 {
15869 if (temp2)
15870 delete arg2;
15871 }
15872 return NULL;
15873}
15874
15875
15876static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15877 PyObject *resultobj;
15878 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15879 wxString *arg2 = 0 ;
15880 bool result;
15881 bool temp2 = False ;
15882 PyObject * obj0 = 0 ;
15883 PyObject * obj1 = 0 ;
15884 char *kwnames[] = {
15885 (char *) "self",(char *) "key", NULL
15886 };
15887
15888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15891 {
15892 arg2 = wxString_in_helper(obj1);
15893 if (arg2 == NULL) SWIG_fail;
15894 temp2 = True;
15895 }
15896 {
15897 PyThreadState* __tstate = wxPyBeginAllowThreads();
15898 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15899
15900 wxPyEndAllowThreads(__tstate);
15901 if (PyErr_Occurred()) SWIG_fail;
15902 }
15903 {
15904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15905 }
15906 {
15907 if (temp2)
15908 delete arg2;
15909 }
15910 return resultobj;
15911 fail:
15912 {
15913 if (temp2)
15914 delete arg2;
15915 }
15916 return NULL;
15917}
15918
15919
15920static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15921 PyObject *resultobj;
15922 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15923 bool result;
15924 PyObject * obj0 = 0 ;
15925 char *kwnames[] = {
15926 (char *) "self", NULL
15927 };
15928
15929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15932 {
15933 PyThreadState* __tstate = wxPyBeginAllowThreads();
15934 result = (bool)(arg1)->DeleteAll();
15935
15936 wxPyEndAllowThreads(__tstate);
15937 if (PyErr_Occurred()) SWIG_fail;
15938 }
15939 {
15940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15941 }
15942 return resultobj;
15943 fail:
15944 return NULL;
15945}
15946
15947
15948static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15949 PyObject *resultobj;
15950 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15951 bool arg2 = (bool) True ;
15952 PyObject * obj0 = 0 ;
15953 PyObject * obj1 = 0 ;
15954 char *kwnames[] = {
15955 (char *) "self",(char *) "doIt", NULL
15956 };
15957
15958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15961 if (obj1) {
15962 arg2 = (bool) SWIG_AsBool(obj1);
15963 if (PyErr_Occurred()) SWIG_fail;
15964 }
15965 {
15966 PyThreadState* __tstate = wxPyBeginAllowThreads();
15967 (arg1)->SetExpandEnvVars(arg2);
15968
15969 wxPyEndAllowThreads(__tstate);
15970 if (PyErr_Occurred()) SWIG_fail;
15971 }
15972 Py_INCREF(Py_None); resultobj = Py_None;
15973 return resultobj;
15974 fail:
15975 return NULL;
15976}
15977
15978
15979static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15980 PyObject *resultobj;
15981 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15982 bool result;
15983 PyObject * obj0 = 0 ;
15984 char *kwnames[] = {
15985 (char *) "self", NULL
15986 };
15987
15988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15991 {
15992 PyThreadState* __tstate = wxPyBeginAllowThreads();
15993 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15994
15995 wxPyEndAllowThreads(__tstate);
15996 if (PyErr_Occurred()) SWIG_fail;
15997 }
15998 {
15999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16000 }
16001 return resultobj;
16002 fail:
16003 return NULL;
16004}
16005
16006
16007static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16008 PyObject *resultobj;
16009 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16010 bool arg2 = (bool) True ;
16011 PyObject * obj0 = 0 ;
16012 PyObject * obj1 = 0 ;
16013 char *kwnames[] = {
16014 (char *) "self",(char *) "doIt", NULL
16015 };
16016
16017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16020 if (obj1) {
16021 arg2 = (bool) SWIG_AsBool(obj1);
16022 if (PyErr_Occurred()) SWIG_fail;
16023 }
16024 {
16025 PyThreadState* __tstate = wxPyBeginAllowThreads();
16026 (arg1)->SetRecordDefaults(arg2);
16027
16028 wxPyEndAllowThreads(__tstate);
16029 if (PyErr_Occurred()) SWIG_fail;
16030 }
16031 Py_INCREF(Py_None); resultobj = Py_None;
16032 return resultobj;
16033 fail:
16034 return NULL;
16035}
16036
16037
16038static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16039 PyObject *resultobj;
16040 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16041 bool result;
16042 PyObject * obj0 = 0 ;
16043 char *kwnames[] = {
16044 (char *) "self", NULL
16045 };
16046
16047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16050 {
16051 PyThreadState* __tstate = wxPyBeginAllowThreads();
16052 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16053
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 {
16058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16059 }
16060 return resultobj;
16061 fail:
16062 return NULL;
16063}
16064
16065
16066static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16067 PyObject *resultobj;
16068 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16069 wxString *arg2 = 0 ;
16070 wxString result;
16071 bool temp2 = False ;
16072 PyObject * obj0 = 0 ;
16073 PyObject * obj1 = 0 ;
16074 char *kwnames[] = {
16075 (char *) "self",(char *) "str", NULL
16076 };
16077
16078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16081 {
16082 arg2 = wxString_in_helper(obj1);
16083 if (arg2 == NULL) SWIG_fail;
16084 temp2 = True;
16085 }
16086 {
16087 PyThreadState* __tstate = wxPyBeginAllowThreads();
16088 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16089
16090 wxPyEndAllowThreads(__tstate);
16091 if (PyErr_Occurred()) SWIG_fail;
16092 }
16093 {
16094#if wxUSE_UNICODE
16095 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16096#else
16097 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16098#endif
16099 }
16100 {
16101 if (temp2)
16102 delete arg2;
16103 }
16104 return resultobj;
16105 fail:
16106 {
16107 if (temp2)
16108 delete arg2;
16109 }
16110 return NULL;
16111}
16112
16113
16114static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16115 PyObject *resultobj;
16116 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16117 wxString result;
16118 PyObject * obj0 = 0 ;
16119 char *kwnames[] = {
16120 (char *) "self", NULL
16121 };
16122
16123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16126 {
16127 PyThreadState* __tstate = wxPyBeginAllowThreads();
16128 result = ((wxConfigBase const *)arg1)->GetAppName();
16129
16130 wxPyEndAllowThreads(__tstate);
16131 if (PyErr_Occurred()) SWIG_fail;
16132 }
16133 {
16134#if wxUSE_UNICODE
16135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16136#else
16137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16138#endif
16139 }
16140 return resultobj;
16141 fail:
16142 return NULL;
16143}
16144
16145
16146static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16147 PyObject *resultobj;
16148 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16149 wxString result;
16150 PyObject * obj0 = 0 ;
16151 char *kwnames[] = {
16152 (char *) "self", NULL
16153 };
16154
16155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16158 {
16159 PyThreadState* __tstate = wxPyBeginAllowThreads();
16160 result = ((wxConfigBase const *)arg1)->GetVendorName();
16161
16162 wxPyEndAllowThreads(__tstate);
16163 if (PyErr_Occurred()) SWIG_fail;
16164 }
16165 {
16166#if wxUSE_UNICODE
16167 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16168#else
16169 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16170#endif
16171 }
16172 return resultobj;
16173 fail:
16174 return NULL;
16175}
16176
16177
16178static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16179 PyObject *resultobj;
16180 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16181 wxString *arg2 = 0 ;
16182 bool temp2 = False ;
16183 PyObject * obj0 = 0 ;
16184 PyObject * obj1 = 0 ;
16185 char *kwnames[] = {
16186 (char *) "self",(char *) "appName", NULL
16187 };
16188
16189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16192 {
16193 arg2 = wxString_in_helper(obj1);
16194 if (arg2 == NULL) SWIG_fail;
16195 temp2 = True;
16196 }
16197 {
16198 PyThreadState* __tstate = wxPyBeginAllowThreads();
16199 (arg1)->SetAppName((wxString const &)*arg2);
16200
16201 wxPyEndAllowThreads(__tstate);
16202 if (PyErr_Occurred()) SWIG_fail;
16203 }
16204 Py_INCREF(Py_None); resultobj = Py_None;
16205 {
16206 if (temp2)
16207 delete arg2;
16208 }
16209 return resultobj;
16210 fail:
16211 {
16212 if (temp2)
16213 delete arg2;
16214 }
16215 return NULL;
16216}
16217
16218
16219static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16220 PyObject *resultobj;
16221 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16222 wxString *arg2 = 0 ;
16223 bool temp2 = False ;
16224 PyObject * obj0 = 0 ;
16225 PyObject * obj1 = 0 ;
16226 char *kwnames[] = {
16227 (char *) "self",(char *) "vendorName", NULL
16228 };
16229
16230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16233 {
16234 arg2 = wxString_in_helper(obj1);
16235 if (arg2 == NULL) SWIG_fail;
16236 temp2 = True;
16237 }
16238 {
16239 PyThreadState* __tstate = wxPyBeginAllowThreads();
16240 (arg1)->SetVendorName((wxString const &)*arg2);
16241
16242 wxPyEndAllowThreads(__tstate);
16243 if (PyErr_Occurred()) SWIG_fail;
16244 }
16245 Py_INCREF(Py_None); resultobj = Py_None;
16246 {
16247 if (temp2)
16248 delete arg2;
16249 }
16250 return resultobj;
16251 fail:
16252 {
16253 if (temp2)
16254 delete arg2;
16255 }
16256 return NULL;
16257}
16258
16259
16260static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16261 PyObject *resultobj;
16262 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16263 long arg2 ;
16264 PyObject * obj0 = 0 ;
16265 PyObject * obj1 = 0 ;
16266 char *kwnames[] = {
16267 (char *) "self",(char *) "style", NULL
16268 };
16269
16270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16273 arg2 = (long) SWIG_AsLong(obj1);
16274 if (PyErr_Occurred()) SWIG_fail;
16275 {
16276 PyThreadState* __tstate = wxPyBeginAllowThreads();
16277 (arg1)->SetStyle(arg2);
16278
16279 wxPyEndAllowThreads(__tstate);
16280 if (PyErr_Occurred()) SWIG_fail;
16281 }
16282 Py_INCREF(Py_None); resultobj = Py_None;
16283 return resultobj;
16284 fail:
16285 return NULL;
16286}
16287
16288
16289static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16290 PyObject *resultobj;
16291 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16292 long result;
16293 PyObject * obj0 = 0 ;
16294 char *kwnames[] = {
16295 (char *) "self", NULL
16296 };
16297
16298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16301 {
16302 PyThreadState* __tstate = wxPyBeginAllowThreads();
16303 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16304
16305 wxPyEndAllowThreads(__tstate);
16306 if (PyErr_Occurred()) SWIG_fail;
16307 }
16308 resultobj = SWIG_FromLong((long)result);
16309 return resultobj;
16310 fail:
16311 return NULL;
16312}
16313
16314
16315static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16316 PyObject *obj;
16317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16318 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16319 Py_INCREF(obj);
16320 return Py_BuildValue((char *)"");
16321}
16322static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16323 PyObject *resultobj;
16324 wxString const &arg1_defvalue = wxPyEmptyString ;
16325 wxString *arg1 = (wxString *) &arg1_defvalue ;
16326 wxString const &arg2_defvalue = wxPyEmptyString ;
16327 wxString *arg2 = (wxString *) &arg2_defvalue ;
16328 wxString const &arg3_defvalue = wxPyEmptyString ;
16329 wxString *arg3 = (wxString *) &arg3_defvalue ;
16330 wxString const &arg4_defvalue = wxPyEmptyString ;
16331 wxString *arg4 = (wxString *) &arg4_defvalue ;
16332 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16333 wxConfig *result;
16334 bool temp1 = False ;
16335 bool temp2 = False ;
16336 bool temp3 = False ;
16337 bool temp4 = False ;
16338 PyObject * obj0 = 0 ;
16339 PyObject * obj1 = 0 ;
16340 PyObject * obj2 = 0 ;
16341 PyObject * obj3 = 0 ;
16342 PyObject * obj4 = 0 ;
16343 char *kwnames[] = {
16344 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16345 };
16346
16347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16348 if (obj0) {
16349 {
16350 arg1 = wxString_in_helper(obj0);
16351 if (arg1 == NULL) SWIG_fail;
16352 temp1 = True;
16353 }
16354 }
16355 if (obj1) {
16356 {
16357 arg2 = wxString_in_helper(obj1);
16358 if (arg2 == NULL) SWIG_fail;
16359 temp2 = True;
16360 }
16361 }
16362 if (obj2) {
16363 {
16364 arg3 = wxString_in_helper(obj2);
16365 if (arg3 == NULL) SWIG_fail;
16366 temp3 = True;
16367 }
16368 }
16369 if (obj3) {
16370 {
16371 arg4 = wxString_in_helper(obj3);
16372 if (arg4 == NULL) SWIG_fail;
16373 temp4 = True;
16374 }
16375 }
16376 if (obj4) {
16377 arg5 = (long) SWIG_AsLong(obj4);
16378 if (PyErr_Occurred()) SWIG_fail;
16379 }
16380 {
16381 PyThreadState* __tstate = wxPyBeginAllowThreads();
16382 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16383
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16388 {
16389 if (temp1)
16390 delete arg1;
16391 }
16392 {
16393 if (temp2)
16394 delete arg2;
16395 }
16396 {
16397 if (temp3)
16398 delete arg3;
16399 }
16400 {
16401 if (temp4)
16402 delete arg4;
16403 }
16404 return resultobj;
16405 fail:
16406 {
16407 if (temp1)
16408 delete arg1;
16409 }
16410 {
16411 if (temp2)
16412 delete arg2;
16413 }
16414 {
16415 if (temp3)
16416 delete arg3;
16417 }
16418 {
16419 if (temp4)
16420 delete arg4;
16421 }
16422 return NULL;
16423}
16424
16425
16426static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16427 PyObject *resultobj;
16428 wxConfig *arg1 = (wxConfig *) 0 ;
16429 PyObject * obj0 = 0 ;
16430 char *kwnames[] = {
16431 (char *) "self", NULL
16432 };
16433
16434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16437 {
16438 PyThreadState* __tstate = wxPyBeginAllowThreads();
16439 delete arg1;
16440
16441 wxPyEndAllowThreads(__tstate);
16442 if (PyErr_Occurred()) SWIG_fail;
16443 }
16444 Py_INCREF(Py_None); resultobj = Py_None;
16445 return resultobj;
16446 fail:
16447 return NULL;
16448}
16449
16450
16451static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16452 PyObject *obj;
16453 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16454 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16455 Py_INCREF(obj);
16456 return Py_BuildValue((char *)"");
16457}
16458static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16459 PyObject *resultobj;
16460 wxString const &arg1_defvalue = wxPyEmptyString ;
16461 wxString *arg1 = (wxString *) &arg1_defvalue ;
16462 wxString const &arg2_defvalue = wxPyEmptyString ;
16463 wxString *arg2 = (wxString *) &arg2_defvalue ;
16464 wxString const &arg3_defvalue = wxPyEmptyString ;
16465 wxString *arg3 = (wxString *) &arg3_defvalue ;
16466 wxString const &arg4_defvalue = wxPyEmptyString ;
16467 wxString *arg4 = (wxString *) &arg4_defvalue ;
16468 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16469 wxFileConfig *result;
16470 bool temp1 = False ;
16471 bool temp2 = False ;
16472 bool temp3 = False ;
16473 bool temp4 = False ;
16474 PyObject * obj0 = 0 ;
16475 PyObject * obj1 = 0 ;
16476 PyObject * obj2 = 0 ;
16477 PyObject * obj3 = 0 ;
16478 PyObject * obj4 = 0 ;
16479 char *kwnames[] = {
16480 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16481 };
16482
16483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16484 if (obj0) {
16485 {
16486 arg1 = wxString_in_helper(obj0);
16487 if (arg1 == NULL) SWIG_fail;
16488 temp1 = True;
16489 }
16490 }
16491 if (obj1) {
16492 {
16493 arg2 = wxString_in_helper(obj1);
16494 if (arg2 == NULL) SWIG_fail;
16495 temp2 = True;
16496 }
16497 }
16498 if (obj2) {
16499 {
16500 arg3 = wxString_in_helper(obj2);
16501 if (arg3 == NULL) SWIG_fail;
16502 temp3 = True;
16503 }
16504 }
16505 if (obj3) {
16506 {
16507 arg4 = wxString_in_helper(obj3);
16508 if (arg4 == NULL) SWIG_fail;
16509 temp4 = True;
16510 }
16511 }
16512 if (obj4) {
16513 arg5 = (long) SWIG_AsLong(obj4);
16514 if (PyErr_Occurred()) SWIG_fail;
16515 }
16516 {
16517 PyThreadState* __tstate = wxPyBeginAllowThreads();
16518 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16519
16520 wxPyEndAllowThreads(__tstate);
16521 if (PyErr_Occurred()) SWIG_fail;
16522 }
16523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16524 {
16525 if (temp1)
16526 delete arg1;
16527 }
16528 {
16529 if (temp2)
16530 delete arg2;
16531 }
16532 {
16533 if (temp3)
16534 delete arg3;
16535 }
16536 {
16537 if (temp4)
16538 delete arg4;
16539 }
16540 return resultobj;
16541 fail:
16542 {
16543 if (temp1)
16544 delete arg1;
16545 }
16546 {
16547 if (temp2)
16548 delete arg2;
16549 }
16550 {
16551 if (temp3)
16552 delete arg3;
16553 }
16554 {
16555 if (temp4)
16556 delete arg4;
16557 }
16558 return NULL;
16559}
16560
16561
16562static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16563 PyObject *resultobj;
16564 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16565 PyObject * obj0 = 0 ;
16566 char *kwnames[] = {
16567 (char *) "self", NULL
16568 };
16569
16570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16573 {
16574 PyThreadState* __tstate = wxPyBeginAllowThreads();
16575 delete arg1;
16576
16577 wxPyEndAllowThreads(__tstate);
16578 if (PyErr_Occurred()) SWIG_fail;
16579 }
16580 Py_INCREF(Py_None); resultobj = Py_None;
16581 return resultobj;
16582 fail:
16583 return NULL;
16584}
16585
16586
16587static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16588 PyObject *obj;
16589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16590 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16591 Py_INCREF(obj);
16592 return Py_BuildValue((char *)"");
16593}
16594static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16595 PyObject *resultobj;
16596 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16597 wxString *arg2 = 0 ;
16598 wxConfigPathChanger *result;
16599 bool temp2 = False ;
16600 PyObject * obj0 = 0 ;
16601 PyObject * obj1 = 0 ;
16602 char *kwnames[] = {
16603 (char *) "config",(char *) "entry", NULL
16604 };
16605
16606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16609 {
16610 arg2 = wxString_in_helper(obj1);
16611 if (arg2 == NULL) SWIG_fail;
16612 temp2 = True;
16613 }
16614 {
16615 PyThreadState* __tstate = wxPyBeginAllowThreads();
16616 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16617
16618 wxPyEndAllowThreads(__tstate);
16619 if (PyErr_Occurred()) SWIG_fail;
16620 }
16621 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16622 {
16623 if (temp2)
16624 delete arg2;
16625 }
16626 return resultobj;
16627 fail:
16628 {
16629 if (temp2)
16630 delete arg2;
16631 }
16632 return NULL;
16633}
16634
16635
16636static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16637 PyObject *resultobj;
16638 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16639 PyObject * obj0 = 0 ;
16640 char *kwnames[] = {
16641 (char *) "self", NULL
16642 };
16643
16644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16647 {
16648 PyThreadState* __tstate = wxPyBeginAllowThreads();
16649 delete arg1;
16650
16651 wxPyEndAllowThreads(__tstate);
16652 if (PyErr_Occurred()) SWIG_fail;
16653 }
16654 Py_INCREF(Py_None); resultobj = Py_None;
16655 return resultobj;
16656 fail:
16657 return NULL;
16658}
16659
16660
16661static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16662 PyObject *resultobj;
16663 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16664 wxString *result;
16665 PyObject * obj0 = 0 ;
16666 char *kwnames[] = {
16667 (char *) "self", NULL
16668 };
16669
16670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16673 {
16674 PyThreadState* __tstate = wxPyBeginAllowThreads();
16675 {
16676 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16677 result = (wxString *) &_result_ref;
16678 }
16679
16680 wxPyEndAllowThreads(__tstate);
16681 if (PyErr_Occurred()) SWIG_fail;
16682 }
16683 {
16684#if wxUSE_UNICODE
16685 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16686#else
16687 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16688#endif
16689 }
16690 return resultobj;
16691 fail:
16692 return NULL;
16693}
16694
16695
16696static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16697 PyObject *obj;
16698 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16699 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16700 Py_INCREF(obj);
16701 return Py_BuildValue((char *)"");
16702}
16703static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16704 PyObject *resultobj;
16705 wxString *arg1 = 0 ;
16706 wxString result;
16707 bool temp1 = False ;
16708 PyObject * obj0 = 0 ;
16709 char *kwnames[] = {
16710 (char *) "sz", NULL
16711 };
16712
16713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16714 {
16715 arg1 = wxString_in_helper(obj0);
16716 if (arg1 == NULL) SWIG_fail;
16717 temp1 = True;
16718 }
16719 {
16720 PyThreadState* __tstate = wxPyBeginAllowThreads();
16721 result = wxExpandEnvVars((wxString const &)*arg1);
16722
16723 wxPyEndAllowThreads(__tstate);
16724 if (PyErr_Occurred()) SWIG_fail;
16725 }
16726 {
16727#if wxUSE_UNICODE
16728 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16729#else
16730 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16731#endif
16732 }
16733 {
16734 if (temp1)
16735 delete arg1;
16736 }
16737 return resultobj;
16738 fail:
16739 {
16740 if (temp1)
16741 delete arg1;
16742 }
16743 return NULL;
16744}
16745
16746
16747static int _wrap_DateFormatStr_set(PyObject *_val) {
16748 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16749 return 1;
16750}
16751
16752
16753static PyObject *_wrap_DateFormatStr_get() {
16754 PyObject *pyobj;
16755
16756 {
16757#if wxUSE_UNICODE
16758 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16759#else
16760 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16761#endif
16762 }
16763 return pyobj;
16764}
16765
16766
16767static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16768 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16769 return 1;
16770}
16771
16772
16773static PyObject *_wrap_TimeSpanFormatStr_get() {
16774 PyObject *pyobj;
16775
16776 {
16777#if wxUSE_UNICODE
16778 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16779#else
16780 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16781#endif
16782 }
16783 return pyobj;
16784}
16785
16786
16787static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16788 PyObject *resultobj;
16789 int arg1 ;
16790 PyObject * obj0 = 0 ;
16791 char *kwnames[] = {
16792 (char *) "country", NULL
16793 };
16794
16795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16796 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16797 if (PyErr_Occurred()) SWIG_fail;
16798 {
16799 PyThreadState* __tstate = wxPyBeginAllowThreads();
16800 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16801
16802 wxPyEndAllowThreads(__tstate);
16803 if (PyErr_Occurred()) SWIG_fail;
16804 }
16805 Py_INCREF(Py_None); resultobj = Py_None;
16806 return resultobj;
16807 fail:
16808 return NULL;
16809}
16810
16811
16812static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16813 PyObject *resultobj;
16814 int result;
16815 char *kwnames[] = {
16816 NULL
16817 };
16818
16819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16820 {
16821 PyThreadState* __tstate = wxPyBeginAllowThreads();
16822 result = (int)wxDateTime::GetCountry();
16823
16824 wxPyEndAllowThreads(__tstate);
16825 if (PyErr_Occurred()) SWIG_fail;
16826 }
16827 resultobj = SWIG_FromInt((int)result);
16828 return resultobj;
16829 fail:
16830 return NULL;
16831}
16832
16833
16834static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16835 PyObject *resultobj;
16836 int arg1 = (int) wxDateTime::Country_Default ;
16837 bool result;
16838 PyObject * obj0 = 0 ;
16839 char *kwnames[] = {
16840 (char *) "country", NULL
16841 };
16842
16843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16844 if (obj0) {
16845 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16846 if (PyErr_Occurred()) SWIG_fail;
16847 }
16848 {
16849 PyThreadState* __tstate = wxPyBeginAllowThreads();
16850 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16851
16852 wxPyEndAllowThreads(__tstate);
16853 if (PyErr_Occurred()) SWIG_fail;
16854 }
16855 {
16856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16857 }
16858 return resultobj;
16859 fail:
16860 return NULL;
16861}
16862
16863
16864static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16865 PyObject *resultobj;
16866 int arg1 = (int) wxDateTime::Gregorian ;
16867 int result;
16868 PyObject * obj0 = 0 ;
16869 char *kwnames[] = {
16870 (char *) "cal", NULL
16871 };
16872
16873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16874 if (obj0) {
16875 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16876 if (PyErr_Occurred()) SWIG_fail;
16877 }
16878 {
16879 PyThreadState* __tstate = wxPyBeginAllowThreads();
16880 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16881
16882 wxPyEndAllowThreads(__tstate);
16883 if (PyErr_Occurred()) SWIG_fail;
16884 }
16885 resultobj = SWIG_FromInt((int)result);
16886 return resultobj;
16887 fail:
16888 return NULL;
16889}
16890
16891
16892static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16893 PyObject *resultobj;
16894 int arg1 ;
16895 int result;
16896 PyObject * obj0 = 0 ;
16897 char *kwnames[] = {
16898 (char *) "year", NULL
16899 };
16900
16901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16902 arg1 = (int) SWIG_AsInt(obj0);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 {
16905 PyThreadState* __tstate = wxPyBeginAllowThreads();
16906 result = (int)wxDateTime::ConvertYearToBC(arg1);
16907
16908 wxPyEndAllowThreads(__tstate);
16909 if (PyErr_Occurred()) SWIG_fail;
16910 }
16911 resultobj = SWIG_FromInt((int)result);
16912 return resultobj;
16913 fail:
16914 return NULL;
16915}
16916
16917
16918static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16919 PyObject *resultobj;
16920 int arg1 = (int) wxDateTime::Gregorian ;
16921 int result;
16922 PyObject * obj0 = 0 ;
16923 char *kwnames[] = {
16924 (char *) "cal", NULL
16925 };
16926
16927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16928 if (obj0) {
16929 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16930 if (PyErr_Occurred()) SWIG_fail;
16931 }
16932 {
16933 PyThreadState* __tstate = wxPyBeginAllowThreads();
16934 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16935
16936 wxPyEndAllowThreads(__tstate);
16937 if (PyErr_Occurred()) SWIG_fail;
16938 }
16939 resultobj = SWIG_FromInt((int)result);
16940 return resultobj;
16941 fail:
16942 return NULL;
16943}
16944
16945
16946static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16947 PyObject *resultobj;
16948 int arg1 = (int) wxDateTime::Inv_Year ;
16949 int arg2 = (int) wxDateTime::Gregorian ;
16950 bool result;
16951 PyObject * obj0 = 0 ;
16952 PyObject * obj1 = 0 ;
16953 char *kwnames[] = {
16954 (char *) "year",(char *) "cal", NULL
16955 };
16956
16957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16958 if (obj0) {
16959 arg1 = (int) SWIG_AsInt(obj0);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 if (obj1) {
16963 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 }
16966 {
16967 PyThreadState* __tstate = wxPyBeginAllowThreads();
16968 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16969
16970 wxPyEndAllowThreads(__tstate);
16971 if (PyErr_Occurred()) SWIG_fail;
16972 }
16973 {
16974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16975 }
16976 return resultobj;
16977 fail:
16978 return NULL;
16979}
16980
16981
16982static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16983 PyObject *resultobj;
16984 int arg1 = (int) wxDateTime::Inv_Year ;
16985 int result;
16986 PyObject * obj0 = 0 ;
16987 char *kwnames[] = {
16988 (char *) "year", NULL
16989 };
16990
16991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16992 if (obj0) {
16993 arg1 = (int) SWIG_AsInt(obj0);
16994 if (PyErr_Occurred()) SWIG_fail;
16995 }
16996 {
16997 PyThreadState* __tstate = wxPyBeginAllowThreads();
16998 result = (int)wxDateTime::GetCentury(arg1);
16999
17000 wxPyEndAllowThreads(__tstate);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 }
17003 resultobj = SWIG_FromInt((int)result);
17004 return resultobj;
17005 fail:
17006 return NULL;
17007}
17008
17009
17010static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17011 PyObject *resultobj;
17012 int arg1 ;
17013 int arg2 = (int) wxDateTime::Gregorian ;
17014 int result;
17015 PyObject * obj0 = 0 ;
17016 PyObject * obj1 = 0 ;
17017 char *kwnames[] = {
17018 (char *) "year",(char *) "cal", NULL
17019 };
17020
17021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17022 arg1 = (int) SWIG_AsInt(obj0);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 if (obj1) {
17025 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17026 if (PyErr_Occurred()) SWIG_fail;
17027 }
17028 {
17029 PyThreadState* __tstate = wxPyBeginAllowThreads();
17030 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17031
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 resultobj = SWIG_FromInt((int)result);
17036 return resultobj;
17037 fail:
17038 return NULL;
17039}
17040
17041
17042static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17043 PyObject *resultobj;
17044 int arg1 ;
17045 int arg2 = (int) wxDateTime::Inv_Year ;
17046 int arg3 = (int) wxDateTime::Gregorian ;
17047 int result;
17048 PyObject * obj0 = 0 ;
17049 PyObject * obj1 = 0 ;
17050 PyObject * obj2 = 0 ;
17051 char *kwnames[] = {
17052 (char *) "month",(char *) "year",(char *) "cal", NULL
17053 };
17054
17055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17056 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17057 if (PyErr_Occurred()) SWIG_fail;
17058 if (obj1) {
17059 arg2 = (int) SWIG_AsInt(obj1);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 }
17062 if (obj2) {
17063 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 {
17067 PyThreadState* __tstate = wxPyBeginAllowThreads();
17068 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17069
17070 wxPyEndAllowThreads(__tstate);
17071 if (PyErr_Occurred()) SWIG_fail;
17072 }
17073 resultobj = SWIG_FromInt((int)result);
17074 return resultobj;
17075 fail:
17076 return NULL;
17077}
17078
17079
17080static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
17081 PyObject *resultobj;
17082 int arg1 ;
17083 int arg2 = (int) wxDateTime::Name_Full ;
17084 wxString result;
17085 PyObject * obj0 = 0 ;
17086 PyObject * obj1 = 0 ;
17087 char *kwnames[] = {
17088 (char *) "month",(char *) "flags", NULL
17089 };
17090
17091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17092 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17093 if (PyErr_Occurred()) SWIG_fail;
17094 if (obj1) {
17095 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 {
17099 PyThreadState* __tstate = wxPyBeginAllowThreads();
17100 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17101
17102 wxPyEndAllowThreads(__tstate);
17103 if (PyErr_Occurred()) SWIG_fail;
17104 }
17105 {
17106#if wxUSE_UNICODE
17107 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17108#else
17109 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17110#endif
17111 }
17112 return resultobj;
17113 fail:
17114 return NULL;
17115}
17116
17117
17118static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17119 PyObject *resultobj;
17120 int arg1 ;
17121 int arg2 = (int) wxDateTime::Name_Full ;
17122 wxString result;
17123 PyObject * obj0 = 0 ;
17124 PyObject * obj1 = 0 ;
17125 char *kwnames[] = {
17126 (char *) "weekday",(char *) "flags", NULL
17127 };
17128
17129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17130 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17131 if (PyErr_Occurred()) SWIG_fail;
17132 if (obj1) {
17133 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17134 if (PyErr_Occurred()) SWIG_fail;
17135 }
17136 {
17137 PyThreadState* __tstate = wxPyBeginAllowThreads();
17138 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17139
17140 wxPyEndAllowThreads(__tstate);
17141 if (PyErr_Occurred()) SWIG_fail;
17142 }
17143 {
17144#if wxUSE_UNICODE
17145 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17146#else
17147 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17148#endif
17149 }
17150 return resultobj;
17151 fail:
17152 return NULL;
17153}
17154
17155
17156static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17157 PyObject *resultobj;
17158 wxString *arg1 = (wxString *) 0 ;
17159 wxString *arg2 = (wxString *) 0 ;
17160 bool temp1 = False ;
17161 bool temp2 = False ;
17162 PyObject * obj0 = 0 ;
17163 PyObject * obj1 = 0 ;
17164 char *kwnames[] = {
17165 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17166 };
17167
17168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17169 {
17170 arg1 = wxString_in_helper(obj0);
17171 if (arg1 == NULL) SWIG_fail;
17172 temp1 = True;
17173 }
17174 {
17175 arg2 = wxString_in_helper(obj1);
17176 if (arg2 == NULL) SWIG_fail;
17177 temp2 = True;
17178 }
17179 {
17180 PyThreadState* __tstate = wxPyBeginAllowThreads();
17181 wxDateTime::GetAmPmStrings(arg1,arg2);
17182
17183 wxPyEndAllowThreads(__tstate);
17184 if (PyErr_Occurred()) SWIG_fail;
17185 }
17186 Py_INCREF(Py_None); resultobj = Py_None;
17187 {
17188 if (temp1)
17189 delete arg1;
17190 }
17191 {
17192 if (temp2)
17193 delete arg2;
17194 }
17195 return resultobj;
17196 fail:
17197 {
17198 if (temp1)
17199 delete arg1;
17200 }
17201 {
17202 if (temp2)
17203 delete arg2;
17204 }
17205 return NULL;
17206}
17207
17208
17209static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17210 PyObject *resultobj;
17211 int arg1 = (int) wxDateTime::Inv_Year ;
17212 int arg2 = (int) wxDateTime::Country_Default ;
17213 bool result;
17214 PyObject * obj0 = 0 ;
17215 PyObject * obj1 = 0 ;
17216 char *kwnames[] = {
17217 (char *) "year",(char *) "country", NULL
17218 };
17219
17220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17221 if (obj0) {
17222 arg1 = (int) SWIG_AsInt(obj0);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 if (obj1) {
17226 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 {
17230 PyThreadState* __tstate = wxPyBeginAllowThreads();
17231 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17232
17233 wxPyEndAllowThreads(__tstate);
17234 if (PyErr_Occurred()) SWIG_fail;
17235 }
17236 {
17237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17238 }
17239 return resultobj;
17240 fail:
17241 return NULL;
17242}
17243
17244
17245static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17246 PyObject *resultobj;
17247 int arg1 = (int) wxDateTime::Inv_Year ;
17248 int arg2 = (int) wxDateTime::Country_Default ;
17249 wxDateTime result;
17250 PyObject * obj0 = 0 ;
17251 PyObject * obj1 = 0 ;
17252 char *kwnames[] = {
17253 (char *) "year",(char *) "country", NULL
17254 };
17255
17256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17257 if (obj0) {
17258 arg1 = (int) SWIG_AsInt(obj0);
17259 if (PyErr_Occurred()) SWIG_fail;
17260 }
17261 if (obj1) {
17262 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 }
17265 {
17266 PyThreadState* __tstate = wxPyBeginAllowThreads();
17267 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17268
17269 wxPyEndAllowThreads(__tstate);
17270 if (PyErr_Occurred()) SWIG_fail;
17271 }
17272 {
17273 wxDateTime * resultptr;
17274 resultptr = new wxDateTime((wxDateTime &) result);
17275 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17276 }
17277 return resultobj;
17278 fail:
17279 return NULL;
17280}
17281
17282
17283static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17284 PyObject *resultobj;
17285 int arg1 = (int) wxDateTime::Inv_Year ;
17286 int arg2 = (int) wxDateTime::Country_Default ;
17287 wxDateTime result;
17288 PyObject * obj0 = 0 ;
17289 PyObject * obj1 = 0 ;
17290 char *kwnames[] = {
17291 (char *) "year",(char *) "country", NULL
17292 };
17293
17294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17295 if (obj0) {
17296 arg1 = (int) SWIG_AsInt(obj0);
17297 if (PyErr_Occurred()) SWIG_fail;
17298 }
17299 if (obj1) {
17300 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17301 if (PyErr_Occurred()) SWIG_fail;
17302 }
17303 {
17304 PyThreadState* __tstate = wxPyBeginAllowThreads();
17305 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17306
17307 wxPyEndAllowThreads(__tstate);
17308 if (PyErr_Occurred()) SWIG_fail;
17309 }
17310 {
17311 wxDateTime * resultptr;
17312 resultptr = new wxDateTime((wxDateTime &) result);
17313 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17314 }
17315 return resultobj;
17316 fail:
17317 return NULL;
17318}
17319
17320
17321static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17322 PyObject *resultobj;
17323 wxDateTime result;
17324 char *kwnames[] = {
17325 NULL
17326 };
17327
17328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17329 {
17330 PyThreadState* __tstate = wxPyBeginAllowThreads();
17331 result = wxDateTime::Now();
17332
17333 wxPyEndAllowThreads(__tstate);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
17336 {
17337 wxDateTime * resultptr;
17338 resultptr = new wxDateTime((wxDateTime &) result);
17339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17340 }
17341 return resultobj;
17342 fail:
17343 return NULL;
17344}
17345
17346
17347static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17348 PyObject *resultobj;
17349 wxDateTime result;
17350 char *kwnames[] = {
17351 NULL
17352 };
17353
17354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17355 {
17356 PyThreadState* __tstate = wxPyBeginAllowThreads();
17357 result = wxDateTime::UNow();
17358
17359 wxPyEndAllowThreads(__tstate);
17360 if (PyErr_Occurred()) SWIG_fail;
17361 }
17362 {
17363 wxDateTime * resultptr;
17364 resultptr = new wxDateTime((wxDateTime &) result);
17365 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17366 }
17367 return resultobj;
17368 fail:
17369 return NULL;
17370}
17371
17372
17373static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17374 PyObject *resultobj;
17375 wxDateTime result;
17376 char *kwnames[] = {
17377 NULL
17378 };
17379
17380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17381 {
17382 PyThreadState* __tstate = wxPyBeginAllowThreads();
17383 result = wxDateTime::Today();
17384
17385 wxPyEndAllowThreads(__tstate);
17386 if (PyErr_Occurred()) SWIG_fail;
17387 }
17388 {
17389 wxDateTime * resultptr;
17390 resultptr = new wxDateTime((wxDateTime &) result);
17391 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17392 }
17393 return resultobj;
17394 fail:
17395 return NULL;
17396}
17397
17398
17399static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17400 PyObject *resultobj;
17401 wxDateTime *result;
17402 char *kwnames[] = {
17403 NULL
17404 };
17405
17406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17407 {
17408 PyThreadState* __tstate = wxPyBeginAllowThreads();
17409 result = (wxDateTime *)new wxDateTime();
17410
17411 wxPyEndAllowThreads(__tstate);
17412 if (PyErr_Occurred()) SWIG_fail;
17413 }
17414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17415 return resultobj;
17416 fail:
17417 return NULL;
17418}
17419
17420
17421static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17422 PyObject *resultobj;
17423 time_t arg1 ;
17424 wxDateTime *result;
17425 PyObject * obj0 = 0 ;
17426 char *kwnames[] = {
17427 (char *) "timet", NULL
17428 };
17429
17430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17431 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17432 if (PyErr_Occurred()) SWIG_fail;
17433 {
17434 PyThreadState* __tstate = wxPyBeginAllowThreads();
17435 result = (wxDateTime *)new wxDateTime(arg1);
17436
17437 wxPyEndAllowThreads(__tstate);
17438 if (PyErr_Occurred()) SWIG_fail;
17439 }
17440 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17441 return resultobj;
17442 fail:
17443 return NULL;
17444}
17445
17446
17447static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17448 PyObject *resultobj;
17449 double arg1 ;
17450 wxDateTime *result;
17451 PyObject * obj0 = 0 ;
17452 char *kwnames[] = {
17453 (char *) "jdn", NULL
17454 };
17455
17456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17457 arg1 = (double) SWIG_AsDouble(obj0);
17458 if (PyErr_Occurred()) SWIG_fail;
17459 {
17460 PyThreadState* __tstate = wxPyBeginAllowThreads();
17461 result = (wxDateTime *)new wxDateTime(arg1);
17462
17463 wxPyEndAllowThreads(__tstate);
17464 if (PyErr_Occurred()) SWIG_fail;
17465 }
17466 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17467 return resultobj;
17468 fail:
17469 return NULL;
17470}
17471
17472
17473static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17474 PyObject *resultobj;
17475 int arg1 ;
17476 int arg2 = (int) 0 ;
17477 int arg3 = (int) 0 ;
17478 int arg4 = (int) 0 ;
17479 wxDateTime *result;
17480 PyObject * obj0 = 0 ;
17481 PyObject * obj1 = 0 ;
17482 PyObject * obj2 = 0 ;
17483 PyObject * obj3 = 0 ;
17484 char *kwnames[] = {
17485 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17486 };
17487
17488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17489 arg1 = (int) SWIG_AsInt(obj0);
17490 if (PyErr_Occurred()) SWIG_fail;
17491 if (obj1) {
17492 arg2 = (int) SWIG_AsInt(obj1);
17493 if (PyErr_Occurred()) SWIG_fail;
17494 }
17495 if (obj2) {
17496 arg3 = (int) SWIG_AsInt(obj2);
17497 if (PyErr_Occurred()) SWIG_fail;
17498 }
17499 if (obj3) {
17500 arg4 = (int) SWIG_AsInt(obj3);
17501 if (PyErr_Occurred()) SWIG_fail;
17502 }
17503 {
17504 PyThreadState* __tstate = wxPyBeginAllowThreads();
17505 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17506
17507 wxPyEndAllowThreads(__tstate);
17508 if (PyErr_Occurred()) SWIG_fail;
17509 }
17510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17511 return resultobj;
17512 fail:
17513 return NULL;
17514}
17515
17516
17517static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17518 PyObject *resultobj;
17519 int arg1 ;
17520 int arg2 = (int) wxDateTime::Inv_Month ;
17521 int arg3 = (int) wxDateTime::Inv_Year ;
17522 int arg4 = (int) 0 ;
17523 int arg5 = (int) 0 ;
17524 int arg6 = (int) 0 ;
17525 int arg7 = (int) 0 ;
17526 wxDateTime *result;
17527 PyObject * obj0 = 0 ;
17528 PyObject * obj1 = 0 ;
17529 PyObject * obj2 = 0 ;
17530 PyObject * obj3 = 0 ;
17531 PyObject * obj4 = 0 ;
17532 PyObject * obj5 = 0 ;
17533 PyObject * obj6 = 0 ;
17534 char *kwnames[] = {
17535 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17536 };
17537
17538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17539 arg1 = (int) SWIG_AsInt(obj0);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 if (obj1) {
17542 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17543 if (PyErr_Occurred()) SWIG_fail;
17544 }
17545 if (obj2) {
17546 arg3 = (int) SWIG_AsInt(obj2);
17547 if (PyErr_Occurred()) SWIG_fail;
17548 }
17549 if (obj3) {
17550 arg4 = (int) SWIG_AsInt(obj3);
17551 if (PyErr_Occurred()) SWIG_fail;
17552 }
17553 if (obj4) {
17554 arg5 = (int) SWIG_AsInt(obj4);
17555 if (PyErr_Occurred()) SWIG_fail;
17556 }
17557 if (obj5) {
17558 arg6 = (int) SWIG_AsInt(obj5);
17559 if (PyErr_Occurred()) SWIG_fail;
17560 }
17561 if (obj6) {
17562 arg7 = (int) SWIG_AsInt(obj6);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 {
17566 PyThreadState* __tstate = wxPyBeginAllowThreads();
17567 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17568
17569 wxPyEndAllowThreads(__tstate);
17570 if (PyErr_Occurred()) SWIG_fail;
17571 }
17572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17573 return resultobj;
17574 fail:
17575 return NULL;
17576}
17577
17578
17579static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17580 PyObject *resultobj;
17581 wxDateTime *arg1 = (wxDateTime *) 0 ;
17582 PyObject * obj0 = 0 ;
17583 char *kwnames[] = {
17584 (char *) "self", NULL
17585 };
17586
17587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17590 {
17591 PyThreadState* __tstate = wxPyBeginAllowThreads();
17592 delete arg1;
17593
17594 wxPyEndAllowThreads(__tstate);
17595 if (PyErr_Occurred()) SWIG_fail;
17596 }
17597 Py_INCREF(Py_None); resultobj = Py_None;
17598 return resultobj;
17599 fail:
17600 return NULL;
17601}
17602
17603
17604static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17605 PyObject *resultobj;
17606 wxDateTime *arg1 = (wxDateTime *) 0 ;
17607 wxDateTime *result;
17608 PyObject * obj0 = 0 ;
17609 char *kwnames[] = {
17610 (char *) "self", NULL
17611 };
17612
17613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17616 {
17617 PyThreadState* __tstate = wxPyBeginAllowThreads();
17618 {
17619 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17620 result = (wxDateTime *) &_result_ref;
17621 }
17622
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17627 return resultobj;
17628 fail:
17629 return NULL;
17630}
17631
17632
17633static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj;
17635 wxDateTime *arg1 = (wxDateTime *) 0 ;
17636 time_t arg2 ;
17637 wxDateTime *result;
17638 PyObject * obj0 = 0 ;
17639 PyObject * obj1 = 0 ;
17640 char *kwnames[] = {
17641 (char *) "self",(char *) "timet", NULL
17642 };
17643
17644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17647 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17648 if (PyErr_Occurred()) SWIG_fail;
17649 {
17650 PyThreadState* __tstate = wxPyBeginAllowThreads();
17651 {
17652 wxDateTime &_result_ref = (arg1)->Set(arg2);
17653 result = (wxDateTime *) &_result_ref;
17654 }
17655
17656 wxPyEndAllowThreads(__tstate);
17657 if (PyErr_Occurred()) SWIG_fail;
17658 }
17659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17660 return resultobj;
17661 fail:
17662 return NULL;
17663}
17664
17665
17666static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17667 PyObject *resultobj;
17668 wxDateTime *arg1 = (wxDateTime *) 0 ;
17669 double arg2 ;
17670 wxDateTime *result;
17671 PyObject * obj0 = 0 ;
17672 PyObject * obj1 = 0 ;
17673 char *kwnames[] = {
17674 (char *) "self",(char *) "jdn", NULL
17675 };
17676
17677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17680 arg2 = (double) SWIG_AsDouble(obj1);
17681 if (PyErr_Occurred()) SWIG_fail;
17682 {
17683 PyThreadState* __tstate = wxPyBeginAllowThreads();
17684 {
17685 wxDateTime &_result_ref = (arg1)->Set(arg2);
17686 result = (wxDateTime *) &_result_ref;
17687 }
17688
17689 wxPyEndAllowThreads(__tstate);
17690 if (PyErr_Occurred()) SWIG_fail;
17691 }
17692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17693 return resultobj;
17694 fail:
17695 return NULL;
17696}
17697
17698
17699static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17700 PyObject *resultobj;
17701 wxDateTime *arg1 = (wxDateTime *) 0 ;
17702 int arg2 ;
17703 int arg3 = (int) 0 ;
17704 int arg4 = (int) 0 ;
17705 int arg5 = (int) 0 ;
17706 wxDateTime *result;
17707 PyObject * obj0 = 0 ;
17708 PyObject * obj1 = 0 ;
17709 PyObject * obj2 = 0 ;
17710 PyObject * obj3 = 0 ;
17711 PyObject * obj4 = 0 ;
17712 char *kwnames[] = {
17713 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17714 };
17715
17716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17719 arg2 = (int) SWIG_AsInt(obj1);
17720 if (PyErr_Occurred()) SWIG_fail;
17721 if (obj2) {
17722 arg3 = (int) SWIG_AsInt(obj2);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
17725 if (obj3) {
17726 arg4 = (int) SWIG_AsInt(obj3);
17727 if (PyErr_Occurred()) SWIG_fail;
17728 }
17729 if (obj4) {
17730 arg5 = (int) SWIG_AsInt(obj4);
17731 if (PyErr_Occurred()) SWIG_fail;
17732 }
17733 {
17734 PyThreadState* __tstate = wxPyBeginAllowThreads();
17735 {
17736 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17737 result = (wxDateTime *) &_result_ref;
17738 }
17739
17740 wxPyEndAllowThreads(__tstate);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 }
17743 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17744 return resultobj;
17745 fail:
17746 return NULL;
17747}
17748
17749
17750static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17751 PyObject *resultobj;
17752 wxDateTime *arg1 = (wxDateTime *) 0 ;
17753 int arg2 ;
17754 int arg3 = (int) wxDateTime::Inv_Month ;
17755 int arg4 = (int) wxDateTime::Inv_Year ;
17756 int arg5 = (int) 0 ;
17757 int arg6 = (int) 0 ;
17758 int arg7 = (int) 0 ;
17759 int arg8 = (int) 0 ;
17760 wxDateTime *result;
17761 PyObject * obj0 = 0 ;
17762 PyObject * obj1 = 0 ;
17763 PyObject * obj2 = 0 ;
17764 PyObject * obj3 = 0 ;
17765 PyObject * obj4 = 0 ;
17766 PyObject * obj5 = 0 ;
17767 PyObject * obj6 = 0 ;
17768 PyObject * obj7 = 0 ;
17769 char *kwnames[] = {
17770 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17771 };
17772
17773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17776 arg2 = (int) SWIG_AsInt(obj1);
17777 if (PyErr_Occurred()) SWIG_fail;
17778 if (obj2) {
17779 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
17782 if (obj3) {
17783 arg4 = (int) SWIG_AsInt(obj3);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 if (obj4) {
17787 arg5 = (int) SWIG_AsInt(obj4);
17788 if (PyErr_Occurred()) SWIG_fail;
17789 }
17790 if (obj5) {
17791 arg6 = (int) SWIG_AsInt(obj5);
17792 if (PyErr_Occurred()) SWIG_fail;
17793 }
17794 if (obj6) {
17795 arg7 = (int) SWIG_AsInt(obj6);
17796 if (PyErr_Occurred()) SWIG_fail;
17797 }
17798 if (obj7) {
17799 arg8 = (int) SWIG_AsInt(obj7);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 }
17802 {
17803 PyThreadState* __tstate = wxPyBeginAllowThreads();
17804 {
17805 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17806 result = (wxDateTime *) &_result_ref;
17807 }
17808
17809 wxPyEndAllowThreads(__tstate);
17810 if (PyErr_Occurred()) SWIG_fail;
17811 }
17812 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17813 return resultobj;
17814 fail:
17815 return NULL;
17816}
17817
17818
17819static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17820 PyObject *resultobj;
17821 wxDateTime *arg1 = (wxDateTime *) 0 ;
17822 wxDateTime *result;
17823 PyObject * obj0 = 0 ;
17824 char *kwnames[] = {
17825 (char *) "self", NULL
17826 };
17827
17828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17831 {
17832 PyThreadState* __tstate = wxPyBeginAllowThreads();
17833 {
17834 wxDateTime &_result_ref = (arg1)->ResetTime();
17835 result = (wxDateTime *) &_result_ref;
17836 }
17837
17838 wxPyEndAllowThreads(__tstate);
17839 if (PyErr_Occurred()) SWIG_fail;
17840 }
17841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17842 return resultobj;
17843 fail:
17844 return NULL;
17845}
17846
17847
17848static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17849 PyObject *resultobj;
17850 wxDateTime *arg1 = (wxDateTime *) 0 ;
17851 int arg2 ;
17852 wxDateTime *result;
17853 PyObject * obj0 = 0 ;
17854 PyObject * obj1 = 0 ;
17855 char *kwnames[] = {
17856 (char *) "self",(char *) "year", NULL
17857 };
17858
17859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17862 arg2 = (int) SWIG_AsInt(obj1);
17863 if (PyErr_Occurred()) SWIG_fail;
17864 {
17865 PyThreadState* __tstate = wxPyBeginAllowThreads();
17866 {
17867 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17868 result = (wxDateTime *) &_result_ref;
17869 }
17870
17871 wxPyEndAllowThreads(__tstate);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17875 return resultobj;
17876 fail:
17877 return NULL;
17878}
17879
17880
17881static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17882 PyObject *resultobj;
17883 wxDateTime *arg1 = (wxDateTime *) 0 ;
17884 int arg2 ;
17885 wxDateTime *result;
17886 PyObject * obj0 = 0 ;
17887 PyObject * obj1 = 0 ;
17888 char *kwnames[] = {
17889 (char *) "self",(char *) "month", NULL
17890 };
17891
17892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17895 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17896 if (PyErr_Occurred()) SWIG_fail;
17897 {
17898 PyThreadState* __tstate = wxPyBeginAllowThreads();
17899 {
17900 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17901 result = (wxDateTime *) &_result_ref;
17902 }
17903
17904 wxPyEndAllowThreads(__tstate);
17905 if (PyErr_Occurred()) SWIG_fail;
17906 }
17907 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17908 return resultobj;
17909 fail:
17910 return NULL;
17911}
17912
17913
17914static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17915 PyObject *resultobj;
17916 wxDateTime *arg1 = (wxDateTime *) 0 ;
17917 int arg2 ;
17918 wxDateTime *result;
17919 PyObject * obj0 = 0 ;
17920 PyObject * obj1 = 0 ;
17921 char *kwnames[] = {
17922 (char *) "self",(char *) "day", NULL
17923 };
17924
17925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17928 arg2 = (int) SWIG_AsInt(obj1);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 {
17931 PyThreadState* __tstate = wxPyBeginAllowThreads();
17932 {
17933 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17934 result = (wxDateTime *) &_result_ref;
17935 }
17936
17937 wxPyEndAllowThreads(__tstate);
17938 if (PyErr_Occurred()) SWIG_fail;
17939 }
17940 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17941 return resultobj;
17942 fail:
17943 return NULL;
17944}
17945
17946
17947static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17948 PyObject *resultobj;
17949 wxDateTime *arg1 = (wxDateTime *) 0 ;
17950 int arg2 ;
17951 wxDateTime *result;
17952 PyObject * obj0 = 0 ;
17953 PyObject * obj1 = 0 ;
17954 char *kwnames[] = {
17955 (char *) "self",(char *) "hour", NULL
17956 };
17957
17958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17961 arg2 = (int) SWIG_AsInt(obj1);
17962 if (PyErr_Occurred()) SWIG_fail;
17963 {
17964 PyThreadState* __tstate = wxPyBeginAllowThreads();
17965 {
17966 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17967 result = (wxDateTime *) &_result_ref;
17968 }
17969
17970 wxPyEndAllowThreads(__tstate);
17971 if (PyErr_Occurred()) SWIG_fail;
17972 }
17973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17974 return resultobj;
17975 fail:
17976 return NULL;
17977}
17978
17979
17980static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17981 PyObject *resultobj;
17982 wxDateTime *arg1 = (wxDateTime *) 0 ;
17983 int arg2 ;
17984 wxDateTime *result;
17985 PyObject * obj0 = 0 ;
17986 PyObject * obj1 = 0 ;
17987 char *kwnames[] = {
17988 (char *) "self",(char *) "minute", NULL
17989 };
17990
17991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17994 arg2 = (int) SWIG_AsInt(obj1);
17995 if (PyErr_Occurred()) SWIG_fail;
17996 {
17997 PyThreadState* __tstate = wxPyBeginAllowThreads();
17998 {
17999 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18000 result = (wxDateTime *) &_result_ref;
18001 }
18002
18003 wxPyEndAllowThreads(__tstate);
18004 if (PyErr_Occurred()) SWIG_fail;
18005 }
18006 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18007 return resultobj;
18008 fail:
18009 return NULL;
18010}
18011
18012
18013static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18014 PyObject *resultobj;
18015 wxDateTime *arg1 = (wxDateTime *) 0 ;
18016 int arg2 ;
18017 wxDateTime *result;
18018 PyObject * obj0 = 0 ;
18019 PyObject * obj1 = 0 ;
18020 char *kwnames[] = {
18021 (char *) "self",(char *) "second", NULL
18022 };
18023
18024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18027 arg2 = (int) SWIG_AsInt(obj1);
18028 if (PyErr_Occurred()) SWIG_fail;
18029 {
18030 PyThreadState* __tstate = wxPyBeginAllowThreads();
18031 {
18032 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18033 result = (wxDateTime *) &_result_ref;
18034 }
18035
18036 wxPyEndAllowThreads(__tstate);
18037 if (PyErr_Occurred()) SWIG_fail;
18038 }
18039 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18040 return resultobj;
18041 fail:
18042 return NULL;
18043}
18044
18045
18046static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18047 PyObject *resultobj;
18048 wxDateTime *arg1 = (wxDateTime *) 0 ;
18049 int arg2 ;
18050 wxDateTime *result;
18051 PyObject * obj0 = 0 ;
18052 PyObject * obj1 = 0 ;
18053 char *kwnames[] = {
18054 (char *) "self",(char *) "millisecond", NULL
18055 };
18056
18057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18060 arg2 = (int) SWIG_AsInt(obj1);
18061 if (PyErr_Occurred()) SWIG_fail;
18062 {
18063 PyThreadState* __tstate = wxPyBeginAllowThreads();
18064 {
18065 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18066 result = (wxDateTime *) &_result_ref;
18067 }
18068
18069 wxPyEndAllowThreads(__tstate);
18070 if (PyErr_Occurred()) SWIG_fail;
18071 }
18072 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18073 return resultobj;
18074 fail:
18075 return NULL;
18076}
18077
18078
18079static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18080 PyObject *resultobj;
18081 wxDateTime *arg1 = (wxDateTime *) 0 ;
18082 int arg2 ;
18083 int arg3 = (int) wxDateTime::Monday_First ;
18084 wxDateTime *result;
18085 PyObject * obj0 = 0 ;
18086 PyObject * obj1 = 0 ;
18087 PyObject * obj2 = 0 ;
18088 char *kwnames[] = {
18089 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18090 };
18091
18092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18095 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18096 if (PyErr_Occurred()) SWIG_fail;
18097 if (obj2) {
18098 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18099 if (PyErr_Occurred()) SWIG_fail;
18100 }
18101 {
18102 PyThreadState* __tstate = wxPyBeginAllowThreads();
18103 {
18104 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18105 result = (wxDateTime *) &_result_ref;
18106 }
18107
18108 wxPyEndAllowThreads(__tstate);
18109 if (PyErr_Occurred()) SWIG_fail;
18110 }
18111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18112 return resultobj;
18113 fail:
18114 return NULL;
18115}
18116
18117
18118static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18119 PyObject *resultobj;
18120 wxDateTime *arg1 = (wxDateTime *) 0 ;
18121 int arg2 ;
18122 int arg3 = (int) wxDateTime::Monday_First ;
18123 wxDateTime result;
18124 PyObject * obj0 = 0 ;
18125 PyObject * obj1 = 0 ;
18126 PyObject * obj2 = 0 ;
18127 char *kwnames[] = {
18128 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18129 };
18130
18131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18134 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18135 if (PyErr_Occurred()) SWIG_fail;
18136 if (obj2) {
18137 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18138 if (PyErr_Occurred()) SWIG_fail;
18139 }
18140 {
18141 PyThreadState* __tstate = wxPyBeginAllowThreads();
18142 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18143
18144 wxPyEndAllowThreads(__tstate);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 {
18148 wxDateTime * resultptr;
18149 resultptr = new wxDateTime((wxDateTime &) result);
18150 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18151 }
18152 return resultobj;
18153 fail:
18154 return NULL;
18155}
18156
18157
18158static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18159 PyObject *resultobj;
18160 wxDateTime *arg1 = (wxDateTime *) 0 ;
18161 int arg2 ;
18162 wxDateTime *result;
18163 PyObject * obj0 = 0 ;
18164 PyObject * obj1 = 0 ;
18165 char *kwnames[] = {
18166 (char *) "self",(char *) "weekday", NULL
18167 };
18168
18169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18172 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18173 if (PyErr_Occurred()) SWIG_fail;
18174 {
18175 PyThreadState* __tstate = wxPyBeginAllowThreads();
18176 {
18177 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18178 result = (wxDateTime *) &_result_ref;
18179 }
18180
18181 wxPyEndAllowThreads(__tstate);
18182 if (PyErr_Occurred()) SWIG_fail;
18183 }
18184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18185 return resultobj;
18186 fail:
18187 return NULL;
18188}
18189
18190
18191static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18192 PyObject *resultobj;
18193 wxDateTime *arg1 = (wxDateTime *) 0 ;
18194 int arg2 ;
18195 wxDateTime result;
18196 PyObject * obj0 = 0 ;
18197 PyObject * obj1 = 0 ;
18198 char *kwnames[] = {
18199 (char *) "self",(char *) "weekday", NULL
18200 };
18201
18202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18205 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 {
18208 PyThreadState* __tstate = wxPyBeginAllowThreads();
18209 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18210
18211 wxPyEndAllowThreads(__tstate);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 {
18215 wxDateTime * resultptr;
18216 resultptr = new wxDateTime((wxDateTime &) result);
18217 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18218 }
18219 return resultobj;
18220 fail:
18221 return NULL;
18222}
18223
18224
18225static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18226 PyObject *resultobj;
18227 wxDateTime *arg1 = (wxDateTime *) 0 ;
18228 int arg2 ;
18229 wxDateTime *result;
18230 PyObject * obj0 = 0 ;
18231 PyObject * obj1 = 0 ;
18232 char *kwnames[] = {
18233 (char *) "self",(char *) "weekday", NULL
18234 };
18235
18236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18239 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18240 if (PyErr_Occurred()) SWIG_fail;
18241 {
18242 PyThreadState* __tstate = wxPyBeginAllowThreads();
18243 {
18244 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18245 result = (wxDateTime *) &_result_ref;
18246 }
18247
18248 wxPyEndAllowThreads(__tstate);
18249 if (PyErr_Occurred()) SWIG_fail;
18250 }
18251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18252 return resultobj;
18253 fail:
18254 return NULL;
18255}
18256
18257
18258static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18259 PyObject *resultobj;
18260 wxDateTime *arg1 = (wxDateTime *) 0 ;
18261 int arg2 ;
18262 wxDateTime result;
18263 PyObject * obj0 = 0 ;
18264 PyObject * obj1 = 0 ;
18265 char *kwnames[] = {
18266 (char *) "self",(char *) "weekday", NULL
18267 };
18268
18269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18272 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18273 if (PyErr_Occurred()) SWIG_fail;
18274 {
18275 PyThreadState* __tstate = wxPyBeginAllowThreads();
18276 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18277
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 {
18282 wxDateTime * resultptr;
18283 resultptr = new wxDateTime((wxDateTime &) result);
18284 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18285 }
18286 return resultobj;
18287 fail:
18288 return NULL;
18289}
18290
18291
18292static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18293 PyObject *resultobj;
18294 wxDateTime *arg1 = (wxDateTime *) 0 ;
18295 int arg2 ;
18296 int arg3 = (int) 1 ;
18297 int arg4 = (int) wxDateTime::Inv_Month ;
18298 int arg5 = (int) wxDateTime::Inv_Year ;
18299 bool result;
18300 PyObject * obj0 = 0 ;
18301 PyObject * obj1 = 0 ;
18302 PyObject * obj2 = 0 ;
18303 PyObject * obj3 = 0 ;
18304 PyObject * obj4 = 0 ;
18305 char *kwnames[] = {
18306 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18307 };
18308
18309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18312 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18313 if (PyErr_Occurred()) SWIG_fail;
18314 if (obj2) {
18315 arg3 = (int) SWIG_AsInt(obj2);
18316 if (PyErr_Occurred()) SWIG_fail;
18317 }
18318 if (obj3) {
18319 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18320 if (PyErr_Occurred()) SWIG_fail;
18321 }
18322 if (obj4) {
18323 arg5 = (int) SWIG_AsInt(obj4);
18324 if (PyErr_Occurred()) SWIG_fail;
18325 }
18326 {
18327 PyThreadState* __tstate = wxPyBeginAllowThreads();
18328 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18329
18330 wxPyEndAllowThreads(__tstate);
18331 if (PyErr_Occurred()) SWIG_fail;
18332 }
18333 {
18334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18335 }
18336 return resultobj;
18337 fail:
18338 return NULL;
18339}
18340
18341
18342static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18343 PyObject *resultobj;
18344 wxDateTime *arg1 = (wxDateTime *) 0 ;
18345 int arg2 ;
18346 int arg3 = (int) wxDateTime::Inv_Month ;
18347 int arg4 = (int) wxDateTime::Inv_Year ;
18348 bool result;
18349 PyObject * obj0 = 0 ;
18350 PyObject * obj1 = 0 ;
18351 PyObject * obj2 = 0 ;
18352 PyObject * obj3 = 0 ;
18353 char *kwnames[] = {
18354 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18355 };
18356
18357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18360 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18361 if (PyErr_Occurred()) SWIG_fail;
18362 if (obj2) {
18363 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 if (obj3) {
18367 arg4 = (int) SWIG_AsInt(obj3);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 }
18370 {
18371 PyThreadState* __tstate = wxPyBeginAllowThreads();
18372 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18373
18374 wxPyEndAllowThreads(__tstate);
18375 if (PyErr_Occurred()) SWIG_fail;
18376 }
18377 {
18378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18379 }
18380 return resultobj;
18381 fail:
18382 return NULL;
18383}
18384
18385
18386static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18387 PyObject *resultobj;
18388 wxDateTime *arg1 = (wxDateTime *) 0 ;
18389 int arg2 ;
18390 int arg3 = (int) wxDateTime::Inv_Month ;
18391 int arg4 = (int) wxDateTime::Inv_Year ;
18392 wxDateTime result;
18393 PyObject * obj0 = 0 ;
18394 PyObject * obj1 = 0 ;
18395 PyObject * obj2 = 0 ;
18396 PyObject * obj3 = 0 ;
18397 char *kwnames[] = {
18398 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18399 };
18400
18401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18404 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 if (obj2) {
18407 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 if (obj3) {
18411 arg4 = (int) SWIG_AsInt(obj3);
18412 if (PyErr_Occurred()) SWIG_fail;
18413 }
18414 {
18415 PyThreadState* __tstate = wxPyBeginAllowThreads();
18416 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18417
18418 wxPyEndAllowThreads(__tstate);
18419 if (PyErr_Occurred()) SWIG_fail;
18420 }
18421 {
18422 wxDateTime * resultptr;
18423 resultptr = new wxDateTime((wxDateTime &) result);
18424 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18425 }
18426 return resultobj;
18427 fail:
18428 return NULL;
18429}
18430
18431
18432static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18433 PyObject *resultobj;
18434 wxDateTime *arg1 = (wxDateTime *) 0 ;
18435 int arg2 ;
18436 int arg3 = (int) wxDateTime::Mon ;
18437 int arg4 = (int) wxDateTime::Monday_First ;
18438 bool result;
18439 PyObject * obj0 = 0 ;
18440 PyObject * obj1 = 0 ;
18441 PyObject * obj2 = 0 ;
18442 PyObject * obj3 = 0 ;
18443 char *kwnames[] = {
18444 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18445 };
18446
18447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18450 arg2 = (int) SWIG_AsInt(obj1);
18451 if (PyErr_Occurred()) SWIG_fail;
18452 if (obj2) {
18453 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18454 if (PyErr_Occurred()) SWIG_fail;
18455 }
18456 if (obj3) {
18457 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 {
18461 PyThreadState* __tstate = wxPyBeginAllowThreads();
18462 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18463
18464 wxPyEndAllowThreads(__tstate);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 {
18468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18469 }
18470 return resultobj;
18471 fail:
18472 return NULL;
18473}
18474
18475
18476static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18477 PyObject *resultobj;
18478 wxDateTime *arg1 = (wxDateTime *) 0 ;
18479 int arg2 ;
18480 int arg3 = (int) wxDateTime::Mon ;
18481 int arg4 = (int) wxDateTime::Monday_First ;
18482 wxDateTime result;
18483 PyObject * obj0 = 0 ;
18484 PyObject * obj1 = 0 ;
18485 PyObject * obj2 = 0 ;
18486 PyObject * obj3 = 0 ;
18487 char *kwnames[] = {
18488 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18489 };
18490
18491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18494 arg2 = (int) SWIG_AsInt(obj1);
18495 if (PyErr_Occurred()) SWIG_fail;
18496 if (obj2) {
18497 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18498 if (PyErr_Occurred()) SWIG_fail;
18499 }
18500 if (obj3) {
18501 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 {
18505 PyThreadState* __tstate = wxPyBeginAllowThreads();
18506 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18507
18508 wxPyEndAllowThreads(__tstate);
18509 if (PyErr_Occurred()) SWIG_fail;
18510 }
18511 {
18512 wxDateTime * resultptr;
18513 resultptr = new wxDateTime((wxDateTime &) result);
18514 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18515 }
18516 return resultobj;
18517 fail:
18518 return NULL;
18519}
18520
18521
18522static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18523 PyObject *resultobj;
18524 wxDateTime *arg1 = (wxDateTime *) 0 ;
18525 int arg2 = (int) wxDateTime::Inv_Month ;
18526 int arg3 = (int) wxDateTime::Inv_Year ;
18527 wxDateTime *result;
18528 PyObject * obj0 = 0 ;
18529 PyObject * obj1 = 0 ;
18530 PyObject * obj2 = 0 ;
18531 char *kwnames[] = {
18532 (char *) "self",(char *) "month",(char *) "year", NULL
18533 };
18534
18535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18538 if (obj1) {
18539 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18540 if (PyErr_Occurred()) SWIG_fail;
18541 }
18542 if (obj2) {
18543 arg3 = (int) SWIG_AsInt(obj2);
18544 if (PyErr_Occurred()) SWIG_fail;
18545 }
18546 {
18547 PyThreadState* __tstate = wxPyBeginAllowThreads();
18548 {
18549 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18550 result = (wxDateTime *) &_result_ref;
18551 }
18552
18553 wxPyEndAllowThreads(__tstate);
18554 if (PyErr_Occurred()) SWIG_fail;
18555 }
18556 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18557 return resultobj;
18558 fail:
18559 return NULL;
18560}
18561
18562
18563static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18564 PyObject *resultobj;
18565 wxDateTime *arg1 = (wxDateTime *) 0 ;
18566 int arg2 = (int) wxDateTime::Inv_Month ;
18567 int arg3 = (int) wxDateTime::Inv_Year ;
18568 wxDateTime result;
18569 PyObject * obj0 = 0 ;
18570 PyObject * obj1 = 0 ;
18571 PyObject * obj2 = 0 ;
18572 char *kwnames[] = {
18573 (char *) "self",(char *) "month",(char *) "year", NULL
18574 };
18575
18576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18579 if (obj1) {
18580 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18581 if (PyErr_Occurred()) SWIG_fail;
18582 }
18583 if (obj2) {
18584 arg3 = (int) SWIG_AsInt(obj2);
18585 if (PyErr_Occurred()) SWIG_fail;
18586 }
18587 {
18588 PyThreadState* __tstate = wxPyBeginAllowThreads();
18589 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18590
18591 wxPyEndAllowThreads(__tstate);
18592 if (PyErr_Occurred()) SWIG_fail;
18593 }
18594 {
18595 wxDateTime * resultptr;
18596 resultptr = new wxDateTime((wxDateTime &) result);
18597 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18598 }
18599 return resultobj;
18600 fail:
18601 return NULL;
18602}
18603
18604
18605static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18606 PyObject *resultobj;
18607 wxDateTime *arg1 = (wxDateTime *) 0 ;
18608 int arg2 ;
18609 wxDateTime *result;
18610 PyObject * obj0 = 0 ;
18611 PyObject * obj1 = 0 ;
18612 char *kwnames[] = {
18613 (char *) "self",(char *) "yday", NULL
18614 };
18615
18616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18619 arg2 = (int) SWIG_AsInt(obj1);
18620 if (PyErr_Occurred()) SWIG_fail;
18621 {
18622 PyThreadState* __tstate = wxPyBeginAllowThreads();
18623 {
18624 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18625 result = (wxDateTime *) &_result_ref;
18626 }
18627
18628 wxPyEndAllowThreads(__tstate);
18629 if (PyErr_Occurred()) SWIG_fail;
18630 }
18631 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18632 return resultobj;
18633 fail:
18634 return NULL;
18635}
18636
18637
18638static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18639 PyObject *resultobj;
18640 wxDateTime *arg1 = (wxDateTime *) 0 ;
18641 int arg2 ;
18642 wxDateTime result;
18643 PyObject * obj0 = 0 ;
18644 PyObject * obj1 = 0 ;
18645 char *kwnames[] = {
18646 (char *) "self",(char *) "yday", NULL
18647 };
18648
18649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18652 arg2 = (int) SWIG_AsInt(obj1);
18653 if (PyErr_Occurred()) SWIG_fail;
18654 {
18655 PyThreadState* __tstate = wxPyBeginAllowThreads();
18656 result = (arg1)->GetYearDay(arg2);
18657
18658 wxPyEndAllowThreads(__tstate);
18659 if (PyErr_Occurred()) SWIG_fail;
18660 }
18661 {
18662 wxDateTime * resultptr;
18663 resultptr = new wxDateTime((wxDateTime &) result);
18664 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18665 }
18666 return resultobj;
18667 fail:
18668 return NULL;
18669}
18670
18671
18672static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18673 PyObject *resultobj;
18674 wxDateTime *arg1 = (wxDateTime *) 0 ;
18675 double result;
18676 PyObject * obj0 = 0 ;
18677 char *kwnames[] = {
18678 (char *) "self", NULL
18679 };
18680
18681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18684 {
18685 PyThreadState* __tstate = wxPyBeginAllowThreads();
18686 result = (double)(arg1)->GetJulianDayNumber();
18687
18688 wxPyEndAllowThreads(__tstate);
18689 if (PyErr_Occurred()) SWIG_fail;
18690 }
18691 resultobj = SWIG_FromDouble((double)result);
18692 return resultobj;
18693 fail:
18694 return NULL;
18695}
18696
18697
18698static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18699 PyObject *resultobj;
18700 wxDateTime *arg1 = (wxDateTime *) 0 ;
18701 double result;
18702 PyObject * obj0 = 0 ;
18703 char *kwnames[] = {
18704 (char *) "self", NULL
18705 };
18706
18707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18710 {
18711 PyThreadState* __tstate = wxPyBeginAllowThreads();
18712 result = (double)(arg1)->GetJDN();
18713
18714 wxPyEndAllowThreads(__tstate);
18715 if (PyErr_Occurred()) SWIG_fail;
18716 }
18717 resultobj = SWIG_FromDouble((double)result);
18718 return resultobj;
18719 fail:
18720 return NULL;
18721}
18722
18723
18724static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18725 PyObject *resultobj;
18726 wxDateTime *arg1 = (wxDateTime *) 0 ;
18727 double result;
18728 PyObject * obj0 = 0 ;
18729 char *kwnames[] = {
18730 (char *) "self", NULL
18731 };
18732
18733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18736 {
18737 PyThreadState* __tstate = wxPyBeginAllowThreads();
18738 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18739
18740 wxPyEndAllowThreads(__tstate);
18741 if (PyErr_Occurred()) SWIG_fail;
18742 }
18743 resultobj = SWIG_FromDouble((double)result);
18744 return resultobj;
18745 fail:
18746 return NULL;
18747}
18748
18749
18750static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18751 PyObject *resultobj;
18752 wxDateTime *arg1 = (wxDateTime *) 0 ;
18753 double result;
18754 PyObject * obj0 = 0 ;
18755 char *kwnames[] = {
18756 (char *) "self", NULL
18757 };
18758
18759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18762 {
18763 PyThreadState* __tstate = wxPyBeginAllowThreads();
18764 result = (double)(arg1)->GetMJD();
18765
18766 wxPyEndAllowThreads(__tstate);
18767 if (PyErr_Occurred()) SWIG_fail;
18768 }
18769 resultobj = SWIG_FromDouble((double)result);
18770 return resultobj;
18771 fail:
18772 return NULL;
18773}
18774
18775
18776static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18777 PyObject *resultobj;
18778 wxDateTime *arg1 = (wxDateTime *) 0 ;
18779 double result;
18780 PyObject * obj0 = 0 ;
18781 char *kwnames[] = {
18782 (char *) "self", NULL
18783 };
18784
18785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18788 {
18789 PyThreadState* __tstate = wxPyBeginAllowThreads();
18790 result = (double)(arg1)->GetRataDie();
18791
18792 wxPyEndAllowThreads(__tstate);
18793 if (PyErr_Occurred()) SWIG_fail;
18794 }
18795 resultobj = SWIG_FromDouble((double)result);
18796 return resultobj;
18797 fail:
18798 return NULL;
18799}
18800
18801
18802static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18803 PyObject *resultobj;
18804 wxDateTime *arg1 = (wxDateTime *) 0 ;
18805 wxDateTime::TimeZone *arg2 = 0 ;
18806 bool arg3 = (bool) False ;
18807 wxDateTime result;
18808 bool temp2 = False ;
18809 PyObject * obj0 = 0 ;
18810 PyObject * obj1 = 0 ;
18811 PyObject * obj2 = 0 ;
18812 char *kwnames[] = {
18813 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18814 };
18815
18816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18819 {
18820 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18821 temp2 = True;
18822 }
18823 if (obj2) {
18824 arg3 = (bool) SWIG_AsBool(obj2);
18825 if (PyErr_Occurred()) SWIG_fail;
18826 }
18827 {
18828 PyThreadState* __tstate = wxPyBeginAllowThreads();
18829 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18830
18831 wxPyEndAllowThreads(__tstate);
18832 if (PyErr_Occurred()) SWIG_fail;
18833 }
18834 {
18835 wxDateTime * resultptr;
18836 resultptr = new wxDateTime((wxDateTime &) result);
18837 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18838 }
18839 {
18840 if (temp2) delete arg2;
18841 }
18842 return resultobj;
18843 fail:
18844 {
18845 if (temp2) delete arg2;
18846 }
18847 return NULL;
18848}
18849
18850
18851static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18852 PyObject *resultobj;
18853 wxDateTime *arg1 = (wxDateTime *) 0 ;
18854 wxDateTime::TimeZone *arg2 = 0 ;
18855 bool arg3 = (bool) False ;
18856 wxDateTime *result;
18857 bool temp2 = False ;
18858 PyObject * obj0 = 0 ;
18859 PyObject * obj1 = 0 ;
18860 PyObject * obj2 = 0 ;
18861 char *kwnames[] = {
18862 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18863 };
18864
18865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18868 {
18869 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18870 temp2 = True;
18871 }
18872 if (obj2) {
18873 arg3 = (bool) SWIG_AsBool(obj2);
18874 if (PyErr_Occurred()) SWIG_fail;
18875 }
18876 {
18877 PyThreadState* __tstate = wxPyBeginAllowThreads();
18878 {
18879 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18880 result = (wxDateTime *) &_result_ref;
18881 }
18882
18883 wxPyEndAllowThreads(__tstate);
18884 if (PyErr_Occurred()) SWIG_fail;
18885 }
18886 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18887 {
18888 if (temp2) delete arg2;
18889 }
18890 return resultobj;
18891 fail:
18892 {
18893 if (temp2) delete arg2;
18894 }
18895 return NULL;
18896}
18897
18898
18899static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18900 PyObject *resultobj;
18901 wxDateTime *arg1 = (wxDateTime *) 0 ;
18902 bool arg2 = (bool) False ;
18903 wxDateTime result;
18904 PyObject * obj0 = 0 ;
18905 PyObject * obj1 = 0 ;
18906 char *kwnames[] = {
18907 (char *) "self",(char *) "noDST", NULL
18908 };
18909
18910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18913 if (obj1) {
18914 arg2 = (bool) SWIG_AsBool(obj1);
18915 if (PyErr_Occurred()) SWIG_fail;
18916 }
18917 {
18918 PyThreadState* __tstate = wxPyBeginAllowThreads();
18919 result = (arg1)->ToGMT(arg2);
18920
18921 wxPyEndAllowThreads(__tstate);
18922 if (PyErr_Occurred()) SWIG_fail;
18923 }
18924 {
18925 wxDateTime * resultptr;
18926 resultptr = new wxDateTime((wxDateTime &) result);
18927 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18928 }
18929 return resultobj;
18930 fail:
18931 return NULL;
18932}
18933
18934
18935static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18936 PyObject *resultobj;
18937 wxDateTime *arg1 = (wxDateTime *) 0 ;
18938 bool arg2 = (bool) False ;
18939 wxDateTime *result;
18940 PyObject * obj0 = 0 ;
18941 PyObject * obj1 = 0 ;
18942 char *kwnames[] = {
18943 (char *) "self",(char *) "noDST", NULL
18944 };
18945
18946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18949 if (obj1) {
18950 arg2 = (bool) SWIG_AsBool(obj1);
18951 if (PyErr_Occurred()) SWIG_fail;
18952 }
18953 {
18954 PyThreadState* __tstate = wxPyBeginAllowThreads();
18955 {
18956 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18957 result = (wxDateTime *) &_result_ref;
18958 }
18959
18960 wxPyEndAllowThreads(__tstate);
18961 if (PyErr_Occurred()) SWIG_fail;
18962 }
18963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18964 return resultobj;
18965 fail:
18966 return NULL;
18967}
18968
18969
18970static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18971 PyObject *resultobj;
18972 wxDateTime *arg1 = (wxDateTime *) 0 ;
18973 int arg2 = (int) wxDateTime::Country_Default ;
18974 int result;
18975 PyObject * obj0 = 0 ;
18976 PyObject * obj1 = 0 ;
18977 char *kwnames[] = {
18978 (char *) "self",(char *) "country", NULL
18979 };
18980
18981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18984 if (obj1) {
18985 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18986 if (PyErr_Occurred()) SWIG_fail;
18987 }
18988 {
18989 PyThreadState* __tstate = wxPyBeginAllowThreads();
18990 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18991
18992 wxPyEndAllowThreads(__tstate);
18993 if (PyErr_Occurred()) SWIG_fail;
18994 }
18995 resultobj = SWIG_FromInt((int)result);
18996 return resultobj;
18997 fail:
18998 return NULL;
18999}
19000
19001
19002static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
19003 PyObject *resultobj;
19004 wxDateTime *arg1 = (wxDateTime *) 0 ;
19005 bool result;
19006 PyObject * obj0 = 0 ;
19007 char *kwnames[] = {
19008 (char *) "self", NULL
19009 };
19010
19011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19014 {
19015 PyThreadState* __tstate = wxPyBeginAllowThreads();
19016 result = (bool)((wxDateTime const *)arg1)->IsValid();
19017
19018 wxPyEndAllowThreads(__tstate);
19019 if (PyErr_Occurred()) SWIG_fail;
19020 }
19021 {
19022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19023 }
19024 return resultobj;
19025 fail:
19026 return NULL;
19027}
19028
19029
19030static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
19031 PyObject *resultobj;
19032 wxDateTime *arg1 = (wxDateTime *) 0 ;
19033 time_t result;
19034 PyObject * obj0 = 0 ;
19035 char *kwnames[] = {
19036 (char *) "self", NULL
19037 };
19038
19039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19042 {
19043 PyThreadState* __tstate = wxPyBeginAllowThreads();
19044 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19045
19046 wxPyEndAllowThreads(__tstate);
19047 if (PyErr_Occurred()) SWIG_fail;
19048 }
19049 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
19050 return resultobj;
19051 fail:
19052 return NULL;
19053}
19054
19055
19056static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19057 PyObject *resultobj;
19058 wxDateTime *arg1 = (wxDateTime *) 0 ;
19059 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19060 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19061 int result;
19062 bool temp2 = False ;
19063 PyObject * obj0 = 0 ;
19064 PyObject * obj1 = 0 ;
19065 char *kwnames[] = {
19066 (char *) "self",(char *) "tz", NULL
19067 };
19068
19069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",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 {
19074 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19075 temp2 = True;
19076 }
19077 }
19078 {
19079 PyThreadState* __tstate = wxPyBeginAllowThreads();
19080 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19081
19082 wxPyEndAllowThreads(__tstate);
19083 if (PyErr_Occurred()) SWIG_fail;
19084 }
19085 resultobj = SWIG_FromInt((int)result);
19086 {
19087 if (temp2) delete arg2;
19088 }
19089 return resultobj;
19090 fail:
19091 {
19092 if (temp2) delete arg2;
19093 }
19094 return NULL;
19095}
19096
19097
19098static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19099 PyObject *resultobj;
19100 wxDateTime *arg1 = (wxDateTime *) 0 ;
19101 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19102 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19103 int result;
19104 bool temp2 = False ;
19105 PyObject * obj0 = 0 ;
19106 PyObject * obj1 = 0 ;
19107 char *kwnames[] = {
19108 (char *) "self",(char *) "tz", NULL
19109 };
19110
19111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19114 if (obj1) {
19115 {
19116 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19117 temp2 = True;
19118 }
19119 }
19120 {
19121 PyThreadState* __tstate = wxPyBeginAllowThreads();
19122 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19123
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 resultobj = SWIG_FromInt((int)result);
19128 {
19129 if (temp2) delete arg2;
19130 }
19131 return resultobj;
19132 fail:
19133 {
19134 if (temp2) delete arg2;
19135 }
19136 return NULL;
19137}
19138
19139
19140static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19141 PyObject *resultobj;
19142 wxDateTime *arg1 = (wxDateTime *) 0 ;
19143 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19144 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19145 int result;
19146 bool temp2 = False ;
19147 PyObject * obj0 = 0 ;
19148 PyObject * obj1 = 0 ;
19149 char *kwnames[] = {
19150 (char *) "self",(char *) "tz", NULL
19151 };
19152
19153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19156 if (obj1) {
19157 {
19158 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19159 temp2 = True;
19160 }
19161 }
19162 {
19163 PyThreadState* __tstate = wxPyBeginAllowThreads();
19164 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19165
19166 wxPyEndAllowThreads(__tstate);
19167 if (PyErr_Occurred()) SWIG_fail;
19168 }
19169 resultobj = SWIG_FromInt((int)result);
19170 {
19171 if (temp2) delete arg2;
19172 }
19173 return resultobj;
19174 fail:
19175 {
19176 if (temp2) delete arg2;
19177 }
19178 return NULL;
19179}
19180
19181
19182static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19183 PyObject *resultobj;
19184 wxDateTime *arg1 = (wxDateTime *) 0 ;
19185 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19186 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19187 int result;
19188 bool temp2 = False ;
19189 PyObject * obj0 = 0 ;
19190 PyObject * obj1 = 0 ;
19191 char *kwnames[] = {
19192 (char *) "self",(char *) "tz", NULL
19193 };
19194
19195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19198 if (obj1) {
19199 {
19200 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19201 temp2 = True;
19202 }
19203 }
19204 {
19205 PyThreadState* __tstate = wxPyBeginAllowThreads();
19206 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19207
19208 wxPyEndAllowThreads(__tstate);
19209 if (PyErr_Occurred()) SWIG_fail;
19210 }
19211 resultobj = SWIG_FromInt((int)result);
19212 {
19213 if (temp2) delete arg2;
19214 }
19215 return resultobj;
19216 fail:
19217 {
19218 if (temp2) delete arg2;
19219 }
19220 return NULL;
19221}
19222
19223
19224static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19225 PyObject *resultobj;
19226 wxDateTime *arg1 = (wxDateTime *) 0 ;
19227 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19228 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19229 int result;
19230 bool temp2 = False ;
19231 PyObject * obj0 = 0 ;
19232 PyObject * obj1 = 0 ;
19233 char *kwnames[] = {
19234 (char *) "self",(char *) "tz", NULL
19235 };
19236
19237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19240 if (obj1) {
19241 {
19242 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19243 temp2 = True;
19244 }
19245 }
19246 {
19247 PyThreadState* __tstate = wxPyBeginAllowThreads();
19248 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19249
19250 wxPyEndAllowThreads(__tstate);
19251 if (PyErr_Occurred()) SWIG_fail;
19252 }
19253 resultobj = SWIG_FromInt((int)result);
19254 {
19255 if (temp2) delete arg2;
19256 }
19257 return resultobj;
19258 fail:
19259 {
19260 if (temp2) delete arg2;
19261 }
19262 return NULL;
19263}
19264
19265
19266static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19267 PyObject *resultobj;
19268 wxDateTime *arg1 = (wxDateTime *) 0 ;
19269 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19270 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19271 int result;
19272 bool temp2 = False ;
19273 PyObject * obj0 = 0 ;
19274 PyObject * obj1 = 0 ;
19275 char *kwnames[] = {
19276 (char *) "self",(char *) "tz", NULL
19277 };
19278
19279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19282 if (obj1) {
19283 {
19284 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19285 temp2 = True;
19286 }
19287 }
19288 {
19289 PyThreadState* __tstate = wxPyBeginAllowThreads();
19290 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19291
19292 wxPyEndAllowThreads(__tstate);
19293 if (PyErr_Occurred()) SWIG_fail;
19294 }
19295 resultobj = SWIG_FromInt((int)result);
19296 {
19297 if (temp2) delete arg2;
19298 }
19299 return resultobj;
19300 fail:
19301 {
19302 if (temp2) delete arg2;
19303 }
19304 return NULL;
19305}
19306
19307
19308static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19309 PyObject *resultobj;
19310 wxDateTime *arg1 = (wxDateTime *) 0 ;
19311 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19312 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19313 int result;
19314 bool temp2 = False ;
19315 PyObject * obj0 = 0 ;
19316 PyObject * obj1 = 0 ;
19317 char *kwnames[] = {
19318 (char *) "self",(char *) "tz", NULL
19319 };
19320
19321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19324 if (obj1) {
19325 {
19326 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19327 temp2 = True;
19328 }
19329 }
19330 {
19331 PyThreadState* __tstate = wxPyBeginAllowThreads();
19332 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19333
19334 wxPyEndAllowThreads(__tstate);
19335 if (PyErr_Occurred()) SWIG_fail;
19336 }
19337 resultobj = SWIG_FromInt((int)result);
19338 {
19339 if (temp2) delete arg2;
19340 }
19341 return resultobj;
19342 fail:
19343 {
19344 if (temp2) delete arg2;
19345 }
19346 return NULL;
19347}
19348
19349
19350static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19351 PyObject *resultobj;
19352 wxDateTime *arg1 = (wxDateTime *) 0 ;
19353 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19354 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19355 int result;
19356 bool temp2 = False ;
19357 PyObject * obj0 = 0 ;
19358 PyObject * obj1 = 0 ;
19359 char *kwnames[] = {
19360 (char *) "self",(char *) "tz", NULL
19361 };
19362
19363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19366 if (obj1) {
19367 {
19368 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19369 temp2 = True;
19370 }
19371 }
19372 {
19373 PyThreadState* __tstate = wxPyBeginAllowThreads();
19374 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19375
19376 wxPyEndAllowThreads(__tstate);
19377 if (PyErr_Occurred()) SWIG_fail;
19378 }
19379 resultobj = SWIG_FromInt((int)result);
19380 {
19381 if (temp2) delete arg2;
19382 }
19383 return resultobj;
19384 fail:
19385 {
19386 if (temp2) delete arg2;
19387 }
19388 return NULL;
19389}
19390
19391
19392static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19393 PyObject *resultobj;
19394 wxDateTime *arg1 = (wxDateTime *) 0 ;
19395 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19396 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19397 int result;
19398 bool temp2 = False ;
19399 PyObject * obj0 = 0 ;
19400 PyObject * obj1 = 0 ;
19401 char *kwnames[] = {
19402 (char *) "self",(char *) "tz", NULL
19403 };
19404
19405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19408 if (obj1) {
19409 {
19410 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19411 temp2 = True;
19412 }
19413 }
19414 {
19415 PyThreadState* __tstate = wxPyBeginAllowThreads();
19416 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19417
19418 wxPyEndAllowThreads(__tstate);
19419 if (PyErr_Occurred()) SWIG_fail;
19420 }
19421 resultobj = SWIG_FromInt((int)result);
19422 {
19423 if (temp2) delete arg2;
19424 }
19425 return resultobj;
19426 fail:
19427 {
19428 if (temp2) delete arg2;
19429 }
19430 return NULL;
19431}
19432
19433
19434static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19435 PyObject *resultobj;
19436 wxDateTime *arg1 = (wxDateTime *) 0 ;
19437 int arg2 = (int) wxDateTime::Monday_First ;
19438 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19439 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19440 int result;
19441 bool temp3 = False ;
19442 PyObject * obj0 = 0 ;
19443 PyObject * obj1 = 0 ;
19444 PyObject * obj2 = 0 ;
19445 char *kwnames[] = {
19446 (char *) "self",(char *) "flags",(char *) "tz", NULL
19447 };
19448
19449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19452 if (obj1) {
19453 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19454 if (PyErr_Occurred()) SWIG_fail;
19455 }
19456 if (obj2) {
19457 {
19458 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19459 temp3 = True;
19460 }
19461 }
19462 {
19463 PyThreadState* __tstate = wxPyBeginAllowThreads();
19464 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19465
19466 wxPyEndAllowThreads(__tstate);
19467 if (PyErr_Occurred()) SWIG_fail;
19468 }
19469 resultobj = SWIG_FromInt((int)result);
19470 {
19471 if (temp3) delete arg3;
19472 }
19473 return resultobj;
19474 fail:
19475 {
19476 if (temp3) delete arg3;
19477 }
19478 return NULL;
19479}
19480
19481
19482static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19483 PyObject *resultobj;
19484 wxDateTime *arg1 = (wxDateTime *) 0 ;
19485 int arg2 = (int) wxDateTime::Monday_First ;
19486 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19487 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19488 int result;
19489 bool temp3 = False ;
19490 PyObject * obj0 = 0 ;
19491 PyObject * obj1 = 0 ;
19492 PyObject * obj2 = 0 ;
19493 char *kwnames[] = {
19494 (char *) "self",(char *) "flags",(char *) "tz", NULL
19495 };
19496
19497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19500 if (obj1) {
19501 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19502 if (PyErr_Occurred()) SWIG_fail;
19503 }
19504 if (obj2) {
19505 {
19506 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19507 temp3 = True;
19508 }
19509 }
19510 {
19511 PyThreadState* __tstate = wxPyBeginAllowThreads();
19512 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19513
19514 wxPyEndAllowThreads(__tstate);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 }
19517 resultobj = SWIG_FromInt((int)result);
19518 {
19519 if (temp3) delete arg3;
19520 }
19521 return resultobj;
19522 fail:
19523 {
19524 if (temp3) delete arg3;
19525 }
19526 return NULL;
19527}
19528
19529
19530static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19531 PyObject *resultobj;
19532 wxDateTime *arg1 = (wxDateTime *) 0 ;
19533 int arg2 = (int) wxDateTime::Country_Default ;
19534 bool result;
19535 PyObject * obj0 = 0 ;
19536 PyObject * obj1 = 0 ;
19537 char *kwnames[] = {
19538 (char *) "self",(char *) "country", NULL
19539 };
19540
19541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19544 if (obj1) {
19545 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19546 if (PyErr_Occurred()) SWIG_fail;
19547 }
19548 {
19549 PyThreadState* __tstate = wxPyBeginAllowThreads();
19550 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19551
19552 wxPyEndAllowThreads(__tstate);
19553 if (PyErr_Occurred()) SWIG_fail;
19554 }
19555 {
19556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19557 }
19558 return resultobj;
19559 fail:
19560 return NULL;
19561}
19562
19563
19564static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19565 PyObject *resultobj;
19566 wxDateTime *arg1 = (wxDateTime *) 0 ;
19567 wxDateTime *arg2 = 0 ;
19568 bool result;
19569 PyObject * obj0 = 0 ;
19570 PyObject * obj1 = 0 ;
19571 char *kwnames[] = {
19572 (char *) "self",(char *) "datetime", NULL
19573 };
19574
19575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19579 SWIG_POINTER_EXCEPTION | 0)) == -1)
19580 SWIG_fail;
19581 if (arg2 == NULL) {
19582 PyErr_SetString(PyExc_TypeError,"null reference");
19583 SWIG_fail;
19584 }
19585 {
19586 PyThreadState* __tstate = wxPyBeginAllowThreads();
19587 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19588
19589 wxPyEndAllowThreads(__tstate);
19590 if (PyErr_Occurred()) SWIG_fail;
19591 }
19592 {
19593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19594 }
19595 return resultobj;
19596 fail:
19597 return NULL;
19598}
19599
19600
19601static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19602 PyObject *resultobj;
19603 wxDateTime *arg1 = (wxDateTime *) 0 ;
19604 wxDateTime *arg2 = 0 ;
19605 bool result;
19606 PyObject * obj0 = 0 ;
19607 PyObject * obj1 = 0 ;
19608 char *kwnames[] = {
19609 (char *) "self",(char *) "datetime", NULL
19610 };
19611
19612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19615 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19616 SWIG_POINTER_EXCEPTION | 0)) == -1)
19617 SWIG_fail;
19618 if (arg2 == NULL) {
19619 PyErr_SetString(PyExc_TypeError,"null reference");
19620 SWIG_fail;
19621 }
19622 {
19623 PyThreadState* __tstate = wxPyBeginAllowThreads();
19624 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19625
19626 wxPyEndAllowThreads(__tstate);
19627 if (PyErr_Occurred()) SWIG_fail;
19628 }
19629 {
19630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19631 }
19632 return resultobj;
19633 fail:
19634 return NULL;
19635}
19636
19637
19638static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19639 PyObject *resultobj;
19640 wxDateTime *arg1 = (wxDateTime *) 0 ;
19641 wxDateTime *arg2 = 0 ;
19642 bool result;
19643 PyObject * obj0 = 0 ;
19644 PyObject * obj1 = 0 ;
19645 char *kwnames[] = {
19646 (char *) "self",(char *) "datetime", NULL
19647 };
19648
19649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19652 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19653 SWIG_POINTER_EXCEPTION | 0)) == -1)
19654 SWIG_fail;
19655 if (arg2 == NULL) {
19656 PyErr_SetString(PyExc_TypeError,"null reference");
19657 SWIG_fail;
19658 }
19659 {
19660 PyThreadState* __tstate = wxPyBeginAllowThreads();
19661 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19662
19663 wxPyEndAllowThreads(__tstate);
19664 if (PyErr_Occurred()) SWIG_fail;
19665 }
19666 {
19667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19668 }
19669 return resultobj;
19670 fail:
19671 return NULL;
19672}
19673
19674
19675static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19676 PyObject *resultobj;
19677 wxDateTime *arg1 = (wxDateTime *) 0 ;
19678 wxDateTime *arg2 = 0 ;
19679 wxDateTime *arg3 = 0 ;
19680 bool result;
19681 PyObject * obj0 = 0 ;
19682 PyObject * obj1 = 0 ;
19683 PyObject * obj2 = 0 ;
19684 char *kwnames[] = {
19685 (char *) "self",(char *) "t1",(char *) "t2", NULL
19686 };
19687
19688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19691 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19692 SWIG_POINTER_EXCEPTION | 0)) == -1)
19693 SWIG_fail;
19694 if (arg2 == NULL) {
19695 PyErr_SetString(PyExc_TypeError,"null reference");
19696 SWIG_fail;
19697 }
19698 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19699 SWIG_POINTER_EXCEPTION | 0)) == -1)
19700 SWIG_fail;
19701 if (arg3 == NULL) {
19702 PyErr_SetString(PyExc_TypeError,"null reference");
19703 SWIG_fail;
19704 }
19705 {
19706 PyThreadState* __tstate = wxPyBeginAllowThreads();
19707 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19708
19709 wxPyEndAllowThreads(__tstate);
19710 if (PyErr_Occurred()) SWIG_fail;
19711 }
19712 {
19713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19714 }
19715 return resultobj;
19716 fail:
19717 return NULL;
19718}
19719
19720
19721static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19722 PyObject *resultobj;
19723 wxDateTime *arg1 = (wxDateTime *) 0 ;
19724 wxDateTime *arg2 = 0 ;
19725 wxDateTime *arg3 = 0 ;
19726 bool result;
19727 PyObject * obj0 = 0 ;
19728 PyObject * obj1 = 0 ;
19729 PyObject * obj2 = 0 ;
19730 char *kwnames[] = {
19731 (char *) "self",(char *) "t1",(char *) "t2", NULL
19732 };
19733
19734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) 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 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19745 SWIG_POINTER_EXCEPTION | 0)) == -1)
19746 SWIG_fail;
19747 if (arg3 == NULL) {
19748 PyErr_SetString(PyExc_TypeError,"null reference");
19749 SWIG_fail;
19750 }
19751 {
19752 PyThreadState* __tstate = wxPyBeginAllowThreads();
19753 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19754
19755 wxPyEndAllowThreads(__tstate);
19756 if (PyErr_Occurred()) SWIG_fail;
19757 }
19758 {
19759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19760 }
19761 return resultobj;
19762 fail:
19763 return NULL;
19764}
19765
19766
19767static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19768 PyObject *resultobj;
19769 wxDateTime *arg1 = (wxDateTime *) 0 ;
19770 wxDateTime *arg2 = 0 ;
19771 bool result;
19772 PyObject * obj0 = 0 ;
19773 PyObject * obj1 = 0 ;
19774 char *kwnames[] = {
19775 (char *) "self",(char *) "dt", NULL
19776 };
19777
19778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19782 SWIG_POINTER_EXCEPTION | 0)) == -1)
19783 SWIG_fail;
19784 if (arg2 == NULL) {
19785 PyErr_SetString(PyExc_TypeError,"null reference");
19786 SWIG_fail;
19787 }
19788 {
19789 PyThreadState* __tstate = wxPyBeginAllowThreads();
19790 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19791
19792 wxPyEndAllowThreads(__tstate);
19793 if (PyErr_Occurred()) SWIG_fail;
19794 }
19795 {
19796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19797 }
19798 return resultobj;
19799 fail:
19800 return NULL;
19801}
19802
19803
19804static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19805 PyObject *resultobj;
19806 wxDateTime *arg1 = (wxDateTime *) 0 ;
19807 wxDateTime *arg2 = 0 ;
19808 bool result;
19809 PyObject * obj0 = 0 ;
19810 PyObject * obj1 = 0 ;
19811 char *kwnames[] = {
19812 (char *) "self",(char *) "dt", NULL
19813 };
19814
19815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19818 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19819 SWIG_POINTER_EXCEPTION | 0)) == -1)
19820 SWIG_fail;
19821 if (arg2 == NULL) {
19822 PyErr_SetString(PyExc_TypeError,"null reference");
19823 SWIG_fail;
19824 }
19825 {
19826 PyThreadState* __tstate = wxPyBeginAllowThreads();
19827 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19828
19829 wxPyEndAllowThreads(__tstate);
19830 if (PyErr_Occurred()) SWIG_fail;
19831 }
19832 {
19833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19834 }
19835 return resultobj;
19836 fail:
19837 return NULL;
19838}
19839
19840
19841static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19842 PyObject *resultobj;
19843 wxDateTime *arg1 = (wxDateTime *) 0 ;
19844 wxDateTime *arg2 = 0 ;
19845 wxTimeSpan *arg3 = 0 ;
19846 bool result;
19847 PyObject * obj0 = 0 ;
19848 PyObject * obj1 = 0 ;
19849 PyObject * obj2 = 0 ;
19850 char *kwnames[] = {
19851 (char *) "self",(char *) "dt",(char *) "ts", NULL
19852 };
19853
19854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19857 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19858 SWIG_POINTER_EXCEPTION | 0)) == -1)
19859 SWIG_fail;
19860 if (arg2 == NULL) {
19861 PyErr_SetString(PyExc_TypeError,"null reference");
19862 SWIG_fail;
19863 }
19864 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19865 SWIG_POINTER_EXCEPTION | 0)) == -1)
19866 SWIG_fail;
19867 if (arg3 == NULL) {
19868 PyErr_SetString(PyExc_TypeError,"null reference");
19869 SWIG_fail;
19870 }
19871 {
19872 PyThreadState* __tstate = wxPyBeginAllowThreads();
19873 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19874
19875 wxPyEndAllowThreads(__tstate);
19876 if (PyErr_Occurred()) SWIG_fail;
19877 }
19878 {
19879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19880 }
19881 return resultobj;
19882 fail:
19883 return NULL;
19884}
19885
19886
19887static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19888 PyObject *resultobj;
19889 wxDateTime *arg1 = (wxDateTime *) 0 ;
19890 wxTimeSpan *arg2 = 0 ;
19891 wxDateTime *result;
19892 PyObject * obj0 = 0 ;
19893 PyObject * obj1 = 0 ;
19894 char *kwnames[] = {
19895 (char *) "self",(char *) "diff", NULL
19896 };
19897
19898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19901 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19902 SWIG_POINTER_EXCEPTION | 0)) == -1)
19903 SWIG_fail;
19904 if (arg2 == NULL) {
19905 PyErr_SetString(PyExc_TypeError,"null reference");
19906 SWIG_fail;
19907 }
19908 {
19909 PyThreadState* __tstate = wxPyBeginAllowThreads();
19910 {
19911 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19912 result = (wxDateTime *) &_result_ref;
19913 }
19914
19915 wxPyEndAllowThreads(__tstate);
19916 if (PyErr_Occurred()) SWIG_fail;
19917 }
19918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19919 return resultobj;
19920 fail:
19921 return NULL;
19922}
19923
19924
19925static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19926 PyObject *resultobj;
19927 wxDateTime *arg1 = (wxDateTime *) 0 ;
19928 wxDateSpan *arg2 = 0 ;
19929 wxDateTime *result;
19930 PyObject * obj0 = 0 ;
19931 PyObject * obj1 = 0 ;
19932 char *kwnames[] = {
19933 (char *) "self",(char *) "diff", NULL
19934 };
19935
19936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19939 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19940 SWIG_POINTER_EXCEPTION | 0)) == -1)
19941 SWIG_fail;
19942 if (arg2 == NULL) {
19943 PyErr_SetString(PyExc_TypeError,"null reference");
19944 SWIG_fail;
19945 }
19946 {
19947 PyThreadState* __tstate = wxPyBeginAllowThreads();
19948 {
19949 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19950 result = (wxDateTime *) &_result_ref;
19951 }
19952
19953 wxPyEndAllowThreads(__tstate);
19954 if (PyErr_Occurred()) SWIG_fail;
19955 }
19956 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19957 return resultobj;
19958 fail:
19959 return NULL;
19960}
19961
19962
19963static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19964 PyObject *resultobj;
19965 wxDateTime *arg1 = (wxDateTime *) 0 ;
19966 wxTimeSpan *arg2 = 0 ;
19967 wxDateTime *result;
19968 PyObject * obj0 = 0 ;
19969 PyObject * obj1 = 0 ;
19970 char *kwnames[] = {
19971 (char *) "self",(char *) "diff", NULL
19972 };
19973
19974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",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_wxTimeSpan,
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 {
19987 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19988 result = (wxDateTime *) &_result_ref;
19989 }
19990
19991 wxPyEndAllowThreads(__tstate);
19992 if (PyErr_Occurred()) SWIG_fail;
19993 }
19994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19995 return resultobj;
19996 fail:
19997 return NULL;
19998}
19999
20000
20001static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
20002 PyObject *resultobj;
20003 wxDateTime *arg1 = (wxDateTime *) 0 ;
20004 wxDateSpan *arg2 = 0 ;
20005 wxDateTime *result;
20006 PyObject * obj0 = 0 ;
20007 PyObject * obj1 = 0 ;
20008 char *kwnames[] = {
20009 (char *) "self",(char *) "diff", NULL
20010 };
20011
20012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20016 SWIG_POINTER_EXCEPTION | 0)) == -1)
20017 SWIG_fail;
20018 if (arg2 == NULL) {
20019 PyErr_SetString(PyExc_TypeError,"null reference");
20020 SWIG_fail;
20021 }
20022 {
20023 PyThreadState* __tstate = wxPyBeginAllowThreads();
20024 {
20025 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20026 result = (wxDateTime *) &_result_ref;
20027 }
20028
20029 wxPyEndAllowThreads(__tstate);
20030 if (PyErr_Occurred()) SWIG_fail;
20031 }
20032 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20033 return resultobj;
20034 fail:
20035 return NULL;
20036}
20037
20038
20039static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
20040 PyObject *resultobj;
20041 wxDateTime *arg1 = (wxDateTime *) 0 ;
20042 wxDateTime *arg2 = 0 ;
20043 wxTimeSpan result;
20044 PyObject * obj0 = 0 ;
20045 PyObject * obj1 = 0 ;
20046 char *kwnames[] = {
20047 (char *) "self",(char *) "dt", NULL
20048 };
20049
20050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20054 SWIG_POINTER_EXCEPTION | 0)) == -1)
20055 SWIG_fail;
20056 if (arg2 == NULL) {
20057 PyErr_SetString(PyExc_TypeError,"null reference");
20058 SWIG_fail;
20059 }
20060 {
20061 PyThreadState* __tstate = wxPyBeginAllowThreads();
20062 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20063
20064 wxPyEndAllowThreads(__tstate);
20065 if (PyErr_Occurred()) SWIG_fail;
20066 }
20067 {
20068 wxTimeSpan * resultptr;
20069 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20070 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20071 }
20072 return resultobj;
20073 fail:
20074 return NULL;
20075}
20076
20077
20078static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
20079 PyObject *resultobj;
20080 wxDateTime *arg1 = (wxDateTime *) 0 ;
20081 wxTimeSpan *arg2 = 0 ;
20082 wxDateTime *result;
20083 PyObject * obj0 = 0 ;
20084 PyObject * obj1 = 0 ;
20085
20086 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20089 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20090 SWIG_POINTER_EXCEPTION | 0)) == -1)
20091 SWIG_fail;
20092 if (arg2 == NULL) {
20093 PyErr_SetString(PyExc_TypeError,"null reference");
20094 SWIG_fail;
20095 }
20096 {
20097 PyThreadState* __tstate = wxPyBeginAllowThreads();
20098 {
20099 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20100 result = (wxDateTime *) &_result_ref;
20101 }
20102
20103 wxPyEndAllowThreads(__tstate);
20104 if (PyErr_Occurred()) SWIG_fail;
20105 }
20106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20107 return resultobj;
20108 fail:
20109 return NULL;
20110}
20111
20112
20113static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20114 PyObject *resultobj;
20115 wxDateTime *arg1 = (wxDateTime *) 0 ;
20116 wxDateSpan *arg2 = 0 ;
20117 wxDateTime *result;
20118 PyObject * obj0 = 0 ;
20119 PyObject * obj1 = 0 ;
20120
20121 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20125 SWIG_POINTER_EXCEPTION | 0)) == -1)
20126 SWIG_fail;
20127 if (arg2 == NULL) {
20128 PyErr_SetString(PyExc_TypeError,"null reference");
20129 SWIG_fail;
20130 }
20131 {
20132 PyThreadState* __tstate = wxPyBeginAllowThreads();
20133 {
20134 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20135 result = (wxDateTime *) &_result_ref;
20136 }
20137
20138 wxPyEndAllowThreads(__tstate);
20139 if (PyErr_Occurred()) SWIG_fail;
20140 }
20141 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20142 return resultobj;
20143 fail:
20144 return NULL;
20145}
20146
20147
20148static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20149 int argc;
20150 PyObject *argv[3];
20151 int ii;
20152
20153 argc = PyObject_Length(args);
20154 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20155 argv[ii] = PyTuple_GetItem(args,ii);
20156 }
20157 if (argc == 2) {
20158 int _v;
20159 {
20160 void *ptr;
20161 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20162 _v = 0;
20163 PyErr_Clear();
20164 } else {
20165 _v = 1;
20166 }
20167 }
20168 if (_v) {
20169 {
20170 void *ptr;
20171 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20172 _v = 0;
20173 PyErr_Clear();
20174 } else {
20175 _v = 1;
20176 }
20177 }
20178 if (_v) {
20179 return _wrap_DateTime___iadd____SWIG_0(self,args);
20180 }
20181 }
20182 }
20183 if (argc == 2) {
20184 int _v;
20185 {
20186 void *ptr;
20187 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20188 _v = 0;
20189 PyErr_Clear();
20190 } else {
20191 _v = 1;
20192 }
20193 }
20194 if (_v) {
20195 {
20196 void *ptr;
20197 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20198 _v = 0;
20199 PyErr_Clear();
20200 } else {
20201 _v = 1;
20202 }
20203 }
20204 if (_v) {
20205 return _wrap_DateTime___iadd____SWIG_1(self,args);
20206 }
20207 }
20208 }
20209
20210 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20211 return NULL;
20212}
20213
20214
20215static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20216 PyObject *resultobj;
20217 wxDateTime *arg1 = (wxDateTime *) 0 ;
20218 wxTimeSpan *arg2 = 0 ;
20219 wxDateTime *result;
20220 PyObject * obj0 = 0 ;
20221 PyObject * obj1 = 0 ;
20222
20223 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20226 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20227 SWIG_POINTER_EXCEPTION | 0)) == -1)
20228 SWIG_fail;
20229 if (arg2 == NULL) {
20230 PyErr_SetString(PyExc_TypeError,"null reference");
20231 SWIG_fail;
20232 }
20233 {
20234 PyThreadState* __tstate = wxPyBeginAllowThreads();
20235 {
20236 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20237 result = (wxDateTime *) &_result_ref;
20238 }
20239
20240 wxPyEndAllowThreads(__tstate);
20241 if (PyErr_Occurred()) SWIG_fail;
20242 }
20243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20244 return resultobj;
20245 fail:
20246 return NULL;
20247}
20248
20249
20250static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20251 PyObject *resultobj;
20252 wxDateTime *arg1 = (wxDateTime *) 0 ;
20253 wxDateSpan *arg2 = 0 ;
20254 wxDateTime *result;
20255 PyObject * obj0 = 0 ;
20256 PyObject * obj1 = 0 ;
20257
20258 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20261 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20262 SWIG_POINTER_EXCEPTION | 0)) == -1)
20263 SWIG_fail;
20264 if (arg2 == NULL) {
20265 PyErr_SetString(PyExc_TypeError,"null reference");
20266 SWIG_fail;
20267 }
20268 {
20269 PyThreadState* __tstate = wxPyBeginAllowThreads();
20270 {
20271 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20272 result = (wxDateTime *) &_result_ref;
20273 }
20274
20275 wxPyEndAllowThreads(__tstate);
20276 if (PyErr_Occurred()) SWIG_fail;
20277 }
20278 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20279 return resultobj;
20280 fail:
20281 return NULL;
20282}
20283
20284
20285static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20286 int argc;
20287 PyObject *argv[3];
20288 int ii;
20289
20290 argc = PyObject_Length(args);
20291 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20292 argv[ii] = PyTuple_GetItem(args,ii);
20293 }
20294 if (argc == 2) {
20295 int _v;
20296 {
20297 void *ptr;
20298 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20299 _v = 0;
20300 PyErr_Clear();
20301 } else {
20302 _v = 1;
20303 }
20304 }
20305 if (_v) {
20306 {
20307 void *ptr;
20308 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20309 _v = 0;
20310 PyErr_Clear();
20311 } else {
20312 _v = 1;
20313 }
20314 }
20315 if (_v) {
20316 return _wrap_DateTime___isub____SWIG_0(self,args);
20317 }
20318 }
20319 }
20320 if (argc == 2) {
20321 int _v;
20322 {
20323 void *ptr;
20324 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20325 _v = 0;
20326 PyErr_Clear();
20327 } else {
20328 _v = 1;
20329 }
20330 }
20331 if (_v) {
20332 {
20333 void *ptr;
20334 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20335 _v = 0;
20336 PyErr_Clear();
20337 } else {
20338 _v = 1;
20339 }
20340 }
20341 if (_v) {
20342 return _wrap_DateTime___isub____SWIG_1(self,args);
20343 }
20344 }
20345 }
20346
20347 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20348 return NULL;
20349}
20350
20351
20352static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20353 PyObject *resultobj;
20354 wxDateTime *arg1 = (wxDateTime *) 0 ;
20355 wxTimeSpan *arg2 = 0 ;
20356 wxDateTime result;
20357 PyObject * obj0 = 0 ;
20358 PyObject * obj1 = 0 ;
20359
20360 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20364 SWIG_POINTER_EXCEPTION | 0)) == -1)
20365 SWIG_fail;
20366 if (arg2 == NULL) {
20367 PyErr_SetString(PyExc_TypeError,"null reference");
20368 SWIG_fail;
20369 }
20370 {
20371 PyThreadState* __tstate = wxPyBeginAllowThreads();
20372 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20373
20374 wxPyEndAllowThreads(__tstate);
20375 if (PyErr_Occurred()) SWIG_fail;
20376 }
20377 {
20378 wxDateTime * resultptr;
20379 resultptr = new wxDateTime((wxDateTime &) result);
20380 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20381 }
20382 return resultobj;
20383 fail:
20384 return NULL;
20385}
20386
20387
20388static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20389 PyObject *resultobj;
20390 wxDateTime *arg1 = (wxDateTime *) 0 ;
20391 wxDateSpan *arg2 = 0 ;
20392 wxDateTime result;
20393 PyObject * obj0 = 0 ;
20394 PyObject * obj1 = 0 ;
20395
20396 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20400 SWIG_POINTER_EXCEPTION | 0)) == -1)
20401 SWIG_fail;
20402 if (arg2 == NULL) {
20403 PyErr_SetString(PyExc_TypeError,"null reference");
20404 SWIG_fail;
20405 }
20406 {
20407 PyThreadState* __tstate = wxPyBeginAllowThreads();
20408 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20409
20410 wxPyEndAllowThreads(__tstate);
20411 if (PyErr_Occurred()) SWIG_fail;
20412 }
20413 {
20414 wxDateTime * resultptr;
20415 resultptr = new wxDateTime((wxDateTime &) result);
20416 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20417 }
20418 return resultobj;
20419 fail:
20420 return NULL;
20421}
20422
20423
20424static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20425 int argc;
20426 PyObject *argv[3];
20427 int ii;
20428
20429 argc = PyObject_Length(args);
20430 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20431 argv[ii] = PyTuple_GetItem(args,ii);
20432 }
20433 if (argc == 2) {
20434 int _v;
20435 {
20436 void *ptr;
20437 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20438 _v = 0;
20439 PyErr_Clear();
20440 } else {
20441 _v = 1;
20442 }
20443 }
20444 if (_v) {
20445 {
20446 void *ptr;
20447 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20448 _v = 0;
20449 PyErr_Clear();
20450 } else {
20451 _v = 1;
20452 }
20453 }
20454 if (_v) {
20455 return _wrap_DateTime___add____SWIG_0(self,args);
20456 }
20457 }
20458 }
20459 if (argc == 2) {
20460 int _v;
20461 {
20462 void *ptr;
20463 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20464 _v = 0;
20465 PyErr_Clear();
20466 } else {
20467 _v = 1;
20468 }
20469 }
20470 if (_v) {
20471 {
20472 void *ptr;
20473 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20474 _v = 0;
20475 PyErr_Clear();
20476 } else {
20477 _v = 1;
20478 }
20479 }
20480 if (_v) {
20481 return _wrap_DateTime___add____SWIG_1(self,args);
20482 }
20483 }
20484 }
20485
20486 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20487 return NULL;
20488}
20489
20490
20491static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20492 PyObject *resultobj;
20493 wxDateTime *arg1 = (wxDateTime *) 0 ;
20494 wxDateTime *arg2 = 0 ;
20495 wxTimeSpan result;
20496 PyObject * obj0 = 0 ;
20497 PyObject * obj1 = 0 ;
20498
20499 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20502 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20503 SWIG_POINTER_EXCEPTION | 0)) == -1)
20504 SWIG_fail;
20505 if (arg2 == NULL) {
20506 PyErr_SetString(PyExc_TypeError,"null reference");
20507 SWIG_fail;
20508 }
20509 {
20510 PyThreadState* __tstate = wxPyBeginAllowThreads();
20511 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20512
20513 wxPyEndAllowThreads(__tstate);
20514 if (PyErr_Occurred()) SWIG_fail;
20515 }
20516 {
20517 wxTimeSpan * resultptr;
20518 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20519 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20520 }
20521 return resultobj;
20522 fail:
20523 return NULL;
20524}
20525
20526
20527static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20528 PyObject *resultobj;
20529 wxDateTime *arg1 = (wxDateTime *) 0 ;
20530 wxTimeSpan *arg2 = 0 ;
20531 wxDateTime result;
20532 PyObject * obj0 = 0 ;
20533 PyObject * obj1 = 0 ;
20534
20535 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20538 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20539 SWIG_POINTER_EXCEPTION | 0)) == -1)
20540 SWIG_fail;
20541 if (arg2 == NULL) {
20542 PyErr_SetString(PyExc_TypeError,"null reference");
20543 SWIG_fail;
20544 }
20545 {
20546 PyThreadState* __tstate = wxPyBeginAllowThreads();
20547 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20548
20549 wxPyEndAllowThreads(__tstate);
20550 if (PyErr_Occurred()) SWIG_fail;
20551 }
20552 {
20553 wxDateTime * resultptr;
20554 resultptr = new wxDateTime((wxDateTime &) result);
20555 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20556 }
20557 return resultobj;
20558 fail:
20559 return NULL;
20560}
20561
20562
20563static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20564 PyObject *resultobj;
20565 wxDateTime *arg1 = (wxDateTime *) 0 ;
20566 wxDateSpan *arg2 = 0 ;
20567 wxDateTime result;
20568 PyObject * obj0 = 0 ;
20569 PyObject * obj1 = 0 ;
20570
20571 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20574 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20575 SWIG_POINTER_EXCEPTION | 0)) == -1)
20576 SWIG_fail;
20577 if (arg2 == NULL) {
20578 PyErr_SetString(PyExc_TypeError,"null reference");
20579 SWIG_fail;
20580 }
20581 {
20582 PyThreadState* __tstate = wxPyBeginAllowThreads();
20583 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20584
20585 wxPyEndAllowThreads(__tstate);
20586 if (PyErr_Occurred()) SWIG_fail;
20587 }
20588 {
20589 wxDateTime * resultptr;
20590 resultptr = new wxDateTime((wxDateTime &) result);
20591 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20592 }
20593 return resultobj;
20594 fail:
20595 return NULL;
20596}
20597
20598
20599static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20600 int argc;
20601 PyObject *argv[3];
20602 int ii;
20603
20604 argc = PyObject_Length(args);
20605 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20606 argv[ii] = PyTuple_GetItem(args,ii);
20607 }
20608 if (argc == 2) {
20609 int _v;
20610 {
20611 void *ptr;
20612 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20613 _v = 0;
20614 PyErr_Clear();
20615 } else {
20616 _v = 1;
20617 }
20618 }
20619 if (_v) {
20620 {
20621 void *ptr;
20622 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20623 _v = 0;
20624 PyErr_Clear();
20625 } else {
20626 _v = 1;
20627 }
20628 }
20629 if (_v) {
20630 return _wrap_DateTime___sub____SWIG_0(self,args);
20631 }
20632 }
20633 }
20634 if (argc == 2) {
20635 int _v;
20636 {
20637 void *ptr;
20638 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20639 _v = 0;
20640 PyErr_Clear();
20641 } else {
20642 _v = 1;
20643 }
20644 }
20645 if (_v) {
20646 {
20647 void *ptr;
20648 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20649 _v = 0;
20650 PyErr_Clear();
20651 } else {
20652 _v = 1;
20653 }
20654 }
20655 if (_v) {
20656 return _wrap_DateTime___sub____SWIG_1(self,args);
20657 }
20658 }
20659 }
20660 if (argc == 2) {
20661 int _v;
20662 {
20663 void *ptr;
20664 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20665 _v = 0;
20666 PyErr_Clear();
20667 } else {
20668 _v = 1;
20669 }
20670 }
20671 if (_v) {
20672 {
20673 void *ptr;
20674 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20675 _v = 0;
20676 PyErr_Clear();
20677 } else {
20678 _v = 1;
20679 }
20680 }
20681 if (_v) {
20682 return _wrap_DateTime___sub____SWIG_2(self,args);
20683 }
20684 }
20685 }
20686
20687 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20688 return NULL;
20689}
20690
20691
20692static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20693 PyObject *resultobj;
20694 wxDateTime *arg1 = (wxDateTime *) 0 ;
20695 wxDateTime *arg2 = (wxDateTime *) 0 ;
20696 bool result;
20697 PyObject * obj0 = 0 ;
20698 PyObject * obj1 = 0 ;
20699
20700 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20703 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20705 {
20706 PyThreadState* __tstate = wxPyBeginAllowThreads();
20707 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20708
20709 wxPyEndAllowThreads(__tstate);
20710 if (PyErr_Occurred()) SWIG_fail;
20711 }
20712 {
20713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20714 }
20715 return resultobj;
20716 fail:
20717 return NULL;
20718}
20719
20720
20721static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20722 PyObject *resultobj;
20723 wxDateTime *arg1 = (wxDateTime *) 0 ;
20724 wxDateTime *arg2 = (wxDateTime *) 0 ;
20725 bool result;
20726 PyObject * obj0 = 0 ;
20727 PyObject * obj1 = 0 ;
20728
20729 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20732 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20734 {
20735 PyThreadState* __tstate = wxPyBeginAllowThreads();
20736 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20737
20738 wxPyEndAllowThreads(__tstate);
20739 if (PyErr_Occurred()) SWIG_fail;
20740 }
20741 {
20742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20743 }
20744 return resultobj;
20745 fail:
20746 return NULL;
20747}
20748
20749
20750static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20751 PyObject *resultobj;
20752 wxDateTime *arg1 = (wxDateTime *) 0 ;
20753 wxDateTime *arg2 = (wxDateTime *) 0 ;
20754 bool result;
20755 PyObject * obj0 = 0 ;
20756 PyObject * obj1 = 0 ;
20757
20758 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20761 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20763 {
20764 PyThreadState* __tstate = wxPyBeginAllowThreads();
20765 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20766
20767 wxPyEndAllowThreads(__tstate);
20768 if (PyErr_Occurred()) SWIG_fail;
20769 }
20770 {
20771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20772 }
20773 return resultobj;
20774 fail:
20775 return NULL;
20776}
20777
20778
20779static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20780 PyObject *resultobj;
20781 wxDateTime *arg1 = (wxDateTime *) 0 ;
20782 wxDateTime *arg2 = (wxDateTime *) 0 ;
20783 bool result;
20784 PyObject * obj0 = 0 ;
20785 PyObject * obj1 = 0 ;
20786
20787 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20790 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20792 {
20793 PyThreadState* __tstate = wxPyBeginAllowThreads();
20794 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20795
20796 wxPyEndAllowThreads(__tstate);
20797 if (PyErr_Occurred()) SWIG_fail;
20798 }
20799 {
20800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20801 }
20802 return resultobj;
20803 fail:
20804 return NULL;
20805}
20806
20807
20808static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20809 PyObject *resultobj;
20810 wxDateTime *arg1 = (wxDateTime *) 0 ;
20811 wxDateTime *arg2 = (wxDateTime *) 0 ;
20812 bool result;
20813 PyObject * obj0 = 0 ;
20814 PyObject * obj1 = 0 ;
20815
20816 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20819 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20821 {
20822 PyThreadState* __tstate = wxPyBeginAllowThreads();
20823 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20824
20825 wxPyEndAllowThreads(__tstate);
20826 if (PyErr_Occurred()) SWIG_fail;
20827 }
20828 {
20829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20830 }
20831 return resultobj;
20832 fail:
20833 return NULL;
20834}
20835
20836
20837static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20838 PyObject *resultobj;
20839 wxDateTime *arg1 = (wxDateTime *) 0 ;
20840 wxDateTime *arg2 = (wxDateTime *) 0 ;
20841 bool result;
20842 PyObject * obj0 = 0 ;
20843 PyObject * obj1 = 0 ;
20844
20845 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20850 {
20851 PyThreadState* __tstate = wxPyBeginAllowThreads();
20852 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20853
20854 wxPyEndAllowThreads(__tstate);
20855 if (PyErr_Occurred()) SWIG_fail;
20856 }
20857 {
20858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20859 }
20860 return resultobj;
20861 fail:
20862 return NULL;
20863}
20864
20865
20866static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20867 PyObject *resultobj;
20868 wxDateTime *arg1 = (wxDateTime *) 0 ;
20869 wxString *arg2 = 0 ;
20870 int result;
20871 bool temp2 = False ;
20872 PyObject * obj0 = 0 ;
20873 PyObject * obj1 = 0 ;
20874 char *kwnames[] = {
20875 (char *) "self",(char *) "date", NULL
20876 };
20877
20878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20881 {
20882 arg2 = wxString_in_helper(obj1);
20883 if (arg2 == NULL) SWIG_fail;
20884 temp2 = True;
20885 }
20886 {
20887 PyThreadState* __tstate = wxPyBeginAllowThreads();
20888 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20889
20890 wxPyEndAllowThreads(__tstate);
20891 if (PyErr_Occurred()) SWIG_fail;
20892 }
20893 resultobj = SWIG_FromInt((int)result);
20894 {
20895 if (temp2)
20896 delete arg2;
20897 }
20898 return resultobj;
20899 fail:
20900 {
20901 if (temp2)
20902 delete arg2;
20903 }
20904 return NULL;
20905}
20906
20907
20908static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20909 PyObject *resultobj;
20910 wxDateTime *arg1 = (wxDateTime *) 0 ;
20911 wxString *arg2 = 0 ;
20912 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20913 wxString *arg3 = (wxString *) &arg3_defvalue ;
20914 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20915 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20916 int result;
20917 bool temp2 = False ;
20918 bool temp3 = False ;
20919 PyObject * obj0 = 0 ;
20920 PyObject * obj1 = 0 ;
20921 PyObject * obj2 = 0 ;
20922 PyObject * obj3 = 0 ;
20923 char *kwnames[] = {
20924 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20925 };
20926
20927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20930 {
20931 arg2 = wxString_in_helper(obj1);
20932 if (arg2 == NULL) SWIG_fail;
20933 temp2 = True;
20934 }
20935 if (obj2) {
20936 {
20937 arg3 = wxString_in_helper(obj2);
20938 if (arg3 == NULL) SWIG_fail;
20939 temp3 = True;
20940 }
20941 }
20942 if (obj3) {
20943 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20944 SWIG_POINTER_EXCEPTION | 0)) == -1)
20945 SWIG_fail;
20946 if (arg4 == NULL) {
20947 PyErr_SetString(PyExc_TypeError,"null reference");
20948 SWIG_fail;
20949 }
20950 }
20951 {
20952 PyThreadState* __tstate = wxPyBeginAllowThreads();
20953 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20954
20955 wxPyEndAllowThreads(__tstate);
20956 if (PyErr_Occurred()) SWIG_fail;
20957 }
20958 resultobj = SWIG_FromInt((int)result);
20959 {
20960 if (temp2)
20961 delete arg2;
20962 }
20963 {
20964 if (temp3)
20965 delete arg3;
20966 }
20967 return resultobj;
20968 fail:
20969 {
20970 if (temp2)
20971 delete arg2;
20972 }
20973 {
20974 if (temp3)
20975 delete arg3;
20976 }
20977 return NULL;
20978}
20979
20980
20981static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20982 PyObject *resultobj;
20983 wxDateTime *arg1 = (wxDateTime *) 0 ;
20984 wxString *arg2 = 0 ;
20985 int result;
20986 bool temp2 = False ;
20987 PyObject * obj0 = 0 ;
20988 PyObject * obj1 = 0 ;
20989 char *kwnames[] = {
20990 (char *) "self",(char *) "datetime", NULL
20991 };
20992
20993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20996 {
20997 arg2 = wxString_in_helper(obj1);
20998 if (arg2 == NULL) SWIG_fail;
20999 temp2 = True;
21000 }
21001 {
21002 PyThreadState* __tstate = wxPyBeginAllowThreads();
21003 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21004
21005 wxPyEndAllowThreads(__tstate);
21006 if (PyErr_Occurred()) SWIG_fail;
21007 }
21008 resultobj = SWIG_FromInt((int)result);
21009 {
21010 if (temp2)
21011 delete arg2;
21012 }
21013 return resultobj;
21014 fail:
21015 {
21016 if (temp2)
21017 delete arg2;
21018 }
21019 return NULL;
21020}
21021
21022
21023static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21024 PyObject *resultobj;
21025 wxDateTime *arg1 = (wxDateTime *) 0 ;
21026 wxString *arg2 = 0 ;
21027 int result;
21028 bool temp2 = False ;
21029 PyObject * obj0 = 0 ;
21030 PyObject * obj1 = 0 ;
21031 char *kwnames[] = {
21032 (char *) "self",(char *) "date", NULL
21033 };
21034
21035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21038 {
21039 arg2 = wxString_in_helper(obj1);
21040 if (arg2 == NULL) SWIG_fail;
21041 temp2 = True;
21042 }
21043 {
21044 PyThreadState* __tstate = wxPyBeginAllowThreads();
21045 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21046
21047 wxPyEndAllowThreads(__tstate);
21048 if (PyErr_Occurred()) SWIG_fail;
21049 }
21050 resultobj = SWIG_FromInt((int)result);
21051 {
21052 if (temp2)
21053 delete arg2;
21054 }
21055 return resultobj;
21056 fail:
21057 {
21058 if (temp2)
21059 delete arg2;
21060 }
21061 return NULL;
21062}
21063
21064
21065static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21066 PyObject *resultobj;
21067 wxDateTime *arg1 = (wxDateTime *) 0 ;
21068 wxString *arg2 = 0 ;
21069 int result;
21070 bool temp2 = False ;
21071 PyObject * obj0 = 0 ;
21072 PyObject * obj1 = 0 ;
21073 char *kwnames[] = {
21074 (char *) "self",(char *) "time", NULL
21075 };
21076
21077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21080 {
21081 arg2 = wxString_in_helper(obj1);
21082 if (arg2 == NULL) SWIG_fail;
21083 temp2 = True;
21084 }
21085 {
21086 PyThreadState* __tstate = wxPyBeginAllowThreads();
21087 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21088
21089 wxPyEndAllowThreads(__tstate);
21090 if (PyErr_Occurred()) SWIG_fail;
21091 }
21092 resultobj = SWIG_FromInt((int)result);
21093 {
21094 if (temp2)
21095 delete arg2;
21096 }
21097 return resultobj;
21098 fail:
21099 {
21100 if (temp2)
21101 delete arg2;
21102 }
21103 return NULL;
21104}
21105
21106
21107static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
21108 PyObject *resultobj;
21109 wxDateTime *arg1 = (wxDateTime *) 0 ;
21110 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21111 wxString *arg2 = (wxString *) &arg2_defvalue ;
21112 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21113 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21114 wxString result;
21115 bool temp2 = False ;
21116 bool temp3 = False ;
21117 PyObject * obj0 = 0 ;
21118 PyObject * obj1 = 0 ;
21119 PyObject * obj2 = 0 ;
21120 char *kwnames[] = {
21121 (char *) "self",(char *) "format",(char *) "tz", NULL
21122 };
21123
21124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21127 if (obj1) {
21128 {
21129 arg2 = wxString_in_helper(obj1);
21130 if (arg2 == NULL) SWIG_fail;
21131 temp2 = True;
21132 }
21133 }
21134 if (obj2) {
21135 {
21136 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21137 temp3 = True;
21138 }
21139 }
21140 {
21141 PyThreadState* __tstate = wxPyBeginAllowThreads();
21142 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21143
21144 wxPyEndAllowThreads(__tstate);
21145 if (PyErr_Occurred()) SWIG_fail;
21146 }
21147 {
21148#if wxUSE_UNICODE
21149 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21150#else
21151 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21152#endif
21153 }
21154 {
21155 if (temp2)
21156 delete arg2;
21157 }
21158 {
21159 if (temp3) delete arg3;
21160 }
21161 return resultobj;
21162 fail:
21163 {
21164 if (temp2)
21165 delete arg2;
21166 }
21167 {
21168 if (temp3) delete arg3;
21169 }
21170 return NULL;
21171}
21172
21173
21174static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21175 PyObject *resultobj;
21176 wxDateTime *arg1 = (wxDateTime *) 0 ;
21177 wxString result;
21178 PyObject * obj0 = 0 ;
21179 char *kwnames[] = {
21180 (char *) "self", NULL
21181 };
21182
21183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21186 {
21187 PyThreadState* __tstate = wxPyBeginAllowThreads();
21188 result = ((wxDateTime const *)arg1)->FormatDate();
21189
21190 wxPyEndAllowThreads(__tstate);
21191 if (PyErr_Occurred()) SWIG_fail;
21192 }
21193 {
21194#if wxUSE_UNICODE
21195 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21196#else
21197 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21198#endif
21199 }
21200 return resultobj;
21201 fail:
21202 return NULL;
21203}
21204
21205
21206static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21207 PyObject *resultobj;
21208 wxDateTime *arg1 = (wxDateTime *) 0 ;
21209 wxString result;
21210 PyObject * obj0 = 0 ;
21211 char *kwnames[] = {
21212 (char *) "self", NULL
21213 };
21214
21215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21218 {
21219 PyThreadState* __tstate = wxPyBeginAllowThreads();
21220 result = ((wxDateTime const *)arg1)->FormatTime();
21221
21222 wxPyEndAllowThreads(__tstate);
21223 if (PyErr_Occurred()) SWIG_fail;
21224 }
21225 {
21226#if wxUSE_UNICODE
21227 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21228#else
21229 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21230#endif
21231 }
21232 return resultobj;
21233 fail:
21234 return NULL;
21235}
21236
21237
21238static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21239 PyObject *resultobj;
21240 wxDateTime *arg1 = (wxDateTime *) 0 ;
21241 wxString result;
21242 PyObject * obj0 = 0 ;
21243 char *kwnames[] = {
21244 (char *) "self", NULL
21245 };
21246
21247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21250 {
21251 PyThreadState* __tstate = wxPyBeginAllowThreads();
21252 result = ((wxDateTime const *)arg1)->FormatISODate();
21253
21254 wxPyEndAllowThreads(__tstate);
21255 if (PyErr_Occurred()) SWIG_fail;
21256 }
21257 {
21258#if wxUSE_UNICODE
21259 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21260#else
21261 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21262#endif
21263 }
21264 return resultobj;
21265 fail:
21266 return NULL;
21267}
21268
21269
21270static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21271 PyObject *resultobj;
21272 wxDateTime *arg1 = (wxDateTime *) 0 ;
21273 wxString result;
21274 PyObject * obj0 = 0 ;
21275 char *kwnames[] = {
21276 (char *) "self", NULL
21277 };
21278
21279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21282 {
21283 PyThreadState* __tstate = wxPyBeginAllowThreads();
21284 result = ((wxDateTime const *)arg1)->FormatISOTime();
21285
21286 wxPyEndAllowThreads(__tstate);
21287 if (PyErr_Occurred()) SWIG_fail;
21288 }
21289 {
21290#if wxUSE_UNICODE
21291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21292#else
21293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21294#endif
21295 }
21296 return resultobj;
21297 fail:
21298 return NULL;
21299}
21300
21301
21302static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21303 PyObject *obj;
21304 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21305 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21306 Py_INCREF(obj);
21307 return Py_BuildValue((char *)"");
21308}
21309static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21310 PyObject *resultobj;
21311 long arg1 ;
21312 wxTimeSpan result;
21313 PyObject * obj0 = 0 ;
21314 char *kwnames[] = {
21315 (char *) "sec", NULL
21316 };
21317
21318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21319 arg1 = (long) SWIG_AsLong(obj0);
21320 if (PyErr_Occurred()) SWIG_fail;
21321 {
21322 PyThreadState* __tstate = wxPyBeginAllowThreads();
21323 result = wxTimeSpan::Seconds(arg1);
21324
21325 wxPyEndAllowThreads(__tstate);
21326 if (PyErr_Occurred()) SWIG_fail;
21327 }
21328 {
21329 wxTimeSpan * resultptr;
21330 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21331 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21332 }
21333 return resultobj;
21334 fail:
21335 return NULL;
21336}
21337
21338
21339static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21340 PyObject *resultobj;
21341 wxTimeSpan result;
21342 char *kwnames[] = {
21343 NULL
21344 };
21345
21346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21347 {
21348 PyThreadState* __tstate = wxPyBeginAllowThreads();
21349 result = wxTimeSpan::Second();
21350
21351 wxPyEndAllowThreads(__tstate);
21352 if (PyErr_Occurred()) SWIG_fail;
21353 }
21354 {
21355 wxTimeSpan * resultptr;
21356 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21357 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21358 }
21359 return resultobj;
21360 fail:
21361 return NULL;
21362}
21363
21364
21365static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21366 PyObject *resultobj;
21367 long arg1 ;
21368 wxTimeSpan result;
21369 PyObject * obj0 = 0 ;
21370 char *kwnames[] = {
21371 (char *) "min", NULL
21372 };
21373
21374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21375 arg1 = (long) SWIG_AsLong(obj0);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 result = wxTimeSpan::Minutes(arg1);
21380
21381 wxPyEndAllowThreads(__tstate);
21382 if (PyErr_Occurred()) SWIG_fail;
21383 }
21384 {
21385 wxTimeSpan * resultptr;
21386 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21387 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21388 }
21389 return resultobj;
21390 fail:
21391 return NULL;
21392}
21393
21394
21395static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21396 PyObject *resultobj;
21397 wxTimeSpan result;
21398 char *kwnames[] = {
21399 NULL
21400 };
21401
21402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21403 {
21404 PyThreadState* __tstate = wxPyBeginAllowThreads();
21405 result = wxTimeSpan::Minute();
21406
21407 wxPyEndAllowThreads(__tstate);
21408 if (PyErr_Occurred()) SWIG_fail;
21409 }
21410 {
21411 wxTimeSpan * resultptr;
21412 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21413 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21414 }
21415 return resultobj;
21416 fail:
21417 return NULL;
21418}
21419
21420
21421static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21422 PyObject *resultobj;
21423 long arg1 ;
21424 wxTimeSpan result;
21425 PyObject * obj0 = 0 ;
21426 char *kwnames[] = {
21427 (char *) "hours", NULL
21428 };
21429
21430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21431 arg1 = (long) SWIG_AsLong(obj0);
21432 if (PyErr_Occurred()) SWIG_fail;
21433 {
21434 PyThreadState* __tstate = wxPyBeginAllowThreads();
21435 result = wxTimeSpan::Hours(arg1);
21436
21437 wxPyEndAllowThreads(__tstate);
21438 if (PyErr_Occurred()) SWIG_fail;
21439 }
21440 {
21441 wxTimeSpan * resultptr;
21442 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21443 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21444 }
21445 return resultobj;
21446 fail:
21447 return NULL;
21448}
21449
21450
21451static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21452 PyObject *resultobj;
21453 wxTimeSpan result;
21454 char *kwnames[] = {
21455 NULL
21456 };
21457
21458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21459 {
21460 PyThreadState* __tstate = wxPyBeginAllowThreads();
21461 result = wxTimeSpan::Hour();
21462
21463 wxPyEndAllowThreads(__tstate);
21464 if (PyErr_Occurred()) SWIG_fail;
21465 }
21466 {
21467 wxTimeSpan * resultptr;
21468 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21469 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21470 }
21471 return resultobj;
21472 fail:
21473 return NULL;
21474}
21475
21476
21477static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21478 PyObject *resultobj;
21479 long arg1 ;
21480 wxTimeSpan result;
21481 PyObject * obj0 = 0 ;
21482 char *kwnames[] = {
21483 (char *) "days", NULL
21484 };
21485
21486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21487 arg1 = (long) SWIG_AsLong(obj0);
21488 if (PyErr_Occurred()) SWIG_fail;
21489 {
21490 PyThreadState* __tstate = wxPyBeginAllowThreads();
21491 result = wxTimeSpan::Days(arg1);
21492
21493 wxPyEndAllowThreads(__tstate);
21494 if (PyErr_Occurred()) SWIG_fail;
21495 }
21496 {
21497 wxTimeSpan * resultptr;
21498 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21499 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21500 }
21501 return resultobj;
21502 fail:
21503 return NULL;
21504}
21505
21506
21507static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21508 PyObject *resultobj;
21509 wxTimeSpan result;
21510 char *kwnames[] = {
21511 NULL
21512 };
21513
21514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21515 {
21516 PyThreadState* __tstate = wxPyBeginAllowThreads();
21517 result = wxTimeSpan::Day();
21518
21519 wxPyEndAllowThreads(__tstate);
21520 if (PyErr_Occurred()) SWIG_fail;
21521 }
21522 {
21523 wxTimeSpan * resultptr;
21524 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21525 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21526 }
21527 return resultobj;
21528 fail:
21529 return NULL;
21530}
21531
21532
21533static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21534 PyObject *resultobj;
21535 long arg1 ;
21536 wxTimeSpan result;
21537 PyObject * obj0 = 0 ;
21538 char *kwnames[] = {
21539 (char *) "days", NULL
21540 };
21541
21542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21543 arg1 = (long) SWIG_AsLong(obj0);
21544 if (PyErr_Occurred()) SWIG_fail;
21545 {
21546 PyThreadState* __tstate = wxPyBeginAllowThreads();
21547 result = wxTimeSpan::Weeks(arg1);
21548
21549 wxPyEndAllowThreads(__tstate);
21550 if (PyErr_Occurred()) SWIG_fail;
21551 }
21552 {
21553 wxTimeSpan * resultptr;
21554 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21555 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21556 }
21557 return resultobj;
21558 fail:
21559 return NULL;
21560}
21561
21562
21563static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21564 PyObject *resultobj;
21565 wxTimeSpan result;
21566 char *kwnames[] = {
21567 NULL
21568 };
21569
21570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21571 {
21572 PyThreadState* __tstate = wxPyBeginAllowThreads();
21573 result = wxTimeSpan::Week();
21574
21575 wxPyEndAllowThreads(__tstate);
21576 if (PyErr_Occurred()) SWIG_fail;
21577 }
21578 {
21579 wxTimeSpan * resultptr;
21580 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21581 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21582 }
21583 return resultobj;
21584 fail:
21585 return NULL;
21586}
21587
21588
21589static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21590 PyObject *resultobj;
21591 long arg1 = (long) 0 ;
21592 long arg2 = (long) 0 ;
21593 long arg3 = (long) 0 ;
21594 long arg4 = (long) 0 ;
21595 wxTimeSpan *result;
21596 PyObject * obj0 = 0 ;
21597 PyObject * obj1 = 0 ;
21598 PyObject * obj2 = 0 ;
21599 PyObject * obj3 = 0 ;
21600 char *kwnames[] = {
21601 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21602 };
21603
21604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21605 if (obj0) {
21606 arg1 = (long) SWIG_AsLong(obj0);
21607 if (PyErr_Occurred()) SWIG_fail;
21608 }
21609 if (obj1) {
21610 arg2 = (long) SWIG_AsLong(obj1);
21611 if (PyErr_Occurred()) SWIG_fail;
21612 }
21613 if (obj2) {
21614 arg3 = (long) SWIG_AsLong(obj2);
21615 if (PyErr_Occurred()) SWIG_fail;
21616 }
21617 if (obj3) {
21618 arg4 = (long) SWIG_AsLong(obj3);
21619 if (PyErr_Occurred()) SWIG_fail;
21620 }
21621 {
21622 PyThreadState* __tstate = wxPyBeginAllowThreads();
21623 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21624
21625 wxPyEndAllowThreads(__tstate);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 }
21628 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21629 return resultobj;
21630 fail:
21631 return NULL;
21632}
21633
21634
21635static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21636 PyObject *resultobj;
21637 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21638 PyObject * obj0 = 0 ;
21639 char *kwnames[] = {
21640 (char *) "self", NULL
21641 };
21642
21643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21646 {
21647 PyThreadState* __tstate = wxPyBeginAllowThreads();
21648 delete arg1;
21649
21650 wxPyEndAllowThreads(__tstate);
21651 if (PyErr_Occurred()) SWIG_fail;
21652 }
21653 Py_INCREF(Py_None); resultobj = Py_None;
21654 return resultobj;
21655 fail:
21656 return NULL;
21657}
21658
21659
21660static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21661 PyObject *resultobj;
21662 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21663 wxTimeSpan *arg2 = 0 ;
21664 wxTimeSpan *result;
21665 PyObject * obj0 = 0 ;
21666 PyObject * obj1 = 0 ;
21667 char *kwnames[] = {
21668 (char *) "self",(char *) "diff", NULL
21669 };
21670
21671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21675 SWIG_POINTER_EXCEPTION | 0)) == -1)
21676 SWIG_fail;
21677 if (arg2 == NULL) {
21678 PyErr_SetString(PyExc_TypeError,"null reference");
21679 SWIG_fail;
21680 }
21681 {
21682 PyThreadState* __tstate = wxPyBeginAllowThreads();
21683 {
21684 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21685 result = (wxTimeSpan *) &_result_ref;
21686 }
21687
21688 wxPyEndAllowThreads(__tstate);
21689 if (PyErr_Occurred()) SWIG_fail;
21690 }
21691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21692 return resultobj;
21693 fail:
21694 return NULL;
21695}
21696
21697
21698static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21699 PyObject *resultobj;
21700 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21701 wxTimeSpan *arg2 = 0 ;
21702 wxTimeSpan *result;
21703 PyObject * obj0 = 0 ;
21704 PyObject * obj1 = 0 ;
21705 char *kwnames[] = {
21706 (char *) "self",(char *) "diff", NULL
21707 };
21708
21709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21712 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21713 SWIG_POINTER_EXCEPTION | 0)) == -1)
21714 SWIG_fail;
21715 if (arg2 == NULL) {
21716 PyErr_SetString(PyExc_TypeError,"null reference");
21717 SWIG_fail;
21718 }
21719 {
21720 PyThreadState* __tstate = wxPyBeginAllowThreads();
21721 {
21722 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21723 result = (wxTimeSpan *) &_result_ref;
21724 }
21725
21726 wxPyEndAllowThreads(__tstate);
21727 if (PyErr_Occurred()) SWIG_fail;
21728 }
21729 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21730 return resultobj;
21731 fail:
21732 return NULL;
21733}
21734
21735
21736static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21737 PyObject *resultobj;
21738 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21739 int arg2 ;
21740 wxTimeSpan *result;
21741 PyObject * obj0 = 0 ;
21742 PyObject * obj1 = 0 ;
21743 char *kwnames[] = {
21744 (char *) "self",(char *) "n", NULL
21745 };
21746
21747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21750 arg2 = (int) SWIG_AsInt(obj1);
21751 if (PyErr_Occurred()) SWIG_fail;
21752 {
21753 PyThreadState* __tstate = wxPyBeginAllowThreads();
21754 {
21755 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21756 result = (wxTimeSpan *) &_result_ref;
21757 }
21758
21759 wxPyEndAllowThreads(__tstate);
21760 if (PyErr_Occurred()) SWIG_fail;
21761 }
21762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21763 return resultobj;
21764 fail:
21765 return NULL;
21766}
21767
21768
21769static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21770 PyObject *resultobj;
21771 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21772 wxTimeSpan *result;
21773 PyObject * obj0 = 0 ;
21774 char *kwnames[] = {
21775 (char *) "self", NULL
21776 };
21777
21778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21781 {
21782 PyThreadState* __tstate = wxPyBeginAllowThreads();
21783 {
21784 wxTimeSpan &_result_ref = (arg1)->Neg();
21785 result = (wxTimeSpan *) &_result_ref;
21786 }
21787
21788 wxPyEndAllowThreads(__tstate);
21789 if (PyErr_Occurred()) SWIG_fail;
21790 }
21791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21792 return resultobj;
21793 fail:
21794 return NULL;
21795}
21796
21797
21798static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21799 PyObject *resultobj;
21800 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21801 wxTimeSpan result;
21802 PyObject * obj0 = 0 ;
21803 char *kwnames[] = {
21804 (char *) "self", NULL
21805 };
21806
21807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21810 {
21811 PyThreadState* __tstate = wxPyBeginAllowThreads();
21812 result = ((wxTimeSpan const *)arg1)->Abs();
21813
21814 wxPyEndAllowThreads(__tstate);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 }
21817 {
21818 wxTimeSpan * resultptr;
21819 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21820 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21821 }
21822 return resultobj;
21823 fail:
21824 return NULL;
21825}
21826
21827
21828static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21829 PyObject *resultobj;
21830 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21831 wxTimeSpan *arg2 = 0 ;
21832 wxTimeSpan *result;
21833 PyObject * obj0 = 0 ;
21834 PyObject * obj1 = 0 ;
21835 char *kwnames[] = {
21836 (char *) "self",(char *) "diff", NULL
21837 };
21838
21839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21842 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21843 SWIG_POINTER_EXCEPTION | 0)) == -1)
21844 SWIG_fail;
21845 if (arg2 == NULL) {
21846 PyErr_SetString(PyExc_TypeError,"null reference");
21847 SWIG_fail;
21848 }
21849 {
21850 PyThreadState* __tstate = wxPyBeginAllowThreads();
21851 {
21852 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21853 result = (wxTimeSpan *) &_result_ref;
21854 }
21855
21856 wxPyEndAllowThreads(__tstate);
21857 if (PyErr_Occurred()) SWIG_fail;
21858 }
21859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21860 return resultobj;
21861 fail:
21862 return NULL;
21863}
21864
21865
21866static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21867 PyObject *resultobj;
21868 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21869 wxTimeSpan *arg2 = 0 ;
21870 wxTimeSpan *result;
21871 PyObject * obj0 = 0 ;
21872 PyObject * obj1 = 0 ;
21873 char *kwnames[] = {
21874 (char *) "self",(char *) "diff", NULL
21875 };
21876
21877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21881 SWIG_POINTER_EXCEPTION | 0)) == -1)
21882 SWIG_fail;
21883 if (arg2 == NULL) {
21884 PyErr_SetString(PyExc_TypeError,"null reference");
21885 SWIG_fail;
21886 }
21887 {
21888 PyThreadState* __tstate = wxPyBeginAllowThreads();
21889 {
21890 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21891 result = (wxTimeSpan *) &_result_ref;
21892 }
21893
21894 wxPyEndAllowThreads(__tstate);
21895 if (PyErr_Occurred()) SWIG_fail;
21896 }
21897 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21898 return resultobj;
21899 fail:
21900 return NULL;
21901}
21902
21903
21904static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21905 PyObject *resultobj;
21906 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21907 int arg2 ;
21908 wxTimeSpan *result;
21909 PyObject * obj0 = 0 ;
21910 PyObject * obj1 = 0 ;
21911 char *kwnames[] = {
21912 (char *) "self",(char *) "n", NULL
21913 };
21914
21915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21918 arg2 = (int) SWIG_AsInt(obj1);
21919 if (PyErr_Occurred()) SWIG_fail;
21920 {
21921 PyThreadState* __tstate = wxPyBeginAllowThreads();
21922 {
21923 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21924 result = (wxTimeSpan *) &_result_ref;
21925 }
21926
21927 wxPyEndAllowThreads(__tstate);
21928 if (PyErr_Occurred()) SWIG_fail;
21929 }
21930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21931 return resultobj;
21932 fail:
21933 return NULL;
21934}
21935
21936
21937static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21938 PyObject *resultobj;
21939 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21940 wxTimeSpan *result;
21941 PyObject * obj0 = 0 ;
21942 char *kwnames[] = {
21943 (char *) "self", NULL
21944 };
21945
21946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21949 {
21950 PyThreadState* __tstate = wxPyBeginAllowThreads();
21951 {
21952 wxTimeSpan &_result_ref = (arg1)->operator -();
21953 result = (wxTimeSpan *) &_result_ref;
21954 }
21955
21956 wxPyEndAllowThreads(__tstate);
21957 if (PyErr_Occurred()) SWIG_fail;
21958 }
21959 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21960 return resultobj;
21961 fail:
21962 return NULL;
21963}
21964
21965
21966static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21967 PyObject *resultobj;
21968 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21969 wxTimeSpan *arg2 = 0 ;
21970 wxTimeSpan result;
21971 PyObject * obj0 = 0 ;
21972 PyObject * obj1 = 0 ;
21973 char *kwnames[] = {
21974 (char *) "self",(char *) "other", NULL
21975 };
21976
21977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21980 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21981 SWIG_POINTER_EXCEPTION | 0)) == -1)
21982 SWIG_fail;
21983 if (arg2 == NULL) {
21984 PyErr_SetString(PyExc_TypeError,"null reference");
21985 SWIG_fail;
21986 }
21987 {
21988 PyThreadState* __tstate = wxPyBeginAllowThreads();
21989 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21990
21991 wxPyEndAllowThreads(__tstate);
21992 if (PyErr_Occurred()) SWIG_fail;
21993 }
21994 {
21995 wxTimeSpan * resultptr;
21996 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21997 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21998 }
21999 return resultobj;
22000 fail:
22001 return NULL;
22002}
22003
22004
22005static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
22006 PyObject *resultobj;
22007 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22008 wxTimeSpan *arg2 = 0 ;
22009 wxTimeSpan result;
22010 PyObject * obj0 = 0 ;
22011 PyObject * obj1 = 0 ;
22012 char *kwnames[] = {
22013 (char *) "self",(char *) "other", NULL
22014 };
22015
22016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22019 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22020 SWIG_POINTER_EXCEPTION | 0)) == -1)
22021 SWIG_fail;
22022 if (arg2 == NULL) {
22023 PyErr_SetString(PyExc_TypeError,"null reference");
22024 SWIG_fail;
22025 }
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22029
22030 wxPyEndAllowThreads(__tstate);
22031 if (PyErr_Occurred()) SWIG_fail;
22032 }
22033 {
22034 wxTimeSpan * resultptr;
22035 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22036 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22037 }
22038 return resultobj;
22039 fail:
22040 return NULL;
22041}
22042
22043
22044static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22045 PyObject *resultobj;
22046 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22047 int arg2 ;
22048 wxTimeSpan result;
22049 PyObject * obj0 = 0 ;
22050 PyObject * obj1 = 0 ;
22051 char *kwnames[] = {
22052 (char *) "self",(char *) "n", NULL
22053 };
22054
22055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22058 arg2 = (int) SWIG_AsInt(obj1);
22059 if (PyErr_Occurred()) SWIG_fail;
22060 {
22061 PyThreadState* __tstate = wxPyBeginAllowThreads();
22062 result = wxTimeSpan___mul__(arg1,arg2);
22063
22064 wxPyEndAllowThreads(__tstate);
22065 if (PyErr_Occurred()) SWIG_fail;
22066 }
22067 {
22068 wxTimeSpan * resultptr;
22069 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22070 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22071 }
22072 return resultobj;
22073 fail:
22074 return NULL;
22075}
22076
22077
22078static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22079 PyObject *resultobj;
22080 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22081 int arg2 ;
22082 wxTimeSpan result;
22083 PyObject * obj0 = 0 ;
22084 PyObject * obj1 = 0 ;
22085 char *kwnames[] = {
22086 (char *) "self",(char *) "n", NULL
22087 };
22088
22089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22092 arg2 = (int) SWIG_AsInt(obj1);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 {
22095 PyThreadState* __tstate = wxPyBeginAllowThreads();
22096 result = wxTimeSpan___rmul__(arg1,arg2);
22097
22098 wxPyEndAllowThreads(__tstate);
22099 if (PyErr_Occurred()) SWIG_fail;
22100 }
22101 {
22102 wxTimeSpan * resultptr;
22103 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22104 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22105 }
22106 return resultobj;
22107 fail:
22108 return NULL;
22109}
22110
22111
22112static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22113 PyObject *resultobj;
22114 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22115 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22116 bool result;
22117 PyObject * obj0 = 0 ;
22118 PyObject * obj1 = 0 ;
22119 char *kwnames[] = {
22120 (char *) "self",(char *) "other", NULL
22121 };
22122
22123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22128 {
22129 PyThreadState* __tstate = wxPyBeginAllowThreads();
22130 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22131
22132 wxPyEndAllowThreads(__tstate);
22133 if (PyErr_Occurred()) SWIG_fail;
22134 }
22135 {
22136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22137 }
22138 return resultobj;
22139 fail:
22140 return NULL;
22141}
22142
22143
22144static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22145 PyObject *resultobj;
22146 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22147 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22148 bool result;
22149 PyObject * obj0 = 0 ;
22150 PyObject * obj1 = 0 ;
22151 char *kwnames[] = {
22152 (char *) "self",(char *) "other", NULL
22153 };
22154
22155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22158 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22160 {
22161 PyThreadState* __tstate = wxPyBeginAllowThreads();
22162 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22163
22164 wxPyEndAllowThreads(__tstate);
22165 if (PyErr_Occurred()) SWIG_fail;
22166 }
22167 {
22168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22169 }
22170 return resultobj;
22171 fail:
22172 return NULL;
22173}
22174
22175
22176static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22177 PyObject *resultobj;
22178 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22179 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22180 bool result;
22181 PyObject * obj0 = 0 ;
22182 PyObject * obj1 = 0 ;
22183 char *kwnames[] = {
22184 (char *) "self",(char *) "other", NULL
22185 };
22186
22187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22190 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22192 {
22193 PyThreadState* __tstate = wxPyBeginAllowThreads();
22194 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22195
22196 wxPyEndAllowThreads(__tstate);
22197 if (PyErr_Occurred()) SWIG_fail;
22198 }
22199 {
22200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22201 }
22202 return resultobj;
22203 fail:
22204 return NULL;
22205}
22206
22207
22208static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22209 PyObject *resultobj;
22210 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22211 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22212 bool result;
22213 PyObject * obj0 = 0 ;
22214 PyObject * obj1 = 0 ;
22215 char *kwnames[] = {
22216 (char *) "self",(char *) "other", NULL
22217 };
22218
22219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22222 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22224 {
22225 PyThreadState* __tstate = wxPyBeginAllowThreads();
22226 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22227
22228 wxPyEndAllowThreads(__tstate);
22229 if (PyErr_Occurred()) SWIG_fail;
22230 }
22231 {
22232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22233 }
22234 return resultobj;
22235 fail:
22236 return NULL;
22237}
22238
22239
22240static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22241 PyObject *resultobj;
22242 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22243 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22244 bool result;
22245 PyObject * obj0 = 0 ;
22246 PyObject * obj1 = 0 ;
22247 char *kwnames[] = {
22248 (char *) "self",(char *) "other", NULL
22249 };
22250
22251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22254 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22256 {
22257 PyThreadState* __tstate = wxPyBeginAllowThreads();
22258 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22259
22260 wxPyEndAllowThreads(__tstate);
22261 if (PyErr_Occurred()) SWIG_fail;
22262 }
22263 {
22264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22265 }
22266 return resultobj;
22267 fail:
22268 return NULL;
22269}
22270
22271
22272static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22273 PyObject *resultobj;
22274 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22275 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22276 bool result;
22277 PyObject * obj0 = 0 ;
22278 PyObject * obj1 = 0 ;
22279 char *kwnames[] = {
22280 (char *) "self",(char *) "other", NULL
22281 };
22282
22283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22288 {
22289 PyThreadState* __tstate = wxPyBeginAllowThreads();
22290 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22291
22292 wxPyEndAllowThreads(__tstate);
22293 if (PyErr_Occurred()) SWIG_fail;
22294 }
22295 {
22296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22297 }
22298 return resultobj;
22299 fail:
22300 return NULL;
22301}
22302
22303
22304static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22305 PyObject *resultobj;
22306 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22307 bool result;
22308 PyObject * obj0 = 0 ;
22309 char *kwnames[] = {
22310 (char *) "self", NULL
22311 };
22312
22313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22316 {
22317 PyThreadState* __tstate = wxPyBeginAllowThreads();
22318 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22319
22320 wxPyEndAllowThreads(__tstate);
22321 if (PyErr_Occurred()) SWIG_fail;
22322 }
22323 {
22324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22325 }
22326 return resultobj;
22327 fail:
22328 return NULL;
22329}
22330
22331
22332static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22333 PyObject *resultobj;
22334 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22335 bool result;
22336 PyObject * obj0 = 0 ;
22337 char *kwnames[] = {
22338 (char *) "self", NULL
22339 };
22340
22341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22344 {
22345 PyThreadState* __tstate = wxPyBeginAllowThreads();
22346 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22347
22348 wxPyEndAllowThreads(__tstate);
22349 if (PyErr_Occurred()) SWIG_fail;
22350 }
22351 {
22352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22353 }
22354 return resultobj;
22355 fail:
22356 return NULL;
22357}
22358
22359
22360static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22361 PyObject *resultobj;
22362 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22363 bool result;
22364 PyObject * obj0 = 0 ;
22365 char *kwnames[] = {
22366 (char *) "self", NULL
22367 };
22368
22369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22372 {
22373 PyThreadState* __tstate = wxPyBeginAllowThreads();
22374 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22375
22376 wxPyEndAllowThreads(__tstate);
22377 if (PyErr_Occurred()) SWIG_fail;
22378 }
22379 {
22380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22381 }
22382 return resultobj;
22383 fail:
22384 return NULL;
22385}
22386
22387
22388static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22389 PyObject *resultobj;
22390 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22391 wxTimeSpan *arg2 = 0 ;
22392 bool result;
22393 PyObject * obj0 = 0 ;
22394 PyObject * obj1 = 0 ;
22395 char *kwnames[] = {
22396 (char *) "self",(char *) "ts", NULL
22397 };
22398
22399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22403 SWIG_POINTER_EXCEPTION | 0)) == -1)
22404 SWIG_fail;
22405 if (arg2 == NULL) {
22406 PyErr_SetString(PyExc_TypeError,"null reference");
22407 SWIG_fail;
22408 }
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22412
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 {
22417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22418 }
22419 return resultobj;
22420 fail:
22421 return NULL;
22422}
22423
22424
22425static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22426 PyObject *resultobj;
22427 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22428 wxTimeSpan *arg2 = 0 ;
22429 bool result;
22430 PyObject * obj0 = 0 ;
22431 PyObject * obj1 = 0 ;
22432 char *kwnames[] = {
22433 (char *) "self",(char *) "ts", NULL
22434 };
22435
22436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22440 SWIG_POINTER_EXCEPTION | 0)) == -1)
22441 SWIG_fail;
22442 if (arg2 == NULL) {
22443 PyErr_SetString(PyExc_TypeError,"null reference");
22444 SWIG_fail;
22445 }
22446 {
22447 PyThreadState* __tstate = wxPyBeginAllowThreads();
22448 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22449
22450 wxPyEndAllowThreads(__tstate);
22451 if (PyErr_Occurred()) SWIG_fail;
22452 }
22453 {
22454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22455 }
22456 return resultobj;
22457 fail:
22458 return NULL;
22459}
22460
22461
22462static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22463 PyObject *resultobj;
22464 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22465 wxTimeSpan *arg2 = 0 ;
22466 bool result;
22467 PyObject * obj0 = 0 ;
22468 PyObject * obj1 = 0 ;
22469 char *kwnames[] = {
22470 (char *) "self",(char *) "t", NULL
22471 };
22472
22473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22476 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22477 SWIG_POINTER_EXCEPTION | 0)) == -1)
22478 SWIG_fail;
22479 if (arg2 == NULL) {
22480 PyErr_SetString(PyExc_TypeError,"null reference");
22481 SWIG_fail;
22482 }
22483 {
22484 PyThreadState* __tstate = wxPyBeginAllowThreads();
22485 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22486
22487 wxPyEndAllowThreads(__tstate);
22488 if (PyErr_Occurred()) SWIG_fail;
22489 }
22490 {
22491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22492 }
22493 return resultobj;
22494 fail:
22495 return NULL;
22496}
22497
22498
22499static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22500 PyObject *resultobj;
22501 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22502 int result;
22503 PyObject * obj0 = 0 ;
22504 char *kwnames[] = {
22505 (char *) "self", NULL
22506 };
22507
22508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22511 {
22512 PyThreadState* __tstate = wxPyBeginAllowThreads();
22513 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22514
22515 wxPyEndAllowThreads(__tstate);
22516 if (PyErr_Occurred()) SWIG_fail;
22517 }
22518 resultobj = SWIG_FromInt((int)result);
22519 return resultobj;
22520 fail:
22521 return NULL;
22522}
22523
22524
22525static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22526 PyObject *resultobj;
22527 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22528 int result;
22529 PyObject * obj0 = 0 ;
22530 char *kwnames[] = {
22531 (char *) "self", NULL
22532 };
22533
22534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22540
22541 wxPyEndAllowThreads(__tstate);
22542 if (PyErr_Occurred()) SWIG_fail;
22543 }
22544 resultobj = SWIG_FromInt((int)result);
22545 return resultobj;
22546 fail:
22547 return NULL;
22548}
22549
22550
22551static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22552 PyObject *resultobj;
22553 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22554 int result;
22555 PyObject * obj0 = 0 ;
22556 char *kwnames[] = {
22557 (char *) "self", NULL
22558 };
22559
22560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22563 {
22564 PyThreadState* __tstate = wxPyBeginAllowThreads();
22565 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22566
22567 wxPyEndAllowThreads(__tstate);
22568 if (PyErr_Occurred()) SWIG_fail;
22569 }
22570 resultobj = SWIG_FromInt((int)result);
22571 return resultobj;
22572 fail:
22573 return NULL;
22574}
22575
22576
22577static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22578 PyObject *resultobj;
22579 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22580 int result;
22581 PyObject * obj0 = 0 ;
22582 char *kwnames[] = {
22583 (char *) "self", NULL
22584 };
22585
22586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22589 {
22590 PyThreadState* __tstate = wxPyBeginAllowThreads();
22591 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22592
22593 wxPyEndAllowThreads(__tstate);
22594 if (PyErr_Occurred()) SWIG_fail;
22595 }
22596 resultobj = SWIG_FromInt((int)result);
22597 return resultobj;
22598 fail:
22599 return NULL;
22600}
22601
22602
22603static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22604 PyObject *resultobj;
22605 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22606 wxLongLong result;
22607 PyObject * obj0 = 0 ;
22608 char *kwnames[] = {
22609 (char *) "self", NULL
22610 };
22611
22612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22615 {
22616 PyThreadState* __tstate = wxPyBeginAllowThreads();
22617 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22618
22619 wxPyEndAllowThreads(__tstate);
22620 if (PyErr_Occurred()) SWIG_fail;
22621 }
22622 {
22623 PyObject *hi, *lo, *shifter, *shifted;
22624 hi = PyLong_FromLong( (&result)->GetHi() );
22625 lo = PyLong_FromLong( (&result)->GetLo() );
22626 shifter = PyLong_FromLong(32);
22627 shifted = PyNumber_Lshift(hi, shifter);
22628 resultobj = PyNumber_Or(shifted, lo);
22629 Py_DECREF(hi);
22630 Py_DECREF(lo);
22631 Py_DECREF(shifter);
22632 Py_DECREF(shifted);
22633 }
22634 return resultobj;
22635 fail:
22636 return NULL;
22637}
22638
22639
22640static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22641 PyObject *resultobj;
22642 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22643 wxLongLong result;
22644 PyObject * obj0 = 0 ;
22645 char *kwnames[] = {
22646 (char *) "self", NULL
22647 };
22648
22649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22652 {
22653 PyThreadState* __tstate = wxPyBeginAllowThreads();
22654 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22655
22656 wxPyEndAllowThreads(__tstate);
22657 if (PyErr_Occurred()) SWIG_fail;
22658 }
22659 {
22660 PyObject *hi, *lo, *shifter, *shifted;
22661 hi = PyLong_FromLong( (&result)->GetHi() );
22662 lo = PyLong_FromLong( (&result)->GetLo() );
22663 shifter = PyLong_FromLong(32);
22664 shifted = PyNumber_Lshift(hi, shifter);
22665 resultobj = PyNumber_Or(shifted, lo);
22666 Py_DECREF(hi);
22667 Py_DECREF(lo);
22668 Py_DECREF(shifter);
22669 Py_DECREF(shifted);
22670 }
22671 return resultobj;
22672 fail:
22673 return NULL;
22674}
22675
22676
22677static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22678 PyObject *resultobj;
22679 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22680 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22681 wxString *arg2 = (wxString *) &arg2_defvalue ;
22682 wxString result;
22683 bool temp2 = False ;
22684 PyObject * obj0 = 0 ;
22685 PyObject * obj1 = 0 ;
22686 char *kwnames[] = {
22687 (char *) "self",(char *) "format", NULL
22688 };
22689
22690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22693 if (obj1) {
22694 {
22695 arg2 = wxString_in_helper(obj1);
22696 if (arg2 == NULL) SWIG_fail;
22697 temp2 = True;
22698 }
22699 }
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22703
22704 wxPyEndAllowThreads(__tstate);
22705 if (PyErr_Occurred()) SWIG_fail;
22706 }
22707 {
22708#if wxUSE_UNICODE
22709 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22710#else
22711 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22712#endif
22713 }
22714 {
22715 if (temp2)
22716 delete arg2;
22717 }
22718 return resultobj;
22719 fail:
22720 {
22721 if (temp2)
22722 delete arg2;
22723 }
22724 return NULL;
22725}
22726
22727
22728static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22729 PyObject *obj;
22730 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22731 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22732 Py_INCREF(obj);
22733 return Py_BuildValue((char *)"");
22734}
22735static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22736 PyObject *resultobj;
22737 int arg1 = (int) 0 ;
22738 int arg2 = (int) 0 ;
22739 int arg3 = (int) 0 ;
22740 int arg4 = (int) 0 ;
22741 wxDateSpan *result;
22742 PyObject * obj0 = 0 ;
22743 PyObject * obj1 = 0 ;
22744 PyObject * obj2 = 0 ;
22745 PyObject * obj3 = 0 ;
22746 char *kwnames[] = {
22747 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22748 };
22749
22750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22751 if (obj0) {
22752 arg1 = (int) SWIG_AsInt(obj0);
22753 if (PyErr_Occurred()) SWIG_fail;
22754 }
22755 if (obj1) {
22756 arg2 = (int) SWIG_AsInt(obj1);
22757 if (PyErr_Occurred()) SWIG_fail;
22758 }
22759 if (obj2) {
22760 arg3 = (int) SWIG_AsInt(obj2);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 if (obj3) {
22764 arg4 = (int) SWIG_AsInt(obj3);
22765 if (PyErr_Occurred()) SWIG_fail;
22766 }
22767 {
22768 PyThreadState* __tstate = wxPyBeginAllowThreads();
22769 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22770
22771 wxPyEndAllowThreads(__tstate);
22772 if (PyErr_Occurred()) SWIG_fail;
22773 }
22774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22775 return resultobj;
22776 fail:
22777 return NULL;
22778}
22779
22780
22781static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22782 PyObject *resultobj;
22783 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22784 PyObject * obj0 = 0 ;
22785 char *kwnames[] = {
22786 (char *) "self", NULL
22787 };
22788
22789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22792 {
22793 PyThreadState* __tstate = wxPyBeginAllowThreads();
22794 delete arg1;
22795
22796 wxPyEndAllowThreads(__tstate);
22797 if (PyErr_Occurred()) SWIG_fail;
22798 }
22799 Py_INCREF(Py_None); resultobj = Py_None;
22800 return resultobj;
22801 fail:
22802 return NULL;
22803}
22804
22805
22806static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22807 PyObject *resultobj;
22808 int arg1 ;
22809 wxDateSpan result;
22810 PyObject * obj0 = 0 ;
22811 char *kwnames[] = {
22812 (char *) "days", NULL
22813 };
22814
22815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22816 arg1 = (int) SWIG_AsInt(obj0);
22817 if (PyErr_Occurred()) SWIG_fail;
22818 {
22819 PyThreadState* __tstate = wxPyBeginAllowThreads();
22820 result = wxDateSpan::Days(arg1);
22821
22822 wxPyEndAllowThreads(__tstate);
22823 if (PyErr_Occurred()) SWIG_fail;
22824 }
22825 {
22826 wxDateSpan * resultptr;
22827 resultptr = new wxDateSpan((wxDateSpan &) result);
22828 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22829 }
22830 return resultobj;
22831 fail:
22832 return NULL;
22833}
22834
22835
22836static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22837 PyObject *resultobj;
22838 wxDateSpan result;
22839 char *kwnames[] = {
22840 NULL
22841 };
22842
22843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22844 {
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 result = wxDateSpan::Day();
22847
22848 wxPyEndAllowThreads(__tstate);
22849 if (PyErr_Occurred()) SWIG_fail;
22850 }
22851 {
22852 wxDateSpan * resultptr;
22853 resultptr = new wxDateSpan((wxDateSpan &) result);
22854 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22855 }
22856 return resultobj;
22857 fail:
22858 return NULL;
22859}
22860
22861
22862static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22863 PyObject *resultobj;
22864 int arg1 ;
22865 wxDateSpan result;
22866 PyObject * obj0 = 0 ;
22867 char *kwnames[] = {
22868 (char *) "weeks", NULL
22869 };
22870
22871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22872 arg1 = (int) SWIG_AsInt(obj0);
22873 if (PyErr_Occurred()) SWIG_fail;
22874 {
22875 PyThreadState* __tstate = wxPyBeginAllowThreads();
22876 result = wxDateSpan::Weeks(arg1);
22877
22878 wxPyEndAllowThreads(__tstate);
22879 if (PyErr_Occurred()) SWIG_fail;
22880 }
22881 {
22882 wxDateSpan * resultptr;
22883 resultptr = new wxDateSpan((wxDateSpan &) result);
22884 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22885 }
22886 return resultobj;
22887 fail:
22888 return NULL;
22889}
22890
22891
22892static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22893 PyObject *resultobj;
22894 wxDateSpan result;
22895 char *kwnames[] = {
22896 NULL
22897 };
22898
22899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22900 {
22901 PyThreadState* __tstate = wxPyBeginAllowThreads();
22902 result = wxDateSpan::Week();
22903
22904 wxPyEndAllowThreads(__tstate);
22905 if (PyErr_Occurred()) SWIG_fail;
22906 }
22907 {
22908 wxDateSpan * resultptr;
22909 resultptr = new wxDateSpan((wxDateSpan &) result);
22910 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22911 }
22912 return resultobj;
22913 fail:
22914 return NULL;
22915}
22916
22917
22918static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22919 PyObject *resultobj;
22920 int arg1 ;
22921 wxDateSpan result;
22922 PyObject * obj0 = 0 ;
22923 char *kwnames[] = {
22924 (char *) "mon", NULL
22925 };
22926
22927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22928 arg1 = (int) SWIG_AsInt(obj0);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 {
22931 PyThreadState* __tstate = wxPyBeginAllowThreads();
22932 result = wxDateSpan::Months(arg1);
22933
22934 wxPyEndAllowThreads(__tstate);
22935 if (PyErr_Occurred()) SWIG_fail;
22936 }
22937 {
22938 wxDateSpan * resultptr;
22939 resultptr = new wxDateSpan((wxDateSpan &) result);
22940 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22941 }
22942 return resultobj;
22943 fail:
22944 return NULL;
22945}
22946
22947
22948static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22949 PyObject *resultobj;
22950 wxDateSpan result;
22951 char *kwnames[] = {
22952 NULL
22953 };
22954
22955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22956 {
22957 PyThreadState* __tstate = wxPyBeginAllowThreads();
22958 result = wxDateSpan::Month();
22959
22960 wxPyEndAllowThreads(__tstate);
22961 if (PyErr_Occurred()) SWIG_fail;
22962 }
22963 {
22964 wxDateSpan * resultptr;
22965 resultptr = new wxDateSpan((wxDateSpan &) result);
22966 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22967 }
22968 return resultobj;
22969 fail:
22970 return NULL;
22971}
22972
22973
22974static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22975 PyObject *resultobj;
22976 int arg1 ;
22977 wxDateSpan result;
22978 PyObject * obj0 = 0 ;
22979 char *kwnames[] = {
22980 (char *) "years", NULL
22981 };
22982
22983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22984 arg1 = (int) SWIG_AsInt(obj0);
22985 if (PyErr_Occurred()) SWIG_fail;
22986 {
22987 PyThreadState* __tstate = wxPyBeginAllowThreads();
22988 result = wxDateSpan::Years(arg1);
22989
22990 wxPyEndAllowThreads(__tstate);
22991 if (PyErr_Occurred()) SWIG_fail;
22992 }
22993 {
22994 wxDateSpan * resultptr;
22995 resultptr = new wxDateSpan((wxDateSpan &) result);
22996 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22997 }
22998 return resultobj;
22999 fail:
23000 return NULL;
23001}
23002
23003
23004static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
23005 PyObject *resultobj;
23006 wxDateSpan result;
23007 char *kwnames[] = {
23008 NULL
23009 };
23010
23011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23012 {
23013 PyThreadState* __tstate = wxPyBeginAllowThreads();
23014 result = wxDateSpan::Year();
23015
23016 wxPyEndAllowThreads(__tstate);
23017 if (PyErr_Occurred()) SWIG_fail;
23018 }
23019 {
23020 wxDateSpan * resultptr;
23021 resultptr = new wxDateSpan((wxDateSpan &) result);
23022 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23023 }
23024 return resultobj;
23025 fail:
23026 return NULL;
23027}
23028
23029
23030static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23031 PyObject *resultobj;
23032 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23033 int arg2 ;
23034 wxDateSpan *result;
23035 PyObject * obj0 = 0 ;
23036 PyObject * obj1 = 0 ;
23037 char *kwnames[] = {
23038 (char *) "self",(char *) "n", NULL
23039 };
23040
23041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23044 arg2 = (int) SWIG_AsInt(obj1);
23045 if (PyErr_Occurred()) SWIG_fail;
23046 {
23047 PyThreadState* __tstate = wxPyBeginAllowThreads();
23048 {
23049 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23050 result = (wxDateSpan *) &_result_ref;
23051 }
23052
23053 wxPyEndAllowThreads(__tstate);
23054 if (PyErr_Occurred()) SWIG_fail;
23055 }
23056 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23057 return resultobj;
23058 fail:
23059 return NULL;
23060}
23061
23062
23063static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23064 PyObject *resultobj;
23065 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23066 int arg2 ;
23067 wxDateSpan *result;
23068 PyObject * obj0 = 0 ;
23069 PyObject * obj1 = 0 ;
23070 char *kwnames[] = {
23071 (char *) "self",(char *) "n", NULL
23072 };
23073
23074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23077 arg2 = (int) SWIG_AsInt(obj1);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 {
23080 PyThreadState* __tstate = wxPyBeginAllowThreads();
23081 {
23082 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23083 result = (wxDateSpan *) &_result_ref;
23084 }
23085
23086 wxPyEndAllowThreads(__tstate);
23087 if (PyErr_Occurred()) SWIG_fail;
23088 }
23089 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23090 return resultobj;
23091 fail:
23092 return NULL;
23093}
23094
23095
23096static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23097 PyObject *resultobj;
23098 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23099 int arg2 ;
23100 wxDateSpan *result;
23101 PyObject * obj0 = 0 ;
23102 PyObject * obj1 = 0 ;
23103 char *kwnames[] = {
23104 (char *) "self",(char *) "n", NULL
23105 };
23106
23107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23110 arg2 = (int) SWIG_AsInt(obj1);
23111 if (PyErr_Occurred()) SWIG_fail;
23112 {
23113 PyThreadState* __tstate = wxPyBeginAllowThreads();
23114 {
23115 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23116 result = (wxDateSpan *) &_result_ref;
23117 }
23118
23119 wxPyEndAllowThreads(__tstate);
23120 if (PyErr_Occurred()) SWIG_fail;
23121 }
23122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23123 return resultobj;
23124 fail:
23125 return NULL;
23126}
23127
23128
23129static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23130 PyObject *resultobj;
23131 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23132 int arg2 ;
23133 wxDateSpan *result;
23134 PyObject * obj0 = 0 ;
23135 PyObject * obj1 = 0 ;
23136 char *kwnames[] = {
23137 (char *) "self",(char *) "n", NULL
23138 };
23139
23140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23143 arg2 = (int) SWIG_AsInt(obj1);
23144 if (PyErr_Occurred()) SWIG_fail;
23145 {
23146 PyThreadState* __tstate = wxPyBeginAllowThreads();
23147 {
23148 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23149 result = (wxDateSpan *) &_result_ref;
23150 }
23151
23152 wxPyEndAllowThreads(__tstate);
23153 if (PyErr_Occurred()) SWIG_fail;
23154 }
23155 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23156 return resultobj;
23157 fail:
23158 return NULL;
23159}
23160
23161
23162static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23163 PyObject *resultobj;
23164 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23165 int result;
23166 PyObject * obj0 = 0 ;
23167 char *kwnames[] = {
23168 (char *) "self", NULL
23169 };
23170
23171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23174 {
23175 PyThreadState* __tstate = wxPyBeginAllowThreads();
23176 result = (int)((wxDateSpan const *)arg1)->GetYears();
23177
23178 wxPyEndAllowThreads(__tstate);
23179 if (PyErr_Occurred()) SWIG_fail;
23180 }
23181 resultobj = SWIG_FromInt((int)result);
23182 return resultobj;
23183 fail:
23184 return NULL;
23185}
23186
23187
23188static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23189 PyObject *resultobj;
23190 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23191 int result;
23192 PyObject * obj0 = 0 ;
23193 char *kwnames[] = {
23194 (char *) "self", NULL
23195 };
23196
23197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23200 {
23201 PyThreadState* __tstate = wxPyBeginAllowThreads();
23202 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23203
23204 wxPyEndAllowThreads(__tstate);
23205 if (PyErr_Occurred()) SWIG_fail;
23206 }
23207 resultobj = SWIG_FromInt((int)result);
23208 return resultobj;
23209 fail:
23210 return NULL;
23211}
23212
23213
23214static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23215 PyObject *resultobj;
23216 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23217 int result;
23218 PyObject * obj0 = 0 ;
23219 char *kwnames[] = {
23220 (char *) "self", NULL
23221 };
23222
23223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23226 {
23227 PyThreadState* __tstate = wxPyBeginAllowThreads();
23228 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23229
23230 wxPyEndAllowThreads(__tstate);
23231 if (PyErr_Occurred()) SWIG_fail;
23232 }
23233 resultobj = SWIG_FromInt((int)result);
23234 return resultobj;
23235 fail:
23236 return NULL;
23237}
23238
23239
23240static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23241 PyObject *resultobj;
23242 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23243 int result;
23244 PyObject * obj0 = 0 ;
23245 char *kwnames[] = {
23246 (char *) "self", NULL
23247 };
23248
23249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 result = (int)((wxDateSpan const *)arg1)->GetDays();
23255
23256 wxPyEndAllowThreads(__tstate);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 resultobj = SWIG_FromInt((int)result);
23260 return resultobj;
23261 fail:
23262 return NULL;
23263}
23264
23265
23266static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23267 PyObject *resultobj;
23268 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23269 int result;
23270 PyObject * obj0 = 0 ;
23271 char *kwnames[] = {
23272 (char *) "self", NULL
23273 };
23274
23275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23278 {
23279 PyThreadState* __tstate = wxPyBeginAllowThreads();
23280 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23281
23282 wxPyEndAllowThreads(__tstate);
23283 if (PyErr_Occurred()) SWIG_fail;
23284 }
23285 resultobj = SWIG_FromInt((int)result);
23286 return resultobj;
23287 fail:
23288 return NULL;
23289}
23290
23291
23292static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23293 PyObject *resultobj;
23294 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23295 wxDateSpan *arg2 = 0 ;
23296 wxDateSpan *result;
23297 PyObject * obj0 = 0 ;
23298 PyObject * obj1 = 0 ;
23299 char *kwnames[] = {
23300 (char *) "self",(char *) "other", NULL
23301 };
23302
23303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23307 SWIG_POINTER_EXCEPTION | 0)) == -1)
23308 SWIG_fail;
23309 if (arg2 == NULL) {
23310 PyErr_SetString(PyExc_TypeError,"null reference");
23311 SWIG_fail;
23312 }
23313 {
23314 PyThreadState* __tstate = wxPyBeginAllowThreads();
23315 {
23316 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23317 result = (wxDateSpan *) &_result_ref;
23318 }
23319
23320 wxPyEndAllowThreads(__tstate);
23321 if (PyErr_Occurred()) SWIG_fail;
23322 }
23323 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23324 return resultobj;
23325 fail:
23326 return NULL;
23327}
23328
23329
23330static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23331 PyObject *resultobj;
23332 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23333 wxDateSpan *arg2 = 0 ;
23334 wxDateSpan *result;
23335 PyObject * obj0 = 0 ;
23336 PyObject * obj1 = 0 ;
23337 char *kwnames[] = {
23338 (char *) "self",(char *) "other", NULL
23339 };
23340
23341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23344 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23345 SWIG_POINTER_EXCEPTION | 0)) == -1)
23346 SWIG_fail;
23347 if (arg2 == NULL) {
23348 PyErr_SetString(PyExc_TypeError,"null reference");
23349 SWIG_fail;
23350 }
23351 {
23352 PyThreadState* __tstate = wxPyBeginAllowThreads();
23353 {
23354 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23355 result = (wxDateSpan *) &_result_ref;
23356 }
23357
23358 wxPyEndAllowThreads(__tstate);
23359 if (PyErr_Occurred()) SWIG_fail;
23360 }
23361 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23362 return resultobj;
23363 fail:
23364 return NULL;
23365}
23366
23367
23368static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23369 PyObject *resultobj;
23370 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23371 wxDateSpan *result;
23372 PyObject * obj0 = 0 ;
23373 char *kwnames[] = {
23374 (char *) "self", NULL
23375 };
23376
23377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23380 {
23381 PyThreadState* __tstate = wxPyBeginAllowThreads();
23382 {
23383 wxDateSpan &_result_ref = (arg1)->Neg();
23384 result = (wxDateSpan *) &_result_ref;
23385 }
23386
23387 wxPyEndAllowThreads(__tstate);
23388 if (PyErr_Occurred()) SWIG_fail;
23389 }
23390 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23391 return resultobj;
23392 fail:
23393 return NULL;
23394}
23395
23396
23397static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23398 PyObject *resultobj;
23399 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23400 int arg2 ;
23401 wxDateSpan *result;
23402 PyObject * obj0 = 0 ;
23403 PyObject * obj1 = 0 ;
23404 char *kwnames[] = {
23405 (char *) "self",(char *) "factor", NULL
23406 };
23407
23408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23411 arg2 = (int) SWIG_AsInt(obj1);
23412 if (PyErr_Occurred()) SWIG_fail;
23413 {
23414 PyThreadState* __tstate = wxPyBeginAllowThreads();
23415 {
23416 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23417 result = (wxDateSpan *) &_result_ref;
23418 }
23419
23420 wxPyEndAllowThreads(__tstate);
23421 if (PyErr_Occurred()) SWIG_fail;
23422 }
23423 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23424 return resultobj;
23425 fail:
23426 return NULL;
23427}
23428
23429
23430static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23431 PyObject *resultobj;
23432 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23433 wxDateSpan *arg2 = 0 ;
23434 wxDateSpan *result;
23435 PyObject * obj0 = 0 ;
23436 PyObject * obj1 = 0 ;
23437 char *kwnames[] = {
23438 (char *) "self",(char *) "other", NULL
23439 };
23440
23441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23444 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23445 SWIG_POINTER_EXCEPTION | 0)) == -1)
23446 SWIG_fail;
23447 if (arg2 == NULL) {
23448 PyErr_SetString(PyExc_TypeError,"null reference");
23449 SWIG_fail;
23450 }
23451 {
23452 PyThreadState* __tstate = wxPyBeginAllowThreads();
23453 {
23454 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23455 result = (wxDateSpan *) &_result_ref;
23456 }
23457
23458 wxPyEndAllowThreads(__tstate);
23459 if (PyErr_Occurred()) SWIG_fail;
23460 }
23461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23462 return resultobj;
23463 fail:
23464 return NULL;
23465}
23466
23467
23468static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23469 PyObject *resultobj;
23470 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23471 wxDateSpan *arg2 = 0 ;
23472 wxDateSpan *result;
23473 PyObject * obj0 = 0 ;
23474 PyObject * obj1 = 0 ;
23475 char *kwnames[] = {
23476 (char *) "self",(char *) "other", NULL
23477 };
23478
23479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23482 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23483 SWIG_POINTER_EXCEPTION | 0)) == -1)
23484 SWIG_fail;
23485 if (arg2 == NULL) {
23486 PyErr_SetString(PyExc_TypeError,"null reference");
23487 SWIG_fail;
23488 }
23489 {
23490 PyThreadState* __tstate = wxPyBeginAllowThreads();
23491 {
23492 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23493 result = (wxDateSpan *) &_result_ref;
23494 }
23495
23496 wxPyEndAllowThreads(__tstate);
23497 if (PyErr_Occurred()) SWIG_fail;
23498 }
23499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23500 return resultobj;
23501 fail:
23502 return NULL;
23503}
23504
23505
23506static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23507 PyObject *resultobj;
23508 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23509 wxDateSpan *result;
23510 PyObject * obj0 = 0 ;
23511 char *kwnames[] = {
23512 (char *) "self", NULL
23513 };
23514
23515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 {
23521 wxDateSpan &_result_ref = (arg1)->operator -();
23522 result = (wxDateSpan *) &_result_ref;
23523 }
23524
23525 wxPyEndAllowThreads(__tstate);
23526 if (PyErr_Occurred()) SWIG_fail;
23527 }
23528 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23529 return resultobj;
23530 fail:
23531 return NULL;
23532}
23533
23534
23535static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23536 PyObject *resultobj;
23537 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23538 int arg2 ;
23539 wxDateSpan *result;
23540 PyObject * obj0 = 0 ;
23541 PyObject * obj1 = 0 ;
23542 char *kwnames[] = {
23543 (char *) "self",(char *) "factor", NULL
23544 };
23545
23546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23549 arg2 = (int) SWIG_AsInt(obj1);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 {
23552 PyThreadState* __tstate = wxPyBeginAllowThreads();
23553 {
23554 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23555 result = (wxDateSpan *) &_result_ref;
23556 }
23557
23558 wxPyEndAllowThreads(__tstate);
23559 if (PyErr_Occurred()) SWIG_fail;
23560 }
23561 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23562 return resultobj;
23563 fail:
23564 return NULL;
23565}
23566
23567
23568static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23569 PyObject *resultobj;
23570 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23571 wxDateSpan *arg2 = 0 ;
23572 wxDateSpan result;
23573 PyObject * obj0 = 0 ;
23574 PyObject * obj1 = 0 ;
23575 char *kwnames[] = {
23576 (char *) "self",(char *) "other", NULL
23577 };
23578
23579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23582 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23583 SWIG_POINTER_EXCEPTION | 0)) == -1)
23584 SWIG_fail;
23585 if (arg2 == NULL) {
23586 PyErr_SetString(PyExc_TypeError,"null reference");
23587 SWIG_fail;
23588 }
23589 {
23590 PyThreadState* __tstate = wxPyBeginAllowThreads();
23591 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23592
23593 wxPyEndAllowThreads(__tstate);
23594 if (PyErr_Occurred()) SWIG_fail;
23595 }
23596 {
23597 wxDateSpan * resultptr;
23598 resultptr = new wxDateSpan((wxDateSpan &) result);
23599 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23600 }
23601 return resultobj;
23602 fail:
23603 return NULL;
23604}
23605
23606
23607static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23608 PyObject *resultobj;
23609 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23610 wxDateSpan *arg2 = 0 ;
23611 wxDateSpan result;
23612 PyObject * obj0 = 0 ;
23613 PyObject * obj1 = 0 ;
23614 char *kwnames[] = {
23615 (char *) "self",(char *) "other", NULL
23616 };
23617
23618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23621 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23622 SWIG_POINTER_EXCEPTION | 0)) == -1)
23623 SWIG_fail;
23624 if (arg2 == NULL) {
23625 PyErr_SetString(PyExc_TypeError,"null reference");
23626 SWIG_fail;
23627 }
23628 {
23629 PyThreadState* __tstate = wxPyBeginAllowThreads();
23630 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23631
23632 wxPyEndAllowThreads(__tstate);
23633 if (PyErr_Occurred()) SWIG_fail;
23634 }
23635 {
23636 wxDateSpan * resultptr;
23637 resultptr = new wxDateSpan((wxDateSpan &) result);
23638 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23639 }
23640 return resultobj;
23641 fail:
23642 return NULL;
23643}
23644
23645
23646static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23647 PyObject *resultobj;
23648 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23649 int arg2 ;
23650 wxDateSpan result;
23651 PyObject * obj0 = 0 ;
23652 PyObject * obj1 = 0 ;
23653 char *kwnames[] = {
23654 (char *) "self",(char *) "n", NULL
23655 };
23656
23657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23660 arg2 = (int) SWIG_AsInt(obj1);
23661 if (PyErr_Occurred()) SWIG_fail;
23662 {
23663 PyThreadState* __tstate = wxPyBeginAllowThreads();
23664 result = wxDateSpan___mul__(arg1,arg2);
23665
23666 wxPyEndAllowThreads(__tstate);
23667 if (PyErr_Occurred()) SWIG_fail;
23668 }
23669 {
23670 wxDateSpan * resultptr;
23671 resultptr = new wxDateSpan((wxDateSpan &) result);
23672 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23673 }
23674 return resultobj;
23675 fail:
23676 return NULL;
23677}
23678
23679
23680static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23681 PyObject *resultobj;
23682 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23683 int arg2 ;
23684 wxDateSpan result;
23685 PyObject * obj0 = 0 ;
23686 PyObject * obj1 = 0 ;
23687 char *kwnames[] = {
23688 (char *) "self",(char *) "n", NULL
23689 };
23690
23691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23694 arg2 = (int) SWIG_AsInt(obj1);
23695 if (PyErr_Occurred()) SWIG_fail;
23696 {
23697 PyThreadState* __tstate = wxPyBeginAllowThreads();
23698 result = wxDateSpan___rmul__(arg1,arg2);
23699
23700 wxPyEndAllowThreads(__tstate);
23701 if (PyErr_Occurred()) SWIG_fail;
23702 }
23703 {
23704 wxDateSpan * resultptr;
23705 resultptr = new wxDateSpan((wxDateSpan &) result);
23706 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23707 }
23708 return resultobj;
23709 fail:
23710 return NULL;
23711}
23712
23713
23714static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23715 PyObject *resultobj;
23716 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23717 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23718 bool result;
23719 PyObject * obj0 = 0 ;
23720 PyObject * obj1 = 0 ;
23721 char *kwnames[] = {
23722 (char *) "self",(char *) "other", NULL
23723 };
23724
23725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23728 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23730 {
23731 PyThreadState* __tstate = wxPyBeginAllowThreads();
23732 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23733
23734 wxPyEndAllowThreads(__tstate);
23735 if (PyErr_Occurred()) SWIG_fail;
23736 }
23737 {
23738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23739 }
23740 return resultobj;
23741 fail:
23742 return NULL;
23743}
23744
23745
23746static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23747 PyObject *resultobj;
23748 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23749 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23750 bool result;
23751 PyObject * obj0 = 0 ;
23752 PyObject * obj1 = 0 ;
23753 char *kwnames[] = {
23754 (char *) "self",(char *) "other", NULL
23755 };
23756
23757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23762 {
23763 PyThreadState* __tstate = wxPyBeginAllowThreads();
23764 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23765
23766 wxPyEndAllowThreads(__tstate);
23767 if (PyErr_Occurred()) SWIG_fail;
23768 }
23769 {
23770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23771 }
23772 return resultobj;
23773 fail:
23774 return NULL;
23775}
23776
23777
23778static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23779 PyObject *obj;
23780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23781 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23782 Py_INCREF(obj);
23783 return Py_BuildValue((char *)"");
23784}
23785static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23786 PyObject *resultobj;
23787 long result;
23788 char *kwnames[] = {
23789 NULL
23790 };
23791
23792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23793 {
23794 PyThreadState* __tstate = wxPyBeginAllowThreads();
23795 result = (long)wxGetLocalTime();
23796
23797 wxPyEndAllowThreads(__tstate);
23798 if (PyErr_Occurred()) SWIG_fail;
23799 }
23800 resultobj = SWIG_FromLong((long)result);
23801 return resultobj;
23802 fail:
23803 return NULL;
23804}
23805
23806
23807static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23808 PyObject *resultobj;
23809 long result;
23810 char *kwnames[] = {
23811 NULL
23812 };
23813
23814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23815 {
23816 PyThreadState* __tstate = wxPyBeginAllowThreads();
23817 result = (long)wxGetUTCTime();
23818
23819 wxPyEndAllowThreads(__tstate);
23820 if (PyErr_Occurred()) SWIG_fail;
23821 }
23822 resultobj = SWIG_FromLong((long)result);
23823 return resultobj;
23824 fail:
23825 return NULL;
23826}
23827
23828
23829static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23830 PyObject *resultobj;
23831 long result;
23832 char *kwnames[] = {
23833 NULL
23834 };
23835
23836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23837 {
23838 PyThreadState* __tstate = wxPyBeginAllowThreads();
23839 result = (long)wxGetCurrentTime();
23840
23841 wxPyEndAllowThreads(__tstate);
23842 if (PyErr_Occurred()) SWIG_fail;
23843 }
23844 resultobj = SWIG_FromLong((long)result);
23845 return resultobj;
23846 fail:
23847 return NULL;
23848}
23849
23850
23851static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23852 PyObject *resultobj;
23853 wxLongLong result;
23854 char *kwnames[] = {
23855 NULL
23856 };
23857
23858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23859 {
23860 PyThreadState* __tstate = wxPyBeginAllowThreads();
23861 result = wxGetLocalTimeMillis();
23862
23863 wxPyEndAllowThreads(__tstate);
23864 if (PyErr_Occurred()) SWIG_fail;
23865 }
23866 {
23867 PyObject *hi, *lo, *shifter, *shifted;
23868 hi = PyLong_FromLong( (&result)->GetHi() );
23869 lo = PyLong_FromLong( (&result)->GetLo() );
23870 shifter = PyLong_FromLong(32);
23871 shifted = PyNumber_Lshift(hi, shifter);
23872 resultobj = PyNumber_Or(shifted, lo);
23873 Py_DECREF(hi);
23874 Py_DECREF(lo);
23875 Py_DECREF(shifter);
23876 Py_DECREF(shifted);
23877 }
23878 return resultobj;
23879 fail:
23880 return NULL;
23881}
23882
23883
23884static int _wrap_DefaultDateTime_set(PyObject *_val) {
23885 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23886 return 1;
23887}
23888
23889
23890static PyObject *_wrap_DefaultDateTime_get() {
23891 PyObject *pyobj;
23892
23893 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23894 return pyobj;
23895}
23896
23897
23898static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23899 PyObject *resultobj;
23900 int arg1 ;
23901 wxDataFormat *result;
23902 PyObject * obj0 = 0 ;
23903 char *kwnames[] = {
23904 (char *) "type", NULL
23905 };
23906
23907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23908 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23909 if (PyErr_Occurred()) SWIG_fail;
23910 {
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23913
23914 wxPyEndAllowThreads(__tstate);
23915 if (PyErr_Occurred()) SWIG_fail;
23916 }
23917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23918 return resultobj;
23919 fail:
23920 return NULL;
23921}
23922
23923
23924static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23925 PyObject *resultobj;
23926 wxString *arg1 = 0 ;
23927 wxDataFormat *result;
23928 bool temp1 = False ;
23929 PyObject * obj0 = 0 ;
23930 char *kwnames[] = {
23931 (char *) "format", NULL
23932 };
23933
23934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23935 {
23936 arg1 = wxString_in_helper(obj0);
23937 if (arg1 == NULL) SWIG_fail;
23938 temp1 = True;
23939 }
23940 {
23941 PyThreadState* __tstate = wxPyBeginAllowThreads();
23942 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23943
23944 wxPyEndAllowThreads(__tstate);
23945 if (PyErr_Occurred()) SWIG_fail;
23946 }
23947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23948 {
23949 if (temp1)
23950 delete arg1;
23951 }
23952 return resultobj;
23953 fail:
23954 {
23955 if (temp1)
23956 delete arg1;
23957 }
23958 return NULL;
23959}
23960
23961
23962static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23963 PyObject *resultobj;
23964 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23965 PyObject * obj0 = 0 ;
23966 char *kwnames[] = {
23967 (char *) "self", NULL
23968 };
23969
23970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23973 {
23974 PyThreadState* __tstate = wxPyBeginAllowThreads();
23975 delete arg1;
23976
23977 wxPyEndAllowThreads(__tstate);
23978 if (PyErr_Occurred()) SWIG_fail;
23979 }
23980 Py_INCREF(Py_None); resultobj = Py_None;
23981 return resultobj;
23982 fail:
23983 return NULL;
23984}
23985
23986
23987static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23988 PyObject *resultobj;
23989 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23990 int arg2 ;
23991 bool result;
23992 PyObject * obj0 = 0 ;
23993 PyObject * obj1 = 0 ;
23994
23995 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23998 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23999 if (PyErr_Occurred()) SWIG_fail;
24000 {
24001 PyThreadState* __tstate = wxPyBeginAllowThreads();
24002 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24003
24004 wxPyEndAllowThreads(__tstate);
24005 if (PyErr_Occurred()) SWIG_fail;
24006 }
24007 {
24008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24009 }
24010 return resultobj;
24011 fail:
24012 return NULL;
24013}
24014
24015
24016static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
24017 PyObject *resultobj;
24018 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24019 int arg2 ;
24020 bool result;
24021 PyObject * obj0 = 0 ;
24022 PyObject * obj1 = 0 ;
24023
24024 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24027 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24028 if (PyErr_Occurred()) SWIG_fail;
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24032
24033 wxPyEndAllowThreads(__tstate);
24034 if (PyErr_Occurred()) SWIG_fail;
24035 }
24036 {
24037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24038 }
24039 return resultobj;
24040 fail:
24041 return NULL;
24042}
24043
24044
24045static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
24046 PyObject *resultobj;
24047 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24048 wxDataFormat *arg2 = 0 ;
24049 bool result;
24050 PyObject * obj0 = 0 ;
24051 PyObject * obj1 = 0 ;
24052
24053 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24056 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24057 SWIG_POINTER_EXCEPTION | 0)) == -1)
24058 SWIG_fail;
24059 if (arg2 == NULL) {
24060 PyErr_SetString(PyExc_TypeError,"null reference");
24061 SWIG_fail;
24062 }
24063 {
24064 PyThreadState* __tstate = wxPyBeginAllowThreads();
24065 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24066
24067 wxPyEndAllowThreads(__tstate);
24068 if (PyErr_Occurred()) SWIG_fail;
24069 }
24070 {
24071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24072 }
24073 return resultobj;
24074 fail:
24075 return NULL;
24076}
24077
24078
24079static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24080 int argc;
24081 PyObject *argv[3];
24082 int ii;
24083
24084 argc = PyObject_Length(args);
24085 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24086 argv[ii] = PyTuple_GetItem(args,ii);
24087 }
24088 if (argc == 2) {
24089 int _v;
24090 {
24091 void *ptr;
24092 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24093 _v = 0;
24094 PyErr_Clear();
24095 } else {
24096 _v = 1;
24097 }
24098 }
24099 if (_v) {
24100 {
24101 void *ptr;
24102 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24103 _v = 0;
24104 PyErr_Clear();
24105 } else {
24106 _v = 1;
24107 }
24108 }
24109 if (_v) {
24110 return _wrap_DataFormat___eq____SWIG_1(self,args);
24111 }
24112 }
24113 }
24114 if (argc == 2) {
24115 int _v;
24116 {
24117 void *ptr;
24118 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24119 _v = 0;
24120 PyErr_Clear();
24121 } else {
24122 _v = 1;
24123 }
24124 }
24125 if (_v) {
24126 _v = SWIG_CheckInt(argv[1]);
24127 if (_v) {
24128 return _wrap_DataFormat___eq____SWIG_0(self,args);
24129 }
24130 }
24131 }
24132
24133 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24134 return NULL;
24135}
24136
24137
24138static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24139 PyObject *resultobj;
24140 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24141 wxDataFormat *arg2 = 0 ;
24142 bool result;
24143 PyObject * obj0 = 0 ;
24144 PyObject * obj1 = 0 ;
24145
24146 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24149 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24150 SWIG_POINTER_EXCEPTION | 0)) == -1)
24151 SWIG_fail;
24152 if (arg2 == NULL) {
24153 PyErr_SetString(PyExc_TypeError,"null reference");
24154 SWIG_fail;
24155 }
24156 {
24157 PyThreadState* __tstate = wxPyBeginAllowThreads();
24158 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24159
24160 wxPyEndAllowThreads(__tstate);
24161 if (PyErr_Occurred()) SWIG_fail;
24162 }
24163 {
24164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24165 }
24166 return resultobj;
24167 fail:
24168 return NULL;
24169}
24170
24171
24172static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24173 int argc;
24174 PyObject *argv[3];
24175 int ii;
24176
24177 argc = PyObject_Length(args);
24178 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24179 argv[ii] = PyTuple_GetItem(args,ii);
24180 }
24181 if (argc == 2) {
24182 int _v;
24183 {
24184 void *ptr;
24185 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24186 _v = 0;
24187 PyErr_Clear();
24188 } else {
24189 _v = 1;
24190 }
24191 }
24192 if (_v) {
24193 {
24194 void *ptr;
24195 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24196 _v = 0;
24197 PyErr_Clear();
24198 } else {
24199 _v = 1;
24200 }
24201 }
24202 if (_v) {
24203 return _wrap_DataFormat___ne____SWIG_1(self,args);
24204 }
24205 }
24206 }
24207 if (argc == 2) {
24208 int _v;
24209 {
24210 void *ptr;
24211 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24212 _v = 0;
24213 PyErr_Clear();
24214 } else {
24215 _v = 1;
24216 }
24217 }
24218 if (_v) {
24219 _v = SWIG_CheckInt(argv[1]);
24220 if (_v) {
24221 return _wrap_DataFormat___ne____SWIG_0(self,args);
24222 }
24223 }
24224 }
24225
24226 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24227 return NULL;
24228}
24229
24230
24231static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24232 PyObject *resultobj;
24233 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24234 int arg2 ;
24235 PyObject * obj0 = 0 ;
24236 PyObject * obj1 = 0 ;
24237 char *kwnames[] = {
24238 (char *) "self",(char *) "format", NULL
24239 };
24240
24241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24244 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24245 if (PyErr_Occurred()) SWIG_fail;
24246 {
24247 PyThreadState* __tstate = wxPyBeginAllowThreads();
24248 (arg1)->SetType((wxDataFormatId )arg2);
24249
24250 wxPyEndAllowThreads(__tstate);
24251 if (PyErr_Occurred()) SWIG_fail;
24252 }
24253 Py_INCREF(Py_None); resultobj = Py_None;
24254 return resultobj;
24255 fail:
24256 return NULL;
24257}
24258
24259
24260static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24261 PyObject *resultobj;
24262 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24263 int result;
24264 PyObject * obj0 = 0 ;
24265 char *kwnames[] = {
24266 (char *) "self", NULL
24267 };
24268
24269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24272 {
24273 PyThreadState* __tstate = wxPyBeginAllowThreads();
24274 result = (int)((wxDataFormat const *)arg1)->GetType();
24275
24276 wxPyEndAllowThreads(__tstate);
24277 if (PyErr_Occurred()) SWIG_fail;
24278 }
24279 resultobj = SWIG_FromInt((int)result);
24280 return resultobj;
24281 fail:
24282 return NULL;
24283}
24284
24285
24286static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24287 PyObject *resultobj;
24288 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24289 wxString result;
24290 PyObject * obj0 = 0 ;
24291 char *kwnames[] = {
24292 (char *) "self", NULL
24293 };
24294
24295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24298 {
24299 PyThreadState* __tstate = wxPyBeginAllowThreads();
24300 result = ((wxDataFormat const *)arg1)->GetId();
24301
24302 wxPyEndAllowThreads(__tstate);
24303 if (PyErr_Occurred()) SWIG_fail;
24304 }
24305 {
24306#if wxUSE_UNICODE
24307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24308#else
24309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24310#endif
24311 }
24312 return resultobj;
24313 fail:
24314 return NULL;
24315}
24316
24317
24318static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24319 PyObject *resultobj;
24320 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24321 wxString *arg2 = 0 ;
24322 bool temp2 = False ;
24323 PyObject * obj0 = 0 ;
24324 PyObject * obj1 = 0 ;
24325 char *kwnames[] = {
24326 (char *) "self",(char *) "format", NULL
24327 };
24328
24329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24332 {
24333 arg2 = wxString_in_helper(obj1);
24334 if (arg2 == NULL) SWIG_fail;
24335 temp2 = True;
24336 }
24337 {
24338 PyThreadState* __tstate = wxPyBeginAllowThreads();
24339 (arg1)->SetId((wxString const &)*arg2);
24340
24341 wxPyEndAllowThreads(__tstate);
24342 if (PyErr_Occurred()) SWIG_fail;
24343 }
24344 Py_INCREF(Py_None); resultobj = Py_None;
24345 {
24346 if (temp2)
24347 delete arg2;
24348 }
24349 return resultobj;
24350 fail:
24351 {
24352 if (temp2)
24353 delete arg2;
24354 }
24355 return NULL;
24356}
24357
24358
24359static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24360 PyObject *obj;
24361 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24362 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24363 Py_INCREF(obj);
24364 return Py_BuildValue((char *)"");
24365}
24366static int _wrap_FormatInvalid_set(PyObject *_val) {
24367 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24368 return 1;
24369}
24370
24371
24372static PyObject *_wrap_FormatInvalid_get() {
24373 PyObject *pyobj;
24374
24375 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24376 return pyobj;
24377}
24378
24379
24380static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24381 PyObject *resultobj;
24382 wxDataObject *arg1 = (wxDataObject *) 0 ;
24383 PyObject * obj0 = 0 ;
24384 char *kwnames[] = {
24385 (char *) "self", NULL
24386 };
24387
24388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24391 {
24392 PyThreadState* __tstate = wxPyBeginAllowThreads();
24393 delete arg1;
24394
24395 wxPyEndAllowThreads(__tstate);
24396 if (PyErr_Occurred()) SWIG_fail;
24397 }
24398 Py_INCREF(Py_None); resultobj = Py_None;
24399 return resultobj;
24400 fail:
24401 return NULL;
24402}
24403
24404
24405static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24406 PyObject *resultobj;
24407 wxDataObject *arg1 = (wxDataObject *) 0 ;
24408 int arg2 = (int) wxDataObject::Get ;
24409 SwigValueWrapper< wxDataFormat > result;
24410 PyObject * obj0 = 0 ;
24411 PyObject * obj1 = 0 ;
24412 char *kwnames[] = {
24413 (char *) "self",(char *) "dir", NULL
24414 };
24415
24416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24419 if (obj1) {
24420 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24421 if (PyErr_Occurred()) SWIG_fail;
24422 }
24423 {
24424 PyThreadState* __tstate = wxPyBeginAllowThreads();
24425 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24426
24427 wxPyEndAllowThreads(__tstate);
24428 if (PyErr_Occurred()) SWIG_fail;
24429 }
24430 {
24431 wxDataFormat * resultptr;
24432 resultptr = new wxDataFormat((wxDataFormat &) result);
24433 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24434 }
24435 return resultobj;
24436 fail:
24437 return NULL;
24438}
24439
24440
24441static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24442 PyObject *resultobj;
24443 wxDataObject *arg1 = (wxDataObject *) 0 ;
24444 int arg2 = (int) wxDataObject::Get ;
24445 size_t result;
24446 PyObject * obj0 = 0 ;
24447 PyObject * obj1 = 0 ;
24448 char *kwnames[] = {
24449 (char *) "self",(char *) "dir", NULL
24450 };
24451
24452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24455 if (obj1) {
24456 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24457 if (PyErr_Occurred()) SWIG_fail;
24458 }
24459 {
24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24461 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24462
24463 wxPyEndAllowThreads(__tstate);
24464 if (PyErr_Occurred()) SWIG_fail;
24465 }
24466 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24467 return resultobj;
24468 fail:
24469 return NULL;
24470}
24471
24472
24473static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24474 PyObject *resultobj;
24475 wxDataObject *arg1 = (wxDataObject *) 0 ;
24476 wxDataFormat *arg2 = 0 ;
24477 int arg3 = (int) wxDataObject::Get ;
24478 bool result;
24479 PyObject * obj0 = 0 ;
24480 PyObject * obj1 = 0 ;
24481 PyObject * obj2 = 0 ;
24482 char *kwnames[] = {
24483 (char *) "self",(char *) "format",(char *) "dir", NULL
24484 };
24485
24486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24489 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24490 SWIG_POINTER_EXCEPTION | 0)) == -1)
24491 SWIG_fail;
24492 if (arg2 == NULL) {
24493 PyErr_SetString(PyExc_TypeError,"null reference");
24494 SWIG_fail;
24495 }
24496 if (obj2) {
24497 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24498 if (PyErr_Occurred()) SWIG_fail;
24499 }
24500 {
24501 PyThreadState* __tstate = wxPyBeginAllowThreads();
24502 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24503
24504 wxPyEndAllowThreads(__tstate);
24505 if (PyErr_Occurred()) SWIG_fail;
24506 }
24507 {
24508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24509 }
24510 return resultobj;
24511 fail:
24512 return NULL;
24513}
24514
24515
24516static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24517 PyObject *resultobj;
24518 wxDataObject *arg1 = (wxDataObject *) 0 ;
24519 wxDataFormat *arg2 = 0 ;
24520 size_t result;
24521 PyObject * obj0 = 0 ;
24522 PyObject * obj1 = 0 ;
24523 char *kwnames[] = {
24524 (char *) "self",(char *) "format", NULL
24525 };
24526
24527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24531 SWIG_POINTER_EXCEPTION | 0)) == -1)
24532 SWIG_fail;
24533 if (arg2 == NULL) {
24534 PyErr_SetString(PyExc_TypeError,"null reference");
24535 SWIG_fail;
24536 }
24537 {
24538 PyThreadState* __tstate = wxPyBeginAllowThreads();
24539 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24540
24541 wxPyEndAllowThreads(__tstate);
24542 if (PyErr_Occurred()) SWIG_fail;
24543 }
24544 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24545 return resultobj;
24546 fail:
24547 return NULL;
24548}
24549
24550
24551static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24552 PyObject *resultobj;
24553 wxDataObject *arg1 = (wxDataObject *) 0 ;
68e533f8
RD
24554 int arg2 = (int) wxDataObject::Get ;
24555 PyObject *result;
d55e5bfc
RD
24556 PyObject * obj0 = 0 ;
24557 PyObject * obj1 = 0 ;
d55e5bfc 24558 char *kwnames[] = {
68e533f8 24559 (char *) "self",(char *) "dir", NULL
d55e5bfc
RD
24560 };
24561
68e533f8 24562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
24563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
68e533f8
RD
24565 if (obj1) {
24566 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
d55e5bfc
RD
24567 if (PyErr_Occurred()) SWIG_fail;
24568 }
24569 {
24570 PyThreadState* __tstate = wxPyBeginAllowThreads();
68e533f8 24571 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
d55e5bfc
RD
24572
24573 wxPyEndAllowThreads(__tstate);
24574 if (PyErr_Occurred()) SWIG_fail;
24575 }
68e533f8 24576 resultobj = result;
d55e5bfc
RD
24577 return resultobj;
24578 fail:
24579 return NULL;
24580}
24581
24582
24583static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24584 PyObject *resultobj;
24585 wxDataObject *arg1 = (wxDataObject *) 0 ;
24586 wxDataFormat *arg2 = 0 ;
68e533f8 24587 PyObject *result;
d55e5bfc
RD
24588 PyObject * obj0 = 0 ;
24589 PyObject * obj1 = 0 ;
d55e5bfc 24590 char *kwnames[] = {
68e533f8 24591 (char *) "self",(char *) "format", NULL
d55e5bfc
RD
24592 };
24593
68e533f8 24594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
24595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24597 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24598 SWIG_POINTER_EXCEPTION | 0)) == -1)
24599 SWIG_fail;
24600 if (arg2 == NULL) {
24601 PyErr_SetString(PyExc_TypeError,"null reference");
24602 SWIG_fail;
24603 }
d55e5bfc
RD
24604 {
24605 PyThreadState* __tstate = wxPyBeginAllowThreads();
68e533f8 24606 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
d55e5bfc
RD
24607
24608 wxPyEndAllowThreads(__tstate);
24609 if (PyErr_Occurred()) SWIG_fail;
24610 }
68e533f8 24611 resultobj = result;
d55e5bfc
RD
24612 return resultobj;
24613 fail:
24614 return NULL;
24615}
24616
24617
24618static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24619 PyObject *resultobj;
24620 wxDataObject *arg1 = (wxDataObject *) 0 ;
24621 wxDataFormat *arg2 = 0 ;
68e533f8 24622 PyObject *arg3 = (PyObject *) 0 ;
d55e5bfc
RD
24623 bool result;
24624 PyObject * obj0 = 0 ;
24625 PyObject * obj1 = 0 ;
24626 PyObject * obj2 = 0 ;
d55e5bfc 24627 char *kwnames[] = {
68e533f8 24628 (char *) "self",(char *) "format",(char *) "data", NULL
d55e5bfc
RD
24629 };
24630
68e533f8 24631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
24632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24634 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24635 SWIG_POINTER_EXCEPTION | 0)) == -1)
24636 SWIG_fail;
24637 if (arg2 == NULL) {
24638 PyErr_SetString(PyExc_TypeError,"null reference");
24639 SWIG_fail;
24640 }
68e533f8 24641 arg3 = obj2;
d55e5bfc
RD
24642 {
24643 PyThreadState* __tstate = wxPyBeginAllowThreads();
68e533f8 24644 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
d55e5bfc
RD
24645
24646 wxPyEndAllowThreads(__tstate);
24647 if (PyErr_Occurred()) SWIG_fail;
24648 }
24649 {
24650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24651 }
24652 return resultobj;
24653 fail:
24654 return NULL;
24655}
24656
24657
24658static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24659 PyObject *obj;
24660 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24661 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24662 Py_INCREF(obj);
24663 return Py_BuildValue((char *)"");
24664}
24665static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24666 PyObject *resultobj;
24667 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24668 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24669 wxDataObjectSimple *result;
24670 PyObject * obj0 = 0 ;
24671 char *kwnames[] = {
24672 (char *) "format", NULL
24673 };
24674
24675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24676 if (obj0) {
24677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24678 SWIG_POINTER_EXCEPTION | 0)) == -1)
24679 SWIG_fail;
24680 if (arg1 == NULL) {
24681 PyErr_SetString(PyExc_TypeError,"null reference");
24682 SWIG_fail;
24683 }
24684 }
24685 {
24686 PyThreadState* __tstate = wxPyBeginAllowThreads();
24687 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24688
24689 wxPyEndAllowThreads(__tstate);
24690 if (PyErr_Occurred()) SWIG_fail;
24691 }
24692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24693 return resultobj;
24694 fail:
24695 return NULL;
24696}
24697
24698
24699static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24700 PyObject *resultobj;
24701 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24702 wxDataFormat *result;
24703 PyObject * obj0 = 0 ;
24704 char *kwnames[] = {
24705 (char *) "self", NULL
24706 };
24707
24708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24711 {
24712 PyThreadState* __tstate = wxPyBeginAllowThreads();
24713 {
24714 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24715 result = (wxDataFormat *) &_result_ref;
24716 }
24717
24718 wxPyEndAllowThreads(__tstate);
24719 if (PyErr_Occurred()) SWIG_fail;
24720 }
24721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24722 return resultobj;
24723 fail:
24724 return NULL;
24725}
24726
24727
24728static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24729 PyObject *resultobj;
24730 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24731 wxDataFormat *arg2 = 0 ;
24732 PyObject * obj0 = 0 ;
24733 PyObject * obj1 = 0 ;
24734 char *kwnames[] = {
24735 (char *) "self",(char *) "format", NULL
24736 };
24737
24738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24742 SWIG_POINTER_EXCEPTION | 0)) == -1)
24743 SWIG_fail;
24744 if (arg2 == NULL) {
24745 PyErr_SetString(PyExc_TypeError,"null reference");
24746 SWIG_fail;
24747 }
24748 {
24749 PyThreadState* __tstate = wxPyBeginAllowThreads();
24750 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24751
24752 wxPyEndAllowThreads(__tstate);
24753 if (PyErr_Occurred()) SWIG_fail;
24754 }
24755 Py_INCREF(Py_None); resultobj = Py_None;
24756 return resultobj;
24757 fail:
24758 return NULL;
24759}
24760
24761
68e533f8
RD
24762static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24763 PyObject *resultobj;
24764 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24765 size_t result;
24766 PyObject * obj0 = 0 ;
24767 char *kwnames[] = {
24768 (char *) "self", NULL
24769 };
24770
24771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
24772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24774 {
24775 PyThreadState* __tstate = wxPyBeginAllowThreads();
24776 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
24777
24778 wxPyEndAllowThreads(__tstate);
24779 if (PyErr_Occurred()) SWIG_fail;
24780 }
24781 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24782 return resultobj;
24783 fail:
24784 return NULL;
24785}
24786
24787
24788static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24789 PyObject *resultobj;
24790 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24791 PyObject *result;
24792 PyObject * obj0 = 0 ;
24793 char *kwnames[] = {
24794 (char *) "self", NULL
24795 };
24796
24797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
24798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24800 {
24801 PyThreadState* __tstate = wxPyBeginAllowThreads();
24802 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
24803
24804 wxPyEndAllowThreads(__tstate);
24805 if (PyErr_Occurred()) SWIG_fail;
24806 }
24807 resultobj = result;
24808 return resultobj;
24809 fail:
24810 return NULL;
24811}
24812
24813
24814static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24815 PyObject *resultobj;
24816 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24817 PyObject *arg2 = (PyObject *) 0 ;
24818 bool result;
24819 PyObject * obj0 = 0 ;
24820 PyObject * obj1 = 0 ;
24821 char *kwnames[] = {
24822 (char *) "self",(char *) "data", NULL
24823 };
24824
24825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
24826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24828 arg2 = obj1;
24829 {
24830 PyThreadState* __tstate = wxPyBeginAllowThreads();
24831 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
24832
24833 wxPyEndAllowThreads(__tstate);
24834 if (PyErr_Occurred()) SWIG_fail;
24835 }
24836 {
24837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24838 }
24839 return resultobj;
24840 fail:
24841 return NULL;
24842}
24843
24844
d55e5bfc
RD
24845static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24846 PyObject *obj;
24847 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24848 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24849 Py_INCREF(obj);
24850 return Py_BuildValue((char *)"");
24851}
24852static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24853 PyObject *resultobj;
24854 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24855 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24856 wxPyDataObjectSimple *result;
24857 PyObject * obj0 = 0 ;
24858 char *kwnames[] = {
24859 (char *) "format", NULL
24860 };
24861
24862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24863 if (obj0) {
24864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24865 SWIG_POINTER_EXCEPTION | 0)) == -1)
24866 SWIG_fail;
24867 if (arg1 == NULL) {
24868 PyErr_SetString(PyExc_TypeError,"null reference");
24869 SWIG_fail;
24870 }
24871 }
24872 {
24873 PyThreadState* __tstate = wxPyBeginAllowThreads();
24874 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24875
24876 wxPyEndAllowThreads(__tstate);
24877 if (PyErr_Occurred()) SWIG_fail;
24878 }
24879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24880 return resultobj;
24881 fail:
24882 return NULL;
24883}
24884
24885
24886static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24887 PyObject *resultobj;
24888 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24889 PyObject *arg2 = (PyObject *) 0 ;
24890 PyObject *arg3 = (PyObject *) 0 ;
24891 PyObject * obj0 = 0 ;
24892 PyObject * obj1 = 0 ;
24893 PyObject * obj2 = 0 ;
24894 char *kwnames[] = {
24895 (char *) "self",(char *) "self",(char *) "_class", NULL
24896 };
24897
24898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24901 arg2 = obj1;
24902 arg3 = obj2;
24903 {
24904 PyThreadState* __tstate = wxPyBeginAllowThreads();
24905 (arg1)->_setCallbackInfo(arg2,arg3);
24906
24907 wxPyEndAllowThreads(__tstate);
24908 if (PyErr_Occurred()) SWIG_fail;
24909 }
24910 Py_INCREF(Py_None); resultobj = Py_None;
24911 return resultobj;
24912 fail:
24913 return NULL;
24914}
24915
24916
24917static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24918 PyObject *obj;
24919 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24920 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24921 Py_INCREF(obj);
24922 return Py_BuildValue((char *)"");
24923}
24924static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24925 PyObject *resultobj;
24926 wxDataObjectComposite *result;
24927 char *kwnames[] = {
24928 NULL
24929 };
24930
24931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24932 {
24933 PyThreadState* __tstate = wxPyBeginAllowThreads();
24934 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24935
24936 wxPyEndAllowThreads(__tstate);
24937 if (PyErr_Occurred()) SWIG_fail;
24938 }
24939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24940 return resultobj;
24941 fail:
24942 return NULL;
24943}
24944
24945
24946static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24947 PyObject *resultobj;
24948 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24949 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
68e533f8 24950 bool arg3 = (bool) False ;
d55e5bfc
RD
24951 PyObject * obj0 = 0 ;
24952 PyObject * obj1 = 0 ;
24953 PyObject * obj2 = 0 ;
24954 char *kwnames[] = {
24955 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24956 };
24957
24958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24961 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24962 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24963 if (obj2) {
68e533f8 24964 arg3 = (bool) SWIG_AsBool(obj2);
d55e5bfc
RD
24965 if (PyErr_Occurred()) SWIG_fail;
24966 }
24967 {
24968 PyThreadState* __tstate = wxPyBeginAllowThreads();
24969 (arg1)->Add(arg2,arg3);
24970
24971 wxPyEndAllowThreads(__tstate);
24972 if (PyErr_Occurred()) SWIG_fail;
24973 }
24974 Py_INCREF(Py_None); resultobj = Py_None;
24975 return resultobj;
24976 fail:
24977 return NULL;
24978}
24979
24980
24981static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24982 PyObject *obj;
24983 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24984 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24985 Py_INCREF(obj);
24986 return Py_BuildValue((char *)"");
24987}
24988static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24989 PyObject *resultobj;
24990 wxString const &arg1_defvalue = wxPyEmptyString ;
24991 wxString *arg1 = (wxString *) &arg1_defvalue ;
24992 wxTextDataObject *result;
24993 bool temp1 = False ;
24994 PyObject * obj0 = 0 ;
24995 char *kwnames[] = {
24996 (char *) "text", NULL
24997 };
24998
24999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25000 if (obj0) {
25001 {
25002 arg1 = wxString_in_helper(obj0);
25003 if (arg1 == NULL) SWIG_fail;
25004 temp1 = True;
25005 }
25006 }
25007 {
25008 PyThreadState* __tstate = wxPyBeginAllowThreads();
25009 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25010
25011 wxPyEndAllowThreads(__tstate);
25012 if (PyErr_Occurred()) SWIG_fail;
25013 }
25014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25015 {
25016 if (temp1)
25017 delete arg1;
25018 }
25019 return resultobj;
25020 fail:
25021 {
25022 if (temp1)
25023 delete arg1;
25024 }
25025 return NULL;
25026}
25027
25028
25029static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
25030 PyObject *resultobj;
25031 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25032 size_t result;
25033 PyObject * obj0 = 0 ;
25034 char *kwnames[] = {
25035 (char *) "self", NULL
25036 };
25037
25038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25041 {
25042 PyThreadState* __tstate = wxPyBeginAllowThreads();
25043 result = (size_t)(arg1)->GetTextLength();
25044
25045 wxPyEndAllowThreads(__tstate);
25046 if (PyErr_Occurred()) SWIG_fail;
25047 }
25048 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25049 return resultobj;
25050 fail:
25051 return NULL;
25052}
25053
25054
25055static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25056 PyObject *resultobj;
25057 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25058 wxString result;
25059 PyObject * obj0 = 0 ;
25060 char *kwnames[] = {
25061 (char *) "self", NULL
25062 };
25063
25064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25067 {
25068 PyThreadState* __tstate = wxPyBeginAllowThreads();
25069 result = (arg1)->GetText();
25070
25071 wxPyEndAllowThreads(__tstate);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 {
25075#if wxUSE_UNICODE
25076 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25077#else
25078 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25079#endif
25080 }
25081 return resultobj;
25082 fail:
25083 return NULL;
25084}
25085
25086
25087static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25088 PyObject *resultobj;
25089 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25090 wxString *arg2 = 0 ;
25091 bool temp2 = False ;
25092 PyObject * obj0 = 0 ;
25093 PyObject * obj1 = 0 ;
25094 char *kwnames[] = {
25095 (char *) "self",(char *) "text", NULL
25096 };
25097
25098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25101 {
25102 arg2 = wxString_in_helper(obj1);
25103 if (arg2 == NULL) SWIG_fail;
25104 temp2 = True;
25105 }
25106 {
25107 PyThreadState* __tstate = wxPyBeginAllowThreads();
25108 (arg1)->SetText((wxString const &)*arg2);
25109
25110 wxPyEndAllowThreads(__tstate);
25111 if (PyErr_Occurred()) SWIG_fail;
25112 }
25113 Py_INCREF(Py_None); resultobj = Py_None;
25114 {
25115 if (temp2)
25116 delete arg2;
25117 }
25118 return resultobj;
25119 fail:
25120 {
25121 if (temp2)
25122 delete arg2;
25123 }
25124 return NULL;
25125}
25126
25127
25128static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
25129 PyObject *obj;
25130 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25131 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25132 Py_INCREF(obj);
25133 return Py_BuildValue((char *)"");
25134}
25135static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25136 PyObject *resultobj;
25137 wxString const &arg1_defvalue = wxPyEmptyString ;
25138 wxString *arg1 = (wxString *) &arg1_defvalue ;
25139 wxPyTextDataObject *result;
25140 bool temp1 = False ;
25141 PyObject * obj0 = 0 ;
25142 char *kwnames[] = {
25143 (char *) "text", NULL
25144 };
25145
25146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25147 if (obj0) {
25148 {
25149 arg1 = wxString_in_helper(obj0);
25150 if (arg1 == NULL) SWIG_fail;
25151 temp1 = True;
25152 }
25153 }
25154 {
25155 PyThreadState* __tstate = wxPyBeginAllowThreads();
25156 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25157
25158 wxPyEndAllowThreads(__tstate);
25159 if (PyErr_Occurred()) SWIG_fail;
25160 }
25161 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25162 {
25163 if (temp1)
25164 delete arg1;
25165 }
25166 return resultobj;
25167 fail:
25168 {
25169 if (temp1)
25170 delete arg1;
25171 }
25172 return NULL;
25173}
25174
25175
25176static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25177 PyObject *resultobj;
25178 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25179 PyObject *arg2 = (PyObject *) 0 ;
25180 PyObject *arg3 = (PyObject *) 0 ;
25181 PyObject * obj0 = 0 ;
25182 PyObject * obj1 = 0 ;
25183 PyObject * obj2 = 0 ;
25184 char *kwnames[] = {
25185 (char *) "self",(char *) "self",(char *) "_class", NULL
25186 };
25187
25188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25191 arg2 = obj1;
25192 arg3 = obj2;
25193 {
25194 PyThreadState* __tstate = wxPyBeginAllowThreads();
25195 (arg1)->_setCallbackInfo(arg2,arg3);
25196
25197 wxPyEndAllowThreads(__tstate);
25198 if (PyErr_Occurred()) SWIG_fail;
25199 }
25200 Py_INCREF(Py_None); resultobj = Py_None;
25201 return resultobj;
25202 fail:
25203 return NULL;
25204}
25205
25206
25207static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25208 PyObject *obj;
25209 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25210 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25211 Py_INCREF(obj);
25212 return Py_BuildValue((char *)"");
25213}
25214static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25215 PyObject *resultobj;
25216 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25217 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25218 wxBitmapDataObject *result;
25219 PyObject * obj0 = 0 ;
25220 char *kwnames[] = {
25221 (char *) "bitmap", NULL
25222 };
25223
25224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25225 if (obj0) {
25226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25227 SWIG_POINTER_EXCEPTION | 0)) == -1)
25228 SWIG_fail;
25229 if (arg1 == NULL) {
25230 PyErr_SetString(PyExc_TypeError,"null reference");
25231 SWIG_fail;
25232 }
25233 }
25234 {
25235 PyThreadState* __tstate = wxPyBeginAllowThreads();
25236 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25237
25238 wxPyEndAllowThreads(__tstate);
25239 if (PyErr_Occurred()) SWIG_fail;
25240 }
25241 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25242 return resultobj;
25243 fail:
25244 return NULL;
25245}
25246
25247
25248static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25249 PyObject *resultobj;
25250 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25251 wxBitmap result;
25252 PyObject * obj0 = 0 ;
25253 char *kwnames[] = {
25254 (char *) "self", NULL
25255 };
25256
25257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25260 {
25261 PyThreadState* __tstate = wxPyBeginAllowThreads();
25262 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25263
25264 wxPyEndAllowThreads(__tstate);
25265 if (PyErr_Occurred()) SWIG_fail;
25266 }
25267 {
25268 wxBitmap * resultptr;
25269 resultptr = new wxBitmap((wxBitmap &) result);
25270 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25271 }
25272 return resultobj;
25273 fail:
25274 return NULL;
25275}
25276
25277
25278static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25279 PyObject *resultobj;
25280 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25281 wxBitmap *arg2 = 0 ;
25282 PyObject * obj0 = 0 ;
25283 PyObject * obj1 = 0 ;
25284 char *kwnames[] = {
25285 (char *) "self",(char *) "bitmap", NULL
25286 };
25287
25288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25291 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25292 SWIG_POINTER_EXCEPTION | 0)) == -1)
25293 SWIG_fail;
25294 if (arg2 == NULL) {
25295 PyErr_SetString(PyExc_TypeError,"null reference");
25296 SWIG_fail;
25297 }
25298 {
25299 PyThreadState* __tstate = wxPyBeginAllowThreads();
25300 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25301
25302 wxPyEndAllowThreads(__tstate);
25303 if (PyErr_Occurred()) SWIG_fail;
25304 }
25305 Py_INCREF(Py_None); resultobj = Py_None;
25306 return resultobj;
25307 fail:
25308 return NULL;
25309}
25310
25311
25312static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25313 PyObject *obj;
25314 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25315 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25316 Py_INCREF(obj);
25317 return Py_BuildValue((char *)"");
25318}
25319static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25320 PyObject *resultobj;
25321 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25322 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25323 wxPyBitmapDataObject *result;
25324 PyObject * obj0 = 0 ;
25325 char *kwnames[] = {
25326 (char *) "bitmap", NULL
25327 };
25328
25329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25330 if (obj0) {
25331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25332 SWIG_POINTER_EXCEPTION | 0)) == -1)
25333 SWIG_fail;
25334 if (arg1 == NULL) {
25335 PyErr_SetString(PyExc_TypeError,"null reference");
25336 SWIG_fail;
25337 }
25338 }
25339 {
25340 PyThreadState* __tstate = wxPyBeginAllowThreads();
25341 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25342
25343 wxPyEndAllowThreads(__tstate);
25344 if (PyErr_Occurred()) SWIG_fail;
25345 }
25346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25347 return resultobj;
25348 fail:
25349 return NULL;
25350}
25351
25352
25353static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25354 PyObject *resultobj;
25355 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25356 PyObject *arg2 = (PyObject *) 0 ;
25357 PyObject *arg3 = (PyObject *) 0 ;
25358 PyObject * obj0 = 0 ;
25359 PyObject * obj1 = 0 ;
25360 PyObject * obj2 = 0 ;
25361 char *kwnames[] = {
25362 (char *) "self",(char *) "self",(char *) "_class", NULL
25363 };
25364
25365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25368 arg2 = obj1;
25369 arg3 = obj2;
25370 {
25371 PyThreadState* __tstate = wxPyBeginAllowThreads();
25372 (arg1)->_setCallbackInfo(arg2,arg3);
25373
25374 wxPyEndAllowThreads(__tstate);
25375 if (PyErr_Occurred()) SWIG_fail;
25376 }
25377 Py_INCREF(Py_None); resultobj = Py_None;
25378 return resultobj;
25379 fail:
25380 return NULL;
25381}
25382
25383
25384static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25385 PyObject *obj;
25386 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25387 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25388 Py_INCREF(obj);
25389 return Py_BuildValue((char *)"");
25390}
25391static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25392 PyObject *resultobj;
25393 wxFileDataObject *result;
25394 char *kwnames[] = {
25395 NULL
25396 };
25397
25398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25399 {
25400 PyThreadState* __tstate = wxPyBeginAllowThreads();
25401 result = (wxFileDataObject *)new wxFileDataObject();
25402
25403 wxPyEndAllowThreads(__tstate);
25404 if (PyErr_Occurred()) SWIG_fail;
25405 }
25406 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25407 return resultobj;
25408 fail:
25409 return NULL;
25410}
25411
25412
25413static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25414 PyObject *resultobj;
25415 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25416 wxArrayString *result;
25417 PyObject * obj0 = 0 ;
25418 char *kwnames[] = {
25419 (char *) "self", NULL
25420 };
25421
25422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25425 {
25426 PyThreadState* __tstate = wxPyBeginAllowThreads();
25427 {
25428 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25429 result = (wxArrayString *) &_result_ref;
25430 }
25431
25432 wxPyEndAllowThreads(__tstate);
25433 if (PyErr_Occurred()) SWIG_fail;
25434 }
25435 {
25436 resultobj = wxArrayString2PyList_helper(*result);
25437 }
25438 return resultobj;
25439 fail:
25440 return NULL;
25441}
25442
25443
25444static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25445 PyObject *resultobj;
25446 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25447 wxString *arg2 = 0 ;
25448 bool temp2 = False ;
25449 PyObject * obj0 = 0 ;
25450 PyObject * obj1 = 0 ;
25451 char *kwnames[] = {
25452 (char *) "self",(char *) "filename", NULL
25453 };
25454
25455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25458 {
25459 arg2 = wxString_in_helper(obj1);
25460 if (arg2 == NULL) SWIG_fail;
25461 temp2 = True;
25462 }
25463 {
25464 PyThreadState* __tstate = wxPyBeginAllowThreads();
25465 (arg1)->AddFile((wxString const &)*arg2);
25466
25467 wxPyEndAllowThreads(__tstate);
25468 if (PyErr_Occurred()) SWIG_fail;
25469 }
25470 Py_INCREF(Py_None); resultobj = Py_None;
25471 {
25472 if (temp2)
25473 delete arg2;
25474 }
25475 return resultobj;
25476 fail:
25477 {
25478 if (temp2)
25479 delete arg2;
25480 }
25481 return NULL;
25482}
25483
25484
25485static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25486 PyObject *obj;
25487 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25488 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25489 Py_INCREF(obj);
25490 return Py_BuildValue((char *)"");
25491}
25492static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25493 PyObject *resultobj;
25494 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25495 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25496 wxCustomDataObject *result;
25497 PyObject * obj0 = 0 ;
25498 char *kwnames[] = {
25499 (char *) "format", NULL
25500 };
25501
25502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25503 if (obj0) {
25504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25505 SWIG_POINTER_EXCEPTION | 0)) == -1)
25506 SWIG_fail;
25507 if (arg1 == NULL) {
25508 PyErr_SetString(PyExc_TypeError,"null reference");
25509 SWIG_fail;
25510 }
25511 }
25512 {
25513 PyThreadState* __tstate = wxPyBeginAllowThreads();
25514 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25515
25516 wxPyEndAllowThreads(__tstate);
25517 if (PyErr_Occurred()) SWIG_fail;
25518 }
25519 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25520 return resultobj;
25521 fail:
25522 return NULL;
25523}
25524
25525
d55e5bfc
RD
25526static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25527 PyObject *resultobj;
25528 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25529 PyObject *arg2 = (PyObject *) 0 ;
25530 bool result;
25531 PyObject * obj0 = 0 ;
25532 PyObject * obj1 = 0 ;
25533 char *kwnames[] = {
25534 (char *) "self",(char *) "data", NULL
25535 };
25536
25537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25540 arg2 = obj1;
25541 {
25542 PyThreadState* __tstate = wxPyBeginAllowThreads();
25543 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25544
25545 wxPyEndAllowThreads(__tstate);
25546 if (PyErr_Occurred()) SWIG_fail;
25547 }
25548 {
25549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25550 }
25551 return resultobj;
25552 fail:
25553 return NULL;
25554}
25555
25556
25557static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25558 PyObject *resultobj;
25559 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25560 size_t result;
25561 PyObject * obj0 = 0 ;
25562 char *kwnames[] = {
25563 (char *) "self", NULL
25564 };
25565
25566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25569 {
25570 PyThreadState* __tstate = wxPyBeginAllowThreads();
25571 result = (size_t)(arg1)->GetSize();
25572
25573 wxPyEndAllowThreads(__tstate);
25574 if (PyErr_Occurred()) SWIG_fail;
25575 }
25576 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25577 return resultobj;
25578 fail:
25579 return NULL;
25580}
25581
25582
25583static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25584 PyObject *resultobj;
25585 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25586 PyObject *result;
25587 PyObject * obj0 = 0 ;
25588 char *kwnames[] = {
25589 (char *) "self", NULL
25590 };
25591
25592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25595 {
25596 PyThreadState* __tstate = wxPyBeginAllowThreads();
25597 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25598
25599 wxPyEndAllowThreads(__tstate);
25600 if (PyErr_Occurred()) SWIG_fail;
25601 }
25602 resultobj = result;
25603 return resultobj;
25604 fail:
25605 return NULL;
25606}
25607
25608
25609static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25610 PyObject *obj;
25611 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25612 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25613 Py_INCREF(obj);
25614 return Py_BuildValue((char *)"");
25615}
25616static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25617 PyObject *resultobj;
25618 wxURLDataObject *result;
25619 char *kwnames[] = {
25620 NULL
25621 };
25622
25623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25624 {
25625 PyThreadState* __tstate = wxPyBeginAllowThreads();
25626 result = (wxURLDataObject *)new wxURLDataObject();
25627
25628 wxPyEndAllowThreads(__tstate);
25629 if (PyErr_Occurred()) SWIG_fail;
25630 }
25631 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25632 return resultobj;
25633 fail:
25634 return NULL;
25635}
25636
25637
25638static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25639 PyObject *resultobj;
25640 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25641 wxString result;
25642 PyObject * obj0 = 0 ;
25643 char *kwnames[] = {
25644 (char *) "self", NULL
25645 };
25646
25647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25650 {
25651 PyThreadState* __tstate = wxPyBeginAllowThreads();
25652 result = (arg1)->GetURL();
25653
25654 wxPyEndAllowThreads(__tstate);
25655 if (PyErr_Occurred()) SWIG_fail;
25656 }
25657 {
25658#if wxUSE_UNICODE
25659 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25660#else
25661 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25662#endif
25663 }
25664 return resultobj;
25665 fail:
25666 return NULL;
25667}
25668
25669
25670static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25671 PyObject *resultobj;
25672 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25673 wxString *arg2 = 0 ;
25674 bool temp2 = False ;
25675 PyObject * obj0 = 0 ;
25676 PyObject * obj1 = 0 ;
25677 char *kwnames[] = {
25678 (char *) "self",(char *) "url", NULL
25679 };
25680
25681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25684 {
25685 arg2 = wxString_in_helper(obj1);
25686 if (arg2 == NULL) SWIG_fail;
25687 temp2 = True;
25688 }
25689 {
25690 PyThreadState* __tstate = wxPyBeginAllowThreads();
25691 (arg1)->SetURL((wxString const &)*arg2);
25692
25693 wxPyEndAllowThreads(__tstate);
25694 if (PyErr_Occurred()) SWIG_fail;
25695 }
25696 Py_INCREF(Py_None); resultobj = Py_None;
25697 {
25698 if (temp2)
25699 delete arg2;
25700 }
25701 return resultobj;
25702 fail:
25703 {
25704 if (temp2)
25705 delete arg2;
25706 }
25707 return NULL;
25708}
25709
25710
25711static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25712 PyObject *obj;
25713 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25714 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25715 Py_INCREF(obj);
25716 return Py_BuildValue((char *)"");
25717}
25718static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25719 PyObject *resultobj;
25720 wxMetafileDataObject *result;
25721 char *kwnames[] = {
25722 NULL
25723 };
25724
25725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25726 {
25727 PyThreadState* __tstate = wxPyBeginAllowThreads();
25728 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25729
25730 wxPyEndAllowThreads(__tstate);
25731 if (PyErr_Occurred()) SWIG_fail;
25732 }
25733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25734 return resultobj;
25735 fail:
25736 return NULL;
25737}
25738
25739
25740static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25741 PyObject *resultobj;
25742 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25743 wxMetafile *arg2 = 0 ;
25744 PyObject * obj0 = 0 ;
25745 PyObject * obj1 = 0 ;
25746 char *kwnames[] = {
25747 (char *) "self",(char *) "metafile", NULL
25748 };
25749
25750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25753 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25754 SWIG_POINTER_EXCEPTION | 0)) == -1)
25755 SWIG_fail;
25756 if (arg2 == NULL) {
25757 PyErr_SetString(PyExc_TypeError,"null reference");
25758 SWIG_fail;
25759 }
25760 {
25761 PyThreadState* __tstate = wxPyBeginAllowThreads();
25762 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25763
25764 wxPyEndAllowThreads(__tstate);
25765 if (PyErr_Occurred()) SWIG_fail;
25766 }
25767 Py_INCREF(Py_None); resultobj = Py_None;
25768 return resultobj;
25769 fail:
25770 return NULL;
25771}
25772
25773
25774static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25775 PyObject *resultobj;
25776 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25777 wxMetafile result;
25778 PyObject * obj0 = 0 ;
25779 char *kwnames[] = {
25780 (char *) "self", NULL
25781 };
25782
25783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25786 {
25787 PyThreadState* __tstate = wxPyBeginAllowThreads();
25788 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25789
25790 wxPyEndAllowThreads(__tstate);
25791 if (PyErr_Occurred()) SWIG_fail;
25792 }
25793 {
25794 wxMetafile * resultptr;
25795 resultptr = new wxMetafile((wxMetafile &) result);
25796 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25797 }
25798 return resultobj;
25799 fail:
25800 return NULL;
25801}
25802
25803
25804static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25805 PyObject *obj;
25806 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25807 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25808 Py_INCREF(obj);
25809 return Py_BuildValue((char *)"");
25810}
25811static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25812 PyObject *resultobj;
25813 int arg1 ;
25814 bool result;
25815 PyObject * obj0 = 0 ;
25816 char *kwnames[] = {
25817 (char *) "res", NULL
25818 };
25819
25820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25821 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25822 if (PyErr_Occurred()) SWIG_fail;
25823 {
25824 PyThreadState* __tstate = wxPyBeginAllowThreads();
25825 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25826
25827 wxPyEndAllowThreads(__tstate);
25828 if (PyErr_Occurred()) SWIG_fail;
25829 }
25830 {
25831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25832 }
25833 return resultobj;
25834 fail:
25835 return NULL;
25836}
25837
25838
25839static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25840 PyObject *resultobj;
25841 wxWindow *arg1 = (wxWindow *) 0 ;
25842 wxCursor const &arg2_defvalue = wxNullCursor ;
25843 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25844 wxCursor const &arg3_defvalue = wxNullCursor ;
25845 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25846 wxCursor const &arg4_defvalue = wxNullCursor ;
25847 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25848 wxPyDropSource *result;
25849 PyObject * obj0 = 0 ;
25850 PyObject * obj1 = 0 ;
25851 PyObject * obj2 = 0 ;
25852 PyObject * obj3 = 0 ;
25853 char *kwnames[] = {
25854 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25855 };
25856
25857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25860 if (obj1) {
25861 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25862 SWIG_POINTER_EXCEPTION | 0)) == -1)
25863 SWIG_fail;
25864 if (arg2 == NULL) {
25865 PyErr_SetString(PyExc_TypeError,"null reference");
25866 SWIG_fail;
25867 }
25868 }
25869 if (obj2) {
25870 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25871 SWIG_POINTER_EXCEPTION | 0)) == -1)
25872 SWIG_fail;
25873 if (arg3 == NULL) {
25874 PyErr_SetString(PyExc_TypeError,"null reference");
25875 SWIG_fail;
25876 }
25877 }
25878 if (obj3) {
25879 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25880 SWIG_POINTER_EXCEPTION | 0)) == -1)
25881 SWIG_fail;
25882 if (arg4 == NULL) {
25883 PyErr_SetString(PyExc_TypeError,"null reference");
25884 SWIG_fail;
25885 }
25886 }
25887 {
25888 PyThreadState* __tstate = wxPyBeginAllowThreads();
25889 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25890
25891 wxPyEndAllowThreads(__tstate);
25892 if (PyErr_Occurred()) SWIG_fail;
25893 }
25894 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25895 return resultobj;
25896 fail:
25897 return NULL;
25898}
25899
25900
25901static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25902 PyObject *resultobj;
25903 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25904 PyObject *arg2 = (PyObject *) 0 ;
25905 PyObject *arg3 = (PyObject *) 0 ;
25906 int arg4 ;
25907 PyObject * obj0 = 0 ;
25908 PyObject * obj1 = 0 ;
25909 PyObject * obj2 = 0 ;
25910 PyObject * obj3 = 0 ;
25911 char *kwnames[] = {
25912 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25913 };
25914
25915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25918 arg2 = obj1;
25919 arg3 = obj2;
25920 arg4 = (int) SWIG_AsInt(obj3);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 {
25923 PyThreadState* __tstate = wxPyBeginAllowThreads();
25924 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25925
25926 wxPyEndAllowThreads(__tstate);
25927 if (PyErr_Occurred()) SWIG_fail;
25928 }
25929 Py_INCREF(Py_None); resultobj = Py_None;
25930 return resultobj;
25931 fail:
25932 return NULL;
25933}
25934
25935
25936static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25937 PyObject *resultobj;
25938 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25939 PyObject * obj0 = 0 ;
25940 char *kwnames[] = {
25941 (char *) "self", NULL
25942 };
25943
25944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25947 {
25948 PyThreadState* __tstate = wxPyBeginAllowThreads();
25949 delete arg1;
25950
25951 wxPyEndAllowThreads(__tstate);
25952 if (PyErr_Occurred()) SWIG_fail;
25953 }
25954 Py_INCREF(Py_None); resultobj = Py_None;
25955 return resultobj;
25956 fail:
25957 return NULL;
25958}
25959
25960
25961static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25962 PyObject *resultobj;
25963 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25964 wxDataObject *arg2 = 0 ;
25965 PyObject * obj0 = 0 ;
25966 PyObject * obj1 = 0 ;
25967 char *kwnames[] = {
25968 (char *) "self",(char *) "data", NULL
25969 };
25970
25971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25974 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25975 SWIG_POINTER_EXCEPTION | 0)) == -1)
25976 SWIG_fail;
25977 if (arg2 == NULL) {
25978 PyErr_SetString(PyExc_TypeError,"null reference");
25979 SWIG_fail;
25980 }
25981 {
25982 PyThreadState* __tstate = wxPyBeginAllowThreads();
25983 (arg1)->SetData(*arg2);
25984
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 Py_INCREF(Py_None); resultobj = Py_None;
25989 return resultobj;
25990 fail:
25991 return NULL;
25992}
25993
25994
25995static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25996 PyObject *resultobj;
25997 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25998 wxDataObject *result;
25999 PyObject * obj0 = 0 ;
26000 char *kwnames[] = {
26001 (char *) "self", NULL
26002 };
26003
26004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26007 {
26008 PyThreadState* __tstate = wxPyBeginAllowThreads();
26009 result = (wxDataObject *)(arg1)->GetDataObject();
26010
26011 wxPyEndAllowThreads(__tstate);
26012 if (PyErr_Occurred()) SWIG_fail;
26013 }
26014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26015 return resultobj;
26016 fail:
26017 return NULL;
26018}
26019
26020
26021static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26022 PyObject *resultobj;
26023 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26024 int arg2 ;
26025 wxCursor *arg3 = 0 ;
26026 PyObject * obj0 = 0 ;
26027 PyObject * obj1 = 0 ;
26028 PyObject * obj2 = 0 ;
26029 char *kwnames[] = {
26030 (char *) "self",(char *) "res",(char *) "cursor", NULL
26031 };
26032
26033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26036 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26037 if (PyErr_Occurred()) SWIG_fail;
26038 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26039 SWIG_POINTER_EXCEPTION | 0)) == -1)
26040 SWIG_fail;
26041 if (arg3 == NULL) {
26042 PyErr_SetString(PyExc_TypeError,"null reference");
26043 SWIG_fail;
26044 }
26045 {
26046 PyThreadState* __tstate = wxPyBeginAllowThreads();
26047 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26048
26049 wxPyEndAllowThreads(__tstate);
26050 if (PyErr_Occurred()) SWIG_fail;
26051 }
26052 Py_INCREF(Py_None); resultobj = Py_None;
26053 return resultobj;
26054 fail:
26055 return NULL;
26056}
26057
26058
26059static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26060 PyObject *resultobj;
26061 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26062 int arg2 = (int) wxDrag_CopyOnly ;
26063 int result;
26064 PyObject * obj0 = 0 ;
26065 PyObject * obj1 = 0 ;
26066 char *kwnames[] = {
26067 (char *) "self",(char *) "flags", NULL
26068 };
26069
26070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26073 if (obj1) {
26074 arg2 = (int) SWIG_AsInt(obj1);
26075 if (PyErr_Occurred()) SWIG_fail;
26076 }
26077 {
26078 PyThreadState* __tstate = wxPyBeginAllowThreads();
26079 result = (int)(arg1)->DoDragDrop(arg2);
26080
26081 wxPyEndAllowThreads(__tstate);
26082 if (PyErr_Occurred()) SWIG_fail;
26083 }
26084 resultobj = SWIG_FromInt((int)result);
26085 return resultobj;
26086 fail:
26087 return NULL;
26088}
26089
26090
26091static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
26092 PyObject *resultobj;
26093 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26094 int arg2 ;
26095 bool result;
26096 PyObject * obj0 = 0 ;
26097 PyObject * obj1 = 0 ;
26098 char *kwnames[] = {
26099 (char *) "self",(char *) "effect", NULL
26100 };
26101
26102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26105 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26106 if (PyErr_Occurred()) SWIG_fail;
26107 {
26108 PyThreadState* __tstate = wxPyBeginAllowThreads();
26109 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26110
26111 wxPyEndAllowThreads(__tstate);
26112 if (PyErr_Occurred()) SWIG_fail;
26113 }
26114 {
26115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26116 }
26117 return resultobj;
26118 fail:
26119 return NULL;
26120}
26121
26122
26123static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
26124 PyObject *obj;
26125 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26126 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26127 Py_INCREF(obj);
26128 return Py_BuildValue((char *)"");
26129}
26130static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26131 PyObject *resultobj;
26132 wxDataObject *arg1 = (wxDataObject *) NULL ;
26133 wxPyDropTarget *result;
26134 PyObject * obj0 = 0 ;
26135 char *kwnames[] = {
26136 (char *) "dataObject", NULL
26137 };
26138
26139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26140 if (obj0) {
26141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26142 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26143 }
26144 {
26145 PyThreadState* __tstate = wxPyBeginAllowThreads();
26146 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26147
26148 wxPyEndAllowThreads(__tstate);
26149 if (PyErr_Occurred()) SWIG_fail;
26150 }
26151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26152 return resultobj;
26153 fail:
26154 return NULL;
26155}
26156
26157
26158static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26159 PyObject *resultobj;
26160 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26161 PyObject *arg2 = (PyObject *) 0 ;
26162 PyObject *arg3 = (PyObject *) 0 ;
26163 PyObject * obj0 = 0 ;
26164 PyObject * obj1 = 0 ;
26165 PyObject * obj2 = 0 ;
26166 char *kwnames[] = {
26167 (char *) "self",(char *) "self",(char *) "_class", NULL
26168 };
26169
26170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26173 arg2 = obj1;
26174 arg3 = obj2;
26175 {
26176 PyThreadState* __tstate = wxPyBeginAllowThreads();
26177 (arg1)->_setCallbackInfo(arg2,arg3);
26178
26179 wxPyEndAllowThreads(__tstate);
26180 if (PyErr_Occurred()) SWIG_fail;
26181 }
26182 Py_INCREF(Py_None); resultobj = Py_None;
26183 return resultobj;
26184 fail:
26185 return NULL;
26186}
26187
26188
26189static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26190 PyObject *resultobj;
26191 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26192 PyObject * obj0 = 0 ;
26193 char *kwnames[] = {
26194 (char *) "self", NULL
26195 };
26196
26197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26200 {
26201 PyThreadState* __tstate = wxPyBeginAllowThreads();
26202 delete arg1;
26203
26204 wxPyEndAllowThreads(__tstate);
26205 if (PyErr_Occurred()) SWIG_fail;
26206 }
26207 Py_INCREF(Py_None); resultobj = Py_None;
26208 return resultobj;
26209 fail:
26210 return NULL;
26211}
26212
26213
26214static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26215 PyObject *resultobj;
26216 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26217 wxDataObject *result;
26218 PyObject * obj0 = 0 ;
26219 char *kwnames[] = {
26220 (char *) "self", NULL
26221 };
26222
26223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26226 {
26227 PyThreadState* __tstate = wxPyBeginAllowThreads();
26228 result = (wxDataObject *)(arg1)->GetDataObject();
26229
26230 wxPyEndAllowThreads(__tstate);
26231 if (PyErr_Occurred()) SWIG_fail;
26232 }
26233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26234 return resultobj;
26235 fail:
26236 return NULL;
26237}
26238
26239
26240static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26241 PyObject *resultobj;
26242 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26243 wxDataObject *arg2 = (wxDataObject *) 0 ;
26244 PyObject * obj0 = 0 ;
26245 PyObject * obj1 = 0 ;
26246 char *kwnames[] = {
26247 (char *) "self",(char *) "dataObject", NULL
26248 };
26249
26250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26254 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26255 {
26256 PyThreadState* __tstate = wxPyBeginAllowThreads();
26257 (arg1)->SetDataObject(arg2);
26258
26259 wxPyEndAllowThreads(__tstate);
26260 if (PyErr_Occurred()) SWIG_fail;
26261 }
26262 Py_INCREF(Py_None); resultobj = Py_None;
26263 return resultobj;
26264 fail:
26265 return NULL;
26266}
26267
26268
26269static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26270 PyObject *resultobj;
26271 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26272 int arg2 ;
26273 int arg3 ;
26274 int arg4 ;
26275 int result;
26276 PyObject * obj0 = 0 ;
26277 PyObject * obj1 = 0 ;
26278 PyObject * obj2 = 0 ;
26279 PyObject * obj3 = 0 ;
26280 char *kwnames[] = {
26281 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26282 };
26283
26284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26287 arg2 = (int) SWIG_AsInt(obj1);
26288 if (PyErr_Occurred()) SWIG_fail;
26289 arg3 = (int) SWIG_AsInt(obj2);
26290 if (PyErr_Occurred()) SWIG_fail;
26291 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26292 if (PyErr_Occurred()) SWIG_fail;
26293 {
26294 PyThreadState* __tstate = wxPyBeginAllowThreads();
26295 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26296
26297 wxPyEndAllowThreads(__tstate);
26298 if (PyErr_Occurred()) SWIG_fail;
26299 }
26300 resultobj = SWIG_FromInt((int)result);
26301 return resultobj;
26302 fail:
26303 return NULL;
26304}
26305
26306
26307static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26308 PyObject *resultobj;
26309 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26310 int arg2 ;
26311 int arg3 ;
26312 int arg4 ;
26313 int result;
26314 PyObject * obj0 = 0 ;
26315 PyObject * obj1 = 0 ;
26316 PyObject * obj2 = 0 ;
26317 PyObject * obj3 = 0 ;
26318 char *kwnames[] = {
26319 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26320 };
26321
26322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26325 arg2 = (int) SWIG_AsInt(obj1);
26326 if (PyErr_Occurred()) SWIG_fail;
26327 arg3 = (int) SWIG_AsInt(obj2);
26328 if (PyErr_Occurred()) SWIG_fail;
26329 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26330 if (PyErr_Occurred()) SWIG_fail;
26331 {
26332 PyThreadState* __tstate = wxPyBeginAllowThreads();
26333 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26334
26335 wxPyEndAllowThreads(__tstate);
26336 if (PyErr_Occurred()) SWIG_fail;
26337 }
26338 resultobj = SWIG_FromInt((int)result);
26339 return resultobj;
26340 fail:
26341 return NULL;
26342}
26343
26344
26345static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26346 PyObject *resultobj;
26347 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26348 PyObject * obj0 = 0 ;
26349 char *kwnames[] = {
26350 (char *) "self", NULL
26351 };
26352
26353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26356 {
26357 PyThreadState* __tstate = wxPyBeginAllowThreads();
26358 (arg1)->base_OnLeave();
26359
26360 wxPyEndAllowThreads(__tstate);
26361 if (PyErr_Occurred()) SWIG_fail;
26362 }
26363 Py_INCREF(Py_None); resultobj = Py_None;
26364 return resultobj;
26365 fail:
26366 return NULL;
26367}
26368
26369
26370static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26371 PyObject *resultobj;
26372 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26373 int arg2 ;
26374 int arg3 ;
26375 bool result;
26376 PyObject * obj0 = 0 ;
26377 PyObject * obj1 = 0 ;
26378 PyObject * obj2 = 0 ;
26379 char *kwnames[] = {
26380 (char *) "self",(char *) "x",(char *) "y", NULL
26381 };
26382
26383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26386 arg2 = (int) SWIG_AsInt(obj1);
26387 if (PyErr_Occurred()) SWIG_fail;
26388 arg3 = (int) SWIG_AsInt(obj2);
26389 if (PyErr_Occurred()) SWIG_fail;
26390 {
26391 PyThreadState* __tstate = wxPyBeginAllowThreads();
26392 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26393
26394 wxPyEndAllowThreads(__tstate);
26395 if (PyErr_Occurred()) SWIG_fail;
26396 }
26397 {
26398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26399 }
26400 return resultobj;
26401 fail:
26402 return NULL;
26403}
26404
26405
26406static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26407 PyObject *resultobj;
26408 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26409 bool result;
26410 PyObject * obj0 = 0 ;
26411 char *kwnames[] = {
26412 (char *) "self", NULL
26413 };
26414
26415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26418 {
26419 PyThreadState* __tstate = wxPyBeginAllowThreads();
26420 result = (bool)(arg1)->GetData();
26421
26422 wxPyEndAllowThreads(__tstate);
26423 if (PyErr_Occurred()) SWIG_fail;
26424 }
26425 {
26426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26427 }
26428 return resultobj;
26429 fail:
26430 return NULL;
26431}
26432
26433
26434static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26435 PyObject *obj;
26436 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26437 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26438 Py_INCREF(obj);
26439 return Py_BuildValue((char *)"");
26440}
26441static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26442 PyObject *resultobj;
26443 wxPyTextDropTarget *result;
26444 char *kwnames[] = {
26445 NULL
26446 };
26447
26448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26449 {
26450 PyThreadState* __tstate = wxPyBeginAllowThreads();
26451 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26452
26453 wxPyEndAllowThreads(__tstate);
26454 if (PyErr_Occurred()) SWIG_fail;
26455 }
26456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26457 return resultobj;
26458 fail:
26459 return NULL;
26460}
26461
26462
26463static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26464 PyObject *resultobj;
26465 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26466 PyObject *arg2 = (PyObject *) 0 ;
26467 PyObject *arg3 = (PyObject *) 0 ;
26468 PyObject * obj0 = 0 ;
26469 PyObject * obj1 = 0 ;
26470 PyObject * obj2 = 0 ;
26471 char *kwnames[] = {
26472 (char *) "self",(char *) "self",(char *) "_class", NULL
26473 };
26474
26475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26478 arg2 = obj1;
26479 arg3 = obj2;
26480 {
26481 PyThreadState* __tstate = wxPyBeginAllowThreads();
26482 (arg1)->_setCallbackInfo(arg2,arg3);
26483
26484 wxPyEndAllowThreads(__tstate);
26485 if (PyErr_Occurred()) SWIG_fail;
26486 }
26487 Py_INCREF(Py_None); resultobj = Py_None;
26488 return resultobj;
26489 fail:
26490 return NULL;
26491}
26492
26493
26494static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26495 PyObject *resultobj;
26496 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26497 int arg2 ;
26498 int arg3 ;
26499 int arg4 ;
26500 int result;
26501 PyObject * obj0 = 0 ;
26502 PyObject * obj1 = 0 ;
26503 PyObject * obj2 = 0 ;
26504 PyObject * obj3 = 0 ;
26505 char *kwnames[] = {
26506 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26507 };
26508
26509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26512 arg2 = (int) SWIG_AsInt(obj1);
26513 if (PyErr_Occurred()) SWIG_fail;
26514 arg3 = (int) SWIG_AsInt(obj2);
26515 if (PyErr_Occurred()) SWIG_fail;
26516 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26517 if (PyErr_Occurred()) SWIG_fail;
26518 {
26519 PyThreadState* __tstate = wxPyBeginAllowThreads();
26520 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26521
26522 wxPyEndAllowThreads(__tstate);
26523 if (PyErr_Occurred()) SWIG_fail;
26524 }
26525 resultobj = SWIG_FromInt((int)result);
26526 return resultobj;
26527 fail:
26528 return NULL;
26529}
26530
26531
26532static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26533 PyObject *resultobj;
26534 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26535 int arg2 ;
26536 int arg3 ;
26537 int arg4 ;
26538 int result;
26539 PyObject * obj0 = 0 ;
26540 PyObject * obj1 = 0 ;
26541 PyObject * obj2 = 0 ;
26542 PyObject * obj3 = 0 ;
26543 char *kwnames[] = {
26544 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26545 };
26546
26547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26550 arg2 = (int) SWIG_AsInt(obj1);
26551 if (PyErr_Occurred()) SWIG_fail;
26552 arg3 = (int) SWIG_AsInt(obj2);
26553 if (PyErr_Occurred()) SWIG_fail;
26554 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26555 if (PyErr_Occurred()) SWIG_fail;
26556 {
26557 PyThreadState* __tstate = wxPyBeginAllowThreads();
26558 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26559
26560 wxPyEndAllowThreads(__tstate);
26561 if (PyErr_Occurred()) SWIG_fail;
26562 }
26563 resultobj = SWIG_FromInt((int)result);
26564 return resultobj;
26565 fail:
26566 return NULL;
26567}
26568
26569
26570static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26571 PyObject *resultobj;
26572 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26573 PyObject * obj0 = 0 ;
26574 char *kwnames[] = {
26575 (char *) "self", NULL
26576 };
26577
26578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26581 {
26582 PyThreadState* __tstate = wxPyBeginAllowThreads();
26583 (arg1)->base_OnLeave();
26584
26585 wxPyEndAllowThreads(__tstate);
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 Py_INCREF(Py_None); resultobj = Py_None;
26589 return resultobj;
26590 fail:
26591 return NULL;
26592}
26593
26594
26595static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26596 PyObject *resultobj;
26597 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26598 int arg2 ;
26599 int arg3 ;
26600 bool result;
26601 PyObject * obj0 = 0 ;
26602 PyObject * obj1 = 0 ;
26603 PyObject * obj2 = 0 ;
26604 char *kwnames[] = {
26605 (char *) "self",(char *) "x",(char *) "y", NULL
26606 };
26607
26608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26611 arg2 = (int) SWIG_AsInt(obj1);
26612 if (PyErr_Occurred()) SWIG_fail;
26613 arg3 = (int) SWIG_AsInt(obj2);
26614 if (PyErr_Occurred()) SWIG_fail;
26615 {
26616 PyThreadState* __tstate = wxPyBeginAllowThreads();
26617 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26618
26619 wxPyEndAllowThreads(__tstate);
26620 if (PyErr_Occurred()) SWIG_fail;
26621 }
26622 {
26623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26624 }
26625 return resultobj;
26626 fail:
26627 return NULL;
26628}
26629
26630
26631static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26632 PyObject *resultobj;
26633 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26634 int arg2 ;
26635 int arg3 ;
26636 int arg4 ;
26637 int result;
26638 PyObject * obj0 = 0 ;
26639 PyObject * obj1 = 0 ;
26640 PyObject * obj2 = 0 ;
26641 PyObject * obj3 = 0 ;
26642 char *kwnames[] = {
26643 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26644 };
26645
26646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26649 arg2 = (int) SWIG_AsInt(obj1);
26650 if (PyErr_Occurred()) SWIG_fail;
26651 arg3 = (int) SWIG_AsInt(obj2);
26652 if (PyErr_Occurred()) SWIG_fail;
26653 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26654 if (PyErr_Occurred()) SWIG_fail;
26655 {
26656 PyThreadState* __tstate = wxPyBeginAllowThreads();
26657 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26658
26659 wxPyEndAllowThreads(__tstate);
26660 if (PyErr_Occurred()) SWIG_fail;
26661 }
26662 resultobj = SWIG_FromInt((int)result);
26663 return resultobj;
26664 fail:
26665 return NULL;
26666}
26667
26668
26669static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26670 PyObject *obj;
26671 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26672 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26673 Py_INCREF(obj);
26674 return Py_BuildValue((char *)"");
26675}
26676static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26677 PyObject *resultobj;
26678 wxPyFileDropTarget *result;
26679 char *kwnames[] = {
26680 NULL
26681 };
26682
26683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26684 {
26685 PyThreadState* __tstate = wxPyBeginAllowThreads();
26686 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26687
26688 wxPyEndAllowThreads(__tstate);
26689 if (PyErr_Occurred()) SWIG_fail;
26690 }
26691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26692 return resultobj;
26693 fail:
26694 return NULL;
26695}
26696
26697
26698static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26699 PyObject *resultobj;
26700 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26701 PyObject *arg2 = (PyObject *) 0 ;
26702 PyObject *arg3 = (PyObject *) 0 ;
26703 PyObject * obj0 = 0 ;
26704 PyObject * obj1 = 0 ;
26705 PyObject * obj2 = 0 ;
26706 char *kwnames[] = {
26707 (char *) "self",(char *) "self",(char *) "_class", NULL
26708 };
26709
26710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26713 arg2 = obj1;
26714 arg3 = obj2;
26715 {
26716 PyThreadState* __tstate = wxPyBeginAllowThreads();
26717 (arg1)->_setCallbackInfo(arg2,arg3);
26718
26719 wxPyEndAllowThreads(__tstate);
26720 if (PyErr_Occurred()) SWIG_fail;
26721 }
26722 Py_INCREF(Py_None); resultobj = Py_None;
26723 return resultobj;
26724 fail:
26725 return NULL;
26726}
26727
26728
26729static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26730 PyObject *resultobj;
26731 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26732 int arg2 ;
26733 int arg3 ;
26734 int arg4 ;
26735 int result;
26736 PyObject * obj0 = 0 ;
26737 PyObject * obj1 = 0 ;
26738 PyObject * obj2 = 0 ;
26739 PyObject * obj3 = 0 ;
26740 char *kwnames[] = {
26741 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26742 };
26743
26744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26747 arg2 = (int) SWIG_AsInt(obj1);
26748 if (PyErr_Occurred()) SWIG_fail;
26749 arg3 = (int) SWIG_AsInt(obj2);
26750 if (PyErr_Occurred()) SWIG_fail;
26751 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26752 if (PyErr_Occurred()) SWIG_fail;
26753 {
26754 PyThreadState* __tstate = wxPyBeginAllowThreads();
26755 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26756
26757 wxPyEndAllowThreads(__tstate);
26758 if (PyErr_Occurred()) SWIG_fail;
26759 }
26760 resultobj = SWIG_FromInt((int)result);
26761 return resultobj;
26762 fail:
26763 return NULL;
26764}
26765
26766
26767static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26768 PyObject *resultobj;
26769 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26770 int arg2 ;
26771 int arg3 ;
26772 int arg4 ;
26773 int result;
26774 PyObject * obj0 = 0 ;
26775 PyObject * obj1 = 0 ;
26776 PyObject * obj2 = 0 ;
26777 PyObject * obj3 = 0 ;
26778 char *kwnames[] = {
26779 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26780 };
26781
26782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26785 arg2 = (int) SWIG_AsInt(obj1);
26786 if (PyErr_Occurred()) SWIG_fail;
26787 arg3 = (int) SWIG_AsInt(obj2);
26788 if (PyErr_Occurred()) SWIG_fail;
26789 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26790 if (PyErr_Occurred()) SWIG_fail;
26791 {
26792 PyThreadState* __tstate = wxPyBeginAllowThreads();
26793 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26794
26795 wxPyEndAllowThreads(__tstate);
26796 if (PyErr_Occurred()) SWIG_fail;
26797 }
26798 resultobj = SWIG_FromInt((int)result);
26799 return resultobj;
26800 fail:
26801 return NULL;
26802}
26803
26804
26805static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26806 PyObject *resultobj;
26807 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26808 PyObject * obj0 = 0 ;
26809 char *kwnames[] = {
26810 (char *) "self", NULL
26811 };
26812
26813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26816 {
26817 PyThreadState* __tstate = wxPyBeginAllowThreads();
26818 (arg1)->base_OnLeave();
26819
26820 wxPyEndAllowThreads(__tstate);
26821 if (PyErr_Occurred()) SWIG_fail;
26822 }
26823 Py_INCREF(Py_None); resultobj = Py_None;
26824 return resultobj;
26825 fail:
26826 return NULL;
26827}
26828
26829
26830static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26831 PyObject *resultobj;
26832 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26833 int arg2 ;
26834 int arg3 ;
26835 bool result;
26836 PyObject * obj0 = 0 ;
26837 PyObject * obj1 = 0 ;
26838 PyObject * obj2 = 0 ;
26839 char *kwnames[] = {
26840 (char *) "self",(char *) "x",(char *) "y", NULL
26841 };
26842
26843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26846 arg2 = (int) SWIG_AsInt(obj1);
26847 if (PyErr_Occurred()) SWIG_fail;
26848 arg3 = (int) SWIG_AsInt(obj2);
26849 if (PyErr_Occurred()) SWIG_fail;
26850 {
26851 PyThreadState* __tstate = wxPyBeginAllowThreads();
26852 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26853
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 {
26858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26859 }
26860 return resultobj;
26861 fail:
26862 return NULL;
26863}
26864
26865
26866static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26867 PyObject *resultobj;
26868 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26869 int arg2 ;
26870 int arg3 ;
26871 int arg4 ;
26872 int result;
26873 PyObject * obj0 = 0 ;
26874 PyObject * obj1 = 0 ;
26875 PyObject * obj2 = 0 ;
26876 PyObject * obj3 = 0 ;
26877 char *kwnames[] = {
26878 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26879 };
26880
26881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26884 arg2 = (int) SWIG_AsInt(obj1);
26885 if (PyErr_Occurred()) SWIG_fail;
26886 arg3 = (int) SWIG_AsInt(obj2);
26887 if (PyErr_Occurred()) SWIG_fail;
26888 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26889 if (PyErr_Occurred()) SWIG_fail;
26890 {
26891 PyThreadState* __tstate = wxPyBeginAllowThreads();
26892 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26893
26894 wxPyEndAllowThreads(__tstate);
26895 if (PyErr_Occurred()) SWIG_fail;
26896 }
26897 resultobj = SWIG_FromInt((int)result);
26898 return resultobj;
26899 fail:
26900 return NULL;
26901}
26902
26903
26904static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26905 PyObject *obj;
26906 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26907 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26908 Py_INCREF(obj);
26909 return Py_BuildValue((char *)"");
26910}
26911static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26912 PyObject *resultobj;
26913 wxClipboard *result;
26914 char *kwnames[] = {
26915 NULL
26916 };
26917
26918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26919 {
26920 PyThreadState* __tstate = wxPyBeginAllowThreads();
26921 result = (wxClipboard *)new wxClipboard();
26922
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26927 return resultobj;
26928 fail:
26929 return NULL;
26930}
26931
26932
26933static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26934 PyObject *resultobj;
26935 wxClipboard *arg1 = (wxClipboard *) 0 ;
26936 PyObject * obj0 = 0 ;
26937 char *kwnames[] = {
26938 (char *) "self", NULL
26939 };
26940
26941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26944 {
26945 PyThreadState* __tstate = wxPyBeginAllowThreads();
26946 delete arg1;
26947
26948 wxPyEndAllowThreads(__tstate);
26949 if (PyErr_Occurred()) SWIG_fail;
26950 }
26951 Py_INCREF(Py_None); resultobj = Py_None;
26952 return resultobj;
26953 fail:
26954 return NULL;
26955}
26956
26957
26958static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26959 PyObject *resultobj;
26960 wxClipboard *arg1 = (wxClipboard *) 0 ;
26961 bool result;
26962 PyObject * obj0 = 0 ;
26963 char *kwnames[] = {
26964 (char *) "self", NULL
26965 };
26966
26967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26970 {
26971 PyThreadState* __tstate = wxPyBeginAllowThreads();
26972 result = (bool)(arg1)->Open();
26973
26974 wxPyEndAllowThreads(__tstate);
26975 if (PyErr_Occurred()) SWIG_fail;
26976 }
26977 {
26978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26979 }
26980 return resultobj;
26981 fail:
26982 return NULL;
26983}
26984
26985
26986static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26987 PyObject *resultobj;
26988 wxClipboard *arg1 = (wxClipboard *) 0 ;
26989 PyObject * obj0 = 0 ;
26990 char *kwnames[] = {
26991 (char *) "self", NULL
26992 };
26993
26994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26997 {
26998 PyThreadState* __tstate = wxPyBeginAllowThreads();
26999 (arg1)->Close();
27000
27001 wxPyEndAllowThreads(__tstate);
27002 if (PyErr_Occurred()) SWIG_fail;
27003 }
27004 Py_INCREF(Py_None); resultobj = Py_None;
27005 return resultobj;
27006 fail:
27007 return NULL;
27008}
27009
27010
27011static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
27012 PyObject *resultobj;
27013 wxClipboard *arg1 = (wxClipboard *) 0 ;
27014 bool result;
27015 PyObject * obj0 = 0 ;
27016 char *kwnames[] = {
27017 (char *) "self", NULL
27018 };
27019
27020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27023 {
27024 PyThreadState* __tstate = wxPyBeginAllowThreads();
27025 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27026
27027 wxPyEndAllowThreads(__tstate);
27028 if (PyErr_Occurred()) SWIG_fail;
27029 }
27030 {
27031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27032 }
27033 return resultobj;
27034 fail:
27035 return NULL;
27036}
27037
27038
27039static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
27040 PyObject *resultobj;
27041 wxClipboard *arg1 = (wxClipboard *) 0 ;
27042 wxDataObject *arg2 = (wxDataObject *) 0 ;
27043 bool result;
27044 PyObject * obj0 = 0 ;
27045 PyObject * obj1 = 0 ;
27046 char *kwnames[] = {
27047 (char *) "self",(char *) "data", NULL
27048 };
27049
27050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27054 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27055 {
27056 PyThreadState* __tstate = wxPyBeginAllowThreads();
27057 result = (bool)(arg1)->AddData(arg2);
27058
27059 wxPyEndAllowThreads(__tstate);
27060 if (PyErr_Occurred()) SWIG_fail;
27061 }
27062 {
27063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27064 }
27065 return resultobj;
27066 fail:
27067 return NULL;
27068}
27069
27070
27071static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27072 PyObject *resultobj;
27073 wxClipboard *arg1 = (wxClipboard *) 0 ;
27074 wxDataObject *arg2 = (wxDataObject *) 0 ;
27075 bool result;
27076 PyObject * obj0 = 0 ;
27077 PyObject * obj1 = 0 ;
27078 char *kwnames[] = {
27079 (char *) "self",(char *) "data", NULL
27080 };
27081
27082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27085 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27086 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27087 {
27088 PyThreadState* __tstate = wxPyBeginAllowThreads();
27089 result = (bool)(arg1)->SetData(arg2);
27090
27091 wxPyEndAllowThreads(__tstate);
27092 if (PyErr_Occurred()) SWIG_fail;
27093 }
27094 {
27095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27096 }
27097 return resultobj;
27098 fail:
27099 return NULL;
27100}
27101
27102
27103static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
27104 PyObject *resultobj;
27105 wxClipboard *arg1 = (wxClipboard *) 0 ;
27106 wxDataFormat *arg2 = 0 ;
27107 bool result;
27108 PyObject * obj0 = 0 ;
27109 PyObject * obj1 = 0 ;
27110 char *kwnames[] = {
27111 (char *) "self",(char *) "format", NULL
27112 };
27113
27114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27118 SWIG_POINTER_EXCEPTION | 0)) == -1)
27119 SWIG_fail;
27120 if (arg2 == NULL) {
27121 PyErr_SetString(PyExc_TypeError,"null reference");
27122 SWIG_fail;
27123 }
27124 {
27125 PyThreadState* __tstate = wxPyBeginAllowThreads();
27126 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27127
27128 wxPyEndAllowThreads(__tstate);
27129 if (PyErr_Occurred()) SWIG_fail;
27130 }
27131 {
27132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27133 }
27134 return resultobj;
27135 fail:
27136 return NULL;
27137}
27138
27139
27140static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27141 PyObject *resultobj;
27142 wxClipboard *arg1 = (wxClipboard *) 0 ;
27143 wxDataObject *arg2 = 0 ;
27144 bool result;
27145 PyObject * obj0 = 0 ;
27146 PyObject * obj1 = 0 ;
27147 char *kwnames[] = {
27148 (char *) "self",(char *) "data", NULL
27149 };
27150
27151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27154 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27155 SWIG_POINTER_EXCEPTION | 0)) == -1)
27156 SWIG_fail;
27157 if (arg2 == NULL) {
27158 PyErr_SetString(PyExc_TypeError,"null reference");
27159 SWIG_fail;
27160 }
27161 {
27162 PyThreadState* __tstate = wxPyBeginAllowThreads();
27163 result = (bool)(arg1)->GetData(*arg2);
27164
27165 wxPyEndAllowThreads(__tstate);
27166 if (PyErr_Occurred()) SWIG_fail;
27167 }
27168 {
27169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27170 }
27171 return resultobj;
27172 fail:
27173 return NULL;
27174}
27175
27176
27177static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27178 PyObject *resultobj;
27179 wxClipboard *arg1 = (wxClipboard *) 0 ;
27180 PyObject * obj0 = 0 ;
27181 char *kwnames[] = {
27182 (char *) "self", NULL
27183 };
27184
27185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27188 {
27189 PyThreadState* __tstate = wxPyBeginAllowThreads();
27190 (arg1)->Clear();
27191
27192 wxPyEndAllowThreads(__tstate);
27193 if (PyErr_Occurred()) SWIG_fail;
27194 }
27195 Py_INCREF(Py_None); resultobj = Py_None;
27196 return resultobj;
27197 fail:
27198 return NULL;
27199}
27200
27201
27202static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27203 PyObject *resultobj;
27204 wxClipboard *arg1 = (wxClipboard *) 0 ;
27205 bool result;
27206 PyObject * obj0 = 0 ;
27207 char *kwnames[] = {
27208 (char *) "self", NULL
27209 };
27210
27211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27214 {
27215 PyThreadState* __tstate = wxPyBeginAllowThreads();
27216 result = (bool)(arg1)->Flush();
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_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27231 PyObject *resultobj;
27232 wxClipboard *arg1 = (wxClipboard *) 0 ;
27233 bool arg2 = (bool) True ;
27234 PyObject * obj0 = 0 ;
27235 PyObject * obj1 = 0 ;
27236 char *kwnames[] = {
27237 (char *) "self",(char *) "primary", NULL
27238 };
27239
27240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27243 if (obj1) {
27244 arg2 = (bool) SWIG_AsBool(obj1);
27245 if (PyErr_Occurred()) SWIG_fail;
27246 }
27247 {
27248 PyThreadState* __tstate = wxPyBeginAllowThreads();
27249 (arg1)->UsePrimarySelection(arg2);
27250
27251 wxPyEndAllowThreads(__tstate);
27252 if (PyErr_Occurred()) SWIG_fail;
27253 }
27254 Py_INCREF(Py_None); resultobj = Py_None;
27255 return resultobj;
27256 fail:
27257 return NULL;
27258}
27259
27260
a001823c
RD
27261static PyObject *_wrap_Clipboard_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
27262 PyObject *resultobj;
27263 wxClipboard *result;
27264 char *kwnames[] = {
27265 NULL
27266 };
27267
27268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27269 {
27270 PyThreadState* __tstate = wxPyBeginAllowThreads();
27271 result = (wxClipboard *)wxClipboard::Get();
27272
27273 wxPyEndAllowThreads(__tstate);
27274 if (PyErr_Occurred()) SWIG_fail;
27275 }
27276 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27277 return resultobj;
27278 fail:
27279 return NULL;
27280}
27281
27282
d55e5bfc
RD
27283static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27284 PyObject *obj;
27285 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27286 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27287 Py_INCREF(obj);
27288 return Py_BuildValue((char *)"");
27289}
d55e5bfc
RD
27290static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27291 PyObject *resultobj;
27292 wxClipboard *arg1 = (wxClipboard *) NULL ;
27293 wxClipboardLocker *result;
27294 PyObject * obj0 = 0 ;
27295 char *kwnames[] = {
27296 (char *) "clipboard", NULL
27297 };
27298
27299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27300 if (obj0) {
27301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27303 }
27304 {
27305 PyThreadState* __tstate = wxPyBeginAllowThreads();
27306 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27307
27308 wxPyEndAllowThreads(__tstate);
27309 if (PyErr_Occurred()) SWIG_fail;
27310 }
27311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27312 return resultobj;
27313 fail:
27314 return NULL;
27315}
27316
27317
27318static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27319 PyObject *resultobj;
27320 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27321 PyObject * obj0 = 0 ;
27322 char *kwnames[] = {
27323 (char *) "self", NULL
27324 };
27325
27326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27329 {
27330 PyThreadState* __tstate = wxPyBeginAllowThreads();
27331 delete arg1;
27332
27333 wxPyEndAllowThreads(__tstate);
27334 if (PyErr_Occurred()) SWIG_fail;
27335 }
27336 Py_INCREF(Py_None); resultobj = Py_None;
27337 return resultobj;
27338 fail:
27339 return NULL;
27340}
27341
27342
27343static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27344 PyObject *resultobj;
27345 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27346 bool result;
27347 PyObject * obj0 = 0 ;
27348 char *kwnames[] = {
27349 (char *) "self", NULL
27350 };
27351
27352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27355 {
27356 PyThreadState* __tstate = wxPyBeginAllowThreads();
27357 result = (bool)wxClipboardLocker___nonzero__(arg1);
27358
27359 wxPyEndAllowThreads(__tstate);
27360 if (PyErr_Occurred()) SWIG_fail;
27361 }
27362 {
27363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27364 }
27365 return resultobj;
27366 fail:
27367 return NULL;
27368}
27369
27370
27371static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27372 PyObject *obj;
27373 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27374 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27375 Py_INCREF(obj);
27376 return Py_BuildValue((char *)"");
27377}
27378static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27379 PyObject *resultobj;
27380 int arg1 = (int) 0 ;
27381 int arg2 = (int) 0 ;
27382 int arg3 = (int) 0 ;
27383 int arg4 = (int) 0 ;
27384 wxVideoMode *result;
27385 PyObject * obj0 = 0 ;
27386 PyObject * obj1 = 0 ;
27387 PyObject * obj2 = 0 ;
27388 PyObject * obj3 = 0 ;
27389 char *kwnames[] = {
27390 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27391 };
27392
27393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27394 if (obj0) {
27395 arg1 = (int) SWIG_AsInt(obj0);
27396 if (PyErr_Occurred()) SWIG_fail;
27397 }
27398 if (obj1) {
27399 arg2 = (int) SWIG_AsInt(obj1);
27400 if (PyErr_Occurred()) SWIG_fail;
27401 }
27402 if (obj2) {
27403 arg3 = (int) SWIG_AsInt(obj2);
27404 if (PyErr_Occurred()) SWIG_fail;
27405 }
27406 if (obj3) {
27407 arg4 = (int) SWIG_AsInt(obj3);
27408 if (PyErr_Occurred()) SWIG_fail;
27409 }
27410 {
27411 PyThreadState* __tstate = wxPyBeginAllowThreads();
27412 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27413
27414 wxPyEndAllowThreads(__tstate);
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27418 return resultobj;
27419 fail:
27420 return NULL;
27421}
27422
27423
27424static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27425 PyObject *resultobj;
27426 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27427 PyObject * obj0 = 0 ;
27428 char *kwnames[] = {
27429 (char *) "self", NULL
27430 };
27431
27432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27435 {
27436 PyThreadState* __tstate = wxPyBeginAllowThreads();
27437 delete arg1;
27438
27439 wxPyEndAllowThreads(__tstate);
27440 if (PyErr_Occurred()) SWIG_fail;
27441 }
27442 Py_INCREF(Py_None); resultobj = Py_None;
27443 return resultobj;
27444 fail:
27445 return NULL;
27446}
27447
27448
27449static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27450 PyObject *resultobj;
27451 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27452 wxVideoMode *arg2 = 0 ;
27453 bool result;
27454 PyObject * obj0 = 0 ;
27455 PyObject * obj1 = 0 ;
27456 char *kwnames[] = {
27457 (char *) "self",(char *) "other", NULL
27458 };
27459
27460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27464 SWIG_POINTER_EXCEPTION | 0)) == -1)
27465 SWIG_fail;
27466 if (arg2 == NULL) {
27467 PyErr_SetString(PyExc_TypeError,"null reference");
27468 SWIG_fail;
27469 }
27470 {
27471 PyThreadState* __tstate = wxPyBeginAllowThreads();
27472 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27473
27474 wxPyEndAllowThreads(__tstate);
27475 if (PyErr_Occurred()) SWIG_fail;
27476 }
27477 {
27478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27479 }
27480 return resultobj;
27481 fail:
27482 return NULL;
27483}
27484
27485
27486static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27487 PyObject *resultobj;
27488 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27489 int result;
27490 PyObject * obj0 = 0 ;
27491 char *kwnames[] = {
27492 (char *) "self", NULL
27493 };
27494
27495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27498 {
27499 PyThreadState* __tstate = wxPyBeginAllowThreads();
27500 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27501
27502 wxPyEndAllowThreads(__tstate);
27503 if (PyErr_Occurred()) SWIG_fail;
27504 }
27505 resultobj = SWIG_FromInt((int)result);
27506 return resultobj;
27507 fail:
27508 return NULL;
27509}
27510
27511
27512static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27513 PyObject *resultobj;
27514 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27515 int result;
27516 PyObject * obj0 = 0 ;
27517 char *kwnames[] = {
27518 (char *) "self", NULL
27519 };
27520
27521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27524 {
27525 PyThreadState* __tstate = wxPyBeginAllowThreads();
27526 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27527
27528 wxPyEndAllowThreads(__tstate);
27529 if (PyErr_Occurred()) SWIG_fail;
27530 }
27531 resultobj = SWIG_FromInt((int)result);
27532 return resultobj;
27533 fail:
27534 return NULL;
27535}
27536
27537
27538static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27539 PyObject *resultobj;
27540 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27541 int result;
27542 PyObject * obj0 = 0 ;
27543 char *kwnames[] = {
27544 (char *) "self", NULL
27545 };
27546
27547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27550 {
27551 PyThreadState* __tstate = wxPyBeginAllowThreads();
27552 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27553
27554 wxPyEndAllowThreads(__tstate);
27555 if (PyErr_Occurred()) SWIG_fail;
27556 }
27557 resultobj = SWIG_FromInt((int)result);
27558 return resultobj;
27559 fail:
27560 return NULL;
27561}
27562
27563
27564static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27565 PyObject *resultobj;
27566 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27567 bool result;
27568 PyObject * obj0 = 0 ;
27569 char *kwnames[] = {
27570 (char *) "self", NULL
27571 };
27572
27573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27576 {
27577 PyThreadState* __tstate = wxPyBeginAllowThreads();
27578 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27579
27580 wxPyEndAllowThreads(__tstate);
27581 if (PyErr_Occurred()) SWIG_fail;
27582 }
27583 {
27584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27585 }
27586 return resultobj;
27587 fail:
27588 return NULL;
27589}
27590
27591
27592static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27593 PyObject *resultobj;
27594 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27595 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27596 bool result;
27597 PyObject * obj0 = 0 ;
27598 PyObject * obj1 = 0 ;
27599 char *kwnames[] = {
27600 (char *) "self",(char *) "other", NULL
27601 };
27602
27603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27606 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27608 {
27609 PyThreadState* __tstate = wxPyBeginAllowThreads();
27610 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27611
27612 wxPyEndAllowThreads(__tstate);
27613 if (PyErr_Occurred()) SWIG_fail;
27614 }
27615 {
27616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27617 }
27618 return resultobj;
27619 fail:
27620 return NULL;
27621}
27622
27623
27624static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27625 PyObject *resultobj;
27626 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27627 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27628 bool result;
27629 PyObject * obj0 = 0 ;
27630 PyObject * obj1 = 0 ;
27631 char *kwnames[] = {
27632 (char *) "self",(char *) "other", NULL
27633 };
27634
27635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27640 {
27641 PyThreadState* __tstate = wxPyBeginAllowThreads();
27642 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27643
27644 wxPyEndAllowThreads(__tstate);
27645 if (PyErr_Occurred()) SWIG_fail;
27646 }
27647 {
27648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27649 }
27650 return resultobj;
27651 fail:
27652 return NULL;
27653}
27654
27655
27656static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27657 PyObject *resultobj;
27658 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27659 int arg2 ;
27660 PyObject * obj0 = 0 ;
27661 PyObject * obj1 = 0 ;
27662 char *kwnames[] = {
27663 (char *) "self",(char *) "w", NULL
27664 };
27665
27666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27669 arg2 = (int) SWIG_AsInt(obj1);
27670 if (PyErr_Occurred()) SWIG_fail;
27671 if (arg1) (arg1)->w = arg2;
27672
27673 Py_INCREF(Py_None); resultobj = Py_None;
27674 return resultobj;
27675 fail:
27676 return NULL;
27677}
27678
27679
27680static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27681 PyObject *resultobj;
27682 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27683 int result;
27684 PyObject * obj0 = 0 ;
27685 char *kwnames[] = {
27686 (char *) "self", NULL
27687 };
27688
27689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27692 result = (int) ((arg1)->w);
27693
27694 resultobj = SWIG_FromInt((int)result);
27695 return resultobj;
27696 fail:
27697 return NULL;
27698}
27699
27700
27701static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27702 PyObject *resultobj;
27703 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27704 int arg2 ;
27705 PyObject * obj0 = 0 ;
27706 PyObject * obj1 = 0 ;
27707 char *kwnames[] = {
27708 (char *) "self",(char *) "h", NULL
27709 };
27710
27711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27714 arg2 = (int) SWIG_AsInt(obj1);
27715 if (PyErr_Occurred()) SWIG_fail;
27716 if (arg1) (arg1)->h = arg2;
27717
27718 Py_INCREF(Py_None); resultobj = Py_None;
27719 return resultobj;
27720 fail:
27721 return NULL;
27722}
27723
27724
27725static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27726 PyObject *resultobj;
27727 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27728 int result;
27729 PyObject * obj0 = 0 ;
27730 char *kwnames[] = {
27731 (char *) "self", NULL
27732 };
27733
27734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27737 result = (int) ((arg1)->h);
27738
27739 resultobj = SWIG_FromInt((int)result);
27740 return resultobj;
27741 fail:
27742 return NULL;
27743}
27744
27745
27746static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27747 PyObject *resultobj;
27748 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27749 int arg2 ;
27750 PyObject * obj0 = 0 ;
27751 PyObject * obj1 = 0 ;
27752 char *kwnames[] = {
27753 (char *) "self",(char *) "bpp", NULL
27754 };
27755
27756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27759 arg2 = (int) SWIG_AsInt(obj1);
27760 if (PyErr_Occurred()) SWIG_fail;
27761 if (arg1) (arg1)->bpp = arg2;
27762
27763 Py_INCREF(Py_None); resultobj = Py_None;
27764 return resultobj;
27765 fail:
27766 return NULL;
27767}
27768
27769
27770static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27771 PyObject *resultobj;
27772 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27773 int result;
27774 PyObject * obj0 = 0 ;
27775 char *kwnames[] = {
27776 (char *) "self", NULL
27777 };
27778
27779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27782 result = (int) ((arg1)->bpp);
27783
27784 resultobj = SWIG_FromInt((int)result);
27785 return resultobj;
27786 fail:
27787 return NULL;
27788}
27789
27790
27791static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27792 PyObject *resultobj;
27793 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27794 int arg2 ;
27795 PyObject * obj0 = 0 ;
27796 PyObject * obj1 = 0 ;
27797 char *kwnames[] = {
27798 (char *) "self",(char *) "refresh", NULL
27799 };
27800
27801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27804 arg2 = (int) SWIG_AsInt(obj1);
27805 if (PyErr_Occurred()) SWIG_fail;
27806 if (arg1) (arg1)->refresh = arg2;
27807
27808 Py_INCREF(Py_None); resultobj = Py_None;
27809 return resultobj;
27810 fail:
27811 return NULL;
27812}
27813
27814
27815static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27816 PyObject *resultobj;
27817 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27818 int result;
27819 PyObject * obj0 = 0 ;
27820 char *kwnames[] = {
27821 (char *) "self", NULL
27822 };
27823
27824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27827 result = (int) ((arg1)->refresh);
27828
27829 resultobj = SWIG_FromInt((int)result);
27830 return resultobj;
27831 fail:
27832 return NULL;
27833}
27834
27835
27836static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27837 PyObject *obj;
27838 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27839 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27840 Py_INCREF(obj);
27841 return Py_BuildValue((char *)"");
27842}
27843static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27844 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27845 return 1;
27846}
27847
27848
27849static PyObject *_wrap_DefaultVideoMode_get() {
27850 PyObject *pyobj;
27851
27852 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27853 return pyobj;
27854}
27855
27856
27857static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27858 PyObject *resultobj;
27859 size_t arg1 = (size_t) 0 ;
27860 wxDisplay *result;
27861 PyObject * obj0 = 0 ;
27862 char *kwnames[] = {
27863 (char *) "index", NULL
27864 };
27865
27866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27867 if (obj0) {
27868 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27869 if (PyErr_Occurred()) SWIG_fail;
27870 }
27871 {
27872 PyThreadState* __tstate = wxPyBeginAllowThreads();
27873 result = (wxDisplay *)new wxDisplay(arg1);
27874
27875 wxPyEndAllowThreads(__tstate);
27876 if (PyErr_Occurred()) SWIG_fail;
27877 }
27878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27879 return resultobj;
27880 fail:
27881 return NULL;
27882}
27883
27884
27885static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27886 PyObject *resultobj;
27887 wxDisplay *arg1 = (wxDisplay *) 0 ;
27888 PyObject * obj0 = 0 ;
27889 char *kwnames[] = {
27890 (char *) "self", NULL
27891 };
27892
27893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27896 {
27897 PyThreadState* __tstate = wxPyBeginAllowThreads();
27898 delete arg1;
27899
27900 wxPyEndAllowThreads(__tstate);
27901 if (PyErr_Occurred()) SWIG_fail;
27902 }
27903 Py_INCREF(Py_None); resultobj = Py_None;
27904 return resultobj;
27905 fail:
27906 return NULL;
27907}
27908
27909
27910static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27911 PyObject *resultobj;
27912 size_t result;
27913 char *kwnames[] = {
27914 NULL
27915 };
27916
27917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27918 {
27919 PyThreadState* __tstate = wxPyBeginAllowThreads();
27920 result = (size_t)wxDisplay::GetCount();
27921
27922 wxPyEndAllowThreads(__tstate);
27923 if (PyErr_Occurred()) SWIG_fail;
27924 }
27925 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27926 return resultobj;
27927 fail:
27928 return NULL;
27929}
27930
27931
27932static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27933 PyObject *resultobj;
27934 wxPoint *arg1 = 0 ;
27935 int result;
27936 wxPoint temp1 ;
27937 PyObject * obj0 = 0 ;
27938 char *kwnames[] = {
27939 (char *) "pt", NULL
27940 };
27941
27942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27943 {
27944 arg1 = &temp1;
27945 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27946 }
27947 {
27948 PyThreadState* __tstate = wxPyBeginAllowThreads();
27949 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27950
27951 wxPyEndAllowThreads(__tstate);
27952 if (PyErr_Occurred()) SWIG_fail;
27953 }
27954 resultobj = SWIG_FromInt((int)result);
27955 return resultobj;
27956 fail:
27957 return NULL;
27958}
27959
27960
27961static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27962 PyObject *resultobj;
27963 wxWindow *arg1 = (wxWindow *) 0 ;
27964 int result;
27965 PyObject * obj0 = 0 ;
27966 char *kwnames[] = {
27967 (char *) "window", NULL
27968 };
27969
27970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27973 {
27974 PyThreadState* __tstate = wxPyBeginAllowThreads();
27975 result = (int)Display_GetFromWindow(arg1);
27976
27977 wxPyEndAllowThreads(__tstate);
27978 if (PyErr_Occurred()) SWIG_fail;
27979 }
27980 resultobj = SWIG_FromInt((int)result);
27981 return resultobj;
27982 fail:
27983 return NULL;
27984}
27985
27986
27987static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27988 PyObject *resultobj;
27989 wxDisplay *arg1 = (wxDisplay *) 0 ;
27990 bool result;
27991 PyObject * obj0 = 0 ;
27992 char *kwnames[] = {
27993 (char *) "self", NULL
27994 };
27995
27996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27999 {
28000 PyThreadState* __tstate = wxPyBeginAllowThreads();
28001 result = (bool)((wxDisplay const *)arg1)->IsOk();
28002
28003 wxPyEndAllowThreads(__tstate);
28004 if (PyErr_Occurred()) SWIG_fail;
28005 }
28006 {
28007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28008 }
28009 return resultobj;
28010 fail:
28011 return NULL;
28012}
28013
28014
28015static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
28016 PyObject *resultobj;
28017 wxDisplay *arg1 = (wxDisplay *) 0 ;
28018 wxRect result;
28019 PyObject * obj0 = 0 ;
28020 char *kwnames[] = {
28021 (char *) "self", NULL
28022 };
28023
28024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28027 {
28028 PyThreadState* __tstate = wxPyBeginAllowThreads();
28029 result = ((wxDisplay const *)arg1)->GetGeometry();
28030
28031 wxPyEndAllowThreads(__tstate);
28032 if (PyErr_Occurred()) SWIG_fail;
28033 }
28034 {
28035 wxRect * resultptr;
28036 resultptr = new wxRect((wxRect &) result);
28037 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28038 }
28039 return resultobj;
28040 fail:
28041 return NULL;
28042}
28043
28044
28045static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
28046 PyObject *resultobj;
28047 wxDisplay *arg1 = (wxDisplay *) 0 ;
28048 wxString result;
28049 PyObject * obj0 = 0 ;
28050 char *kwnames[] = {
28051 (char *) "self", NULL
28052 };
28053
28054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28057 {
28058 PyThreadState* __tstate = wxPyBeginAllowThreads();
28059 result = ((wxDisplay const *)arg1)->GetName();
28060
28061 wxPyEndAllowThreads(__tstate);
28062 if (PyErr_Occurred()) SWIG_fail;
28063 }
28064 {
28065#if wxUSE_UNICODE
28066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28067#else
28068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28069#endif
28070 }
28071 return resultobj;
28072 fail:
28073 return NULL;
28074}
28075
28076
28077static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
28078 PyObject *resultobj;
28079 wxDisplay *arg1 = (wxDisplay *) 0 ;
28080 bool result;
28081 PyObject * obj0 = 0 ;
28082 char *kwnames[] = {
28083 (char *) "self", NULL
28084 };
28085
28086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28089 {
28090 PyThreadState* __tstate = wxPyBeginAllowThreads();
28091 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28092
28093 wxPyEndAllowThreads(__tstate);
28094 if (PyErr_Occurred()) SWIG_fail;
28095 }
28096 {
28097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28098 }
28099 return resultobj;
28100 fail:
28101 return NULL;
28102}
28103
28104
28105static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
28106 PyObject *resultobj;
28107 wxDisplay *arg1 = (wxDisplay *) 0 ;
28108 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28109 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28110 PyObject *result;
28111 PyObject * obj0 = 0 ;
28112 PyObject * obj1 = 0 ;
28113 char *kwnames[] = {
28114 (char *) "self",(char *) "mode", NULL
28115 };
28116
28117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28120 if (obj1) {
28121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28122 SWIG_POINTER_EXCEPTION | 0)) == -1)
28123 SWIG_fail;
28124 if (arg2 == NULL) {
28125 PyErr_SetString(PyExc_TypeError,"null reference");
28126 SWIG_fail;
28127 }
28128 }
28129 {
28130 PyThreadState* __tstate = wxPyBeginAllowThreads();
28131 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28132
28133 wxPyEndAllowThreads(__tstate);
28134 if (PyErr_Occurred()) SWIG_fail;
28135 }
28136 resultobj = result;
28137 return resultobj;
28138 fail:
28139 return NULL;
28140}
28141
28142
28143static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28144 PyObject *resultobj;
28145 wxDisplay *arg1 = (wxDisplay *) 0 ;
28146 wxVideoMode result;
28147 PyObject * obj0 = 0 ;
28148 char *kwnames[] = {
28149 (char *) "self", NULL
28150 };
28151
28152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28155 {
28156 PyThreadState* __tstate = wxPyBeginAllowThreads();
28157 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28158
28159 wxPyEndAllowThreads(__tstate);
28160 if (PyErr_Occurred()) SWIG_fail;
28161 }
28162 {
28163 wxVideoMode * resultptr;
28164 resultptr = new wxVideoMode((wxVideoMode &) result);
28165 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28166 }
28167 return resultobj;
28168 fail:
28169 return NULL;
28170}
28171
28172
28173static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28174 PyObject *resultobj;
28175 wxDisplay *arg1 = (wxDisplay *) 0 ;
28176 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28177 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28178 bool result;
28179 PyObject * obj0 = 0 ;
28180 PyObject * obj1 = 0 ;
28181 char *kwnames[] = {
28182 (char *) "self",(char *) "mode", NULL
28183 };
28184
28185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28188 if (obj1) {
28189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28190 SWIG_POINTER_EXCEPTION | 0)) == -1)
28191 SWIG_fail;
28192 if (arg2 == NULL) {
28193 PyErr_SetString(PyExc_TypeError,"null reference");
28194 SWIG_fail;
28195 }
28196 }
28197 {
28198 PyThreadState* __tstate = wxPyBeginAllowThreads();
28199 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28200
28201 wxPyEndAllowThreads(__tstate);
28202 if (PyErr_Occurred()) SWIG_fail;
28203 }
28204 {
28205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28206 }
28207 return resultobj;
28208 fail:
28209 return NULL;
28210}
28211
28212
28213static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28214 PyObject *resultobj;
28215 wxDisplay *arg1 = (wxDisplay *) 0 ;
28216 PyObject * obj0 = 0 ;
28217 char *kwnames[] = {
28218 (char *) "self", NULL
28219 };
28220
28221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28224 {
28225 PyThreadState* __tstate = wxPyBeginAllowThreads();
28226 (arg1)->ResetMode();
28227
28228 wxPyEndAllowThreads(__tstate);
28229 if (PyErr_Occurred()) SWIG_fail;
28230 }
28231 Py_INCREF(Py_None); resultobj = Py_None;
28232 return resultobj;
28233 fail:
28234 return NULL;
28235}
28236
28237
28238static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28239 PyObject *obj;
28240 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28241 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28242 Py_INCREF(obj);
28243 return Py_BuildValue((char *)"");
28244}
28245static PyMethodDef SwigMethods[] = {
28246 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28247 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28248 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28249 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28250 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28251 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28252 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28253 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28254 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28255 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28256 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28257 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28258 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28259 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28260 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28261 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28262 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28263 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28264 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28265 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28266 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28267 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28268 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28269 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28271 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28272 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28273 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28274 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28275 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28276 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
28277 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28278 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28279 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28280 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28281 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28283 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28284 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28286 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28287 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28291 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28292 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28294 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28295 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28296 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28297 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28298 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28299 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28301 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28320 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28328 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28332 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28344 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28345 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28349 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28351 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28352 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28355 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28356 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28361 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28372 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28375 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28376 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28381 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28385 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28387 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28388 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28390 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
1a6bba1e 28396 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
28397 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28398 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28403 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28404 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28407 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28408 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28411 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28438 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28440 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28442 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28444 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28451 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28457 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28464 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28470 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28475 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28478 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28495 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28503 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28507 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28549 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
0346c964
RD
28577 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 28579 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
0346c964
RD
28580 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 28582 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
0346c964
RD
28583 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
28585 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28587 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28603 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28619 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28633 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28642 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28678 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28682 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28685 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28688 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28689 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28691 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28695 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28696 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28740 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28787 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28788 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28789 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28790 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28791 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28792 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28793 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28794 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28795 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28796 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28805 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28807 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28808 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28809 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28810 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28811 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28812 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28813 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28814 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28815 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28816 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28817 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28818 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28819 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28820 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28821 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28822 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28824 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28825 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28827 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28828 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28829 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28831 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28832 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28834 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28835 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28836 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28838 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28840 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28841 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28842 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28843 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28844 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28845 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28846 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28847 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28848 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28849 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28850 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28851 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28852 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28853 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28854 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28856 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28857 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28858 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28859 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28860 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28861 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28862 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28863 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28864 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28865 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28866 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28867 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28868 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28869 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28870 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28871 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28872 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28873 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28874 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28875 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28876 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28877 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28878 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28879 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28880 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28881 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28882 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28883 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28884 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28885 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28886 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28887 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28888 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28889 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28890 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28891 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28892 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28893 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28894 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28895 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28896 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28897 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28898 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28899 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28900 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28901 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28902 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28903 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28904 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28905 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28906 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28907 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28908 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28909 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28910 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28911 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
68e533f8
RD
28912 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28913 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28914 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
28915 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28916 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28917 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28918 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28919 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28920 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28921 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28922 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28923 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28924 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28925 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28926 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28927 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28928 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28929 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28930 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28931 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28932 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28933 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28934 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28935 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28936 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28937 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28938 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28939 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28940 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28941 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
28942 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28943 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28944 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28945 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28946 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28947 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28948 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28949 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28950 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28951 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
28952 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
28953 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28954 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28955 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28956 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28957 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28958 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28959 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28960 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28961 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28962 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28963 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28964 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28965 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28966 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28967 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28968 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28969 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28970 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28971 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28972 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28973 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28974 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28975 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
28976 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28977 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28978 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28979 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28980 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28981 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28982 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
28983 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
28984 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28985 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28986 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28987 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28988 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28989 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28990 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
28991 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
28992 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
28993 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
28994 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
28995 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
28996 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
28997 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
28998 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
28999 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
29000 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
29001 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
29002 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
a001823c 29003 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
29004 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
29005 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29006 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29007 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
29008 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
29009 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
29010 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
29011 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
29012 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
29013 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
29014 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
29015 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
29016 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
29017 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
29018 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
29019 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
29020 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
29021 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
29022 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
29023 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
29024 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
29025 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
29026 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
29027 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
29028 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
29029 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
29030 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
29031 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
29032 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
29033 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
29034 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
29035 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
29036 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
29037 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
29038 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
29039 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
29040 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
29041 { NULL, NULL }
29042};
29043
29044
29045/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29046
29047static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29048 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29049}
29050static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29051 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29052}
29053static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29054 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29055}
29056static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29057 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29058}
29059static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29060 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29061}
29062static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29063 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29064}
29065static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29066 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29067}
29068static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29069 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29070}
29071static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29072 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29073}
29074static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29075 return (void *)((wxEvent *) ((wxPyEvent *) x));
29076}
29077static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29078 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29079}
29080static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29081 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29082}
29083static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29084 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29085}
29086static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29087 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29088}
29089static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29090 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29091}
29092static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29093 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29094}
29095static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29096 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29097}
29098static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29099 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29100}
29101static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29102 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29103}
29104static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29105 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29106}
29107static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29108 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29109}
29110static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29111 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29112}
29113static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29114 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29115}
29116static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29117 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29118}
29119static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29120 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29121}
29122static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29123 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29124}
29125static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29126 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29127}
29128static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29129 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29130}
29131static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29132 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29133}
29134static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29135 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29136}
29137static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29138 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29139}
29140static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29141 return (void *)((wxEvent *) ((wxShowEvent *) x));
29142}
29143static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29144 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29145}
29146static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29147 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29148}
29149static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29150 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29151}
29152static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29153 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29154}
29155static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29156 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29157}
29158static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29159 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29160}
29161static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29162 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29163}
29164static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29165 return (void *)((wxConfigBase *) ((wxConfig *) x));
29166}
29167static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29168 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29169}
29170static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29171 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29172}
29173static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29174 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29175}
29176static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29177 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29178}
29179static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29180 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29181}
29182static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29183 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29184}
29185static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29186 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29187}
29188static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29189 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29190}
29191static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29192 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29193}
29194static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29195 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29196}
29197static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29198 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29199}
29200static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29201 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29202}
29203static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29204 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29205}
29206static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29207 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29208}
29209static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29210 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29211}
29212static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29213 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29214}
29215static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29216 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29217}
29218static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29219 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29220}
29221static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29222 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29223}
29224static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29225 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29226}
29227static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29228 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29229}
29230static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29231 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29232}
29233static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29234 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29235}
29236static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29237 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29238}
29239static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29240 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29241}
29242static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29243 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29244}
29245static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29246 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29247}
29248static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29249 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29250}
29251static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29252 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29253}
29254static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29255 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29256}
29257static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29258 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29259}
29260static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29261 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29262}
29263static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29264 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29265}
29266static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29267 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29268}
29269static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29270 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29271}
29272static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29273 return (void *)((wxObject *) ((wxSizerItem *) x));
29274}
29275static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29276 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29277}
29278static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29279 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29280}
29281static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29282 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29283}
29284static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29285 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29286}
29287static void *_p_wxSizerTo_p_wxObject(void *x) {
29288 return (void *)((wxObject *) ((wxSizer *) x));
29289}
29290static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29291 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29292}
29293static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29294 return (void *)((wxObject *) ((wxFileHistory *) x));
29295}
29296static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29297 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29298}
29299static void *_p_wxEventTo_p_wxObject(void *x) {
29300 return (void *)((wxObject *) ((wxEvent *) x));
29301}
29302static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29303 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29304}
29305static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29306 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29307}
29308static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29309 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29310}
29311static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29312 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29313}
29314static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29315 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29316}
29317static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29318 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29319}
29320static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29321 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29322}
29323static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29324 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29325}
29326static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29327 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29328}
29329static void *_p_wxControlTo_p_wxObject(void *x) {
29330 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29331}
29332static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29333 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29334}
29335static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29336 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29337}
29338static void *_p_wxFSFileTo_p_wxObject(void *x) {
29339 return (void *)((wxObject *) ((wxFSFile *) x));
29340}
29341static void *_p_wxClipboardTo_p_wxObject(void *x) {
29342 return (void *)((wxObject *) ((wxClipboard *) x));
29343}
29344static void *_p_wxPySizerTo_p_wxObject(void *x) {
29345 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29346}
29347static void *_p_wxPyEventTo_p_wxObject(void *x) {
29348 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29349}
29350static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29351 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29352}
29353static void *_p_wxShowEventTo_p_wxObject(void *x) {
29354 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29355}
29356static void *_p_wxToolTipTo_p_wxObject(void *x) {
29357 return (void *)((wxObject *) ((wxToolTip *) x));
29358}
29359static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29360 return (void *)((wxObject *) ((wxMenuItem *) x));
29361}
29362static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29363 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29364}
29365static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29366 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29367}
29368static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29369 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29370}
29371static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29372 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29373}
29374static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29375 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29376}
29377static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29378 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29379}
29380static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29381 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29382}
29383static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29384 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29385}
29386static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29387 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29388}
29389static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29390 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29391}
29392static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29393 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29394}
29395static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29396 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29397}
29398static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29399 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29400}
29401static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29402 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29403}
29404static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29405 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29406}
29407static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29408 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29409}
29410static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29411 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29412}
29413static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29414 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29415}
29416static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29417 return (void *)((wxObject *) ((wxImageHandler *) x));
29418}
29419static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29420 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29421}
29422static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29423 return (void *)((wxObject *) ((wxEvtHandler *) x));
29424}
29425static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29426 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29427}
29428static void *_p_wxImageTo_p_wxObject(void *x) {
29429 return (void *)((wxObject *) ((wxImage *) x));
29430}
29431static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29432 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29433}
29434static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29435 return (void *)((wxObject *) ((wxSystemOptions *) x));
29436}
29437static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29438 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29439}
29440static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29441 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29442}
29443static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29444 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29445}
29446static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29447 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29448}
29449static void *_p_wxWindowTo_p_wxObject(void *x) {
29450 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29451}
29452static void *_p_wxMenuTo_p_wxObject(void *x) {
29453 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29454}
29455static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29456 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29457}
29458static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29459 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29460}
29461static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29462 return (void *)((wxObject *) ((wxFileSystem *) x));
29463}
29464static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29465 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29466}
29467static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29468 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29469}
29470static void *_p_wxPyAppTo_p_wxObject(void *x) {
29471 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29472}
29473static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29474 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29475}
29476static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29477 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29478}
29479static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29480 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29481}
29482static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29483 return (void *)((wxObject *) ((wxBusyInfo *) x));
29484}
29485static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29486 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29487}
29488static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29489 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29490}
29491static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29492 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29493}
29494static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29495 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29496}
29497static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29498 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29499}
29500static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29501 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29502}
29503static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29504 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29505}
29506static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29507 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29508}
29509static void *_p_wxValidatorTo_p_wxObject(void *x) {
29510 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29511}
29512static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29513 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29514}
29515static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29516 return (void *)((wxLog *) ((wxLogStderr *) x));
29517}
29518static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29519 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29520}
29521static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29522 return (void *)((wxLog *) ((wxLogWindow *) x));
29523}
29524static void *_p_wxLogChainTo_p_wxLog(void *x) {
29525 return (void *)((wxLog *) ((wxLogChain *) x));
29526}
29527static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29528 return (void *)((wxLog *) ((wxLogGui *) x));
29529}
29530static void *_p_wxPyLogTo_p_wxLog(void *x) {
29531 return (void *)((wxLog *) ((wxPyLog *) x));
29532}
29533static void *_p_wxControlTo_p_wxWindow(void *x) {
29534 return (void *)((wxWindow *) ((wxControl *) x));
29535}
29536static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29537 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29538}
29539static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29540 return (void *)((wxWindow *) ((wxMenuBar *) x));
29541}
29542static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29543 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29544}
29545static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29546 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29547}
29548static 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}};
29549static 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}};
29550static 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}};
29551static 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}};
29552static 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}};
29553static 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}};
29554static 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}};
29555static 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}};
29556static 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}};
29557static 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}};
29558static 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}};
29559static 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}};
29560static 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}};
29561static 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}};
29562static 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}};
29563static 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}};
29564static 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}};
29565static 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}};
29566static 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}};
29567static 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}};
29568static 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}};
29569static 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}};
29570static 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}};
29571static 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}};
29572static 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}};
29573static 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}};
29574static swig_type_info _swigt__p_wxBusyCursor[] = {{"_p_wxBusyCursor", 0, "wxBusyCursor *", 0, 0, 0, 0},{"_p_wxBusyCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
0346c964 29575static swig_type_info _swigt__p_wxPyBitmapDataObject[] = {{"_p_wxPyBitmapDataObject", 0, "wxPyBitmapDataObject *", 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
29576static 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}};
29577static 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}};
29578static 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}};
29579static swig_type_info _swigt__p_wxDataObject[] = {{"_p_wxDataObject", 0, "wxDataObject *", 0, 0, 0, 0},{"_p_wxDataObjectSimple", _p_wxDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyDataObjectSimple", _p_wxPyDataObjectSimpleTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObjectComposite", _p_wxDataObjectCompositeTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxDataObject", 0, 0, 0, 0, 0, 0},{"_p_wxTextDataObject", _p_wxTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyTextDataObject", _p_wxPyTextDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxBitmapDataObject", _p_wxBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxPyBitmapDataObject", _p_wxPyBitmapDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxFileDataObject", _p_wxFileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxCustomDataObject", _p_wxCustomDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxMetafileDataObject", _p_wxMetafileDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{"_p_wxURLDataObject", _p_wxURLDataObjectTo_p_wxDataObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
29580static 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}};
29581static 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}};
29582static 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}};
29583static 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}};
29584static 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}};
29585static 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}};
29586static 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}};
29587static 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}};
29588static 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}};
29589static 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}};
29590static 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}};
29591static 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}};
29592static 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}};
29593static 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}};
29594static 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}};
29595static 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}};
29596static 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}};
29597static 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}};
29598static 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}};
29599static 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}};
29600static 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}};
29601static 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}};
29602static 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}};
29603static 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}};
29604static 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}};
29605static 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}};
29606static 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}};
29607static 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}};
29608static 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}};
29609static 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}};
29610static 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}};
29611static 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}};
29612static 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}};
29613static 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}};
29614static 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}};
29615static 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}};
29616static 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}};
29617static 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}};
29618static 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}};
29619static 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}};
29620static 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}};
29621static 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}};
29622static 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}};
29623static 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}};
29624static 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}};
29625static 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}};
29626static 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}};
29627static 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}};
29628static 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}};
29629static 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}};
29630static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
29631static 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}};
29632static 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}};
29633static 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}};
29634
29635static swig_type_info *swig_types_initial[] = {
29636_swigt__p_wxLogChain,
29637_swigt__p_wxMutexGuiLocker,
29638_swigt__p_wxMetafile,
29639_swigt__p_wxFileHistory,
29640_swigt__p_wxLog,
29641_swigt__p_wxDateTime__TimeZone,
29642_swigt__p_wxMenu,
29643_swigt__p_wxEvent,
29644_swigt__p_wxConfigBase,
29645_swigt__p_wxDisplay,
29646_swigt__p_wxFileType,
29647_swigt__p_wxLogGui,
29648_swigt__p_wxFont,
29649_swigt__p_wxDataFormat,
29650_swigt__p_wxTimerEvent,
29651_swigt__p_wxCaret,
29652_swigt__p_int,
29653_swigt__p_wxSize,
29654_swigt__p_wxClipboard,
29655_swigt__p_wxStopWatch,
29656_swigt__p_wxDC,
29657_swigt__p_wxClipboardLocker,
29658_swigt__p_wxIcon,
29659_swigt__p_wxLogStderr,
29660_swigt__p_wxLogTextCtrl,
29661_swigt__p_wxTextCtrl,
29662_swigt__p_wxBusyCursor,
0346c964 29663_swigt__p_wxPyBitmapDataObject,
d55e5bfc
RD
29664_swigt__p_wxPyTextDataObject,
29665_swigt__p_wxBitmapDataObject,
29666_swigt__p_wxTextDataObject,
29667_swigt__p_wxDataObject,
d55e5bfc
RD
29668_swigt__p_wxFileDataObject,
29669_swigt__p_wxCustomDataObject,
29670_swigt__p_wxURLDataObject,
29671_swigt__p_wxMetafileDataObject,
29672_swigt__p_wxSound,
29673_swigt__p_wxTimerRunner,
29674_swigt__p_wxLogWindow,
29675_swigt__p_wxTimeSpan,
29676_swigt__p_wxArrayString,
29677_swigt__p_wxWindowDisabler,
29678_swigt__p_wxToolTip,
29679_swigt__p_wxDataObjectComposite,
29680_swigt__p_wxFileConfig,
29681_swigt__p_wxSystemSettings,
29682_swigt__p_wxVideoMode,
29683_swigt__p_wxPyDataObjectSimple,
29684_swigt__p_wxDataObjectSimple,
29685_swigt__p_wxEvtHandler,
29686_swigt__p_wxRect,
29687_swigt__p_char,
29688_swigt__p_wxSingleInstanceChecker,
29689_swigt__p_wxFileTypeInfo,
29690_swigt__p_wxFrame,
29691_swigt__p_wxTimer,
29692_swigt__p_wxMimeTypesManager,
29693_swigt__p_wxPyArtProvider,
29694_swigt__p_wxPyTipProvider,
29695_swigt__p_wxTipProvider,
29696_swigt__p_wxJoystick,
29697_swigt__p_wxSystemOptions,
29698_swigt__p_wxPoint,
29699_swigt__p_wxJoystickEvent,
29700_swigt__p_wxCursor,
29701_swigt__p_wxObject,
29702_swigt__p_wxOutputStream,
29703_swigt__p_wxDateTime,
29704_swigt__p_wxPyDropSource,
29705_swigt__p_wxWindow,
29706_swigt__p_wxString,
29707_swigt__p_wxPyProcess,
29708_swigt__p_wxBitmap,
29709_swigt__p_wxConfig,
29710_swigt__p_wxChar,
29711_swigt__p_wxBusyInfo,
29712_swigt__p_wxPyDropTarget,
29713_swigt__p_wxPyTextDropTarget,
29714_swigt__p_wxPyFileDropTarget,
29715_swigt__p_wxProcessEvent,
29716_swigt__p_wxPyLog,
29717_swigt__p_wxLogNull,
29718_swigt__p_wxColour,
d55e5bfc
RD
29719_swigt__p_wxConfigPathChanger,
29720_swigt__p_wxPyTimer,
29721_swigt__p_wxDateSpan,
297220
29723};
29724
29725
29726/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29727
29728static swig_const_info swig_const_table[] = {
29729{ SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29730{ SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29731{ SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29732{ SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29733{ SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29734{0}};
29735
29736#ifdef __cplusplus
29737}
29738#endif
29739
29740#ifdef __cplusplus
29741extern "C"
29742#endif
29743SWIGEXPORT(void) SWIG_init(void) {
29744 static PyObject *SWIG_globals = 0;
29745 static int typeinit = 0;
29746 PyObject *m, *d;
29747 int i;
29748 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29749 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29750 d = PyModule_GetDict(m);
29751
29752 if (!typeinit) {
29753 for (i = 0; swig_types_initial[i]; i++) {
29754 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29755 }
29756 typeinit = 1;
29757 }
29758 SWIG_InstallConstants(d,swig_const_table);
29759
29760 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29761 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29762 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29763 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29764 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29765 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29766 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29767 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29768 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29769 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29770 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29771 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29772 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29773 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29774 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29775 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29776 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29777 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29778 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29779 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29780 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29781 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29782 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29783 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29784 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29785 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29786 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29787 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29788 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29789 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29790 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29791 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29792 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29793 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29794 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29795 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29796 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29797 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29798 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29799 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29800 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29801 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29802 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29803 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29804 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29805 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29806 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29807 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29808 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29809 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29810 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29811 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29812 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29813 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29814 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29815 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29816 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29817 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29818 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29819 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29820 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29821 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29822 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29823 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29824 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29825 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29826 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29827 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29828 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29829 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29830 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29831 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29832 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29833 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29834 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29835 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29836 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29837 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29838 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29839 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29840 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29841 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29842 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29843 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29844 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29845 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29846 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29847 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29848 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29849 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29850 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29851 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29852 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29853 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29854 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29855 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29856 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29857 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29858 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29859 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
1a6bba1e
RD
29860
29861 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
29862
d55e5bfc
RD
29863 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29864 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29865 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29866 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29867 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29868 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29869 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29870 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29871 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29872 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29873 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29874 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29875 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29876 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29877 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29878 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29879 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29880 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29881 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29882 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29883 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29884 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29885 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29886 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29887 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29888 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29889 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29890 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29891 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29892 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29893 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29894 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29895 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29896 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29897 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29898 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29899 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29900 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29901 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29902 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29903 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29904 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29905 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29906 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29907 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29908 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29909 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29910 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29911 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29912 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29913
29914 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29915
29916 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29917 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29918 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29919 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29920 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29921 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29922 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29923 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29924 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29925 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29926 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29927 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29928 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29929 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29930 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29931 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29932 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29933 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29934 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29935 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29936 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29937 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29938 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29939 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29940 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29941 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29942 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29943 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29944 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29945 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29946 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29947 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29948 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29949 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29950 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29951 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29952 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29953 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29954 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29955 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29956 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29957 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29958 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29959 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29960 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29961 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29962 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29963 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29964 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29965 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29966 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29967 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29968 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29969 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29970 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29971 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29972 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29973 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29974
29975 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29976
29977 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29978 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29979 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29980 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29981 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29982 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29983 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29984 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29985 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29986 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29987 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29988 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29989 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29990 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29991 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29992 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29993 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29994 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29995 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29996 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29997 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29998 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29999 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
30000 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
30001 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
30002 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
30003 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
30004 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
30005 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
30006 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
30007 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
30008 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
30009 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
30010 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
30011 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
30012 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
30013 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
30014 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
30015 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
30016 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
30017 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
30018 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
30019 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
30020 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
30021 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
30022 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
30023 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
30024 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
30025 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
30026 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
30027 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
30028 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
30029 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
30030 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
30031 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
30032 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
30033 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
30034 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
30035 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
30036 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
30037 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
30038 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
30039 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
30040 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
30041 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
30042 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
30043 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
30044 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
30045 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
30046 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
30047 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
30048 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
30049 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
30050 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
30051 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
30052 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
30053 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
30054 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
30055 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
30056 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
30057 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
30058 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
30059 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
30060 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
30061 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
30062 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
30063 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
30064 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
30065 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
30066 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
30067 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
30068 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
30069 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
30070 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
30071 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
30072 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
30073 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
30074 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
30075 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
30076 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
30077 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
30078 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
30079 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
30080 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
30081 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
30082 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
30083 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
30084 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
30085 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
30086 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
30087 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
30088 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
30089 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
30090 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
30091 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
30092 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
30093 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
30094 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
30095 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
30096 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
30097 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
30098 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
30099 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
30100 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
30101 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
30102 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
30103 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
30104 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
30105 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
30106 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
30107 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
30108 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
30109 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
30110 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
30111 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
30112 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
30113 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
30114 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
30115 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
30116 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
30117 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
30118 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
30119 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
30120 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
30121 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
30122 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
30123 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
30124 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
30125 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
30126 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
30127 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
30128 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
30129 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
30130 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
30131 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
30132 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
30133 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
30134 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
30135 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
30136 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
30137 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
30138 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
30139 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
30140 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
30141 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
30142 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
30143 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30144 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
30145 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
30146 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
30147 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
30148 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
30149 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
30150 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
30151 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
30152 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
30153 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
30154 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
30155 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
30156 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
30157 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
30158 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
30159 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
30160 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
30161 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
30162 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
30163 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
30164 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30165 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
30166 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
30167 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
30168 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
30169 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
30170 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
30171 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
30172 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
30173 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
30174 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
30175 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30176 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30177
30178 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30179 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30180 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30181 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30182
d55e5bfc
RD
30183 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30184}
30185