]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/misc_wrap.cpp
Remove #!
[wxWidgets.git] / wxPython / src / mac / misc_wrap.cpp
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
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
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; }
25 private:
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
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef 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
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(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
139 extern "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 */
157 typedef 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
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(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_wxFileType swig_types[9]
219 #define SWIGTYPE_p_wxLogGui swig_types[10]
220 #define SWIGTYPE_p_wxFont swig_types[11]
221 #define SWIGTYPE_p_wxDataFormat swig_types[12]
222 #define SWIGTYPE_p_wxTimerEvent swig_types[13]
223 #define SWIGTYPE_p_wxCaret swig_types[14]
224 #define SWIGTYPE_p_int swig_types[15]
225 #define SWIGTYPE_p_wxSize swig_types[16]
226 #define SWIGTYPE_p_wxClipboard swig_types[17]
227 #define SWIGTYPE_p_wxStopWatch swig_types[18]
228 #define SWIGTYPE_p_wxDC swig_types[19]
229 #define SWIGTYPE_p_wxClipboardLocker swig_types[20]
230 #define SWIGTYPE_p_wxIcon swig_types[21]
231 #define SWIGTYPE_p_wxLogStderr swig_types[22]
232 #define SWIGTYPE_p_wxLogTextCtrl swig_types[23]
233 #define SWIGTYPE_p_wxTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxBusyCursor swig_types[25]
235 #define SWIGTYPE_p_wxPyTextDataObject swig_types[26]
236 #define SWIGTYPE_p_wxBitmapDataObject swig_types[27]
237 #define SWIGTYPE_p_wxTextDataObject swig_types[28]
238 #define SWIGTYPE_p_wxDataObject swig_types[29]
239 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[30]
240 #define SWIGTYPE_p_wxFileDataObject swig_types[31]
241 #define SWIGTYPE_p_wxCustomDataObject swig_types[32]
242 #define SWIGTYPE_p_wxURLDataObject swig_types[33]
243 #define SWIGTYPE_p_wxMetafileDataObject swig_types[34]
244 #define SWIGTYPE_p_wxSound swig_types[35]
245 #define SWIGTYPE_p_wxTimerRunner swig_types[36]
246 #define SWIGTYPE_p_wxLogWindow swig_types[37]
247 #define SWIGTYPE_p_wxTimeSpan swig_types[38]
248 #define SWIGTYPE_p_wxArrayString swig_types[39]
249 #define SWIGTYPE_p_wxWindowDisabler swig_types[40]
250 #define SWIGTYPE_p_wxToolTip swig_types[41]
251 #define SWIGTYPE_p_wxDataObjectComposite swig_types[42]
252 #define SWIGTYPE_p_wxFileConfig swig_types[43]
253 #define SWIGTYPE_p_wxSystemSettings swig_types[44]
254 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[45]
255 #define SWIGTYPE_p_wxDataObjectSimple swig_types[46]
256 #define SWIGTYPE_p_wxEvtHandler swig_types[47]
257 #define SWIGTYPE_p_wxRect swig_types[48]
258 #define SWIGTYPE_p_char swig_types[49]
259 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[50]
260 #define SWIGTYPE_p_wxFileTypeInfo swig_types[51]
261 #define SWIGTYPE_p_wxFrame swig_types[52]
262 #define SWIGTYPE_p_wxTimer swig_types[53]
263 #define SWIGTYPE_p_wxMimeTypesManager swig_types[54]
264 #define SWIGTYPE_p_wxPyArtProvider swig_types[55]
265 #define SWIGTYPE_p_wxPyTipProvider swig_types[56]
266 #define SWIGTYPE_p_wxTipProvider swig_types[57]
267 #define SWIGTYPE_p_wxJoystick swig_types[58]
268 #define SWIGTYPE_p_wxSystemOptions swig_types[59]
269 #define SWIGTYPE_p_wxPoint swig_types[60]
270 #define SWIGTYPE_p_wxJoystickEvent swig_types[61]
271 #define SWIGTYPE_p_wxCursor swig_types[62]
272 #define SWIGTYPE_p_wxObject swig_types[63]
273 #define SWIGTYPE_p_wxOutputStream swig_types[64]
274 #define SWIGTYPE_p_wxDateTime swig_types[65]
275 #define SWIGTYPE_p_wxPyDropSource swig_types[66]
276 #define SWIGTYPE_p_wxWindow swig_types[67]
277 #define SWIGTYPE_p_wxString swig_types[68]
278 #define SWIGTYPE_p_wxPyProcess swig_types[69]
279 #define SWIGTYPE_p_wxBitmap swig_types[70]
280 #define SWIGTYPE_p_wxConfig swig_types[71]
281 #define SWIGTYPE_p_wxChar swig_types[72]
282 #define SWIGTYPE_p_wxBusyInfo swig_types[73]
283 #define SWIGTYPE_p_wxPyDropTarget swig_types[74]
284 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[75]
285 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[76]
286 #define SWIGTYPE_p_wxProcessEvent swig_types[77]
287 #define SWIGTYPE_p_wxPyLog swig_types[78]
288 #define SWIGTYPE_p_wxLogNull swig_types[79]
289 #define SWIGTYPE_p_wxColour swig_types[80]
290 #define SWIGTYPE_p_wxByte swig_types[81]
291 #define SWIGTYPE_p_wxConfigPathChanger swig_types[82]
292 #define SWIGTYPE_p_wxPyTimer swig_types[83]
293 #define SWIGTYPE_p_wxDateSpan swig_types[84]
294 static swig_type_info *swig_types[86];
295
296 /* -------- TYPES TABLE (END) -------- */
297
298
299 /*-----------------------------------------------
300 @(target):= _misc.so
301 ------------------------------------------------*/
302 #define SWIG_init init_misc
303
304 #define SWIG_name "_misc"
305
306 /* Auxiliar swig macros */
307
308 #ifdef __cplusplus
309 #define SWIGSTATICINLINE(a) static inline a
310 #define SWIGSTATIC(a) static a
311 #define swig_new_array(type, size) (new type[(size)])
312 #define swig_delete_array(cptr) delete[] cptr
313 #define swig_const_cast(type,a) const_cast<type>(a)
314 #define swig_static_cast(type,a) static_cast<type>(a)
315 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
316
317 #ifdef HAVE_NUMERIC_CAST
318 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
319 #else
320 #define swig_numeric_cast(type,a) static_cast<type>(a)
321 #endif
322
323 #else /* C case */
324
325 #define SWIGSTATICINLINE(a) static a
326 #define SWIGSTATIC(a) static a
327 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
328 #define swig_delete_array(cptr) free((char*)cptr)
329 #define swig_const_cast(type,a) (type)(a)
330 #define swig_static_cast(type,a) (type)(a)
331 #define swig_reinterpret_cast(type,a) (type)(a)
332 #define swig_numeric_cast(type,a) (type)(a)
333
334 #endif /* __cplusplus */
335
336
337 #define SWIG_FromSignedChar PyInt_FromLong
338 #define SWIG_FromUnsignedChar PyInt_FromLong
339 #define SWIG_FromShort PyInt_FromLong
340 #define SWIG_FromUnsignedShort PyInt_FromLong
341 #define SWIG_FromInt PyInt_FromLong
342 #define SWIG_FromLong PyInt_FromLong
343 #define SWIG_FromFloat PyFloat_FromDouble
344 #define SWIG_FromDouble PyFloat_FromDouble
345 #define SWIG_FromFloat PyFloat_FromDouble
346 #define SWIG_FromDouble PyFloat_FromDouble
347
348
349 #include "wx/wxPython/wxPython.h"
350 #include "wx/wxPython/pyclasses.h"
351 #include "wx/wxPython/pyistream.h"
352
353
354 static const wxString wxPyEmptyString(wxEmptyString);
355
356
357
358 #include <limits.h>
359
360
361 SWIGSTATICINLINE(long)
362 SWIG_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
385 SWIGSTATICINLINE(long)
386 SWIG_AsLong(PyObject * obj)
387 {
388 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
389 }
390
391
392 #if INT_MAX != LONG_MAX
393 SWIGSTATICINLINE(int)
394 SWIG_AsInt(PyObject *obj)
395 {
396 return swig_numeric_cast(int,
397 SWIG_CheckLongInRange(SWIG_AsLong(obj),
398 "int", INT_MIN, INT_MAX));
399 }
400 #else
401 #define SWIG_AsInt SWIG_AsLong
402 #endif
403
404
405 SWIGSTATICINLINE(int)
406 SWIG_CheckInt(PyObject* obj)
407 {
408 SWIG_AsInt(obj);
409 if (PyErr_Occurred()) {
410 PyErr_Clear();
411 return 0;
412 } else {
413 return 1;
414 }
415 }
416
417 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
418 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
419 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
420
421 SWIGSTATICINLINE(int)
422 SWIG_CheckLong(PyObject* obj)
423 {
424 SWIG_AsLong(obj);
425 if (PyErr_Occurred()) {
426 PyErr_Clear();
427 return 0;
428 } else {
429 return 1;
430 }
431 }
432
433
434 SWIGSTATICINLINE(bool)
435 SWIG_AsBool(PyObject *obj)
436 {
437 return PyObject_IsTrue(obj) ? true : false;
438 }
439
440
441 SWIGSTATICINLINE(int)
442 SWIG_CheckBool(PyObject* obj)
443 {
444 SWIG_AsBool(obj);
445 if (PyErr_Occurred()) {
446 PyErr_Clear();
447 return 0;
448 } else {
449 return 1;
450 }
451 }
452
453
454 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
455 PyObject* o2;
456 PyObject* o3;
457
458 if (!target) {
459 target = o;
460 } else if (target == Py_None) {
461 Py_DECREF(Py_None);
462 target = o;
463 } else {
464 if (!PyTuple_Check(target)) {
465 o2 = target;
466 target = PyTuple_New(1);
467 PyTuple_SetItem(target, 0, o2);
468 }
469 o3 = PyTuple_New(1);
470 PyTuple_SetItem(o3, 0, o);
471
472 o2 = target;
473 target = PySequence_Concat(o2, o3);
474 Py_DECREF(o2);
475 Py_DECREF(o3);
476 }
477 return target;
478 }
479
480
481 SWIGSTATICINLINE(unsigned long)
482 SWIG_AsUnsignedLong(PyObject * obj)
483 {
484 if (PyLong_Check(obj)) {
485 return PyLong_AsUnsignedLong(obj);
486 } else {
487 long i = PyInt_AsLong(obj);
488 if ( !PyErr_Occurred() && (i < 0)) {
489 PyErr_SetString(PyExc_TypeError, "negative value for unsigned type");
490 }
491 return i;
492 }
493 }
494
495
496 SWIGSTATICINLINE(int)
497 SWIG_CheckUnsignedLong(PyObject* obj)
498 {
499 SWIG_AsUnsignedLong(obj);
500 if (PyErr_Occurred()) {
501 PyErr_Clear();
502 return 0;
503 } else {
504 return 1;
505 }
506 }
507
508
509 SWIGSTATICINLINE(PyObject* )
510 SWIG_FromUnsignedLong(unsigned long value)
511 {
512 return (value > LONG_MAX) ?
513 PyLong_FromUnsignedLong(value)
514 : PyInt_FromLong(swig_numeric_cast(long,value));
515 }
516
517
518 bool wxThread_IsMain() {
519 #ifdef WXP_WITH_THREAD
520 return wxThread::IsMain();
521 #else
522 return True;
523 #endif
524 }
525
526
527 int wxCaret_GetBlinkTime() {
528 return wxCaret::GetBlinkTime();
529 }
530
531 void wxCaret_SetBlinkTime(int milliseconds) {
532 wxCaret::SetBlinkTime(milliseconds);
533 }
534
535
536 #include <wx/snglinst.h>
537
538
539 #ifdef __WXMSW__
540 #include <wx/msw/private.h>
541 #include <wx/dynload.h>
542 #endif
543
544
545
546 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
547 {
548 #ifdef __WXMSW__
549
550 switch (method)
551 {
552 case 1:
553 // This one only partially works. Appears to be an undocumented
554 // "standard" convention that not all widgets adhear to. For
555 // example, for some widgets backgrounds or non-client areas may
556 // not be painted.
557 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
558 break;
559
560 case 2:
561 // This one works much better, except for on XP. On Win2k nearly
562 // all widgets and their children are captured correctly[**]. On
563 // XP with Themes activated most native widgets draw only
564 // partially, if at all. Without themes it works just like on
565 // Win2k.
566 //
567 // ** For example the radio buttons in a wxRadioBox are not its
568 // children by default, but you can capture it via the panel
569 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
570 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
571 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
572 PRF_ERASEBKGND | PRF_OWNED );
573 break;
574
575 case 3:
576 // This one is only defined in the latest SDK and is only
577 // available on XP. MSDN says it is similar to sending WM_PRINT
578 // so I expect that it will work similar to the above. Since it
579 // is avaialble only on XP, it can't be compiled like this and
580 // will have to be loaded dynamically.
581 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
582
583 // fall through
584
585 case 4:
586 // Use PrintWindow if available, or fallback to WM_PRINT
587 // otherwise. Unfortunately using PrintWindow is even worse than
588 // WM_PRINT. For most native widgets nothing is drawn to the dc
589 // at all, with or without Themes.
590 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
591 static bool s_triedToLoad = False;
592 static PrintWindow_t pfnPrintWindow = NULL;
593 if ( !s_triedToLoad )
594 {
595
596 s_triedToLoad = True;
597 wxDynamicLibrary dllUser32(_T("user32.dll"));
598 if ( dllUser32.IsLoaded() )
599 {
600 wxLogNull nolog; // Don't report errors here
601 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
602 }
603 }
604 if (pfnPrintWindow)
605 {
606 printf("Using PrintWindow\n");
607 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
608 }
609 else
610 {
611 printf("Using WM_PRINT\n");
612 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
613 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
614 }
615 }
616 #endif
617 }
618
619
620
621 #include <wx/tipdlg.h>
622
623
624 class wxPyTipProvider : public wxTipProvider {
625 public:
626 wxPyTipProvider(size_t currentTip)
627 : wxTipProvider(currentTip) {}
628
629 DEC_PYCALLBACK_STRING__pure(GetTip);
630 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
631 PYPRIVATE;
632 };
633
634 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
635 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
636
637
638 IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
639
640
641 SWIGSTATICINLINE(PyObject *)
642 SWIG_FromCharPtr(const char* cptr)
643 {
644 size_t size = cptr ? strlen(cptr) : 0;
645 if (cptr) {
646 if (size > INT_MAX) {
647 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
648 SWIG_TypeQuery("char *"), 0);
649 } else {
650 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
651 }
652 } else {
653 Py_INCREF(Py_None);
654 return Py_None;
655 }
656 }
657
658
659 SWIGSTATICINLINE(unsigned long)
660 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
661 unsigned long max_value)
662 {
663 if (!PyErr_Occurred()) {
664 if (value > max_value) {
665 PyObject *err =
666 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
667 value, type, max_value);
668 PyErr_SetObject(PyExc_OverflowError, err);
669 Py_DECREF(err);
670 }
671 }
672 return value;
673 }
674
675
676 #if UINT_MAX != ULONG_MAX
677 SWIGSTATICINLINE(unsigned int)
678 SWIG_AsUnsignedInt(PyObject *obj)
679 {
680 return swig_numeric_cast(unsigned int,
681 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
682 "unsigned int", UINT_MAX));
683 }
684 #else
685 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
686 #endif
687
688
689 SWIGSTATICINLINE(int)
690 SWIG_CheckUnsignedInt(PyObject* obj)
691 {
692 SWIG_AsUnsignedInt(obj);
693 if (PyErr_Occurred()) {
694 PyErr_Clear();
695 return 0;
696 } else {
697 return 1;
698 }
699 }
700
701 wxString Log_TimeStamp(){
702 wxString msg;
703 wxLog::TimeStamp(&msg);
704 return msg;
705 }
706 void wxLog_Destroy(wxLog *self){ delete self; }
707
708 // A wxLog class that can be derived from in wxPython
709 class wxPyLog : public wxLog {
710 public:
711 wxPyLog() : wxLog() {}
712
713 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
714 bool found;
715 wxPyBeginBlockThreads();
716 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
717 PyObject* s = wx2PyString(szString);
718 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
719 Py_DECREF(s);
720 }
721 wxPyEndBlockThreads();
722 if (! found)
723 wxLog::DoLog(level, szString, t);
724 }
725
726 virtual void DoLogString(const wxChar *szString, time_t t) {
727 bool found;
728 wxPyBeginBlockThreads();
729 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
730 PyObject* s = wx2PyString(szString);
731 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
732 Py_DECREF(s);
733 }
734 wxPyEndBlockThreads();
735 if (! found)
736 wxLog::DoLogString(szString, t);
737 }
738
739 PYPRIVATE;
740 };
741
742
743
744
745 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
746
747
748 #include <wx/joystick.h>
749
750
751 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
752 // A C++ stub class for wxJoystick for platforms that don't have it.
753 class wxJoystick : public wxObject {
754 public:
755 wxJoystick(int joystick = wxJOYSTICK1) {
756 wxPyBeginBlockThreads();
757 PyErr_SetString(PyExc_NotImplementedError,
758 "wxJoystick is not available on this platform.");
759 wxPyEndBlockThreads();
760 }
761 wxPoint GetPosition() { return wxPoint(-1,-1); }
762 int GetZPosition() { return -1; }
763 int GetButtonState() { return -1; }
764 int GetPOVPosition() { return -1; }
765 int GetPOVCTSPosition() { return -1; }
766 int GetRudderPosition() { return -1; }
767 int GetUPosition() { return -1; }
768 int GetVPosition() { return -1; }
769 int GetMovementThreshold() { return -1; }
770 void SetMovementThreshold(int threshold) {}
771
772 bool IsOk(void) { return False; }
773 int GetNumberJoysticks() { return -1; }
774 int GetManufacturerId() { return -1; }
775 int GetProductId() { return -1; }
776 wxString GetProductName() { return ""; }
777 int GetXMin() { return -1; }
778 int GetYMin() { return -1; }
779 int GetZMin() { return -1; }
780 int GetXMax() { return -1; }
781 int GetYMax() { return -1; }
782 int GetZMax() { return -1; }
783 int GetNumberButtons() { return -1; }
784 int GetNumberAxes() { return -1; }
785 int GetMaxButtons() { return -1; }
786 int GetMaxAxes() { return -1; }
787 int GetPollingMin() { return -1; }
788 int GetPollingMax() { return -1; }
789 int GetRudderMin() { return -1; }
790 int GetRudderMax() { return -1; }
791 int GetUMin() { return -1; }
792 int GetUMax() { return -1; }
793 int GetVMin() { return -1; }
794 int GetVMax() { return -1; }
795
796 bool HasRudder() { return False; }
797 bool HasZ() { return False; }
798 bool HasU() { return False; }
799 bool HasV() { return False; }
800 bool HasPOV() { return False; }
801 bool HasPOV4Dir() { return False; }
802 bool HasPOVCTS() { return False; }
803
804 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
805 bool ReleaseCapture() { return False; }
806 };
807 #endif
808
809
810 #include <wx/sound.h>
811
812
813 #if !wxUSE_SOUND
814 // A C++ stub class for wxWave for platforms that don't have it.
815 class wxSound : public wxObject
816 {
817 public:
818 wxSound() {
819 wxPyBeginBlockThreads();
820 PyErr_SetString(PyExc_NotImplementedError,
821 "wxSound is not available on this platform.");
822 wxPyEndBlockThreads();
823 }
824 wxSound(const wxString&, bool) {
825 wxPyBeginBlockThreads();
826 PyErr_SetString(PyExc_NotImplementedError,
827 "wxSound is not available on this platform.");
828 wxPyEndBlockThreads();
829 }
830 wxSound(int, const wxByte*) {
831 wxPyBeginBlockThreads();
832 PyErr_SetString(PyExc_NotImplementedError,
833 "wxSound is not available on this platform.");
834 wxPyEndBlockThreads();
835 }
836
837 ~wxSound() {};
838
839 bool Create(const wxString&, bool) { return false; }
840 bool Create(int, const wxByte*) { return false; };
841 bool IsOk() { return false; };
842 bool Play(unsigned) const { return false; }
843 static bool Play(const wxString&, unsigned) { return false; }
844 static void Stop() {}
845 };
846
847 #endif
848
849 bool wxSound_Create__SWIG_1(wxSound *self,int size,wxByte const *data){
850 wxPyBeginBlockThreads();
851 PyErr_SetString(PyExc_NotImplementedError,
852 "Create from data is not available on this platform.");
853 wxPyEndBlockThreads();
854 return False;
855 }
856 void Sound_Stop(){}
857
858 #include <wx/mimetype.h>
859
860 PyObject *wxFileType_GetMimeType(wxFileType *self){
861 wxString str;
862 if (self->GetMimeType(&str))
863 return wx2PyString(str);
864 else
865 RETURN_NONE();
866 }
867 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
868 wxArrayString arr;
869 if (self->GetMimeTypes(arr))
870 return wxArrayString2PyList_helper(arr);
871 else
872 RETURN_NONE();
873 }
874 PyObject *wxFileType_GetExtensions(wxFileType *self){
875 wxArrayString arr;
876 if (self->GetExtensions(arr))
877 return wxArrayString2PyList_helper(arr);
878 else
879 RETURN_NONE();
880 }
881 wxIcon *wxFileType_GetIcon(wxFileType *self){
882 wxIconLocation loc;
883 if (self->GetIcon(&loc))
884 return new wxIcon(loc);
885 else
886 return NULL;
887 }
888 PyObject *wxFileType_GetIconInfo(wxFileType *self){
889 wxIconLocation loc;
890 if (self->GetIcon(&loc)) {
891 wxString iconFile = loc.GetFileName();
892 int iconIndex = -1;
893
894
895
896 // Make a tuple and put the values in it
897 wxPyBeginBlockThreads();
898 PyObject* tuple = PyTuple_New(3);
899 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
900 wxT("wxIcon"), True));
901 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
902 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
903 wxPyEndBlockThreads();
904 return tuple;
905 }
906 else
907 RETURN_NONE();
908 }
909 PyObject *wxFileType_GetDescription(wxFileType *self){
910 wxString str;
911 if (self->GetDescription(&str))
912 return wx2PyString(str);
913 else
914 RETURN_NONE();
915 }
916 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
917 wxString str;
918 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
919 return wx2PyString(str);
920 else
921 RETURN_NONE();
922 }
923 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
924 wxString str;
925 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
926 return wx2PyString(str);
927 else
928 RETURN_NONE();
929 }
930 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
931 wxArrayString verbs;
932 wxArrayString commands;
933 if (self->GetAllCommands(&verbs, &commands,
934 wxFileType::MessageParameters(filename, mimetype))) {
935 wxPyBeginBlockThreads();
936 PyObject* tuple = PyTuple_New(2);
937 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
938 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
939 wxPyEndBlockThreads();
940 return tuple;
941 }
942 else
943 RETURN_NONE();
944 }
945 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
946 return wxFileType::ExpandCommand(command,
947 wxFileType::MessageParameters(filename, mimetype));
948 }
949 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
950 wxArrayString arr;
951 self->EnumAllFileTypes(arr);
952 return wxArrayString2PyList_helper(arr);
953 }
954
955 #include <wx/artprov.h>
956
957 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
958 static const wxString wxPyART_MENU(wxART_MENU);
959 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
960 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
961 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
962 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
963 static const wxString wxPyART_OTHER(wxART_OTHER);
964 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
965 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
966 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
967 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
968 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
969 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
970 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
971 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
972 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
973 static const wxString wxPyART_GO_UP(wxART_GO_UP);
974 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
975 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
976 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
977 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
978 static const wxString wxPyART_PRINT(wxART_PRINT);
979 static const wxString wxPyART_HELP(wxART_HELP);
980 static const wxString wxPyART_TIP(wxART_TIP);
981 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
982 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
983 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
984 static const wxString wxPyART_FOLDER(wxART_FOLDER);
985 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
986 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
987 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
988 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
989 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
990 static const wxString wxPyART_ERROR(wxART_ERROR);
991 static const wxString wxPyART_QUESTION(wxART_QUESTION);
992 static const wxString wxPyART_WARNING(wxART_WARNING);
993 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
994 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
995 // Python aware wxArtProvider
996 class wxPyArtProvider : public wxArtProvider {
997 public:
998
999 virtual wxBitmap CreateBitmap(const wxArtID& id,
1000 const wxArtClient& client,
1001 const wxSize& size) {
1002 wxBitmap rval = wxNullBitmap;
1003 wxPyBeginBlockThreads();
1004 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1005 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1006 PyObject* ro;
1007 wxBitmap* ptr;
1008 PyObject* s1, *s2;
1009 s1 = wx2PyString(id);
1010 s2 = wx2PyString(client);
1011 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1012 Py_DECREF(so);
1013 Py_DECREF(s1);
1014 Py_DECREF(s2);
1015 if (ro) {
1016 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1017 rval = *ptr;
1018 Py_DECREF(ro);
1019 }
1020 }
1021 wxPyEndBlockThreads();
1022 return rval;
1023 }
1024
1025 PYPRIVATE;
1026 };
1027
1028 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1029
1030
1031
1032 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1033 PyObject* ret = PyTuple_New(3);
1034 if (ret) {
1035 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1036 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1037 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1038 }
1039 return ret;
1040 }
1041
1042 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1043 bool cont;
1044 long index = 0;
1045 wxString value;
1046
1047 cont = self->GetFirstGroup(value, index);
1048 return __EnumerationHelper(cont, value, index);
1049 }
1050 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1051 bool cont;
1052 wxString value;
1053
1054 cont = self->GetNextGroup(value, index);
1055 return __EnumerationHelper(cont, value, index);
1056 }
1057 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1058 bool cont;
1059 long index = 0;
1060 wxString value;
1061
1062 cont = self->GetFirstEntry(value, index);
1063 return __EnumerationHelper(cont, value, index);
1064 }
1065 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1066 bool cont;
1067 wxString value;
1068
1069 cont = self->GetNextEntry(value, index);
1070 return __EnumerationHelper(cont, value, index);
1071 }
1072 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1073 long rv;
1074 self->Read(key, &rv, defaultVal);
1075 return rv;
1076 }
1077
1078 SWIGSTATICINLINE(double)
1079 SWIG_AsDouble(PyObject *obj)
1080 {
1081 double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
1082 #if HAVE_LONG_LONG
1083 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
1084 #else
1085 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
1086 #endif
1087 if (PyErr_Occurred()) {
1088 PyErr_Clear();
1089 PyErr_SetString(PyExc_TypeError, "a double is expected");
1090 }
1091 return val;
1092 }
1093
1094
1095 SWIGSTATICINLINE(int)
1096 SWIG_CheckDouble(PyObject* obj)
1097 {
1098 SWIG_AsDouble(obj);
1099 if (PyErr_Occurred()) {
1100 PyErr_Clear();
1101 return 0;
1102 } else {
1103 return 1;
1104 }
1105 }
1106
1107 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1108 double rv;
1109 self->Read(key, &rv, defaultVal);
1110 return rv;
1111 }
1112 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1113 bool rv;
1114 self->Read(key, &rv, defaultVal);
1115 return rv;
1116 }
1117
1118 #include <wx/datetime.h>
1119
1120
1121 static const wxString wxPyDateFormatStr(wxT("%c"));
1122 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1123
1124 #define LOCAL_TZ wxDateTime::Local
1125
1126
1127 #if UINT_MAX < LONG_MAX
1128 #define SWIG_FromUnsignedInt SWIG_FromLong
1129 #else
1130 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1131 #endif
1132
1133 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1134 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1135 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1136 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1137 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1138 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self < *other) : False; }
1139 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ return other ? (*self <= *other) : False; }
1140 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self > *other) : True; }
1141 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ return other ? (*self >= *other) : True; }
1142 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ return other ? (*self == *other) : False; }
1143 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ return other ? (*self != *other) : True; }
1144 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1145 const wxChar* rv;
1146 const wxChar* _date = date;
1147 rv = self->ParseRfc822Date(_date);
1148 if (rv == NULL) return -1;
1149 return rv - _date;
1150 }
1151 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1152 const wxChar* rv;
1153 const wxChar* _date = date;
1154 rv = self->ParseFormat(_date, format, dateDef);
1155 if (rv == NULL) return -1;
1156 return rv - _date;
1157 }
1158 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1159 const wxChar* rv;
1160 const wxChar* _datetime = datetime;
1161 rv = self->ParseDateTime(_datetime);
1162 if (rv == NULL) return -1;
1163 return rv - _datetime;
1164 }
1165 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1166 const wxChar* rv;
1167 const wxChar* _date = date;
1168 rv = self->ParseDate(_date);
1169 if (rv == NULL) return -1;
1170 return rv - _date;
1171 }
1172 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1173 const wxChar* rv;
1174 const wxChar* _time = time;
1175 rv = self->ParseTime(_time);
1176 if (rv == NULL) return -1;
1177 return rv - _time;
1178 }
1179 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1180 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1181 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1182 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1183 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1184 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1185 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1186 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1187 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1188 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1189 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1190 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1191 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1192 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1193 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1194 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1195
1196 #include <wx/dataobj.h>
1197
1198 // Create a new class for wxPython to use
1199 class wxPyDataObjectSimple : public wxDataObjectSimple {
1200 public:
1201 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1202 : wxDataObjectSimple(format) {}
1203
1204 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1205 bool GetDataHere(void *buf) const;
1206 bool SetData(size_t len, const void *buf) const;
1207 PYPRIVATE;
1208 };
1209
1210 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1211
1212 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1213 // We need to get the data for this object and write it to buf. I think
1214 // the best way to do this for wxPython is to have the Python method
1215 // return either a string or None and then act appropriately with the
1216 // C++ version.
1217
1218 bool rval = False;
1219 wxPyBeginBlockThreads();
1220 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1221 PyObject* ro;
1222 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1223 if (ro) {
1224 rval = (ro != Py_None && PyString_Check(ro));
1225 if (rval)
1226 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1227 Py_DECREF(ro);
1228 }
1229 }
1230 wxPyEndBlockThreads();
1231 return rval;
1232 }
1233
1234 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1235 // For this one we simply need to make a string from buf and len
1236 // and send it to the Python method.
1237 bool rval = False;
1238 wxPyBeginBlockThreads();
1239 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1240 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1241 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1242 Py_DECREF(data);
1243 }
1244 wxPyEndBlockThreads();
1245 return rval;
1246 }
1247
1248 // Create a new class for wxPython to use
1249 class wxPyTextDataObject : public wxTextDataObject {
1250 public:
1251 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1252 : wxTextDataObject(text) {}
1253
1254 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1255 DEC_PYCALLBACK_STRING__const(GetText);
1256 DEC_PYCALLBACK__STRING(SetText);
1257 PYPRIVATE;
1258 };
1259
1260 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1261 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1262 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1263
1264
1265 // Create a new class for wxPython to use
1266 class wxPyBitmapDataObject : public wxBitmapDataObject {
1267 public:
1268 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1269 : wxBitmapDataObject(bitmap) {}
1270
1271 wxBitmap GetBitmap() const;
1272 void SetBitmap(const wxBitmap& bitmap);
1273 PYPRIVATE;
1274 };
1275
1276 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1277 wxBitmap* rval = &wxNullBitmap;
1278 wxPyBeginBlockThreads();
1279 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1280 PyObject* ro;
1281 wxBitmap* ptr;
1282 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1283 if (ro) {
1284 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1285 rval = ptr;
1286 Py_DECREF(ro);
1287 }
1288 }
1289 wxPyEndBlockThreads();
1290 return *rval;
1291 }
1292
1293 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1294 wxPyBeginBlockThreads();
1295 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1296 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1297 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1298 Py_DECREF(bo);
1299 }
1300 wxPyEndBlockThreads();
1301 }
1302
1303 void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1304 if (PyString_Check(data)) {
1305 // for Python we just call SetData here since we always need it to make a copy.
1306 self->SetData(PyString_Size(data), PyString_AsString(data));
1307 }
1308 else {
1309 // raise a TypeError if not a string
1310 PyErr_SetString(PyExc_TypeError, "String expected.");
1311 }
1312 }
1313 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1314 if (PyString_Check(data)) {
1315 return self->SetData(PyString_Size(data), PyString_AsString(data));
1316 }
1317 else {
1318 // raise a TypeError if not a string
1319 PyErr_SetString(PyExc_TypeError, "String expected.");
1320 return False;
1321 }
1322 }
1323 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1324 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1325 }
1326
1327 #include <wx/metafile.h>
1328
1329
1330 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1331
1332
1333 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1334 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1335 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1336 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1337 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1338
1339
1340 class wxPyTextDropTarget : public wxTextDropTarget {
1341 public:
1342 wxPyTextDropTarget() {}
1343
1344 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1345
1346 DEC_PYCALLBACK__(OnLeave);
1347 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1348 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1349 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1350 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1351
1352 PYPRIVATE;
1353 };
1354
1355 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1356 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1357 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1358 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1359 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1360 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1361
1362
1363
1364 class wxPyFileDropTarget : public wxFileDropTarget {
1365 public:
1366 wxPyFileDropTarget() {}
1367
1368 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1369
1370 DEC_PYCALLBACK__(OnLeave);
1371 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1372 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1373 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1374 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1375
1376 PYPRIVATE;
1377 };
1378
1379 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1380 const wxArrayString& filenames) {
1381 bool rval = False;
1382 wxPyBeginBlockThreads();
1383 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1384 PyObject* list = wxArrayString2PyList_helper(filenames);
1385 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1386 Py_DECREF(list);
1387 }
1388 wxPyEndBlockThreads();
1389 return rval;
1390 }
1391
1392
1393
1394 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1395 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1396 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1397 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1398 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1399
1400
1401
1402
1403 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1404 #ifdef __cplusplus
1405 extern "C" {
1406 #endif
1407 static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1408 PyObject *resultobj;
1409 int arg1 ;
1410 wxColour result;
1411 PyObject * obj0 = 0 ;
1412 char *kwnames[] = {
1413 (char *) "index", NULL
1414 };
1415
1416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1417 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1418 if (PyErr_Occurred()) SWIG_fail;
1419 {
1420 PyThreadState* __tstate = wxPyBeginAllowThreads();
1421 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1422
1423 wxPyEndAllowThreads(__tstate);
1424 if (PyErr_Occurred()) SWIG_fail;
1425 }
1426 {
1427 wxColour * resultptr;
1428 resultptr = new wxColour((wxColour &) result);
1429 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1430 }
1431 return resultobj;
1432 fail:
1433 return NULL;
1434 }
1435
1436
1437 static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
1438 PyObject *resultobj;
1439 int arg1 ;
1440 wxFont result;
1441 PyObject * obj0 = 0 ;
1442 char *kwnames[] = {
1443 (char *) "index", NULL
1444 };
1445
1446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1447 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1448 if (PyErr_Occurred()) SWIG_fail;
1449 {
1450 PyThreadState* __tstate = wxPyBeginAllowThreads();
1451 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1452
1453 wxPyEndAllowThreads(__tstate);
1454 if (PyErr_Occurred()) SWIG_fail;
1455 }
1456 {
1457 wxFont * resultptr;
1458 resultptr = new wxFont((wxFont &) result);
1459 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1460 }
1461 return resultobj;
1462 fail:
1463 return NULL;
1464 }
1465
1466
1467 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
1468 PyObject *resultobj;
1469 int arg1 ;
1470 int result;
1471 PyObject * obj0 = 0 ;
1472 char *kwnames[] = {
1473 (char *) "index", NULL
1474 };
1475
1476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1477 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1478 if (PyErr_Occurred()) SWIG_fail;
1479 {
1480 PyThreadState* __tstate = wxPyBeginAllowThreads();
1481 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1482
1483 wxPyEndAllowThreads(__tstate);
1484 if (PyErr_Occurred()) SWIG_fail;
1485 }
1486 resultobj = SWIG_FromInt((int)result);
1487 return resultobj;
1488 fail:
1489 return NULL;
1490 }
1491
1492
1493 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
1494 PyObject *resultobj;
1495 int arg1 ;
1496 bool result;
1497 PyObject * obj0 = 0 ;
1498 char *kwnames[] = {
1499 (char *) "index", NULL
1500 };
1501
1502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1503 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1504 if (PyErr_Occurred()) SWIG_fail;
1505 {
1506 PyThreadState* __tstate = wxPyBeginAllowThreads();
1507 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1508
1509 wxPyEndAllowThreads(__tstate);
1510 if (PyErr_Occurred()) SWIG_fail;
1511 }
1512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1513 return resultobj;
1514 fail:
1515 return NULL;
1516 }
1517
1518
1519 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1520 PyObject *resultobj;
1521 int result;
1522 char *kwnames[] = {
1523 NULL
1524 };
1525
1526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1527 {
1528 PyThreadState* __tstate = wxPyBeginAllowThreads();
1529 result = (int)wxSystemSettings::GetScreenType();
1530
1531 wxPyEndAllowThreads(__tstate);
1532 if (PyErr_Occurred()) SWIG_fail;
1533 }
1534 resultobj = SWIG_FromInt((int)result);
1535 return resultobj;
1536 fail:
1537 return NULL;
1538 }
1539
1540
1541 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1542 PyObject *resultobj;
1543 int arg1 ;
1544 PyObject * obj0 = 0 ;
1545 char *kwnames[] = {
1546 (char *) "screen", NULL
1547 };
1548
1549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1550 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1551 if (PyErr_Occurred()) SWIG_fail;
1552 {
1553 PyThreadState* __tstate = wxPyBeginAllowThreads();
1554 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1555
1556 wxPyEndAllowThreads(__tstate);
1557 if (PyErr_Occurred()) SWIG_fail;
1558 }
1559 Py_INCREF(Py_None); resultobj = Py_None;
1560 return resultobj;
1561 fail:
1562 return NULL;
1563 }
1564
1565
1566 static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
1567 PyObject *obj;
1568 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1569 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1570 Py_INCREF(obj);
1571 return Py_BuildValue((char *)"");
1572 }
1573 static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
1574 PyObject *resultobj;
1575 wxSystemOptions *result;
1576 char *kwnames[] = {
1577 NULL
1578 };
1579
1580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1581 {
1582 PyThreadState* __tstate = wxPyBeginAllowThreads();
1583 result = (wxSystemOptions *)new wxSystemOptions();
1584
1585 wxPyEndAllowThreads(__tstate);
1586 if (PyErr_Occurred()) SWIG_fail;
1587 }
1588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1589 return resultobj;
1590 fail:
1591 return NULL;
1592 }
1593
1594
1595 static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
1596 PyObject *resultobj;
1597 wxString *arg1 = 0 ;
1598 wxString *arg2 = 0 ;
1599 bool temp1 = False ;
1600 bool temp2 = False ;
1601 PyObject * obj0 = 0 ;
1602 PyObject * obj1 = 0 ;
1603 char *kwnames[] = {
1604 (char *) "name",(char *) "value", NULL
1605 };
1606
1607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1608 {
1609 arg1 = wxString_in_helper(obj0);
1610 if (arg1 == NULL) SWIG_fail;
1611 temp1 = True;
1612 }
1613 {
1614 arg2 = wxString_in_helper(obj1);
1615 if (arg2 == NULL) SWIG_fail;
1616 temp2 = True;
1617 }
1618 {
1619 PyThreadState* __tstate = wxPyBeginAllowThreads();
1620 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1621
1622 wxPyEndAllowThreads(__tstate);
1623 if (PyErr_Occurred()) SWIG_fail;
1624 }
1625 Py_INCREF(Py_None); resultobj = Py_None;
1626 {
1627 if (temp1)
1628 delete arg1;
1629 }
1630 {
1631 if (temp2)
1632 delete arg2;
1633 }
1634 return resultobj;
1635 fail:
1636 {
1637 if (temp1)
1638 delete arg1;
1639 }
1640 {
1641 if (temp2)
1642 delete arg2;
1643 }
1644 return NULL;
1645 }
1646
1647
1648 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
1649 PyObject *resultobj;
1650 wxString *arg1 = 0 ;
1651 int arg2 ;
1652 bool temp1 = False ;
1653 PyObject * obj0 = 0 ;
1654 PyObject * obj1 = 0 ;
1655 char *kwnames[] = {
1656 (char *) "name",(char *) "value", NULL
1657 };
1658
1659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1660 {
1661 arg1 = wxString_in_helper(obj0);
1662 if (arg1 == NULL) SWIG_fail;
1663 temp1 = True;
1664 }
1665 arg2 = (int) SWIG_AsInt(obj1);
1666 if (PyErr_Occurred()) SWIG_fail;
1667 {
1668 PyThreadState* __tstate = wxPyBeginAllowThreads();
1669 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1670
1671 wxPyEndAllowThreads(__tstate);
1672 if (PyErr_Occurred()) SWIG_fail;
1673 }
1674 Py_INCREF(Py_None); resultobj = Py_None;
1675 {
1676 if (temp1)
1677 delete arg1;
1678 }
1679 return resultobj;
1680 fail:
1681 {
1682 if (temp1)
1683 delete arg1;
1684 }
1685 return NULL;
1686 }
1687
1688
1689 static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
1690 PyObject *resultobj;
1691 wxString *arg1 = 0 ;
1692 wxString result;
1693 bool temp1 = False ;
1694 PyObject * obj0 = 0 ;
1695 char *kwnames[] = {
1696 (char *) "name", NULL
1697 };
1698
1699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1700 {
1701 arg1 = wxString_in_helper(obj0);
1702 if (arg1 == NULL) SWIG_fail;
1703 temp1 = True;
1704 }
1705 {
1706 PyThreadState* __tstate = wxPyBeginAllowThreads();
1707 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1708
1709 wxPyEndAllowThreads(__tstate);
1710 if (PyErr_Occurred()) SWIG_fail;
1711 }
1712 {
1713 #if wxUSE_UNICODE
1714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1715 #else
1716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1717 #endif
1718 }
1719 {
1720 if (temp1)
1721 delete arg1;
1722 }
1723 return resultobj;
1724 fail:
1725 {
1726 if (temp1)
1727 delete arg1;
1728 }
1729 return NULL;
1730 }
1731
1732
1733 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
1734 PyObject *resultobj;
1735 wxString *arg1 = 0 ;
1736 int result;
1737 bool temp1 = False ;
1738 PyObject * obj0 = 0 ;
1739 char *kwnames[] = {
1740 (char *) "name", NULL
1741 };
1742
1743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1744 {
1745 arg1 = wxString_in_helper(obj0);
1746 if (arg1 == NULL) SWIG_fail;
1747 temp1 = True;
1748 }
1749 {
1750 PyThreadState* __tstate = wxPyBeginAllowThreads();
1751 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1752
1753 wxPyEndAllowThreads(__tstate);
1754 if (PyErr_Occurred()) SWIG_fail;
1755 }
1756 resultobj = SWIG_FromInt((int)result);
1757 {
1758 if (temp1)
1759 delete arg1;
1760 }
1761 return resultobj;
1762 fail:
1763 {
1764 if (temp1)
1765 delete arg1;
1766 }
1767 return NULL;
1768 }
1769
1770
1771 static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
1772 PyObject *resultobj;
1773 wxString *arg1 = 0 ;
1774 bool result;
1775 bool temp1 = False ;
1776 PyObject * obj0 = 0 ;
1777 char *kwnames[] = {
1778 (char *) "name", NULL
1779 };
1780
1781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1782 {
1783 arg1 = wxString_in_helper(obj0);
1784 if (arg1 == NULL) SWIG_fail;
1785 temp1 = True;
1786 }
1787 {
1788 PyThreadState* __tstate = wxPyBeginAllowThreads();
1789 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1790
1791 wxPyEndAllowThreads(__tstate);
1792 if (PyErr_Occurred()) SWIG_fail;
1793 }
1794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1795 {
1796 if (temp1)
1797 delete arg1;
1798 }
1799 return resultobj;
1800 fail:
1801 {
1802 if (temp1)
1803 delete arg1;
1804 }
1805 return NULL;
1806 }
1807
1808
1809 static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
1810 PyObject *obj;
1811 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1812 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1813 Py_INCREF(obj);
1814 return Py_BuildValue((char *)"");
1815 }
1816 static int _wrap_FileSelectorPromptStr_set(PyObject *) {
1817 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1818 return 1;
1819 }
1820
1821
1822 static PyObject *_wrap_FileSelectorPromptStr_get() {
1823 PyObject *pyobj;
1824
1825 {
1826 #if wxUSE_UNICODE
1827 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1828 #else
1829 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1830 #endif
1831 }
1832 return pyobj;
1833 }
1834
1835
1836 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
1837 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
1838 return 1;
1839 }
1840
1841
1842 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
1843 PyObject *pyobj;
1844
1845 {
1846 #if wxUSE_UNICODE
1847 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1848 #else
1849 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1850 #endif
1851 }
1852 return pyobj;
1853 }
1854
1855
1856 static int _wrap_DirSelectorPromptStr_set(PyObject *) {
1857 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
1858 return 1;
1859 }
1860
1861
1862 static PyObject *_wrap_DirSelectorPromptStr_get() {
1863 PyObject *pyobj;
1864
1865 {
1866 #if wxUSE_UNICODE
1867 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1868 #else
1869 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1870 #endif
1871 }
1872 return pyobj;
1873 }
1874
1875
1876 static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
1877 PyObject *resultobj;
1878 long result;
1879 char *kwnames[] = {
1880 NULL
1881 };
1882
1883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1884 {
1885 PyThreadState* __tstate = wxPyBeginAllowThreads();
1886 result = (long)wxNewId();
1887
1888 wxPyEndAllowThreads(__tstate);
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
1891 resultobj = SWIG_FromLong((long)result);
1892 return resultobj;
1893 fail:
1894 return NULL;
1895 }
1896
1897
1898 static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
1899 PyObject *resultobj;
1900 long arg1 ;
1901 PyObject * obj0 = 0 ;
1902 char *kwnames[] = {
1903 (char *) "id", NULL
1904 };
1905
1906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
1907 arg1 = (long) SWIG_AsLong(obj0);
1908 if (PyErr_Occurred()) SWIG_fail;
1909 {
1910 PyThreadState* __tstate = wxPyBeginAllowThreads();
1911 wxRegisterId(arg1);
1912
1913 wxPyEndAllowThreads(__tstate);
1914 if (PyErr_Occurred()) SWIG_fail;
1915 }
1916 Py_INCREF(Py_None); resultobj = Py_None;
1917 return resultobj;
1918 fail:
1919 return NULL;
1920 }
1921
1922
1923 static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
1924 PyObject *resultobj;
1925 long result;
1926 char *kwnames[] = {
1927 NULL
1928 };
1929
1930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
1931 {
1932 PyThreadState* __tstate = wxPyBeginAllowThreads();
1933 result = (long)wxGetCurrentId();
1934
1935 wxPyEndAllowThreads(__tstate);
1936 if (PyErr_Occurred()) SWIG_fail;
1937 }
1938 resultobj = SWIG_FromLong((long)result);
1939 return resultobj;
1940 fail:
1941 return NULL;
1942 }
1943
1944
1945 static PyObject *_wrap_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
1946 PyObject *resultobj;
1947 char *kwnames[] = {
1948 NULL
1949 };
1950
1951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
1952 {
1953 PyThreadState* __tstate = wxPyBeginAllowThreads();
1954 wxBell();
1955
1956 wxPyEndAllowThreads(__tstate);
1957 if (PyErr_Occurred()) SWIG_fail;
1958 }
1959 Py_INCREF(Py_None); resultobj = Py_None;
1960 return resultobj;
1961 fail:
1962 return NULL;
1963 }
1964
1965
1966 static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
1967 PyObject *resultobj;
1968 char *kwnames[] = {
1969 NULL
1970 };
1971
1972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
1973 {
1974 PyThreadState* __tstate = wxPyBeginAllowThreads();
1975 wxEndBusyCursor();
1976
1977 wxPyEndAllowThreads(__tstate);
1978 if (PyErr_Occurred()) SWIG_fail;
1979 }
1980 Py_INCREF(Py_None); resultobj = Py_None;
1981 return resultobj;
1982 fail:
1983 return NULL;
1984 }
1985
1986
1987 static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
1988 PyObject *resultobj;
1989 bool arg1 = (bool) True ;
1990 long result;
1991 PyObject * obj0 = 0 ;
1992 char *kwnames[] = {
1993 (char *) "resetTimer", NULL
1994 };
1995
1996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
1997 if (obj0) {
1998 arg1 = (bool) SWIG_AsBool(obj0);
1999 if (PyErr_Occurred()) SWIG_fail;
2000 }
2001 {
2002 PyThreadState* __tstate = wxPyBeginAllowThreads();
2003 result = (long)wxGetElapsedTime(arg1);
2004
2005 wxPyEndAllowThreads(__tstate);
2006 if (PyErr_Occurred()) SWIG_fail;
2007 }
2008 resultobj = SWIG_FromLong((long)result);
2009 return resultobj;
2010 fail:
2011 return NULL;
2012 }
2013
2014
2015 static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
2016 PyObject *resultobj;
2017 int *arg1 = (int *) 0 ;
2018 int *arg2 = (int *) 0 ;
2019 int temp1 ;
2020 int temp2 ;
2021 char *kwnames[] = {
2022 NULL
2023 };
2024
2025 arg1 = &temp1;
2026 arg2 = &temp2;
2027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2028 {
2029 PyThreadState* __tstate = wxPyBeginAllowThreads();
2030 wxGetMousePosition(arg1,arg2);
2031
2032 wxPyEndAllowThreads(__tstate);
2033 if (PyErr_Occurred()) SWIG_fail;
2034 }
2035 Py_INCREF(Py_None); resultobj = Py_None;
2036 {
2037 PyObject *o = PyInt_FromLong((long) (*arg1));
2038 resultobj = t_output_helper(resultobj,o);
2039 }
2040 {
2041 PyObject *o = PyInt_FromLong((long) (*arg2));
2042 resultobj = t_output_helper(resultobj,o);
2043 }
2044 return resultobj;
2045 fail:
2046 return NULL;
2047 }
2048
2049
2050 static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
2051 PyObject *resultobj;
2052 bool result;
2053 char *kwnames[] = {
2054 NULL
2055 };
2056
2057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2058 {
2059 PyThreadState* __tstate = wxPyBeginAllowThreads();
2060 result = (bool)wxIsBusy();
2061
2062 wxPyEndAllowThreads(__tstate);
2063 if (PyErr_Occurred()) SWIG_fail;
2064 }
2065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2066 return resultobj;
2067 fail:
2068 return NULL;
2069 }
2070
2071
2072 static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
2073 PyObject *resultobj;
2074 wxString result;
2075 char *kwnames[] = {
2076 NULL
2077 };
2078
2079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2080 {
2081 PyThreadState* __tstate = wxPyBeginAllowThreads();
2082 result = wxNow();
2083
2084 wxPyEndAllowThreads(__tstate);
2085 if (PyErr_Occurred()) SWIG_fail;
2086 }
2087 {
2088 #if wxUSE_UNICODE
2089 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2090 #else
2091 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2092 #endif
2093 }
2094 return resultobj;
2095 fail:
2096 return NULL;
2097 }
2098
2099
2100 static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
2101 PyObject *resultobj;
2102 wxString const &arg1_defvalue = wxPyEmptyString ;
2103 wxString *arg1 = (wxString *) &arg1_defvalue ;
2104 bool result;
2105 bool temp1 = False ;
2106 PyObject * obj0 = 0 ;
2107 char *kwnames[] = {
2108 (char *) "command", NULL
2109 };
2110
2111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2112 if (obj0) {
2113 {
2114 arg1 = wxString_in_helper(obj0);
2115 if (arg1 == NULL) SWIG_fail;
2116 temp1 = True;
2117 }
2118 }
2119 {
2120 PyThreadState* __tstate = wxPyBeginAllowThreads();
2121 result = (bool)wxShell((wxString const &)*arg1);
2122
2123 wxPyEndAllowThreads(__tstate);
2124 if (PyErr_Occurred()) SWIG_fail;
2125 }
2126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2127 {
2128 if (temp1)
2129 delete arg1;
2130 }
2131 return resultobj;
2132 fail:
2133 {
2134 if (temp1)
2135 delete arg1;
2136 }
2137 return NULL;
2138 }
2139
2140
2141 static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
2142 PyObject *resultobj;
2143 char *kwnames[] = {
2144 NULL
2145 };
2146
2147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2148 {
2149 PyThreadState* __tstate = wxPyBeginAllowThreads();
2150 wxStartTimer();
2151
2152 wxPyEndAllowThreads(__tstate);
2153 if (PyErr_Occurred()) SWIG_fail;
2154 }
2155 Py_INCREF(Py_None); resultobj = Py_None;
2156 return resultobj;
2157 fail:
2158 return NULL;
2159 }
2160
2161
2162 static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
2163 PyObject *resultobj;
2164 int *arg1 = (int *) 0 ;
2165 int *arg2 = (int *) 0 ;
2166 int result;
2167 int temp1 ;
2168 int temp2 ;
2169 char *kwnames[] = {
2170 NULL
2171 };
2172
2173 arg1 = &temp1;
2174 arg2 = &temp2;
2175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2176 {
2177 PyThreadState* __tstate = wxPyBeginAllowThreads();
2178 result = (int)wxGetOsVersion(arg1,arg2);
2179
2180 wxPyEndAllowThreads(__tstate);
2181 if (PyErr_Occurred()) SWIG_fail;
2182 }
2183 resultobj = SWIG_FromInt((int)result);
2184 {
2185 PyObject *o = PyInt_FromLong((long) (*arg1));
2186 resultobj = t_output_helper(resultobj,o);
2187 }
2188 {
2189 PyObject *o = PyInt_FromLong((long) (*arg2));
2190 resultobj = t_output_helper(resultobj,o);
2191 }
2192 return resultobj;
2193 fail:
2194 return NULL;
2195 }
2196
2197
2198 static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
2199 PyObject *resultobj;
2200 wxString result;
2201 char *kwnames[] = {
2202 NULL
2203 };
2204
2205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2206 {
2207 PyThreadState* __tstate = wxPyBeginAllowThreads();
2208 result = wxGetOsDescription();
2209
2210 wxPyEndAllowThreads(__tstate);
2211 if (PyErr_Occurred()) SWIG_fail;
2212 }
2213 {
2214 #if wxUSE_UNICODE
2215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2216 #else
2217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2218 #endif
2219 }
2220 return resultobj;
2221 fail:
2222 return NULL;
2223 }
2224
2225
2226 static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
2227 PyObject *resultobj;
2228 long result;
2229 char *kwnames[] = {
2230 NULL
2231 };
2232
2233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2234 {
2235 PyThreadState* __tstate = wxPyBeginAllowThreads();
2236 result = (long)wxGetFreeMemory();
2237
2238 wxPyEndAllowThreads(__tstate);
2239 if (PyErr_Occurred()) SWIG_fail;
2240 }
2241 resultobj = SWIG_FromLong((long)result);
2242 return resultobj;
2243 fail:
2244 return NULL;
2245 }
2246
2247
2248 static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
2249 PyObject *resultobj;
2250 int arg1 ;
2251 bool result;
2252 PyObject * obj0 = 0 ;
2253 char *kwnames[] = {
2254 (char *) "wFlags", NULL
2255 };
2256
2257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2258 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2259 if (PyErr_Occurred()) SWIG_fail;
2260 {
2261 PyThreadState* __tstate = wxPyBeginAllowThreads();
2262 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2263
2264 wxPyEndAllowThreads(__tstate);
2265 if (PyErr_Occurred()) SWIG_fail;
2266 }
2267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2268 return resultobj;
2269 fail:
2270 return NULL;
2271 }
2272
2273
2274 static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
2275 PyObject *resultobj;
2276 int arg1 ;
2277 PyObject * obj0 = 0 ;
2278 char *kwnames[] = {
2279 (char *) "secs", NULL
2280 };
2281
2282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2283 arg1 = (int) SWIG_AsInt(obj0);
2284 if (PyErr_Occurred()) SWIG_fail;
2285 {
2286 PyThreadState* __tstate = wxPyBeginAllowThreads();
2287 wxSleep(arg1);
2288
2289 wxPyEndAllowThreads(__tstate);
2290 if (PyErr_Occurred()) SWIG_fail;
2291 }
2292 Py_INCREF(Py_None); resultobj = Py_None;
2293 return resultobj;
2294 fail:
2295 return NULL;
2296 }
2297
2298
2299 static PyObject *_wrap_Usleep(PyObject *, PyObject *args, PyObject *kwargs) {
2300 PyObject *resultobj;
2301 unsigned long arg1 ;
2302 PyObject * obj0 = 0 ;
2303 char *kwnames[] = {
2304 (char *) "milliseconds", NULL
2305 };
2306
2307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2308 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2309 if (PyErr_Occurred()) SWIG_fail;
2310 {
2311 PyThreadState* __tstate = wxPyBeginAllowThreads();
2312 wxUsleep(arg1);
2313
2314 wxPyEndAllowThreads(__tstate);
2315 if (PyErr_Occurred()) SWIG_fail;
2316 }
2317 Py_INCREF(Py_None); resultobj = Py_None;
2318 return resultobj;
2319 fail:
2320 return NULL;
2321 }
2322
2323
2324 static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
2325 PyObject *resultobj;
2326 bool arg1 ;
2327 PyObject * obj0 = 0 ;
2328 char *kwnames[] = {
2329 (char *) "enable", NULL
2330 };
2331
2332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2333 arg1 = (bool) SWIG_AsBool(obj0);
2334 if (PyErr_Occurred()) SWIG_fail;
2335 {
2336 PyThreadState* __tstate = wxPyBeginAllowThreads();
2337 wxEnableTopLevelWindows(arg1);
2338
2339 wxPyEndAllowThreads(__tstate);
2340 if (PyErr_Occurred()) SWIG_fail;
2341 }
2342 Py_INCREF(Py_None); resultobj = Py_None;
2343 return resultobj;
2344 fail:
2345 return NULL;
2346 }
2347
2348
2349 static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
2350 PyObject *resultobj;
2351 wxString *arg1 = 0 ;
2352 wxString result;
2353 bool temp1 = False ;
2354 PyObject * obj0 = 0 ;
2355 char *kwnames[] = {
2356 (char *) "in", NULL
2357 };
2358
2359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2360 {
2361 arg1 = wxString_in_helper(obj0);
2362 if (arg1 == NULL) SWIG_fail;
2363 temp1 = True;
2364 }
2365 {
2366 PyThreadState* __tstate = wxPyBeginAllowThreads();
2367 result = wxStripMenuCodes((wxString const &)*arg1);
2368
2369 wxPyEndAllowThreads(__tstate);
2370 if (PyErr_Occurred()) SWIG_fail;
2371 }
2372 {
2373 #if wxUSE_UNICODE
2374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2375 #else
2376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2377 #endif
2378 }
2379 {
2380 if (temp1)
2381 delete arg1;
2382 }
2383 return resultobj;
2384 fail:
2385 {
2386 if (temp1)
2387 delete arg1;
2388 }
2389 return NULL;
2390 }
2391
2392
2393 static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 wxString result;
2396 char *kwnames[] = {
2397 NULL
2398 };
2399
2400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2401 {
2402 PyThreadState* __tstate = wxPyBeginAllowThreads();
2403 result = wxGetEmailAddress();
2404
2405 wxPyEndAllowThreads(__tstate);
2406 if (PyErr_Occurred()) SWIG_fail;
2407 }
2408 {
2409 #if wxUSE_UNICODE
2410 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2411 #else
2412 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2413 #endif
2414 }
2415 return resultobj;
2416 fail:
2417 return NULL;
2418 }
2419
2420
2421 static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
2422 PyObject *resultobj;
2423 wxString result;
2424 char *kwnames[] = {
2425 NULL
2426 };
2427
2428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2429 {
2430 PyThreadState* __tstate = wxPyBeginAllowThreads();
2431 result = wxGetHostName();
2432
2433 wxPyEndAllowThreads(__tstate);
2434 if (PyErr_Occurred()) SWIG_fail;
2435 }
2436 {
2437 #if wxUSE_UNICODE
2438 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2439 #else
2440 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2441 #endif
2442 }
2443 return resultobj;
2444 fail:
2445 return NULL;
2446 }
2447
2448
2449 static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
2450 PyObject *resultobj;
2451 wxString result;
2452 char *kwnames[] = {
2453 NULL
2454 };
2455
2456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2457 {
2458 PyThreadState* __tstate = wxPyBeginAllowThreads();
2459 result = wxGetFullHostName();
2460
2461 wxPyEndAllowThreads(__tstate);
2462 if (PyErr_Occurred()) SWIG_fail;
2463 }
2464 {
2465 #if wxUSE_UNICODE
2466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2467 #else
2468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2469 #endif
2470 }
2471 return resultobj;
2472 fail:
2473 return NULL;
2474 }
2475
2476
2477 static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
2478 PyObject *resultobj;
2479 wxString result;
2480 char *kwnames[] = {
2481 NULL
2482 };
2483
2484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2485 {
2486 PyThreadState* __tstate = wxPyBeginAllowThreads();
2487 result = wxGetUserId();
2488
2489 wxPyEndAllowThreads(__tstate);
2490 if (PyErr_Occurred()) SWIG_fail;
2491 }
2492 {
2493 #if wxUSE_UNICODE
2494 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2495 #else
2496 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2497 #endif
2498 }
2499 return resultobj;
2500 fail:
2501 return NULL;
2502 }
2503
2504
2505 static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
2506 PyObject *resultobj;
2507 wxString result;
2508 char *kwnames[] = {
2509 NULL
2510 };
2511
2512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2513 {
2514 PyThreadState* __tstate = wxPyBeginAllowThreads();
2515 result = wxGetUserName();
2516
2517 wxPyEndAllowThreads(__tstate);
2518 if (PyErr_Occurred()) SWIG_fail;
2519 }
2520 {
2521 #if wxUSE_UNICODE
2522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2523 #else
2524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2525 #endif
2526 }
2527 return resultobj;
2528 fail:
2529 return NULL;
2530 }
2531
2532
2533 static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
2534 PyObject *resultobj;
2535 wxString result;
2536 char *kwnames[] = {
2537 NULL
2538 };
2539
2540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2541 {
2542 PyThreadState* __tstate = wxPyBeginAllowThreads();
2543 result = wxGetHomeDir();
2544
2545 wxPyEndAllowThreads(__tstate);
2546 if (PyErr_Occurred()) SWIG_fail;
2547 }
2548 {
2549 #if wxUSE_UNICODE
2550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2551 #else
2552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2553 #endif
2554 }
2555 return resultobj;
2556 fail:
2557 return NULL;
2558 }
2559
2560
2561 static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
2562 PyObject *resultobj;
2563 wxString const &arg1_defvalue = wxPyEmptyString ;
2564 wxString *arg1 = (wxString *) &arg1_defvalue ;
2565 wxString result;
2566 bool temp1 = False ;
2567 PyObject * obj0 = 0 ;
2568 char *kwnames[] = {
2569 (char *) "user", NULL
2570 };
2571
2572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2573 if (obj0) {
2574 {
2575 arg1 = wxString_in_helper(obj0);
2576 if (arg1 == NULL) SWIG_fail;
2577 temp1 = True;
2578 }
2579 }
2580 {
2581 PyThreadState* __tstate = wxPyBeginAllowThreads();
2582 result = wxGetUserHome((wxString const &)*arg1);
2583
2584 wxPyEndAllowThreads(__tstate);
2585 if (PyErr_Occurred()) SWIG_fail;
2586 }
2587 {
2588 #if wxUSE_UNICODE
2589 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2590 #else
2591 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2592 #endif
2593 }
2594 {
2595 if (temp1)
2596 delete arg1;
2597 }
2598 return resultobj;
2599 fail:
2600 {
2601 if (temp1)
2602 delete arg1;
2603 }
2604 return NULL;
2605 }
2606
2607
2608 static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
2609 PyObject *resultobj;
2610 unsigned long result;
2611 char *kwnames[] = {
2612 NULL
2613 };
2614
2615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2616 {
2617 PyThreadState* __tstate = wxPyBeginAllowThreads();
2618 result = (unsigned long)wxGetProcessId();
2619
2620 wxPyEndAllowThreads(__tstate);
2621 if (PyErr_Occurred()) SWIG_fail;
2622 }
2623 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2624 return resultobj;
2625 fail:
2626 return NULL;
2627 }
2628
2629
2630 static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
2631 PyObject *resultobj;
2632 char *kwnames[] = {
2633 NULL
2634 };
2635
2636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2637 {
2638 PyThreadState* __tstate = wxPyBeginAllowThreads();
2639 wxTrap();
2640
2641 wxPyEndAllowThreads(__tstate);
2642 if (PyErr_Occurred()) SWIG_fail;
2643 }
2644 Py_INCREF(Py_None); resultobj = Py_None;
2645 return resultobj;
2646 fail:
2647 return NULL;
2648 }
2649
2650
2651 static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
2652 PyObject *resultobj;
2653 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2654 wxString *arg1 = (wxString *) &arg1_defvalue ;
2655 wxString const &arg2_defvalue = wxPyEmptyString ;
2656 wxString *arg2 = (wxString *) &arg2_defvalue ;
2657 wxString const &arg3_defvalue = wxPyEmptyString ;
2658 wxString *arg3 = (wxString *) &arg3_defvalue ;
2659 wxString const &arg4_defvalue = wxPyEmptyString ;
2660 wxString *arg4 = (wxString *) &arg4_defvalue ;
2661 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2662 wxString *arg5 = (wxString *) &arg5_defvalue ;
2663 int arg6 = (int) 0 ;
2664 wxWindow *arg7 = (wxWindow *) NULL ;
2665 int arg8 = (int) -1 ;
2666 int arg9 = (int) -1 ;
2667 wxString result;
2668 bool temp1 = False ;
2669 bool temp2 = False ;
2670 bool temp3 = False ;
2671 bool temp4 = False ;
2672 bool temp5 = False ;
2673 PyObject * obj0 = 0 ;
2674 PyObject * obj1 = 0 ;
2675 PyObject * obj2 = 0 ;
2676 PyObject * obj3 = 0 ;
2677 PyObject * obj4 = 0 ;
2678 PyObject * obj5 = 0 ;
2679 PyObject * obj6 = 0 ;
2680 PyObject * obj7 = 0 ;
2681 PyObject * obj8 = 0 ;
2682 char *kwnames[] = {
2683 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2684 };
2685
2686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2687 if (obj0) {
2688 {
2689 arg1 = wxString_in_helper(obj0);
2690 if (arg1 == NULL) SWIG_fail;
2691 temp1 = True;
2692 }
2693 }
2694 if (obj1) {
2695 {
2696 arg2 = wxString_in_helper(obj1);
2697 if (arg2 == NULL) SWIG_fail;
2698 temp2 = True;
2699 }
2700 }
2701 if (obj2) {
2702 {
2703 arg3 = wxString_in_helper(obj2);
2704 if (arg3 == NULL) SWIG_fail;
2705 temp3 = True;
2706 }
2707 }
2708 if (obj3) {
2709 {
2710 arg4 = wxString_in_helper(obj3);
2711 if (arg4 == NULL) SWIG_fail;
2712 temp4 = True;
2713 }
2714 }
2715 if (obj4) {
2716 {
2717 arg5 = wxString_in_helper(obj4);
2718 if (arg5 == NULL) SWIG_fail;
2719 temp5 = True;
2720 }
2721 }
2722 if (obj5) {
2723 arg6 = (int) SWIG_AsInt(obj5);
2724 if (PyErr_Occurred()) SWIG_fail;
2725 }
2726 if (obj6) {
2727 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2729 }
2730 if (obj7) {
2731 arg8 = (int) SWIG_AsInt(obj7);
2732 if (PyErr_Occurred()) SWIG_fail;
2733 }
2734 if (obj8) {
2735 arg9 = (int) SWIG_AsInt(obj8);
2736 if (PyErr_Occurred()) SWIG_fail;
2737 }
2738 {
2739 PyThreadState* __tstate = wxPyBeginAllowThreads();
2740 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2741
2742 wxPyEndAllowThreads(__tstate);
2743 if (PyErr_Occurred()) SWIG_fail;
2744 }
2745 {
2746 #if wxUSE_UNICODE
2747 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2748 #else
2749 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2750 #endif
2751 }
2752 {
2753 if (temp1)
2754 delete arg1;
2755 }
2756 {
2757 if (temp2)
2758 delete arg2;
2759 }
2760 {
2761 if (temp3)
2762 delete arg3;
2763 }
2764 {
2765 if (temp4)
2766 delete arg4;
2767 }
2768 {
2769 if (temp5)
2770 delete arg5;
2771 }
2772 return resultobj;
2773 fail:
2774 {
2775 if (temp1)
2776 delete arg1;
2777 }
2778 {
2779 if (temp2)
2780 delete arg2;
2781 }
2782 {
2783 if (temp3)
2784 delete arg3;
2785 }
2786 {
2787 if (temp4)
2788 delete arg4;
2789 }
2790 {
2791 if (temp5)
2792 delete arg5;
2793 }
2794 return NULL;
2795 }
2796
2797
2798 static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
2799 PyObject *resultobj;
2800 wxString *arg1 = 0 ;
2801 wxString *arg2 = 0 ;
2802 wxString const &arg3_defvalue = wxPyEmptyString ;
2803 wxString *arg3 = (wxString *) &arg3_defvalue ;
2804 wxWindow *arg4 = (wxWindow *) NULL ;
2805 wxString result;
2806 bool temp1 = False ;
2807 bool temp2 = False ;
2808 bool temp3 = False ;
2809 PyObject * obj0 = 0 ;
2810 PyObject * obj1 = 0 ;
2811 PyObject * obj2 = 0 ;
2812 PyObject * obj3 = 0 ;
2813 char *kwnames[] = {
2814 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2815 };
2816
2817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2818 {
2819 arg1 = wxString_in_helper(obj0);
2820 if (arg1 == NULL) SWIG_fail;
2821 temp1 = True;
2822 }
2823 {
2824 arg2 = wxString_in_helper(obj1);
2825 if (arg2 == NULL) SWIG_fail;
2826 temp2 = True;
2827 }
2828 if (obj2) {
2829 {
2830 arg3 = wxString_in_helper(obj2);
2831 if (arg3 == NULL) SWIG_fail;
2832 temp3 = True;
2833 }
2834 }
2835 if (obj3) {
2836 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2838 }
2839 {
2840 PyThreadState* __tstate = wxPyBeginAllowThreads();
2841 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2842
2843 wxPyEndAllowThreads(__tstate);
2844 if (PyErr_Occurred()) SWIG_fail;
2845 }
2846 {
2847 #if wxUSE_UNICODE
2848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2849 #else
2850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2851 #endif
2852 }
2853 {
2854 if (temp1)
2855 delete arg1;
2856 }
2857 {
2858 if (temp2)
2859 delete arg2;
2860 }
2861 {
2862 if (temp3)
2863 delete arg3;
2864 }
2865 return resultobj;
2866 fail:
2867 {
2868 if (temp1)
2869 delete arg1;
2870 }
2871 {
2872 if (temp2)
2873 delete arg2;
2874 }
2875 {
2876 if (temp3)
2877 delete arg3;
2878 }
2879 return NULL;
2880 }
2881
2882
2883 static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
2884 PyObject *resultobj;
2885 wxString *arg1 = 0 ;
2886 wxString *arg2 = 0 ;
2887 wxString const &arg3_defvalue = wxPyEmptyString ;
2888 wxString *arg3 = (wxString *) &arg3_defvalue ;
2889 wxWindow *arg4 = (wxWindow *) NULL ;
2890 wxString result;
2891 bool temp1 = False ;
2892 bool temp2 = False ;
2893 bool temp3 = False ;
2894 PyObject * obj0 = 0 ;
2895 PyObject * obj1 = 0 ;
2896 PyObject * obj2 = 0 ;
2897 PyObject * obj3 = 0 ;
2898 char *kwnames[] = {
2899 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2900 };
2901
2902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2903 {
2904 arg1 = wxString_in_helper(obj0);
2905 if (arg1 == NULL) SWIG_fail;
2906 temp1 = True;
2907 }
2908 {
2909 arg2 = wxString_in_helper(obj1);
2910 if (arg2 == NULL) SWIG_fail;
2911 temp2 = True;
2912 }
2913 if (obj2) {
2914 {
2915 arg3 = wxString_in_helper(obj2);
2916 if (arg3 == NULL) SWIG_fail;
2917 temp3 = True;
2918 }
2919 }
2920 if (obj3) {
2921 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2923 }
2924 {
2925 PyThreadState* __tstate = wxPyBeginAllowThreads();
2926 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2927
2928 wxPyEndAllowThreads(__tstate);
2929 if (PyErr_Occurred()) SWIG_fail;
2930 }
2931 {
2932 #if wxUSE_UNICODE
2933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2934 #else
2935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2936 #endif
2937 }
2938 {
2939 if (temp1)
2940 delete arg1;
2941 }
2942 {
2943 if (temp2)
2944 delete arg2;
2945 }
2946 {
2947 if (temp3)
2948 delete arg3;
2949 }
2950 return resultobj;
2951 fail:
2952 {
2953 if (temp1)
2954 delete arg1;
2955 }
2956 {
2957 if (temp2)
2958 delete arg2;
2959 }
2960 {
2961 if (temp3)
2962 delete arg3;
2963 }
2964 return NULL;
2965 }
2966
2967
2968 static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
2969 PyObject *resultobj;
2970 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
2971 wxString *arg1 = (wxString *) &arg1_defvalue ;
2972 wxString const &arg2_defvalue = wxPyEmptyString ;
2973 wxString *arg2 = (wxString *) &arg2_defvalue ;
2974 long arg3 = (long) wxDD_DEFAULT_STYLE ;
2975 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2976 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2977 wxWindow *arg5 = (wxWindow *) NULL ;
2978 wxString result;
2979 bool temp1 = False ;
2980 bool temp2 = False ;
2981 wxPoint temp4 ;
2982 PyObject * obj0 = 0 ;
2983 PyObject * obj1 = 0 ;
2984 PyObject * obj2 = 0 ;
2985 PyObject * obj3 = 0 ;
2986 PyObject * obj4 = 0 ;
2987 char *kwnames[] = {
2988 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
2989 };
2990
2991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2992 if (obj0) {
2993 {
2994 arg1 = wxString_in_helper(obj0);
2995 if (arg1 == NULL) SWIG_fail;
2996 temp1 = True;
2997 }
2998 }
2999 if (obj1) {
3000 {
3001 arg2 = wxString_in_helper(obj1);
3002 if (arg2 == NULL) SWIG_fail;
3003 temp2 = True;
3004 }
3005 }
3006 if (obj2) {
3007 arg3 = (long) SWIG_AsLong(obj2);
3008 if (PyErr_Occurred()) SWIG_fail;
3009 }
3010 if (obj3) {
3011 {
3012 arg4 = &temp4;
3013 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3014 }
3015 }
3016 if (obj4) {
3017 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3019 }
3020 {
3021 PyThreadState* __tstate = wxPyBeginAllowThreads();
3022 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3023
3024 wxPyEndAllowThreads(__tstate);
3025 if (PyErr_Occurred()) SWIG_fail;
3026 }
3027 {
3028 #if wxUSE_UNICODE
3029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3030 #else
3031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3032 #endif
3033 }
3034 {
3035 if (temp1)
3036 delete arg1;
3037 }
3038 {
3039 if (temp2)
3040 delete arg2;
3041 }
3042 return resultobj;
3043 fail:
3044 {
3045 if (temp1)
3046 delete arg1;
3047 }
3048 {
3049 if (temp2)
3050 delete arg2;
3051 }
3052 return NULL;
3053 }
3054
3055
3056 static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3057 PyObject *resultobj;
3058 wxString *arg1 = 0 ;
3059 wxString const &arg2_defvalue = wxPyEmptyString ;
3060 wxString *arg2 = (wxString *) &arg2_defvalue ;
3061 wxString const &arg3_defvalue = wxPyEmptyString ;
3062 wxString *arg3 = (wxString *) &arg3_defvalue ;
3063 wxWindow *arg4 = (wxWindow *) NULL ;
3064 int arg5 = (int) -1 ;
3065 int arg6 = (int) -1 ;
3066 bool arg7 = (bool) True ;
3067 wxString result;
3068 bool temp1 = False ;
3069 bool temp2 = False ;
3070 bool temp3 = False ;
3071 PyObject * obj0 = 0 ;
3072 PyObject * obj1 = 0 ;
3073 PyObject * obj2 = 0 ;
3074 PyObject * obj3 = 0 ;
3075 PyObject * obj4 = 0 ;
3076 PyObject * obj5 = 0 ;
3077 PyObject * obj6 = 0 ;
3078 char *kwnames[] = {
3079 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3080 };
3081
3082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3083 {
3084 arg1 = wxString_in_helper(obj0);
3085 if (arg1 == NULL) SWIG_fail;
3086 temp1 = True;
3087 }
3088 if (obj1) {
3089 {
3090 arg2 = wxString_in_helper(obj1);
3091 if (arg2 == NULL) SWIG_fail;
3092 temp2 = True;
3093 }
3094 }
3095 if (obj2) {
3096 {
3097 arg3 = wxString_in_helper(obj2);
3098 if (arg3 == NULL) SWIG_fail;
3099 temp3 = True;
3100 }
3101 }
3102 if (obj3) {
3103 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3105 }
3106 if (obj4) {
3107 arg5 = (int) SWIG_AsInt(obj4);
3108 if (PyErr_Occurred()) SWIG_fail;
3109 }
3110 if (obj5) {
3111 arg6 = (int) SWIG_AsInt(obj5);
3112 if (PyErr_Occurred()) SWIG_fail;
3113 }
3114 if (obj6) {
3115 arg7 = (bool) SWIG_AsBool(obj6);
3116 if (PyErr_Occurred()) SWIG_fail;
3117 }
3118 {
3119 PyThreadState* __tstate = wxPyBeginAllowThreads();
3120 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3121
3122 wxPyEndAllowThreads(__tstate);
3123 if (PyErr_Occurred()) SWIG_fail;
3124 }
3125 {
3126 #if wxUSE_UNICODE
3127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3128 #else
3129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3130 #endif
3131 }
3132 {
3133 if (temp1)
3134 delete arg1;
3135 }
3136 {
3137 if (temp2)
3138 delete arg2;
3139 }
3140 {
3141 if (temp3)
3142 delete arg3;
3143 }
3144 return resultobj;
3145 fail:
3146 {
3147 if (temp1)
3148 delete arg1;
3149 }
3150 {
3151 if (temp2)
3152 delete arg2;
3153 }
3154 {
3155 if (temp3)
3156 delete arg3;
3157 }
3158 return NULL;
3159 }
3160
3161
3162 static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3163 PyObject *resultobj;
3164 wxString *arg1 = 0 ;
3165 wxString const &arg2_defvalue = wxPyEmptyString ;
3166 wxString *arg2 = (wxString *) &arg2_defvalue ;
3167 wxString const &arg3_defvalue = wxPyEmptyString ;
3168 wxString *arg3 = (wxString *) &arg3_defvalue ;
3169 wxWindow *arg4 = (wxWindow *) NULL ;
3170 wxString result;
3171 bool temp1 = False ;
3172 bool temp2 = False ;
3173 bool temp3 = False ;
3174 PyObject * obj0 = 0 ;
3175 PyObject * obj1 = 0 ;
3176 PyObject * obj2 = 0 ;
3177 PyObject * obj3 = 0 ;
3178 char *kwnames[] = {
3179 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3180 };
3181
3182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3183 {
3184 arg1 = wxString_in_helper(obj0);
3185 if (arg1 == NULL) SWIG_fail;
3186 temp1 = True;
3187 }
3188 if (obj1) {
3189 {
3190 arg2 = wxString_in_helper(obj1);
3191 if (arg2 == NULL) SWIG_fail;
3192 temp2 = True;
3193 }
3194 }
3195 if (obj2) {
3196 {
3197 arg3 = wxString_in_helper(obj2);
3198 if (arg3 == NULL) SWIG_fail;
3199 temp3 = True;
3200 }
3201 }
3202 if (obj3) {
3203 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3205 }
3206 {
3207 PyThreadState* __tstate = wxPyBeginAllowThreads();
3208 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3209
3210 wxPyEndAllowThreads(__tstate);
3211 if (PyErr_Occurred()) SWIG_fail;
3212 }
3213 {
3214 #if wxUSE_UNICODE
3215 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3216 #else
3217 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3218 #endif
3219 }
3220 {
3221 if (temp1)
3222 delete arg1;
3223 }
3224 {
3225 if (temp2)
3226 delete arg2;
3227 }
3228 {
3229 if (temp3)
3230 delete arg3;
3231 }
3232 return resultobj;
3233 fail:
3234 {
3235 if (temp1)
3236 delete arg1;
3237 }
3238 {
3239 if (temp2)
3240 delete arg2;
3241 }
3242 {
3243 if (temp3)
3244 delete arg3;
3245 }
3246 return NULL;
3247 }
3248
3249
3250 static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
3251 PyObject *resultobj;
3252 wxString *arg1 = 0 ;
3253 wxString *arg2 = 0 ;
3254 int arg3 ;
3255 wxString *arg4 = (wxString *) 0 ;
3256 wxWindow *arg5 = (wxWindow *) NULL ;
3257 int arg6 = (int) -1 ;
3258 int arg7 = (int) -1 ;
3259 bool arg8 = (bool) True ;
3260 int arg9 = (int) 150 ;
3261 int arg10 = (int) 200 ;
3262 wxString result;
3263 bool temp1 = False ;
3264 bool temp2 = False ;
3265 PyObject * obj0 = 0 ;
3266 PyObject * obj1 = 0 ;
3267 PyObject * obj2 = 0 ;
3268 PyObject * obj3 = 0 ;
3269 PyObject * obj4 = 0 ;
3270 PyObject * obj5 = 0 ;
3271 PyObject * obj6 = 0 ;
3272 PyObject * obj7 = 0 ;
3273 PyObject * obj8 = 0 ;
3274 char *kwnames[] = {
3275 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3276 };
3277
3278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3279 {
3280 arg1 = wxString_in_helper(obj0);
3281 if (arg1 == NULL) SWIG_fail;
3282 temp1 = True;
3283 }
3284 {
3285 arg2 = wxString_in_helper(obj1);
3286 if (arg2 == NULL) SWIG_fail;
3287 temp2 = True;
3288 }
3289 {
3290 arg3 = PyList_Size(obj2);
3291 arg4 = wxString_LIST_helper(obj2);
3292 if (arg4 == NULL) SWIG_fail;
3293 }
3294 if (obj3) {
3295 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3297 }
3298 if (obj4) {
3299 arg6 = (int) SWIG_AsInt(obj4);
3300 if (PyErr_Occurred()) SWIG_fail;
3301 }
3302 if (obj5) {
3303 arg7 = (int) SWIG_AsInt(obj5);
3304 if (PyErr_Occurred()) SWIG_fail;
3305 }
3306 if (obj6) {
3307 arg8 = (bool) SWIG_AsBool(obj6);
3308 if (PyErr_Occurred()) SWIG_fail;
3309 }
3310 if (obj7) {
3311 arg9 = (int) SWIG_AsInt(obj7);
3312 if (PyErr_Occurred()) SWIG_fail;
3313 }
3314 if (obj8) {
3315 arg10 = (int) SWIG_AsInt(obj8);
3316 if (PyErr_Occurred()) SWIG_fail;
3317 }
3318 {
3319 PyThreadState* __tstate = wxPyBeginAllowThreads();
3320 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3321
3322 wxPyEndAllowThreads(__tstate);
3323 if (PyErr_Occurred()) SWIG_fail;
3324 }
3325 {
3326 #if wxUSE_UNICODE
3327 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3328 #else
3329 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3330 #endif
3331 }
3332 {
3333 if (temp1)
3334 delete arg1;
3335 }
3336 {
3337 if (temp2)
3338 delete arg2;
3339 }
3340 {
3341 if (arg4) delete [] arg4;
3342 }
3343 return resultobj;
3344 fail:
3345 {
3346 if (temp1)
3347 delete arg1;
3348 }
3349 {
3350 if (temp2)
3351 delete arg2;
3352 }
3353 {
3354 if (arg4) delete [] arg4;
3355 }
3356 return NULL;
3357 }
3358
3359
3360 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
3361 PyObject *resultobj;
3362 wxString *arg1 = 0 ;
3363 wxString *arg2 = 0 ;
3364 int arg3 ;
3365 wxString *arg4 = (wxString *) 0 ;
3366 wxWindow *arg5 = (wxWindow *) NULL ;
3367 int arg6 = (int) -1 ;
3368 int arg7 = (int) -1 ;
3369 bool arg8 = (bool) True ;
3370 int arg9 = (int) 150 ;
3371 int arg10 = (int) 200 ;
3372 int result;
3373 bool temp1 = False ;
3374 bool temp2 = False ;
3375 PyObject * obj0 = 0 ;
3376 PyObject * obj1 = 0 ;
3377 PyObject * obj2 = 0 ;
3378 PyObject * obj3 = 0 ;
3379 PyObject * obj4 = 0 ;
3380 PyObject * obj5 = 0 ;
3381 PyObject * obj6 = 0 ;
3382 PyObject * obj7 = 0 ;
3383 PyObject * obj8 = 0 ;
3384 char *kwnames[] = {
3385 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3386 };
3387
3388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3389 {
3390 arg1 = wxString_in_helper(obj0);
3391 if (arg1 == NULL) SWIG_fail;
3392 temp1 = True;
3393 }
3394 {
3395 arg2 = wxString_in_helper(obj1);
3396 if (arg2 == NULL) SWIG_fail;
3397 temp2 = True;
3398 }
3399 {
3400 arg3 = PyList_Size(obj2);
3401 arg4 = wxString_LIST_helper(obj2);
3402 if (arg4 == NULL) SWIG_fail;
3403 }
3404 if (obj3) {
3405 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3407 }
3408 if (obj4) {
3409 arg6 = (int) SWIG_AsInt(obj4);
3410 if (PyErr_Occurred()) SWIG_fail;
3411 }
3412 if (obj5) {
3413 arg7 = (int) SWIG_AsInt(obj5);
3414 if (PyErr_Occurred()) SWIG_fail;
3415 }
3416 if (obj6) {
3417 arg8 = (bool) SWIG_AsBool(obj6);
3418 if (PyErr_Occurred()) SWIG_fail;
3419 }
3420 if (obj7) {
3421 arg9 = (int) SWIG_AsInt(obj7);
3422 if (PyErr_Occurred()) SWIG_fail;
3423 }
3424 if (obj8) {
3425 arg10 = (int) SWIG_AsInt(obj8);
3426 if (PyErr_Occurred()) SWIG_fail;
3427 }
3428 {
3429 PyThreadState* __tstate = wxPyBeginAllowThreads();
3430 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3431
3432 wxPyEndAllowThreads(__tstate);
3433 if (PyErr_Occurred()) SWIG_fail;
3434 }
3435 resultobj = SWIG_FromInt((int)result);
3436 {
3437 if (temp1)
3438 delete arg1;
3439 }
3440 {
3441 if (temp2)
3442 delete arg2;
3443 }
3444 {
3445 if (arg4) delete [] arg4;
3446 }
3447 return resultobj;
3448 fail:
3449 {
3450 if (temp1)
3451 delete arg1;
3452 }
3453 {
3454 if (temp2)
3455 delete arg2;
3456 }
3457 {
3458 if (arg4) delete [] arg4;
3459 }
3460 return NULL;
3461 }
3462
3463
3464 static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
3465 PyObject *resultobj;
3466 wxString *arg1 = 0 ;
3467 wxString const &arg2_defvalue = wxPyEmptyString ;
3468 wxString *arg2 = (wxString *) &arg2_defvalue ;
3469 int arg3 = (int) wxOK|wxCENTRE ;
3470 wxWindow *arg4 = (wxWindow *) NULL ;
3471 int arg5 = (int) -1 ;
3472 int arg6 = (int) -1 ;
3473 int result;
3474 bool temp1 = False ;
3475 bool temp2 = False ;
3476 PyObject * obj0 = 0 ;
3477 PyObject * obj1 = 0 ;
3478 PyObject * obj2 = 0 ;
3479 PyObject * obj3 = 0 ;
3480 PyObject * obj4 = 0 ;
3481 PyObject * obj5 = 0 ;
3482 char *kwnames[] = {
3483 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3484 };
3485
3486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3487 {
3488 arg1 = wxString_in_helper(obj0);
3489 if (arg1 == NULL) SWIG_fail;
3490 temp1 = True;
3491 }
3492 if (obj1) {
3493 {
3494 arg2 = wxString_in_helper(obj1);
3495 if (arg2 == NULL) SWIG_fail;
3496 temp2 = True;
3497 }
3498 }
3499 if (obj2) {
3500 arg3 = (int) SWIG_AsInt(obj2);
3501 if (PyErr_Occurred()) SWIG_fail;
3502 }
3503 if (obj3) {
3504 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3506 }
3507 if (obj4) {
3508 arg5 = (int) SWIG_AsInt(obj4);
3509 if (PyErr_Occurred()) SWIG_fail;
3510 }
3511 if (obj5) {
3512 arg6 = (int) SWIG_AsInt(obj5);
3513 if (PyErr_Occurred()) SWIG_fail;
3514 }
3515 {
3516 PyThreadState* __tstate = wxPyBeginAllowThreads();
3517 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3518
3519 wxPyEndAllowThreads(__tstate);
3520 if (PyErr_Occurred()) SWIG_fail;
3521 }
3522 resultobj = SWIG_FromInt((int)result);
3523 {
3524 if (temp1)
3525 delete arg1;
3526 }
3527 {
3528 if (temp2)
3529 delete arg2;
3530 }
3531 return resultobj;
3532 fail:
3533 {
3534 if (temp1)
3535 delete arg1;
3536 }
3537 {
3538 if (temp2)
3539 delete arg2;
3540 }
3541 return NULL;
3542 }
3543
3544
3545 static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3546 PyObject *resultobj;
3547 wxString *arg1 = 0 ;
3548 wxString *arg2 = 0 ;
3549 wxString *arg3 = 0 ;
3550 long arg4 ;
3551 long arg5 = (long) 0 ;
3552 long arg6 = (long) 100 ;
3553 wxWindow *arg7 = (wxWindow *) NULL ;
3554 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3555 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3556 long result;
3557 bool temp1 = False ;
3558 bool temp2 = False ;
3559 bool temp3 = False ;
3560 wxPoint temp8 ;
3561 PyObject * obj0 = 0 ;
3562 PyObject * obj1 = 0 ;
3563 PyObject * obj2 = 0 ;
3564 PyObject * obj3 = 0 ;
3565 PyObject * obj4 = 0 ;
3566 PyObject * obj5 = 0 ;
3567 PyObject * obj6 = 0 ;
3568 PyObject * obj7 = 0 ;
3569 char *kwnames[] = {
3570 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3571 };
3572
3573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3574 {
3575 arg1 = wxString_in_helper(obj0);
3576 if (arg1 == NULL) SWIG_fail;
3577 temp1 = True;
3578 }
3579 {
3580 arg2 = wxString_in_helper(obj1);
3581 if (arg2 == NULL) SWIG_fail;
3582 temp2 = True;
3583 }
3584 {
3585 arg3 = wxString_in_helper(obj2);
3586 if (arg3 == NULL) SWIG_fail;
3587 temp3 = True;
3588 }
3589 arg4 = (long) SWIG_AsLong(obj3);
3590 if (PyErr_Occurred()) SWIG_fail;
3591 if (obj4) {
3592 arg5 = (long) SWIG_AsLong(obj4);
3593 if (PyErr_Occurred()) SWIG_fail;
3594 }
3595 if (obj5) {
3596 arg6 = (long) SWIG_AsLong(obj5);
3597 if (PyErr_Occurred()) SWIG_fail;
3598 }
3599 if (obj6) {
3600 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3602 }
3603 if (obj7) {
3604 {
3605 arg8 = &temp8;
3606 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3607 }
3608 }
3609 {
3610 PyThreadState* __tstate = wxPyBeginAllowThreads();
3611 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3612
3613 wxPyEndAllowThreads(__tstate);
3614 if (PyErr_Occurred()) SWIG_fail;
3615 }
3616 resultobj = SWIG_FromLong((long)result);
3617 {
3618 if (temp1)
3619 delete arg1;
3620 }
3621 {
3622 if (temp2)
3623 delete arg2;
3624 }
3625 {
3626 if (temp3)
3627 delete arg3;
3628 }
3629 return resultobj;
3630 fail:
3631 {
3632 if (temp1)
3633 delete arg1;
3634 }
3635 {
3636 if (temp2)
3637 delete arg2;
3638 }
3639 {
3640 if (temp3)
3641 delete arg3;
3642 }
3643 return NULL;
3644 }
3645
3646
3647 static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
3648 PyObject *resultobj;
3649 bool result;
3650 char *kwnames[] = {
3651 NULL
3652 };
3653
3654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3655 {
3656 PyThreadState* __tstate = wxPyBeginAllowThreads();
3657 result = (bool)wxColourDisplay();
3658
3659 wxPyEndAllowThreads(__tstate);
3660 if (PyErr_Occurred()) SWIG_fail;
3661 }
3662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3663 return resultobj;
3664 fail:
3665 return NULL;
3666 }
3667
3668
3669 static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3670 PyObject *resultobj;
3671 int result;
3672 char *kwnames[] = {
3673 NULL
3674 };
3675
3676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3677 {
3678 PyThreadState* __tstate = wxPyBeginAllowThreads();
3679 result = (int)wxDisplayDepth();
3680
3681 wxPyEndAllowThreads(__tstate);
3682 if (PyErr_Occurred()) SWIG_fail;
3683 }
3684 resultobj = SWIG_FromInt((int)result);
3685 return resultobj;
3686 fail:
3687 return NULL;
3688 }
3689
3690
3691 static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
3692 PyObject *resultobj;
3693 int result;
3694 char *kwnames[] = {
3695 NULL
3696 };
3697
3698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3699 {
3700 PyThreadState* __tstate = wxPyBeginAllowThreads();
3701 result = (int)wxGetDisplayDepth();
3702
3703 wxPyEndAllowThreads(__tstate);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 }
3706 resultobj = SWIG_FromInt((int)result);
3707 return resultobj;
3708 fail:
3709 return NULL;
3710 }
3711
3712
3713 static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
3714 PyObject *resultobj;
3715 int *arg1 = (int *) 0 ;
3716 int *arg2 = (int *) 0 ;
3717 int temp1 ;
3718 int temp2 ;
3719 char *kwnames[] = {
3720 NULL
3721 };
3722
3723 arg1 = &temp1;
3724 arg2 = &temp2;
3725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3726 {
3727 PyThreadState* __tstate = wxPyBeginAllowThreads();
3728 wxDisplaySize(arg1,arg2);
3729
3730 wxPyEndAllowThreads(__tstate);
3731 if (PyErr_Occurred()) SWIG_fail;
3732 }
3733 Py_INCREF(Py_None); resultobj = Py_None;
3734 {
3735 PyObject *o = PyInt_FromLong((long) (*arg1));
3736 resultobj = t_output_helper(resultobj,o);
3737 }
3738 {
3739 PyObject *o = PyInt_FromLong((long) (*arg2));
3740 resultobj = t_output_helper(resultobj,o);
3741 }
3742 return resultobj;
3743 fail:
3744 return NULL;
3745 }
3746
3747
3748 static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
3749 PyObject *resultobj;
3750 wxSize result;
3751 char *kwnames[] = {
3752 NULL
3753 };
3754
3755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3756 {
3757 PyThreadState* __tstate = wxPyBeginAllowThreads();
3758 result = wxGetDisplaySize();
3759
3760 wxPyEndAllowThreads(__tstate);
3761 if (PyErr_Occurred()) SWIG_fail;
3762 }
3763 {
3764 wxSize * resultptr;
3765 resultptr = new wxSize((wxSize &) result);
3766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3767 }
3768 return resultobj;
3769 fail:
3770 return NULL;
3771 }
3772
3773
3774 static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
3775 PyObject *resultobj;
3776 int *arg1 = (int *) 0 ;
3777 int *arg2 = (int *) 0 ;
3778 int temp1 ;
3779 int temp2 ;
3780 char *kwnames[] = {
3781 NULL
3782 };
3783
3784 arg1 = &temp1;
3785 arg2 = &temp2;
3786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3787 {
3788 PyThreadState* __tstate = wxPyBeginAllowThreads();
3789 wxDisplaySizeMM(arg1,arg2);
3790
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) SWIG_fail;
3793 }
3794 Py_INCREF(Py_None); resultobj = Py_None;
3795 {
3796 PyObject *o = PyInt_FromLong((long) (*arg1));
3797 resultobj = t_output_helper(resultobj,o);
3798 }
3799 {
3800 PyObject *o = PyInt_FromLong((long) (*arg2));
3801 resultobj = t_output_helper(resultobj,o);
3802 }
3803 return resultobj;
3804 fail:
3805 return NULL;
3806 }
3807
3808
3809 static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
3810 PyObject *resultobj;
3811 wxSize result;
3812 char *kwnames[] = {
3813 NULL
3814 };
3815
3816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3817 {
3818 PyThreadState* __tstate = wxPyBeginAllowThreads();
3819 result = wxGetDisplaySizeMM();
3820
3821 wxPyEndAllowThreads(__tstate);
3822 if (PyErr_Occurred()) SWIG_fail;
3823 }
3824 {
3825 wxSize * resultptr;
3826 resultptr = new wxSize((wxSize &) result);
3827 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3828 }
3829 return resultobj;
3830 fail:
3831 return NULL;
3832 }
3833
3834
3835 static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
3836 PyObject *resultobj;
3837 int *arg1 = (int *) 0 ;
3838 int *arg2 = (int *) 0 ;
3839 int *arg3 = (int *) 0 ;
3840 int *arg4 = (int *) 0 ;
3841 int temp1 ;
3842 int temp2 ;
3843 int temp3 ;
3844 int temp4 ;
3845 char *kwnames[] = {
3846 NULL
3847 };
3848
3849 arg1 = &temp1;
3850 arg2 = &temp2;
3851 arg3 = &temp3;
3852 arg4 = &temp4;
3853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3854 {
3855 PyThreadState* __tstate = wxPyBeginAllowThreads();
3856 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3857
3858 wxPyEndAllowThreads(__tstate);
3859 if (PyErr_Occurred()) SWIG_fail;
3860 }
3861 Py_INCREF(Py_None); resultobj = Py_None;
3862 {
3863 PyObject *o = PyInt_FromLong((long) (*arg1));
3864 resultobj = t_output_helper(resultobj,o);
3865 }
3866 {
3867 PyObject *o = PyInt_FromLong((long) (*arg2));
3868 resultobj = t_output_helper(resultobj,o);
3869 }
3870 {
3871 PyObject *o = PyInt_FromLong((long) (*arg3));
3872 resultobj = t_output_helper(resultobj,o);
3873 }
3874 {
3875 PyObject *o = PyInt_FromLong((long) (*arg4));
3876 resultobj = t_output_helper(resultobj,o);
3877 }
3878 return resultobj;
3879 fail:
3880 return NULL;
3881 }
3882
3883
3884 static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
3885 PyObject *resultobj;
3886 wxRect result;
3887 char *kwnames[] = {
3888 NULL
3889 };
3890
3891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3892 {
3893 PyThreadState* __tstate = wxPyBeginAllowThreads();
3894 result = wxGetClientDisplayRect();
3895
3896 wxPyEndAllowThreads(__tstate);
3897 if (PyErr_Occurred()) SWIG_fail;
3898 }
3899 {
3900 wxRect * resultptr;
3901 resultptr = new wxRect((wxRect &) result);
3902 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
3903 }
3904 return resultobj;
3905 fail:
3906 return NULL;
3907 }
3908
3909
3910 static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
3911 PyObject *resultobj;
3912 wxCursor *arg1 = 0 ;
3913 PyObject * obj0 = 0 ;
3914 char *kwnames[] = {
3915 (char *) "cursor", NULL
3916 };
3917
3918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
3919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3920 SWIG_POINTER_EXCEPTION | 0)) == -1)
3921 SWIG_fail;
3922 if (arg1 == NULL) {
3923 PyErr_SetString(PyExc_TypeError,"null reference");
3924 SWIG_fail;
3925 }
3926 {
3927 PyThreadState* __tstate = wxPyBeginAllowThreads();
3928 wxSetCursor(*arg1);
3929
3930 wxPyEndAllowThreads(__tstate);
3931 if (PyErr_Occurred()) SWIG_fail;
3932 }
3933 Py_INCREF(Py_None); resultobj = Py_None;
3934 return resultobj;
3935 fail:
3936 return NULL;
3937 }
3938
3939
3940 static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
3941 PyObject *resultobj;
3942 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
3943 PyObject * obj0 = 0 ;
3944 char *kwnames[] = {
3945 (char *) "cursor", NULL
3946 };
3947
3948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
3949 if (obj0) {
3950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3952 }
3953 {
3954 PyThreadState* __tstate = wxPyBeginAllowThreads();
3955 wxBeginBusyCursor(arg1);
3956
3957 wxPyEndAllowThreads(__tstate);
3958 if (PyErr_Occurred()) SWIG_fail;
3959 }
3960 Py_INCREF(Py_None); resultobj = Py_None;
3961 return resultobj;
3962 fail:
3963 return NULL;
3964 }
3965
3966
3967 static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
3968 PyObject *resultobj;
3969 wxWindow *result;
3970 char *kwnames[] = {
3971 NULL
3972 };
3973
3974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
3975 {
3976 PyThreadState* __tstate = wxPyBeginAllowThreads();
3977 result = (wxWindow *)wxGetActiveWindow();
3978
3979 wxPyEndAllowThreads(__tstate);
3980 if (PyErr_Occurred()) SWIG_fail;
3981 }
3982 {
3983 resultobj = wxPyMake_wxObject(result);
3984 }
3985 return resultobj;
3986 fail:
3987 return NULL;
3988 }
3989
3990
3991 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3992 PyObject *resultobj;
3993 wxPoint *arg1 = 0 ;
3994 wxWindow *result;
3995 wxPoint temp1 ;
3996 PyObject * obj0 = 0 ;
3997 char *kwnames[] = {
3998 (char *) "pt", NULL
3999 };
4000
4001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4002 {
4003 arg1 = &temp1;
4004 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4005 }
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 {
4014 resultobj = wxPyMake_wxObject(result);
4015 }
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj;
4024 wxPoint *arg1 = 0 ;
4025 wxWindow *result;
4026 wxPoint temp1 ;
4027 PyObject * obj0 = 0 ;
4028 char *kwnames[] = {
4029 (char *) "pt", NULL
4030 };
4031
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4033 {
4034 arg1 = &temp1;
4035 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4036 }
4037 {
4038 PyThreadState* __tstate = wxPyBeginAllowThreads();
4039 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4040
4041 wxPyEndAllowThreads(__tstate);
4042 if (PyErr_Occurred()) SWIG_fail;
4043 }
4044 {
4045 resultobj = wxPyMake_wxObject(result);
4046 }
4047 return resultobj;
4048 fail:
4049 return NULL;
4050 }
4051
4052
4053 static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
4054 PyObject *resultobj;
4055 wxWindow *arg1 = (wxWindow *) 0 ;
4056 wxWindow *result;
4057 PyObject * obj0 = 0 ;
4058 char *kwnames[] = {
4059 (char *) "win", NULL
4060 };
4061
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 result = (wxWindow *)wxGetTopLevelParent(arg1);
4068
4069 wxPyEndAllowThreads(__tstate);
4070 if (PyErr_Occurred()) SWIG_fail;
4071 }
4072 {
4073 resultobj = wxPyMake_wxObject(result);
4074 }
4075 return resultobj;
4076 fail:
4077 return NULL;
4078 }
4079
4080
4081 static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
4082 PyObject *resultobj;
4083 int arg1 ;
4084 bool result;
4085 PyObject * obj0 = 0 ;
4086 char *kwnames[] = {
4087 (char *) "key", NULL
4088 };
4089
4090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4091 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4092 if (PyErr_Occurred()) SWIG_fail;
4093 {
4094 PyThreadState* __tstate = wxPyBeginAllowThreads();
4095 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4096
4097 wxPyEndAllowThreads(__tstate);
4098 if (PyErr_Occurred()) SWIG_fail;
4099 }
4100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4101 return resultobj;
4102 fail:
4103 return NULL;
4104 }
4105
4106
4107 static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
4108 PyObject *resultobj;
4109 char *kwnames[] = {
4110 NULL
4111 };
4112
4113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4114 {
4115 PyThreadState* __tstate = wxPyBeginAllowThreads();
4116 wxWakeUpMainThread();
4117
4118 wxPyEndAllowThreads(__tstate);
4119 if (PyErr_Occurred()) SWIG_fail;
4120 }
4121 Py_INCREF(Py_None); resultobj = Py_None;
4122 return resultobj;
4123 fail:
4124 return NULL;
4125 }
4126
4127
4128 static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
4129 PyObject *resultobj;
4130 char *kwnames[] = {
4131 NULL
4132 };
4133
4134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4135 {
4136 PyThreadState* __tstate = wxPyBeginAllowThreads();
4137 wxMutexGuiEnter();
4138
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 Py_INCREF(Py_None); resultobj = Py_None;
4143 return resultobj;
4144 fail:
4145 return NULL;
4146 }
4147
4148
4149 static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj;
4151 char *kwnames[] = {
4152 NULL
4153 };
4154
4155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 wxMutexGuiLeave();
4159
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 Py_INCREF(Py_None); resultobj = Py_None;
4164 return resultobj;
4165 fail:
4166 return NULL;
4167 }
4168
4169
4170 static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj;
4172 wxMutexGuiLocker *result;
4173 char *kwnames[] = {
4174 NULL
4175 };
4176
4177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4178 {
4179 PyThreadState* __tstate = wxPyBeginAllowThreads();
4180 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4181
4182 wxPyEndAllowThreads(__tstate);
4183 if (PyErr_Occurred()) SWIG_fail;
4184 }
4185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4186 return resultobj;
4187 fail:
4188 return NULL;
4189 }
4190
4191
4192 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4193 PyObject *resultobj;
4194 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4195 PyObject * obj0 = 0 ;
4196 char *kwnames[] = {
4197 (char *) "self", NULL
4198 };
4199
4200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4203 {
4204 PyThreadState* __tstate = wxPyBeginAllowThreads();
4205 delete arg1;
4206
4207 wxPyEndAllowThreads(__tstate);
4208 if (PyErr_Occurred()) SWIG_fail;
4209 }
4210 Py_INCREF(Py_None); resultobj = Py_None;
4211 return resultobj;
4212 fail:
4213 return NULL;
4214 }
4215
4216
4217 static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
4218 PyObject *obj;
4219 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4220 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4221 Py_INCREF(obj);
4222 return Py_BuildValue((char *)"");
4223 }
4224 static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
4225 PyObject *resultobj;
4226 bool result;
4227 char *kwnames[] = {
4228 NULL
4229 };
4230
4231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4232 {
4233 PyThreadState* __tstate = wxPyBeginAllowThreads();
4234 result = (bool)wxThread_IsMain();
4235
4236 wxPyEndAllowThreads(__tstate);
4237 if (PyErr_Occurred()) SWIG_fail;
4238 }
4239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4240 return resultobj;
4241 fail:
4242 return NULL;
4243 }
4244
4245
4246 static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
4247 PyObject *resultobj;
4248 wxString *arg1 = 0 ;
4249 wxToolTip *result;
4250 bool temp1 = False ;
4251 PyObject * obj0 = 0 ;
4252 char *kwnames[] = {
4253 (char *) "tip", NULL
4254 };
4255
4256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4257 {
4258 arg1 = wxString_in_helper(obj0);
4259 if (arg1 == NULL) SWIG_fail;
4260 temp1 = True;
4261 }
4262 {
4263 PyThreadState* __tstate = wxPyBeginAllowThreads();
4264 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4265
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 {
4270 resultobj = wxPyMake_wxObject(result);
4271 }
4272 {
4273 if (temp1)
4274 delete arg1;
4275 }
4276 return resultobj;
4277 fail:
4278 {
4279 if (temp1)
4280 delete arg1;
4281 }
4282 return NULL;
4283 }
4284
4285
4286 static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4287 PyObject *resultobj;
4288 wxToolTip *arg1 = (wxToolTip *) 0 ;
4289 wxString *arg2 = 0 ;
4290 bool temp2 = False ;
4291 PyObject * obj0 = 0 ;
4292 PyObject * obj1 = 0 ;
4293 char *kwnames[] = {
4294 (char *) "self",(char *) "tip", NULL
4295 };
4296
4297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4300 {
4301 arg2 = wxString_in_helper(obj1);
4302 if (arg2 == NULL) SWIG_fail;
4303 temp2 = True;
4304 }
4305 {
4306 PyThreadState* __tstate = wxPyBeginAllowThreads();
4307 (arg1)->SetTip((wxString const &)*arg2);
4308
4309 wxPyEndAllowThreads(__tstate);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 Py_INCREF(Py_None); resultobj = Py_None;
4313 {
4314 if (temp2)
4315 delete arg2;
4316 }
4317 return resultobj;
4318 fail:
4319 {
4320 if (temp2)
4321 delete arg2;
4322 }
4323 return NULL;
4324 }
4325
4326
4327 static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4328 PyObject *resultobj;
4329 wxToolTip *arg1 = (wxToolTip *) 0 ;
4330 wxString result;
4331 PyObject * obj0 = 0 ;
4332 char *kwnames[] = {
4333 (char *) "self", NULL
4334 };
4335
4336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4339 {
4340 PyThreadState* __tstate = wxPyBeginAllowThreads();
4341 result = (arg1)->GetTip();
4342
4343 wxPyEndAllowThreads(__tstate);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 {
4347 #if wxUSE_UNICODE
4348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4349 #else
4350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4351 #endif
4352 }
4353 return resultobj;
4354 fail:
4355 return NULL;
4356 }
4357
4358
4359 static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4360 PyObject *resultobj;
4361 wxToolTip *arg1 = (wxToolTip *) 0 ;
4362 wxWindow *result;
4363 PyObject * obj0 = 0 ;
4364 char *kwnames[] = {
4365 (char *) "self", NULL
4366 };
4367
4368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4371 {
4372 PyThreadState* __tstate = wxPyBeginAllowThreads();
4373 result = (wxWindow *)(arg1)->GetWindow();
4374
4375 wxPyEndAllowThreads(__tstate);
4376 if (PyErr_Occurred()) SWIG_fail;
4377 }
4378 {
4379 resultobj = wxPyMake_wxObject(result);
4380 }
4381 return resultobj;
4382 fail:
4383 return NULL;
4384 }
4385
4386
4387 static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj;
4389 bool arg1 ;
4390 PyObject * obj0 = 0 ;
4391 char *kwnames[] = {
4392 (char *) "flag", NULL
4393 };
4394
4395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4396 arg1 = (bool) SWIG_AsBool(obj0);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 {
4399 PyThreadState* __tstate = wxPyBeginAllowThreads();
4400 wxToolTip::Enable(arg1);
4401
4402 wxPyEndAllowThreads(__tstate);
4403 if (PyErr_Occurred()) SWIG_fail;
4404 }
4405 Py_INCREF(Py_None); resultobj = Py_None;
4406 return resultobj;
4407 fail:
4408 return NULL;
4409 }
4410
4411
4412 static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
4413 PyObject *resultobj;
4414 long arg1 ;
4415 PyObject * obj0 = 0 ;
4416 char *kwnames[] = {
4417 (char *) "milliseconds", NULL
4418 };
4419
4420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4421 arg1 = (long) SWIG_AsLong(obj0);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 wxToolTip::SetDelay(arg1);
4426
4427 wxPyEndAllowThreads(__tstate);
4428 if (PyErr_Occurred()) SWIG_fail;
4429 }
4430 Py_INCREF(Py_None); resultobj = Py_None;
4431 return resultobj;
4432 fail:
4433 return NULL;
4434 }
4435
4436
4437 static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
4438 PyObject *obj;
4439 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4440 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4441 Py_INCREF(obj);
4442 return Py_BuildValue((char *)"");
4443 }
4444 static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
4445 PyObject *resultobj;
4446 wxWindow *arg1 = (wxWindow *) 0 ;
4447 wxSize *arg2 = 0 ;
4448 wxCaret *result;
4449 wxSize temp2 ;
4450 PyObject * obj0 = 0 ;
4451 PyObject * obj1 = 0 ;
4452 char *kwnames[] = {
4453 (char *) "window",(char *) "size", NULL
4454 };
4455
4456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4459 {
4460 arg2 = &temp2;
4461 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4462 }
4463 {
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
4465 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4466
4467 wxPyEndAllowThreads(__tstate);
4468 if (PyErr_Occurred()) SWIG_fail;
4469 }
4470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4471 return resultobj;
4472 fail:
4473 return NULL;
4474 }
4475
4476
4477 static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
4478 PyObject *resultobj;
4479 wxCaret *arg1 = (wxCaret *) 0 ;
4480 PyObject * obj0 = 0 ;
4481 char *kwnames[] = {
4482 (char *) "self", NULL
4483 };
4484
4485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4488 {
4489 PyThreadState* __tstate = wxPyBeginAllowThreads();
4490 delete arg1;
4491
4492 wxPyEndAllowThreads(__tstate);
4493 if (PyErr_Occurred()) SWIG_fail;
4494 }
4495 Py_INCREF(Py_None); resultobj = Py_None;
4496 return resultobj;
4497 fail:
4498 return NULL;
4499 }
4500
4501
4502 static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
4503 PyObject *resultobj;
4504 wxCaret *arg1 = (wxCaret *) 0 ;
4505 bool result;
4506 PyObject * obj0 = 0 ;
4507 char *kwnames[] = {
4508 (char *) "self", NULL
4509 };
4510
4511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4514 {
4515 PyThreadState* __tstate = wxPyBeginAllowThreads();
4516 result = (bool)(arg1)->IsOk();
4517
4518 wxPyEndAllowThreads(__tstate);
4519 if (PyErr_Occurred()) SWIG_fail;
4520 }
4521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4522 return resultobj;
4523 fail:
4524 return NULL;
4525 }
4526
4527
4528 static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
4529 PyObject *resultobj;
4530 wxCaret *arg1 = (wxCaret *) 0 ;
4531 bool result;
4532 PyObject * obj0 = 0 ;
4533 char *kwnames[] = {
4534 (char *) "self", NULL
4535 };
4536
4537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4540 {
4541 PyThreadState* __tstate = wxPyBeginAllowThreads();
4542 result = (bool)(arg1)->IsVisible();
4543
4544 wxPyEndAllowThreads(__tstate);
4545 if (PyErr_Occurred()) SWIG_fail;
4546 }
4547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4548 return resultobj;
4549 fail:
4550 return NULL;
4551 }
4552
4553
4554 static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
4555 PyObject *resultobj;
4556 wxCaret *arg1 = (wxCaret *) 0 ;
4557 wxPoint result;
4558 PyObject * obj0 = 0 ;
4559 char *kwnames[] = {
4560 (char *) "self", NULL
4561 };
4562
4563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4566 {
4567 PyThreadState* __tstate = wxPyBeginAllowThreads();
4568 result = (arg1)->GetPosition();
4569
4570 wxPyEndAllowThreads(__tstate);
4571 if (PyErr_Occurred()) SWIG_fail;
4572 }
4573 {
4574 wxPoint * resultptr;
4575 resultptr = new wxPoint((wxPoint &) result);
4576 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4577 }
4578 return resultobj;
4579 fail:
4580 return NULL;
4581 }
4582
4583
4584 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
4585 PyObject *resultobj;
4586 wxCaret *arg1 = (wxCaret *) 0 ;
4587 int *arg2 = (int *) 0 ;
4588 int *arg3 = (int *) 0 ;
4589 int temp2 ;
4590 int temp3 ;
4591 PyObject * obj0 = 0 ;
4592 char *kwnames[] = {
4593 (char *) "self", NULL
4594 };
4595
4596 arg2 = &temp2;
4597 arg3 = &temp3;
4598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4601 {
4602 PyThreadState* __tstate = wxPyBeginAllowThreads();
4603 (arg1)->GetPosition(arg2,arg3);
4604
4605 wxPyEndAllowThreads(__tstate);
4606 if (PyErr_Occurred()) SWIG_fail;
4607 }
4608 Py_INCREF(Py_None); resultobj = Py_None;
4609 {
4610 PyObject *o = PyInt_FromLong((long) (*arg2));
4611 resultobj = t_output_helper(resultobj,o);
4612 }
4613 {
4614 PyObject *o = PyInt_FromLong((long) (*arg3));
4615 resultobj = t_output_helper(resultobj,o);
4616 }
4617 return resultobj;
4618 fail:
4619 return NULL;
4620 }
4621
4622
4623 static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4624 PyObject *resultobj;
4625 wxCaret *arg1 = (wxCaret *) 0 ;
4626 wxSize result;
4627 PyObject * obj0 = 0 ;
4628 char *kwnames[] = {
4629 (char *) "self", NULL
4630 };
4631
4632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4635 {
4636 PyThreadState* __tstate = wxPyBeginAllowThreads();
4637 result = (arg1)->GetSize();
4638
4639 wxPyEndAllowThreads(__tstate);
4640 if (PyErr_Occurred()) SWIG_fail;
4641 }
4642 {
4643 wxSize * resultptr;
4644 resultptr = new wxSize((wxSize &) result);
4645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4646 }
4647 return resultobj;
4648 fail:
4649 return NULL;
4650 }
4651
4652
4653 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
4654 PyObject *resultobj;
4655 wxCaret *arg1 = (wxCaret *) 0 ;
4656 int *arg2 = (int *) 0 ;
4657 int *arg3 = (int *) 0 ;
4658 int temp2 ;
4659 int temp3 ;
4660 PyObject * obj0 = 0 ;
4661 char *kwnames[] = {
4662 (char *) "self", NULL
4663 };
4664
4665 arg2 = &temp2;
4666 arg3 = &temp3;
4667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4670 {
4671 PyThreadState* __tstate = wxPyBeginAllowThreads();
4672 (arg1)->GetSize(arg2,arg3);
4673
4674 wxPyEndAllowThreads(__tstate);
4675 if (PyErr_Occurred()) SWIG_fail;
4676 }
4677 Py_INCREF(Py_None); resultobj = Py_None;
4678 {
4679 PyObject *o = PyInt_FromLong((long) (*arg2));
4680 resultobj = t_output_helper(resultobj,o);
4681 }
4682 {
4683 PyObject *o = PyInt_FromLong((long) (*arg3));
4684 resultobj = t_output_helper(resultobj,o);
4685 }
4686 return resultobj;
4687 fail:
4688 return NULL;
4689 }
4690
4691
4692 static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4693 PyObject *resultobj;
4694 wxCaret *arg1 = (wxCaret *) 0 ;
4695 wxWindow *result;
4696 PyObject * obj0 = 0 ;
4697 char *kwnames[] = {
4698 (char *) "self", NULL
4699 };
4700
4701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4704 {
4705 PyThreadState* __tstate = wxPyBeginAllowThreads();
4706 result = (wxWindow *)(arg1)->GetWindow();
4707
4708 wxPyEndAllowThreads(__tstate);
4709 if (PyErr_Occurred()) SWIG_fail;
4710 }
4711 {
4712 resultobj = wxPyMake_wxObject(result);
4713 }
4714 return resultobj;
4715 fail:
4716 return NULL;
4717 }
4718
4719
4720 static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
4721 PyObject *resultobj;
4722 wxCaret *arg1 = (wxCaret *) 0 ;
4723 int arg2 ;
4724 int arg3 ;
4725 PyObject * obj0 = 0 ;
4726 PyObject * obj1 = 0 ;
4727 PyObject * obj2 = 0 ;
4728 char *kwnames[] = {
4729 (char *) "self",(char *) "x",(char *) "y", NULL
4730 };
4731
4732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4735 arg2 = (int) SWIG_AsInt(obj1);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 arg3 = (int) SWIG_AsInt(obj2);
4738 if (PyErr_Occurred()) SWIG_fail;
4739 {
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 (arg1)->Move(arg2,arg3);
4742
4743 wxPyEndAllowThreads(__tstate);
4744 if (PyErr_Occurred()) SWIG_fail;
4745 }
4746 Py_INCREF(Py_None); resultobj = Py_None;
4747 return resultobj;
4748 fail:
4749 return NULL;
4750 }
4751
4752
4753 static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
4754 PyObject *resultobj;
4755 wxCaret *arg1 = (wxCaret *) 0 ;
4756 wxPoint *arg2 = 0 ;
4757 wxPoint temp2 ;
4758 PyObject * obj0 = 0 ;
4759 PyObject * obj1 = 0 ;
4760 char *kwnames[] = {
4761 (char *) "self",(char *) "pt", NULL
4762 };
4763
4764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4767 {
4768 arg2 = &temp2;
4769 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4770 }
4771 {
4772 PyThreadState* __tstate = wxPyBeginAllowThreads();
4773 (arg1)->Move((wxPoint const &)*arg2);
4774
4775 wxPyEndAllowThreads(__tstate);
4776 if (PyErr_Occurred()) SWIG_fail;
4777 }
4778 Py_INCREF(Py_None); resultobj = Py_None;
4779 return resultobj;
4780 fail:
4781 return NULL;
4782 }
4783
4784
4785 static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
4786 PyObject *resultobj;
4787 wxCaret *arg1 = (wxCaret *) 0 ;
4788 int arg2 ;
4789 int arg3 ;
4790 PyObject * obj0 = 0 ;
4791 PyObject * obj1 = 0 ;
4792 PyObject * obj2 = 0 ;
4793 char *kwnames[] = {
4794 (char *) "self",(char *) "width",(char *) "height", NULL
4795 };
4796
4797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
4798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4800 arg2 = (int) SWIG_AsInt(obj1);
4801 if (PyErr_Occurred()) SWIG_fail;
4802 arg3 = (int) SWIG_AsInt(obj2);
4803 if (PyErr_Occurred()) SWIG_fail;
4804 {
4805 PyThreadState* __tstate = wxPyBeginAllowThreads();
4806 (arg1)->SetSize(arg2,arg3);
4807
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 Py_INCREF(Py_None); resultobj = Py_None;
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
4819 PyObject *resultobj;
4820 wxCaret *arg1 = (wxCaret *) 0 ;
4821 wxSize *arg2 = 0 ;
4822 wxSize temp2 ;
4823 PyObject * obj0 = 0 ;
4824 PyObject * obj1 = 0 ;
4825 char *kwnames[] = {
4826 (char *) "self",(char *) "size", NULL
4827 };
4828
4829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4832 {
4833 arg2 = &temp2;
4834 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4835 }
4836 {
4837 PyThreadState* __tstate = wxPyBeginAllowThreads();
4838 (arg1)->SetSize((wxSize const &)*arg2);
4839
4840 wxPyEndAllowThreads(__tstate);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 }
4843 Py_INCREF(Py_None); resultobj = Py_None;
4844 return resultobj;
4845 fail:
4846 return NULL;
4847 }
4848
4849
4850 static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
4851 PyObject *resultobj;
4852 wxCaret *arg1 = (wxCaret *) 0 ;
4853 int arg2 = (int) True ;
4854 PyObject * obj0 = 0 ;
4855 PyObject * obj1 = 0 ;
4856 char *kwnames[] = {
4857 (char *) "self",(char *) "show", NULL
4858 };
4859
4860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
4861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4863 if (obj1) {
4864 arg2 = (int) SWIG_AsInt(obj1);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 {
4868 PyThreadState* __tstate = wxPyBeginAllowThreads();
4869 (arg1)->Show(arg2);
4870
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 Py_INCREF(Py_None); resultobj = Py_None;
4875 return resultobj;
4876 fail:
4877 return NULL;
4878 }
4879
4880
4881 static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
4882 PyObject *resultobj;
4883 wxCaret *arg1 = (wxCaret *) 0 ;
4884 PyObject * obj0 = 0 ;
4885 char *kwnames[] = {
4886 (char *) "self", NULL
4887 };
4888
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
4890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4892 {
4893 PyThreadState* __tstate = wxPyBeginAllowThreads();
4894 (arg1)->Hide();
4895
4896 wxPyEndAllowThreads(__tstate);
4897 if (PyErr_Occurred()) SWIG_fail;
4898 }
4899 Py_INCREF(Py_None); resultobj = Py_None;
4900 return resultobj;
4901 fail:
4902 return NULL;
4903 }
4904
4905
4906 static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
4907 PyObject *obj;
4908 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4909 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
4910 Py_INCREF(obj);
4911 return Py_BuildValue((char *)"");
4912 }
4913 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
4914 PyObject *resultobj;
4915 int result;
4916 char *kwnames[] = {
4917 NULL
4918 };
4919
4920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
4921 {
4922 PyThreadState* __tstate = wxPyBeginAllowThreads();
4923 result = (int)wxCaret_GetBlinkTime();
4924
4925 wxPyEndAllowThreads(__tstate);
4926 if (PyErr_Occurred()) SWIG_fail;
4927 }
4928 resultobj = SWIG_FromInt((int)result);
4929 return resultobj;
4930 fail:
4931 return NULL;
4932 }
4933
4934
4935 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
4936 PyObject *resultobj;
4937 int arg1 ;
4938 PyObject * obj0 = 0 ;
4939 char *kwnames[] = {
4940 (char *) "milliseconds", NULL
4941 };
4942
4943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
4944 arg1 = (int) SWIG_AsInt(obj0);
4945 if (PyErr_Occurred()) SWIG_fail;
4946 {
4947 PyThreadState* __tstate = wxPyBeginAllowThreads();
4948 wxCaret_SetBlinkTime(arg1);
4949
4950 wxPyEndAllowThreads(__tstate);
4951 if (PyErr_Occurred()) SWIG_fail;
4952 }
4953 Py_INCREF(Py_None); resultobj = Py_None;
4954 return resultobj;
4955 fail:
4956 return NULL;
4957 }
4958
4959
4960 static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4961 PyObject *resultobj;
4962 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4963 wxBusyCursor *result;
4964 PyObject * obj0 = 0 ;
4965 char *kwnames[] = {
4966 (char *) "cursor", NULL
4967 };
4968
4969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
4970 if (obj0) {
4971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4973 }
4974 {
4975 PyThreadState* __tstate = wxPyBeginAllowThreads();
4976 result = (wxBusyCursor *)new wxBusyCursor(arg1);
4977
4978 wxPyEndAllowThreads(__tstate);
4979 if (PyErr_Occurred()) SWIG_fail;
4980 }
4981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
4982 return resultobj;
4983 fail:
4984 return NULL;
4985 }
4986
4987
4988 static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4989 PyObject *resultobj;
4990 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
4991 PyObject * obj0 = 0 ;
4992 char *kwnames[] = {
4993 (char *) "self", NULL
4994 };
4995
4996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
4997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
4998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4999 {
5000 PyThreadState* __tstate = wxPyBeginAllowThreads();
5001 delete arg1;
5002
5003 wxPyEndAllowThreads(__tstate);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 }
5006 Py_INCREF(Py_None); resultobj = Py_None;
5007 return resultobj;
5008 fail:
5009 return NULL;
5010 }
5011
5012
5013 static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
5014 PyObject *obj;
5015 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5016 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5017 Py_INCREF(obj);
5018 return Py_BuildValue((char *)"");
5019 }
5020 static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5021 PyObject *resultobj;
5022 wxWindow *arg1 = (wxWindow *) NULL ;
5023 wxWindowDisabler *result;
5024 PyObject * obj0 = 0 ;
5025 char *kwnames[] = {
5026 (char *) "winToSkip", NULL
5027 };
5028
5029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5030 if (obj0) {
5031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5033 }
5034 {
5035 PyThreadState* __tstate = wxPyBeginAllowThreads();
5036 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5037
5038 wxPyEndAllowThreads(__tstate);
5039 if (PyErr_Occurred()) SWIG_fail;
5040 }
5041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5042 return resultobj;
5043 fail:
5044 return NULL;
5045 }
5046
5047
5048 static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5049 PyObject *resultobj;
5050 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5051 PyObject * obj0 = 0 ;
5052 char *kwnames[] = {
5053 (char *) "self", NULL
5054 };
5055
5056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5059 {
5060 PyThreadState* __tstate = wxPyBeginAllowThreads();
5061 delete arg1;
5062
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 Py_INCREF(Py_None); resultobj = Py_None;
5067 return resultobj;
5068 fail:
5069 return NULL;
5070 }
5071
5072
5073 static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
5074 PyObject *obj;
5075 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5076 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5077 Py_INCREF(obj);
5078 return Py_BuildValue((char *)"");
5079 }
5080 static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5081 PyObject *resultobj;
5082 wxString *arg1 = 0 ;
5083 wxBusyInfo *result;
5084 bool temp1 = False ;
5085 PyObject * obj0 = 0 ;
5086 char *kwnames[] = {
5087 (char *) "message", NULL
5088 };
5089
5090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5091 {
5092 arg1 = wxString_in_helper(obj0);
5093 if (arg1 == NULL) SWIG_fail;
5094 temp1 = True;
5095 }
5096 {
5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
5098 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5099
5100 wxPyEndAllowThreads(__tstate);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 }
5103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5104 {
5105 if (temp1)
5106 delete arg1;
5107 }
5108 return resultobj;
5109 fail:
5110 {
5111 if (temp1)
5112 delete arg1;
5113 }
5114 return NULL;
5115 }
5116
5117
5118 static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5119 PyObject *resultobj;
5120 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5121 PyObject * obj0 = 0 ;
5122 char *kwnames[] = {
5123 (char *) "self", NULL
5124 };
5125
5126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5129 {
5130 PyThreadState* __tstate = wxPyBeginAllowThreads();
5131 delete arg1;
5132
5133 wxPyEndAllowThreads(__tstate);
5134 if (PyErr_Occurred()) SWIG_fail;
5135 }
5136 Py_INCREF(Py_None); resultobj = Py_None;
5137 return resultobj;
5138 fail:
5139 return NULL;
5140 }
5141
5142
5143 static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
5144 PyObject *obj;
5145 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5146 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5147 Py_INCREF(obj);
5148 return Py_BuildValue((char *)"");
5149 }
5150 static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
5151 PyObject *resultobj;
5152 wxStopWatch *result;
5153 char *kwnames[] = {
5154 NULL
5155 };
5156
5157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5158 {
5159 PyThreadState* __tstate = wxPyBeginAllowThreads();
5160 result = (wxStopWatch *)new wxStopWatch();
5161
5162 wxPyEndAllowThreads(__tstate);
5163 if (PyErr_Occurred()) SWIG_fail;
5164 }
5165 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5166 return resultobj;
5167 fail:
5168 return NULL;
5169 }
5170
5171
5172 static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
5173 PyObject *resultobj;
5174 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5175 long arg2 = (long) 0 ;
5176 PyObject * obj0 = 0 ;
5177 PyObject * obj1 = 0 ;
5178 char *kwnames[] = {
5179 (char *) "self",(char *) "t0", NULL
5180 };
5181
5182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5185 if (obj1) {
5186 arg2 = (long) SWIG_AsLong(obj1);
5187 if (PyErr_Occurred()) SWIG_fail;
5188 }
5189 {
5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
5191 (arg1)->Start(arg2);
5192
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 Py_INCREF(Py_None); resultobj = Py_None;
5197 return resultobj;
5198 fail:
5199 return NULL;
5200 }
5201
5202
5203 static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
5204 PyObject *resultobj;
5205 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5206 PyObject * obj0 = 0 ;
5207 char *kwnames[] = {
5208 (char *) "self", NULL
5209 };
5210
5211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5214 {
5215 PyThreadState* __tstate = wxPyBeginAllowThreads();
5216 (arg1)->Pause();
5217
5218 wxPyEndAllowThreads(__tstate);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 }
5221 Py_INCREF(Py_None); resultobj = Py_None;
5222 return resultobj;
5223 fail:
5224 return NULL;
5225 }
5226
5227
5228 static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
5229 PyObject *resultobj;
5230 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5231 PyObject * obj0 = 0 ;
5232 char *kwnames[] = {
5233 (char *) "self", NULL
5234 };
5235
5236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5239 {
5240 PyThreadState* __tstate = wxPyBeginAllowThreads();
5241 (arg1)->Resume();
5242
5243 wxPyEndAllowThreads(__tstate);
5244 if (PyErr_Occurred()) SWIG_fail;
5245 }
5246 Py_INCREF(Py_None); resultobj = Py_None;
5247 return resultobj;
5248 fail:
5249 return NULL;
5250 }
5251
5252
5253 static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
5254 PyObject *resultobj;
5255 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5256 long result;
5257 PyObject * obj0 = 0 ;
5258 char *kwnames[] = {
5259 (char *) "self", NULL
5260 };
5261
5262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5265 {
5266 PyThreadState* __tstate = wxPyBeginAllowThreads();
5267 result = (long)((wxStopWatch const *)arg1)->Time();
5268
5269 wxPyEndAllowThreads(__tstate);
5270 if (PyErr_Occurred()) SWIG_fail;
5271 }
5272 resultobj = SWIG_FromLong((long)result);
5273 return resultobj;
5274 fail:
5275 return NULL;
5276 }
5277
5278
5279 static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
5280 PyObject *obj;
5281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5282 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5283 Py_INCREF(obj);
5284 return Py_BuildValue((char *)"");
5285 }
5286 static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5287 PyObject *resultobj;
5288 int arg1 = (int) 9 ;
5289 wxFileHistory *result;
5290 PyObject * obj0 = 0 ;
5291 char *kwnames[] = {
5292 (char *) "maxFiles", NULL
5293 };
5294
5295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5296 if (obj0) {
5297 arg1 = (int) SWIG_AsInt(obj0);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 {
5301 PyThreadState* __tstate = wxPyBeginAllowThreads();
5302 result = (wxFileHistory *)new wxFileHistory(arg1);
5303
5304 wxPyEndAllowThreads(__tstate);
5305 if (PyErr_Occurred()) SWIG_fail;
5306 }
5307 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5308 return resultobj;
5309 fail:
5310 return NULL;
5311 }
5312
5313
5314 static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5315 PyObject *resultobj;
5316 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5317 PyObject * obj0 = 0 ;
5318 char *kwnames[] = {
5319 (char *) "self", NULL
5320 };
5321
5322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5325 {
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 delete arg1;
5328
5329 wxPyEndAllowThreads(__tstate);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 }
5332 Py_INCREF(Py_None); resultobj = Py_None;
5333 return resultobj;
5334 fail:
5335 return NULL;
5336 }
5337
5338
5339 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5340 PyObject *resultobj;
5341 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5342 wxString *arg2 = 0 ;
5343 bool temp2 = False ;
5344 PyObject * obj0 = 0 ;
5345 PyObject * obj1 = 0 ;
5346 char *kwnames[] = {
5347 (char *) "self",(char *) "file", NULL
5348 };
5349
5350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5353 {
5354 arg2 = wxString_in_helper(obj1);
5355 if (arg2 == NULL) SWIG_fail;
5356 temp2 = True;
5357 }
5358 {
5359 PyThreadState* __tstate = wxPyBeginAllowThreads();
5360 (arg1)->AddFileToHistory((wxString const &)*arg2);
5361
5362 wxPyEndAllowThreads(__tstate);
5363 if (PyErr_Occurred()) SWIG_fail;
5364 }
5365 Py_INCREF(Py_None); resultobj = Py_None;
5366 {
5367 if (temp2)
5368 delete arg2;
5369 }
5370 return resultobj;
5371 fail:
5372 {
5373 if (temp2)
5374 delete arg2;
5375 }
5376 return NULL;
5377 }
5378
5379
5380 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5381 PyObject *resultobj;
5382 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5383 int arg2 ;
5384 PyObject * obj0 = 0 ;
5385 PyObject * obj1 = 0 ;
5386 char *kwnames[] = {
5387 (char *) "self",(char *) "i", NULL
5388 };
5389
5390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5393 arg2 = (int) SWIG_AsInt(obj1);
5394 if (PyErr_Occurred()) SWIG_fail;
5395 {
5396 PyThreadState* __tstate = wxPyBeginAllowThreads();
5397 (arg1)->RemoveFileFromHistory(arg2);
5398
5399 wxPyEndAllowThreads(__tstate);
5400 if (PyErr_Occurred()) SWIG_fail;
5401 }
5402 Py_INCREF(Py_None); resultobj = Py_None;
5403 return resultobj;
5404 fail:
5405 return NULL;
5406 }
5407
5408
5409 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
5410 PyObject *resultobj;
5411 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5412 int result;
5413 PyObject * obj0 = 0 ;
5414 char *kwnames[] = {
5415 (char *) "self", NULL
5416 };
5417
5418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5421 {
5422 PyThreadState* __tstate = wxPyBeginAllowThreads();
5423 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5424
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
5428 resultobj = SWIG_FromInt((int)result);
5429 return resultobj;
5430 fail:
5431 return NULL;
5432 }
5433
5434
5435 static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
5436 PyObject *resultobj;
5437 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5438 wxMenu *arg2 = (wxMenu *) 0 ;
5439 PyObject * obj0 = 0 ;
5440 PyObject * obj1 = 0 ;
5441 char *kwnames[] = {
5442 (char *) "self",(char *) "menu", NULL
5443 };
5444
5445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5448 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5450 {
5451 PyThreadState* __tstate = wxPyBeginAllowThreads();
5452 (arg1)->UseMenu(arg2);
5453
5454 wxPyEndAllowThreads(__tstate);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 }
5457 Py_INCREF(Py_None); resultobj = Py_None;
5458 return resultobj;
5459 fail:
5460 return NULL;
5461 }
5462
5463
5464 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
5465 PyObject *resultobj;
5466 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5467 wxMenu *arg2 = (wxMenu *) 0 ;
5468 PyObject * obj0 = 0 ;
5469 PyObject * obj1 = 0 ;
5470 char *kwnames[] = {
5471 (char *) "self",(char *) "menu", NULL
5472 };
5473
5474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5477 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5479 {
5480 PyThreadState* __tstate = wxPyBeginAllowThreads();
5481 (arg1)->RemoveMenu(arg2);
5482
5483 wxPyEndAllowThreads(__tstate);
5484 if (PyErr_Occurred()) SWIG_fail;
5485 }
5486 Py_INCREF(Py_None); resultobj = Py_None;
5487 return resultobj;
5488 fail:
5489 return NULL;
5490 }
5491
5492
5493 static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
5494 PyObject *resultobj;
5495 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5496 wxConfigBase *arg2 = 0 ;
5497 PyObject * obj0 = 0 ;
5498 PyObject * obj1 = 0 ;
5499 char *kwnames[] = {
5500 (char *) "self",(char *) "config", NULL
5501 };
5502
5503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5506 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5507 SWIG_POINTER_EXCEPTION | 0)) == -1)
5508 SWIG_fail;
5509 if (arg2 == NULL) {
5510 PyErr_SetString(PyExc_TypeError,"null reference");
5511 SWIG_fail;
5512 }
5513 {
5514 PyThreadState* __tstate = wxPyBeginAllowThreads();
5515 (arg1)->Load(*arg2);
5516
5517 wxPyEndAllowThreads(__tstate);
5518 if (PyErr_Occurred()) SWIG_fail;
5519 }
5520 Py_INCREF(Py_None); resultobj = Py_None;
5521 return resultobj;
5522 fail:
5523 return NULL;
5524 }
5525
5526
5527 static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) {
5528 PyObject *resultobj;
5529 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5530 wxConfigBase *arg2 = 0 ;
5531 PyObject * obj0 = 0 ;
5532 PyObject * obj1 = 0 ;
5533 char *kwnames[] = {
5534 (char *) "self",(char *) "config", NULL
5535 };
5536
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5540 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5541 SWIG_POINTER_EXCEPTION | 0)) == -1)
5542 SWIG_fail;
5543 if (arg2 == NULL) {
5544 PyErr_SetString(PyExc_TypeError,"null reference");
5545 SWIG_fail;
5546 }
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 (arg1)->Save(*arg2);
5550
5551 wxPyEndAllowThreads(__tstate);
5552 if (PyErr_Occurred()) SWIG_fail;
5553 }
5554 Py_INCREF(Py_None); resultobj = Py_None;
5555 return resultobj;
5556 fail:
5557 return NULL;
5558 }
5559
5560
5561 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
5562 PyObject *resultobj;
5563 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5564 PyObject * obj0 = 0 ;
5565 char *kwnames[] = {
5566 (char *) "self", NULL
5567 };
5568
5569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5572 {
5573 PyThreadState* __tstate = wxPyBeginAllowThreads();
5574 (arg1)->AddFilesToMenu();
5575
5576 wxPyEndAllowThreads(__tstate);
5577 if (PyErr_Occurred()) SWIG_fail;
5578 }
5579 Py_INCREF(Py_None); resultobj = Py_None;
5580 return resultobj;
5581 fail:
5582 return NULL;
5583 }
5584
5585
5586 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
5587 PyObject *resultobj;
5588 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5589 wxMenu *arg2 = (wxMenu *) 0 ;
5590 PyObject * obj0 = 0 ;
5591 PyObject * obj1 = 0 ;
5592 char *kwnames[] = {
5593 (char *) "self",(char *) "menu", NULL
5594 };
5595
5596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5601 {
5602 PyThreadState* __tstate = wxPyBeginAllowThreads();
5603 (arg1)->AddFilesToMenu(arg2);
5604
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 Py_INCREF(Py_None); resultobj = Py_None;
5609 return resultobj;
5610 fail:
5611 return NULL;
5612 }
5613
5614
5615 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
5616 PyObject *resultobj;
5617 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5618 int arg2 ;
5619 wxString result;
5620 PyObject * obj0 = 0 ;
5621 PyObject * obj1 = 0 ;
5622 char *kwnames[] = {
5623 (char *) "self",(char *) "i", NULL
5624 };
5625
5626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5629 arg2 = (int) SWIG_AsInt(obj1);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 {
5632 PyThreadState* __tstate = wxPyBeginAllowThreads();
5633 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5634
5635 wxPyEndAllowThreads(__tstate);
5636 if (PyErr_Occurred()) SWIG_fail;
5637 }
5638 {
5639 #if wxUSE_UNICODE
5640 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5641 #else
5642 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5643 #endif
5644 }
5645 return resultobj;
5646 fail:
5647 return NULL;
5648 }
5649
5650
5651 static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
5652 PyObject *resultobj;
5653 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5654 int result;
5655 PyObject * obj0 = 0 ;
5656 char *kwnames[] = {
5657 (char *) "self", NULL
5658 };
5659
5660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5663 {
5664 PyThreadState* __tstate = wxPyBeginAllowThreads();
5665 result = (int)((wxFileHistory const *)arg1)->GetCount();
5666
5667 wxPyEndAllowThreads(__tstate);
5668 if (PyErr_Occurred()) SWIG_fail;
5669 }
5670 resultobj = SWIG_FromInt((int)result);
5671 return resultobj;
5672 fail:
5673 return NULL;
5674 }
5675
5676
5677 static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
5678 PyObject *obj;
5679 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5680 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5681 Py_INCREF(obj);
5682 return Py_BuildValue((char *)"");
5683 }
5684 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
5685 PyObject *resultobj;
5686 wxString *arg1 = 0 ;
5687 wxString const &arg2_defvalue = wxPyEmptyString ;
5688 wxString *arg2 = (wxString *) &arg2_defvalue ;
5689 wxSingleInstanceChecker *result;
5690 bool temp1 = False ;
5691 bool temp2 = False ;
5692 PyObject * obj0 = 0 ;
5693 PyObject * obj1 = 0 ;
5694 char *kwnames[] = {
5695 (char *) "name",(char *) "path", NULL
5696 };
5697
5698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5699 {
5700 arg1 = wxString_in_helper(obj0);
5701 if (arg1 == NULL) SWIG_fail;
5702 temp1 = True;
5703 }
5704 if (obj1) {
5705 {
5706 arg2 = wxString_in_helper(obj1);
5707 if (arg2 == NULL) SWIG_fail;
5708 temp2 = True;
5709 }
5710 }
5711 {
5712 PyThreadState* __tstate = wxPyBeginAllowThreads();
5713 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5714
5715 wxPyEndAllowThreads(__tstate);
5716 if (PyErr_Occurred()) SWIG_fail;
5717 }
5718 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5719 {
5720 if (temp1)
5721 delete arg1;
5722 }
5723 {
5724 if (temp2)
5725 delete arg2;
5726 }
5727 return resultobj;
5728 fail:
5729 {
5730 if (temp1)
5731 delete arg1;
5732 }
5733 {
5734 if (temp2)
5735 delete arg2;
5736 }
5737 return NULL;
5738 }
5739
5740
5741 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
5742 PyObject *resultobj;
5743 wxSingleInstanceChecker *result;
5744 char *kwnames[] = {
5745 NULL
5746 };
5747
5748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5749 {
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
5751 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5752
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
5756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5766 PyObject * obj0 = 0 ;
5767 char *kwnames[] = {
5768 (char *) "self", NULL
5769 };
5770
5771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 delete arg1;
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 Py_INCREF(Py_None); resultobj = Py_None;
5782 return resultobj;
5783 fail:
5784 return NULL;
5785 }
5786
5787
5788 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5789 PyObject *resultobj;
5790 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5791 wxString *arg2 = 0 ;
5792 wxString const &arg3_defvalue = wxPyEmptyString ;
5793 wxString *arg3 = (wxString *) &arg3_defvalue ;
5794 bool result;
5795 bool temp2 = False ;
5796 bool temp3 = False ;
5797 PyObject * obj0 = 0 ;
5798 PyObject * obj1 = 0 ;
5799 PyObject * obj2 = 0 ;
5800 char *kwnames[] = {
5801 (char *) "self",(char *) "name",(char *) "path", NULL
5802 };
5803
5804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5807 {
5808 arg2 = wxString_in_helper(obj1);
5809 if (arg2 == NULL) SWIG_fail;
5810 temp2 = True;
5811 }
5812 if (obj2) {
5813 {
5814 arg3 = wxString_in_helper(obj2);
5815 if (arg3 == NULL) SWIG_fail;
5816 temp3 = True;
5817 }
5818 }
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5822
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5827 {
5828 if (temp2)
5829 delete arg2;
5830 }
5831 {
5832 if (temp3)
5833 delete arg3;
5834 }
5835 return resultobj;
5836 fail:
5837 {
5838 if (temp2)
5839 delete arg2;
5840 }
5841 {
5842 if (temp3)
5843 delete arg3;
5844 }
5845 return NULL;
5846 }
5847
5848
5849 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
5850 PyObject *resultobj;
5851 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5852 bool result;
5853 PyObject * obj0 = 0 ;
5854 char *kwnames[] = {
5855 (char *) "self", NULL
5856 };
5857
5858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5869 return resultobj;
5870 fail:
5871 return NULL;
5872 }
5873
5874
5875 static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
5876 PyObject *obj;
5877 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5878 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5879 Py_INCREF(obj);
5880 return Py_BuildValue((char *)"");
5881 }
5882 static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
5883 PyObject *resultobj;
5884 wxWindow *arg1 = (wxWindow *) 0 ;
5885 wxDC *arg2 = 0 ;
5886 int arg3 ;
5887 PyObject * obj0 = 0 ;
5888 PyObject * obj1 = 0 ;
5889 PyObject * obj2 = 0 ;
5890 char *kwnames[] = {
5891 (char *) "window",(char *) "dc",(char *) "method", NULL
5892 };
5893
5894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
5895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5897 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
5898 SWIG_POINTER_EXCEPTION | 0)) == -1)
5899 SWIG_fail;
5900 if (arg2 == NULL) {
5901 PyErr_SetString(PyExc_TypeError,"null reference");
5902 SWIG_fail;
5903 }
5904 arg3 = (int) SWIG_AsInt(obj2);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 {
5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
5908 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
5909
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 Py_INCREF(Py_None); resultobj = Py_None;
5914 return resultobj;
5915 fail:
5916 return NULL;
5917 }
5918
5919
5920 static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
5921 PyObject *resultobj;
5922 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5923 PyObject * obj0 = 0 ;
5924 char *kwnames[] = {
5925 (char *) "self", NULL
5926 };
5927
5928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
5929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5931 {
5932 PyThreadState* __tstate = wxPyBeginAllowThreads();
5933 delete arg1;
5934
5935 wxPyEndAllowThreads(__tstate);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 Py_INCREF(Py_None); resultobj = Py_None;
5939 return resultobj;
5940 fail:
5941 return NULL;
5942 }
5943
5944
5945 static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
5946 PyObject *resultobj;
5947 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5948 wxString result;
5949 PyObject * obj0 = 0 ;
5950 char *kwnames[] = {
5951 (char *) "self", NULL
5952 };
5953
5954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
5955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5957 {
5958 PyThreadState* __tstate = wxPyBeginAllowThreads();
5959 result = (arg1)->GetTip();
5960
5961 wxPyEndAllowThreads(__tstate);
5962 if (PyErr_Occurred()) SWIG_fail;
5963 }
5964 {
5965 #if wxUSE_UNICODE
5966 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5967 #else
5968 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5969 #endif
5970 }
5971 return resultobj;
5972 fail:
5973 return NULL;
5974 }
5975
5976
5977 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
5978 PyObject *resultobj;
5979 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5980 size_t result;
5981 PyObject * obj0 = 0 ;
5982 char *kwnames[] = {
5983 (char *) "self", NULL
5984 };
5985
5986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
5987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5989 {
5990 PyThreadState* __tstate = wxPyBeginAllowThreads();
5991 result = (size_t)(arg1)->GetCurrentTip();
5992
5993 wxPyEndAllowThreads(__tstate);
5994 if (PyErr_Occurred()) SWIG_fail;
5995 }
5996 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
5997 return resultobj;
5998 fail:
5999 return NULL;
6000 }
6001
6002
6003 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
6004 PyObject *resultobj;
6005 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6006 wxString *arg2 = 0 ;
6007 wxString result;
6008 bool temp2 = False ;
6009 PyObject * obj0 = 0 ;
6010 PyObject * obj1 = 0 ;
6011 char *kwnames[] = {
6012 (char *) "self",(char *) "tip", NULL
6013 };
6014
6015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6018 {
6019 arg2 = wxString_in_helper(obj1);
6020 if (arg2 == NULL) SWIG_fail;
6021 temp2 = True;
6022 }
6023 {
6024 PyThreadState* __tstate = wxPyBeginAllowThreads();
6025 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6026
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 {
6031 #if wxUSE_UNICODE
6032 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6033 #else
6034 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6035 #endif
6036 }
6037 {
6038 if (temp2)
6039 delete arg2;
6040 }
6041 return resultobj;
6042 fail:
6043 {
6044 if (temp2)
6045 delete arg2;
6046 }
6047 return NULL;
6048 }
6049
6050
6051 static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
6052 PyObject *obj;
6053 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6054 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6055 Py_INCREF(obj);
6056 return Py_BuildValue((char *)"");
6057 }
6058 static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6059 PyObject *resultobj;
6060 size_t arg1 ;
6061 wxPyTipProvider *result;
6062 PyObject * obj0 = 0 ;
6063 char *kwnames[] = {
6064 (char *) "currentTip", NULL
6065 };
6066
6067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6068 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 {
6071 PyThreadState* __tstate = wxPyBeginAllowThreads();
6072 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6073
6074 wxPyEndAllowThreads(__tstate);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6078 return resultobj;
6079 fail:
6080 return NULL;
6081 }
6082
6083
6084 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6085 PyObject *resultobj;
6086 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6087 PyObject *arg2 = (PyObject *) 0 ;
6088 PyObject *arg3 = (PyObject *) 0 ;
6089 PyObject * obj0 = 0 ;
6090 PyObject * obj1 = 0 ;
6091 PyObject * obj2 = 0 ;
6092 char *kwnames[] = {
6093 (char *) "self",(char *) "self",(char *) "_class", NULL
6094 };
6095
6096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6099 arg2 = obj1;
6100 arg3 = obj2;
6101 {
6102 PyThreadState* __tstate = wxPyBeginAllowThreads();
6103 (arg1)->_setCallbackInfo(arg2,arg3);
6104
6105 wxPyEndAllowThreads(__tstate);
6106 if (PyErr_Occurred()) SWIG_fail;
6107 }
6108 Py_INCREF(Py_None); resultobj = Py_None;
6109 return resultobj;
6110 fail:
6111 return NULL;
6112 }
6113
6114
6115 static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
6116 PyObject *obj;
6117 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6118 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6119 Py_INCREF(obj);
6120 return Py_BuildValue((char *)"");
6121 }
6122 static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
6123 PyObject *resultobj;
6124 wxWindow *arg1 = (wxWindow *) 0 ;
6125 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6126 bool arg3 = (bool) True ;
6127 bool result;
6128 PyObject * obj0 = 0 ;
6129 PyObject * obj1 = 0 ;
6130 PyObject * obj2 = 0 ;
6131 char *kwnames[] = {
6132 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6133 };
6134
6135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6138 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6140 if (obj2) {
6141 arg3 = (bool) SWIG_AsBool(obj2);
6142 if (PyErr_Occurred()) SWIG_fail;
6143 }
6144 {
6145 PyThreadState* __tstate = wxPyBeginAllowThreads();
6146 result = (bool)wxShowTip(arg1,arg2,arg3);
6147
6148 wxPyEndAllowThreads(__tstate);
6149 if (PyErr_Occurred()) SWIG_fail;
6150 }
6151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6152 return resultobj;
6153 fail:
6154 return NULL;
6155 }
6156
6157
6158 static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6159 PyObject *resultobj;
6160 wxString *arg1 = 0 ;
6161 size_t arg2 ;
6162 wxTipProvider *result;
6163 bool temp1 = False ;
6164 PyObject * obj0 = 0 ;
6165 PyObject * obj1 = 0 ;
6166 char *kwnames[] = {
6167 (char *) "filename",(char *) "currentTip", NULL
6168 };
6169
6170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6171 {
6172 arg1 = wxString_in_helper(obj0);
6173 if (arg1 == NULL) SWIG_fail;
6174 temp1 = True;
6175 }
6176 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6186 {
6187 if (temp1)
6188 delete arg1;
6189 }
6190 return resultobj;
6191 fail:
6192 {
6193 if (temp1)
6194 delete arg1;
6195 }
6196 return NULL;
6197 }
6198
6199
6200 static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6201 PyObject *resultobj;
6202 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6203 int arg2 = (int) -1 ;
6204 wxPyTimer *result;
6205 PyObject * obj0 = 0 ;
6206 PyObject * obj1 = 0 ;
6207 char *kwnames[] = {
6208 (char *) "owner",(char *) "id", NULL
6209 };
6210
6211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6212 if (obj0) {
6213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6215 }
6216 if (obj1) {
6217 arg2 = (int) SWIG_AsInt(obj1);
6218 if (PyErr_Occurred()) SWIG_fail;
6219 }
6220 {
6221 PyThreadState* __tstate = wxPyBeginAllowThreads();
6222 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6223
6224 wxPyEndAllowThreads(__tstate);
6225 if (PyErr_Occurred()) SWIG_fail;
6226 }
6227 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6228 return resultobj;
6229 fail:
6230 return NULL;
6231 }
6232
6233
6234 static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6235 PyObject *resultobj;
6236 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6237 PyObject * obj0 = 0 ;
6238 char *kwnames[] = {
6239 (char *) "self", NULL
6240 };
6241
6242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 delete arg1;
6248
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 Py_INCREF(Py_None); resultobj = Py_None;
6253 return resultobj;
6254 fail:
6255 return NULL;
6256 }
6257
6258
6259 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6260 PyObject *resultobj;
6261 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6262 PyObject *arg2 = (PyObject *) 0 ;
6263 PyObject *arg3 = (PyObject *) 0 ;
6264 PyObject * obj0 = 0 ;
6265 PyObject * obj1 = 0 ;
6266 PyObject * obj2 = 0 ;
6267 char *kwnames[] = {
6268 (char *) "self",(char *) "self",(char *) "_class", NULL
6269 };
6270
6271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6274 arg2 = obj1;
6275 arg3 = obj2;
6276 {
6277 PyThreadState* __tstate = wxPyBeginAllowThreads();
6278 (arg1)->_setCallbackInfo(arg2,arg3);
6279
6280 wxPyEndAllowThreads(__tstate);
6281 if (PyErr_Occurred()) SWIG_fail;
6282 }
6283 Py_INCREF(Py_None); resultobj = Py_None;
6284 return resultobj;
6285 fail:
6286 return NULL;
6287 }
6288
6289
6290 static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
6291 PyObject *resultobj;
6292 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6293 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6294 int arg3 = (int) -1 ;
6295 PyObject * obj0 = 0 ;
6296 PyObject * obj1 = 0 ;
6297 PyObject * obj2 = 0 ;
6298 char *kwnames[] = {
6299 (char *) "self",(char *) "owner",(char *) "id", NULL
6300 };
6301
6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6305 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6307 if (obj2) {
6308 arg3 = (int) SWIG_AsInt(obj2);
6309 if (PyErr_Occurred()) SWIG_fail;
6310 }
6311 {
6312 PyThreadState* __tstate = wxPyBeginAllowThreads();
6313 (arg1)->SetOwner(arg2,arg3);
6314
6315 wxPyEndAllowThreads(__tstate);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 }
6318 Py_INCREF(Py_None); resultobj = Py_None;
6319 return resultobj;
6320 fail:
6321 return NULL;
6322 }
6323
6324
6325 static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
6326 PyObject *resultobj;
6327 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6328 int arg2 = (int) -1 ;
6329 bool arg3 = (bool) False ;
6330 bool result;
6331 PyObject * obj0 = 0 ;
6332 PyObject * obj1 = 0 ;
6333 PyObject * obj2 = 0 ;
6334 char *kwnames[] = {
6335 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6336 };
6337
6338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6341 if (obj1) {
6342 arg2 = (int) SWIG_AsInt(obj1);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 }
6345 if (obj2) {
6346 arg3 = (bool) SWIG_AsBool(obj2);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 {
6350 PyThreadState* __tstate = wxPyBeginAllowThreads();
6351 result = (bool)(arg1)->Start(arg2,arg3);
6352
6353 wxPyEndAllowThreads(__tstate);
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
6356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6357 return resultobj;
6358 fail:
6359 return NULL;
6360 }
6361
6362
6363 static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
6364 PyObject *resultobj;
6365 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6366 PyObject * obj0 = 0 ;
6367 char *kwnames[] = {
6368 (char *) "self", NULL
6369 };
6370
6371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 (arg1)->Stop();
6377
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 Py_INCREF(Py_None); resultobj = Py_None;
6382 return resultobj;
6383 fail:
6384 return NULL;
6385 }
6386
6387
6388 static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
6389 PyObject *resultobj;
6390 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6391 bool result;
6392 PyObject * obj0 = 0 ;
6393 char *kwnames[] = {
6394 (char *) "self", NULL
6395 };
6396
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6403
6404 wxPyEndAllowThreads(__tstate);
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6408 return resultobj;
6409 fail:
6410 return NULL;
6411 }
6412
6413
6414 static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj;
6416 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6417 int result;
6418 PyObject * obj0 = 0 ;
6419 char *kwnames[] = {
6420 (char *) "self", NULL
6421 };
6422
6423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6426 {
6427 PyThreadState* __tstate = wxPyBeginAllowThreads();
6428 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6429
6430 wxPyEndAllowThreads(__tstate);
6431 if (PyErr_Occurred()) SWIG_fail;
6432 }
6433 resultobj = SWIG_FromInt((int)result);
6434 return resultobj;
6435 fail:
6436 return NULL;
6437 }
6438
6439
6440 static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
6441 PyObject *resultobj;
6442 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6443 bool result;
6444 PyObject * obj0 = 0 ;
6445 char *kwnames[] = {
6446 (char *) "self", NULL
6447 };
6448
6449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6452 {
6453 PyThreadState* __tstate = wxPyBeginAllowThreads();
6454 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6455
6456 wxPyEndAllowThreads(__tstate);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 }
6459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6460 return resultobj;
6461 fail:
6462 return NULL;
6463 }
6464
6465
6466 static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
6467 PyObject *resultobj;
6468 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6469 int result;
6470 PyObject * obj0 = 0 ;
6471 char *kwnames[] = {
6472 (char *) "self", NULL
6473 };
6474
6475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6478 {
6479 PyThreadState* __tstate = wxPyBeginAllowThreads();
6480 result = (int)((wxPyTimer const *)arg1)->GetId();
6481
6482 wxPyEndAllowThreads(__tstate);
6483 if (PyErr_Occurred()) SWIG_fail;
6484 }
6485 resultobj = SWIG_FromInt((int)result);
6486 return resultobj;
6487 fail:
6488 return NULL;
6489 }
6490
6491
6492 static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
6493 PyObject *obj;
6494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6495 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6496 Py_INCREF(obj);
6497 return Py_BuildValue((char *)"");
6498 }
6499 static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
6500 PyObject *resultobj;
6501 int arg1 = (int) 0 ;
6502 int arg2 = (int) 0 ;
6503 wxTimerEvent *result;
6504 PyObject * obj0 = 0 ;
6505 PyObject * obj1 = 0 ;
6506 char *kwnames[] = {
6507 (char *) "timerid",(char *) "interval", NULL
6508 };
6509
6510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6511 if (obj0) {
6512 arg1 = (int) SWIG_AsInt(obj0);
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 if (obj1) {
6516 arg2 = (int) SWIG_AsInt(obj1);
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6522
6523 wxPyEndAllowThreads(__tstate);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
6526 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6527 return resultobj;
6528 fail:
6529 return NULL;
6530 }
6531
6532
6533 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
6534 PyObject *resultobj;
6535 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6536 int result;
6537 PyObject * obj0 = 0 ;
6538 char *kwnames[] = {
6539 (char *) "self", NULL
6540 };
6541
6542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6548
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 resultobj = SWIG_FromInt((int)result);
6553 return resultobj;
6554 fail:
6555 return NULL;
6556 }
6557
6558
6559 static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
6560 PyObject *obj;
6561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6562 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6563 Py_INCREF(obj);
6564 return Py_BuildValue((char *)"");
6565 }
6566 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
6567 PyObject *resultobj;
6568 wxTimer *arg1 = 0 ;
6569 wxTimerRunner *result;
6570 PyObject * obj0 = 0 ;
6571
6572 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6574 SWIG_POINTER_EXCEPTION | 0)) == -1)
6575 SWIG_fail;
6576 if (arg1 == NULL) {
6577 PyErr_SetString(PyExc_TypeError,"null reference");
6578 SWIG_fail;
6579 }
6580 {
6581 PyThreadState* __tstate = wxPyBeginAllowThreads();
6582 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6583
6584 wxPyEndAllowThreads(__tstate);
6585 if (PyErr_Occurred()) SWIG_fail;
6586 }
6587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6588 return resultobj;
6589 fail:
6590 return NULL;
6591 }
6592
6593
6594 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
6595 PyObject *resultobj;
6596 wxTimer *arg1 = 0 ;
6597 int arg2 ;
6598 bool arg3 = (bool) False ;
6599 wxTimerRunner *result;
6600 PyObject * obj0 = 0 ;
6601 PyObject * obj1 = 0 ;
6602 PyObject * obj2 = 0 ;
6603
6604 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6606 SWIG_POINTER_EXCEPTION | 0)) == -1)
6607 SWIG_fail;
6608 if (arg1 == NULL) {
6609 PyErr_SetString(PyExc_TypeError,"null reference");
6610 SWIG_fail;
6611 }
6612 arg2 = (int) SWIG_AsInt(obj1);
6613 if (PyErr_Occurred()) SWIG_fail;
6614 if (obj2) {
6615 arg3 = (bool) SWIG_AsBool(obj2);
6616 if (PyErr_Occurred()) SWIG_fail;
6617 }
6618 {
6619 PyThreadState* __tstate = wxPyBeginAllowThreads();
6620 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6621
6622 wxPyEndAllowThreads(__tstate);
6623 if (PyErr_Occurred()) SWIG_fail;
6624 }
6625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6626 return resultobj;
6627 fail:
6628 return NULL;
6629 }
6630
6631
6632 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6633 int argc;
6634 PyObject *argv[4];
6635 int ii;
6636
6637 argc = PyObject_Length(args);
6638 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6639 argv[ii] = PyTuple_GetItem(args,ii);
6640 }
6641 if (argc == 1) {
6642 int _v;
6643 {
6644 void *ptr;
6645 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6646 _v = 0;
6647 PyErr_Clear();
6648 } else {
6649 _v = 1;
6650 }
6651 }
6652 if (_v) {
6653 return _wrap_new_TimerRunner__SWIG_0(self,args);
6654 }
6655 }
6656 if ((argc >= 2) && (argc <= 3)) {
6657 int _v;
6658 {
6659 void *ptr;
6660 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6661 _v = 0;
6662 PyErr_Clear();
6663 } else {
6664 _v = 1;
6665 }
6666 }
6667 if (_v) {
6668 _v = SWIG_CheckInt(argv[1]);
6669 if (_v) {
6670 if (argc <= 2) {
6671 return _wrap_new_TimerRunner__SWIG_1(self,args);
6672 }
6673 _v = SWIG_CheckBool(argv[2]);
6674 if (_v) {
6675 return _wrap_new_TimerRunner__SWIG_1(self,args);
6676 }
6677 }
6678 }
6679 }
6680
6681 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6682 return NULL;
6683 }
6684
6685
6686 static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
6687 PyObject *resultobj;
6688 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6689 PyObject * obj0 = 0 ;
6690 char *kwnames[] = {
6691 (char *) "self", NULL
6692 };
6693
6694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6697 {
6698 PyThreadState* __tstate = wxPyBeginAllowThreads();
6699 delete arg1;
6700
6701 wxPyEndAllowThreads(__tstate);
6702 if (PyErr_Occurred()) SWIG_fail;
6703 }
6704 Py_INCREF(Py_None); resultobj = Py_None;
6705 return resultobj;
6706 fail:
6707 return NULL;
6708 }
6709
6710
6711 static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
6712 PyObject *resultobj;
6713 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6714 int arg2 ;
6715 bool arg3 = (bool) False ;
6716 PyObject * obj0 = 0 ;
6717 PyObject * obj1 = 0 ;
6718 PyObject * obj2 = 0 ;
6719 char *kwnames[] = {
6720 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6721 };
6722
6723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6726 arg2 = (int) SWIG_AsInt(obj1);
6727 if (PyErr_Occurred()) SWIG_fail;
6728 if (obj2) {
6729 arg3 = (bool) SWIG_AsBool(obj2);
6730 if (PyErr_Occurred()) SWIG_fail;
6731 }
6732 {
6733 PyThreadState* __tstate = wxPyBeginAllowThreads();
6734 (arg1)->Start(arg2,arg3);
6735
6736 wxPyEndAllowThreads(__tstate);
6737 if (PyErr_Occurred()) SWIG_fail;
6738 }
6739 Py_INCREF(Py_None); resultobj = Py_None;
6740 return resultobj;
6741 fail:
6742 return NULL;
6743 }
6744
6745
6746 static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
6747 PyObject *obj;
6748 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6749 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6750 Py_INCREF(obj);
6751 return Py_BuildValue((char *)"");
6752 }
6753 static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
6754 PyObject *resultobj;
6755 wxLog *result;
6756 char *kwnames[] = {
6757 NULL
6758 };
6759
6760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6761 {
6762 PyThreadState* __tstate = wxPyBeginAllowThreads();
6763 result = (wxLog *)new wxLog();
6764
6765 wxPyEndAllowThreads(__tstate);
6766 if (PyErr_Occurred()) SWIG_fail;
6767 }
6768 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
6769 return resultobj;
6770 fail:
6771 return NULL;
6772 }
6773
6774
6775 static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
6776 PyObject *resultobj;
6777 bool result;
6778 char *kwnames[] = {
6779 NULL
6780 };
6781
6782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6783 {
6784 PyThreadState* __tstate = wxPyBeginAllowThreads();
6785 result = (bool)wxLog::IsEnabled();
6786
6787 wxPyEndAllowThreads(__tstate);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6791 return resultobj;
6792 fail:
6793 return NULL;
6794 }
6795
6796
6797 static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
6798 PyObject *resultobj;
6799 bool arg1 = (bool) True ;
6800 bool result;
6801 PyObject * obj0 = 0 ;
6802 char *kwnames[] = {
6803 (char *) "doIt", NULL
6804 };
6805
6806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6807 if (obj0) {
6808 arg1 = (bool) SWIG_AsBool(obj0);
6809 if (PyErr_Occurred()) SWIG_fail;
6810 }
6811 {
6812 PyThreadState* __tstate = wxPyBeginAllowThreads();
6813 result = (bool)wxLog::EnableLogging(arg1);
6814
6815 wxPyEndAllowThreads(__tstate);
6816 if (PyErr_Occurred()) SWIG_fail;
6817 }
6818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6819 return resultobj;
6820 fail:
6821 return NULL;
6822 }
6823
6824
6825 static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
6826 PyObject *resultobj;
6827 wxLogLevel arg1 ;
6828 wxChar *arg2 = (wxChar *) 0 ;
6829 time_t arg3 ;
6830 PyObject * obj0 = 0 ;
6831 PyObject * obj1 = 0 ;
6832 PyObject * obj2 = 0 ;
6833 char *kwnames[] = {
6834 (char *) "level",(char *) "szString",(char *) "t", NULL
6835 };
6836
6837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
6838 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
6841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6842 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 {
6845 PyThreadState* __tstate = wxPyBeginAllowThreads();
6846 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
6847
6848 wxPyEndAllowThreads(__tstate);
6849 if (PyErr_Occurred()) SWIG_fail;
6850 }
6851 Py_INCREF(Py_None); resultobj = Py_None;
6852 return resultobj;
6853 fail:
6854 return NULL;
6855 }
6856
6857
6858 static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
6859 PyObject *resultobj;
6860 wxLog *arg1 = (wxLog *) 0 ;
6861 PyObject * obj0 = 0 ;
6862 char *kwnames[] = {
6863 (char *) "self", NULL
6864 };
6865
6866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
6867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6869 {
6870 PyThreadState* __tstate = wxPyBeginAllowThreads();
6871 (arg1)->Flush();
6872
6873 wxPyEndAllowThreads(__tstate);
6874 if (PyErr_Occurred()) SWIG_fail;
6875 }
6876 Py_INCREF(Py_None); resultobj = Py_None;
6877 return resultobj;
6878 fail:
6879 return NULL;
6880 }
6881
6882
6883 static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
6884 PyObject *resultobj;
6885 char *kwnames[] = {
6886 NULL
6887 };
6888
6889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
6890 {
6891 PyThreadState* __tstate = wxPyBeginAllowThreads();
6892 wxLog::FlushActive();
6893
6894 wxPyEndAllowThreads(__tstate);
6895 if (PyErr_Occurred()) SWIG_fail;
6896 }
6897 Py_INCREF(Py_None); resultobj = Py_None;
6898 return resultobj;
6899 fail:
6900 return NULL;
6901 }
6902
6903
6904 static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
6905 PyObject *resultobj;
6906 wxLog *result;
6907 char *kwnames[] = {
6908 NULL
6909 };
6910
6911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
6912 {
6913 PyThreadState* __tstate = wxPyBeginAllowThreads();
6914 result = (wxLog *)wxLog::GetActiveTarget();
6915
6916 wxPyEndAllowThreads(__tstate);
6917 if (PyErr_Occurred()) SWIG_fail;
6918 }
6919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
6920 return resultobj;
6921 fail:
6922 return NULL;
6923 }
6924
6925
6926 static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
6927 PyObject *resultobj;
6928 wxLog *arg1 = (wxLog *) 0 ;
6929 wxLog *result;
6930 PyObject * obj0 = 0 ;
6931 char *kwnames[] = {
6932 (char *) "pLogger", NULL
6933 };
6934
6935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
6936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6938 {
6939 PyThreadState* __tstate = wxPyBeginAllowThreads();
6940 result = (wxLog *)wxLog::SetActiveTarget(arg1);
6941
6942 wxPyEndAllowThreads(__tstate);
6943 if (PyErr_Occurred()) SWIG_fail;
6944 }
6945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
6946 return resultobj;
6947 fail:
6948 return NULL;
6949 }
6950
6951
6952 static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
6953 PyObject *resultobj;
6954 char *kwnames[] = {
6955 NULL
6956 };
6957
6958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
6959 {
6960 PyThreadState* __tstate = wxPyBeginAllowThreads();
6961 wxLog::Suspend();
6962
6963 wxPyEndAllowThreads(__tstate);
6964 if (PyErr_Occurred()) SWIG_fail;
6965 }
6966 Py_INCREF(Py_None); resultobj = Py_None;
6967 return resultobj;
6968 fail:
6969 return NULL;
6970 }
6971
6972
6973 static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
6974 PyObject *resultobj;
6975 char *kwnames[] = {
6976 NULL
6977 };
6978
6979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
6980 {
6981 PyThreadState* __tstate = wxPyBeginAllowThreads();
6982 wxLog::Resume();
6983
6984 wxPyEndAllowThreads(__tstate);
6985 if (PyErr_Occurred()) SWIG_fail;
6986 }
6987 Py_INCREF(Py_None); resultobj = Py_None;
6988 return resultobj;
6989 fail:
6990 return NULL;
6991 }
6992
6993
6994 static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
6995 PyObject *resultobj;
6996 bool arg1 = (bool) True ;
6997 PyObject * obj0 = 0 ;
6998 char *kwnames[] = {
6999 (char *) "bVerbose", NULL
7000 };
7001
7002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7003 if (obj0) {
7004 arg1 = (bool) SWIG_AsBool(obj0);
7005 if (PyErr_Occurred()) SWIG_fail;
7006 }
7007 {
7008 PyThreadState* __tstate = wxPyBeginAllowThreads();
7009 wxLog::SetVerbose(arg1);
7010
7011 wxPyEndAllowThreads(__tstate);
7012 if (PyErr_Occurred()) SWIG_fail;
7013 }
7014 Py_INCREF(Py_None); resultobj = Py_None;
7015 return resultobj;
7016 fail:
7017 return NULL;
7018 }
7019
7020
7021 static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7022 PyObject *resultobj;
7023 wxLogLevel arg1 ;
7024 PyObject * obj0 = 0 ;
7025 char *kwnames[] = {
7026 (char *) "logLevel", NULL
7027 };
7028
7029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7030 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7031 if (PyErr_Occurred()) SWIG_fail;
7032 {
7033 PyThreadState* __tstate = wxPyBeginAllowThreads();
7034 wxLog::SetLogLevel(arg1);
7035
7036 wxPyEndAllowThreads(__tstate);
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 Py_INCREF(Py_None); resultobj = Py_None;
7040 return resultobj;
7041 fail:
7042 return NULL;
7043 }
7044
7045
7046 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
7047 PyObject *resultobj;
7048 char *kwnames[] = {
7049 NULL
7050 };
7051
7052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7053 {
7054 PyThreadState* __tstate = wxPyBeginAllowThreads();
7055 wxLog::DontCreateOnDemand();
7056
7057 wxPyEndAllowThreads(__tstate);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 Py_INCREF(Py_None); resultobj = Py_None;
7061 return resultobj;
7062 fail:
7063 return NULL;
7064 }
7065
7066
7067 static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj;
7069 wxTraceMask arg1 ;
7070 PyObject * obj0 = 0 ;
7071 char *kwnames[] = {
7072 (char *) "ulMask", NULL
7073 };
7074
7075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7076 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 {
7079 PyThreadState* __tstate = wxPyBeginAllowThreads();
7080 wxLog::SetTraceMask(arg1);
7081
7082 wxPyEndAllowThreads(__tstate);
7083 if (PyErr_Occurred()) SWIG_fail;
7084 }
7085 Py_INCREF(Py_None); resultobj = Py_None;
7086 return resultobj;
7087 fail:
7088 return NULL;
7089 }
7090
7091
7092 static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7093 PyObject *resultobj;
7094 wxString *arg1 = 0 ;
7095 bool temp1 = False ;
7096 PyObject * obj0 = 0 ;
7097 char *kwnames[] = {
7098 (char *) "str", NULL
7099 };
7100
7101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7102 {
7103 arg1 = wxString_in_helper(obj0);
7104 if (arg1 == NULL) SWIG_fail;
7105 temp1 = True;
7106 }
7107 {
7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
7109 wxLog::AddTraceMask((wxString const &)*arg1);
7110
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 Py_INCREF(Py_None); resultobj = Py_None;
7115 {
7116 if (temp1)
7117 delete arg1;
7118 }
7119 return resultobj;
7120 fail:
7121 {
7122 if (temp1)
7123 delete arg1;
7124 }
7125 return NULL;
7126 }
7127
7128
7129 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7130 PyObject *resultobj;
7131 wxString *arg1 = 0 ;
7132 bool temp1 = False ;
7133 PyObject * obj0 = 0 ;
7134 char *kwnames[] = {
7135 (char *) "str", NULL
7136 };
7137
7138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7139 {
7140 arg1 = wxString_in_helper(obj0);
7141 if (arg1 == NULL) SWIG_fail;
7142 temp1 = True;
7143 }
7144 {
7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
7146 wxLog::RemoveTraceMask((wxString const &)*arg1);
7147
7148 wxPyEndAllowThreads(__tstate);
7149 if (PyErr_Occurred()) SWIG_fail;
7150 }
7151 Py_INCREF(Py_None); resultobj = Py_None;
7152 {
7153 if (temp1)
7154 delete arg1;
7155 }
7156 return resultobj;
7157 fail:
7158 {
7159 if (temp1)
7160 delete arg1;
7161 }
7162 return NULL;
7163 }
7164
7165
7166 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7167 PyObject *resultobj;
7168 char *kwnames[] = {
7169 NULL
7170 };
7171
7172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7173 {
7174 PyThreadState* __tstate = wxPyBeginAllowThreads();
7175 wxLog::ClearTraceMasks();
7176
7177 wxPyEndAllowThreads(__tstate);
7178 if (PyErr_Occurred()) SWIG_fail;
7179 }
7180 Py_INCREF(Py_None); resultobj = Py_None;
7181 return resultobj;
7182 fail:
7183 return NULL;
7184 }
7185
7186
7187 static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7188 PyObject *resultobj;
7189 wxArrayString *result;
7190 char *kwnames[] = {
7191 NULL
7192 };
7193
7194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7195 {
7196 PyThreadState* __tstate = wxPyBeginAllowThreads();
7197 {
7198 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7199 result = (wxArrayString *) &_result_ref;
7200 }
7201
7202 wxPyEndAllowThreads(__tstate);
7203 if (PyErr_Occurred()) SWIG_fail;
7204 }
7205 {
7206 resultobj = wxArrayString2PyList_helper(*result);
7207 }
7208 return resultobj;
7209 fail:
7210 return NULL;
7211 }
7212
7213
7214 static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7215 PyObject *resultobj;
7216 wxChar *arg1 = (wxChar *) 0 ;
7217 PyObject * obj0 = 0 ;
7218 char *kwnames[] = {
7219 (char *) "ts", NULL
7220 };
7221
7222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7225 {
7226 PyThreadState* __tstate = wxPyBeginAllowThreads();
7227 wxLog::SetTimestamp((wxChar const *)arg1);
7228
7229 wxPyEndAllowThreads(__tstate);
7230 if (PyErr_Occurred()) SWIG_fail;
7231 }
7232 Py_INCREF(Py_None); resultobj = Py_None;
7233 return resultobj;
7234 fail:
7235 return NULL;
7236 }
7237
7238
7239 static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7240 PyObject *resultobj;
7241 bool result;
7242 char *kwnames[] = {
7243 NULL
7244 };
7245
7246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7247 {
7248 PyThreadState* __tstate = wxPyBeginAllowThreads();
7249 result = (bool)wxLog::GetVerbose();
7250
7251 wxPyEndAllowThreads(__tstate);
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7255 return resultobj;
7256 fail:
7257 return NULL;
7258 }
7259
7260
7261 static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7262 PyObject *resultobj;
7263 wxTraceMask result;
7264 char *kwnames[] = {
7265 NULL
7266 };
7267
7268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7269 {
7270 PyThreadState* __tstate = wxPyBeginAllowThreads();
7271 result = (wxTraceMask)wxLog::GetTraceMask();
7272
7273 wxPyEndAllowThreads(__tstate);
7274 if (PyErr_Occurred()) SWIG_fail;
7275 }
7276 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7277 return resultobj;
7278 fail:
7279 return NULL;
7280 }
7281
7282
7283 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7284 PyObject *resultobj;
7285 wxChar *arg1 = (wxChar *) 0 ;
7286 bool result;
7287 PyObject * obj0 = 0 ;
7288 char *kwnames[] = {
7289 (char *) "mask", NULL
7290 };
7291
7292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7295 {
7296 PyThreadState* __tstate = wxPyBeginAllowThreads();
7297 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7298
7299 wxPyEndAllowThreads(__tstate);
7300 if (PyErr_Occurred()) SWIG_fail;
7301 }
7302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7303 return resultobj;
7304 fail:
7305 return NULL;
7306 }
7307
7308
7309 static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7310 PyObject *resultobj;
7311 wxLogLevel result;
7312 char *kwnames[] = {
7313 NULL
7314 };
7315
7316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7317 {
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 result = (wxLogLevel)wxLog::GetLogLevel();
7320
7321 wxPyEndAllowThreads(__tstate);
7322 if (PyErr_Occurred()) SWIG_fail;
7323 }
7324 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7325 return resultobj;
7326 fail:
7327 return NULL;
7328 }
7329
7330
7331 static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7332 PyObject *resultobj;
7333 wxChar *result;
7334 char *kwnames[] = {
7335 NULL
7336 };
7337
7338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7339 {
7340 PyThreadState* __tstate = wxPyBeginAllowThreads();
7341 result = (wxChar *)wxLog::GetTimestamp();
7342
7343 wxPyEndAllowThreads(__tstate);
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7347 return resultobj;
7348 fail:
7349 return NULL;
7350 }
7351
7352
7353 static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
7354 PyObject *resultobj;
7355 wxString result;
7356 char *kwnames[] = {
7357 NULL
7358 };
7359
7360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7361 {
7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
7363 result = Log_TimeStamp();
7364
7365 wxPyEndAllowThreads(__tstate);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 }
7368 {
7369 #if wxUSE_UNICODE
7370 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7371 #else
7372 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7373 #endif
7374 }
7375 return resultobj;
7376 fail:
7377 return NULL;
7378 }
7379
7380
7381 static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj;
7383 wxLog *arg1 = (wxLog *) 0 ;
7384 PyObject * obj0 = 0 ;
7385 char *kwnames[] = {
7386 (char *) "self", NULL
7387 };
7388
7389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7392 {
7393 PyThreadState* __tstate = wxPyBeginAllowThreads();
7394 wxLog_Destroy(arg1);
7395
7396 wxPyEndAllowThreads(__tstate);
7397 if (PyErr_Occurred()) SWIG_fail;
7398 }
7399 Py_INCREF(Py_None); resultobj = Py_None;
7400 return resultobj;
7401 fail:
7402 return NULL;
7403 }
7404
7405
7406 static PyObject * Log_swigregister(PyObject *, PyObject *args) {
7407 PyObject *obj;
7408 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7409 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7410 Py_INCREF(obj);
7411 return Py_BuildValue((char *)"");
7412 }
7413 static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
7414 PyObject *resultobj;
7415 wxLogStderr *result;
7416 char *kwnames[] = {
7417 NULL
7418 };
7419
7420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7421 {
7422 PyThreadState* __tstate = wxPyBeginAllowThreads();
7423 result = (wxLogStderr *)new wxLogStderr();
7424
7425 wxPyEndAllowThreads(__tstate);
7426 if (PyErr_Occurred()) SWIG_fail;
7427 }
7428 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7429 return resultobj;
7430 fail:
7431 return NULL;
7432 }
7433
7434
7435 static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
7436 PyObject *obj;
7437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7438 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7439 Py_INCREF(obj);
7440 return Py_BuildValue((char *)"");
7441 }
7442 static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
7443 PyObject *resultobj;
7444 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7445 wxLogTextCtrl *result;
7446 PyObject * obj0 = 0 ;
7447 char *kwnames[] = {
7448 (char *) "pTextCtrl", NULL
7449 };
7450
7451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7454 {
7455 PyThreadState* __tstate = wxPyBeginAllowThreads();
7456 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7457
7458 wxPyEndAllowThreads(__tstate);
7459 if (PyErr_Occurred()) SWIG_fail;
7460 }
7461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7462 return resultobj;
7463 fail:
7464 return NULL;
7465 }
7466
7467
7468 static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
7469 PyObject *obj;
7470 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7471 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7472 Py_INCREF(obj);
7473 return Py_BuildValue((char *)"");
7474 }
7475 static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
7476 PyObject *resultobj;
7477 wxLogGui *result;
7478 char *kwnames[] = {
7479 NULL
7480 };
7481
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7483 {
7484 PyThreadState* __tstate = wxPyBeginAllowThreads();
7485 result = (wxLogGui *)new wxLogGui();
7486
7487 wxPyEndAllowThreads(__tstate);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7491 return resultobj;
7492 fail:
7493 return NULL;
7494 }
7495
7496
7497 static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
7498 PyObject *obj;
7499 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7500 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7501 Py_INCREF(obj);
7502 return Py_BuildValue((char *)"");
7503 }
7504 static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
7505 PyObject *resultobj;
7506 wxFrame *arg1 = (wxFrame *) 0 ;
7507 wxString *arg2 = 0 ;
7508 bool arg3 = (bool) True ;
7509 bool arg4 = (bool) True ;
7510 wxLogWindow *result;
7511 bool temp2 = False ;
7512 PyObject * obj0 = 0 ;
7513 PyObject * obj1 = 0 ;
7514 PyObject * obj2 = 0 ;
7515 PyObject * obj3 = 0 ;
7516 char *kwnames[] = {
7517 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7518 };
7519
7520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7523 {
7524 arg2 = wxString_in_helper(obj1);
7525 if (arg2 == NULL) SWIG_fail;
7526 temp2 = True;
7527 }
7528 if (obj2) {
7529 arg3 = (bool) SWIG_AsBool(obj2);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 }
7532 if (obj3) {
7533 arg4 = (bool) SWIG_AsBool(obj3);
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 {
7537 PyThreadState* __tstate = wxPyBeginAllowThreads();
7538 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7539
7540 wxPyEndAllowThreads(__tstate);
7541 if (PyErr_Occurred()) SWIG_fail;
7542 }
7543 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7544 {
7545 if (temp2)
7546 delete arg2;
7547 }
7548 return resultobj;
7549 fail:
7550 {
7551 if (temp2)
7552 delete arg2;
7553 }
7554 return NULL;
7555 }
7556
7557
7558 static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
7559 PyObject *resultobj;
7560 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7561 bool arg2 = (bool) True ;
7562 PyObject * obj0 = 0 ;
7563 PyObject * obj1 = 0 ;
7564 char *kwnames[] = {
7565 (char *) "self",(char *) "bShow", NULL
7566 };
7567
7568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7571 if (obj1) {
7572 arg2 = (bool) SWIG_AsBool(obj1);
7573 if (PyErr_Occurred()) SWIG_fail;
7574 }
7575 {
7576 PyThreadState* __tstate = wxPyBeginAllowThreads();
7577 (arg1)->Show(arg2);
7578
7579 wxPyEndAllowThreads(__tstate);
7580 if (PyErr_Occurred()) SWIG_fail;
7581 }
7582 Py_INCREF(Py_None); resultobj = Py_None;
7583 return resultobj;
7584 fail:
7585 return NULL;
7586 }
7587
7588
7589 static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
7590 PyObject *resultobj;
7591 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7592 wxFrame *result;
7593 PyObject * obj0 = 0 ;
7594 char *kwnames[] = {
7595 (char *) "self", NULL
7596 };
7597
7598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7601 {
7602 PyThreadState* __tstate = wxPyBeginAllowThreads();
7603 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7604
7605 wxPyEndAllowThreads(__tstate);
7606 if (PyErr_Occurred()) SWIG_fail;
7607 }
7608 {
7609 resultobj = wxPyMake_wxObject(result);
7610 }
7611 return resultobj;
7612 fail:
7613 return NULL;
7614 }
7615
7616
7617 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
7618 PyObject *resultobj;
7619 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7620 wxLog *result;
7621 PyObject * obj0 = 0 ;
7622 char *kwnames[] = {
7623 (char *) "self", NULL
7624 };
7625
7626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7629 {
7630 PyThreadState* __tstate = wxPyBeginAllowThreads();
7631 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7632
7633 wxPyEndAllowThreads(__tstate);
7634 if (PyErr_Occurred()) SWIG_fail;
7635 }
7636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7637 return resultobj;
7638 fail:
7639 return NULL;
7640 }
7641
7642
7643 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
7644 PyObject *resultobj;
7645 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7646 bool result;
7647 PyObject * obj0 = 0 ;
7648 char *kwnames[] = {
7649 (char *) "self", NULL
7650 };
7651
7652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7655 {
7656 PyThreadState* __tstate = wxPyBeginAllowThreads();
7657 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7658
7659 wxPyEndAllowThreads(__tstate);
7660 if (PyErr_Occurred()) SWIG_fail;
7661 }
7662 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7663 return resultobj;
7664 fail:
7665 return NULL;
7666 }
7667
7668
7669 static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
7670 PyObject *resultobj;
7671 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7672 bool arg2 ;
7673 PyObject * obj0 = 0 ;
7674 PyObject * obj1 = 0 ;
7675 char *kwnames[] = {
7676 (char *) "self",(char *) "bDoPass", NULL
7677 };
7678
7679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7682 arg2 = (bool) SWIG_AsBool(obj1);
7683 if (PyErr_Occurred()) SWIG_fail;
7684 {
7685 PyThreadState* __tstate = wxPyBeginAllowThreads();
7686 (arg1)->PassMessages(arg2);
7687
7688 wxPyEndAllowThreads(__tstate);
7689 if (PyErr_Occurred()) SWIG_fail;
7690 }
7691 Py_INCREF(Py_None); resultobj = Py_None;
7692 return resultobj;
7693 fail:
7694 return NULL;
7695 }
7696
7697
7698 static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
7699 PyObject *obj;
7700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7701 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7702 Py_INCREF(obj);
7703 return Py_BuildValue((char *)"");
7704 }
7705 static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
7706 PyObject *resultobj;
7707 wxLog *arg1 = (wxLog *) 0 ;
7708 wxLogChain *result;
7709 PyObject * obj0 = 0 ;
7710 char *kwnames[] = {
7711 (char *) "logger", NULL
7712 };
7713
7714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7717 {
7718 PyThreadState* __tstate = wxPyBeginAllowThreads();
7719 result = (wxLogChain *)new wxLogChain(arg1);
7720
7721 wxPyEndAllowThreads(__tstate);
7722 if (PyErr_Occurred()) SWIG_fail;
7723 }
7724 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
7725 return resultobj;
7726 fail:
7727 return NULL;
7728 }
7729
7730
7731 static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
7732 PyObject *resultobj;
7733 wxLogChain *arg1 = (wxLogChain *) 0 ;
7734 wxLog *arg2 = (wxLog *) 0 ;
7735 PyObject * obj0 = 0 ;
7736 PyObject * obj1 = 0 ;
7737 char *kwnames[] = {
7738 (char *) "self",(char *) "logger", NULL
7739 };
7740
7741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7744 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7746 {
7747 PyThreadState* __tstate = wxPyBeginAllowThreads();
7748 (arg1)->SetLog(arg2);
7749
7750 wxPyEndAllowThreads(__tstate);
7751 if (PyErr_Occurred()) SWIG_fail;
7752 }
7753 Py_INCREF(Py_None); resultobj = Py_None;
7754 return resultobj;
7755 fail:
7756 return NULL;
7757 }
7758
7759
7760 static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
7761 PyObject *resultobj;
7762 wxLogChain *arg1 = (wxLogChain *) 0 ;
7763 bool arg2 ;
7764 PyObject * obj0 = 0 ;
7765 PyObject * obj1 = 0 ;
7766 char *kwnames[] = {
7767 (char *) "self",(char *) "bDoPass", NULL
7768 };
7769
7770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7773 arg2 = (bool) SWIG_AsBool(obj1);
7774 if (PyErr_Occurred()) SWIG_fail;
7775 {
7776 PyThreadState* __tstate = wxPyBeginAllowThreads();
7777 (arg1)->PassMessages(arg2);
7778
7779 wxPyEndAllowThreads(__tstate);
7780 if (PyErr_Occurred()) SWIG_fail;
7781 }
7782 Py_INCREF(Py_None); resultobj = Py_None;
7783 return resultobj;
7784 fail:
7785 return NULL;
7786 }
7787
7788
7789 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
7790 PyObject *resultobj;
7791 wxLogChain *arg1 = (wxLogChain *) 0 ;
7792 bool result;
7793 PyObject * obj0 = 0 ;
7794 char *kwnames[] = {
7795 (char *) "self", NULL
7796 };
7797
7798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7801 {
7802 PyThreadState* __tstate = wxPyBeginAllowThreads();
7803 result = (bool)(arg1)->IsPassingMessages();
7804
7805 wxPyEndAllowThreads(__tstate);
7806 if (PyErr_Occurred()) SWIG_fail;
7807 }
7808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7809 return resultobj;
7810 fail:
7811 return NULL;
7812 }
7813
7814
7815 static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
7816 PyObject *resultobj;
7817 wxLogChain *arg1 = (wxLogChain *) 0 ;
7818 wxLog *result;
7819 PyObject * obj0 = 0 ;
7820 char *kwnames[] = {
7821 (char *) "self", NULL
7822 };
7823
7824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
7825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7827 {
7828 PyThreadState* __tstate = wxPyBeginAllowThreads();
7829 result = (wxLog *)(arg1)->GetOldLog();
7830
7831 wxPyEndAllowThreads(__tstate);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7835 return resultobj;
7836 fail:
7837 return NULL;
7838 }
7839
7840
7841 static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
7842 PyObject *obj;
7843 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7844 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
7845 Py_INCREF(obj);
7846 return Py_BuildValue((char *)"");
7847 }
7848 static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
7849 PyObject *resultobj;
7850 unsigned long result;
7851 char *kwnames[] = {
7852 NULL
7853 };
7854
7855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
7856 {
7857 PyThreadState* __tstate = wxPyBeginAllowThreads();
7858 result = (unsigned long)wxSysErrorCode();
7859
7860 wxPyEndAllowThreads(__tstate);
7861 if (PyErr_Occurred()) SWIG_fail;
7862 }
7863 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7864 return resultobj;
7865 fail:
7866 return NULL;
7867 }
7868
7869
7870 static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
7871 PyObject *resultobj;
7872 unsigned long arg1 = (unsigned long) 0 ;
7873 wxString result;
7874 PyObject * obj0 = 0 ;
7875 char *kwnames[] = {
7876 (char *) "nErrCode", NULL
7877 };
7878
7879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
7880 if (obj0) {
7881 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 {
7885 PyThreadState* __tstate = wxPyBeginAllowThreads();
7886 result = wxSysErrorMsg(arg1);
7887
7888 wxPyEndAllowThreads(__tstate);
7889 if (PyErr_Occurred()) SWIG_fail;
7890 }
7891 {
7892 #if wxUSE_UNICODE
7893 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7894 #else
7895 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7896 #endif
7897 }
7898 return resultobj;
7899 fail:
7900 return NULL;
7901 }
7902
7903
7904 static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
7905 PyObject *resultobj;
7906 wxString *arg1 = 0 ;
7907 bool temp1 = False ;
7908 PyObject * obj0 = 0 ;
7909 char *kwnames[] = {
7910 (char *) "msg", NULL
7911 };
7912
7913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
7914 {
7915 arg1 = wxString_in_helper(obj0);
7916 if (arg1 == NULL) SWIG_fail;
7917 temp1 = True;
7918 }
7919 {
7920 PyThreadState* __tstate = wxPyBeginAllowThreads();
7921 wxLogFatalError((wxString const &)*arg1);
7922
7923 wxPyEndAllowThreads(__tstate);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 Py_INCREF(Py_None); resultobj = Py_None;
7927 {
7928 if (temp1)
7929 delete arg1;
7930 }
7931 return resultobj;
7932 fail:
7933 {
7934 if (temp1)
7935 delete arg1;
7936 }
7937 return NULL;
7938 }
7939
7940
7941 static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
7942 PyObject *resultobj;
7943 wxString *arg1 = 0 ;
7944 bool temp1 = False ;
7945 PyObject * obj0 = 0 ;
7946 char *kwnames[] = {
7947 (char *) "msg", NULL
7948 };
7949
7950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
7951 {
7952 arg1 = wxString_in_helper(obj0);
7953 if (arg1 == NULL) SWIG_fail;
7954 temp1 = True;
7955 }
7956 {
7957 PyThreadState* __tstate = wxPyBeginAllowThreads();
7958 wxLogError((wxString const &)*arg1);
7959
7960 wxPyEndAllowThreads(__tstate);
7961 if (PyErr_Occurred()) SWIG_fail;
7962 }
7963 Py_INCREF(Py_None); resultobj = Py_None;
7964 {
7965 if (temp1)
7966 delete arg1;
7967 }
7968 return resultobj;
7969 fail:
7970 {
7971 if (temp1)
7972 delete arg1;
7973 }
7974 return NULL;
7975 }
7976
7977
7978 static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
7979 PyObject *resultobj;
7980 wxString *arg1 = 0 ;
7981 bool temp1 = False ;
7982 PyObject * obj0 = 0 ;
7983 char *kwnames[] = {
7984 (char *) "msg", NULL
7985 };
7986
7987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
7988 {
7989 arg1 = wxString_in_helper(obj0);
7990 if (arg1 == NULL) SWIG_fail;
7991 temp1 = True;
7992 }
7993 {
7994 PyThreadState* __tstate = wxPyBeginAllowThreads();
7995 wxLogWarning((wxString const &)*arg1);
7996
7997 wxPyEndAllowThreads(__tstate);
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 Py_INCREF(Py_None); resultobj = Py_None;
8001 {
8002 if (temp1)
8003 delete arg1;
8004 }
8005 return resultobj;
8006 fail:
8007 {
8008 if (temp1)
8009 delete arg1;
8010 }
8011 return NULL;
8012 }
8013
8014
8015 static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
8016 PyObject *resultobj;
8017 wxString *arg1 = 0 ;
8018 bool temp1 = False ;
8019 PyObject * obj0 = 0 ;
8020 char *kwnames[] = {
8021 (char *) "msg", NULL
8022 };
8023
8024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8025 {
8026 arg1 = wxString_in_helper(obj0);
8027 if (arg1 == NULL) SWIG_fail;
8028 temp1 = True;
8029 }
8030 {
8031 PyThreadState* __tstate = wxPyBeginAllowThreads();
8032 wxLogMessage((wxString const &)*arg1);
8033
8034 wxPyEndAllowThreads(__tstate);
8035 if (PyErr_Occurred()) SWIG_fail;
8036 }
8037 Py_INCREF(Py_None); resultobj = Py_None;
8038 {
8039 if (temp1)
8040 delete arg1;
8041 }
8042 return resultobj;
8043 fail:
8044 {
8045 if (temp1)
8046 delete arg1;
8047 }
8048 return NULL;
8049 }
8050
8051
8052 static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj;
8054 wxString *arg1 = 0 ;
8055 bool temp1 = False ;
8056 PyObject * obj0 = 0 ;
8057 char *kwnames[] = {
8058 (char *) "msg", NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8062 {
8063 arg1 = wxString_in_helper(obj0);
8064 if (arg1 == NULL) SWIG_fail;
8065 temp1 = True;
8066 }
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 wxLogInfo((wxString const &)*arg1);
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 Py_INCREF(Py_None); resultobj = Py_None;
8075 {
8076 if (temp1)
8077 delete arg1;
8078 }
8079 return resultobj;
8080 fail:
8081 {
8082 if (temp1)
8083 delete arg1;
8084 }
8085 return NULL;
8086 }
8087
8088
8089 static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj;
8091 wxString *arg1 = 0 ;
8092 bool temp1 = False ;
8093 PyObject * obj0 = 0 ;
8094 char *kwnames[] = {
8095 (char *) "msg", NULL
8096 };
8097
8098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8099 {
8100 arg1 = wxString_in_helper(obj0);
8101 if (arg1 == NULL) SWIG_fail;
8102 temp1 = True;
8103 }
8104 {
8105 PyThreadState* __tstate = wxPyBeginAllowThreads();
8106 wxLogDebug((wxString const &)*arg1);
8107
8108 wxPyEndAllowThreads(__tstate);
8109 if (PyErr_Occurred()) SWIG_fail;
8110 }
8111 Py_INCREF(Py_None); resultobj = Py_None;
8112 {
8113 if (temp1)
8114 delete arg1;
8115 }
8116 return resultobj;
8117 fail:
8118 {
8119 if (temp1)
8120 delete arg1;
8121 }
8122 return NULL;
8123 }
8124
8125
8126 static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
8127 PyObject *resultobj;
8128 wxString *arg1 = 0 ;
8129 bool temp1 = False ;
8130 PyObject * obj0 = 0 ;
8131 char *kwnames[] = {
8132 (char *) "msg", NULL
8133 };
8134
8135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8136 {
8137 arg1 = wxString_in_helper(obj0);
8138 if (arg1 == NULL) SWIG_fail;
8139 temp1 = True;
8140 }
8141 {
8142 PyThreadState* __tstate = wxPyBeginAllowThreads();
8143 wxLogVerbose((wxString const &)*arg1);
8144
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 Py_INCREF(Py_None); resultobj = Py_None;
8149 {
8150 if (temp1)
8151 delete arg1;
8152 }
8153 return resultobj;
8154 fail:
8155 {
8156 if (temp1)
8157 delete arg1;
8158 }
8159 return NULL;
8160 }
8161
8162
8163 static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
8164 PyObject *resultobj;
8165 wxString *arg1 = 0 ;
8166 bool temp1 = False ;
8167 PyObject * obj0 = 0 ;
8168 char *kwnames[] = {
8169 (char *) "msg", NULL
8170 };
8171
8172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8173 {
8174 arg1 = wxString_in_helper(obj0);
8175 if (arg1 == NULL) SWIG_fail;
8176 temp1 = True;
8177 }
8178 {
8179 PyThreadState* __tstate = wxPyBeginAllowThreads();
8180 wxLogStatus((wxString const &)*arg1);
8181
8182 wxPyEndAllowThreads(__tstate);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 }
8185 Py_INCREF(Py_None); resultobj = Py_None;
8186 {
8187 if (temp1)
8188 delete arg1;
8189 }
8190 return resultobj;
8191 fail:
8192 {
8193 if (temp1)
8194 delete arg1;
8195 }
8196 return NULL;
8197 }
8198
8199
8200 static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
8201 PyObject *resultobj;
8202 wxFrame *arg1 = (wxFrame *) 0 ;
8203 wxString *arg2 = 0 ;
8204 bool temp2 = False ;
8205 PyObject * obj0 = 0 ;
8206 PyObject * obj1 = 0 ;
8207 char *kwnames[] = {
8208 (char *) "pFrame",(char *) "msg", NULL
8209 };
8210
8211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8214 {
8215 arg2 = wxString_in_helper(obj1);
8216 if (arg2 == NULL) SWIG_fail;
8217 temp2 = True;
8218 }
8219 {
8220 PyThreadState* __tstate = wxPyBeginAllowThreads();
8221 wxLogStatus(arg1,(wxString const &)*arg2);
8222
8223 wxPyEndAllowThreads(__tstate);
8224 if (PyErr_Occurred()) SWIG_fail;
8225 }
8226 Py_INCREF(Py_None); resultobj = Py_None;
8227 {
8228 if (temp2)
8229 delete arg2;
8230 }
8231 return resultobj;
8232 fail:
8233 {
8234 if (temp2)
8235 delete arg2;
8236 }
8237 return NULL;
8238 }
8239
8240
8241 static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
8242 PyObject *resultobj;
8243 wxString *arg1 = 0 ;
8244 bool temp1 = False ;
8245 PyObject * obj0 = 0 ;
8246 char *kwnames[] = {
8247 (char *) "msg", NULL
8248 };
8249
8250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8251 {
8252 arg1 = wxString_in_helper(obj0);
8253 if (arg1 == NULL) SWIG_fail;
8254 temp1 = True;
8255 }
8256 {
8257 PyThreadState* __tstate = wxPyBeginAllowThreads();
8258 wxLogSysError((wxString const &)*arg1);
8259
8260 wxPyEndAllowThreads(__tstate);
8261 if (PyErr_Occurred()) SWIG_fail;
8262 }
8263 Py_INCREF(Py_None); resultobj = Py_None;
8264 {
8265 if (temp1)
8266 delete arg1;
8267 }
8268 return resultobj;
8269 fail:
8270 {
8271 if (temp1)
8272 delete arg1;
8273 }
8274 return NULL;
8275 }
8276
8277
8278 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
8279 PyObject *resultobj;
8280 unsigned long arg1 ;
8281 wxString *arg2 = 0 ;
8282 bool temp2 = False ;
8283 PyObject * obj0 = 0 ;
8284 PyObject * obj1 = 0 ;
8285
8286 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8287 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 {
8290 arg2 = wxString_in_helper(obj1);
8291 if (arg2 == NULL) SWIG_fail;
8292 temp2 = True;
8293 }
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 wxLogTrace(arg1,(wxString const &)*arg2);
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 Py_INCREF(Py_None); resultobj = Py_None;
8302 {
8303 if (temp2)
8304 delete arg2;
8305 }
8306 return resultobj;
8307 fail:
8308 {
8309 if (temp2)
8310 delete arg2;
8311 }
8312 return NULL;
8313 }
8314
8315
8316 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
8317 PyObject *resultobj;
8318 wxString *arg1 = 0 ;
8319 wxString *arg2 = 0 ;
8320 bool temp1 = False ;
8321 bool temp2 = False ;
8322 PyObject * obj0 = 0 ;
8323 PyObject * obj1 = 0 ;
8324
8325 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8326 {
8327 arg1 = wxString_in_helper(obj0);
8328 if (arg1 == NULL) SWIG_fail;
8329 temp1 = True;
8330 }
8331 {
8332 arg2 = wxString_in_helper(obj1);
8333 if (arg2 == NULL) SWIG_fail;
8334 temp2 = True;
8335 }
8336 {
8337 PyThreadState* __tstate = wxPyBeginAllowThreads();
8338 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8339
8340 wxPyEndAllowThreads(__tstate);
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 Py_INCREF(Py_None); resultobj = Py_None;
8344 {
8345 if (temp1)
8346 delete arg1;
8347 }
8348 {
8349 if (temp2)
8350 delete arg2;
8351 }
8352 return resultobj;
8353 fail:
8354 {
8355 if (temp1)
8356 delete arg1;
8357 }
8358 {
8359 if (temp2)
8360 delete arg2;
8361 }
8362 return NULL;
8363 }
8364
8365
8366 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8367 int argc;
8368 PyObject *argv[3];
8369 int ii;
8370
8371 argc = PyObject_Length(args);
8372 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8373 argv[ii] = PyTuple_GetItem(args,ii);
8374 }
8375 if (argc == 2) {
8376 int _v;
8377 {
8378 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8379 }
8380 if (_v) {
8381 {
8382 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8383 }
8384 if (_v) {
8385 return _wrap_LogTrace__SWIG_1(self,args);
8386 }
8387 }
8388 }
8389 if (argc == 2) {
8390 int _v;
8391 _v = SWIG_CheckUnsignedLong(argv[0]);
8392 if (_v) {
8393 {
8394 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8395 }
8396 if (_v) {
8397 return _wrap_LogTrace__SWIG_0(self,args);
8398 }
8399 }
8400 }
8401
8402 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8403 return NULL;
8404 }
8405
8406
8407 static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
8408 PyObject *resultobj;
8409 unsigned long arg1 ;
8410 wxString *arg2 = 0 ;
8411 bool temp2 = False ;
8412 PyObject * obj0 = 0 ;
8413 PyObject * obj1 = 0 ;
8414 char *kwnames[] = {
8415 (char *) "level",(char *) "msg", NULL
8416 };
8417
8418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8419 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8420 if (PyErr_Occurred()) SWIG_fail;
8421 {
8422 arg2 = wxString_in_helper(obj1);
8423 if (arg2 == NULL) SWIG_fail;
8424 temp2 = True;
8425 }
8426 {
8427 PyThreadState* __tstate = wxPyBeginAllowThreads();
8428 wxLogGeneric(arg1,(wxString const &)*arg2);
8429
8430 wxPyEndAllowThreads(__tstate);
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
8433 Py_INCREF(Py_None); resultobj = Py_None;
8434 {
8435 if (temp2)
8436 delete arg2;
8437 }
8438 return resultobj;
8439 fail:
8440 {
8441 if (temp2)
8442 delete arg2;
8443 }
8444 return NULL;
8445 }
8446
8447
8448 static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
8449 PyObject *resultobj;
8450 wxString *arg1 = 0 ;
8451 wxString *arg2 = 0 ;
8452 bool temp1 = False ;
8453 bool temp2 = False ;
8454 PyObject * obj0 = 0 ;
8455 PyObject * obj1 = 0 ;
8456 char *kwnames[] = {
8457 (char *) "title",(char *) "text", NULL
8458 };
8459
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8461 {
8462 arg1 = wxString_in_helper(obj0);
8463 if (arg1 == NULL) SWIG_fail;
8464 temp1 = True;
8465 }
8466 {
8467 arg2 = wxString_in_helper(obj1);
8468 if (arg2 == NULL) SWIG_fail;
8469 temp2 = True;
8470 }
8471 {
8472 PyThreadState* __tstate = wxPyBeginAllowThreads();
8473 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8474
8475 wxPyEndAllowThreads(__tstate);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 Py_INCREF(Py_None); resultobj = Py_None;
8479 {
8480 if (temp1)
8481 delete arg1;
8482 }
8483 {
8484 if (temp2)
8485 delete arg2;
8486 }
8487 return resultobj;
8488 fail:
8489 {
8490 if (temp1)
8491 delete arg1;
8492 }
8493 {
8494 if (temp2)
8495 delete arg2;
8496 }
8497 return NULL;
8498 }
8499
8500
8501 static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj;
8503 wxLogNull *result;
8504 char *kwnames[] = {
8505 NULL
8506 };
8507
8508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8509 {
8510 PyThreadState* __tstate = wxPyBeginAllowThreads();
8511 result = (wxLogNull *)new wxLogNull();
8512
8513 wxPyEndAllowThreads(__tstate);
8514 if (PyErr_Occurred()) SWIG_fail;
8515 }
8516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8517 return resultobj;
8518 fail:
8519 return NULL;
8520 }
8521
8522
8523 static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
8524 PyObject *resultobj;
8525 wxLogNull *arg1 = (wxLogNull *) 0 ;
8526 PyObject * obj0 = 0 ;
8527 char *kwnames[] = {
8528 (char *) "self", NULL
8529 };
8530
8531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8534 {
8535 PyThreadState* __tstate = wxPyBeginAllowThreads();
8536 delete arg1;
8537
8538 wxPyEndAllowThreads(__tstate);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 Py_INCREF(Py_None); resultobj = Py_None;
8542 return resultobj;
8543 fail:
8544 return NULL;
8545 }
8546
8547
8548 static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
8549 PyObject *obj;
8550 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8551 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8552 Py_INCREF(obj);
8553 return Py_BuildValue((char *)"");
8554 }
8555 static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
8556 PyObject *resultobj;
8557 wxPyLog *result;
8558 char *kwnames[] = {
8559 NULL
8560 };
8561
8562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8563 {
8564 PyThreadState* __tstate = wxPyBeginAllowThreads();
8565 result = (wxPyLog *)new wxPyLog();
8566
8567 wxPyEndAllowThreads(__tstate);
8568 if (PyErr_Occurred()) SWIG_fail;
8569 }
8570 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8571 return resultobj;
8572 fail:
8573 return NULL;
8574 }
8575
8576
8577 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8578 PyObject *resultobj;
8579 wxPyLog *arg1 = (wxPyLog *) 0 ;
8580 PyObject *arg2 = (PyObject *) 0 ;
8581 PyObject *arg3 = (PyObject *) 0 ;
8582 PyObject * obj0 = 0 ;
8583 PyObject * obj1 = 0 ;
8584 PyObject * obj2 = 0 ;
8585 char *kwnames[] = {
8586 (char *) "self",(char *) "self",(char *) "_class", NULL
8587 };
8588
8589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8592 arg2 = obj1;
8593 arg3 = obj2;
8594 {
8595 PyThreadState* __tstate = wxPyBeginAllowThreads();
8596 (arg1)->_setCallbackInfo(arg2,arg3);
8597
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 Py_INCREF(Py_None); resultobj = Py_None;
8602 return resultobj;
8603 fail:
8604 return NULL;
8605 }
8606
8607
8608 static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
8609 PyObject *obj;
8610 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8611 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8612 Py_INCREF(obj);
8613 return Py_BuildValue((char *)"");
8614 }
8615 static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
8616 PyObject *resultobj;
8617 int arg1 ;
8618 int arg2 = (int) wxSIGTERM ;
8619 int result;
8620 PyObject * obj0 = 0 ;
8621 PyObject * obj1 = 0 ;
8622 char *kwnames[] = {
8623 (char *) "pid",(char *) "sig", NULL
8624 };
8625
8626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8627 arg1 = (int) SWIG_AsInt(obj0);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 if (obj1) {
8630 arg2 = (wxSignal) SWIG_AsInt(obj1);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 {
8634 PyThreadState* __tstate = wxPyBeginAllowThreads();
8635 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8636
8637 wxPyEndAllowThreads(__tstate);
8638 if (PyErr_Occurred()) SWIG_fail;
8639 }
8640 resultobj = SWIG_FromInt((int)result);
8641 return resultobj;
8642 fail:
8643 return NULL;
8644 }
8645
8646
8647 static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
8648 PyObject *resultobj;
8649 int arg1 ;
8650 bool result;
8651 PyObject * obj0 = 0 ;
8652 char *kwnames[] = {
8653 (char *) "pid", NULL
8654 };
8655
8656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8657 arg1 = (int) SWIG_AsInt(obj0);
8658 if (PyErr_Occurred()) SWIG_fail;
8659 {
8660 PyThreadState* __tstate = wxPyBeginAllowThreads();
8661 result = (bool)wxPyProcess::Exists(arg1);
8662
8663 wxPyEndAllowThreads(__tstate);
8664 if (PyErr_Occurred()) SWIG_fail;
8665 }
8666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8667 return resultobj;
8668 fail:
8669 return NULL;
8670 }
8671
8672
8673 static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
8674 PyObject *resultobj;
8675 wxString *arg1 = 0 ;
8676 int arg2 = (int) wxEXEC_ASYNC ;
8677 wxPyProcess *result;
8678 bool temp1 = False ;
8679 PyObject * obj0 = 0 ;
8680 PyObject * obj1 = 0 ;
8681 char *kwnames[] = {
8682 (char *) "cmd",(char *) "flags", NULL
8683 };
8684
8685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8686 {
8687 arg1 = wxString_in_helper(obj0);
8688 if (arg1 == NULL) SWIG_fail;
8689 temp1 = True;
8690 }
8691 if (obj1) {
8692 arg2 = (int) SWIG_AsInt(obj1);
8693 if (PyErr_Occurred()) SWIG_fail;
8694 }
8695 {
8696 PyThreadState* __tstate = wxPyBeginAllowThreads();
8697 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8698
8699 wxPyEndAllowThreads(__tstate);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 }
8702 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
8703 {
8704 if (temp1)
8705 delete arg1;
8706 }
8707 return resultobj;
8708 fail:
8709 {
8710 if (temp1)
8711 delete arg1;
8712 }
8713 return NULL;
8714 }
8715
8716
8717 static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
8718 PyObject *resultobj;
8719 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8720 int arg2 = (int) -1 ;
8721 wxPyProcess *result;
8722 PyObject * obj0 = 0 ;
8723 PyObject * obj1 = 0 ;
8724 char *kwnames[] = {
8725 (char *) "parent",(char *) "id", NULL
8726 };
8727
8728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
8729 if (obj0) {
8730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8732 }
8733 if (obj1) {
8734 arg2 = (int) SWIG_AsInt(obj1);
8735 if (PyErr_Occurred()) SWIG_fail;
8736 }
8737 {
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8740
8741 wxPyEndAllowThreads(__tstate);
8742 if (PyErr_Occurred()) SWIG_fail;
8743 }
8744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
8745 return resultobj;
8746 fail:
8747 return NULL;
8748 }
8749
8750
8751 static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8752 PyObject *resultobj;
8753 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8754 PyObject *arg2 = (PyObject *) 0 ;
8755 PyObject *arg3 = (PyObject *) 0 ;
8756 PyObject * obj0 = 0 ;
8757 PyObject * obj1 = 0 ;
8758 PyObject * obj2 = 0 ;
8759 char *kwnames[] = {
8760 (char *) "self",(char *) "self",(char *) "_class", NULL
8761 };
8762
8763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8766 arg2 = obj1;
8767 arg3 = obj2;
8768 {
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 (arg1)->_setCallbackInfo(arg2,arg3);
8771
8772 wxPyEndAllowThreads(__tstate);
8773 if (PyErr_Occurred()) SWIG_fail;
8774 }
8775 Py_INCREF(Py_None); resultobj = Py_None;
8776 return resultobj;
8777 fail:
8778 return NULL;
8779 }
8780
8781
8782 static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
8783 PyObject *resultobj;
8784 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8785 int arg2 ;
8786 int arg3 ;
8787 PyObject * obj0 = 0 ;
8788 PyObject * obj1 = 0 ;
8789 PyObject * obj2 = 0 ;
8790 char *kwnames[] = {
8791 (char *) "self",(char *) "pid",(char *) "status", NULL
8792 };
8793
8794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
8795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8797 arg2 = (int) SWIG_AsInt(obj1);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 arg3 = (int) SWIG_AsInt(obj2);
8800 if (PyErr_Occurred()) SWIG_fail;
8801 {
8802 PyThreadState* __tstate = wxPyBeginAllowThreads();
8803 (arg1)->base_OnTerminate(arg2,arg3);
8804
8805 wxPyEndAllowThreads(__tstate);
8806 if (PyErr_Occurred()) SWIG_fail;
8807 }
8808 Py_INCREF(Py_None); resultobj = Py_None;
8809 return resultobj;
8810 fail:
8811 return NULL;
8812 }
8813
8814
8815 static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
8816 PyObject *resultobj;
8817 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8818 PyObject * obj0 = 0 ;
8819 char *kwnames[] = {
8820 (char *) "self", NULL
8821 };
8822
8823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
8824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8826 {
8827 PyThreadState* __tstate = wxPyBeginAllowThreads();
8828 (arg1)->Redirect();
8829
8830 wxPyEndAllowThreads(__tstate);
8831 if (PyErr_Occurred()) SWIG_fail;
8832 }
8833 Py_INCREF(Py_None); resultobj = Py_None;
8834 return resultobj;
8835 fail:
8836 return NULL;
8837 }
8838
8839
8840 static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
8841 PyObject *resultobj;
8842 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8843 bool result;
8844 PyObject * obj0 = 0 ;
8845 char *kwnames[] = {
8846 (char *) "self", NULL
8847 };
8848
8849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
8850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8852 {
8853 PyThreadState* __tstate = wxPyBeginAllowThreads();
8854 result = (bool)(arg1)->IsRedirected();
8855
8856 wxPyEndAllowThreads(__tstate);
8857 if (PyErr_Occurred()) SWIG_fail;
8858 }
8859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8860 return resultobj;
8861 fail:
8862 return NULL;
8863 }
8864
8865
8866 static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
8867 PyObject *resultobj;
8868 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8869 PyObject * obj0 = 0 ;
8870 char *kwnames[] = {
8871 (char *) "self", NULL
8872 };
8873
8874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
8875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8877 {
8878 PyThreadState* __tstate = wxPyBeginAllowThreads();
8879 (arg1)->Detach();
8880
8881 wxPyEndAllowThreads(__tstate);
8882 if (PyErr_Occurred()) SWIG_fail;
8883 }
8884 Py_INCREF(Py_None); resultobj = Py_None;
8885 return resultobj;
8886 fail:
8887 return NULL;
8888 }
8889
8890
8891 static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
8892 PyObject *resultobj;
8893 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8894 wxInputStream *result;
8895 PyObject * obj0 = 0 ;
8896 char *kwnames[] = {
8897 (char *) "self", NULL
8898 };
8899
8900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
8901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8903 {
8904 PyThreadState* __tstate = wxPyBeginAllowThreads();
8905 result = (wxInputStream *)(arg1)->GetInputStream();
8906
8907 wxPyEndAllowThreads(__tstate);
8908 if (PyErr_Occurred()) SWIG_fail;
8909 }
8910 {
8911 wxPyInputStream * _ptr = NULL;
8912
8913 if (result) {
8914 _ptr = new wxPyInputStream(result);
8915 }
8916 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
8917 }
8918 return resultobj;
8919 fail:
8920 return NULL;
8921 }
8922
8923
8924 static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
8925 PyObject *resultobj;
8926 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8927 wxInputStream *result;
8928 PyObject * obj0 = 0 ;
8929 char *kwnames[] = {
8930 (char *) "self", NULL
8931 };
8932
8933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
8934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8936 {
8937 PyThreadState* __tstate = wxPyBeginAllowThreads();
8938 result = (wxInputStream *)(arg1)->GetErrorStream();
8939
8940 wxPyEndAllowThreads(__tstate);
8941 if (PyErr_Occurred()) SWIG_fail;
8942 }
8943 {
8944 wxPyInputStream * _ptr = NULL;
8945
8946 if (result) {
8947 _ptr = new wxPyInputStream(result);
8948 }
8949 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
8950 }
8951 return resultobj;
8952 fail:
8953 return NULL;
8954 }
8955
8956
8957 static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
8958 PyObject *resultobj;
8959 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8960 wxOutputStream *result;
8961 PyObject * obj0 = 0 ;
8962 char *kwnames[] = {
8963 (char *) "self", NULL
8964 };
8965
8966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
8967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8969 {
8970 PyThreadState* __tstate = wxPyBeginAllowThreads();
8971 result = (wxOutputStream *)(arg1)->GetOutputStream();
8972
8973 wxPyEndAllowThreads(__tstate);
8974 if (PyErr_Occurred()) SWIG_fail;
8975 }
8976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
8977 return resultobj;
8978 fail:
8979 return NULL;
8980 }
8981
8982
8983 static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
8984 PyObject *resultobj;
8985 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8986 PyObject * obj0 = 0 ;
8987 char *kwnames[] = {
8988 (char *) "self", NULL
8989 };
8990
8991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
8992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8994 {
8995 PyThreadState* __tstate = wxPyBeginAllowThreads();
8996 (arg1)->CloseOutput();
8997
8998 wxPyEndAllowThreads(__tstate);
8999 if (PyErr_Occurred()) SWIG_fail;
9000 }
9001 Py_INCREF(Py_None); resultobj = Py_None;
9002 return resultobj;
9003 fail:
9004 return NULL;
9005 }
9006
9007
9008 static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
9009 PyObject *resultobj;
9010 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9011 bool result;
9012 PyObject * obj0 = 0 ;
9013 char *kwnames[] = {
9014 (char *) "self", NULL
9015 };
9016
9017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9020 {
9021 PyThreadState* __tstate = wxPyBeginAllowThreads();
9022 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9023
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9028 return resultobj;
9029 fail:
9030 return NULL;
9031 }
9032
9033
9034 static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9035 PyObject *resultobj;
9036 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9037 bool result;
9038 PyObject * obj0 = 0 ;
9039 char *kwnames[] = {
9040 (char *) "self", NULL
9041 };
9042
9043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9046 {
9047 PyThreadState* __tstate = wxPyBeginAllowThreads();
9048 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9049
9050 wxPyEndAllowThreads(__tstate);
9051 if (PyErr_Occurred()) SWIG_fail;
9052 }
9053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9054 return resultobj;
9055 fail:
9056 return NULL;
9057 }
9058
9059
9060 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9061 PyObject *resultobj;
9062 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9063 bool result;
9064 PyObject * obj0 = 0 ;
9065 char *kwnames[] = {
9066 (char *) "self", NULL
9067 };
9068
9069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9072 {
9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
9074 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9075
9076 wxPyEndAllowThreads(__tstate);
9077 if (PyErr_Occurred()) SWIG_fail;
9078 }
9079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9080 return resultobj;
9081 fail:
9082 return NULL;
9083 }
9084
9085
9086 static PyObject * Process_swigregister(PyObject *, PyObject *args) {
9087 PyObject *obj;
9088 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9089 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9090 Py_INCREF(obj);
9091 return Py_BuildValue((char *)"");
9092 }
9093 static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9094 PyObject *resultobj;
9095 int arg1 = (int) 0 ;
9096 int arg2 = (int) 0 ;
9097 int arg3 = (int) 0 ;
9098 wxProcessEvent *result;
9099 PyObject * obj0 = 0 ;
9100 PyObject * obj1 = 0 ;
9101 PyObject * obj2 = 0 ;
9102 char *kwnames[] = {
9103 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9104 };
9105
9106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9107 if (obj0) {
9108 arg1 = (int) SWIG_AsInt(obj0);
9109 if (PyErr_Occurred()) SWIG_fail;
9110 }
9111 if (obj1) {
9112 arg2 = (int) SWIG_AsInt(obj1);
9113 if (PyErr_Occurred()) SWIG_fail;
9114 }
9115 if (obj2) {
9116 arg3 = (int) SWIG_AsInt(obj2);
9117 if (PyErr_Occurred()) SWIG_fail;
9118 }
9119 {
9120 PyThreadState* __tstate = wxPyBeginAllowThreads();
9121 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9122
9123 wxPyEndAllowThreads(__tstate);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 }
9126 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9127 return resultobj;
9128 fail:
9129 return NULL;
9130 }
9131
9132
9133 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
9134 PyObject *resultobj;
9135 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9136 int result;
9137 PyObject * obj0 = 0 ;
9138 char *kwnames[] = {
9139 (char *) "self", NULL
9140 };
9141
9142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9145 {
9146 PyThreadState* __tstate = wxPyBeginAllowThreads();
9147 result = (int)(arg1)->GetPid();
9148
9149 wxPyEndAllowThreads(__tstate);
9150 if (PyErr_Occurred()) SWIG_fail;
9151 }
9152 resultobj = SWIG_FromInt((int)result);
9153 return resultobj;
9154 fail:
9155 return NULL;
9156 }
9157
9158
9159 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
9160 PyObject *resultobj;
9161 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9162 int result;
9163 PyObject * obj0 = 0 ;
9164 char *kwnames[] = {
9165 (char *) "self", NULL
9166 };
9167
9168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9171 {
9172 PyThreadState* __tstate = wxPyBeginAllowThreads();
9173 result = (int)(arg1)->GetExitCode();
9174
9175 wxPyEndAllowThreads(__tstate);
9176 if (PyErr_Occurred()) SWIG_fail;
9177 }
9178 resultobj = SWIG_FromInt((int)result);
9179 return resultobj;
9180 fail:
9181 return NULL;
9182 }
9183
9184
9185 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
9186 PyObject *resultobj;
9187 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9188 int arg2 ;
9189 PyObject * obj0 = 0 ;
9190 PyObject * obj1 = 0 ;
9191 char *kwnames[] = {
9192 (char *) "self",(char *) "m_pid", NULL
9193 };
9194
9195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9198 arg2 = (int) SWIG_AsInt(obj1);
9199 if (PyErr_Occurred()) SWIG_fail;
9200 if (arg1) (arg1)->m_pid = arg2;
9201
9202 Py_INCREF(Py_None); resultobj = Py_None;
9203 return resultobj;
9204 fail:
9205 return NULL;
9206 }
9207
9208
9209 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
9210 PyObject *resultobj;
9211 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9212 int result;
9213 PyObject * obj0 = 0 ;
9214 char *kwnames[] = {
9215 (char *) "self", NULL
9216 };
9217
9218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9221 result = (int) ((arg1)->m_pid);
9222
9223 resultobj = SWIG_FromInt((int)result);
9224 return resultobj;
9225 fail:
9226 return NULL;
9227 }
9228
9229
9230 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
9231 PyObject *resultobj;
9232 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9233 int arg2 ;
9234 PyObject * obj0 = 0 ;
9235 PyObject * obj1 = 0 ;
9236 char *kwnames[] = {
9237 (char *) "self",(char *) "m_exitcode", NULL
9238 };
9239
9240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9243 arg2 = (int) SWIG_AsInt(obj1);
9244 if (PyErr_Occurred()) SWIG_fail;
9245 if (arg1) (arg1)->m_exitcode = arg2;
9246
9247 Py_INCREF(Py_None); resultobj = Py_None;
9248 return resultobj;
9249 fail:
9250 return NULL;
9251 }
9252
9253
9254 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
9255 PyObject *resultobj;
9256 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9257 int result;
9258 PyObject * obj0 = 0 ;
9259 char *kwnames[] = {
9260 (char *) "self", NULL
9261 };
9262
9263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9266 result = (int) ((arg1)->m_exitcode);
9267
9268 resultobj = SWIG_FromInt((int)result);
9269 return resultobj;
9270 fail:
9271 return NULL;
9272 }
9273
9274
9275 static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
9276 PyObject *obj;
9277 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9278 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9279 Py_INCREF(obj);
9280 return Py_BuildValue((char *)"");
9281 }
9282 static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
9283 PyObject *resultobj;
9284 wxString *arg1 = 0 ;
9285 int arg2 = (int) wxEXEC_ASYNC ;
9286 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9287 long result;
9288 bool temp1 = False ;
9289 PyObject * obj0 = 0 ;
9290 PyObject * obj1 = 0 ;
9291 PyObject * obj2 = 0 ;
9292 char *kwnames[] = {
9293 (char *) "command",(char *) "flags",(char *) "process", NULL
9294 };
9295
9296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9297 {
9298 arg1 = wxString_in_helper(obj0);
9299 if (arg1 == NULL) SWIG_fail;
9300 temp1 = True;
9301 }
9302 if (obj1) {
9303 arg2 = (int) SWIG_AsInt(obj1);
9304 if (PyErr_Occurred()) SWIG_fail;
9305 }
9306 if (obj2) {
9307 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9309 }
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9313
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 resultobj = SWIG_FromLong((long)result);
9318 {
9319 if (temp1)
9320 delete arg1;
9321 }
9322 return resultobj;
9323 fail:
9324 {
9325 if (temp1)
9326 delete arg1;
9327 }
9328 return NULL;
9329 }
9330
9331
9332 static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
9333 PyObject *resultobj;
9334 int arg1 = (int) wxJOYSTICK1 ;
9335 wxJoystick *result;
9336 PyObject * obj0 = 0 ;
9337 char *kwnames[] = {
9338 (char *) "joystick", NULL
9339 };
9340
9341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9342 if (obj0) {
9343 arg1 = (int) SWIG_AsInt(obj0);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 }
9346 {
9347 PyThreadState* __tstate = wxPyBeginAllowThreads();
9348 result = (wxJoystick *)new wxJoystick(arg1);
9349
9350 wxPyEndAllowThreads(__tstate);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9354 return resultobj;
9355 fail:
9356 return NULL;
9357 }
9358
9359
9360 static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
9361 PyObject *resultobj;
9362 wxJoystick *arg1 = (wxJoystick *) 0 ;
9363 PyObject * obj0 = 0 ;
9364 char *kwnames[] = {
9365 (char *) "self", NULL
9366 };
9367
9368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 delete arg1;
9374
9375 wxPyEndAllowThreads(__tstate);
9376 if (PyErr_Occurred()) SWIG_fail;
9377 }
9378 Py_INCREF(Py_None); resultobj = Py_None;
9379 return resultobj;
9380 fail:
9381 return NULL;
9382 }
9383
9384
9385 static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9386 PyObject *resultobj;
9387 wxJoystick *arg1 = (wxJoystick *) 0 ;
9388 wxPoint result;
9389 PyObject * obj0 = 0 ;
9390 char *kwnames[] = {
9391 (char *) "self", NULL
9392 };
9393
9394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (arg1)->GetPosition();
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 {
9405 wxPoint * resultptr;
9406 resultptr = new wxPoint((wxPoint &) result);
9407 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9408 }
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj;
9417 wxJoystick *arg1 = (wxJoystick *) 0 ;
9418 int result;
9419 PyObject * obj0 = 0 ;
9420 char *kwnames[] = {
9421 (char *) "self", NULL
9422 };
9423
9424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9427 {
9428 PyThreadState* __tstate = wxPyBeginAllowThreads();
9429 result = (int)(arg1)->GetZPosition();
9430
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 resultobj = SWIG_FromInt((int)result);
9435 return resultobj;
9436 fail:
9437 return NULL;
9438 }
9439
9440
9441 static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
9442 PyObject *resultobj;
9443 wxJoystick *arg1 = (wxJoystick *) 0 ;
9444 int result;
9445 PyObject * obj0 = 0 ;
9446 char *kwnames[] = {
9447 (char *) "self", NULL
9448 };
9449
9450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9453 {
9454 PyThreadState* __tstate = wxPyBeginAllowThreads();
9455 result = (int)(arg1)->GetButtonState();
9456
9457 wxPyEndAllowThreads(__tstate);
9458 if (PyErr_Occurred()) SWIG_fail;
9459 }
9460 resultobj = SWIG_FromInt((int)result);
9461 return resultobj;
9462 fail:
9463 return NULL;
9464 }
9465
9466
9467 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9468 PyObject *resultobj;
9469 wxJoystick *arg1 = (wxJoystick *) 0 ;
9470 int result;
9471 PyObject * obj0 = 0 ;
9472 char *kwnames[] = {
9473 (char *) "self", NULL
9474 };
9475
9476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9479 {
9480 PyThreadState* __tstate = wxPyBeginAllowThreads();
9481 result = (int)(arg1)->GetPOVPosition();
9482
9483 wxPyEndAllowThreads(__tstate);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 }
9486 resultobj = SWIG_FromInt((int)result);
9487 return resultobj;
9488 fail:
9489 return NULL;
9490 }
9491
9492
9493 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9494 PyObject *resultobj;
9495 wxJoystick *arg1 = (wxJoystick *) 0 ;
9496 int result;
9497 PyObject * obj0 = 0 ;
9498 char *kwnames[] = {
9499 (char *) "self", NULL
9500 };
9501
9502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9505 {
9506 PyThreadState* __tstate = wxPyBeginAllowThreads();
9507 result = (int)(arg1)->GetPOVCTSPosition();
9508
9509 wxPyEndAllowThreads(__tstate);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 resultobj = SWIG_FromInt((int)result);
9513 return resultobj;
9514 fail:
9515 return NULL;
9516 }
9517
9518
9519 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9520 PyObject *resultobj;
9521 wxJoystick *arg1 = (wxJoystick *) 0 ;
9522 int result;
9523 PyObject * obj0 = 0 ;
9524 char *kwnames[] = {
9525 (char *) "self", NULL
9526 };
9527
9528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9531 {
9532 PyThreadState* __tstate = wxPyBeginAllowThreads();
9533 result = (int)(arg1)->GetRudderPosition();
9534
9535 wxPyEndAllowThreads(__tstate);
9536 if (PyErr_Occurred()) SWIG_fail;
9537 }
9538 resultobj = SWIG_FromInt((int)result);
9539 return resultobj;
9540 fail:
9541 return NULL;
9542 }
9543
9544
9545 static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9546 PyObject *resultobj;
9547 wxJoystick *arg1 = (wxJoystick *) 0 ;
9548 int result;
9549 PyObject * obj0 = 0 ;
9550 char *kwnames[] = {
9551 (char *) "self", NULL
9552 };
9553
9554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9557 {
9558 PyThreadState* __tstate = wxPyBeginAllowThreads();
9559 result = (int)(arg1)->GetUPosition();
9560
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 resultobj = SWIG_FromInt((int)result);
9565 return resultobj;
9566 fail:
9567 return NULL;
9568 }
9569
9570
9571 static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9572 PyObject *resultobj;
9573 wxJoystick *arg1 = (wxJoystick *) 0 ;
9574 int result;
9575 PyObject * obj0 = 0 ;
9576 char *kwnames[] = {
9577 (char *) "self", NULL
9578 };
9579
9580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9583 {
9584 PyThreadState* __tstate = wxPyBeginAllowThreads();
9585 result = (int)(arg1)->GetVPosition();
9586
9587 wxPyEndAllowThreads(__tstate);
9588 if (PyErr_Occurred()) SWIG_fail;
9589 }
9590 resultobj = SWIG_FromInt((int)result);
9591 return resultobj;
9592 fail:
9593 return NULL;
9594 }
9595
9596
9597 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
9598 PyObject *resultobj;
9599 wxJoystick *arg1 = (wxJoystick *) 0 ;
9600 int result;
9601 PyObject * obj0 = 0 ;
9602 char *kwnames[] = {
9603 (char *) "self", NULL
9604 };
9605
9606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9609 {
9610 PyThreadState* __tstate = wxPyBeginAllowThreads();
9611 result = (int)(arg1)->GetMovementThreshold();
9612
9613 wxPyEndAllowThreads(__tstate);
9614 if (PyErr_Occurred()) SWIG_fail;
9615 }
9616 resultobj = SWIG_FromInt((int)result);
9617 return resultobj;
9618 fail:
9619 return NULL;
9620 }
9621
9622
9623 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
9624 PyObject *resultobj;
9625 wxJoystick *arg1 = (wxJoystick *) 0 ;
9626 int arg2 ;
9627 PyObject * obj0 = 0 ;
9628 PyObject * obj1 = 0 ;
9629 char *kwnames[] = {
9630 (char *) "self",(char *) "threshold", NULL
9631 };
9632
9633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9636 arg2 = (int) SWIG_AsInt(obj1);
9637 if (PyErr_Occurred()) SWIG_fail;
9638 {
9639 PyThreadState* __tstate = wxPyBeginAllowThreads();
9640 (arg1)->SetMovementThreshold(arg2);
9641
9642 wxPyEndAllowThreads(__tstate);
9643 if (PyErr_Occurred()) SWIG_fail;
9644 }
9645 Py_INCREF(Py_None); resultobj = Py_None;
9646 return resultobj;
9647 fail:
9648 return NULL;
9649 }
9650
9651
9652 static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
9653 PyObject *resultobj;
9654 wxJoystick *arg1 = (wxJoystick *) 0 ;
9655 bool result;
9656 PyObject * obj0 = 0 ;
9657 char *kwnames[] = {
9658 (char *) "self", NULL
9659 };
9660
9661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9664 {
9665 PyThreadState* __tstate = wxPyBeginAllowThreads();
9666 result = (bool)(arg1)->IsOk();
9667
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9672 return resultobj;
9673 fail:
9674 return NULL;
9675 }
9676
9677
9678 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
9679 PyObject *resultobj;
9680 wxJoystick *arg1 = (wxJoystick *) 0 ;
9681 int result;
9682 PyObject * obj0 = 0 ;
9683 char *kwnames[] = {
9684 (char *) "self", NULL
9685 };
9686
9687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9690 {
9691 PyThreadState* __tstate = wxPyBeginAllowThreads();
9692 result = (int)(arg1)->GetNumberJoysticks();
9693
9694 wxPyEndAllowThreads(__tstate);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 resultobj = SWIG_FromInt((int)result);
9698 return resultobj;
9699 fail:
9700 return NULL;
9701 }
9702
9703
9704 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
9705 PyObject *resultobj;
9706 wxJoystick *arg1 = (wxJoystick *) 0 ;
9707 int result;
9708 PyObject * obj0 = 0 ;
9709 char *kwnames[] = {
9710 (char *) "self", NULL
9711 };
9712
9713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9716 {
9717 PyThreadState* __tstate = wxPyBeginAllowThreads();
9718 result = (int)(arg1)->GetManufacturerId();
9719
9720 wxPyEndAllowThreads(__tstate);
9721 if (PyErr_Occurred()) SWIG_fail;
9722 }
9723 resultobj = SWIG_FromInt((int)result);
9724 return resultobj;
9725 fail:
9726 return NULL;
9727 }
9728
9729
9730 static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
9731 PyObject *resultobj;
9732 wxJoystick *arg1 = (wxJoystick *) 0 ;
9733 int result;
9734 PyObject * obj0 = 0 ;
9735 char *kwnames[] = {
9736 (char *) "self", NULL
9737 };
9738
9739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
9740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9742 {
9743 PyThreadState* __tstate = wxPyBeginAllowThreads();
9744 result = (int)(arg1)->GetProductId();
9745
9746 wxPyEndAllowThreads(__tstate);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 }
9749 resultobj = SWIG_FromInt((int)result);
9750 return resultobj;
9751 fail:
9752 return NULL;
9753 }
9754
9755
9756 static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
9757 PyObject *resultobj;
9758 wxJoystick *arg1 = (wxJoystick *) 0 ;
9759 wxString result;
9760 PyObject * obj0 = 0 ;
9761 char *kwnames[] = {
9762 (char *) "self", NULL
9763 };
9764
9765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9768 {
9769 PyThreadState* __tstate = wxPyBeginAllowThreads();
9770 result = (arg1)->GetProductName();
9771
9772 wxPyEndAllowThreads(__tstate);
9773 if (PyErr_Occurred()) SWIG_fail;
9774 }
9775 {
9776 #if wxUSE_UNICODE
9777 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9778 #else
9779 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9780 #endif
9781 }
9782 return resultobj;
9783 fail:
9784 return NULL;
9785 }
9786
9787
9788 static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
9789 PyObject *resultobj;
9790 wxJoystick *arg1 = (wxJoystick *) 0 ;
9791 int result;
9792 PyObject * obj0 = 0 ;
9793 char *kwnames[] = {
9794 (char *) "self", NULL
9795 };
9796
9797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9800 {
9801 PyThreadState* __tstate = wxPyBeginAllowThreads();
9802 result = (int)(arg1)->GetXMin();
9803
9804 wxPyEndAllowThreads(__tstate);
9805 if (PyErr_Occurred()) SWIG_fail;
9806 }
9807 resultobj = SWIG_FromInt((int)result);
9808 return resultobj;
9809 fail:
9810 return NULL;
9811 }
9812
9813
9814 static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
9815 PyObject *resultobj;
9816 wxJoystick *arg1 = (wxJoystick *) 0 ;
9817 int result;
9818 PyObject * obj0 = 0 ;
9819 char *kwnames[] = {
9820 (char *) "self", NULL
9821 };
9822
9823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
9824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9826 {
9827 PyThreadState* __tstate = wxPyBeginAllowThreads();
9828 result = (int)(arg1)->GetYMin();
9829
9830 wxPyEndAllowThreads(__tstate);
9831 if (PyErr_Occurred()) SWIG_fail;
9832 }
9833 resultobj = SWIG_FromInt((int)result);
9834 return resultobj;
9835 fail:
9836 return NULL;
9837 }
9838
9839
9840 static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
9841 PyObject *resultobj;
9842 wxJoystick *arg1 = (wxJoystick *) 0 ;
9843 int result;
9844 PyObject * obj0 = 0 ;
9845 char *kwnames[] = {
9846 (char *) "self", NULL
9847 };
9848
9849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
9850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9852 {
9853 PyThreadState* __tstate = wxPyBeginAllowThreads();
9854 result = (int)(arg1)->GetZMin();
9855
9856 wxPyEndAllowThreads(__tstate);
9857 if (PyErr_Occurred()) SWIG_fail;
9858 }
9859 resultobj = SWIG_FromInt((int)result);
9860 return resultobj;
9861 fail:
9862 return NULL;
9863 }
9864
9865
9866 static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
9867 PyObject *resultobj;
9868 wxJoystick *arg1 = (wxJoystick *) 0 ;
9869 int result;
9870 PyObject * obj0 = 0 ;
9871 char *kwnames[] = {
9872 (char *) "self", NULL
9873 };
9874
9875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
9876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9878 {
9879 PyThreadState* __tstate = wxPyBeginAllowThreads();
9880 result = (int)(arg1)->GetXMax();
9881
9882 wxPyEndAllowThreads(__tstate);
9883 if (PyErr_Occurred()) SWIG_fail;
9884 }
9885 resultobj = SWIG_FromInt((int)result);
9886 return resultobj;
9887 fail:
9888 return NULL;
9889 }
9890
9891
9892 static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
9893 PyObject *resultobj;
9894 wxJoystick *arg1 = (wxJoystick *) 0 ;
9895 int result;
9896 PyObject * obj0 = 0 ;
9897 char *kwnames[] = {
9898 (char *) "self", NULL
9899 };
9900
9901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
9902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 result = (int)(arg1)->GetYMax();
9907
9908 wxPyEndAllowThreads(__tstate);
9909 if (PyErr_Occurred()) SWIG_fail;
9910 }
9911 resultobj = SWIG_FromInt((int)result);
9912 return resultobj;
9913 fail:
9914 return NULL;
9915 }
9916
9917
9918 static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj;
9920 wxJoystick *arg1 = (wxJoystick *) 0 ;
9921 int result;
9922 PyObject * obj0 = 0 ;
9923 char *kwnames[] = {
9924 (char *) "self", NULL
9925 };
9926
9927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
9928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9930 {
9931 PyThreadState* __tstate = wxPyBeginAllowThreads();
9932 result = (int)(arg1)->GetZMax();
9933
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 resultobj = SWIG_FromInt((int)result);
9938 return resultobj;
9939 fail:
9940 return NULL;
9941 }
9942
9943
9944 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
9945 PyObject *resultobj;
9946 wxJoystick *arg1 = (wxJoystick *) 0 ;
9947 int result;
9948 PyObject * obj0 = 0 ;
9949 char *kwnames[] = {
9950 (char *) "self", NULL
9951 };
9952
9953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
9954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9956 {
9957 PyThreadState* __tstate = wxPyBeginAllowThreads();
9958 result = (int)(arg1)->GetNumberButtons();
9959
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 resultobj = SWIG_FromInt((int)result);
9964 return resultobj;
9965 fail:
9966 return NULL;
9967 }
9968
9969
9970 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
9971 PyObject *resultobj;
9972 wxJoystick *arg1 = (wxJoystick *) 0 ;
9973 int result;
9974 PyObject * obj0 = 0 ;
9975 char *kwnames[] = {
9976 (char *) "self", NULL
9977 };
9978
9979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
9980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9982 {
9983 PyThreadState* __tstate = wxPyBeginAllowThreads();
9984 result = (int)(arg1)->GetNumberAxes();
9985
9986 wxPyEndAllowThreads(__tstate);
9987 if (PyErr_Occurred()) SWIG_fail;
9988 }
9989 resultobj = SWIG_FromInt((int)result);
9990 return resultobj;
9991 fail:
9992 return NULL;
9993 }
9994
9995
9996 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
9997 PyObject *resultobj;
9998 wxJoystick *arg1 = (wxJoystick *) 0 ;
9999 int result;
10000 PyObject * obj0 = 0 ;
10001 char *kwnames[] = {
10002 (char *) "self", NULL
10003 };
10004
10005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10008 {
10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
10010 result = (int)(arg1)->GetMaxButtons();
10011
10012 wxPyEndAllowThreads(__tstate);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 resultobj = SWIG_FromInt((int)result);
10016 return resultobj;
10017 fail:
10018 return NULL;
10019 }
10020
10021
10022 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10023 PyObject *resultobj;
10024 wxJoystick *arg1 = (wxJoystick *) 0 ;
10025 int result;
10026 PyObject * obj0 = 0 ;
10027 char *kwnames[] = {
10028 (char *) "self", NULL
10029 };
10030
10031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10034 {
10035 PyThreadState* __tstate = wxPyBeginAllowThreads();
10036 result = (int)(arg1)->GetMaxAxes();
10037
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 resultobj = SWIG_FromInt((int)result);
10042 return resultobj;
10043 fail:
10044 return NULL;
10045 }
10046
10047
10048 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
10049 PyObject *resultobj;
10050 wxJoystick *arg1 = (wxJoystick *) 0 ;
10051 int result;
10052 PyObject * obj0 = 0 ;
10053 char *kwnames[] = {
10054 (char *) "self", NULL
10055 };
10056
10057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 result = (int)(arg1)->GetPollingMin();
10063
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 resultobj = SWIG_FromInt((int)result);
10068 return resultobj;
10069 fail:
10070 return NULL;
10071 }
10072
10073
10074 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
10075 PyObject *resultobj;
10076 wxJoystick *arg1 = (wxJoystick *) 0 ;
10077 int result;
10078 PyObject * obj0 = 0 ;
10079 char *kwnames[] = {
10080 (char *) "self", NULL
10081 };
10082
10083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10086 {
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
10088 result = (int)(arg1)->GetPollingMax();
10089
10090 wxPyEndAllowThreads(__tstate);
10091 if (PyErr_Occurred()) SWIG_fail;
10092 }
10093 resultobj = SWIG_FromInt((int)result);
10094 return resultobj;
10095 fail:
10096 return NULL;
10097 }
10098
10099
10100 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
10101 PyObject *resultobj;
10102 wxJoystick *arg1 = (wxJoystick *) 0 ;
10103 int result;
10104 PyObject * obj0 = 0 ;
10105 char *kwnames[] = {
10106 (char *) "self", NULL
10107 };
10108
10109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10112 {
10113 PyThreadState* __tstate = wxPyBeginAllowThreads();
10114 result = (int)(arg1)->GetRudderMin();
10115
10116 wxPyEndAllowThreads(__tstate);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 resultobj = SWIG_FromInt((int)result);
10120 return resultobj;
10121 fail:
10122 return NULL;
10123 }
10124
10125
10126 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
10127 PyObject *resultobj;
10128 wxJoystick *arg1 = (wxJoystick *) 0 ;
10129 int result;
10130 PyObject * obj0 = 0 ;
10131 char *kwnames[] = {
10132 (char *) "self", NULL
10133 };
10134
10135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10138 {
10139 PyThreadState* __tstate = wxPyBeginAllowThreads();
10140 result = (int)(arg1)->GetRudderMax();
10141
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 resultobj = SWIG_FromInt((int)result);
10146 return resultobj;
10147 fail:
10148 return NULL;
10149 }
10150
10151
10152 static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
10153 PyObject *resultobj;
10154 wxJoystick *arg1 = (wxJoystick *) 0 ;
10155 int result;
10156 PyObject * obj0 = 0 ;
10157 char *kwnames[] = {
10158 (char *) "self", NULL
10159 };
10160
10161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10164 {
10165 PyThreadState* __tstate = wxPyBeginAllowThreads();
10166 result = (int)(arg1)->GetUMin();
10167
10168 wxPyEndAllowThreads(__tstate);
10169 if (PyErr_Occurred()) SWIG_fail;
10170 }
10171 resultobj = SWIG_FromInt((int)result);
10172 return resultobj;
10173 fail:
10174 return NULL;
10175 }
10176
10177
10178 static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
10179 PyObject *resultobj;
10180 wxJoystick *arg1 = (wxJoystick *) 0 ;
10181 int result;
10182 PyObject * obj0 = 0 ;
10183 char *kwnames[] = {
10184 (char *) "self", NULL
10185 };
10186
10187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10190 {
10191 PyThreadState* __tstate = wxPyBeginAllowThreads();
10192 result = (int)(arg1)->GetUMax();
10193
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 resultobj = SWIG_FromInt((int)result);
10198 return resultobj;
10199 fail:
10200 return NULL;
10201 }
10202
10203
10204 static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
10205 PyObject *resultobj;
10206 wxJoystick *arg1 = (wxJoystick *) 0 ;
10207 int result;
10208 PyObject * obj0 = 0 ;
10209 char *kwnames[] = {
10210 (char *) "self", NULL
10211 };
10212
10213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10216 {
10217 PyThreadState* __tstate = wxPyBeginAllowThreads();
10218 result = (int)(arg1)->GetVMin();
10219
10220 wxPyEndAllowThreads(__tstate);
10221 if (PyErr_Occurred()) SWIG_fail;
10222 }
10223 resultobj = SWIG_FromInt((int)result);
10224 return resultobj;
10225 fail:
10226 return NULL;
10227 }
10228
10229
10230 static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
10231 PyObject *resultobj;
10232 wxJoystick *arg1 = (wxJoystick *) 0 ;
10233 int result;
10234 PyObject * obj0 = 0 ;
10235 char *kwnames[] = {
10236 (char *) "self", NULL
10237 };
10238
10239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 result = (int)(arg1)->GetVMax();
10245
10246 wxPyEndAllowThreads(__tstate);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 resultobj = SWIG_FromInt((int)result);
10250 return resultobj;
10251 fail:
10252 return NULL;
10253 }
10254
10255
10256 static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj;
10258 wxJoystick *arg1 = (wxJoystick *) 0 ;
10259 bool result;
10260 PyObject * obj0 = 0 ;
10261 char *kwnames[] = {
10262 (char *) "self", NULL
10263 };
10264
10265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10268 {
10269 PyThreadState* __tstate = wxPyBeginAllowThreads();
10270 result = (bool)(arg1)->HasRudder();
10271
10272 wxPyEndAllowThreads(__tstate);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10276 return resultobj;
10277 fail:
10278 return NULL;
10279 }
10280
10281
10282 static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj;
10284 wxJoystick *arg1 = (wxJoystick *) 0 ;
10285 bool result;
10286 PyObject * obj0 = 0 ;
10287 char *kwnames[] = {
10288 (char *) "self", NULL
10289 };
10290
10291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 result = (bool)(arg1)->HasZ();
10297
10298 wxPyEndAllowThreads(__tstate);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10302 return resultobj;
10303 fail:
10304 return NULL;
10305 }
10306
10307
10308 static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
10309 PyObject *resultobj;
10310 wxJoystick *arg1 = (wxJoystick *) 0 ;
10311 bool result;
10312 PyObject * obj0 = 0 ;
10313 char *kwnames[] = {
10314 (char *) "self", NULL
10315 };
10316
10317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10320 {
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 result = (bool)(arg1)->HasU();
10323
10324 wxPyEndAllowThreads(__tstate);
10325 if (PyErr_Occurred()) SWIG_fail;
10326 }
10327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10328 return resultobj;
10329 fail:
10330 return NULL;
10331 }
10332
10333
10334 static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
10335 PyObject *resultobj;
10336 wxJoystick *arg1 = (wxJoystick *) 0 ;
10337 bool result;
10338 PyObject * obj0 = 0 ;
10339 char *kwnames[] = {
10340 (char *) "self", NULL
10341 };
10342
10343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10346 {
10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
10348 result = (bool)(arg1)->HasV();
10349
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10354 return resultobj;
10355 fail:
10356 return NULL;
10357 }
10358
10359
10360 static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj;
10362 wxJoystick *arg1 = (wxJoystick *) 0 ;
10363 bool result;
10364 PyObject * obj0 = 0 ;
10365 char *kwnames[] = {
10366 (char *) "self", NULL
10367 };
10368
10369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10372 {
10373 PyThreadState* __tstate = wxPyBeginAllowThreads();
10374 result = (bool)(arg1)->HasPOV();
10375
10376 wxPyEndAllowThreads(__tstate);
10377 if (PyErr_Occurred()) SWIG_fail;
10378 }
10379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10380 return resultobj;
10381 fail:
10382 return NULL;
10383 }
10384
10385
10386 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj;
10388 wxJoystick *arg1 = (wxJoystick *) 0 ;
10389 bool result;
10390 PyObject * obj0 = 0 ;
10391 char *kwnames[] = {
10392 (char *) "self", NULL
10393 };
10394
10395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10400 result = (bool)(arg1)->HasPOV4Dir();
10401
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10406 return resultobj;
10407 fail:
10408 return NULL;
10409 }
10410
10411
10412 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
10413 PyObject *resultobj;
10414 wxJoystick *arg1 = (wxJoystick *) 0 ;
10415 bool result;
10416 PyObject * obj0 = 0 ;
10417 char *kwnames[] = {
10418 (char *) "self", NULL
10419 };
10420
10421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10424 {
10425 PyThreadState* __tstate = wxPyBeginAllowThreads();
10426 result = (bool)(arg1)->HasPOVCTS();
10427
10428 wxPyEndAllowThreads(__tstate);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10432 return resultobj;
10433 fail:
10434 return NULL;
10435 }
10436
10437
10438 static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
10439 PyObject *resultobj;
10440 wxJoystick *arg1 = (wxJoystick *) 0 ;
10441 wxWindow *arg2 = (wxWindow *) 0 ;
10442 int arg3 = (int) 0 ;
10443 bool result;
10444 PyObject * obj0 = 0 ;
10445 PyObject * obj1 = 0 ;
10446 PyObject * obj2 = 0 ;
10447 char *kwnames[] = {
10448 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10449 };
10450
10451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10456 if (obj2) {
10457 arg3 = (int) SWIG_AsInt(obj2);
10458 if (PyErr_Occurred()) SWIG_fail;
10459 }
10460 {
10461 PyThreadState* __tstate = wxPyBeginAllowThreads();
10462 result = (bool)(arg1)->SetCapture(arg2,arg3);
10463
10464 wxPyEndAllowThreads(__tstate);
10465 if (PyErr_Occurred()) SWIG_fail;
10466 }
10467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10468 return resultobj;
10469 fail:
10470 return NULL;
10471 }
10472
10473
10474 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
10475 PyObject *resultobj;
10476 wxJoystick *arg1 = (wxJoystick *) 0 ;
10477 bool result;
10478 PyObject * obj0 = 0 ;
10479 char *kwnames[] = {
10480 (char *) "self", NULL
10481 };
10482
10483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10486 {
10487 PyThreadState* __tstate = wxPyBeginAllowThreads();
10488 result = (bool)(arg1)->ReleaseCapture();
10489
10490 wxPyEndAllowThreads(__tstate);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10494 return resultobj;
10495 fail:
10496 return NULL;
10497 }
10498
10499
10500 static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
10501 PyObject *obj;
10502 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10503 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10504 Py_INCREF(obj);
10505 return Py_BuildValue((char *)"");
10506 }
10507 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) {
10508 PyObject *resultobj;
10509 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10510 wxPoint *arg2 = (wxPoint *) 0 ;
10511 PyObject * obj0 = 0 ;
10512 PyObject * obj1 = 0 ;
10513 char *kwnames[] = {
10514 (char *) "self",(char *) "m_pos", NULL
10515 };
10516
10517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10520 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10522 if (arg1) (arg1)->m_pos = *arg2;
10523
10524 Py_INCREF(Py_None); resultobj = Py_None;
10525 return resultobj;
10526 fail:
10527 return NULL;
10528 }
10529
10530
10531 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) {
10532 PyObject *resultobj;
10533 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10534 wxPoint *result;
10535 PyObject * obj0 = 0 ;
10536 char *kwnames[] = {
10537 (char *) "self", NULL
10538 };
10539
10540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10543 result = (wxPoint *)& ((arg1)->m_pos);
10544
10545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10546 return resultobj;
10547 fail:
10548 return NULL;
10549 }
10550
10551
10552 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) {
10553 PyObject *resultobj;
10554 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10555 int arg2 ;
10556 PyObject * obj0 = 0 ;
10557 PyObject * obj1 = 0 ;
10558 char *kwnames[] = {
10559 (char *) "self",(char *) "m_zPosition", NULL
10560 };
10561
10562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10565 arg2 = (int) SWIG_AsInt(obj1);
10566 if (PyErr_Occurred()) SWIG_fail;
10567 if (arg1) (arg1)->m_zPosition = arg2;
10568
10569 Py_INCREF(Py_None); resultobj = Py_None;
10570 return resultobj;
10571 fail:
10572 return NULL;
10573 }
10574
10575
10576 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) {
10577 PyObject *resultobj;
10578 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10579 int result;
10580 PyObject * obj0 = 0 ;
10581 char *kwnames[] = {
10582 (char *) "self", NULL
10583 };
10584
10585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10588 result = (int) ((arg1)->m_zPosition);
10589
10590 resultobj = SWIG_FromInt((int)result);
10591 return resultobj;
10592 fail:
10593 return NULL;
10594 }
10595
10596
10597 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) {
10598 PyObject *resultobj;
10599 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10600 int arg2 ;
10601 PyObject * obj0 = 0 ;
10602 PyObject * obj1 = 0 ;
10603 char *kwnames[] = {
10604 (char *) "self",(char *) "m_buttonChange", NULL
10605 };
10606
10607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10610 arg2 = (int) SWIG_AsInt(obj1);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 if (arg1) (arg1)->m_buttonChange = arg2;
10613
10614 Py_INCREF(Py_None); resultobj = Py_None;
10615 return resultobj;
10616 fail:
10617 return NULL;
10618 }
10619
10620
10621 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) {
10622 PyObject *resultobj;
10623 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10624 int result;
10625 PyObject * obj0 = 0 ;
10626 char *kwnames[] = {
10627 (char *) "self", NULL
10628 };
10629
10630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10633 result = (int) ((arg1)->m_buttonChange);
10634
10635 resultobj = SWIG_FromInt((int)result);
10636 return resultobj;
10637 fail:
10638 return NULL;
10639 }
10640
10641
10642 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) {
10643 PyObject *resultobj;
10644 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10645 int arg2 ;
10646 PyObject * obj0 = 0 ;
10647 PyObject * obj1 = 0 ;
10648 char *kwnames[] = {
10649 (char *) "self",(char *) "m_buttonState", NULL
10650 };
10651
10652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10655 arg2 = (int) SWIG_AsInt(obj1);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 if (arg1) (arg1)->m_buttonState = arg2;
10658
10659 Py_INCREF(Py_None); resultobj = Py_None;
10660 return resultobj;
10661 fail:
10662 return NULL;
10663 }
10664
10665
10666 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj;
10668 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10669 int result;
10670 PyObject * obj0 = 0 ;
10671 char *kwnames[] = {
10672 (char *) "self", NULL
10673 };
10674
10675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10678 result = (int) ((arg1)->m_buttonState);
10679
10680 resultobj = SWIG_FromInt((int)result);
10681 return resultobj;
10682 fail:
10683 return NULL;
10684 }
10685
10686
10687 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) {
10688 PyObject *resultobj;
10689 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10690 int arg2 ;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 char *kwnames[] = {
10694 (char *) "self",(char *) "m_joyStick", NULL
10695 };
10696
10697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
10698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10700 arg2 = (int) SWIG_AsInt(obj1);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 if (arg1) (arg1)->m_joyStick = arg2;
10703
10704 Py_INCREF(Py_None); resultobj = Py_None;
10705 return resultobj;
10706 fail:
10707 return NULL;
10708 }
10709
10710
10711 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) {
10712 PyObject *resultobj;
10713 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10714 int result;
10715 PyObject * obj0 = 0 ;
10716 char *kwnames[] = {
10717 (char *) "self", NULL
10718 };
10719
10720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10723 result = (int) ((arg1)->m_joyStick);
10724
10725 resultobj = SWIG_FromInt((int)result);
10726 return resultobj;
10727 fail:
10728 return NULL;
10729 }
10730
10731
10732 static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10733 PyObject *resultobj;
10734 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10735 int arg2 = (int) 0 ;
10736 int arg3 = (int) wxJOYSTICK1 ;
10737 int arg4 = (int) 0 ;
10738 wxJoystickEvent *result;
10739 PyObject * obj0 = 0 ;
10740 PyObject * obj1 = 0 ;
10741 PyObject * obj2 = 0 ;
10742 PyObject * obj3 = 0 ;
10743 char *kwnames[] = {
10744 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
10745 };
10746
10747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10748 if (obj0) {
10749 arg1 = (wxEventType) SWIG_AsInt(obj0);
10750 if (PyErr_Occurred()) SWIG_fail;
10751 }
10752 if (obj1) {
10753 arg2 = (int) SWIG_AsInt(obj1);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 }
10756 if (obj2) {
10757 arg3 = (int) SWIG_AsInt(obj2);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
10760 if (obj3) {
10761 arg4 = (int) SWIG_AsInt(obj3);
10762 if (PyErr_Occurred()) SWIG_fail;
10763 }
10764 {
10765 PyThreadState* __tstate = wxPyBeginAllowThreads();
10766 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
10767
10768 wxPyEndAllowThreads(__tstate);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 }
10771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
10772 return resultobj;
10773 fail:
10774 return NULL;
10775 }
10776
10777
10778 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10779 PyObject *resultobj;
10780 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10781 wxPoint result;
10782 PyObject * obj0 = 0 ;
10783 char *kwnames[] = {
10784 (char *) "self", NULL
10785 };
10786
10787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
10788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10790 {
10791 PyThreadState* __tstate = wxPyBeginAllowThreads();
10792 result = ((wxJoystickEvent const *)arg1)->GetPosition();
10793
10794 wxPyEndAllowThreads(__tstate);
10795 if (PyErr_Occurred()) SWIG_fail;
10796 }
10797 {
10798 wxPoint * resultptr;
10799 resultptr = new wxPoint((wxPoint &) result);
10800 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10801 }
10802 return resultobj;
10803 fail:
10804 return NULL;
10805 }
10806
10807
10808 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj;
10810 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10811 int result;
10812 PyObject * obj0 = 0 ;
10813 char *kwnames[] = {
10814 (char *) "self", NULL
10815 };
10816
10817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
10818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10820 {
10821 PyThreadState* __tstate = wxPyBeginAllowThreads();
10822 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
10823
10824 wxPyEndAllowThreads(__tstate);
10825 if (PyErr_Occurred()) SWIG_fail;
10826 }
10827 resultobj = SWIG_FromInt((int)result);
10828 return resultobj;
10829 fail:
10830 return NULL;
10831 }
10832
10833
10834 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
10835 PyObject *resultobj;
10836 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10837 int result;
10838 PyObject * obj0 = 0 ;
10839 char *kwnames[] = {
10840 (char *) "self", NULL
10841 };
10842
10843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
10844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10846 {
10847 PyThreadState* __tstate = wxPyBeginAllowThreads();
10848 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
10849
10850 wxPyEndAllowThreads(__tstate);
10851 if (PyErr_Occurred()) SWIG_fail;
10852 }
10853 resultobj = SWIG_FromInt((int)result);
10854 return resultobj;
10855 fail:
10856 return NULL;
10857 }
10858
10859
10860 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
10861 PyObject *resultobj;
10862 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10863 int result;
10864 PyObject * obj0 = 0 ;
10865 char *kwnames[] = {
10866 (char *) "self", NULL
10867 };
10868
10869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
10870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10872 {
10873 PyThreadState* __tstate = wxPyBeginAllowThreads();
10874 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
10875
10876 wxPyEndAllowThreads(__tstate);
10877 if (PyErr_Occurred()) SWIG_fail;
10878 }
10879 resultobj = SWIG_FromInt((int)result);
10880 return resultobj;
10881 fail:
10882 return NULL;
10883 }
10884
10885
10886 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
10887 PyObject *resultobj;
10888 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10889 int result;
10890 PyObject * obj0 = 0 ;
10891 char *kwnames[] = {
10892 (char *) "self", NULL
10893 };
10894
10895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
10896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
10901
10902 wxPyEndAllowThreads(__tstate);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 }
10905 resultobj = SWIG_FromInt((int)result);
10906 return resultobj;
10907 fail:
10908 return NULL;
10909 }
10910
10911
10912 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
10913 PyObject *resultobj;
10914 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10915 int arg2 ;
10916 PyObject * obj0 = 0 ;
10917 PyObject * obj1 = 0 ;
10918 char *kwnames[] = {
10919 (char *) "self",(char *) "stick", NULL
10920 };
10921
10922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
10923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10925 arg2 = (int) SWIG_AsInt(obj1);
10926 if (PyErr_Occurred()) SWIG_fail;
10927 {
10928 PyThreadState* __tstate = wxPyBeginAllowThreads();
10929 (arg1)->SetJoystick(arg2);
10930
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 Py_INCREF(Py_None); resultobj = Py_None;
10935 return resultobj;
10936 fail:
10937 return NULL;
10938 }
10939
10940
10941 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
10942 PyObject *resultobj;
10943 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10944 int arg2 ;
10945 PyObject * obj0 = 0 ;
10946 PyObject * obj1 = 0 ;
10947 char *kwnames[] = {
10948 (char *) "self",(char *) "state", NULL
10949 };
10950
10951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
10952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10954 arg2 = (int) SWIG_AsInt(obj1);
10955 if (PyErr_Occurred()) SWIG_fail;
10956 {
10957 PyThreadState* __tstate = wxPyBeginAllowThreads();
10958 (arg1)->SetButtonState(arg2);
10959
10960 wxPyEndAllowThreads(__tstate);
10961 if (PyErr_Occurred()) SWIG_fail;
10962 }
10963 Py_INCREF(Py_None); resultobj = Py_None;
10964 return resultobj;
10965 fail:
10966 return NULL;
10967 }
10968
10969
10970 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
10971 PyObject *resultobj;
10972 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10973 int arg2 ;
10974 PyObject * obj0 = 0 ;
10975 PyObject * obj1 = 0 ;
10976 char *kwnames[] = {
10977 (char *) "self",(char *) "change", NULL
10978 };
10979
10980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
10981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10983 arg2 = (int) SWIG_AsInt(obj1);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 (arg1)->SetButtonChange(arg2);
10988
10989 wxPyEndAllowThreads(__tstate);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 Py_INCREF(Py_None); resultobj = Py_None;
10993 return resultobj;
10994 fail:
10995 return NULL;
10996 }
10997
10998
10999 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11000 PyObject *resultobj;
11001 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11002 wxPoint *arg2 = 0 ;
11003 wxPoint temp2 ;
11004 PyObject * obj0 = 0 ;
11005 PyObject * obj1 = 0 ;
11006 char *kwnames[] = {
11007 (char *) "self",(char *) "pos", NULL
11008 };
11009
11010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11013 {
11014 arg2 = &temp2;
11015 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11016 }
11017 {
11018 PyThreadState* __tstate = wxPyBeginAllowThreads();
11019 (arg1)->SetPosition((wxPoint const &)*arg2);
11020
11021 wxPyEndAllowThreads(__tstate);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 }
11024 Py_INCREF(Py_None); resultobj = Py_None;
11025 return resultobj;
11026 fail:
11027 return NULL;
11028 }
11029
11030
11031 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11032 PyObject *resultobj;
11033 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11034 int arg2 ;
11035 PyObject * obj0 = 0 ;
11036 PyObject * obj1 = 0 ;
11037 char *kwnames[] = {
11038 (char *) "self",(char *) "zPos", NULL
11039 };
11040
11041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11044 arg2 = (int) SWIG_AsInt(obj1);
11045 if (PyErr_Occurred()) SWIG_fail;
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 (arg1)->SetZPosition(arg2);
11049
11050 wxPyEndAllowThreads(__tstate);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 }
11053 Py_INCREF(Py_None); resultobj = Py_None;
11054 return resultobj;
11055 fail:
11056 return NULL;
11057 }
11058
11059
11060 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
11061 PyObject *resultobj;
11062 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11063 bool result;
11064 PyObject * obj0 = 0 ;
11065 char *kwnames[] = {
11066 (char *) "self", NULL
11067 };
11068
11069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11072 {
11073 PyThreadState* __tstate = wxPyBeginAllowThreads();
11074 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11075
11076 wxPyEndAllowThreads(__tstate);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 }
11079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11080 return resultobj;
11081 fail:
11082 return NULL;
11083 }
11084
11085
11086 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
11087 PyObject *resultobj;
11088 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11089 bool result;
11090 PyObject * obj0 = 0 ;
11091 char *kwnames[] = {
11092 (char *) "self", NULL
11093 };
11094
11095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11098 {
11099 PyThreadState* __tstate = wxPyBeginAllowThreads();
11100 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11101
11102 wxPyEndAllowThreads(__tstate);
11103 if (PyErr_Occurred()) SWIG_fail;
11104 }
11105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11106 return resultobj;
11107 fail:
11108 return NULL;
11109 }
11110
11111
11112 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
11113 PyObject *resultobj;
11114 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11115 bool result;
11116 PyObject * obj0 = 0 ;
11117 char *kwnames[] = {
11118 (char *) "self", NULL
11119 };
11120
11121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11124 {
11125 PyThreadState* __tstate = wxPyBeginAllowThreads();
11126 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11127
11128 wxPyEndAllowThreads(__tstate);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 }
11131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11132 return resultobj;
11133 fail:
11134 return NULL;
11135 }
11136
11137
11138 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
11139 PyObject *resultobj;
11140 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11141 int arg2 = (int) wxJOY_BUTTON_ANY ;
11142 bool result;
11143 PyObject * obj0 = 0 ;
11144 PyObject * obj1 = 0 ;
11145 char *kwnames[] = {
11146 (char *) "self",(char *) "but", NULL
11147 };
11148
11149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11152 if (obj1) {
11153 arg2 = (int) SWIG_AsInt(obj1);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
11158 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11159
11160 wxPyEndAllowThreads(__tstate);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 }
11163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11164 return resultobj;
11165 fail:
11166 return NULL;
11167 }
11168
11169
11170 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
11171 PyObject *resultobj;
11172 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11173 int arg2 = (int) wxJOY_BUTTON_ANY ;
11174 bool result;
11175 PyObject * obj0 = 0 ;
11176 PyObject * obj1 = 0 ;
11177 char *kwnames[] = {
11178 (char *) "self",(char *) "but", NULL
11179 };
11180
11181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11184 if (obj1) {
11185 arg2 = (int) SWIG_AsInt(obj1);
11186 if (PyErr_Occurred()) SWIG_fail;
11187 }
11188 {
11189 PyThreadState* __tstate = wxPyBeginAllowThreads();
11190 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11191
11192 wxPyEndAllowThreads(__tstate);
11193 if (PyErr_Occurred()) SWIG_fail;
11194 }
11195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11196 return resultobj;
11197 fail:
11198 return NULL;
11199 }
11200
11201
11202 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
11203 PyObject *resultobj;
11204 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11205 int arg2 = (int) wxJOY_BUTTON_ANY ;
11206 bool result;
11207 PyObject * obj0 = 0 ;
11208 PyObject * obj1 = 0 ;
11209 char *kwnames[] = {
11210 (char *) "self",(char *) "but", NULL
11211 };
11212
11213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11216 if (obj1) {
11217 arg2 = (int) SWIG_AsInt(obj1);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 }
11220 {
11221 PyThreadState* __tstate = wxPyBeginAllowThreads();
11222 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11223
11224 wxPyEndAllowThreads(__tstate);
11225 if (PyErr_Occurred()) SWIG_fail;
11226 }
11227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11228 return resultobj;
11229 fail:
11230 return NULL;
11231 }
11232
11233
11234 static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
11235 PyObject *obj;
11236 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11237 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11238 Py_INCREF(obj);
11239 return Py_BuildValue((char *)"");
11240 }
11241 static PyObject *_wrap_new_Sound__SWIG_0(PyObject *, PyObject *args) {
11242 PyObject *resultobj;
11243 wxSound *result;
11244
11245 if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail;
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 result = (wxSound *)new wxSound();
11249
11250 wxPyEndAllowThreads(__tstate);
11251 if (PyErr_Occurred()) SWIG_fail;
11252 }
11253 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11254 return resultobj;
11255 fail:
11256 return NULL;
11257 }
11258
11259
11260 static PyObject *_wrap_new_Sound__SWIG_1(PyObject *, PyObject *args) {
11261 PyObject *resultobj;
11262 wxString *arg1 = 0 ;
11263 bool arg2 = (bool) false ;
11264 wxSound *result;
11265 bool temp1 = False ;
11266 PyObject * obj0 = 0 ;
11267 PyObject * obj1 = 0 ;
11268
11269 if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail;
11270 {
11271 arg1 = wxString_in_helper(obj0);
11272 if (arg1 == NULL) SWIG_fail;
11273 temp1 = True;
11274 }
11275 if (obj1) {
11276 arg2 = (bool) SWIG_AsBool(obj1);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 {
11280 PyThreadState* __tstate = wxPyBeginAllowThreads();
11281 result = (wxSound *)new wxSound((wxString const &)*arg1,arg2);
11282
11283 wxPyEndAllowThreads(__tstate);
11284 if (PyErr_Occurred()) SWIG_fail;
11285 }
11286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11287 {
11288 if (temp1)
11289 delete arg1;
11290 }
11291 return resultobj;
11292 fail:
11293 {
11294 if (temp1)
11295 delete arg1;
11296 }
11297 return NULL;
11298 }
11299
11300
11301 static PyObject *_wrap_new_Sound__SWIG_2(PyObject *, PyObject *args) {
11302 PyObject *resultobj;
11303 int arg1 ;
11304 wxByte *arg2 = (wxByte *) 0 ;
11305 wxSound *result;
11306 PyObject * obj0 = 0 ;
11307 PyObject * obj1 = 0 ;
11308
11309 if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail;
11310 arg1 = (int) SWIG_AsInt(obj0);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte,
11313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2);
11317
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
11321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11322 return resultobj;
11323 fail:
11324 return NULL;
11325 }
11326
11327
11328 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) {
11329 int argc;
11330 PyObject *argv[3];
11331 int ii;
11332
11333 argc = PyObject_Length(args);
11334 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11335 argv[ii] = PyTuple_GetItem(args,ii);
11336 }
11337 if (argc == 0) {
11338 return _wrap_new_Sound__SWIG_0(self,args);
11339 }
11340 if ((argc >= 1) && (argc <= 2)) {
11341 int _v;
11342 {
11343 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11344 }
11345 if (_v) {
11346 if (argc <= 1) {
11347 return _wrap_new_Sound__SWIG_1(self,args);
11348 }
11349 _v = SWIG_CheckBool(argv[1]);
11350 if (_v) {
11351 return _wrap_new_Sound__SWIG_1(self,args);
11352 }
11353 }
11354 }
11355 if (argc == 2) {
11356 int _v;
11357 _v = SWIG_CheckInt(argv[0]);
11358 if (_v) {
11359 {
11360 void *ptr;
11361 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11362 _v = 0;
11363 PyErr_Clear();
11364 } else {
11365 _v = 1;
11366 }
11367 }
11368 if (_v) {
11369 return _wrap_new_Sound__SWIG_2(self,args);
11370 }
11371 }
11372 }
11373
11374 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'");
11375 return NULL;
11376 }
11377
11378
11379 static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
11380 PyObject *resultobj;
11381 wxSound *arg1 = (wxSound *) 0 ;
11382 PyObject * obj0 = 0 ;
11383 char *kwnames[] = {
11384 (char *) "self", NULL
11385 };
11386
11387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 delete arg1;
11393
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 Py_INCREF(Py_None); resultobj = Py_None;
11398 return resultobj;
11399 fail:
11400 return NULL;
11401 }
11402
11403
11404 static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *, PyObject *args) {
11405 PyObject *resultobj;
11406 wxSound *arg1 = (wxSound *) 0 ;
11407 wxString *arg2 = 0 ;
11408 bool arg3 = (bool) false ;
11409 bool result;
11410 bool temp2 = False ;
11411 PyObject * obj0 = 0 ;
11412 PyObject * obj1 = 0 ;
11413 PyObject * obj2 = 0 ;
11414
11415 if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11418 {
11419 arg2 = wxString_in_helper(obj1);
11420 if (arg2 == NULL) SWIG_fail;
11421 temp2 = True;
11422 }
11423 if (obj2) {
11424 arg3 = (bool) SWIG_AsBool(obj2);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 }
11427 {
11428 PyThreadState* __tstate = wxPyBeginAllowThreads();
11429 result = (bool)(arg1)->Create((wxString const &)*arg2,arg3);
11430
11431 wxPyEndAllowThreads(__tstate);
11432 if (PyErr_Occurred()) SWIG_fail;
11433 }
11434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11435 {
11436 if (temp2)
11437 delete arg2;
11438 }
11439 return resultobj;
11440 fail:
11441 {
11442 if (temp2)
11443 delete arg2;
11444 }
11445 return NULL;
11446 }
11447
11448
11449 static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *, PyObject *args) {
11450 PyObject *resultobj;
11451 wxSound *arg1 = (wxSound *) 0 ;
11452 int arg2 ;
11453 wxByte *arg3 = (wxByte *) 0 ;
11454 bool result;
11455 PyObject * obj0 = 0 ;
11456 PyObject * obj1 = 0 ;
11457 PyObject * obj2 = 0 ;
11458
11459 if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11462 arg2 = (int) SWIG_AsInt(obj1);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte,
11465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11466 {
11467 PyThreadState* __tstate = wxPyBeginAllowThreads();
11468 result = (bool)wxSound_Create__SWIG_1(arg1,arg2,(wxByte const *)arg3);
11469
11470 wxPyEndAllowThreads(__tstate);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 }
11473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11474 return resultobj;
11475 fail:
11476 return NULL;
11477 }
11478
11479
11480 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) {
11481 int argc;
11482 PyObject *argv[4];
11483 int ii;
11484
11485 argc = PyObject_Length(args);
11486 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11487 argv[ii] = PyTuple_GetItem(args,ii);
11488 }
11489 if ((argc >= 2) && (argc <= 3)) {
11490 int _v;
11491 {
11492 void *ptr;
11493 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11494 _v = 0;
11495 PyErr_Clear();
11496 } else {
11497 _v = 1;
11498 }
11499 }
11500 if (_v) {
11501 {
11502 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11503 }
11504 if (_v) {
11505 if (argc <= 2) {
11506 return _wrap_Sound_Create__SWIG_0(self,args);
11507 }
11508 _v = SWIG_CheckBool(argv[2]);
11509 if (_v) {
11510 return _wrap_Sound_Create__SWIG_0(self,args);
11511 }
11512 }
11513 }
11514 }
11515 if (argc == 3) {
11516 int _v;
11517 {
11518 void *ptr;
11519 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11520 _v = 0;
11521 PyErr_Clear();
11522 } else {
11523 _v = 1;
11524 }
11525 }
11526 if (_v) {
11527 _v = SWIG_CheckInt(argv[1]);
11528 if (_v) {
11529 {
11530 void *ptr;
11531 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11532 _v = 0;
11533 PyErr_Clear();
11534 } else {
11535 _v = 1;
11536 }
11537 }
11538 if (_v) {
11539 return _wrap_Sound_Create__SWIG_1(self,args);
11540 }
11541 }
11542 }
11543 }
11544
11545 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'");
11546 return NULL;
11547 }
11548
11549
11550 static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
11551 PyObject *resultobj;
11552 wxSound *arg1 = (wxSound *) 0 ;
11553 bool result;
11554 PyObject * obj0 = 0 ;
11555 char *kwnames[] = {
11556 (char *) "self", NULL
11557 };
11558
11559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11562 {
11563 PyThreadState* __tstate = wxPyBeginAllowThreads();
11564 result = (bool)(arg1)->IsOk();
11565
11566 wxPyEndAllowThreads(__tstate);
11567 if (PyErr_Occurred()) SWIG_fail;
11568 }
11569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11570 return resultobj;
11571 fail:
11572 return NULL;
11573 }
11574
11575
11576 static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args) {
11577 PyObject *resultobj;
11578 wxSound *arg1 = (wxSound *) 0 ;
11579 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11580 bool result;
11581 PyObject * obj0 = 0 ;
11582 PyObject * obj1 = 0 ;
11583
11584 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail;
11585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11587 if (obj1) {
11588 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11589 if (PyErr_Occurred()) SWIG_fail;
11590 }
11591 {
11592 PyThreadState* __tstate = wxPyBeginAllowThreads();
11593 result = (bool)((wxSound const *)arg1)->Play(arg2);
11594
11595 wxPyEndAllowThreads(__tstate);
11596 if (PyErr_Occurred()) SWIG_fail;
11597 }
11598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11599 return resultobj;
11600 fail:
11601 return NULL;
11602 }
11603
11604
11605 static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args) {
11606 PyObject *resultobj;
11607 wxString *arg1 = 0 ;
11608 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11609 bool result;
11610 bool temp1 = False ;
11611 PyObject * obj0 = 0 ;
11612 PyObject * obj1 = 0 ;
11613
11614 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail;
11615 {
11616 arg1 = wxString_in_helper(obj0);
11617 if (arg1 == NULL) SWIG_fail;
11618 temp1 = True;
11619 }
11620 if (obj1) {
11621 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 }
11624 {
11625 PyThreadState* __tstate = wxPyBeginAllowThreads();
11626 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11627
11628 wxPyEndAllowThreads(__tstate);
11629 if (PyErr_Occurred()) SWIG_fail;
11630 }
11631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11632 {
11633 if (temp1)
11634 delete arg1;
11635 }
11636 return resultobj;
11637 fail:
11638 {
11639 if (temp1)
11640 delete arg1;
11641 }
11642 return NULL;
11643 }
11644
11645
11646 static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
11647 PyObject *resultobj;
11648 char *kwnames[] = {
11649 NULL
11650 };
11651
11652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11653 {
11654 PyThreadState* __tstate = wxPyBeginAllowThreads();
11655 Sound_Stop();
11656
11657 wxPyEndAllowThreads(__tstate);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 }
11660 Py_INCREF(Py_None); resultobj = Py_None;
11661 return resultobj;
11662 fail:
11663 return NULL;
11664 }
11665
11666
11667 static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
11668 PyObject *obj;
11669 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11670 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11671 Py_INCREF(obj);
11672 return Py_BuildValue((char *)"");
11673 }
11674 static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11675 PyObject *resultobj;
11676 wxString *arg1 = 0 ;
11677 wxString *arg2 = 0 ;
11678 wxString *arg3 = 0 ;
11679 wxString *arg4 = 0 ;
11680 wxFileTypeInfo *result;
11681 bool temp1 = False ;
11682 bool temp2 = False ;
11683 bool temp3 = False ;
11684 bool temp4 = False ;
11685 PyObject * obj0 = 0 ;
11686 PyObject * obj1 = 0 ;
11687 PyObject * obj2 = 0 ;
11688 PyObject * obj3 = 0 ;
11689 char *kwnames[] = {
11690 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11691 };
11692
11693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11694 {
11695 arg1 = wxString_in_helper(obj0);
11696 if (arg1 == NULL) SWIG_fail;
11697 temp1 = True;
11698 }
11699 {
11700 arg2 = wxString_in_helper(obj1);
11701 if (arg2 == NULL) SWIG_fail;
11702 temp2 = True;
11703 }
11704 {
11705 arg3 = wxString_in_helper(obj2);
11706 if (arg3 == NULL) SWIG_fail;
11707 temp3 = True;
11708 }
11709 {
11710 arg4 = wxString_in_helper(obj3);
11711 if (arg4 == NULL) SWIG_fail;
11712 temp4 = True;
11713 }
11714 {
11715 PyThreadState* __tstate = wxPyBeginAllowThreads();
11716 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11717
11718 wxPyEndAllowThreads(__tstate);
11719 if (PyErr_Occurred()) SWIG_fail;
11720 }
11721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11722 {
11723 if (temp1)
11724 delete arg1;
11725 }
11726 {
11727 if (temp2)
11728 delete arg2;
11729 }
11730 {
11731 if (temp3)
11732 delete arg3;
11733 }
11734 {
11735 if (temp4)
11736 delete arg4;
11737 }
11738 return resultobj;
11739 fail:
11740 {
11741 if (temp1)
11742 delete arg1;
11743 }
11744 {
11745 if (temp2)
11746 delete arg2;
11747 }
11748 {
11749 if (temp3)
11750 delete arg3;
11751 }
11752 {
11753 if (temp4)
11754 delete arg4;
11755 }
11756 return NULL;
11757 }
11758
11759
11760 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
11761 PyObject *resultobj;
11762 wxArrayString *arg1 = 0 ;
11763 wxFileTypeInfo *result;
11764 bool temp1 = False ;
11765 PyObject * obj0 = 0 ;
11766 char *kwnames[] = {
11767 (char *) "sArray", NULL
11768 };
11769
11770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11771 {
11772 if (! PySequence_Check(obj0)) {
11773 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11774 SWIG_fail;
11775 }
11776 arg1 = new wxArrayString;
11777 temp1 = True;
11778 int i, len=PySequence_Length(obj0);
11779 for (i=0; i<len; i++) {
11780 PyObject* item = PySequence_GetItem(obj0, i);
11781 #if wxUSE_UNICODE
11782 PyObject* str = PyObject_Unicode(item);
11783 #else
11784 PyObject* str = PyObject_Str(item);
11785 #endif
11786 arg1->Add(Py2wxString(str));
11787 Py_DECREF(item);
11788 Py_DECREF(str);
11789 }
11790 }
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11794
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11799 {
11800 if (temp1) delete arg1;
11801 }
11802 return resultobj;
11803 fail:
11804 {
11805 if (temp1) delete arg1;
11806 }
11807 return NULL;
11808 }
11809
11810
11811 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
11812 PyObject *resultobj;
11813 wxFileTypeInfo *result;
11814 char *kwnames[] = {
11815 NULL
11816 };
11817
11818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11819 {
11820 PyThreadState* __tstate = wxPyBeginAllowThreads();
11821 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11822
11823 wxPyEndAllowThreads(__tstate);
11824 if (PyErr_Occurred()) SWIG_fail;
11825 }
11826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11827 return resultobj;
11828 fail:
11829 return NULL;
11830 }
11831
11832
11833 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
11834 PyObject *resultobj;
11835 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11836 bool result;
11837 PyObject * obj0 = 0 ;
11838 char *kwnames[] = {
11839 (char *) "self", NULL
11840 };
11841
11842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
11843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11845 {
11846 PyThreadState* __tstate = wxPyBeginAllowThreads();
11847 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
11848
11849 wxPyEndAllowThreads(__tstate);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11853 return resultobj;
11854 fail:
11855 return NULL;
11856 }
11857
11858
11859 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
11860 PyObject *resultobj;
11861 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11862 wxString *arg2 = 0 ;
11863 int arg3 = (int) 0 ;
11864 bool temp2 = False ;
11865 PyObject * obj0 = 0 ;
11866 PyObject * obj1 = 0 ;
11867 PyObject * obj2 = 0 ;
11868 char *kwnames[] = {
11869 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
11870 };
11871
11872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11875 {
11876 arg2 = wxString_in_helper(obj1);
11877 if (arg2 == NULL) SWIG_fail;
11878 temp2 = True;
11879 }
11880 if (obj2) {
11881 arg3 = (int) SWIG_AsInt(obj2);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 }
11884 {
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 (arg1)->SetIcon((wxString const &)*arg2,arg3);
11887
11888 wxPyEndAllowThreads(__tstate);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 }
11891 Py_INCREF(Py_None); resultobj = Py_None;
11892 {
11893 if (temp2)
11894 delete arg2;
11895 }
11896 return resultobj;
11897 fail:
11898 {
11899 if (temp2)
11900 delete arg2;
11901 }
11902 return NULL;
11903 }
11904
11905
11906 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
11907 PyObject *resultobj;
11908 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11909 wxString *arg2 = 0 ;
11910 bool temp2 = False ;
11911 PyObject * obj0 = 0 ;
11912 PyObject * obj1 = 0 ;
11913 char *kwnames[] = {
11914 (char *) "self",(char *) "shortDesc", NULL
11915 };
11916
11917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
11918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11920 {
11921 arg2 = wxString_in_helper(obj1);
11922 if (arg2 == NULL) SWIG_fail;
11923 temp2 = True;
11924 }
11925 {
11926 PyThreadState* __tstate = wxPyBeginAllowThreads();
11927 (arg1)->SetShortDesc((wxString const &)*arg2);
11928
11929 wxPyEndAllowThreads(__tstate);
11930 if (PyErr_Occurred()) SWIG_fail;
11931 }
11932 Py_INCREF(Py_None); resultobj = Py_None;
11933 {
11934 if (temp2)
11935 delete arg2;
11936 }
11937 return resultobj;
11938 fail:
11939 {
11940 if (temp2)
11941 delete arg2;
11942 }
11943 return NULL;
11944 }
11945
11946
11947 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
11948 PyObject *resultobj;
11949 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11950 wxString *result;
11951 PyObject * obj0 = 0 ;
11952 char *kwnames[] = {
11953 (char *) "self", NULL
11954 };
11955
11956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
11957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11959 {
11960 PyThreadState* __tstate = wxPyBeginAllowThreads();
11961 {
11962 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
11963 result = (wxString *) &_result_ref;
11964 }
11965
11966 wxPyEndAllowThreads(__tstate);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 }
11969 {
11970 #if wxUSE_UNICODE
11971 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11972 #else
11973 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11974 #endif
11975 }
11976 return resultobj;
11977 fail:
11978 return NULL;
11979 }
11980
11981
11982 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
11983 PyObject *resultobj;
11984 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11985 wxString *result;
11986 PyObject * obj0 = 0 ;
11987 char *kwnames[] = {
11988 (char *) "self", NULL
11989 };
11990
11991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
11992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 {
11997 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
11998 result = (wxString *) &_result_ref;
11999 }
12000
12001 wxPyEndAllowThreads(__tstate);
12002 if (PyErr_Occurred()) SWIG_fail;
12003 }
12004 {
12005 #if wxUSE_UNICODE
12006 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12007 #else
12008 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12009 #endif
12010 }
12011 return resultobj;
12012 fail:
12013 return NULL;
12014 }
12015
12016
12017 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12018 PyObject *resultobj;
12019 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12020 wxString *result;
12021 PyObject * obj0 = 0 ;
12022 char *kwnames[] = {
12023 (char *) "self", NULL
12024 };
12025
12026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12029 {
12030 PyThreadState* __tstate = wxPyBeginAllowThreads();
12031 {
12032 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12033 result = (wxString *) &_result_ref;
12034 }
12035
12036 wxPyEndAllowThreads(__tstate);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 {
12040 #if wxUSE_UNICODE
12041 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12042 #else
12043 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12044 #endif
12045 }
12046 return resultobj;
12047 fail:
12048 return NULL;
12049 }
12050
12051
12052 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12053 PyObject *resultobj;
12054 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12055 wxString *result;
12056 PyObject * obj0 = 0 ;
12057 char *kwnames[] = {
12058 (char *) "self", NULL
12059 };
12060
12061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12064 {
12065 PyThreadState* __tstate = wxPyBeginAllowThreads();
12066 {
12067 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12068 result = (wxString *) &_result_ref;
12069 }
12070
12071 wxPyEndAllowThreads(__tstate);
12072 if (PyErr_Occurred()) SWIG_fail;
12073 }
12074 {
12075 #if wxUSE_UNICODE
12076 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12077 #else
12078 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12079 #endif
12080 }
12081 return resultobj;
12082 fail:
12083 return NULL;
12084 }
12085
12086
12087 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12088 PyObject *resultobj;
12089 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12090 wxString *result;
12091 PyObject * obj0 = 0 ;
12092 char *kwnames[] = {
12093 (char *) "self", NULL
12094 };
12095
12096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 {
12102 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12103 result = (wxString *) &_result_ref;
12104 }
12105
12106 wxPyEndAllowThreads(__tstate);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 {
12110 #if wxUSE_UNICODE
12111 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12112 #else
12113 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12114 #endif
12115 }
12116 return resultobj;
12117 fail:
12118 return NULL;
12119 }
12120
12121
12122 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12123 PyObject *resultobj;
12124 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12125 wxArrayString *result;
12126 PyObject * obj0 = 0 ;
12127 char *kwnames[] = {
12128 (char *) "self", NULL
12129 };
12130
12131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12134 {
12135 PyThreadState* __tstate = wxPyBeginAllowThreads();
12136 {
12137 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12138 result = (wxArrayString *) &_result_ref;
12139 }
12140
12141 wxPyEndAllowThreads(__tstate);
12142 if (PyErr_Occurred()) SWIG_fail;
12143 }
12144 {
12145 resultobj = wxArrayString2PyList_helper(*result);
12146 }
12147 return resultobj;
12148 fail:
12149 return NULL;
12150 }
12151
12152
12153 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
12154 PyObject *resultobj;
12155 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12156 int result;
12157 PyObject * obj0 = 0 ;
12158 char *kwnames[] = {
12159 (char *) "self", NULL
12160 };
12161
12162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12165 {
12166 PyThreadState* __tstate = wxPyBeginAllowThreads();
12167 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12168
12169 wxPyEndAllowThreads(__tstate);
12170 if (PyErr_Occurred()) SWIG_fail;
12171 }
12172 resultobj = SWIG_FromInt((int)result);
12173 return resultobj;
12174 fail:
12175 return NULL;
12176 }
12177
12178
12179 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) {
12180 PyObject *resultobj;
12181 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12182 wxString *result;
12183 PyObject * obj0 = 0 ;
12184 char *kwnames[] = {
12185 (char *) "self", NULL
12186 };
12187
12188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12191 {
12192 PyThreadState* __tstate = wxPyBeginAllowThreads();
12193 {
12194 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12195 result = (wxString *) &_result_ref;
12196 }
12197
12198 wxPyEndAllowThreads(__tstate);
12199 if (PyErr_Occurred()) SWIG_fail;
12200 }
12201 {
12202 #if wxUSE_UNICODE
12203 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12204 #else
12205 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12206 #endif
12207 }
12208 return resultobj;
12209 fail:
12210 return NULL;
12211 }
12212
12213
12214 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
12215 PyObject *resultobj;
12216 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12217 int result;
12218 PyObject * obj0 = 0 ;
12219 char *kwnames[] = {
12220 (char *) "self", NULL
12221 };
12222
12223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12226 {
12227 PyThreadState* __tstate = wxPyBeginAllowThreads();
12228 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12229
12230 wxPyEndAllowThreads(__tstate);
12231 if (PyErr_Occurred()) SWIG_fail;
12232 }
12233 resultobj = SWIG_FromInt((int)result);
12234 return resultobj;
12235 fail:
12236 return NULL;
12237 }
12238
12239
12240 static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
12241 PyObject *obj;
12242 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12243 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12244 Py_INCREF(obj);
12245 return Py_BuildValue((char *)"");
12246 }
12247 static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12248 PyObject *resultobj;
12249 wxFileTypeInfo *arg1 = 0 ;
12250 wxFileType *result;
12251 PyObject * obj0 = 0 ;
12252 char *kwnames[] = {
12253 (char *) "ftInfo", NULL
12254 };
12255
12256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12258 SWIG_POINTER_EXCEPTION | 0)) == -1)
12259 SWIG_fail;
12260 if (arg1 == NULL) {
12261 PyErr_SetString(PyExc_TypeError,"null reference");
12262 SWIG_fail;
12263 }
12264 {
12265 PyThreadState* __tstate = wxPyBeginAllowThreads();
12266 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12267
12268 wxPyEndAllowThreads(__tstate);
12269 if (PyErr_Occurred()) SWIG_fail;
12270 }
12271 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12272 return resultobj;
12273 fail:
12274 return NULL;
12275 }
12276
12277
12278 static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12279 PyObject *resultobj;
12280 wxFileType *arg1 = (wxFileType *) 0 ;
12281 PyObject * obj0 = 0 ;
12282 char *kwnames[] = {
12283 (char *) "self", NULL
12284 };
12285
12286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12289 {
12290 PyThreadState* __tstate = wxPyBeginAllowThreads();
12291 delete arg1;
12292
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 Py_INCREF(Py_None); resultobj = Py_None;
12297 return resultobj;
12298 fail:
12299 return NULL;
12300 }
12301
12302
12303 static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12304 PyObject *resultobj;
12305 wxFileType *arg1 = (wxFileType *) 0 ;
12306 PyObject *result;
12307 PyObject * obj0 = 0 ;
12308 char *kwnames[] = {
12309 (char *) "self", NULL
12310 };
12311
12312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 result = (PyObject *)wxFileType_GetMimeType(arg1);
12318
12319 wxPyEndAllowThreads(__tstate);
12320 if (PyErr_Occurred()) SWIG_fail;
12321 }
12322 resultobj = result;
12323 return resultobj;
12324 fail:
12325 return NULL;
12326 }
12327
12328
12329 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
12330 PyObject *resultobj;
12331 wxFileType *arg1 = (wxFileType *) 0 ;
12332 PyObject *result;
12333 PyObject * obj0 = 0 ;
12334 char *kwnames[] = {
12335 (char *) "self", NULL
12336 };
12337
12338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12341 {
12342 PyThreadState* __tstate = wxPyBeginAllowThreads();
12343 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12344
12345 wxPyEndAllowThreads(__tstate);
12346 if (PyErr_Occurred()) SWIG_fail;
12347 }
12348 resultobj = result;
12349 return resultobj;
12350 fail:
12351 return NULL;
12352 }
12353
12354
12355 static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12356 PyObject *resultobj;
12357 wxFileType *arg1 = (wxFileType *) 0 ;
12358 PyObject *result;
12359 PyObject * obj0 = 0 ;
12360 char *kwnames[] = {
12361 (char *) "self", NULL
12362 };
12363
12364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12367 {
12368 PyThreadState* __tstate = wxPyBeginAllowThreads();
12369 result = (PyObject *)wxFileType_GetExtensions(arg1);
12370
12371 wxPyEndAllowThreads(__tstate);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 }
12374 resultobj = result;
12375 return resultobj;
12376 fail:
12377 return NULL;
12378 }
12379
12380
12381 static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12382 PyObject *resultobj;
12383 wxFileType *arg1 = (wxFileType *) 0 ;
12384 wxIcon *result;
12385 PyObject * obj0 = 0 ;
12386 char *kwnames[] = {
12387 (char *) "self", NULL
12388 };
12389
12390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = (wxIcon *)wxFileType_GetIcon(arg1);
12396
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12401 return resultobj;
12402 fail:
12403 return NULL;
12404 }
12405
12406
12407 static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12408 PyObject *resultobj;
12409 wxFileType *arg1 = (wxFileType *) 0 ;
12410 PyObject *result;
12411 PyObject * obj0 = 0 ;
12412 char *kwnames[] = {
12413 (char *) "self", NULL
12414 };
12415
12416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12419 {
12420 PyThreadState* __tstate = wxPyBeginAllowThreads();
12421 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12422
12423 wxPyEndAllowThreads(__tstate);
12424 if (PyErr_Occurred()) SWIG_fail;
12425 }
12426 resultobj = result;
12427 return resultobj;
12428 fail:
12429 return NULL;
12430 }
12431
12432
12433 static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12434 PyObject *resultobj;
12435 wxFileType *arg1 = (wxFileType *) 0 ;
12436 PyObject *result;
12437 PyObject * obj0 = 0 ;
12438 char *kwnames[] = {
12439 (char *) "self", NULL
12440 };
12441
12442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12445 {
12446 PyThreadState* __tstate = wxPyBeginAllowThreads();
12447 result = (PyObject *)wxFileType_GetDescription(arg1);
12448
12449 wxPyEndAllowThreads(__tstate);
12450 if (PyErr_Occurred()) SWIG_fail;
12451 }
12452 resultobj = result;
12453 return resultobj;
12454 fail:
12455 return NULL;
12456 }
12457
12458
12459 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12460 PyObject *resultobj;
12461 wxFileType *arg1 = (wxFileType *) 0 ;
12462 wxString *arg2 = 0 ;
12463 wxString const &arg3_defvalue = wxPyEmptyString ;
12464 wxString *arg3 = (wxString *) &arg3_defvalue ;
12465 PyObject *result;
12466 bool temp2 = False ;
12467 bool temp3 = False ;
12468 PyObject * obj0 = 0 ;
12469 PyObject * obj1 = 0 ;
12470 PyObject * obj2 = 0 ;
12471 char *kwnames[] = {
12472 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12473 };
12474
12475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12478 {
12479 arg2 = wxString_in_helper(obj1);
12480 if (arg2 == NULL) SWIG_fail;
12481 temp2 = True;
12482 }
12483 if (obj2) {
12484 {
12485 arg3 = wxString_in_helper(obj2);
12486 if (arg3 == NULL) SWIG_fail;
12487 temp3 = True;
12488 }
12489 }
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12493
12494 wxPyEndAllowThreads(__tstate);
12495 if (PyErr_Occurred()) SWIG_fail;
12496 }
12497 resultobj = result;
12498 {
12499 if (temp2)
12500 delete arg2;
12501 }
12502 {
12503 if (temp3)
12504 delete arg3;
12505 }
12506 return resultobj;
12507 fail:
12508 {
12509 if (temp2)
12510 delete arg2;
12511 }
12512 {
12513 if (temp3)
12514 delete arg3;
12515 }
12516 return NULL;
12517 }
12518
12519
12520 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12521 PyObject *resultobj;
12522 wxFileType *arg1 = (wxFileType *) 0 ;
12523 wxString *arg2 = 0 ;
12524 wxString const &arg3_defvalue = wxPyEmptyString ;
12525 wxString *arg3 = (wxString *) &arg3_defvalue ;
12526 PyObject *result;
12527 bool temp2 = False ;
12528 bool temp3 = False ;
12529 PyObject * obj0 = 0 ;
12530 PyObject * obj1 = 0 ;
12531 PyObject * obj2 = 0 ;
12532 char *kwnames[] = {
12533 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12534 };
12535
12536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12539 {
12540 arg2 = wxString_in_helper(obj1);
12541 if (arg2 == NULL) SWIG_fail;
12542 temp2 = True;
12543 }
12544 if (obj2) {
12545 {
12546 arg3 = wxString_in_helper(obj2);
12547 if (arg3 == NULL) SWIG_fail;
12548 temp3 = True;
12549 }
12550 }
12551 {
12552 PyThreadState* __tstate = wxPyBeginAllowThreads();
12553 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12554
12555 wxPyEndAllowThreads(__tstate);
12556 if (PyErr_Occurred()) SWIG_fail;
12557 }
12558 resultobj = result;
12559 {
12560 if (temp2)
12561 delete arg2;
12562 }
12563 {
12564 if (temp3)
12565 delete arg3;
12566 }
12567 return resultobj;
12568 fail:
12569 {
12570 if (temp2)
12571 delete arg2;
12572 }
12573 {
12574 if (temp3)
12575 delete arg3;
12576 }
12577 return NULL;
12578 }
12579
12580
12581 static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
12582 PyObject *resultobj;
12583 wxFileType *arg1 = (wxFileType *) 0 ;
12584 wxString *arg2 = 0 ;
12585 wxString const &arg3_defvalue = wxPyEmptyString ;
12586 wxString *arg3 = (wxString *) &arg3_defvalue ;
12587 PyObject *result;
12588 bool temp2 = False ;
12589 bool temp3 = False ;
12590 PyObject * obj0 = 0 ;
12591 PyObject * obj1 = 0 ;
12592 PyObject * obj2 = 0 ;
12593 char *kwnames[] = {
12594 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12595 };
12596
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12600 {
12601 arg2 = wxString_in_helper(obj1);
12602 if (arg2 == NULL) SWIG_fail;
12603 temp2 = True;
12604 }
12605 if (obj2) {
12606 {
12607 arg3 = wxString_in_helper(obj2);
12608 if (arg3 == NULL) SWIG_fail;
12609 temp3 = True;
12610 }
12611 }
12612 {
12613 PyThreadState* __tstate = wxPyBeginAllowThreads();
12614 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12615
12616 wxPyEndAllowThreads(__tstate);
12617 if (PyErr_Occurred()) SWIG_fail;
12618 }
12619 resultobj = result;
12620 {
12621 if (temp2)
12622 delete arg2;
12623 }
12624 {
12625 if (temp3)
12626 delete arg3;
12627 }
12628 return resultobj;
12629 fail:
12630 {
12631 if (temp2)
12632 delete arg2;
12633 }
12634 {
12635 if (temp3)
12636 delete arg3;
12637 }
12638 return NULL;
12639 }
12640
12641
12642 static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj;
12644 wxFileType *arg1 = (wxFileType *) 0 ;
12645 wxString *arg2 = 0 ;
12646 wxString *arg3 = 0 ;
12647 bool arg4 = (bool) True ;
12648 bool result;
12649 bool temp2 = False ;
12650 bool temp3 = False ;
12651 PyObject * obj0 = 0 ;
12652 PyObject * obj1 = 0 ;
12653 PyObject * obj2 = 0 ;
12654 PyObject * obj3 = 0 ;
12655 char *kwnames[] = {
12656 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12657 };
12658
12659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12662 {
12663 arg2 = wxString_in_helper(obj1);
12664 if (arg2 == NULL) SWIG_fail;
12665 temp2 = True;
12666 }
12667 {
12668 arg3 = wxString_in_helper(obj2);
12669 if (arg3 == NULL) SWIG_fail;
12670 temp3 = True;
12671 }
12672 if (obj3) {
12673 arg4 = (bool) SWIG_AsBool(obj3);
12674 if (PyErr_Occurred()) SWIG_fail;
12675 }
12676 {
12677 PyThreadState* __tstate = wxPyBeginAllowThreads();
12678 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12679
12680 wxPyEndAllowThreads(__tstate);
12681 if (PyErr_Occurred()) SWIG_fail;
12682 }
12683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12684 {
12685 if (temp2)
12686 delete arg2;
12687 }
12688 {
12689 if (temp3)
12690 delete arg3;
12691 }
12692 return resultobj;
12693 fail:
12694 {
12695 if (temp2)
12696 delete arg2;
12697 }
12698 {
12699 if (temp3)
12700 delete arg3;
12701 }
12702 return NULL;
12703 }
12704
12705
12706 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12707 PyObject *resultobj;
12708 wxFileType *arg1 = (wxFileType *) 0 ;
12709 wxString const &arg2_defvalue = wxPyEmptyString ;
12710 wxString *arg2 = (wxString *) &arg2_defvalue ;
12711 int arg3 = (int) 0 ;
12712 bool result;
12713 bool temp2 = False ;
12714 PyObject * obj0 = 0 ;
12715 PyObject * obj1 = 0 ;
12716 PyObject * obj2 = 0 ;
12717 char *kwnames[] = {
12718 (char *) "self",(char *) "cmd",(char *) "index", NULL
12719 };
12720
12721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12724 if (obj1) {
12725 {
12726 arg2 = wxString_in_helper(obj1);
12727 if (arg2 == NULL) SWIG_fail;
12728 temp2 = True;
12729 }
12730 }
12731 if (obj2) {
12732 arg3 = (int) SWIG_AsInt(obj2);
12733 if (PyErr_Occurred()) SWIG_fail;
12734 }
12735 {
12736 PyThreadState* __tstate = wxPyBeginAllowThreads();
12737 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12738
12739 wxPyEndAllowThreads(__tstate);
12740 if (PyErr_Occurred()) SWIG_fail;
12741 }
12742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12743 {
12744 if (temp2)
12745 delete arg2;
12746 }
12747 return resultobj;
12748 fail:
12749 {
12750 if (temp2)
12751 delete arg2;
12752 }
12753 return NULL;
12754 }
12755
12756
12757 static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
12758 PyObject *resultobj;
12759 wxFileType *arg1 = (wxFileType *) 0 ;
12760 bool result;
12761 PyObject * obj0 = 0 ;
12762 char *kwnames[] = {
12763 (char *) "self", NULL
12764 };
12765
12766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12769 {
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = (bool)(arg1)->Unassociate();
12772
12773 wxPyEndAllowThreads(__tstate);
12774 if (PyErr_Occurred()) SWIG_fail;
12775 }
12776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12777 return resultobj;
12778 fail:
12779 return NULL;
12780 }
12781
12782
12783 static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12784 PyObject *resultobj;
12785 wxString *arg1 = 0 ;
12786 wxString *arg2 = 0 ;
12787 wxString const &arg3_defvalue = wxPyEmptyString ;
12788 wxString *arg3 = (wxString *) &arg3_defvalue ;
12789 wxString result;
12790 bool temp1 = False ;
12791 bool temp2 = False ;
12792 bool temp3 = False ;
12793 PyObject * obj0 = 0 ;
12794 PyObject * obj1 = 0 ;
12795 PyObject * obj2 = 0 ;
12796 char *kwnames[] = {
12797 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12798 };
12799
12800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12801 {
12802 arg1 = wxString_in_helper(obj0);
12803 if (arg1 == NULL) SWIG_fail;
12804 temp1 = True;
12805 }
12806 {
12807 arg2 = wxString_in_helper(obj1);
12808 if (arg2 == NULL) SWIG_fail;
12809 temp2 = True;
12810 }
12811 if (obj2) {
12812 {
12813 arg3 = wxString_in_helper(obj2);
12814 if (arg3 == NULL) SWIG_fail;
12815 temp3 = True;
12816 }
12817 }
12818 {
12819 PyThreadState* __tstate = wxPyBeginAllowThreads();
12820 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12821
12822 wxPyEndAllowThreads(__tstate);
12823 if (PyErr_Occurred()) SWIG_fail;
12824 }
12825 {
12826 #if wxUSE_UNICODE
12827 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12828 #else
12829 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12830 #endif
12831 }
12832 {
12833 if (temp1)
12834 delete arg1;
12835 }
12836 {
12837 if (temp2)
12838 delete arg2;
12839 }
12840 {
12841 if (temp3)
12842 delete arg3;
12843 }
12844 return resultobj;
12845 fail:
12846 {
12847 if (temp1)
12848 delete arg1;
12849 }
12850 {
12851 if (temp2)
12852 delete arg2;
12853 }
12854 {
12855 if (temp3)
12856 delete arg3;
12857 }
12858 return NULL;
12859 }
12860
12861
12862 static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
12863 PyObject *obj;
12864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12865 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
12866 Py_INCREF(obj);
12867 return Py_BuildValue((char *)"");
12868 }
12869 static int _wrap_TheMimeTypesManager_set(PyObject *) {
12870 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
12871 return 1;
12872 }
12873
12874
12875 static PyObject *_wrap_TheMimeTypesManager_get() {
12876 PyObject *pyobj;
12877
12878 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
12879 return pyobj;
12880 }
12881
12882
12883 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
12884 PyObject *resultobj;
12885 wxString *arg1 = 0 ;
12886 wxString *arg2 = 0 ;
12887 bool result;
12888 bool temp1 = False ;
12889 bool temp2 = False ;
12890 PyObject * obj0 = 0 ;
12891 PyObject * obj1 = 0 ;
12892 char *kwnames[] = {
12893 (char *) "mimeType",(char *) "wildcard", NULL
12894 };
12895
12896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
12897 {
12898 arg1 = wxString_in_helper(obj0);
12899 if (arg1 == NULL) SWIG_fail;
12900 temp1 = True;
12901 }
12902 {
12903 arg2 = wxString_in_helper(obj1);
12904 if (arg2 == NULL) SWIG_fail;
12905 temp2 = True;
12906 }
12907 {
12908 PyThreadState* __tstate = wxPyBeginAllowThreads();
12909 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
12910
12911 wxPyEndAllowThreads(__tstate);
12912 if (PyErr_Occurred()) SWIG_fail;
12913 }
12914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12915 {
12916 if (temp1)
12917 delete arg1;
12918 }
12919 {
12920 if (temp2)
12921 delete arg2;
12922 }
12923 return resultobj;
12924 fail:
12925 {
12926 if (temp1)
12927 delete arg1;
12928 }
12929 {
12930 if (temp2)
12931 delete arg2;
12932 }
12933 return NULL;
12934 }
12935
12936
12937 static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
12938 PyObject *resultobj;
12939 wxMimeTypesManager *result;
12940 char *kwnames[] = {
12941 NULL
12942 };
12943
12944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
12945 {
12946 PyThreadState* __tstate = wxPyBeginAllowThreads();
12947 result = (wxMimeTypesManager *)new wxMimeTypesManager();
12948
12949 wxPyEndAllowThreads(__tstate);
12950 if (PyErr_Occurred()) SWIG_fail;
12951 }
12952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
12953 return resultobj;
12954 fail:
12955 return NULL;
12956 }
12957
12958
12959 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
12960 PyObject *resultobj;
12961 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12962 int arg2 = (int) wxMAILCAP_ALL ;
12963 wxString const &arg3_defvalue = wxPyEmptyString ;
12964 wxString *arg3 = (wxString *) &arg3_defvalue ;
12965 bool temp3 = False ;
12966 PyObject * obj0 = 0 ;
12967 PyObject * obj1 = 0 ;
12968 PyObject * obj2 = 0 ;
12969 char *kwnames[] = {
12970 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
12971 };
12972
12973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
12975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12976 if (obj1) {
12977 arg2 = (int) SWIG_AsInt(obj1);
12978 if (PyErr_Occurred()) SWIG_fail;
12979 }
12980 if (obj2) {
12981 {
12982 arg3 = wxString_in_helper(obj2);
12983 if (arg3 == NULL) SWIG_fail;
12984 temp3 = True;
12985 }
12986 }
12987 {
12988 PyThreadState* __tstate = wxPyBeginAllowThreads();
12989 (arg1)->Initialize(arg2,(wxString const &)*arg3);
12990
12991 wxPyEndAllowThreads(__tstate);
12992 if (PyErr_Occurred()) SWIG_fail;
12993 }
12994 Py_INCREF(Py_None); resultobj = Py_None;
12995 {
12996 if (temp3)
12997 delete arg3;
12998 }
12999 return resultobj;
13000 fail:
13001 {
13002 if (temp3)
13003 delete arg3;
13004 }
13005 return NULL;
13006 }
13007
13008
13009 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
13010 PyObject *resultobj;
13011 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13012 PyObject * obj0 = 0 ;
13013 char *kwnames[] = {
13014 (char *) "self", NULL
13015 };
13016
13017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13020 {
13021 PyThreadState* __tstate = wxPyBeginAllowThreads();
13022 (arg1)->ClearData();
13023
13024 wxPyEndAllowThreads(__tstate);
13025 if (PyErr_Occurred()) SWIG_fail;
13026 }
13027 Py_INCREF(Py_None); resultobj = Py_None;
13028 return resultobj;
13029 fail:
13030 return NULL;
13031 }
13032
13033
13034 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
13035 PyObject *resultobj;
13036 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13037 wxString *arg2 = 0 ;
13038 wxFileType *result;
13039 bool temp2 = False ;
13040 PyObject * obj0 = 0 ;
13041 PyObject * obj1 = 0 ;
13042 char *kwnames[] = {
13043 (char *) "self",(char *) "ext", NULL
13044 };
13045
13046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13049 {
13050 arg2 = wxString_in_helper(obj1);
13051 if (arg2 == NULL) SWIG_fail;
13052 temp2 = True;
13053 }
13054 {
13055 PyThreadState* __tstate = wxPyBeginAllowThreads();
13056 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13057
13058 wxPyEndAllowThreads(__tstate);
13059 if (PyErr_Occurred()) SWIG_fail;
13060 }
13061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13062 {
13063 if (temp2)
13064 delete arg2;
13065 }
13066 return resultobj;
13067 fail:
13068 {
13069 if (temp2)
13070 delete arg2;
13071 }
13072 return NULL;
13073 }
13074
13075
13076 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj;
13078 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13079 wxString *arg2 = 0 ;
13080 wxFileType *result;
13081 bool temp2 = False ;
13082 PyObject * obj0 = 0 ;
13083 PyObject * obj1 = 0 ;
13084 char *kwnames[] = {
13085 (char *) "self",(char *) "mimeType", NULL
13086 };
13087
13088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13091 {
13092 arg2 = wxString_in_helper(obj1);
13093 if (arg2 == NULL) SWIG_fail;
13094 temp2 = True;
13095 }
13096 {
13097 PyThreadState* __tstate = wxPyBeginAllowThreads();
13098 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13099
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13104 {
13105 if (temp2)
13106 delete arg2;
13107 }
13108 return resultobj;
13109 fail:
13110 {
13111 if (temp2)
13112 delete arg2;
13113 }
13114 return NULL;
13115 }
13116
13117
13118 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
13119 PyObject *resultobj;
13120 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13121 wxString *arg2 = 0 ;
13122 bool arg3 = (bool) False ;
13123 bool result;
13124 bool temp2 = False ;
13125 PyObject * obj0 = 0 ;
13126 PyObject * obj1 = 0 ;
13127 PyObject * obj2 = 0 ;
13128 char *kwnames[] = {
13129 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13130 };
13131
13132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13135 {
13136 arg2 = wxString_in_helper(obj1);
13137 if (arg2 == NULL) SWIG_fail;
13138 temp2 = True;
13139 }
13140 if (obj2) {
13141 arg3 = (bool) SWIG_AsBool(obj2);
13142 if (PyErr_Occurred()) SWIG_fail;
13143 }
13144 {
13145 PyThreadState* __tstate = wxPyBeginAllowThreads();
13146 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13147
13148 wxPyEndAllowThreads(__tstate);
13149 if (PyErr_Occurred()) SWIG_fail;
13150 }
13151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13152 {
13153 if (temp2)
13154 delete arg2;
13155 }
13156 return resultobj;
13157 fail:
13158 {
13159 if (temp2)
13160 delete arg2;
13161 }
13162 return NULL;
13163 }
13164
13165
13166 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13167 PyObject *resultobj;
13168 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13169 wxString *arg2 = 0 ;
13170 bool result;
13171 bool temp2 = False ;
13172 PyObject * obj0 = 0 ;
13173 PyObject * obj1 = 0 ;
13174 char *kwnames[] = {
13175 (char *) "self",(char *) "filename", NULL
13176 };
13177
13178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13181 {
13182 arg2 = wxString_in_helper(obj1);
13183 if (arg2 == NULL) SWIG_fail;
13184 temp2 = True;
13185 }
13186 {
13187 PyThreadState* __tstate = wxPyBeginAllowThreads();
13188 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13189
13190 wxPyEndAllowThreads(__tstate);
13191 if (PyErr_Occurred()) SWIG_fail;
13192 }
13193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13194 {
13195 if (temp2)
13196 delete arg2;
13197 }
13198 return resultobj;
13199 fail:
13200 {
13201 if (temp2)
13202 delete arg2;
13203 }
13204 return NULL;
13205 }
13206
13207
13208 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13209 PyObject *resultobj;
13210 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13211 PyObject *result;
13212 PyObject * obj0 = 0 ;
13213 char *kwnames[] = {
13214 (char *) "self", NULL
13215 };
13216
13217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13220 {
13221 PyThreadState* __tstate = wxPyBeginAllowThreads();
13222 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13223
13224 wxPyEndAllowThreads(__tstate);
13225 if (PyErr_Occurred()) SWIG_fail;
13226 }
13227 resultobj = result;
13228 return resultobj;
13229 fail:
13230 return NULL;
13231 }
13232
13233
13234 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
13235 PyObject *resultobj;
13236 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13237 wxFileTypeInfo *arg2 = 0 ;
13238 PyObject * obj0 = 0 ;
13239 PyObject * obj1 = 0 ;
13240 char *kwnames[] = {
13241 (char *) "self",(char *) "ft", NULL
13242 };
13243
13244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13248 SWIG_POINTER_EXCEPTION | 0)) == -1)
13249 SWIG_fail;
13250 if (arg2 == NULL) {
13251 PyErr_SetString(PyExc_TypeError,"null reference");
13252 SWIG_fail;
13253 }
13254 {
13255 PyThreadState* __tstate = wxPyBeginAllowThreads();
13256 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13257
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 Py_INCREF(Py_None); resultobj = Py_None;
13262 return resultobj;
13263 fail:
13264 return NULL;
13265 }
13266
13267
13268 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
13269 PyObject *resultobj;
13270 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13271 wxFileTypeInfo *arg2 = 0 ;
13272 wxFileType *result;
13273 PyObject * obj0 = 0 ;
13274 PyObject * obj1 = 0 ;
13275 char *kwnames[] = {
13276 (char *) "self",(char *) "ftInfo", NULL
13277 };
13278
13279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13282 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13283 SWIG_POINTER_EXCEPTION | 0)) == -1)
13284 SWIG_fail;
13285 if (arg2 == NULL) {
13286 PyErr_SetString(PyExc_TypeError,"null reference");
13287 SWIG_fail;
13288 }
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13292
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13297 return resultobj;
13298 fail:
13299 return NULL;
13300 }
13301
13302
13303 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
13304 PyObject *resultobj;
13305 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13306 wxFileType *arg2 = (wxFileType *) 0 ;
13307 bool result;
13308 PyObject * obj0 = 0 ;
13309 PyObject * obj1 = 0 ;
13310 char *kwnames[] = {
13311 (char *) "self",(char *) "ft", NULL
13312 };
13313
13314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13317 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 result = (bool)(arg1)->Unassociate(arg2);
13322
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13327 return resultobj;
13328 fail:
13329 return NULL;
13330 }
13331
13332
13333 static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
13334 PyObject *resultobj;
13335 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13336 PyObject * obj0 = 0 ;
13337 char *kwnames[] = {
13338 (char *) "self", NULL
13339 };
13340
13341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13344 {
13345 PyThreadState* __tstate = wxPyBeginAllowThreads();
13346 delete arg1;
13347
13348 wxPyEndAllowThreads(__tstate);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 }
13351 Py_INCREF(Py_None); resultobj = Py_None;
13352 return resultobj;
13353 fail:
13354 return NULL;
13355 }
13356
13357
13358 static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
13359 PyObject *obj;
13360 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13361 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13362 Py_INCREF(obj);
13363 return Py_BuildValue((char *)"");
13364 }
13365 static int _wrap_ART_TOOLBAR_set(PyObject *) {
13366 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13367 return 1;
13368 }
13369
13370
13371 static PyObject *_wrap_ART_TOOLBAR_get() {
13372 PyObject *pyobj;
13373
13374 {
13375 #if wxUSE_UNICODE
13376 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13377 #else
13378 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13379 #endif
13380 }
13381 return pyobj;
13382 }
13383
13384
13385 static int _wrap_ART_MENU_set(PyObject *) {
13386 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13387 return 1;
13388 }
13389
13390
13391 static PyObject *_wrap_ART_MENU_get() {
13392 PyObject *pyobj;
13393
13394 {
13395 #if wxUSE_UNICODE
13396 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13397 #else
13398 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13399 #endif
13400 }
13401 return pyobj;
13402 }
13403
13404
13405 static int _wrap_ART_FRAME_ICON_set(PyObject *) {
13406 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13407 return 1;
13408 }
13409
13410
13411 static PyObject *_wrap_ART_FRAME_ICON_get() {
13412 PyObject *pyobj;
13413
13414 {
13415 #if wxUSE_UNICODE
13416 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13417 #else
13418 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13419 #endif
13420 }
13421 return pyobj;
13422 }
13423
13424
13425 static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
13426 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13427 return 1;
13428 }
13429
13430
13431 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13432 PyObject *pyobj;
13433
13434 {
13435 #if wxUSE_UNICODE
13436 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13437 #else
13438 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13439 #endif
13440 }
13441 return pyobj;
13442 }
13443
13444
13445 static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
13446 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13447 return 1;
13448 }
13449
13450
13451 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13452 PyObject *pyobj;
13453
13454 {
13455 #if wxUSE_UNICODE
13456 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13457 #else
13458 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13459 #endif
13460 }
13461 return pyobj;
13462 }
13463
13464
13465 static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
13466 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13467 return 1;
13468 }
13469
13470
13471 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13472 PyObject *pyobj;
13473
13474 {
13475 #if wxUSE_UNICODE
13476 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13477 #else
13478 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13479 #endif
13480 }
13481 return pyobj;
13482 }
13483
13484
13485 static int _wrap_ART_OTHER_set(PyObject *) {
13486 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13487 return 1;
13488 }
13489
13490
13491 static PyObject *_wrap_ART_OTHER_get() {
13492 PyObject *pyobj;
13493
13494 {
13495 #if wxUSE_UNICODE
13496 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13497 #else
13498 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13499 #endif
13500 }
13501 return pyobj;
13502 }
13503
13504
13505 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
13506 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13507 return 1;
13508 }
13509
13510
13511 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13512 PyObject *pyobj;
13513
13514 {
13515 #if wxUSE_UNICODE
13516 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13517 #else
13518 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13519 #endif
13520 }
13521 return pyobj;
13522 }
13523
13524
13525 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
13526 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13527 return 1;
13528 }
13529
13530
13531 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13532 PyObject *pyobj;
13533
13534 {
13535 #if wxUSE_UNICODE
13536 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13537 #else
13538 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13539 #endif
13540 }
13541 return pyobj;
13542 }
13543
13544
13545 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
13546 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13547 return 1;
13548 }
13549
13550
13551 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13552 PyObject *pyobj;
13553
13554 {
13555 #if wxUSE_UNICODE
13556 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13557 #else
13558 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13559 #endif
13560 }
13561 return pyobj;
13562 }
13563
13564
13565 static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
13566 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13567 return 1;
13568 }
13569
13570
13571 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13572 PyObject *pyobj;
13573
13574 {
13575 #if wxUSE_UNICODE
13576 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13577 #else
13578 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13579 #endif
13580 }
13581 return pyobj;
13582 }
13583
13584
13585 static int _wrap_ART_HELP_BOOK_set(PyObject *) {
13586 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13587 return 1;
13588 }
13589
13590
13591 static PyObject *_wrap_ART_HELP_BOOK_get() {
13592 PyObject *pyobj;
13593
13594 {
13595 #if wxUSE_UNICODE
13596 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13597 #else
13598 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13599 #endif
13600 }
13601 return pyobj;
13602 }
13603
13604
13605 static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
13606 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13607 return 1;
13608 }
13609
13610
13611 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13612 PyObject *pyobj;
13613
13614 {
13615 #if wxUSE_UNICODE
13616 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13617 #else
13618 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13619 #endif
13620 }
13621 return pyobj;
13622 }
13623
13624
13625 static int _wrap_ART_HELP_PAGE_set(PyObject *) {
13626 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13627 return 1;
13628 }
13629
13630
13631 static PyObject *_wrap_ART_HELP_PAGE_get() {
13632 PyObject *pyobj;
13633
13634 {
13635 #if wxUSE_UNICODE
13636 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13637 #else
13638 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13639 #endif
13640 }
13641 return pyobj;
13642 }
13643
13644
13645 static int _wrap_ART_GO_BACK_set(PyObject *) {
13646 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13647 return 1;
13648 }
13649
13650
13651 static PyObject *_wrap_ART_GO_BACK_get() {
13652 PyObject *pyobj;
13653
13654 {
13655 #if wxUSE_UNICODE
13656 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13657 #else
13658 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13659 #endif
13660 }
13661 return pyobj;
13662 }
13663
13664
13665 static int _wrap_ART_GO_FORWARD_set(PyObject *) {
13666 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13667 return 1;
13668 }
13669
13670
13671 static PyObject *_wrap_ART_GO_FORWARD_get() {
13672 PyObject *pyobj;
13673
13674 {
13675 #if wxUSE_UNICODE
13676 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13677 #else
13678 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13679 #endif
13680 }
13681 return pyobj;
13682 }
13683
13684
13685 static int _wrap_ART_GO_UP_set(PyObject *) {
13686 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13687 return 1;
13688 }
13689
13690
13691 static PyObject *_wrap_ART_GO_UP_get() {
13692 PyObject *pyobj;
13693
13694 {
13695 #if wxUSE_UNICODE
13696 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13697 #else
13698 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13699 #endif
13700 }
13701 return pyobj;
13702 }
13703
13704
13705 static int _wrap_ART_GO_DOWN_set(PyObject *) {
13706 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13707 return 1;
13708 }
13709
13710
13711 static PyObject *_wrap_ART_GO_DOWN_get() {
13712 PyObject *pyobj;
13713
13714 {
13715 #if wxUSE_UNICODE
13716 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13717 #else
13718 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13719 #endif
13720 }
13721 return pyobj;
13722 }
13723
13724
13725 static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
13726 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13727 return 1;
13728 }
13729
13730
13731 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13732 PyObject *pyobj;
13733
13734 {
13735 #if wxUSE_UNICODE
13736 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13737 #else
13738 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13739 #endif
13740 }
13741 return pyobj;
13742 }
13743
13744
13745 static int _wrap_ART_GO_HOME_set(PyObject *) {
13746 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13747 return 1;
13748 }
13749
13750
13751 static PyObject *_wrap_ART_GO_HOME_get() {
13752 PyObject *pyobj;
13753
13754 {
13755 #if wxUSE_UNICODE
13756 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13757 #else
13758 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13759 #endif
13760 }
13761 return pyobj;
13762 }
13763
13764
13765 static int _wrap_ART_FILE_OPEN_set(PyObject *) {
13766 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13767 return 1;
13768 }
13769
13770
13771 static PyObject *_wrap_ART_FILE_OPEN_get() {
13772 PyObject *pyobj;
13773
13774 {
13775 #if wxUSE_UNICODE
13776 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13777 #else
13778 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13779 #endif
13780 }
13781 return pyobj;
13782 }
13783
13784
13785 static int _wrap_ART_PRINT_set(PyObject *) {
13786 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13787 return 1;
13788 }
13789
13790
13791 static PyObject *_wrap_ART_PRINT_get() {
13792 PyObject *pyobj;
13793
13794 {
13795 #if wxUSE_UNICODE
13796 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13797 #else
13798 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13799 #endif
13800 }
13801 return pyobj;
13802 }
13803
13804
13805 static int _wrap_ART_HELP_set(PyObject *) {
13806 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13807 return 1;
13808 }
13809
13810
13811 static PyObject *_wrap_ART_HELP_get() {
13812 PyObject *pyobj;
13813
13814 {
13815 #if wxUSE_UNICODE
13816 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13817 #else
13818 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13819 #endif
13820 }
13821 return pyobj;
13822 }
13823
13824
13825 static int _wrap_ART_TIP_set(PyObject *) {
13826 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
13827 return 1;
13828 }
13829
13830
13831 static PyObject *_wrap_ART_TIP_get() {
13832 PyObject *pyobj;
13833
13834 {
13835 #if wxUSE_UNICODE
13836 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13837 #else
13838 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13839 #endif
13840 }
13841 return pyobj;
13842 }
13843
13844
13845 static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
13846 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
13847 return 1;
13848 }
13849
13850
13851 static PyObject *_wrap_ART_REPORT_VIEW_get() {
13852 PyObject *pyobj;
13853
13854 {
13855 #if wxUSE_UNICODE
13856 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13857 #else
13858 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13859 #endif
13860 }
13861 return pyobj;
13862 }
13863
13864
13865 static int _wrap_ART_LIST_VIEW_set(PyObject *) {
13866 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
13867 return 1;
13868 }
13869
13870
13871 static PyObject *_wrap_ART_LIST_VIEW_get() {
13872 PyObject *pyobj;
13873
13874 {
13875 #if wxUSE_UNICODE
13876 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13877 #else
13878 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13879 #endif
13880 }
13881 return pyobj;
13882 }
13883
13884
13885 static int _wrap_ART_NEW_DIR_set(PyObject *) {
13886 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
13887 return 1;
13888 }
13889
13890
13891 static PyObject *_wrap_ART_NEW_DIR_get() {
13892 PyObject *pyobj;
13893
13894 {
13895 #if wxUSE_UNICODE
13896 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13897 #else
13898 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13899 #endif
13900 }
13901 return pyobj;
13902 }
13903
13904
13905 static int _wrap_ART_FOLDER_set(PyObject *) {
13906 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
13907 return 1;
13908 }
13909
13910
13911 static PyObject *_wrap_ART_FOLDER_get() {
13912 PyObject *pyobj;
13913
13914 {
13915 #if wxUSE_UNICODE
13916 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
13917 #else
13918 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
13919 #endif
13920 }
13921 return pyobj;
13922 }
13923
13924
13925 static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
13926 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
13927 return 1;
13928 }
13929
13930
13931 static PyObject *_wrap_ART_GO_DIR_UP_get() {
13932 PyObject *pyobj;
13933
13934 {
13935 #if wxUSE_UNICODE
13936 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
13937 #else
13938 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
13939 #endif
13940 }
13941 return pyobj;
13942 }
13943
13944
13945 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
13946 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
13947 return 1;
13948 }
13949
13950
13951 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
13952 PyObject *pyobj;
13953
13954 {
13955 #if wxUSE_UNICODE
13956 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
13957 #else
13958 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
13959 #endif
13960 }
13961 return pyobj;
13962 }
13963
13964
13965 static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
13966 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
13967 return 1;
13968 }
13969
13970
13971 static PyObject *_wrap_ART_NORMAL_FILE_get() {
13972 PyObject *pyobj;
13973
13974 {
13975 #if wxUSE_UNICODE
13976 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
13977 #else
13978 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
13979 #endif
13980 }
13981 return pyobj;
13982 }
13983
13984
13985 static int _wrap_ART_TICK_MARK_set(PyObject *) {
13986 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
13987 return 1;
13988 }
13989
13990
13991 static PyObject *_wrap_ART_TICK_MARK_get() {
13992 PyObject *pyobj;
13993
13994 {
13995 #if wxUSE_UNICODE
13996 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
13997 #else
13998 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
13999 #endif
14000 }
14001 return pyobj;
14002 }
14003
14004
14005 static int _wrap_ART_CROSS_MARK_set(PyObject *) {
14006 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14007 return 1;
14008 }
14009
14010
14011 static PyObject *_wrap_ART_CROSS_MARK_get() {
14012 PyObject *pyobj;
14013
14014 {
14015 #if wxUSE_UNICODE
14016 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14017 #else
14018 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14019 #endif
14020 }
14021 return pyobj;
14022 }
14023
14024
14025 static int _wrap_ART_ERROR_set(PyObject *) {
14026 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14027 return 1;
14028 }
14029
14030
14031 static PyObject *_wrap_ART_ERROR_get() {
14032 PyObject *pyobj;
14033
14034 {
14035 #if wxUSE_UNICODE
14036 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14037 #else
14038 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14039 #endif
14040 }
14041 return pyobj;
14042 }
14043
14044
14045 static int _wrap_ART_QUESTION_set(PyObject *) {
14046 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14047 return 1;
14048 }
14049
14050
14051 static PyObject *_wrap_ART_QUESTION_get() {
14052 PyObject *pyobj;
14053
14054 {
14055 #if wxUSE_UNICODE
14056 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14057 #else
14058 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14059 #endif
14060 }
14061 return pyobj;
14062 }
14063
14064
14065 static int _wrap_ART_WARNING_set(PyObject *) {
14066 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14067 return 1;
14068 }
14069
14070
14071 static PyObject *_wrap_ART_WARNING_get() {
14072 PyObject *pyobj;
14073
14074 {
14075 #if wxUSE_UNICODE
14076 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14077 #else
14078 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14079 #endif
14080 }
14081 return pyobj;
14082 }
14083
14084
14085 static int _wrap_ART_INFORMATION_set(PyObject *) {
14086 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14087 return 1;
14088 }
14089
14090
14091 static PyObject *_wrap_ART_INFORMATION_get() {
14092 PyObject *pyobj;
14093
14094 {
14095 #if wxUSE_UNICODE
14096 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14097 #else
14098 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14099 #endif
14100 }
14101 return pyobj;
14102 }
14103
14104
14105 static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
14106 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14107 return 1;
14108 }
14109
14110
14111 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14112 PyObject *pyobj;
14113
14114 {
14115 #if wxUSE_UNICODE
14116 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14117 #else
14118 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14119 #endif
14120 }
14121 return pyobj;
14122 }
14123
14124
14125 static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14126 PyObject *resultobj;
14127 wxPyArtProvider *result;
14128 char *kwnames[] = {
14129 NULL
14130 };
14131
14132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14133 {
14134 PyThreadState* __tstate = wxPyBeginAllowThreads();
14135 result = (wxPyArtProvider *)new wxPyArtProvider();
14136
14137 wxPyEndAllowThreads(__tstate);
14138 if (PyErr_Occurred()) SWIG_fail;
14139 }
14140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14141 return resultobj;
14142 fail:
14143 return NULL;
14144 }
14145
14146
14147 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14148 PyObject *resultobj;
14149 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14150 PyObject *arg2 = (PyObject *) 0 ;
14151 PyObject *arg3 = (PyObject *) 0 ;
14152 PyObject * obj0 = 0 ;
14153 PyObject * obj1 = 0 ;
14154 PyObject * obj2 = 0 ;
14155 char *kwnames[] = {
14156 (char *) "self",(char *) "self",(char *) "_class", NULL
14157 };
14158
14159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14162 arg2 = obj1;
14163 arg3 = obj2;
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 (arg1)->_setCallbackInfo(arg2,arg3);
14167
14168 wxPyEndAllowThreads(__tstate);
14169 if (PyErr_Occurred()) SWIG_fail;
14170 }
14171 Py_INCREF(Py_None); resultobj = Py_None;
14172 return resultobj;
14173 fail:
14174 return NULL;
14175 }
14176
14177
14178 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14179 PyObject *resultobj;
14180 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14181 PyObject * obj0 = 0 ;
14182 char *kwnames[] = {
14183 (char *) "provider", NULL
14184 };
14185
14186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14189 {
14190 PyThreadState* __tstate = wxPyBeginAllowThreads();
14191 wxPyArtProvider::PushProvider(arg1);
14192
14193 wxPyEndAllowThreads(__tstate);
14194 if (PyErr_Occurred()) SWIG_fail;
14195 }
14196 Py_INCREF(Py_None); resultobj = Py_None;
14197 return resultobj;
14198 fail:
14199 return NULL;
14200 }
14201
14202
14203 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14204 PyObject *resultobj;
14205 bool result;
14206 char *kwnames[] = {
14207 NULL
14208 };
14209
14210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14211 {
14212 PyThreadState* __tstate = wxPyBeginAllowThreads();
14213 result = (bool)wxPyArtProvider::PopProvider();
14214
14215 wxPyEndAllowThreads(__tstate);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 }
14218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14219 return resultobj;
14220 fail:
14221 return NULL;
14222 }
14223
14224
14225 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14226 PyObject *resultobj;
14227 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14228 bool result;
14229 PyObject * obj0 = 0 ;
14230 char *kwnames[] = {
14231 (char *) "provider", NULL
14232 };
14233
14234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14237 {
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14240
14241 wxPyEndAllowThreads(__tstate);
14242 if (PyErr_Occurred()) SWIG_fail;
14243 }
14244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14245 return resultobj;
14246 fail:
14247 return NULL;
14248 }
14249
14250
14251 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
14252 PyObject *resultobj;
14253 wxString *arg1 = 0 ;
14254 wxString const &arg2_defvalue = wxPyART_OTHER ;
14255 wxString *arg2 = (wxString *) &arg2_defvalue ;
14256 wxSize const &arg3_defvalue = wxDefaultSize ;
14257 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14258 wxBitmap result;
14259 bool temp1 = False ;
14260 bool temp2 = False ;
14261 wxSize temp3 ;
14262 PyObject * obj0 = 0 ;
14263 PyObject * obj1 = 0 ;
14264 PyObject * obj2 = 0 ;
14265 char *kwnames[] = {
14266 (char *) "id",(char *) "client",(char *) "size", NULL
14267 };
14268
14269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14270 {
14271 arg1 = wxString_in_helper(obj0);
14272 if (arg1 == NULL) SWIG_fail;
14273 temp1 = True;
14274 }
14275 if (obj1) {
14276 {
14277 arg2 = wxString_in_helper(obj1);
14278 if (arg2 == NULL) SWIG_fail;
14279 temp2 = True;
14280 }
14281 }
14282 if (obj2) {
14283 {
14284 arg3 = &temp3;
14285 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14286 }
14287 }
14288 {
14289 PyThreadState* __tstate = wxPyBeginAllowThreads();
14290 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14291
14292 wxPyEndAllowThreads(__tstate);
14293 if (PyErr_Occurred()) SWIG_fail;
14294 }
14295 {
14296 wxBitmap * resultptr;
14297 resultptr = new wxBitmap((wxBitmap &) result);
14298 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14299 }
14300 {
14301 if (temp1)
14302 delete arg1;
14303 }
14304 {
14305 if (temp2)
14306 delete arg2;
14307 }
14308 return resultobj;
14309 fail:
14310 {
14311 if (temp1)
14312 delete arg1;
14313 }
14314 {
14315 if (temp2)
14316 delete arg2;
14317 }
14318 return NULL;
14319 }
14320
14321
14322 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
14323 PyObject *resultobj;
14324 wxString *arg1 = 0 ;
14325 wxString const &arg2_defvalue = wxPyART_OTHER ;
14326 wxString *arg2 = (wxString *) &arg2_defvalue ;
14327 wxSize const &arg3_defvalue = wxDefaultSize ;
14328 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14329 wxIcon result;
14330 bool temp1 = False ;
14331 bool temp2 = False ;
14332 wxSize temp3 ;
14333 PyObject * obj0 = 0 ;
14334 PyObject * obj1 = 0 ;
14335 PyObject * obj2 = 0 ;
14336 char *kwnames[] = {
14337 (char *) "id",(char *) "client",(char *) "size", NULL
14338 };
14339
14340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14341 {
14342 arg1 = wxString_in_helper(obj0);
14343 if (arg1 == NULL) SWIG_fail;
14344 temp1 = True;
14345 }
14346 if (obj1) {
14347 {
14348 arg2 = wxString_in_helper(obj1);
14349 if (arg2 == NULL) SWIG_fail;
14350 temp2 = True;
14351 }
14352 }
14353 if (obj2) {
14354 {
14355 arg3 = &temp3;
14356 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14357 }
14358 }
14359 {
14360 PyThreadState* __tstate = wxPyBeginAllowThreads();
14361 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14362
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 {
14367 wxIcon * resultptr;
14368 resultptr = new wxIcon((wxIcon &) result);
14369 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14370 }
14371 {
14372 if (temp1)
14373 delete arg1;
14374 }
14375 {
14376 if (temp2)
14377 delete arg2;
14378 }
14379 return resultobj;
14380 fail:
14381 {
14382 if (temp1)
14383 delete arg1;
14384 }
14385 {
14386 if (temp2)
14387 delete arg2;
14388 }
14389 return NULL;
14390 }
14391
14392
14393 static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
14394 PyObject *resultobj;
14395 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14396 PyObject * obj0 = 0 ;
14397 char *kwnames[] = {
14398 (char *) "self", NULL
14399 };
14400
14401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14404 {
14405 PyThreadState* __tstate = wxPyBeginAllowThreads();
14406 wxPyArtProvider_Destroy(arg1);
14407
14408 wxPyEndAllowThreads(__tstate);
14409 if (PyErr_Occurred()) SWIG_fail;
14410 }
14411 Py_INCREF(Py_None); resultobj = Py_None;
14412 return resultobj;
14413 fail:
14414 return NULL;
14415 }
14416
14417
14418 static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
14419 PyObject *obj;
14420 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14421 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14422 Py_INCREF(obj);
14423 return Py_BuildValue((char *)"");
14424 }
14425 static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
14426 PyObject *resultobj;
14427 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14428 PyObject * obj0 = 0 ;
14429 char *kwnames[] = {
14430 (char *) "self", NULL
14431 };
14432
14433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14436 {
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 delete arg1;
14439
14440 wxPyEndAllowThreads(__tstate);
14441 if (PyErr_Occurred()) SWIG_fail;
14442 }
14443 Py_INCREF(Py_None); resultobj = Py_None;
14444 return resultobj;
14445 fail:
14446 return NULL;
14447 }
14448
14449
14450 static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
14451 PyObject *resultobj;
14452 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14453 wxConfigBase *result;
14454 PyObject * obj0 = 0 ;
14455 char *kwnames[] = {
14456 (char *) "config", NULL
14457 };
14458
14459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14462 {
14463 PyThreadState* __tstate = wxPyBeginAllowThreads();
14464 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14465
14466 wxPyEndAllowThreads(__tstate);
14467 if (PyErr_Occurred()) SWIG_fail;
14468 }
14469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14470 return resultobj;
14471 fail:
14472 return NULL;
14473 }
14474
14475
14476 static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
14477 PyObject *resultobj;
14478 bool arg1 = (bool) True ;
14479 wxConfigBase *result;
14480 PyObject * obj0 = 0 ;
14481 char *kwnames[] = {
14482 (char *) "createOnDemand", NULL
14483 };
14484
14485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14486 if (obj0) {
14487 arg1 = (bool) SWIG_AsBool(obj0);
14488 if (PyErr_Occurred()) SWIG_fail;
14489 }
14490 {
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
14492 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14493
14494 wxPyEndAllowThreads(__tstate);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14498 return resultobj;
14499 fail:
14500 return NULL;
14501 }
14502
14503
14504 static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14505 PyObject *resultobj;
14506 wxConfigBase *result;
14507 char *kwnames[] = {
14508 NULL
14509 };
14510
14511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14512 {
14513 PyThreadState* __tstate = wxPyBeginAllowThreads();
14514 result = (wxConfigBase *)wxConfigBase::Create();
14515
14516 wxPyEndAllowThreads(__tstate);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 }
14519 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14520 return resultobj;
14521 fail:
14522 return NULL;
14523 }
14524
14525
14526 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
14527 PyObject *resultobj;
14528 char *kwnames[] = {
14529 NULL
14530 };
14531
14532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14533 {
14534 PyThreadState* __tstate = wxPyBeginAllowThreads();
14535 wxConfigBase::DontCreateOnDemand();
14536
14537 wxPyEndAllowThreads(__tstate);
14538 if (PyErr_Occurred()) SWIG_fail;
14539 }
14540 Py_INCREF(Py_None); resultobj = Py_None;
14541 return resultobj;
14542 fail:
14543 return NULL;
14544 }
14545
14546
14547 static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
14548 PyObject *resultobj;
14549 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14550 wxString *arg2 = 0 ;
14551 bool temp2 = False ;
14552 PyObject * obj0 = 0 ;
14553 PyObject * obj1 = 0 ;
14554 char *kwnames[] = {
14555 (char *) "self",(char *) "path", NULL
14556 };
14557
14558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14561 {
14562 arg2 = wxString_in_helper(obj1);
14563 if (arg2 == NULL) SWIG_fail;
14564 temp2 = True;
14565 }
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 (arg1)->SetPath((wxString const &)*arg2);
14569
14570 wxPyEndAllowThreads(__tstate);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 }
14573 Py_INCREF(Py_None); resultobj = Py_None;
14574 {
14575 if (temp2)
14576 delete arg2;
14577 }
14578 return resultobj;
14579 fail:
14580 {
14581 if (temp2)
14582 delete arg2;
14583 }
14584 return NULL;
14585 }
14586
14587
14588 static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
14589 PyObject *resultobj;
14590 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14591 wxString *result;
14592 PyObject * obj0 = 0 ;
14593 char *kwnames[] = {
14594 (char *) "self", NULL
14595 };
14596
14597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14600 {
14601 PyThreadState* __tstate = wxPyBeginAllowThreads();
14602 {
14603 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14604 result = (wxString *) &_result_ref;
14605 }
14606
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
14610 {
14611 #if wxUSE_UNICODE
14612 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14613 #else
14614 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14615 #endif
14616 }
14617 return resultobj;
14618 fail:
14619 return NULL;
14620 }
14621
14622
14623 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
14624 PyObject *resultobj;
14625 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14626 PyObject *result;
14627 PyObject * obj0 = 0 ;
14628 char *kwnames[] = {
14629 (char *) "self", NULL
14630 };
14631
14632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14635 {
14636 PyThreadState* __tstate = wxPyBeginAllowThreads();
14637 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14638
14639 wxPyEndAllowThreads(__tstate);
14640 if (PyErr_Occurred()) SWIG_fail;
14641 }
14642 resultobj = result;
14643 return resultobj;
14644 fail:
14645 return NULL;
14646 }
14647
14648
14649 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
14650 PyObject *resultobj;
14651 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14652 long arg2 ;
14653 PyObject *result;
14654 PyObject * obj0 = 0 ;
14655 PyObject * obj1 = 0 ;
14656 char *kwnames[] = {
14657 (char *) "self",(char *) "index", NULL
14658 };
14659
14660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14663 arg2 = (long) SWIG_AsLong(obj1);
14664 if (PyErr_Occurred()) SWIG_fail;
14665 {
14666 PyThreadState* __tstate = wxPyBeginAllowThreads();
14667 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14668
14669 wxPyEndAllowThreads(__tstate);
14670 if (PyErr_Occurred()) SWIG_fail;
14671 }
14672 resultobj = result;
14673 return resultobj;
14674 fail:
14675 return NULL;
14676 }
14677
14678
14679 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
14680 PyObject *resultobj;
14681 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14682 PyObject *result;
14683 PyObject * obj0 = 0 ;
14684 char *kwnames[] = {
14685 (char *) "self", NULL
14686 };
14687
14688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14691 {
14692 PyThreadState* __tstate = wxPyBeginAllowThreads();
14693 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14694
14695 wxPyEndAllowThreads(__tstate);
14696 if (PyErr_Occurred()) SWIG_fail;
14697 }
14698 resultobj = result;
14699 return resultobj;
14700 fail:
14701 return NULL;
14702 }
14703
14704
14705 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
14706 PyObject *resultobj;
14707 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14708 long arg2 ;
14709 PyObject *result;
14710 PyObject * obj0 = 0 ;
14711 PyObject * obj1 = 0 ;
14712 char *kwnames[] = {
14713 (char *) "self",(char *) "index", NULL
14714 };
14715
14716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14719 arg2 = (long) SWIG_AsLong(obj1);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 {
14722 PyThreadState* __tstate = wxPyBeginAllowThreads();
14723 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14724
14725 wxPyEndAllowThreads(__tstate);
14726 if (PyErr_Occurred()) SWIG_fail;
14727 }
14728 resultobj = result;
14729 return resultobj;
14730 fail:
14731 return NULL;
14732 }
14733
14734
14735 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
14736 PyObject *resultobj;
14737 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14738 bool arg2 = (bool) False ;
14739 size_t result;
14740 PyObject * obj0 = 0 ;
14741 PyObject * obj1 = 0 ;
14742 char *kwnames[] = {
14743 (char *) "self",(char *) "recursive", NULL
14744 };
14745
14746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14749 if (obj1) {
14750 arg2 = (bool) SWIG_AsBool(obj1);
14751 if (PyErr_Occurred()) SWIG_fail;
14752 }
14753 {
14754 PyThreadState* __tstate = wxPyBeginAllowThreads();
14755 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14756
14757 wxPyEndAllowThreads(__tstate);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 }
14760 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14761 return resultobj;
14762 fail:
14763 return NULL;
14764 }
14765
14766
14767 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
14768 PyObject *resultobj;
14769 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14770 bool arg2 = (bool) False ;
14771 size_t result;
14772 PyObject * obj0 = 0 ;
14773 PyObject * obj1 = 0 ;
14774 char *kwnames[] = {
14775 (char *) "self",(char *) "recursive", NULL
14776 };
14777
14778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14781 if (obj1) {
14782 arg2 = (bool) SWIG_AsBool(obj1);
14783 if (PyErr_Occurred()) SWIG_fail;
14784 }
14785 {
14786 PyThreadState* __tstate = wxPyBeginAllowThreads();
14787 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14788
14789 wxPyEndAllowThreads(__tstate);
14790 if (PyErr_Occurred()) SWIG_fail;
14791 }
14792 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14793 return resultobj;
14794 fail:
14795 return NULL;
14796 }
14797
14798
14799 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
14800 PyObject *resultobj;
14801 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14802 wxString *arg2 = 0 ;
14803 bool result;
14804 bool temp2 = False ;
14805 PyObject * obj0 = 0 ;
14806 PyObject * obj1 = 0 ;
14807 char *kwnames[] = {
14808 (char *) "self",(char *) "name", NULL
14809 };
14810
14811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14814 {
14815 arg2 = wxString_in_helper(obj1);
14816 if (arg2 == NULL) SWIG_fail;
14817 temp2 = True;
14818 }
14819 {
14820 PyThreadState* __tstate = wxPyBeginAllowThreads();
14821 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
14822
14823 wxPyEndAllowThreads(__tstate);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14827 {
14828 if (temp2)
14829 delete arg2;
14830 }
14831 return resultobj;
14832 fail:
14833 {
14834 if (temp2)
14835 delete arg2;
14836 }
14837 return NULL;
14838 }
14839
14840
14841 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
14842 PyObject *resultobj;
14843 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14844 wxString *arg2 = 0 ;
14845 bool result;
14846 bool temp2 = False ;
14847 PyObject * obj0 = 0 ;
14848 PyObject * obj1 = 0 ;
14849 char *kwnames[] = {
14850 (char *) "self",(char *) "name", NULL
14851 };
14852
14853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
14854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14856 {
14857 arg2 = wxString_in_helper(obj1);
14858 if (arg2 == NULL) SWIG_fail;
14859 temp2 = True;
14860 }
14861 {
14862 PyThreadState* __tstate = wxPyBeginAllowThreads();
14863 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
14864
14865 wxPyEndAllowThreads(__tstate);
14866 if (PyErr_Occurred()) SWIG_fail;
14867 }
14868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14869 {
14870 if (temp2)
14871 delete arg2;
14872 }
14873 return resultobj;
14874 fail:
14875 {
14876 if (temp2)
14877 delete arg2;
14878 }
14879 return NULL;
14880 }
14881
14882
14883 static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
14884 PyObject *resultobj;
14885 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14886 wxString *arg2 = 0 ;
14887 bool result;
14888 bool temp2 = False ;
14889 PyObject * obj0 = 0 ;
14890 PyObject * obj1 = 0 ;
14891 char *kwnames[] = {
14892 (char *) "self",(char *) "name", NULL
14893 };
14894
14895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
14896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14898 {
14899 arg2 = wxString_in_helper(obj1);
14900 if (arg2 == NULL) SWIG_fail;
14901 temp2 = True;
14902 }
14903 {
14904 PyThreadState* __tstate = wxPyBeginAllowThreads();
14905 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
14906
14907 wxPyEndAllowThreads(__tstate);
14908 if (PyErr_Occurred()) SWIG_fail;
14909 }
14910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14911 {
14912 if (temp2)
14913 delete arg2;
14914 }
14915 return resultobj;
14916 fail:
14917 {
14918 if (temp2)
14919 delete arg2;
14920 }
14921 return NULL;
14922 }
14923
14924
14925 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
14926 PyObject *resultobj;
14927 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14928 wxString *arg2 = 0 ;
14929 int result;
14930 bool temp2 = False ;
14931 PyObject * obj0 = 0 ;
14932 PyObject * obj1 = 0 ;
14933 char *kwnames[] = {
14934 (char *) "self",(char *) "name", NULL
14935 };
14936
14937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
14938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14940 {
14941 arg2 = wxString_in_helper(obj1);
14942 if (arg2 == NULL) SWIG_fail;
14943 temp2 = True;
14944 }
14945 {
14946 PyThreadState* __tstate = wxPyBeginAllowThreads();
14947 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
14948
14949 wxPyEndAllowThreads(__tstate);
14950 if (PyErr_Occurred()) SWIG_fail;
14951 }
14952 resultobj = SWIG_FromInt((int)result);
14953 {
14954 if (temp2)
14955 delete arg2;
14956 }
14957 return resultobj;
14958 fail:
14959 {
14960 if (temp2)
14961 delete arg2;
14962 }
14963 return NULL;
14964 }
14965
14966
14967 static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
14968 PyObject *resultobj;
14969 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14970 wxString *arg2 = 0 ;
14971 wxString const &arg3_defvalue = wxPyEmptyString ;
14972 wxString *arg3 = (wxString *) &arg3_defvalue ;
14973 wxString result;
14974 bool temp2 = False ;
14975 bool temp3 = False ;
14976 PyObject * obj0 = 0 ;
14977 PyObject * obj1 = 0 ;
14978 PyObject * obj2 = 0 ;
14979 char *kwnames[] = {
14980 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
14981 };
14982
14983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
14984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14986 {
14987 arg2 = wxString_in_helper(obj1);
14988 if (arg2 == NULL) SWIG_fail;
14989 temp2 = True;
14990 }
14991 if (obj2) {
14992 {
14993 arg3 = wxString_in_helper(obj2);
14994 if (arg3 == NULL) SWIG_fail;
14995 temp3 = True;
14996 }
14997 }
14998 {
14999 PyThreadState* __tstate = wxPyBeginAllowThreads();
15000 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15001
15002 wxPyEndAllowThreads(__tstate);
15003 if (PyErr_Occurred()) SWIG_fail;
15004 }
15005 {
15006 #if wxUSE_UNICODE
15007 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15008 #else
15009 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15010 #endif
15011 }
15012 {
15013 if (temp2)
15014 delete arg2;
15015 }
15016 {
15017 if (temp3)
15018 delete arg3;
15019 }
15020 return resultobj;
15021 fail:
15022 {
15023 if (temp2)
15024 delete arg2;
15025 }
15026 {
15027 if (temp3)
15028 delete arg3;
15029 }
15030 return NULL;
15031 }
15032
15033
15034 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
15035 PyObject *resultobj;
15036 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15037 wxString *arg2 = 0 ;
15038 long arg3 = (long) 0 ;
15039 long result;
15040 bool temp2 = False ;
15041 PyObject * obj0 = 0 ;
15042 PyObject * obj1 = 0 ;
15043 PyObject * obj2 = 0 ;
15044 char *kwnames[] = {
15045 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15046 };
15047
15048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15051 {
15052 arg2 = wxString_in_helper(obj1);
15053 if (arg2 == NULL) SWIG_fail;
15054 temp2 = True;
15055 }
15056 if (obj2) {
15057 arg3 = (long) SWIG_AsLong(obj2);
15058 if (PyErr_Occurred()) SWIG_fail;
15059 }
15060 {
15061 PyThreadState* __tstate = wxPyBeginAllowThreads();
15062 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15063
15064 wxPyEndAllowThreads(__tstate);
15065 if (PyErr_Occurred()) SWIG_fail;
15066 }
15067 resultobj = SWIG_FromLong((long)result);
15068 {
15069 if (temp2)
15070 delete arg2;
15071 }
15072 return resultobj;
15073 fail:
15074 {
15075 if (temp2)
15076 delete arg2;
15077 }
15078 return NULL;
15079 }
15080
15081
15082 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15083 PyObject *resultobj;
15084 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15085 wxString *arg2 = 0 ;
15086 double arg3 = (double) 0.0 ;
15087 double result;
15088 bool temp2 = False ;
15089 PyObject * obj0 = 0 ;
15090 PyObject * obj1 = 0 ;
15091 PyObject * obj2 = 0 ;
15092 char *kwnames[] = {
15093 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15094 };
15095
15096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15099 {
15100 arg2 = wxString_in_helper(obj1);
15101 if (arg2 == NULL) SWIG_fail;
15102 temp2 = True;
15103 }
15104 if (obj2) {
15105 arg3 = (double) SWIG_AsDouble(obj2);
15106 if (PyErr_Occurred()) SWIG_fail;
15107 }
15108 {
15109 PyThreadState* __tstate = wxPyBeginAllowThreads();
15110 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15111
15112 wxPyEndAllowThreads(__tstate);
15113 if (PyErr_Occurred()) SWIG_fail;
15114 }
15115 resultobj = SWIG_FromDouble((double)result);
15116 {
15117 if (temp2)
15118 delete arg2;
15119 }
15120 return resultobj;
15121 fail:
15122 {
15123 if (temp2)
15124 delete arg2;
15125 }
15126 return NULL;
15127 }
15128
15129
15130 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
15131 PyObject *resultobj;
15132 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15133 wxString *arg2 = 0 ;
15134 bool arg3 = (bool) False ;
15135 bool result;
15136 bool temp2 = False ;
15137 PyObject * obj0 = 0 ;
15138 PyObject * obj1 = 0 ;
15139 PyObject * obj2 = 0 ;
15140 char *kwnames[] = {
15141 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15142 };
15143
15144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15147 {
15148 arg2 = wxString_in_helper(obj1);
15149 if (arg2 == NULL) SWIG_fail;
15150 temp2 = True;
15151 }
15152 if (obj2) {
15153 arg3 = (bool) SWIG_AsBool(obj2);
15154 if (PyErr_Occurred()) SWIG_fail;
15155 }
15156 {
15157 PyThreadState* __tstate = wxPyBeginAllowThreads();
15158 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15159
15160 wxPyEndAllowThreads(__tstate);
15161 if (PyErr_Occurred()) SWIG_fail;
15162 }
15163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15164 {
15165 if (temp2)
15166 delete arg2;
15167 }
15168 return resultobj;
15169 fail:
15170 {
15171 if (temp2)
15172 delete arg2;
15173 }
15174 return NULL;
15175 }
15176
15177
15178 static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
15179 PyObject *resultobj;
15180 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15181 wxString *arg2 = 0 ;
15182 wxString *arg3 = 0 ;
15183 bool result;
15184 bool temp2 = False ;
15185 bool temp3 = False ;
15186 PyObject * obj0 = 0 ;
15187 PyObject * obj1 = 0 ;
15188 PyObject * obj2 = 0 ;
15189 char *kwnames[] = {
15190 (char *) "self",(char *) "key",(char *) "value", NULL
15191 };
15192
15193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15196 {
15197 arg2 = wxString_in_helper(obj1);
15198 if (arg2 == NULL) SWIG_fail;
15199 temp2 = True;
15200 }
15201 {
15202 arg3 = wxString_in_helper(obj2);
15203 if (arg3 == NULL) SWIG_fail;
15204 temp3 = True;
15205 }
15206 {
15207 PyThreadState* __tstate = wxPyBeginAllowThreads();
15208 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15209
15210 wxPyEndAllowThreads(__tstate);
15211 if (PyErr_Occurred()) SWIG_fail;
15212 }
15213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15214 {
15215 if (temp2)
15216 delete arg2;
15217 }
15218 {
15219 if (temp3)
15220 delete arg3;
15221 }
15222 return resultobj;
15223 fail:
15224 {
15225 if (temp2)
15226 delete arg2;
15227 }
15228 {
15229 if (temp3)
15230 delete arg3;
15231 }
15232 return NULL;
15233 }
15234
15235
15236 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
15237 PyObject *resultobj;
15238 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15239 wxString *arg2 = 0 ;
15240 long arg3 ;
15241 bool result;
15242 bool temp2 = False ;
15243 PyObject * obj0 = 0 ;
15244 PyObject * obj1 = 0 ;
15245 PyObject * obj2 = 0 ;
15246 char *kwnames[] = {
15247 (char *) "self",(char *) "key",(char *) "value", NULL
15248 };
15249
15250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15253 {
15254 arg2 = wxString_in_helper(obj1);
15255 if (arg2 == NULL) SWIG_fail;
15256 temp2 = True;
15257 }
15258 arg3 = (long) SWIG_AsLong(obj2);
15259 if (PyErr_Occurred()) SWIG_fail;
15260 {
15261 PyThreadState* __tstate = wxPyBeginAllowThreads();
15262 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15263
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15268 {
15269 if (temp2)
15270 delete arg2;
15271 }
15272 return resultobj;
15273 fail:
15274 {
15275 if (temp2)
15276 delete arg2;
15277 }
15278 return NULL;
15279 }
15280
15281
15282 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15283 PyObject *resultobj;
15284 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15285 wxString *arg2 = 0 ;
15286 double arg3 ;
15287 bool result;
15288 bool temp2 = False ;
15289 PyObject * obj0 = 0 ;
15290 PyObject * obj1 = 0 ;
15291 PyObject * obj2 = 0 ;
15292 char *kwnames[] = {
15293 (char *) "self",(char *) "key",(char *) "value", NULL
15294 };
15295
15296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15299 {
15300 arg2 = wxString_in_helper(obj1);
15301 if (arg2 == NULL) SWIG_fail;
15302 temp2 = True;
15303 }
15304 arg3 = (double) SWIG_AsDouble(obj2);
15305 if (PyErr_Occurred()) SWIG_fail;
15306 {
15307 PyThreadState* __tstate = wxPyBeginAllowThreads();
15308 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15309
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15314 {
15315 if (temp2)
15316 delete arg2;
15317 }
15318 return resultobj;
15319 fail:
15320 {
15321 if (temp2)
15322 delete arg2;
15323 }
15324 return NULL;
15325 }
15326
15327
15328 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
15329 PyObject *resultobj;
15330 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15331 wxString *arg2 = 0 ;
15332 bool arg3 ;
15333 bool result;
15334 bool temp2 = False ;
15335 PyObject * obj0 = 0 ;
15336 PyObject * obj1 = 0 ;
15337 PyObject * obj2 = 0 ;
15338 char *kwnames[] = {
15339 (char *) "self",(char *) "key",(char *) "value", NULL
15340 };
15341
15342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15345 {
15346 arg2 = wxString_in_helper(obj1);
15347 if (arg2 == NULL) SWIG_fail;
15348 temp2 = True;
15349 }
15350 arg3 = (bool) SWIG_AsBool(obj2);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 {
15353 PyThreadState* __tstate = wxPyBeginAllowThreads();
15354 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15355
15356 wxPyEndAllowThreads(__tstate);
15357 if (PyErr_Occurred()) SWIG_fail;
15358 }
15359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15360 {
15361 if (temp2)
15362 delete arg2;
15363 }
15364 return resultobj;
15365 fail:
15366 {
15367 if (temp2)
15368 delete arg2;
15369 }
15370 return NULL;
15371 }
15372
15373
15374 static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
15375 PyObject *resultobj;
15376 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15377 bool arg2 = (bool) False ;
15378 bool result;
15379 PyObject * obj0 = 0 ;
15380 PyObject * obj1 = 0 ;
15381 char *kwnames[] = {
15382 (char *) "self",(char *) "currentOnly", NULL
15383 };
15384
15385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15388 if (obj1) {
15389 arg2 = (bool) SWIG_AsBool(obj1);
15390 if (PyErr_Occurred()) SWIG_fail;
15391 }
15392 {
15393 PyThreadState* __tstate = wxPyBeginAllowThreads();
15394 result = (bool)(arg1)->Flush(arg2);
15395
15396 wxPyEndAllowThreads(__tstate);
15397 if (PyErr_Occurred()) SWIG_fail;
15398 }
15399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15400 return resultobj;
15401 fail:
15402 return NULL;
15403 }
15404
15405
15406 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15407 PyObject *resultobj;
15408 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15409 wxString *arg2 = 0 ;
15410 wxString *arg3 = 0 ;
15411 bool result;
15412 bool temp2 = False ;
15413 bool temp3 = False ;
15414 PyObject * obj0 = 0 ;
15415 PyObject * obj1 = 0 ;
15416 PyObject * obj2 = 0 ;
15417 char *kwnames[] = {
15418 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15419 };
15420
15421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15424 {
15425 arg2 = wxString_in_helper(obj1);
15426 if (arg2 == NULL) SWIG_fail;
15427 temp2 = True;
15428 }
15429 {
15430 arg3 = wxString_in_helper(obj2);
15431 if (arg3 == NULL) SWIG_fail;
15432 temp3 = True;
15433 }
15434 {
15435 PyThreadState* __tstate = wxPyBeginAllowThreads();
15436 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15437
15438 wxPyEndAllowThreads(__tstate);
15439 if (PyErr_Occurred()) SWIG_fail;
15440 }
15441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15442 {
15443 if (temp2)
15444 delete arg2;
15445 }
15446 {
15447 if (temp3)
15448 delete arg3;
15449 }
15450 return resultobj;
15451 fail:
15452 {
15453 if (temp2)
15454 delete arg2;
15455 }
15456 {
15457 if (temp3)
15458 delete arg3;
15459 }
15460 return NULL;
15461 }
15462
15463
15464 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15465 PyObject *resultobj;
15466 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15467 wxString *arg2 = 0 ;
15468 wxString *arg3 = 0 ;
15469 bool result;
15470 bool temp2 = False ;
15471 bool temp3 = False ;
15472 PyObject * obj0 = 0 ;
15473 PyObject * obj1 = 0 ;
15474 PyObject * obj2 = 0 ;
15475 char *kwnames[] = {
15476 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15477 };
15478
15479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15482 {
15483 arg2 = wxString_in_helper(obj1);
15484 if (arg2 == NULL) SWIG_fail;
15485 temp2 = True;
15486 }
15487 {
15488 arg3 = wxString_in_helper(obj2);
15489 if (arg3 == NULL) SWIG_fail;
15490 temp3 = True;
15491 }
15492 {
15493 PyThreadState* __tstate = wxPyBeginAllowThreads();
15494 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15495
15496 wxPyEndAllowThreads(__tstate);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15500 {
15501 if (temp2)
15502 delete arg2;
15503 }
15504 {
15505 if (temp3)
15506 delete arg3;
15507 }
15508 return resultobj;
15509 fail:
15510 {
15511 if (temp2)
15512 delete arg2;
15513 }
15514 {
15515 if (temp3)
15516 delete arg3;
15517 }
15518 return NULL;
15519 }
15520
15521
15522 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15523 PyObject *resultobj;
15524 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15525 wxString *arg2 = 0 ;
15526 bool arg3 = (bool) True ;
15527 bool result;
15528 bool temp2 = False ;
15529 PyObject * obj0 = 0 ;
15530 PyObject * obj1 = 0 ;
15531 PyObject * obj2 = 0 ;
15532 char *kwnames[] = {
15533 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15534 };
15535
15536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15539 {
15540 arg2 = wxString_in_helper(obj1);
15541 if (arg2 == NULL) SWIG_fail;
15542 temp2 = True;
15543 }
15544 if (obj2) {
15545 arg3 = (bool) SWIG_AsBool(obj2);
15546 if (PyErr_Occurred()) SWIG_fail;
15547 }
15548 {
15549 PyThreadState* __tstate = wxPyBeginAllowThreads();
15550 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15551
15552 wxPyEndAllowThreads(__tstate);
15553 if (PyErr_Occurred()) SWIG_fail;
15554 }
15555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15556 {
15557 if (temp2)
15558 delete arg2;
15559 }
15560 return resultobj;
15561 fail:
15562 {
15563 if (temp2)
15564 delete arg2;
15565 }
15566 return NULL;
15567 }
15568
15569
15570 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15571 PyObject *resultobj;
15572 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15573 wxString *arg2 = 0 ;
15574 bool result;
15575 bool temp2 = False ;
15576 PyObject * obj0 = 0 ;
15577 PyObject * obj1 = 0 ;
15578 char *kwnames[] = {
15579 (char *) "self",(char *) "key", NULL
15580 };
15581
15582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15585 {
15586 arg2 = wxString_in_helper(obj1);
15587 if (arg2 == NULL) SWIG_fail;
15588 temp2 = True;
15589 }
15590 {
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
15592 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15593
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15598 {
15599 if (temp2)
15600 delete arg2;
15601 }
15602 return resultobj;
15603 fail:
15604 {
15605 if (temp2)
15606 delete arg2;
15607 }
15608 return NULL;
15609 }
15610
15611
15612 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
15613 PyObject *resultobj;
15614 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15615 bool result;
15616 PyObject * obj0 = 0 ;
15617 char *kwnames[] = {
15618 (char *) "self", NULL
15619 };
15620
15621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15624 {
15625 PyThreadState* __tstate = wxPyBeginAllowThreads();
15626 result = (bool)(arg1)->DeleteAll();
15627
15628 wxPyEndAllowThreads(__tstate);
15629 if (PyErr_Occurred()) SWIG_fail;
15630 }
15631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15632 return resultobj;
15633 fail:
15634 return NULL;
15635 }
15636
15637
15638 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
15639 PyObject *resultobj;
15640 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15641 bool arg2 = (bool) True ;
15642 PyObject * obj0 = 0 ;
15643 PyObject * obj1 = 0 ;
15644 char *kwnames[] = {
15645 (char *) "self",(char *) "doIt", NULL
15646 };
15647
15648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15651 if (obj1) {
15652 arg2 = (bool) SWIG_AsBool(obj1);
15653 if (PyErr_Occurred()) SWIG_fail;
15654 }
15655 {
15656 PyThreadState* __tstate = wxPyBeginAllowThreads();
15657 (arg1)->SetExpandEnvVars(arg2);
15658
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 Py_INCREF(Py_None); resultobj = Py_None;
15663 return resultobj;
15664 fail:
15665 return NULL;
15666 }
15667
15668
15669 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
15670 PyObject *resultobj;
15671 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15672 bool result;
15673 PyObject * obj0 = 0 ;
15674 char *kwnames[] = {
15675 (char *) "self", NULL
15676 };
15677
15678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15681 {
15682 PyThreadState* __tstate = wxPyBeginAllowThreads();
15683 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15684
15685 wxPyEndAllowThreads(__tstate);
15686 if (PyErr_Occurred()) SWIG_fail;
15687 }
15688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15689 return resultobj;
15690 fail:
15691 return NULL;
15692 }
15693
15694
15695 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
15696 PyObject *resultobj;
15697 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15698 bool arg2 = (bool) True ;
15699 PyObject * obj0 = 0 ;
15700 PyObject * obj1 = 0 ;
15701 char *kwnames[] = {
15702 (char *) "self",(char *) "doIt", NULL
15703 };
15704
15705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15708 if (obj1) {
15709 arg2 = (bool) SWIG_AsBool(obj1);
15710 if (PyErr_Occurred()) SWIG_fail;
15711 }
15712 {
15713 PyThreadState* __tstate = wxPyBeginAllowThreads();
15714 (arg1)->SetRecordDefaults(arg2);
15715
15716 wxPyEndAllowThreads(__tstate);
15717 if (PyErr_Occurred()) SWIG_fail;
15718 }
15719 Py_INCREF(Py_None); resultobj = Py_None;
15720 return resultobj;
15721 fail:
15722 return NULL;
15723 }
15724
15725
15726 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
15727 PyObject *resultobj;
15728 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15729 bool result;
15730 PyObject * obj0 = 0 ;
15731 char *kwnames[] = {
15732 (char *) "self", NULL
15733 };
15734
15735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15738 {
15739 PyThreadState* __tstate = wxPyBeginAllowThreads();
15740 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15741
15742 wxPyEndAllowThreads(__tstate);
15743 if (PyErr_Occurred()) SWIG_fail;
15744 }
15745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15746 return resultobj;
15747 fail:
15748 return NULL;
15749 }
15750
15751
15752 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
15753 PyObject *resultobj;
15754 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15755 wxString *arg2 = 0 ;
15756 wxString result;
15757 bool temp2 = False ;
15758 PyObject * obj0 = 0 ;
15759 PyObject * obj1 = 0 ;
15760 char *kwnames[] = {
15761 (char *) "self",(char *) "str", NULL
15762 };
15763
15764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15767 {
15768 arg2 = wxString_in_helper(obj1);
15769 if (arg2 == NULL) SWIG_fail;
15770 temp2 = True;
15771 }
15772 {
15773 PyThreadState* __tstate = wxPyBeginAllowThreads();
15774 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15775
15776 wxPyEndAllowThreads(__tstate);
15777 if (PyErr_Occurred()) SWIG_fail;
15778 }
15779 {
15780 #if wxUSE_UNICODE
15781 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15782 #else
15783 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15784 #endif
15785 }
15786 {
15787 if (temp2)
15788 delete arg2;
15789 }
15790 return resultobj;
15791 fail:
15792 {
15793 if (temp2)
15794 delete arg2;
15795 }
15796 return NULL;
15797 }
15798
15799
15800 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
15801 PyObject *resultobj;
15802 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15803 wxString result;
15804 PyObject * obj0 = 0 ;
15805 char *kwnames[] = {
15806 (char *) "self", NULL
15807 };
15808
15809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
15810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15812 {
15813 PyThreadState* __tstate = wxPyBeginAllowThreads();
15814 result = ((wxConfigBase const *)arg1)->GetAppName();
15815
15816 wxPyEndAllowThreads(__tstate);
15817 if (PyErr_Occurred()) SWIG_fail;
15818 }
15819 {
15820 #if wxUSE_UNICODE
15821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15822 #else
15823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15824 #endif
15825 }
15826 return resultobj;
15827 fail:
15828 return NULL;
15829 }
15830
15831
15832 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
15833 PyObject *resultobj;
15834 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15835 wxString result;
15836 PyObject * obj0 = 0 ;
15837 char *kwnames[] = {
15838 (char *) "self", NULL
15839 };
15840
15841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
15842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15844 {
15845 PyThreadState* __tstate = wxPyBeginAllowThreads();
15846 result = ((wxConfigBase const *)arg1)->GetVendorName();
15847
15848 wxPyEndAllowThreads(__tstate);
15849 if (PyErr_Occurred()) SWIG_fail;
15850 }
15851 {
15852 #if wxUSE_UNICODE
15853 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15854 #else
15855 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15856 #endif
15857 }
15858 return resultobj;
15859 fail:
15860 return NULL;
15861 }
15862
15863
15864 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
15865 PyObject *resultobj;
15866 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15867 wxString *arg2 = 0 ;
15868 bool temp2 = False ;
15869 PyObject * obj0 = 0 ;
15870 PyObject * obj1 = 0 ;
15871 char *kwnames[] = {
15872 (char *) "self",(char *) "appName", NULL
15873 };
15874
15875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
15876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15878 {
15879 arg2 = wxString_in_helper(obj1);
15880 if (arg2 == NULL) SWIG_fail;
15881 temp2 = True;
15882 }
15883 {
15884 PyThreadState* __tstate = wxPyBeginAllowThreads();
15885 (arg1)->SetAppName((wxString const &)*arg2);
15886
15887 wxPyEndAllowThreads(__tstate);
15888 if (PyErr_Occurred()) SWIG_fail;
15889 }
15890 Py_INCREF(Py_None); resultobj = Py_None;
15891 {
15892 if (temp2)
15893 delete arg2;
15894 }
15895 return resultobj;
15896 fail:
15897 {
15898 if (temp2)
15899 delete arg2;
15900 }
15901 return NULL;
15902 }
15903
15904
15905 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
15906 PyObject *resultobj;
15907 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15908 wxString *arg2 = 0 ;
15909 bool temp2 = False ;
15910 PyObject * obj0 = 0 ;
15911 PyObject * obj1 = 0 ;
15912 char *kwnames[] = {
15913 (char *) "self",(char *) "vendorName", NULL
15914 };
15915
15916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
15917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15919 {
15920 arg2 = wxString_in_helper(obj1);
15921 if (arg2 == NULL) SWIG_fail;
15922 temp2 = True;
15923 }
15924 {
15925 PyThreadState* __tstate = wxPyBeginAllowThreads();
15926 (arg1)->SetVendorName((wxString const &)*arg2);
15927
15928 wxPyEndAllowThreads(__tstate);
15929 if (PyErr_Occurred()) SWIG_fail;
15930 }
15931 Py_INCREF(Py_None); resultobj = Py_None;
15932 {
15933 if (temp2)
15934 delete arg2;
15935 }
15936 return resultobj;
15937 fail:
15938 {
15939 if (temp2)
15940 delete arg2;
15941 }
15942 return NULL;
15943 }
15944
15945
15946 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
15947 PyObject *resultobj;
15948 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15949 long arg2 ;
15950 PyObject * obj0 = 0 ;
15951 PyObject * obj1 = 0 ;
15952 char *kwnames[] = {
15953 (char *) "self",(char *) "style", NULL
15954 };
15955
15956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15959 arg2 = (long) SWIG_AsLong(obj1);
15960 if (PyErr_Occurred()) SWIG_fail;
15961 {
15962 PyThreadState* __tstate = wxPyBeginAllowThreads();
15963 (arg1)->SetStyle(arg2);
15964
15965 wxPyEndAllowThreads(__tstate);
15966 if (PyErr_Occurred()) SWIG_fail;
15967 }
15968 Py_INCREF(Py_None); resultobj = Py_None;
15969 return resultobj;
15970 fail:
15971 return NULL;
15972 }
15973
15974
15975 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
15976 PyObject *resultobj;
15977 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15978 long result;
15979 PyObject * obj0 = 0 ;
15980 char *kwnames[] = {
15981 (char *) "self", NULL
15982 };
15983
15984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
15985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15987 {
15988 PyThreadState* __tstate = wxPyBeginAllowThreads();
15989 result = (long)((wxConfigBase const *)arg1)->GetStyle();
15990
15991 wxPyEndAllowThreads(__tstate);
15992 if (PyErr_Occurred()) SWIG_fail;
15993 }
15994 resultobj = SWIG_FromLong((long)result);
15995 return resultobj;
15996 fail:
15997 return NULL;
15998 }
15999
16000
16001 static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
16002 PyObject *obj;
16003 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16004 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16005 Py_INCREF(obj);
16006 return Py_BuildValue((char *)"");
16007 }
16008 static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16009 PyObject *resultobj;
16010 wxString const &arg1_defvalue = wxPyEmptyString ;
16011 wxString *arg1 = (wxString *) &arg1_defvalue ;
16012 wxString const &arg2_defvalue = wxPyEmptyString ;
16013 wxString *arg2 = (wxString *) &arg2_defvalue ;
16014 wxString const &arg3_defvalue = wxPyEmptyString ;
16015 wxString *arg3 = (wxString *) &arg3_defvalue ;
16016 wxString const &arg4_defvalue = wxPyEmptyString ;
16017 wxString *arg4 = (wxString *) &arg4_defvalue ;
16018 long arg5 = (long) 0 ;
16019 wxConfig *result;
16020 bool temp1 = False ;
16021 bool temp2 = False ;
16022 bool temp3 = False ;
16023 bool temp4 = False ;
16024 PyObject * obj0 = 0 ;
16025 PyObject * obj1 = 0 ;
16026 PyObject * obj2 = 0 ;
16027 PyObject * obj3 = 0 ;
16028 PyObject * obj4 = 0 ;
16029 char *kwnames[] = {
16030 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16031 };
16032
16033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16034 if (obj0) {
16035 {
16036 arg1 = wxString_in_helper(obj0);
16037 if (arg1 == NULL) SWIG_fail;
16038 temp1 = True;
16039 }
16040 }
16041 if (obj1) {
16042 {
16043 arg2 = wxString_in_helper(obj1);
16044 if (arg2 == NULL) SWIG_fail;
16045 temp2 = True;
16046 }
16047 }
16048 if (obj2) {
16049 {
16050 arg3 = wxString_in_helper(obj2);
16051 if (arg3 == NULL) SWIG_fail;
16052 temp3 = True;
16053 }
16054 }
16055 if (obj3) {
16056 {
16057 arg4 = wxString_in_helper(obj3);
16058 if (arg4 == NULL) SWIG_fail;
16059 temp4 = True;
16060 }
16061 }
16062 if (obj4) {
16063 arg5 = (long) SWIG_AsLong(obj4);
16064 if (PyErr_Occurred()) SWIG_fail;
16065 }
16066 {
16067 PyThreadState* __tstate = wxPyBeginAllowThreads();
16068 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16069
16070 wxPyEndAllowThreads(__tstate);
16071 if (PyErr_Occurred()) SWIG_fail;
16072 }
16073 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16074 {
16075 if (temp1)
16076 delete arg1;
16077 }
16078 {
16079 if (temp2)
16080 delete arg2;
16081 }
16082 {
16083 if (temp3)
16084 delete arg3;
16085 }
16086 {
16087 if (temp4)
16088 delete arg4;
16089 }
16090 return resultobj;
16091 fail:
16092 {
16093 if (temp1)
16094 delete arg1;
16095 }
16096 {
16097 if (temp2)
16098 delete arg2;
16099 }
16100 {
16101 if (temp3)
16102 delete arg3;
16103 }
16104 {
16105 if (temp4)
16106 delete arg4;
16107 }
16108 return NULL;
16109 }
16110
16111
16112 static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16113 PyObject *resultobj;
16114 wxConfig *arg1 = (wxConfig *) 0 ;
16115 PyObject * obj0 = 0 ;
16116 char *kwnames[] = {
16117 (char *) "self", NULL
16118 };
16119
16120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16123 {
16124 PyThreadState* __tstate = wxPyBeginAllowThreads();
16125 delete arg1;
16126
16127 wxPyEndAllowThreads(__tstate);
16128 if (PyErr_Occurred()) SWIG_fail;
16129 }
16130 Py_INCREF(Py_None); resultobj = Py_None;
16131 return resultobj;
16132 fail:
16133 return NULL;
16134 }
16135
16136
16137 static PyObject * Config_swigregister(PyObject *, PyObject *args) {
16138 PyObject *obj;
16139 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16140 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16141 Py_INCREF(obj);
16142 return Py_BuildValue((char *)"");
16143 }
16144 static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16145 PyObject *resultobj;
16146 wxString const &arg1_defvalue = wxPyEmptyString ;
16147 wxString *arg1 = (wxString *) &arg1_defvalue ;
16148 wxString const &arg2_defvalue = wxPyEmptyString ;
16149 wxString *arg2 = (wxString *) &arg2_defvalue ;
16150 wxString const &arg3_defvalue = wxPyEmptyString ;
16151 wxString *arg3 = (wxString *) &arg3_defvalue ;
16152 wxString const &arg4_defvalue = wxPyEmptyString ;
16153 wxString *arg4 = (wxString *) &arg4_defvalue ;
16154 long arg5 = (long) 0 ;
16155 wxFileConfig *result;
16156 bool temp1 = False ;
16157 bool temp2 = False ;
16158 bool temp3 = False ;
16159 bool temp4 = False ;
16160 PyObject * obj0 = 0 ;
16161 PyObject * obj1 = 0 ;
16162 PyObject * obj2 = 0 ;
16163 PyObject * obj3 = 0 ;
16164 PyObject * obj4 = 0 ;
16165 char *kwnames[] = {
16166 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16167 };
16168
16169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16170 if (obj0) {
16171 {
16172 arg1 = wxString_in_helper(obj0);
16173 if (arg1 == NULL) SWIG_fail;
16174 temp1 = True;
16175 }
16176 }
16177 if (obj1) {
16178 {
16179 arg2 = wxString_in_helper(obj1);
16180 if (arg2 == NULL) SWIG_fail;
16181 temp2 = True;
16182 }
16183 }
16184 if (obj2) {
16185 {
16186 arg3 = wxString_in_helper(obj2);
16187 if (arg3 == NULL) SWIG_fail;
16188 temp3 = True;
16189 }
16190 }
16191 if (obj3) {
16192 {
16193 arg4 = wxString_in_helper(obj3);
16194 if (arg4 == NULL) SWIG_fail;
16195 temp4 = True;
16196 }
16197 }
16198 if (obj4) {
16199 arg5 = (long) SWIG_AsLong(obj4);
16200 if (PyErr_Occurred()) SWIG_fail;
16201 }
16202 {
16203 PyThreadState* __tstate = wxPyBeginAllowThreads();
16204 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16205
16206 wxPyEndAllowThreads(__tstate);
16207 if (PyErr_Occurred()) SWIG_fail;
16208 }
16209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16210 {
16211 if (temp1)
16212 delete arg1;
16213 }
16214 {
16215 if (temp2)
16216 delete arg2;
16217 }
16218 {
16219 if (temp3)
16220 delete arg3;
16221 }
16222 {
16223 if (temp4)
16224 delete arg4;
16225 }
16226 return resultobj;
16227 fail:
16228 {
16229 if (temp1)
16230 delete arg1;
16231 }
16232 {
16233 if (temp2)
16234 delete arg2;
16235 }
16236 {
16237 if (temp3)
16238 delete arg3;
16239 }
16240 {
16241 if (temp4)
16242 delete arg4;
16243 }
16244 return NULL;
16245 }
16246
16247
16248 static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16249 PyObject *resultobj;
16250 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16251 PyObject * obj0 = 0 ;
16252 char *kwnames[] = {
16253 (char *) "self", NULL
16254 };
16255
16256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16259 {
16260 PyThreadState* __tstate = wxPyBeginAllowThreads();
16261 delete arg1;
16262
16263 wxPyEndAllowThreads(__tstate);
16264 if (PyErr_Occurred()) SWIG_fail;
16265 }
16266 Py_INCREF(Py_None); resultobj = Py_None;
16267 return resultobj;
16268 fail:
16269 return NULL;
16270 }
16271
16272
16273 static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
16274 PyObject *obj;
16275 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16276 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16277 Py_INCREF(obj);
16278 return Py_BuildValue((char *)"");
16279 }
16280 static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
16281 PyObject *resultobj;
16282 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16283 wxString *arg2 = 0 ;
16284 wxConfigPathChanger *result;
16285 bool temp2 = False ;
16286 PyObject * obj0 = 0 ;
16287 PyObject * obj1 = 0 ;
16288 char *kwnames[] = {
16289 (char *) "config",(char *) "entry", NULL
16290 };
16291
16292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16295 {
16296 arg2 = wxString_in_helper(obj1);
16297 if (arg2 == NULL) SWIG_fail;
16298 temp2 = True;
16299 }
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16303
16304 wxPyEndAllowThreads(__tstate);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16308 {
16309 if (temp2)
16310 delete arg2;
16311 }
16312 return resultobj;
16313 fail:
16314 {
16315 if (temp2)
16316 delete arg2;
16317 }
16318 return NULL;
16319 }
16320
16321
16322 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
16323 PyObject *resultobj;
16324 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16325 PyObject * obj0 = 0 ;
16326 char *kwnames[] = {
16327 (char *) "self", NULL
16328 };
16329
16330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16333 {
16334 PyThreadState* __tstate = wxPyBeginAllowThreads();
16335 delete arg1;
16336
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 Py_INCREF(Py_None); resultobj = Py_None;
16341 return resultobj;
16342 fail:
16343 return NULL;
16344 }
16345
16346
16347 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
16348 PyObject *resultobj;
16349 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16350 wxString *result;
16351 PyObject * obj0 = 0 ;
16352 char *kwnames[] = {
16353 (char *) "self", NULL
16354 };
16355
16356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16359 {
16360 PyThreadState* __tstate = wxPyBeginAllowThreads();
16361 {
16362 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16363 result = (wxString *) &_result_ref;
16364 }
16365
16366 wxPyEndAllowThreads(__tstate);
16367 if (PyErr_Occurred()) SWIG_fail;
16368 }
16369 {
16370 #if wxUSE_UNICODE
16371 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16372 #else
16373 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16374 #endif
16375 }
16376 return resultobj;
16377 fail:
16378 return NULL;
16379 }
16380
16381
16382 static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
16383 PyObject *obj;
16384 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16385 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16386 Py_INCREF(obj);
16387 return Py_BuildValue((char *)"");
16388 }
16389 static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16390 PyObject *resultobj;
16391 wxString *arg1 = 0 ;
16392 wxString result;
16393 bool temp1 = False ;
16394 PyObject * obj0 = 0 ;
16395 char *kwnames[] = {
16396 (char *) "sz", NULL
16397 };
16398
16399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16400 {
16401 arg1 = wxString_in_helper(obj0);
16402 if (arg1 == NULL) SWIG_fail;
16403 temp1 = True;
16404 }
16405 {
16406 PyThreadState* __tstate = wxPyBeginAllowThreads();
16407 result = wxExpandEnvVars((wxString const &)*arg1);
16408
16409 wxPyEndAllowThreads(__tstate);
16410 if (PyErr_Occurred()) SWIG_fail;
16411 }
16412 {
16413 #if wxUSE_UNICODE
16414 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16415 #else
16416 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16417 #endif
16418 }
16419 {
16420 if (temp1)
16421 delete arg1;
16422 }
16423 return resultobj;
16424 fail:
16425 {
16426 if (temp1)
16427 delete arg1;
16428 }
16429 return NULL;
16430 }
16431
16432
16433 static int _wrap_DateFormatStr_set(PyObject *) {
16434 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16435 return 1;
16436 }
16437
16438
16439 static PyObject *_wrap_DateFormatStr_get() {
16440 PyObject *pyobj;
16441
16442 {
16443 #if wxUSE_UNICODE
16444 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16445 #else
16446 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16447 #endif
16448 }
16449 return pyobj;
16450 }
16451
16452
16453 static int _wrap_TimeSpanFormatStr_set(PyObject *) {
16454 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16455 return 1;
16456 }
16457
16458
16459 static PyObject *_wrap_TimeSpanFormatStr_get() {
16460 PyObject *pyobj;
16461
16462 {
16463 #if wxUSE_UNICODE
16464 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16465 #else
16466 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16467 #endif
16468 }
16469 return pyobj;
16470 }
16471
16472
16473 static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
16474 PyObject *resultobj;
16475 int arg1 ;
16476 PyObject * obj0 = 0 ;
16477 char *kwnames[] = {
16478 (char *) "country", NULL
16479 };
16480
16481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16482 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16483 if (PyErr_Occurred()) SWIG_fail;
16484 {
16485 PyThreadState* __tstate = wxPyBeginAllowThreads();
16486 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16487
16488 wxPyEndAllowThreads(__tstate);
16489 if (PyErr_Occurred()) SWIG_fail;
16490 }
16491 Py_INCREF(Py_None); resultobj = Py_None;
16492 return resultobj;
16493 fail:
16494 return NULL;
16495 }
16496
16497
16498 static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
16499 PyObject *resultobj;
16500 int result;
16501 char *kwnames[] = {
16502 NULL
16503 };
16504
16505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 result = (int)wxDateTime::GetCountry();
16509
16510 wxPyEndAllowThreads(__tstate);
16511 if (PyErr_Occurred()) SWIG_fail;
16512 }
16513 resultobj = SWIG_FromInt((int)result);
16514 return resultobj;
16515 fail:
16516 return NULL;
16517 }
16518
16519
16520 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
16521 PyObject *resultobj;
16522 int arg1 = (int) wxDateTime::Country_Default ;
16523 bool result;
16524 PyObject * obj0 = 0 ;
16525 char *kwnames[] = {
16526 (char *) "country", NULL
16527 };
16528
16529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16530 if (obj0) {
16531 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16532 if (PyErr_Occurred()) SWIG_fail;
16533 }
16534 {
16535 PyThreadState* __tstate = wxPyBeginAllowThreads();
16536 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16537
16538 wxPyEndAllowThreads(__tstate);
16539 if (PyErr_Occurred()) SWIG_fail;
16540 }
16541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
16549 PyObject *resultobj;
16550 int arg1 = (int) wxDateTime::Gregorian ;
16551 int result;
16552 PyObject * obj0 = 0 ;
16553 char *kwnames[] = {
16554 (char *) "cal", NULL
16555 };
16556
16557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16558 if (obj0) {
16559 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16560 if (PyErr_Occurred()) SWIG_fail;
16561 }
16562 {
16563 PyThreadState* __tstate = wxPyBeginAllowThreads();
16564 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16565
16566 wxPyEndAllowThreads(__tstate);
16567 if (PyErr_Occurred()) SWIG_fail;
16568 }
16569 resultobj = SWIG_FromInt((int)result);
16570 return resultobj;
16571 fail:
16572 return NULL;
16573 }
16574
16575
16576 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
16577 PyObject *resultobj;
16578 int arg1 ;
16579 int result;
16580 PyObject * obj0 = 0 ;
16581 char *kwnames[] = {
16582 (char *) "year", NULL
16583 };
16584
16585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16586 arg1 = (int) SWIG_AsInt(obj0);
16587 if (PyErr_Occurred()) SWIG_fail;
16588 {
16589 PyThreadState* __tstate = wxPyBeginAllowThreads();
16590 result = (int)wxDateTime::ConvertYearToBC(arg1);
16591
16592 wxPyEndAllowThreads(__tstate);
16593 if (PyErr_Occurred()) SWIG_fail;
16594 }
16595 resultobj = SWIG_FromInt((int)result);
16596 return resultobj;
16597 fail:
16598 return NULL;
16599 }
16600
16601
16602 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
16603 PyObject *resultobj;
16604 int arg1 = (int) wxDateTime::Gregorian ;
16605 int result;
16606 PyObject * obj0 = 0 ;
16607 char *kwnames[] = {
16608 (char *) "cal", NULL
16609 };
16610
16611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16612 if (obj0) {
16613 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16614 if (PyErr_Occurred()) SWIG_fail;
16615 }
16616 {
16617 PyThreadState* __tstate = wxPyBeginAllowThreads();
16618 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16619
16620 wxPyEndAllowThreads(__tstate);
16621 if (PyErr_Occurred()) SWIG_fail;
16622 }
16623 resultobj = SWIG_FromInt((int)result);
16624 return resultobj;
16625 fail:
16626 return NULL;
16627 }
16628
16629
16630 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
16631 PyObject *resultobj;
16632 int arg1 = (int) wxDateTime::Inv_Year ;
16633 int arg2 = (int) wxDateTime::Gregorian ;
16634 bool result;
16635 PyObject * obj0 = 0 ;
16636 PyObject * obj1 = 0 ;
16637 char *kwnames[] = {
16638 (char *) "year",(char *) "cal", NULL
16639 };
16640
16641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16642 if (obj0) {
16643 arg1 = (int) SWIG_AsInt(obj0);
16644 if (PyErr_Occurred()) SWIG_fail;
16645 }
16646 if (obj1) {
16647 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16648 if (PyErr_Occurred()) SWIG_fail;
16649 }
16650 {
16651 PyThreadState* __tstate = wxPyBeginAllowThreads();
16652 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16653
16654 wxPyEndAllowThreads(__tstate);
16655 if (PyErr_Occurred()) SWIG_fail;
16656 }
16657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16658 return resultobj;
16659 fail:
16660 return NULL;
16661 }
16662
16663
16664 static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
16665 PyObject *resultobj;
16666 int arg1 = (int) wxDateTime::Inv_Year ;
16667 int result;
16668 PyObject * obj0 = 0 ;
16669 char *kwnames[] = {
16670 (char *) "year", NULL
16671 };
16672
16673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16674 if (obj0) {
16675 arg1 = (int) SWIG_AsInt(obj0);
16676 if (PyErr_Occurred()) SWIG_fail;
16677 }
16678 {
16679 PyThreadState* __tstate = wxPyBeginAllowThreads();
16680 result = (int)wxDateTime::GetCentury(arg1);
16681
16682 wxPyEndAllowThreads(__tstate);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
16685 resultobj = SWIG_FromInt((int)result);
16686 return resultobj;
16687 fail:
16688 return NULL;
16689 }
16690
16691
16692 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
16693 PyObject *resultobj;
16694 int arg1 ;
16695 int arg2 = (int) wxDateTime::Gregorian ;
16696 int result;
16697 PyObject * obj0 = 0 ;
16698 PyObject * obj1 = 0 ;
16699 char *kwnames[] = {
16700 (char *) "year",(char *) "cal", NULL
16701 };
16702
16703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16704 arg1 = (int) SWIG_AsInt(obj0);
16705 if (PyErr_Occurred()) SWIG_fail;
16706 if (obj1) {
16707 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16708 if (PyErr_Occurred()) SWIG_fail;
16709 }
16710 {
16711 PyThreadState* __tstate = wxPyBeginAllowThreads();
16712 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16713
16714 wxPyEndAllowThreads(__tstate);
16715 if (PyErr_Occurred()) SWIG_fail;
16716 }
16717 resultobj = SWIG_FromInt((int)result);
16718 return resultobj;
16719 fail:
16720 return NULL;
16721 }
16722
16723
16724 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
16725 PyObject *resultobj;
16726 int arg1 ;
16727 int arg2 = (int) wxDateTime::Inv_Year ;
16728 int arg3 = (int) wxDateTime::Gregorian ;
16729 int result;
16730 PyObject * obj0 = 0 ;
16731 PyObject * obj1 = 0 ;
16732 PyObject * obj2 = 0 ;
16733 char *kwnames[] = {
16734 (char *) "month",(char *) "year",(char *) "cal", NULL
16735 };
16736
16737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16738 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16739 if (PyErr_Occurred()) SWIG_fail;
16740 if (obj1) {
16741 arg2 = (int) SWIG_AsInt(obj1);
16742 if (PyErr_Occurred()) SWIG_fail;
16743 }
16744 if (obj2) {
16745 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16746 if (PyErr_Occurred()) SWIG_fail;
16747 }
16748 {
16749 PyThreadState* __tstate = wxPyBeginAllowThreads();
16750 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
16751
16752 wxPyEndAllowThreads(__tstate);
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
16755 resultobj = SWIG_FromInt((int)result);
16756 return resultobj;
16757 fail:
16758 return NULL;
16759 }
16760
16761
16762 static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
16763 PyObject *resultobj;
16764 int arg1 ;
16765 int arg2 = (int) wxDateTime::Name_Full ;
16766 wxString result;
16767 PyObject * obj0 = 0 ;
16768 PyObject * obj1 = 0 ;
16769 char *kwnames[] = {
16770 (char *) "month",(char *) "flags", NULL
16771 };
16772
16773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16774 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16775 if (PyErr_Occurred()) SWIG_fail;
16776 if (obj1) {
16777 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16778 if (PyErr_Occurred()) SWIG_fail;
16779 }
16780 {
16781 PyThreadState* __tstate = wxPyBeginAllowThreads();
16782 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16783
16784 wxPyEndAllowThreads(__tstate);
16785 if (PyErr_Occurred()) SWIG_fail;
16786 }
16787 {
16788 #if wxUSE_UNICODE
16789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16790 #else
16791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16792 #endif
16793 }
16794 return resultobj;
16795 fail:
16796 return NULL;
16797 }
16798
16799
16800 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
16801 PyObject *resultobj;
16802 int arg1 ;
16803 int arg2 = (int) wxDateTime::Name_Full ;
16804 wxString result;
16805 PyObject * obj0 = 0 ;
16806 PyObject * obj1 = 0 ;
16807 char *kwnames[] = {
16808 (char *) "weekday",(char *) "flags", NULL
16809 };
16810
16811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
16812 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
16813 if (PyErr_Occurred()) SWIG_fail;
16814 if (obj1) {
16815 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16816 if (PyErr_Occurred()) SWIG_fail;
16817 }
16818 {
16819 PyThreadState* __tstate = wxPyBeginAllowThreads();
16820 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
16821
16822 wxPyEndAllowThreads(__tstate);
16823 if (PyErr_Occurred()) SWIG_fail;
16824 }
16825 {
16826 #if wxUSE_UNICODE
16827 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16828 #else
16829 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16830 #endif
16831 }
16832 return resultobj;
16833 fail:
16834 return NULL;
16835 }
16836
16837
16838 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
16839 PyObject *resultobj;
16840 wxString *arg1 = (wxString *) 0 ;
16841 wxString *arg2 = (wxString *) 0 ;
16842 bool temp1 = False ;
16843 bool temp2 = False ;
16844 PyObject * obj0 = 0 ;
16845 PyObject * obj1 = 0 ;
16846 char *kwnames[] = {
16847 (char *) "OUTPUT",(char *) "OUTPUT", NULL
16848 };
16849
16850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
16851 {
16852 arg1 = wxString_in_helper(obj0);
16853 if (arg1 == NULL) SWIG_fail;
16854 temp1 = True;
16855 }
16856 {
16857 arg2 = wxString_in_helper(obj1);
16858 if (arg2 == NULL) SWIG_fail;
16859 temp2 = True;
16860 }
16861 {
16862 PyThreadState* __tstate = wxPyBeginAllowThreads();
16863 wxDateTime::GetAmPmStrings(arg1,arg2);
16864
16865 wxPyEndAllowThreads(__tstate);
16866 if (PyErr_Occurred()) SWIG_fail;
16867 }
16868 Py_INCREF(Py_None); resultobj = Py_None;
16869 {
16870 if (temp1)
16871 delete arg1;
16872 }
16873 {
16874 if (temp2)
16875 delete arg2;
16876 }
16877 return resultobj;
16878 fail:
16879 {
16880 if (temp1)
16881 delete arg1;
16882 }
16883 {
16884 if (temp2)
16885 delete arg2;
16886 }
16887 return NULL;
16888 }
16889
16890
16891 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
16892 PyObject *resultobj;
16893 int arg1 = (int) wxDateTime::Inv_Year ;
16894 int arg2 = (int) wxDateTime::Country_Default ;
16895 bool result;
16896 PyObject * obj0 = 0 ;
16897 PyObject * obj1 = 0 ;
16898 char *kwnames[] = {
16899 (char *) "year",(char *) "country", NULL
16900 };
16901
16902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
16903 if (obj0) {
16904 arg1 = (int) SWIG_AsInt(obj0);
16905 if (PyErr_Occurred()) SWIG_fail;
16906 }
16907 if (obj1) {
16908 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16909 if (PyErr_Occurred()) SWIG_fail;
16910 }
16911 {
16912 PyThreadState* __tstate = wxPyBeginAllowThreads();
16913 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
16914
16915 wxPyEndAllowThreads(__tstate);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
16918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16919 return resultobj;
16920 fail:
16921 return NULL;
16922 }
16923
16924
16925 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
16926 PyObject *resultobj;
16927 int arg1 = (int) wxDateTime::Inv_Year ;
16928 int arg2 = (int) wxDateTime::Country_Default ;
16929 wxDateTime result;
16930 PyObject * obj0 = 0 ;
16931 PyObject * obj1 = 0 ;
16932 char *kwnames[] = {
16933 (char *) "year",(char *) "country", NULL
16934 };
16935
16936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
16937 if (obj0) {
16938 arg1 = (int) SWIG_AsInt(obj0);
16939 if (PyErr_Occurred()) SWIG_fail;
16940 }
16941 if (obj1) {
16942 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16943 if (PyErr_Occurred()) SWIG_fail;
16944 }
16945 {
16946 PyThreadState* __tstate = wxPyBeginAllowThreads();
16947 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
16948
16949 wxPyEndAllowThreads(__tstate);
16950 if (PyErr_Occurred()) SWIG_fail;
16951 }
16952 {
16953 wxDateTime * resultptr;
16954 resultptr = new wxDateTime((wxDateTime &) result);
16955 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
16956 }
16957 return resultobj;
16958 fail:
16959 return NULL;
16960 }
16961
16962
16963 static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
16964 PyObject *resultobj;
16965 int arg1 = (int) wxDateTime::Inv_Year ;
16966 int arg2 = (int) wxDateTime::Country_Default ;
16967 wxDateTime result;
16968 PyObject * obj0 = 0 ;
16969 PyObject * obj1 = 0 ;
16970 char *kwnames[] = {
16971 (char *) "year",(char *) "country", NULL
16972 };
16973
16974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
16975 if (obj0) {
16976 arg1 = (int) SWIG_AsInt(obj0);
16977 if (PyErr_Occurred()) SWIG_fail;
16978 }
16979 if (obj1) {
16980 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16981 if (PyErr_Occurred()) SWIG_fail;
16982 }
16983 {
16984 PyThreadState* __tstate = wxPyBeginAllowThreads();
16985 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
16986
16987 wxPyEndAllowThreads(__tstate);
16988 if (PyErr_Occurred()) SWIG_fail;
16989 }
16990 {
16991 wxDateTime * resultptr;
16992 resultptr = new wxDateTime((wxDateTime &) result);
16993 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
16994 }
16995 return resultobj;
16996 fail:
16997 return NULL;
16998 }
16999
17000
17001 static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
17002 PyObject *resultobj;
17003 wxDateTime result;
17004 char *kwnames[] = {
17005 NULL
17006 };
17007
17008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17009 {
17010 PyThreadState* __tstate = wxPyBeginAllowThreads();
17011 result = wxDateTime::Now();
17012
17013 wxPyEndAllowThreads(__tstate);
17014 if (PyErr_Occurred()) SWIG_fail;
17015 }
17016 {
17017 wxDateTime * resultptr;
17018 resultptr = new wxDateTime((wxDateTime &) result);
17019 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17020 }
17021 return resultobj;
17022 fail:
17023 return NULL;
17024 }
17025
17026
17027 static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
17028 PyObject *resultobj;
17029 wxDateTime result;
17030 char *kwnames[] = {
17031 NULL
17032 };
17033
17034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17035 {
17036 PyThreadState* __tstate = wxPyBeginAllowThreads();
17037 result = wxDateTime::UNow();
17038
17039 wxPyEndAllowThreads(__tstate);
17040 if (PyErr_Occurred()) SWIG_fail;
17041 }
17042 {
17043 wxDateTime * resultptr;
17044 resultptr = new wxDateTime((wxDateTime &) result);
17045 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17046 }
17047 return resultobj;
17048 fail:
17049 return NULL;
17050 }
17051
17052
17053 static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
17054 PyObject *resultobj;
17055 wxDateTime result;
17056 char *kwnames[] = {
17057 NULL
17058 };
17059
17060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17061 {
17062 PyThreadState* __tstate = wxPyBeginAllowThreads();
17063 result = wxDateTime::Today();
17064
17065 wxPyEndAllowThreads(__tstate);
17066 if (PyErr_Occurred()) SWIG_fail;
17067 }
17068 {
17069 wxDateTime * resultptr;
17070 resultptr = new wxDateTime((wxDateTime &) result);
17071 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17072 }
17073 return resultobj;
17074 fail:
17075 return NULL;
17076 }
17077
17078
17079 static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17080 PyObject *resultobj;
17081 wxDateTime *result;
17082 char *kwnames[] = {
17083 NULL
17084 };
17085
17086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17087 {
17088 PyThreadState* __tstate = wxPyBeginAllowThreads();
17089 result = (wxDateTime *)new wxDateTime();
17090
17091 wxPyEndAllowThreads(__tstate);
17092 if (PyErr_Occurred()) SWIG_fail;
17093 }
17094 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17095 return resultobj;
17096 fail:
17097 return NULL;
17098 }
17099
17100
17101 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17102 PyObject *resultobj;
17103 time_t arg1 ;
17104 wxDateTime *result;
17105 PyObject * obj0 = 0 ;
17106 char *kwnames[] = {
17107 (char *) "timet", NULL
17108 };
17109
17110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17111 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17112 if (PyErr_Occurred()) SWIG_fail;
17113 {
17114 PyThreadState* __tstate = wxPyBeginAllowThreads();
17115 result = (wxDateTime *)new wxDateTime(arg1);
17116
17117 wxPyEndAllowThreads(__tstate);
17118 if (PyErr_Occurred()) SWIG_fail;
17119 }
17120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17121 return resultobj;
17122 fail:
17123 return NULL;
17124 }
17125
17126
17127 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17128 PyObject *resultobj;
17129 double arg1 ;
17130 wxDateTime *result;
17131 PyObject * obj0 = 0 ;
17132 char *kwnames[] = {
17133 (char *) "jdn", NULL
17134 };
17135
17136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17137 arg1 = (double) SWIG_AsDouble(obj0);
17138 if (PyErr_Occurred()) SWIG_fail;
17139 {
17140 PyThreadState* __tstate = wxPyBeginAllowThreads();
17141 result = (wxDateTime *)new wxDateTime(arg1);
17142
17143 wxPyEndAllowThreads(__tstate);
17144 if (PyErr_Occurred()) SWIG_fail;
17145 }
17146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17147 return resultobj;
17148 fail:
17149 return NULL;
17150 }
17151
17152
17153 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
17154 PyObject *resultobj;
17155 int arg1 ;
17156 int arg2 = (int) 0 ;
17157 int arg3 = (int) 0 ;
17158 int arg4 = (int) 0 ;
17159 wxDateTime *result;
17160 PyObject * obj0 = 0 ;
17161 PyObject * obj1 = 0 ;
17162 PyObject * obj2 = 0 ;
17163 PyObject * obj3 = 0 ;
17164 char *kwnames[] = {
17165 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17166 };
17167
17168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17169 arg1 = (int) SWIG_AsInt(obj0);
17170 if (PyErr_Occurred()) SWIG_fail;
17171 if (obj1) {
17172 arg2 = (int) SWIG_AsInt(obj1);
17173 if (PyErr_Occurred()) SWIG_fail;
17174 }
17175 if (obj2) {
17176 arg3 = (int) SWIG_AsInt(obj2);
17177 if (PyErr_Occurred()) SWIG_fail;
17178 }
17179 if (obj3) {
17180 arg4 = (int) SWIG_AsInt(obj3);
17181 if (PyErr_Occurred()) SWIG_fail;
17182 }
17183 {
17184 PyThreadState* __tstate = wxPyBeginAllowThreads();
17185 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17186
17187 wxPyEndAllowThreads(__tstate);
17188 if (PyErr_Occurred()) SWIG_fail;
17189 }
17190 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17191 return resultobj;
17192 fail:
17193 return NULL;
17194 }
17195
17196
17197 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
17198 PyObject *resultobj;
17199 int arg1 ;
17200 int arg2 = (int) wxDateTime::Inv_Month ;
17201 int arg3 = (int) wxDateTime::Inv_Year ;
17202 int arg4 = (int) 0 ;
17203 int arg5 = (int) 0 ;
17204 int arg6 = (int) 0 ;
17205 int arg7 = (int) 0 ;
17206 wxDateTime *result;
17207 PyObject * obj0 = 0 ;
17208 PyObject * obj1 = 0 ;
17209 PyObject * obj2 = 0 ;
17210 PyObject * obj3 = 0 ;
17211 PyObject * obj4 = 0 ;
17212 PyObject * obj5 = 0 ;
17213 PyObject * obj6 = 0 ;
17214 char *kwnames[] = {
17215 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17216 };
17217
17218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17219 arg1 = (int) SWIG_AsInt(obj0);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 if (obj1) {
17222 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 if (obj2) {
17226 arg3 = (int) SWIG_AsInt(obj2);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 if (obj3) {
17230 arg4 = (int) SWIG_AsInt(obj3);
17231 if (PyErr_Occurred()) SWIG_fail;
17232 }
17233 if (obj4) {
17234 arg5 = (int) SWIG_AsInt(obj4);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 if (obj5) {
17238 arg6 = (int) SWIG_AsInt(obj5);
17239 if (PyErr_Occurred()) SWIG_fail;
17240 }
17241 if (obj6) {
17242 arg7 = (int) SWIG_AsInt(obj6);
17243 if (PyErr_Occurred()) SWIG_fail;
17244 }
17245 {
17246 PyThreadState* __tstate = wxPyBeginAllowThreads();
17247 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17248
17249 wxPyEndAllowThreads(__tstate);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 }
17252 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17253 return resultobj;
17254 fail:
17255 return NULL;
17256 }
17257
17258
17259 static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17260 PyObject *resultobj;
17261 wxDateTime *arg1 = (wxDateTime *) 0 ;
17262 PyObject * obj0 = 0 ;
17263 char *kwnames[] = {
17264 (char *) "self", NULL
17265 };
17266
17267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17270 {
17271 PyThreadState* __tstate = wxPyBeginAllowThreads();
17272 delete arg1;
17273
17274 wxPyEndAllowThreads(__tstate);
17275 if (PyErr_Occurred()) SWIG_fail;
17276 }
17277 Py_INCREF(Py_None); resultobj = Py_None;
17278 return resultobj;
17279 fail:
17280 return NULL;
17281 }
17282
17283
17284 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
17285 PyObject *resultobj;
17286 wxDateTime *arg1 = (wxDateTime *) 0 ;
17287 wxDateTime *result;
17288 PyObject * obj0 = 0 ;
17289 char *kwnames[] = {
17290 (char *) "self", NULL
17291 };
17292
17293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17296 {
17297 PyThreadState* __tstate = wxPyBeginAllowThreads();
17298 {
17299 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17300 result = (wxDateTime *) &_result_ref;
17301 }
17302
17303 wxPyEndAllowThreads(__tstate);
17304 if (PyErr_Occurred()) SWIG_fail;
17305 }
17306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17307 return resultobj;
17308 fail:
17309 return NULL;
17310 }
17311
17312
17313 static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17314 PyObject *resultobj;
17315 wxDateTime *arg1 = (wxDateTime *) 0 ;
17316 time_t arg2 ;
17317 wxDateTime *result;
17318 PyObject * obj0 = 0 ;
17319 PyObject * obj1 = 0 ;
17320 char *kwnames[] = {
17321 (char *) "self",(char *) "timet", NULL
17322 };
17323
17324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17327 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17328 if (PyErr_Occurred()) SWIG_fail;
17329 {
17330 PyThreadState* __tstate = wxPyBeginAllowThreads();
17331 {
17332 wxDateTime &_result_ref = (arg1)->Set(arg2);
17333 result = (wxDateTime *) &_result_ref;
17334 }
17335
17336 wxPyEndAllowThreads(__tstate);
17337 if (PyErr_Occurred()) SWIG_fail;
17338 }
17339 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17340 return resultobj;
17341 fail:
17342 return NULL;
17343 }
17344
17345
17346 static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17347 PyObject *resultobj;
17348 wxDateTime *arg1 = (wxDateTime *) 0 ;
17349 double arg2 ;
17350 wxDateTime *result;
17351 PyObject * obj0 = 0 ;
17352 PyObject * obj1 = 0 ;
17353 char *kwnames[] = {
17354 (char *) "self",(char *) "jdn", NULL
17355 };
17356
17357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17360 arg2 = (double) SWIG_AsDouble(obj1);
17361 if (PyErr_Occurred()) SWIG_fail;
17362 {
17363 PyThreadState* __tstate = wxPyBeginAllowThreads();
17364 {
17365 wxDateTime &_result_ref = (arg1)->Set(arg2);
17366 result = (wxDateTime *) &_result_ref;
17367 }
17368
17369 wxPyEndAllowThreads(__tstate);
17370 if (PyErr_Occurred()) SWIG_fail;
17371 }
17372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17373 return resultobj;
17374 fail:
17375 return NULL;
17376 }
17377
17378
17379 static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
17380 PyObject *resultobj;
17381 wxDateTime *arg1 = (wxDateTime *) 0 ;
17382 int arg2 ;
17383 int arg3 = (int) 0 ;
17384 int arg4 = (int) 0 ;
17385 int arg5 = (int) 0 ;
17386 wxDateTime *result;
17387 PyObject * obj0 = 0 ;
17388 PyObject * obj1 = 0 ;
17389 PyObject * obj2 = 0 ;
17390 PyObject * obj3 = 0 ;
17391 PyObject * obj4 = 0 ;
17392 char *kwnames[] = {
17393 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17394 };
17395
17396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17399 arg2 = (int) SWIG_AsInt(obj1);
17400 if (PyErr_Occurred()) SWIG_fail;
17401 if (obj2) {
17402 arg3 = (int) SWIG_AsInt(obj2);
17403 if (PyErr_Occurred()) SWIG_fail;
17404 }
17405 if (obj3) {
17406 arg4 = (int) SWIG_AsInt(obj3);
17407 if (PyErr_Occurred()) SWIG_fail;
17408 }
17409 if (obj4) {
17410 arg5 = (int) SWIG_AsInt(obj4);
17411 if (PyErr_Occurred()) SWIG_fail;
17412 }
17413 {
17414 PyThreadState* __tstate = wxPyBeginAllowThreads();
17415 {
17416 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17417 result = (wxDateTime *) &_result_ref;
17418 }
17419
17420 wxPyEndAllowThreads(__tstate);
17421 if (PyErr_Occurred()) SWIG_fail;
17422 }
17423 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17424 return resultobj;
17425 fail:
17426 return NULL;
17427 }
17428
17429
17430 static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
17431 PyObject *resultobj;
17432 wxDateTime *arg1 = (wxDateTime *) 0 ;
17433 int arg2 ;
17434 int arg3 = (int) wxDateTime::Inv_Month ;
17435 int arg4 = (int) wxDateTime::Inv_Year ;
17436 int arg5 = (int) 0 ;
17437 int arg6 = (int) 0 ;
17438 int arg7 = (int) 0 ;
17439 int arg8 = (int) 0 ;
17440 wxDateTime *result;
17441 PyObject * obj0 = 0 ;
17442 PyObject * obj1 = 0 ;
17443 PyObject * obj2 = 0 ;
17444 PyObject * obj3 = 0 ;
17445 PyObject * obj4 = 0 ;
17446 PyObject * obj5 = 0 ;
17447 PyObject * obj6 = 0 ;
17448 PyObject * obj7 = 0 ;
17449 char *kwnames[] = {
17450 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17451 };
17452
17453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17456 arg2 = (int) SWIG_AsInt(obj1);
17457 if (PyErr_Occurred()) SWIG_fail;
17458 if (obj2) {
17459 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17460 if (PyErr_Occurred()) SWIG_fail;
17461 }
17462 if (obj3) {
17463 arg4 = (int) SWIG_AsInt(obj3);
17464 if (PyErr_Occurred()) SWIG_fail;
17465 }
17466 if (obj4) {
17467 arg5 = (int) SWIG_AsInt(obj4);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 if (obj5) {
17471 arg6 = (int) SWIG_AsInt(obj5);
17472 if (PyErr_Occurred()) SWIG_fail;
17473 }
17474 if (obj6) {
17475 arg7 = (int) SWIG_AsInt(obj6);
17476 if (PyErr_Occurred()) SWIG_fail;
17477 }
17478 if (obj7) {
17479 arg8 = (int) SWIG_AsInt(obj7);
17480 if (PyErr_Occurred()) SWIG_fail;
17481 }
17482 {
17483 PyThreadState* __tstate = wxPyBeginAllowThreads();
17484 {
17485 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17486 result = (wxDateTime *) &_result_ref;
17487 }
17488
17489 wxPyEndAllowThreads(__tstate);
17490 if (PyErr_Occurred()) SWIG_fail;
17491 }
17492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17493 return resultobj;
17494 fail:
17495 return NULL;
17496 }
17497
17498
17499 static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
17500 PyObject *resultobj;
17501 wxDateTime *arg1 = (wxDateTime *) 0 ;
17502 wxDateTime *result;
17503 PyObject * obj0 = 0 ;
17504 char *kwnames[] = {
17505 (char *) "self", NULL
17506 };
17507
17508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17511 {
17512 PyThreadState* __tstate = wxPyBeginAllowThreads();
17513 {
17514 wxDateTime &_result_ref = (arg1)->ResetTime();
17515 result = (wxDateTime *) &_result_ref;
17516 }
17517
17518 wxPyEndAllowThreads(__tstate);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17522 return resultobj;
17523 fail:
17524 return NULL;
17525 }
17526
17527
17528 static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
17529 PyObject *resultobj;
17530 wxDateTime *arg1 = (wxDateTime *) 0 ;
17531 int arg2 ;
17532 wxDateTime *result;
17533 PyObject * obj0 = 0 ;
17534 PyObject * obj1 = 0 ;
17535 char *kwnames[] = {
17536 (char *) "self",(char *) "year", NULL
17537 };
17538
17539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17542 arg2 = (int) SWIG_AsInt(obj1);
17543 if (PyErr_Occurred()) SWIG_fail;
17544 {
17545 PyThreadState* __tstate = wxPyBeginAllowThreads();
17546 {
17547 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17548 result = (wxDateTime *) &_result_ref;
17549 }
17550
17551 wxPyEndAllowThreads(__tstate);
17552 if (PyErr_Occurred()) SWIG_fail;
17553 }
17554 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17555 return resultobj;
17556 fail:
17557 return NULL;
17558 }
17559
17560
17561 static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
17562 PyObject *resultobj;
17563 wxDateTime *arg1 = (wxDateTime *) 0 ;
17564 int arg2 ;
17565 wxDateTime *result;
17566 PyObject * obj0 = 0 ;
17567 PyObject * obj1 = 0 ;
17568 char *kwnames[] = {
17569 (char *) "self",(char *) "month", NULL
17570 };
17571
17572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17575 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17576 if (PyErr_Occurred()) SWIG_fail;
17577 {
17578 PyThreadState* __tstate = wxPyBeginAllowThreads();
17579 {
17580 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17581 result = (wxDateTime *) &_result_ref;
17582 }
17583
17584 wxPyEndAllowThreads(__tstate);
17585 if (PyErr_Occurred()) SWIG_fail;
17586 }
17587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17588 return resultobj;
17589 fail:
17590 return NULL;
17591 }
17592
17593
17594 static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
17595 PyObject *resultobj;
17596 wxDateTime *arg1 = (wxDateTime *) 0 ;
17597 int arg2 ;
17598 wxDateTime *result;
17599 PyObject * obj0 = 0 ;
17600 PyObject * obj1 = 0 ;
17601 char *kwnames[] = {
17602 (char *) "self",(char *) "day", NULL
17603 };
17604
17605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17608 arg2 = (int) SWIG_AsInt(obj1);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 {
17611 PyThreadState* __tstate = wxPyBeginAllowThreads();
17612 {
17613 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17614 result = (wxDateTime *) &_result_ref;
17615 }
17616
17617 wxPyEndAllowThreads(__tstate);
17618 if (PyErr_Occurred()) SWIG_fail;
17619 }
17620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17621 return resultobj;
17622 fail:
17623 return NULL;
17624 }
17625
17626
17627 static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
17628 PyObject *resultobj;
17629 wxDateTime *arg1 = (wxDateTime *) 0 ;
17630 int arg2 ;
17631 wxDateTime *result;
17632 PyObject * obj0 = 0 ;
17633 PyObject * obj1 = 0 ;
17634 char *kwnames[] = {
17635 (char *) "self",(char *) "hour", NULL
17636 };
17637
17638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17641 arg2 = (int) SWIG_AsInt(obj1);
17642 if (PyErr_Occurred()) SWIG_fail;
17643 {
17644 PyThreadState* __tstate = wxPyBeginAllowThreads();
17645 {
17646 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17647 result = (wxDateTime *) &_result_ref;
17648 }
17649
17650 wxPyEndAllowThreads(__tstate);
17651 if (PyErr_Occurred()) SWIG_fail;
17652 }
17653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17654 return resultobj;
17655 fail:
17656 return NULL;
17657 }
17658
17659
17660 static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
17661 PyObject *resultobj;
17662 wxDateTime *arg1 = (wxDateTime *) 0 ;
17663 int arg2 ;
17664 wxDateTime *result;
17665 PyObject * obj0 = 0 ;
17666 PyObject * obj1 = 0 ;
17667 char *kwnames[] = {
17668 (char *) "self",(char *) "minute", NULL
17669 };
17670
17671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17674 arg2 = (int) SWIG_AsInt(obj1);
17675 if (PyErr_Occurred()) SWIG_fail;
17676 {
17677 PyThreadState* __tstate = wxPyBeginAllowThreads();
17678 {
17679 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17680 result = (wxDateTime *) &_result_ref;
17681 }
17682
17683 wxPyEndAllowThreads(__tstate);
17684 if (PyErr_Occurred()) SWIG_fail;
17685 }
17686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17687 return resultobj;
17688 fail:
17689 return NULL;
17690 }
17691
17692
17693 static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
17694 PyObject *resultobj;
17695 wxDateTime *arg1 = (wxDateTime *) 0 ;
17696 int arg2 ;
17697 wxDateTime *result;
17698 PyObject * obj0 = 0 ;
17699 PyObject * obj1 = 0 ;
17700 char *kwnames[] = {
17701 (char *) "self",(char *) "second", NULL
17702 };
17703
17704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17707 arg2 = (int) SWIG_AsInt(obj1);
17708 if (PyErr_Occurred()) SWIG_fail;
17709 {
17710 PyThreadState* __tstate = wxPyBeginAllowThreads();
17711 {
17712 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17713 result = (wxDateTime *) &_result_ref;
17714 }
17715
17716 wxPyEndAllowThreads(__tstate);
17717 if (PyErr_Occurred()) SWIG_fail;
17718 }
17719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17720 return resultobj;
17721 fail:
17722 return NULL;
17723 }
17724
17725
17726 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
17727 PyObject *resultobj;
17728 wxDateTime *arg1 = (wxDateTime *) 0 ;
17729 int arg2 ;
17730 wxDateTime *result;
17731 PyObject * obj0 = 0 ;
17732 PyObject * obj1 = 0 ;
17733 char *kwnames[] = {
17734 (char *) "self",(char *) "millisecond", NULL
17735 };
17736
17737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17740 arg2 = (int) SWIG_AsInt(obj1);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 {
17743 PyThreadState* __tstate = wxPyBeginAllowThreads();
17744 {
17745 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17746 result = (wxDateTime *) &_result_ref;
17747 }
17748
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17753 return resultobj;
17754 fail:
17755 return NULL;
17756 }
17757
17758
17759 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
17760 PyObject *resultobj;
17761 wxDateTime *arg1 = (wxDateTime *) 0 ;
17762 int arg2 ;
17763 int arg3 = (int) wxDateTime::Monday_First ;
17764 wxDateTime *result;
17765 PyObject * obj0 = 0 ;
17766 PyObject * obj1 = 0 ;
17767 PyObject * obj2 = 0 ;
17768 char *kwnames[] = {
17769 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17770 };
17771
17772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17775 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 if (obj2) {
17778 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17779 if (PyErr_Occurred()) SWIG_fail;
17780 }
17781 {
17782 PyThreadState* __tstate = wxPyBeginAllowThreads();
17783 {
17784 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17785 result = (wxDateTime *) &_result_ref;
17786 }
17787
17788 wxPyEndAllowThreads(__tstate);
17789 if (PyErr_Occurred()) SWIG_fail;
17790 }
17791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17792 return resultobj;
17793 fail:
17794 return NULL;
17795 }
17796
17797
17798 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
17799 PyObject *resultobj;
17800 wxDateTime *arg1 = (wxDateTime *) 0 ;
17801 int arg2 ;
17802 int arg3 = (int) wxDateTime::Monday_First ;
17803 wxDateTime result;
17804 PyObject * obj0 = 0 ;
17805 PyObject * obj1 = 0 ;
17806 PyObject * obj2 = 0 ;
17807 char *kwnames[] = {
17808 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17809 };
17810
17811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17814 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 if (obj2) {
17817 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17818 if (PyErr_Occurred()) SWIG_fail;
17819 }
17820 {
17821 PyThreadState* __tstate = wxPyBeginAllowThreads();
17822 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17823
17824 wxPyEndAllowThreads(__tstate);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 }
17827 {
17828 wxDateTime * resultptr;
17829 resultptr = new wxDateTime((wxDateTime &) result);
17830 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17831 }
17832 return resultobj;
17833 fail:
17834 return NULL;
17835 }
17836
17837
17838 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
17839 PyObject *resultobj;
17840 wxDateTime *arg1 = (wxDateTime *) 0 ;
17841 int arg2 ;
17842 wxDateTime *result;
17843 PyObject * obj0 = 0 ;
17844 PyObject * obj1 = 0 ;
17845 char *kwnames[] = {
17846 (char *) "self",(char *) "weekday", NULL
17847 };
17848
17849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
17850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17852 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17853 if (PyErr_Occurred()) SWIG_fail;
17854 {
17855 PyThreadState* __tstate = wxPyBeginAllowThreads();
17856 {
17857 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
17858 result = (wxDateTime *) &_result_ref;
17859 }
17860
17861 wxPyEndAllowThreads(__tstate);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 }
17864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17865 return resultobj;
17866 fail:
17867 return NULL;
17868 }
17869
17870
17871 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
17872 PyObject *resultobj;
17873 wxDateTime *arg1 = (wxDateTime *) 0 ;
17874 int arg2 ;
17875 wxDateTime result;
17876 PyObject * obj0 = 0 ;
17877 PyObject * obj1 = 0 ;
17878 char *kwnames[] = {
17879 (char *) "self",(char *) "weekday", NULL
17880 };
17881
17882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
17883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17885 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17886 if (PyErr_Occurred()) SWIG_fail;
17887 {
17888 PyThreadState* __tstate = wxPyBeginAllowThreads();
17889 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
17890
17891 wxPyEndAllowThreads(__tstate);
17892 if (PyErr_Occurred()) SWIG_fail;
17893 }
17894 {
17895 wxDateTime * resultptr;
17896 resultptr = new wxDateTime((wxDateTime &) result);
17897 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17898 }
17899 return resultobj;
17900 fail:
17901 return NULL;
17902 }
17903
17904
17905 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
17906 PyObject *resultobj;
17907 wxDateTime *arg1 = (wxDateTime *) 0 ;
17908 int arg2 ;
17909 wxDateTime *result;
17910 PyObject * obj0 = 0 ;
17911 PyObject * obj1 = 0 ;
17912 char *kwnames[] = {
17913 (char *) "self",(char *) "weekday", NULL
17914 };
17915
17916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
17917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17919 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17920 if (PyErr_Occurred()) SWIG_fail;
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 {
17924 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
17925 result = (wxDateTime *) &_result_ref;
17926 }
17927
17928 wxPyEndAllowThreads(__tstate);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 }
17931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17932 return resultobj;
17933 fail:
17934 return NULL;
17935 }
17936
17937
17938 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
17939 PyObject *resultobj;
17940 wxDateTime *arg1 = (wxDateTime *) 0 ;
17941 int arg2 ;
17942 wxDateTime result;
17943 PyObject * obj0 = 0 ;
17944 PyObject * obj1 = 0 ;
17945 char *kwnames[] = {
17946 (char *) "self",(char *) "weekday", NULL
17947 };
17948
17949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
17950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17952 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 {
17955 PyThreadState* __tstate = wxPyBeginAllowThreads();
17956 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
17957
17958 wxPyEndAllowThreads(__tstate);
17959 if (PyErr_Occurred()) SWIG_fail;
17960 }
17961 {
17962 wxDateTime * resultptr;
17963 resultptr = new wxDateTime((wxDateTime &) result);
17964 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17965 }
17966 return resultobj;
17967 fail:
17968 return NULL;
17969 }
17970
17971
17972 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
17973 PyObject *resultobj;
17974 wxDateTime *arg1 = (wxDateTime *) 0 ;
17975 int arg2 ;
17976 int arg3 = (int) 1 ;
17977 int arg4 = (int) wxDateTime::Inv_Month ;
17978 int arg5 = (int) wxDateTime::Inv_Year ;
17979 bool result;
17980 PyObject * obj0 = 0 ;
17981 PyObject * obj1 = 0 ;
17982 PyObject * obj2 = 0 ;
17983 PyObject * obj3 = 0 ;
17984 PyObject * obj4 = 0 ;
17985 char *kwnames[] = {
17986 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
17987 };
17988
17989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17992 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17993 if (PyErr_Occurred()) SWIG_fail;
17994 if (obj2) {
17995 arg3 = (int) SWIG_AsInt(obj2);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 if (obj3) {
17999 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18000 if (PyErr_Occurred()) SWIG_fail;
18001 }
18002 if (obj4) {
18003 arg5 = (int) SWIG_AsInt(obj4);
18004 if (PyErr_Occurred()) SWIG_fail;
18005 }
18006 {
18007 PyThreadState* __tstate = wxPyBeginAllowThreads();
18008 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18009
18010 wxPyEndAllowThreads(__tstate);
18011 if (PyErr_Occurred()) SWIG_fail;
18012 }
18013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18014 return resultobj;
18015 fail:
18016 return NULL;
18017 }
18018
18019
18020 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18021 PyObject *resultobj;
18022 wxDateTime *arg1 = (wxDateTime *) 0 ;
18023 int arg2 ;
18024 int arg3 = (int) wxDateTime::Inv_Month ;
18025 int arg4 = (int) wxDateTime::Inv_Year ;
18026 bool result;
18027 PyObject * obj0 = 0 ;
18028 PyObject * obj1 = 0 ;
18029 PyObject * obj2 = 0 ;
18030 PyObject * obj3 = 0 ;
18031 char *kwnames[] = {
18032 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18033 };
18034
18035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18038 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 if (obj2) {
18041 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 if (obj3) {
18045 arg4 = (int) SWIG_AsInt(obj3);
18046 if (PyErr_Occurred()) SWIG_fail;
18047 }
18048 {
18049 PyThreadState* __tstate = wxPyBeginAllowThreads();
18050 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18051
18052 wxPyEndAllowThreads(__tstate);
18053 if (PyErr_Occurred()) SWIG_fail;
18054 }
18055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18056 return resultobj;
18057 fail:
18058 return NULL;
18059 }
18060
18061
18062 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18063 PyObject *resultobj;
18064 wxDateTime *arg1 = (wxDateTime *) 0 ;
18065 int arg2 ;
18066 int arg3 = (int) wxDateTime::Inv_Month ;
18067 int arg4 = (int) wxDateTime::Inv_Year ;
18068 wxDateTime result;
18069 PyObject * obj0 = 0 ;
18070 PyObject * obj1 = 0 ;
18071 PyObject * obj2 = 0 ;
18072 PyObject * obj3 = 0 ;
18073 char *kwnames[] = {
18074 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18075 };
18076
18077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18080 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 if (obj2) {
18083 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18084 if (PyErr_Occurred()) SWIG_fail;
18085 }
18086 if (obj3) {
18087 arg4 = (int) SWIG_AsInt(obj3);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 }
18090 {
18091 PyThreadState* __tstate = wxPyBeginAllowThreads();
18092 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18093
18094 wxPyEndAllowThreads(__tstate);
18095 if (PyErr_Occurred()) SWIG_fail;
18096 }
18097 {
18098 wxDateTime * resultptr;
18099 resultptr = new wxDateTime((wxDateTime &) result);
18100 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18101 }
18102 return resultobj;
18103 fail:
18104 return NULL;
18105 }
18106
18107
18108 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18109 PyObject *resultobj;
18110 wxDateTime *arg1 = (wxDateTime *) 0 ;
18111 int arg2 ;
18112 int arg3 = (int) wxDateTime::Mon ;
18113 int arg4 = (int) wxDateTime::Monday_First ;
18114 bool result;
18115 PyObject * obj0 = 0 ;
18116 PyObject * obj1 = 0 ;
18117 PyObject * obj2 = 0 ;
18118 PyObject * obj3 = 0 ;
18119 char *kwnames[] = {
18120 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18121 };
18122
18123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18126 arg2 = (int) SWIG_AsInt(obj1);
18127 if (PyErr_Occurred()) SWIG_fail;
18128 if (obj2) {
18129 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 if (obj3) {
18133 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
18136 {
18137 PyThreadState* __tstate = wxPyBeginAllowThreads();
18138 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18139
18140 wxPyEndAllowThreads(__tstate);
18141 if (PyErr_Occurred()) SWIG_fail;
18142 }
18143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18144 return resultobj;
18145 fail:
18146 return NULL;
18147 }
18148
18149
18150 static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18151 PyObject *resultobj;
18152 wxDateTime *arg1 = (wxDateTime *) 0 ;
18153 int arg2 ;
18154 int arg3 = (int) wxDateTime::Mon ;
18155 int arg4 = (int) wxDateTime::Monday_First ;
18156 wxDateTime result;
18157 PyObject * obj0 = 0 ;
18158 PyObject * obj1 = 0 ;
18159 PyObject * obj2 = 0 ;
18160 PyObject * obj3 = 0 ;
18161 char *kwnames[] = {
18162 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18163 };
18164
18165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18168 arg2 = (int) SWIG_AsInt(obj1);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 if (obj2) {
18171 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18172 if (PyErr_Occurred()) SWIG_fail;
18173 }
18174 if (obj3) {
18175 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18176 if (PyErr_Occurred()) SWIG_fail;
18177 }
18178 {
18179 PyThreadState* __tstate = wxPyBeginAllowThreads();
18180 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18181
18182 wxPyEndAllowThreads(__tstate);
18183 if (PyErr_Occurred()) SWIG_fail;
18184 }
18185 {
18186 wxDateTime * resultptr;
18187 resultptr = new wxDateTime((wxDateTime &) result);
18188 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18189 }
18190 return resultobj;
18191 fail:
18192 return NULL;
18193 }
18194
18195
18196 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
18197 PyObject *resultobj;
18198 wxDateTime *arg1 = (wxDateTime *) 0 ;
18199 int arg2 = (int) wxDateTime::Inv_Month ;
18200 int arg3 = (int) wxDateTime::Inv_Year ;
18201 wxDateTime *result;
18202 PyObject * obj0 = 0 ;
18203 PyObject * obj1 = 0 ;
18204 PyObject * obj2 = 0 ;
18205 char *kwnames[] = {
18206 (char *) "self",(char *) "month",(char *) "year", NULL
18207 };
18208
18209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18212 if (obj1) {
18213 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18214 if (PyErr_Occurred()) SWIG_fail;
18215 }
18216 if (obj2) {
18217 arg3 = (int) SWIG_AsInt(obj2);
18218 if (PyErr_Occurred()) SWIG_fail;
18219 }
18220 {
18221 PyThreadState* __tstate = wxPyBeginAllowThreads();
18222 {
18223 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18224 result = (wxDateTime *) &_result_ref;
18225 }
18226
18227 wxPyEndAllowThreads(__tstate);
18228 if (PyErr_Occurred()) SWIG_fail;
18229 }
18230 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18231 return resultobj;
18232 fail:
18233 return NULL;
18234 }
18235
18236
18237 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
18238 PyObject *resultobj;
18239 wxDateTime *arg1 = (wxDateTime *) 0 ;
18240 int arg2 = (int) wxDateTime::Inv_Month ;
18241 int arg3 = (int) wxDateTime::Inv_Year ;
18242 wxDateTime result;
18243 PyObject * obj0 = 0 ;
18244 PyObject * obj1 = 0 ;
18245 PyObject * obj2 = 0 ;
18246 char *kwnames[] = {
18247 (char *) "self",(char *) "month",(char *) "year", NULL
18248 };
18249
18250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18253 if (obj1) {
18254 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18255 if (PyErr_Occurred()) SWIG_fail;
18256 }
18257 if (obj2) {
18258 arg3 = (int) SWIG_AsInt(obj2);
18259 if (PyErr_Occurred()) SWIG_fail;
18260 }
18261 {
18262 PyThreadState* __tstate = wxPyBeginAllowThreads();
18263 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18264
18265 wxPyEndAllowThreads(__tstate);
18266 if (PyErr_Occurred()) SWIG_fail;
18267 }
18268 {
18269 wxDateTime * resultptr;
18270 resultptr = new wxDateTime((wxDateTime &) result);
18271 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18272 }
18273 return resultobj;
18274 fail:
18275 return NULL;
18276 }
18277
18278
18279 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
18280 PyObject *resultobj;
18281 wxDateTime *arg1 = (wxDateTime *) 0 ;
18282 int arg2 ;
18283 wxDateTime *result;
18284 PyObject * obj0 = 0 ;
18285 PyObject * obj1 = 0 ;
18286 char *kwnames[] = {
18287 (char *) "self",(char *) "yday", NULL
18288 };
18289
18290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18293 arg2 = (int) SWIG_AsInt(obj1);
18294 if (PyErr_Occurred()) SWIG_fail;
18295 {
18296 PyThreadState* __tstate = wxPyBeginAllowThreads();
18297 {
18298 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18299 result = (wxDateTime *) &_result_ref;
18300 }
18301
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18306 return resultobj;
18307 fail:
18308 return NULL;
18309 }
18310
18311
18312 static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj;
18314 wxDateTime *arg1 = (wxDateTime *) 0 ;
18315 int arg2 ;
18316 wxDateTime result;
18317 PyObject * obj0 = 0 ;
18318 PyObject * obj1 = 0 ;
18319 char *kwnames[] = {
18320 (char *) "self",(char *) "yday", NULL
18321 };
18322
18323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18326 arg2 = (int) SWIG_AsInt(obj1);
18327 if (PyErr_Occurred()) SWIG_fail;
18328 {
18329 PyThreadState* __tstate = wxPyBeginAllowThreads();
18330 result = (arg1)->GetYearDay(arg2);
18331
18332 wxPyEndAllowThreads(__tstate);
18333 if (PyErr_Occurred()) SWIG_fail;
18334 }
18335 {
18336 wxDateTime * resultptr;
18337 resultptr = new wxDateTime((wxDateTime &) result);
18338 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18339 }
18340 return resultobj;
18341 fail:
18342 return NULL;
18343 }
18344
18345
18346 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
18347 PyObject *resultobj;
18348 wxDateTime *arg1 = (wxDateTime *) 0 ;
18349 double result;
18350 PyObject * obj0 = 0 ;
18351 char *kwnames[] = {
18352 (char *) "self", NULL
18353 };
18354
18355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18358 {
18359 PyThreadState* __tstate = wxPyBeginAllowThreads();
18360 result = (double)(arg1)->GetJulianDayNumber();
18361
18362 wxPyEndAllowThreads(__tstate);
18363 if (PyErr_Occurred()) SWIG_fail;
18364 }
18365 resultobj = SWIG_FromDouble((double)result);
18366 return resultobj;
18367 fail:
18368 return NULL;
18369 }
18370
18371
18372 static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
18373 PyObject *resultobj;
18374 wxDateTime *arg1 = (wxDateTime *) 0 ;
18375 double result;
18376 PyObject * obj0 = 0 ;
18377 char *kwnames[] = {
18378 (char *) "self", NULL
18379 };
18380
18381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18384 {
18385 PyThreadState* __tstate = wxPyBeginAllowThreads();
18386 result = (double)(arg1)->GetJDN();
18387
18388 wxPyEndAllowThreads(__tstate);
18389 if (PyErr_Occurred()) SWIG_fail;
18390 }
18391 resultobj = SWIG_FromDouble((double)result);
18392 return resultobj;
18393 fail:
18394 return NULL;
18395 }
18396
18397
18398 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
18399 PyObject *resultobj;
18400 wxDateTime *arg1 = (wxDateTime *) 0 ;
18401 double result;
18402 PyObject * obj0 = 0 ;
18403 char *kwnames[] = {
18404 (char *) "self", NULL
18405 };
18406
18407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18410 {
18411 PyThreadState* __tstate = wxPyBeginAllowThreads();
18412 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18413
18414 wxPyEndAllowThreads(__tstate);
18415 if (PyErr_Occurred()) SWIG_fail;
18416 }
18417 resultobj = SWIG_FromDouble((double)result);
18418 return resultobj;
18419 fail:
18420 return NULL;
18421 }
18422
18423
18424 static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
18425 PyObject *resultobj;
18426 wxDateTime *arg1 = (wxDateTime *) 0 ;
18427 double result;
18428 PyObject * obj0 = 0 ;
18429 char *kwnames[] = {
18430 (char *) "self", NULL
18431 };
18432
18433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18436 {
18437 PyThreadState* __tstate = wxPyBeginAllowThreads();
18438 result = (double)(arg1)->GetMJD();
18439
18440 wxPyEndAllowThreads(__tstate);
18441 if (PyErr_Occurred()) SWIG_fail;
18442 }
18443 resultobj = SWIG_FromDouble((double)result);
18444 return resultobj;
18445 fail:
18446 return NULL;
18447 }
18448
18449
18450 static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
18451 PyObject *resultobj;
18452 wxDateTime *arg1 = (wxDateTime *) 0 ;
18453 double result;
18454 PyObject * obj0 = 0 ;
18455 char *kwnames[] = {
18456 (char *) "self", NULL
18457 };
18458
18459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18462 {
18463 PyThreadState* __tstate = wxPyBeginAllowThreads();
18464 result = (double)(arg1)->GetRataDie();
18465
18466 wxPyEndAllowThreads(__tstate);
18467 if (PyErr_Occurred()) SWIG_fail;
18468 }
18469 resultobj = SWIG_FromDouble((double)result);
18470 return resultobj;
18471 fail:
18472 return NULL;
18473 }
18474
18475
18476 static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
18477 PyObject *resultobj;
18478 wxDateTime *arg1 = (wxDateTime *) 0 ;
18479 wxDateTime::TimeZone *arg2 = 0 ;
18480 bool arg3 = (bool) False ;
18481 wxDateTime result;
18482 bool temp2 = False ;
18483 PyObject * obj0 = 0 ;
18484 PyObject * obj1 = 0 ;
18485 PyObject * obj2 = 0 ;
18486 char *kwnames[] = {
18487 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18488 };
18489
18490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18493 {
18494 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18495 temp2 = True;
18496 }
18497 if (obj2) {
18498 arg3 = (bool) SWIG_AsBool(obj2);
18499 if (PyErr_Occurred()) SWIG_fail;
18500 }
18501 {
18502 PyThreadState* __tstate = wxPyBeginAllowThreads();
18503 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18504
18505 wxPyEndAllowThreads(__tstate);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 }
18508 {
18509 wxDateTime * resultptr;
18510 resultptr = new wxDateTime((wxDateTime &) result);
18511 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18512 }
18513 {
18514 if (temp2) delete arg2;
18515 }
18516 return resultobj;
18517 fail:
18518 {
18519 if (temp2) delete arg2;
18520 }
18521 return NULL;
18522 }
18523
18524
18525 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
18526 PyObject *resultobj;
18527 wxDateTime *arg1 = (wxDateTime *) 0 ;
18528 wxDateTime::TimeZone *arg2 = 0 ;
18529 bool arg3 = (bool) False ;
18530 wxDateTime *result;
18531 bool temp2 = False ;
18532 PyObject * obj0 = 0 ;
18533 PyObject * obj1 = 0 ;
18534 PyObject * obj2 = 0 ;
18535 char *kwnames[] = {
18536 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18537 };
18538
18539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18542 {
18543 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18544 temp2 = True;
18545 }
18546 if (obj2) {
18547 arg3 = (bool) SWIG_AsBool(obj2);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 {
18551 PyThreadState* __tstate = wxPyBeginAllowThreads();
18552 {
18553 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18554 result = (wxDateTime *) &_result_ref;
18555 }
18556
18557 wxPyEndAllowThreads(__tstate);
18558 if (PyErr_Occurred()) SWIG_fail;
18559 }
18560 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18561 {
18562 if (temp2) delete arg2;
18563 }
18564 return resultobj;
18565 fail:
18566 {
18567 if (temp2) delete arg2;
18568 }
18569 return NULL;
18570 }
18571
18572
18573 static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
18574 PyObject *resultobj;
18575 wxDateTime *arg1 = (wxDateTime *) 0 ;
18576 bool arg2 = (bool) False ;
18577 wxDateTime result;
18578 PyObject * obj0 = 0 ;
18579 PyObject * obj1 = 0 ;
18580 char *kwnames[] = {
18581 (char *) "self",(char *) "noDST", NULL
18582 };
18583
18584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18587 if (obj1) {
18588 arg2 = (bool) SWIG_AsBool(obj1);
18589 if (PyErr_Occurred()) SWIG_fail;
18590 }
18591 {
18592 PyThreadState* __tstate = wxPyBeginAllowThreads();
18593 result = (arg1)->ToGMT(arg2);
18594
18595 wxPyEndAllowThreads(__tstate);
18596 if (PyErr_Occurred()) SWIG_fail;
18597 }
18598 {
18599 wxDateTime * resultptr;
18600 resultptr = new wxDateTime((wxDateTime &) result);
18601 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18602 }
18603 return resultobj;
18604 fail:
18605 return NULL;
18606 }
18607
18608
18609 static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
18610 PyObject *resultobj;
18611 wxDateTime *arg1 = (wxDateTime *) 0 ;
18612 bool arg2 = (bool) False ;
18613 wxDateTime *result;
18614 PyObject * obj0 = 0 ;
18615 PyObject * obj1 = 0 ;
18616 char *kwnames[] = {
18617 (char *) "self",(char *) "noDST", NULL
18618 };
18619
18620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18623 if (obj1) {
18624 arg2 = (bool) SWIG_AsBool(obj1);
18625 if (PyErr_Occurred()) SWIG_fail;
18626 }
18627 {
18628 PyThreadState* __tstate = wxPyBeginAllowThreads();
18629 {
18630 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18631 result = (wxDateTime *) &_result_ref;
18632 }
18633
18634 wxPyEndAllowThreads(__tstate);
18635 if (PyErr_Occurred()) SWIG_fail;
18636 }
18637 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18638 return resultobj;
18639 fail:
18640 return NULL;
18641 }
18642
18643
18644 static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
18645 PyObject *resultobj;
18646 wxDateTime *arg1 = (wxDateTime *) 0 ;
18647 int arg2 = (int) wxDateTime::Country_Default ;
18648 int result;
18649 PyObject * obj0 = 0 ;
18650 PyObject * obj1 = 0 ;
18651 char *kwnames[] = {
18652 (char *) "self",(char *) "country", NULL
18653 };
18654
18655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18658 if (obj1) {
18659 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18660 if (PyErr_Occurred()) SWIG_fail;
18661 }
18662 {
18663 PyThreadState* __tstate = wxPyBeginAllowThreads();
18664 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18665
18666 wxPyEndAllowThreads(__tstate);
18667 if (PyErr_Occurred()) SWIG_fail;
18668 }
18669 resultobj = SWIG_FromInt((int)result);
18670 return resultobj;
18671 fail:
18672 return NULL;
18673 }
18674
18675
18676 static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
18677 PyObject *resultobj;
18678 wxDateTime *arg1 = (wxDateTime *) 0 ;
18679 bool result;
18680 PyObject * obj0 = 0 ;
18681 char *kwnames[] = {
18682 (char *) "self", NULL
18683 };
18684
18685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18688 {
18689 PyThreadState* __tstate = wxPyBeginAllowThreads();
18690 result = (bool)((wxDateTime const *)arg1)->IsValid();
18691
18692 wxPyEndAllowThreads(__tstate);
18693 if (PyErr_Occurred()) SWIG_fail;
18694 }
18695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18696 return resultobj;
18697 fail:
18698 return NULL;
18699 }
18700
18701
18702 static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
18703 PyObject *resultobj;
18704 wxDateTime *arg1 = (wxDateTime *) 0 ;
18705 time_t result;
18706 PyObject * obj0 = 0 ;
18707 char *kwnames[] = {
18708 (char *) "self", NULL
18709 };
18710
18711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18714 {
18715 PyThreadState* __tstate = wxPyBeginAllowThreads();
18716 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18717
18718 wxPyEndAllowThreads(__tstate);
18719 if (PyErr_Occurred()) SWIG_fail;
18720 }
18721 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
18722 return resultobj;
18723 fail:
18724 return NULL;
18725 }
18726
18727
18728 static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
18729 PyObject *resultobj;
18730 wxDateTime *arg1 = (wxDateTime *) 0 ;
18731 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18732 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18733 int result;
18734 bool temp2 = False ;
18735 PyObject * obj0 = 0 ;
18736 PyObject * obj1 = 0 ;
18737 char *kwnames[] = {
18738 (char *) "self",(char *) "tz", NULL
18739 };
18740
18741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18744 if (obj1) {
18745 {
18746 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18747 temp2 = True;
18748 }
18749 }
18750 {
18751 PyThreadState* __tstate = wxPyBeginAllowThreads();
18752 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18753
18754 wxPyEndAllowThreads(__tstate);
18755 if (PyErr_Occurred()) SWIG_fail;
18756 }
18757 resultobj = SWIG_FromInt((int)result);
18758 {
18759 if (temp2) delete arg2;
18760 }
18761 return resultobj;
18762 fail:
18763 {
18764 if (temp2) delete arg2;
18765 }
18766 return NULL;
18767 }
18768
18769
18770 static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
18771 PyObject *resultobj;
18772 wxDateTime *arg1 = (wxDateTime *) 0 ;
18773 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18774 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18775 int result;
18776 bool temp2 = False ;
18777 PyObject * obj0 = 0 ;
18778 PyObject * obj1 = 0 ;
18779 char *kwnames[] = {
18780 (char *) "self",(char *) "tz", NULL
18781 };
18782
18783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
18784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18786 if (obj1) {
18787 {
18788 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18789 temp2 = True;
18790 }
18791 }
18792 {
18793 PyThreadState* __tstate = wxPyBeginAllowThreads();
18794 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
18795
18796 wxPyEndAllowThreads(__tstate);
18797 if (PyErr_Occurred()) SWIG_fail;
18798 }
18799 resultobj = SWIG_FromInt((int)result);
18800 {
18801 if (temp2) delete arg2;
18802 }
18803 return resultobj;
18804 fail:
18805 {
18806 if (temp2) delete arg2;
18807 }
18808 return NULL;
18809 }
18810
18811
18812 static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
18813 PyObject *resultobj;
18814 wxDateTime *arg1 = (wxDateTime *) 0 ;
18815 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18816 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18817 int result;
18818 bool temp2 = False ;
18819 PyObject * obj0 = 0 ;
18820 PyObject * obj1 = 0 ;
18821 char *kwnames[] = {
18822 (char *) "self",(char *) "tz", NULL
18823 };
18824
18825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
18826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18828 if (obj1) {
18829 {
18830 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18831 temp2 = True;
18832 }
18833 }
18834 {
18835 PyThreadState* __tstate = wxPyBeginAllowThreads();
18836 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
18837
18838 wxPyEndAllowThreads(__tstate);
18839 if (PyErr_Occurred()) SWIG_fail;
18840 }
18841 resultobj = SWIG_FromInt((int)result);
18842 {
18843 if (temp2) delete arg2;
18844 }
18845 return resultobj;
18846 fail:
18847 {
18848 if (temp2) delete arg2;
18849 }
18850 return NULL;
18851 }
18852
18853
18854 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18855 PyObject *resultobj;
18856 wxDateTime *arg1 = (wxDateTime *) 0 ;
18857 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18858 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18859 int result;
18860 bool temp2 = False ;
18861 PyObject * obj0 = 0 ;
18862 PyObject * obj1 = 0 ;
18863 char *kwnames[] = {
18864 (char *) "self",(char *) "tz", NULL
18865 };
18866
18867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
18868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18870 if (obj1) {
18871 {
18872 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18873 temp2 = True;
18874 }
18875 }
18876 {
18877 PyThreadState* __tstate = wxPyBeginAllowThreads();
18878 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
18879
18880 wxPyEndAllowThreads(__tstate);
18881 if (PyErr_Occurred()) SWIG_fail;
18882 }
18883 resultobj = SWIG_FromInt((int)result);
18884 {
18885 if (temp2) delete arg2;
18886 }
18887 return resultobj;
18888 fail:
18889 {
18890 if (temp2) delete arg2;
18891 }
18892 return NULL;
18893 }
18894
18895
18896 static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
18897 PyObject *resultobj;
18898 wxDateTime *arg1 = (wxDateTime *) 0 ;
18899 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18900 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18901 int result;
18902 bool temp2 = False ;
18903 PyObject * obj0 = 0 ;
18904 PyObject * obj1 = 0 ;
18905 char *kwnames[] = {
18906 (char *) "self",(char *) "tz", NULL
18907 };
18908
18909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
18910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18912 if (obj1) {
18913 {
18914 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18915 temp2 = True;
18916 }
18917 }
18918 {
18919 PyThreadState* __tstate = wxPyBeginAllowThreads();
18920 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
18921
18922 wxPyEndAllowThreads(__tstate);
18923 if (PyErr_Occurred()) SWIG_fail;
18924 }
18925 resultobj = SWIG_FromInt((int)result);
18926 {
18927 if (temp2) delete arg2;
18928 }
18929 return resultobj;
18930 fail:
18931 {
18932 if (temp2) delete arg2;
18933 }
18934 return NULL;
18935 }
18936
18937
18938 static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
18939 PyObject *resultobj;
18940 wxDateTime *arg1 = (wxDateTime *) 0 ;
18941 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18942 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18943 int result;
18944 bool temp2 = False ;
18945 PyObject * obj0 = 0 ;
18946 PyObject * obj1 = 0 ;
18947 char *kwnames[] = {
18948 (char *) "self",(char *) "tz", NULL
18949 };
18950
18951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
18952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18954 if (obj1) {
18955 {
18956 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18957 temp2 = True;
18958 }
18959 }
18960 {
18961 PyThreadState* __tstate = wxPyBeginAllowThreads();
18962 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
18963
18964 wxPyEndAllowThreads(__tstate);
18965 if (PyErr_Occurred()) SWIG_fail;
18966 }
18967 resultobj = SWIG_FromInt((int)result);
18968 {
18969 if (temp2) delete arg2;
18970 }
18971 return resultobj;
18972 fail:
18973 {
18974 if (temp2) delete arg2;
18975 }
18976 return NULL;
18977 }
18978
18979
18980 static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
18981 PyObject *resultobj;
18982 wxDateTime *arg1 = (wxDateTime *) 0 ;
18983 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18984 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18985 int result;
18986 bool temp2 = False ;
18987 PyObject * obj0 = 0 ;
18988 PyObject * obj1 = 0 ;
18989 char *kwnames[] = {
18990 (char *) "self",(char *) "tz", NULL
18991 };
18992
18993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
18994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18996 if (obj1) {
18997 {
18998 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18999 temp2 = True;
19000 }
19001 }
19002 {
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19005
19006 wxPyEndAllowThreads(__tstate);
19007 if (PyErr_Occurred()) SWIG_fail;
19008 }
19009 resultobj = SWIG_FromInt((int)result);
19010 {
19011 if (temp2) delete arg2;
19012 }
19013 return resultobj;
19014 fail:
19015 {
19016 if (temp2) delete arg2;
19017 }
19018 return NULL;
19019 }
19020
19021
19022 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
19023 PyObject *resultobj;
19024 wxDateTime *arg1 = (wxDateTime *) 0 ;
19025 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19026 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19027 int result;
19028 bool temp2 = False ;
19029 PyObject * obj0 = 0 ;
19030 PyObject * obj1 = 0 ;
19031 char *kwnames[] = {
19032 (char *) "self",(char *) "tz", NULL
19033 };
19034
19035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19038 if (obj1) {
19039 {
19040 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19041 temp2 = True;
19042 }
19043 }
19044 {
19045 PyThreadState* __tstate = wxPyBeginAllowThreads();
19046 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19047
19048 wxPyEndAllowThreads(__tstate);
19049 if (PyErr_Occurred()) SWIG_fail;
19050 }
19051 resultobj = SWIG_FromInt((int)result);
19052 {
19053 if (temp2) delete arg2;
19054 }
19055 return resultobj;
19056 fail:
19057 {
19058 if (temp2) delete arg2;
19059 }
19060 return NULL;
19061 }
19062
19063
19064 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19065 PyObject *resultobj;
19066 wxDateTime *arg1 = (wxDateTime *) 0 ;
19067 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19068 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19069 int result;
19070 bool temp2 = False ;
19071 PyObject * obj0 = 0 ;
19072 PyObject * obj1 = 0 ;
19073 char *kwnames[] = {
19074 (char *) "self",(char *) "tz", NULL
19075 };
19076
19077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19080 if (obj1) {
19081 {
19082 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19083 temp2 = True;
19084 }
19085 }
19086 {
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19089
19090 wxPyEndAllowThreads(__tstate);
19091 if (PyErr_Occurred()) SWIG_fail;
19092 }
19093 resultobj = SWIG_FromInt((int)result);
19094 {
19095 if (temp2) delete arg2;
19096 }
19097 return resultobj;
19098 fail:
19099 {
19100 if (temp2) delete arg2;
19101 }
19102 return NULL;
19103 }
19104
19105
19106 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19107 PyObject *resultobj;
19108 wxDateTime *arg1 = (wxDateTime *) 0 ;
19109 int arg2 = (int) wxDateTime::Monday_First ;
19110 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19111 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19112 int result;
19113 bool temp3 = False ;
19114 PyObject * obj0 = 0 ;
19115 PyObject * obj1 = 0 ;
19116 PyObject * obj2 = 0 ;
19117 char *kwnames[] = {
19118 (char *) "self",(char *) "flags",(char *) "tz", NULL
19119 };
19120
19121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19124 if (obj1) {
19125 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19126 if (PyErr_Occurred()) SWIG_fail;
19127 }
19128 if (obj2) {
19129 {
19130 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19131 temp3 = True;
19132 }
19133 }
19134 {
19135 PyThreadState* __tstate = wxPyBeginAllowThreads();
19136 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19137
19138 wxPyEndAllowThreads(__tstate);
19139 if (PyErr_Occurred()) SWIG_fail;
19140 }
19141 resultobj = SWIG_FromInt((int)result);
19142 {
19143 if (temp3) delete arg3;
19144 }
19145 return resultobj;
19146 fail:
19147 {
19148 if (temp3) delete arg3;
19149 }
19150 return NULL;
19151 }
19152
19153
19154 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
19155 PyObject *resultobj;
19156 wxDateTime *arg1 = (wxDateTime *) 0 ;
19157 int arg2 = (int) wxDateTime::Monday_First ;
19158 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19159 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19160 int result;
19161 bool temp3 = False ;
19162 PyObject * obj0 = 0 ;
19163 PyObject * obj1 = 0 ;
19164 PyObject * obj2 = 0 ;
19165 char *kwnames[] = {
19166 (char *) "self",(char *) "flags",(char *) "tz", NULL
19167 };
19168
19169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19172 if (obj1) {
19173 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19174 if (PyErr_Occurred()) SWIG_fail;
19175 }
19176 if (obj2) {
19177 {
19178 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19179 temp3 = True;
19180 }
19181 }
19182 {
19183 PyThreadState* __tstate = wxPyBeginAllowThreads();
19184 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19185
19186 wxPyEndAllowThreads(__tstate);
19187 if (PyErr_Occurred()) SWIG_fail;
19188 }
19189 resultobj = SWIG_FromInt((int)result);
19190 {
19191 if (temp3) delete arg3;
19192 }
19193 return resultobj;
19194 fail:
19195 {
19196 if (temp3) delete arg3;
19197 }
19198 return NULL;
19199 }
19200
19201
19202 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
19203 PyObject *resultobj;
19204 wxDateTime *arg1 = (wxDateTime *) 0 ;
19205 int arg2 = (int) wxDateTime::Country_Default ;
19206 bool result;
19207 PyObject * obj0 = 0 ;
19208 PyObject * obj1 = 0 ;
19209 char *kwnames[] = {
19210 (char *) "self",(char *) "country", NULL
19211 };
19212
19213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19216 if (obj1) {
19217 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19218 if (PyErr_Occurred()) SWIG_fail;
19219 }
19220 {
19221 PyThreadState* __tstate = wxPyBeginAllowThreads();
19222 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19223
19224 wxPyEndAllowThreads(__tstate);
19225 if (PyErr_Occurred()) SWIG_fail;
19226 }
19227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19228 return resultobj;
19229 fail:
19230 return NULL;
19231 }
19232
19233
19234 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
19235 PyObject *resultobj;
19236 wxDateTime *arg1 = (wxDateTime *) 0 ;
19237 wxDateTime *arg2 = 0 ;
19238 bool result;
19239 PyObject * obj0 = 0 ;
19240 PyObject * obj1 = 0 ;
19241 char *kwnames[] = {
19242 (char *) "self",(char *) "datetime", NULL
19243 };
19244
19245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19248 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19249 SWIG_POINTER_EXCEPTION | 0)) == -1)
19250 SWIG_fail;
19251 if (arg2 == NULL) {
19252 PyErr_SetString(PyExc_TypeError,"null reference");
19253 SWIG_fail;
19254 }
19255 {
19256 PyThreadState* __tstate = wxPyBeginAllowThreads();
19257 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19258
19259 wxPyEndAllowThreads(__tstate);
19260 if (PyErr_Occurred()) SWIG_fail;
19261 }
19262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19263 return resultobj;
19264 fail:
19265 return NULL;
19266 }
19267
19268
19269 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
19270 PyObject *resultobj;
19271 wxDateTime *arg1 = (wxDateTime *) 0 ;
19272 wxDateTime *arg2 = 0 ;
19273 bool result;
19274 PyObject * obj0 = 0 ;
19275 PyObject * obj1 = 0 ;
19276 char *kwnames[] = {
19277 (char *) "self",(char *) "datetime", NULL
19278 };
19279
19280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19283 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19284 SWIG_POINTER_EXCEPTION | 0)) == -1)
19285 SWIG_fail;
19286 if (arg2 == NULL) {
19287 PyErr_SetString(PyExc_TypeError,"null reference");
19288 SWIG_fail;
19289 }
19290 {
19291 PyThreadState* __tstate = wxPyBeginAllowThreads();
19292 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19293
19294 wxPyEndAllowThreads(__tstate);
19295 if (PyErr_Occurred()) SWIG_fail;
19296 }
19297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19298 return resultobj;
19299 fail:
19300 return NULL;
19301 }
19302
19303
19304 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
19305 PyObject *resultobj;
19306 wxDateTime *arg1 = (wxDateTime *) 0 ;
19307 wxDateTime *arg2 = 0 ;
19308 bool result;
19309 PyObject * obj0 = 0 ;
19310 PyObject * obj1 = 0 ;
19311 char *kwnames[] = {
19312 (char *) "self",(char *) "datetime", NULL
19313 };
19314
19315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19318 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19319 SWIG_POINTER_EXCEPTION | 0)) == -1)
19320 SWIG_fail;
19321 if (arg2 == NULL) {
19322 PyErr_SetString(PyExc_TypeError,"null reference");
19323 SWIG_fail;
19324 }
19325 {
19326 PyThreadState* __tstate = wxPyBeginAllowThreads();
19327 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19328
19329 wxPyEndAllowThreads(__tstate);
19330 if (PyErr_Occurred()) SWIG_fail;
19331 }
19332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19333 return resultobj;
19334 fail:
19335 return NULL;
19336 }
19337
19338
19339 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
19340 PyObject *resultobj;
19341 wxDateTime *arg1 = (wxDateTime *) 0 ;
19342 wxDateTime *arg2 = 0 ;
19343 wxDateTime *arg3 = 0 ;
19344 bool result;
19345 PyObject * obj0 = 0 ;
19346 PyObject * obj1 = 0 ;
19347 PyObject * obj2 = 0 ;
19348 char *kwnames[] = {
19349 (char *) "self",(char *) "t1",(char *) "t2", NULL
19350 };
19351
19352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19355 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19356 SWIG_POINTER_EXCEPTION | 0)) == -1)
19357 SWIG_fail;
19358 if (arg2 == NULL) {
19359 PyErr_SetString(PyExc_TypeError,"null reference");
19360 SWIG_fail;
19361 }
19362 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19363 SWIG_POINTER_EXCEPTION | 0)) == -1)
19364 SWIG_fail;
19365 if (arg3 == NULL) {
19366 PyErr_SetString(PyExc_TypeError,"null reference");
19367 SWIG_fail;
19368 }
19369 {
19370 PyThreadState* __tstate = wxPyBeginAllowThreads();
19371 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19372
19373 wxPyEndAllowThreads(__tstate);
19374 if (PyErr_Occurred()) SWIG_fail;
19375 }
19376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19377 return resultobj;
19378 fail:
19379 return NULL;
19380 }
19381
19382
19383 static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
19384 PyObject *resultobj;
19385 wxDateTime *arg1 = (wxDateTime *) 0 ;
19386 wxDateTime *arg2 = 0 ;
19387 wxDateTime *arg3 = 0 ;
19388 bool result;
19389 PyObject * obj0 = 0 ;
19390 PyObject * obj1 = 0 ;
19391 PyObject * obj2 = 0 ;
19392 char *kwnames[] = {
19393 (char *) "self",(char *) "t1",(char *) "t2", NULL
19394 };
19395
19396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19400 SWIG_POINTER_EXCEPTION | 0)) == -1)
19401 SWIG_fail;
19402 if (arg2 == NULL) {
19403 PyErr_SetString(PyExc_TypeError,"null reference");
19404 SWIG_fail;
19405 }
19406 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19407 SWIG_POINTER_EXCEPTION | 0)) == -1)
19408 SWIG_fail;
19409 if (arg3 == NULL) {
19410 PyErr_SetString(PyExc_TypeError,"null reference");
19411 SWIG_fail;
19412 }
19413 {
19414 PyThreadState* __tstate = wxPyBeginAllowThreads();
19415 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19416
19417 wxPyEndAllowThreads(__tstate);
19418 if (PyErr_Occurred()) SWIG_fail;
19419 }
19420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19421 return resultobj;
19422 fail:
19423 return NULL;
19424 }
19425
19426
19427 static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
19428 PyObject *resultobj;
19429 wxDateTime *arg1 = (wxDateTime *) 0 ;
19430 wxDateTime *arg2 = 0 ;
19431 bool result;
19432 PyObject * obj0 = 0 ;
19433 PyObject * obj1 = 0 ;
19434 char *kwnames[] = {
19435 (char *) "self",(char *) "dt", NULL
19436 };
19437
19438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19441 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19442 SWIG_POINTER_EXCEPTION | 0)) == -1)
19443 SWIG_fail;
19444 if (arg2 == NULL) {
19445 PyErr_SetString(PyExc_TypeError,"null reference");
19446 SWIG_fail;
19447 }
19448 {
19449 PyThreadState* __tstate = wxPyBeginAllowThreads();
19450 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19451
19452 wxPyEndAllowThreads(__tstate);
19453 if (PyErr_Occurred()) SWIG_fail;
19454 }
19455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19456 return resultobj;
19457 fail:
19458 return NULL;
19459 }
19460
19461
19462 static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
19463 PyObject *resultobj;
19464 wxDateTime *arg1 = (wxDateTime *) 0 ;
19465 wxDateTime *arg2 = 0 ;
19466 bool result;
19467 PyObject * obj0 = 0 ;
19468 PyObject * obj1 = 0 ;
19469 char *kwnames[] = {
19470 (char *) "self",(char *) "dt", NULL
19471 };
19472
19473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19476 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19477 SWIG_POINTER_EXCEPTION | 0)) == -1)
19478 SWIG_fail;
19479 if (arg2 == NULL) {
19480 PyErr_SetString(PyExc_TypeError,"null reference");
19481 SWIG_fail;
19482 }
19483 {
19484 PyThreadState* __tstate = wxPyBeginAllowThreads();
19485 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19486
19487 wxPyEndAllowThreads(__tstate);
19488 if (PyErr_Occurred()) SWIG_fail;
19489 }
19490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19491 return resultobj;
19492 fail:
19493 return NULL;
19494 }
19495
19496
19497 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
19498 PyObject *resultobj;
19499 wxDateTime *arg1 = (wxDateTime *) 0 ;
19500 wxDateTime *arg2 = 0 ;
19501 wxTimeSpan *arg3 = 0 ;
19502 bool result;
19503 PyObject * obj0 = 0 ;
19504 PyObject * obj1 = 0 ;
19505 PyObject * obj2 = 0 ;
19506 char *kwnames[] = {
19507 (char *) "self",(char *) "dt",(char *) "ts", NULL
19508 };
19509
19510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19513 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19514 SWIG_POINTER_EXCEPTION | 0)) == -1)
19515 SWIG_fail;
19516 if (arg2 == NULL) {
19517 PyErr_SetString(PyExc_TypeError,"null reference");
19518 SWIG_fail;
19519 }
19520 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19521 SWIG_POINTER_EXCEPTION | 0)) == -1)
19522 SWIG_fail;
19523 if (arg3 == NULL) {
19524 PyErr_SetString(PyExc_TypeError,"null reference");
19525 SWIG_fail;
19526 }
19527 {
19528 PyThreadState* __tstate = wxPyBeginAllowThreads();
19529 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19530
19531 wxPyEndAllowThreads(__tstate);
19532 if (PyErr_Occurred()) SWIG_fail;
19533 }
19534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19535 return resultobj;
19536 fail:
19537 return NULL;
19538 }
19539
19540
19541 static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
19542 PyObject *resultobj;
19543 wxDateTime *arg1 = (wxDateTime *) 0 ;
19544 wxTimeSpan *arg2 = 0 ;
19545 wxDateTime *result;
19546 PyObject * obj0 = 0 ;
19547 PyObject * obj1 = 0 ;
19548 char *kwnames[] = {
19549 (char *) "self",(char *) "diff", NULL
19550 };
19551
19552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19555 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19556 SWIG_POINTER_EXCEPTION | 0)) == -1)
19557 SWIG_fail;
19558 if (arg2 == NULL) {
19559 PyErr_SetString(PyExc_TypeError,"null reference");
19560 SWIG_fail;
19561 }
19562 {
19563 PyThreadState* __tstate = wxPyBeginAllowThreads();
19564 {
19565 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19566 result = (wxDateTime *) &_result_ref;
19567 }
19568
19569 wxPyEndAllowThreads(__tstate);
19570 if (PyErr_Occurred()) SWIG_fail;
19571 }
19572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19573 return resultobj;
19574 fail:
19575 return NULL;
19576 }
19577
19578
19579 static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
19580 PyObject *resultobj;
19581 wxDateTime *arg1 = (wxDateTime *) 0 ;
19582 wxDateSpan *arg2 = 0 ;
19583 wxDateTime *result;
19584 PyObject * obj0 = 0 ;
19585 PyObject * obj1 = 0 ;
19586 char *kwnames[] = {
19587 (char *) "self",(char *) "diff", NULL
19588 };
19589
19590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19593 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19594 SWIG_POINTER_EXCEPTION | 0)) == -1)
19595 SWIG_fail;
19596 if (arg2 == NULL) {
19597 PyErr_SetString(PyExc_TypeError,"null reference");
19598 SWIG_fail;
19599 }
19600 {
19601 PyThreadState* __tstate = wxPyBeginAllowThreads();
19602 {
19603 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19604 result = (wxDateTime *) &_result_ref;
19605 }
19606
19607 wxPyEndAllowThreads(__tstate);
19608 if (PyErr_Occurred()) SWIG_fail;
19609 }
19610 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19611 return resultobj;
19612 fail:
19613 return NULL;
19614 }
19615
19616
19617 static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
19618 PyObject *resultobj;
19619 wxDateTime *arg1 = (wxDateTime *) 0 ;
19620 wxTimeSpan *arg2 = 0 ;
19621 wxDateTime *result;
19622 PyObject * obj0 = 0 ;
19623 PyObject * obj1 = 0 ;
19624 char *kwnames[] = {
19625 (char *) "self",(char *) "diff", NULL
19626 };
19627
19628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19632 SWIG_POINTER_EXCEPTION | 0)) == -1)
19633 SWIG_fail;
19634 if (arg2 == NULL) {
19635 PyErr_SetString(PyExc_TypeError,"null reference");
19636 SWIG_fail;
19637 }
19638 {
19639 PyThreadState* __tstate = wxPyBeginAllowThreads();
19640 {
19641 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19642 result = (wxDateTime *) &_result_ref;
19643 }
19644
19645 wxPyEndAllowThreads(__tstate);
19646 if (PyErr_Occurred()) SWIG_fail;
19647 }
19648 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19649 return resultobj;
19650 fail:
19651 return NULL;
19652 }
19653
19654
19655 static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
19656 PyObject *resultobj;
19657 wxDateTime *arg1 = (wxDateTime *) 0 ;
19658 wxDateSpan *arg2 = 0 ;
19659 wxDateTime *result;
19660 PyObject * obj0 = 0 ;
19661 PyObject * obj1 = 0 ;
19662 char *kwnames[] = {
19663 (char *) "self",(char *) "diff", NULL
19664 };
19665
19666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19669 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19670 SWIG_POINTER_EXCEPTION | 0)) == -1)
19671 SWIG_fail;
19672 if (arg2 == NULL) {
19673 PyErr_SetString(PyExc_TypeError,"null reference");
19674 SWIG_fail;
19675 }
19676 {
19677 PyThreadState* __tstate = wxPyBeginAllowThreads();
19678 {
19679 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19680 result = (wxDateTime *) &_result_ref;
19681 }
19682
19683 wxPyEndAllowThreads(__tstate);
19684 if (PyErr_Occurred()) SWIG_fail;
19685 }
19686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19687 return resultobj;
19688 fail:
19689 return NULL;
19690 }
19691
19692
19693 static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
19694 PyObject *resultobj;
19695 wxDateTime *arg1 = (wxDateTime *) 0 ;
19696 wxDateTime *arg2 = 0 ;
19697 wxTimeSpan result;
19698 PyObject * obj0 = 0 ;
19699 PyObject * obj1 = 0 ;
19700 char *kwnames[] = {
19701 (char *) "self",(char *) "dt", NULL
19702 };
19703
19704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19707 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19708 SWIG_POINTER_EXCEPTION | 0)) == -1)
19709 SWIG_fail;
19710 if (arg2 == NULL) {
19711 PyErr_SetString(PyExc_TypeError,"null reference");
19712 SWIG_fail;
19713 }
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19717
19718 wxPyEndAllowThreads(__tstate);
19719 if (PyErr_Occurred()) SWIG_fail;
19720 }
19721 {
19722 wxTimeSpan * resultptr;
19723 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19724 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
19725 }
19726 return resultobj;
19727 fail:
19728 return NULL;
19729 }
19730
19731
19732 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
19733 PyObject *resultobj;
19734 wxDateTime *arg1 = (wxDateTime *) 0 ;
19735 wxTimeSpan *arg2 = 0 ;
19736 wxDateTime *result;
19737 PyObject * obj0 = 0 ;
19738 PyObject * obj1 = 0 ;
19739
19740 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19743 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19744 SWIG_POINTER_EXCEPTION | 0)) == -1)
19745 SWIG_fail;
19746 if (arg2 == NULL) {
19747 PyErr_SetString(PyExc_TypeError,"null reference");
19748 SWIG_fail;
19749 }
19750 {
19751 PyThreadState* __tstate = wxPyBeginAllowThreads();
19752 {
19753 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19754 result = (wxDateTime *) &_result_ref;
19755 }
19756
19757 wxPyEndAllowThreads(__tstate);
19758 if (PyErr_Occurred()) SWIG_fail;
19759 }
19760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19761 return resultobj;
19762 fail:
19763 return NULL;
19764 }
19765
19766
19767 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
19768 PyObject *resultobj;
19769 wxDateTime *arg1 = (wxDateTime *) 0 ;
19770 wxDateSpan *arg2 = 0 ;
19771 wxDateTime *result;
19772 PyObject * obj0 = 0 ;
19773 PyObject * obj1 = 0 ;
19774
19775 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19778 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19779 SWIG_POINTER_EXCEPTION | 0)) == -1)
19780 SWIG_fail;
19781 if (arg2 == NULL) {
19782 PyErr_SetString(PyExc_TypeError,"null reference");
19783 SWIG_fail;
19784 }
19785 {
19786 PyThreadState* __tstate = wxPyBeginAllowThreads();
19787 {
19788 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
19789 result = (wxDateTime *) &_result_ref;
19790 }
19791
19792 wxPyEndAllowThreads(__tstate);
19793 if (PyErr_Occurred()) SWIG_fail;
19794 }
19795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19796 return resultobj;
19797 fail:
19798 return NULL;
19799 }
19800
19801
19802 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
19803 int argc;
19804 PyObject *argv[3];
19805 int ii;
19806
19807 argc = PyObject_Length(args);
19808 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19809 argv[ii] = PyTuple_GetItem(args,ii);
19810 }
19811 if (argc == 2) {
19812 int _v;
19813 {
19814 void *ptr;
19815 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19816 _v = 0;
19817 PyErr_Clear();
19818 } else {
19819 _v = 1;
19820 }
19821 }
19822 if (_v) {
19823 {
19824 void *ptr;
19825 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
19826 _v = 0;
19827 PyErr_Clear();
19828 } else {
19829 _v = 1;
19830 }
19831 }
19832 if (_v) {
19833 return _wrap_DateTime___iadd____SWIG_0(self,args);
19834 }
19835 }
19836 }
19837 if (argc == 2) {
19838 int _v;
19839 {
19840 void *ptr;
19841 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19842 _v = 0;
19843 PyErr_Clear();
19844 } else {
19845 _v = 1;
19846 }
19847 }
19848 if (_v) {
19849 {
19850 void *ptr;
19851 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
19852 _v = 0;
19853 PyErr_Clear();
19854 } else {
19855 _v = 1;
19856 }
19857 }
19858 if (_v) {
19859 return _wrap_DateTime___iadd____SWIG_1(self,args);
19860 }
19861 }
19862 }
19863
19864 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
19865 return NULL;
19866 }
19867
19868
19869 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
19870 PyObject *resultobj;
19871 wxDateTime *arg1 = (wxDateTime *) 0 ;
19872 wxTimeSpan *arg2 = 0 ;
19873 wxDateTime *result;
19874 PyObject * obj0 = 0 ;
19875 PyObject * obj1 = 0 ;
19876
19877 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
19878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19881 SWIG_POINTER_EXCEPTION | 0)) == -1)
19882 SWIG_fail;
19883 if (arg2 == NULL) {
19884 PyErr_SetString(PyExc_TypeError,"null reference");
19885 SWIG_fail;
19886 }
19887 {
19888 PyThreadState* __tstate = wxPyBeginAllowThreads();
19889 {
19890 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
19891 result = (wxDateTime *) &_result_ref;
19892 }
19893
19894 wxPyEndAllowThreads(__tstate);
19895 if (PyErr_Occurred()) SWIG_fail;
19896 }
19897 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19898 return resultobj;
19899 fail:
19900 return NULL;
19901 }
19902
19903
19904 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
19905 PyObject *resultobj;
19906 wxDateTime *arg1 = (wxDateTime *) 0 ;
19907 wxDateSpan *arg2 = 0 ;
19908 wxDateTime *result;
19909 PyObject * obj0 = 0 ;
19910 PyObject * obj1 = 0 ;
19911
19912 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
19913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19916 SWIG_POINTER_EXCEPTION | 0)) == -1)
19917 SWIG_fail;
19918 if (arg2 == NULL) {
19919 PyErr_SetString(PyExc_TypeError,"null reference");
19920 SWIG_fail;
19921 }
19922 {
19923 PyThreadState* __tstate = wxPyBeginAllowThreads();
19924 {
19925 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
19926 result = (wxDateTime *) &_result_ref;
19927 }
19928
19929 wxPyEndAllowThreads(__tstate);
19930 if (PyErr_Occurred()) SWIG_fail;
19931 }
19932 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19933 return resultobj;
19934 fail:
19935 return NULL;
19936 }
19937
19938
19939 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
19940 int argc;
19941 PyObject *argv[3];
19942 int ii;
19943
19944 argc = PyObject_Length(args);
19945 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19946 argv[ii] = PyTuple_GetItem(args,ii);
19947 }
19948 if (argc == 2) {
19949 int _v;
19950 {
19951 void *ptr;
19952 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19953 _v = 0;
19954 PyErr_Clear();
19955 } else {
19956 _v = 1;
19957 }
19958 }
19959 if (_v) {
19960 {
19961 void *ptr;
19962 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
19963 _v = 0;
19964 PyErr_Clear();
19965 } else {
19966 _v = 1;
19967 }
19968 }
19969 if (_v) {
19970 return _wrap_DateTime___isub____SWIG_0(self,args);
19971 }
19972 }
19973 }
19974 if (argc == 2) {
19975 int _v;
19976 {
19977 void *ptr;
19978 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19979 _v = 0;
19980 PyErr_Clear();
19981 } else {
19982 _v = 1;
19983 }
19984 }
19985 if (_v) {
19986 {
19987 void *ptr;
19988 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
19989 _v = 0;
19990 PyErr_Clear();
19991 } else {
19992 _v = 1;
19993 }
19994 }
19995 if (_v) {
19996 return _wrap_DateTime___isub____SWIG_1(self,args);
19997 }
19998 }
19999 }
20000
20001 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20002 return NULL;
20003 }
20004
20005
20006 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
20007 PyObject *resultobj;
20008 wxDateTime *arg1 = (wxDateTime *) 0 ;
20009 wxTimeSpan *arg2 = 0 ;
20010 wxDateTime result;
20011 PyObject * obj0 = 0 ;
20012 PyObject * obj1 = 0 ;
20013
20014 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20017 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20018 SWIG_POINTER_EXCEPTION | 0)) == -1)
20019 SWIG_fail;
20020 if (arg2 == NULL) {
20021 PyErr_SetString(PyExc_TypeError,"null reference");
20022 SWIG_fail;
20023 }
20024 {
20025 PyThreadState* __tstate = wxPyBeginAllowThreads();
20026 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20027
20028 wxPyEndAllowThreads(__tstate);
20029 if (PyErr_Occurred()) SWIG_fail;
20030 }
20031 {
20032 wxDateTime * resultptr;
20033 resultptr = new wxDateTime((wxDateTime &) result);
20034 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20035 }
20036 return resultobj;
20037 fail:
20038 return NULL;
20039 }
20040
20041
20042 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
20043 PyObject *resultobj;
20044 wxDateTime *arg1 = (wxDateTime *) 0 ;
20045 wxDateSpan *arg2 = 0 ;
20046 wxDateTime result;
20047 PyObject * obj0 = 0 ;
20048 PyObject * obj1 = 0 ;
20049
20050 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&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_wxDateSpan,
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___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20063
20064 wxPyEndAllowThreads(__tstate);
20065 if (PyErr_Occurred()) SWIG_fail;
20066 }
20067 {
20068 wxDateTime * resultptr;
20069 resultptr = new wxDateTime((wxDateTime &) result);
20070 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20071 }
20072 return resultobj;
20073 fail:
20074 return NULL;
20075 }
20076
20077
20078 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20079 int argc;
20080 PyObject *argv[3];
20081 int ii;
20082
20083 argc = PyObject_Length(args);
20084 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20085 argv[ii] = PyTuple_GetItem(args,ii);
20086 }
20087 if (argc == 2) {
20088 int _v;
20089 {
20090 void *ptr;
20091 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20092 _v = 0;
20093 PyErr_Clear();
20094 } else {
20095 _v = 1;
20096 }
20097 }
20098 if (_v) {
20099 {
20100 void *ptr;
20101 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20102 _v = 0;
20103 PyErr_Clear();
20104 } else {
20105 _v = 1;
20106 }
20107 }
20108 if (_v) {
20109 return _wrap_DateTime___add____SWIG_0(self,args);
20110 }
20111 }
20112 }
20113 if (argc == 2) {
20114 int _v;
20115 {
20116 void *ptr;
20117 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20118 _v = 0;
20119 PyErr_Clear();
20120 } else {
20121 _v = 1;
20122 }
20123 }
20124 if (_v) {
20125 {
20126 void *ptr;
20127 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20128 _v = 0;
20129 PyErr_Clear();
20130 } else {
20131 _v = 1;
20132 }
20133 }
20134 if (_v) {
20135 return _wrap_DateTime___add____SWIG_1(self,args);
20136 }
20137 }
20138 }
20139
20140 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20141 return NULL;
20142 }
20143
20144
20145 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
20146 PyObject *resultobj;
20147 wxDateTime *arg1 = (wxDateTime *) 0 ;
20148 wxDateTime *arg2 = 0 ;
20149 wxTimeSpan result;
20150 PyObject * obj0 = 0 ;
20151 PyObject * obj1 = 0 ;
20152
20153 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20156 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20157 SWIG_POINTER_EXCEPTION | 0)) == -1)
20158 SWIG_fail;
20159 if (arg2 == NULL) {
20160 PyErr_SetString(PyExc_TypeError,"null reference");
20161 SWIG_fail;
20162 }
20163 {
20164 PyThreadState* __tstate = wxPyBeginAllowThreads();
20165 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20166
20167 wxPyEndAllowThreads(__tstate);
20168 if (PyErr_Occurred()) SWIG_fail;
20169 }
20170 {
20171 wxTimeSpan * resultptr;
20172 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20173 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20174 }
20175 return resultobj;
20176 fail:
20177 return NULL;
20178 }
20179
20180
20181 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
20182 PyObject *resultobj;
20183 wxDateTime *arg1 = (wxDateTime *) 0 ;
20184 wxTimeSpan *arg2 = 0 ;
20185 wxDateTime result;
20186 PyObject * obj0 = 0 ;
20187 PyObject * obj1 = 0 ;
20188
20189 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20192 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20193 SWIG_POINTER_EXCEPTION | 0)) == -1)
20194 SWIG_fail;
20195 if (arg2 == NULL) {
20196 PyErr_SetString(PyExc_TypeError,"null reference");
20197 SWIG_fail;
20198 }
20199 {
20200 PyThreadState* __tstate = wxPyBeginAllowThreads();
20201 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20202
20203 wxPyEndAllowThreads(__tstate);
20204 if (PyErr_Occurred()) SWIG_fail;
20205 }
20206 {
20207 wxDateTime * resultptr;
20208 resultptr = new wxDateTime((wxDateTime &) result);
20209 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20210 }
20211 return resultobj;
20212 fail:
20213 return NULL;
20214 }
20215
20216
20217 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
20218 PyObject *resultobj;
20219 wxDateTime *arg1 = (wxDateTime *) 0 ;
20220 wxDateSpan *arg2 = 0 ;
20221 wxDateTime result;
20222 PyObject * obj0 = 0 ;
20223 PyObject * obj1 = 0 ;
20224
20225 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20228 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20229 SWIG_POINTER_EXCEPTION | 0)) == -1)
20230 SWIG_fail;
20231 if (arg2 == NULL) {
20232 PyErr_SetString(PyExc_TypeError,"null reference");
20233 SWIG_fail;
20234 }
20235 {
20236 PyThreadState* __tstate = wxPyBeginAllowThreads();
20237 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20238
20239 wxPyEndAllowThreads(__tstate);
20240 if (PyErr_Occurred()) SWIG_fail;
20241 }
20242 {
20243 wxDateTime * resultptr;
20244 resultptr = new wxDateTime((wxDateTime &) result);
20245 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20246 }
20247 return resultobj;
20248 fail:
20249 return NULL;
20250 }
20251
20252
20253 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20254 int argc;
20255 PyObject *argv[3];
20256 int ii;
20257
20258 argc = PyObject_Length(args);
20259 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20260 argv[ii] = PyTuple_GetItem(args,ii);
20261 }
20262 if (argc == 2) {
20263 int _v;
20264 {
20265 void *ptr;
20266 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20267 _v = 0;
20268 PyErr_Clear();
20269 } else {
20270 _v = 1;
20271 }
20272 }
20273 if (_v) {
20274 {
20275 void *ptr;
20276 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20277 _v = 0;
20278 PyErr_Clear();
20279 } else {
20280 _v = 1;
20281 }
20282 }
20283 if (_v) {
20284 return _wrap_DateTime___sub____SWIG_0(self,args);
20285 }
20286 }
20287 }
20288 if (argc == 2) {
20289 int _v;
20290 {
20291 void *ptr;
20292 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20293 _v = 0;
20294 PyErr_Clear();
20295 } else {
20296 _v = 1;
20297 }
20298 }
20299 if (_v) {
20300 {
20301 void *ptr;
20302 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20303 _v = 0;
20304 PyErr_Clear();
20305 } else {
20306 _v = 1;
20307 }
20308 }
20309 if (_v) {
20310 return _wrap_DateTime___sub____SWIG_1(self,args);
20311 }
20312 }
20313 }
20314 if (argc == 2) {
20315 int _v;
20316 {
20317 void *ptr;
20318 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20319 _v = 0;
20320 PyErr_Clear();
20321 } else {
20322 _v = 1;
20323 }
20324 }
20325 if (_v) {
20326 {
20327 void *ptr;
20328 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20329 _v = 0;
20330 PyErr_Clear();
20331 } else {
20332 _v = 1;
20333 }
20334 }
20335 if (_v) {
20336 return _wrap_DateTime___sub____SWIG_2(self,args);
20337 }
20338 }
20339 }
20340
20341 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20342 return NULL;
20343 }
20344
20345
20346 static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) {
20347 PyObject *resultobj;
20348 wxDateTime *arg1 = (wxDateTime *) 0 ;
20349 wxDateTime *arg2 = (wxDateTime *) 0 ;
20350 bool result;
20351 PyObject * obj0 = 0 ;
20352 PyObject * obj1 = 0 ;
20353
20354 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20359 {
20360 PyThreadState* __tstate = wxPyBeginAllowThreads();
20361 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20362
20363 wxPyEndAllowThreads(__tstate);
20364 if (PyErr_Occurred()) SWIG_fail;
20365 }
20366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20367 return resultobj;
20368 fail:
20369 return NULL;
20370 }
20371
20372
20373 static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) {
20374 PyObject *resultobj;
20375 wxDateTime *arg1 = (wxDateTime *) 0 ;
20376 wxDateTime *arg2 = (wxDateTime *) 0 ;
20377 bool result;
20378 PyObject * obj0 = 0 ;
20379 PyObject * obj1 = 0 ;
20380
20381 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20384 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20386 {
20387 PyThreadState* __tstate = wxPyBeginAllowThreads();
20388 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20389
20390 wxPyEndAllowThreads(__tstate);
20391 if (PyErr_Occurred()) SWIG_fail;
20392 }
20393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20394 return resultobj;
20395 fail:
20396 return NULL;
20397 }
20398
20399
20400 static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) {
20401 PyObject *resultobj;
20402 wxDateTime *arg1 = (wxDateTime *) 0 ;
20403 wxDateTime *arg2 = (wxDateTime *) 0 ;
20404 bool result;
20405 PyObject * obj0 = 0 ;
20406 PyObject * obj1 = 0 ;
20407
20408 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20411 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20413 {
20414 PyThreadState* __tstate = wxPyBeginAllowThreads();
20415 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20416
20417 wxPyEndAllowThreads(__tstate);
20418 if (PyErr_Occurred()) SWIG_fail;
20419 }
20420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20421 return resultobj;
20422 fail:
20423 return NULL;
20424 }
20425
20426
20427 static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) {
20428 PyObject *resultobj;
20429 wxDateTime *arg1 = (wxDateTime *) 0 ;
20430 wxDateTime *arg2 = (wxDateTime *) 0 ;
20431 bool result;
20432 PyObject * obj0 = 0 ;
20433 PyObject * obj1 = 0 ;
20434
20435 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20438 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20440 {
20441 PyThreadState* __tstate = wxPyBeginAllowThreads();
20442 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20443
20444 wxPyEndAllowThreads(__tstate);
20445 if (PyErr_Occurred()) SWIG_fail;
20446 }
20447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20448 return resultobj;
20449 fail:
20450 return NULL;
20451 }
20452
20453
20454 static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) {
20455 PyObject *resultobj;
20456 wxDateTime *arg1 = (wxDateTime *) 0 ;
20457 wxDateTime *arg2 = (wxDateTime *) 0 ;
20458 bool result;
20459 PyObject * obj0 = 0 ;
20460 PyObject * obj1 = 0 ;
20461
20462 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20467 {
20468 PyThreadState* __tstate = wxPyBeginAllowThreads();
20469 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20470
20471 wxPyEndAllowThreads(__tstate);
20472 if (PyErr_Occurred()) SWIG_fail;
20473 }
20474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20475 return resultobj;
20476 fail:
20477 return NULL;
20478 }
20479
20480
20481 static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) {
20482 PyObject *resultobj;
20483 wxDateTime *arg1 = (wxDateTime *) 0 ;
20484 wxDateTime *arg2 = (wxDateTime *) 0 ;
20485 bool result;
20486 PyObject * obj0 = 0 ;
20487 PyObject * obj1 = 0 ;
20488
20489 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20492 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20494 {
20495 PyThreadState* __tstate = wxPyBeginAllowThreads();
20496 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20497
20498 wxPyEndAllowThreads(__tstate);
20499 if (PyErr_Occurred()) SWIG_fail;
20500 }
20501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20502 return resultobj;
20503 fail:
20504 return NULL;
20505 }
20506
20507
20508 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
20509 PyObject *resultobj;
20510 wxDateTime *arg1 = (wxDateTime *) 0 ;
20511 wxString *arg2 = 0 ;
20512 int result;
20513 bool temp2 = False ;
20514 PyObject * obj0 = 0 ;
20515 PyObject * obj1 = 0 ;
20516 char *kwnames[] = {
20517 (char *) "self",(char *) "date", NULL
20518 };
20519
20520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20523 {
20524 arg2 = wxString_in_helper(obj1);
20525 if (arg2 == NULL) SWIG_fail;
20526 temp2 = True;
20527 }
20528 {
20529 PyThreadState* __tstate = wxPyBeginAllowThreads();
20530 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20531
20532 wxPyEndAllowThreads(__tstate);
20533 if (PyErr_Occurred()) SWIG_fail;
20534 }
20535 resultobj = SWIG_FromInt((int)result);
20536 {
20537 if (temp2)
20538 delete arg2;
20539 }
20540 return resultobj;
20541 fail:
20542 {
20543 if (temp2)
20544 delete arg2;
20545 }
20546 return NULL;
20547 }
20548
20549
20550 static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
20551 PyObject *resultobj;
20552 wxDateTime *arg1 = (wxDateTime *) 0 ;
20553 wxString *arg2 = 0 ;
20554 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20555 wxString *arg3 = (wxString *) &arg3_defvalue ;
20556 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20557 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20558 int result;
20559 bool temp2 = False ;
20560 bool temp3 = False ;
20561 PyObject * obj0 = 0 ;
20562 PyObject * obj1 = 0 ;
20563 PyObject * obj2 = 0 ;
20564 PyObject * obj3 = 0 ;
20565 char *kwnames[] = {
20566 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20567 };
20568
20569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20572 {
20573 arg2 = wxString_in_helper(obj1);
20574 if (arg2 == NULL) SWIG_fail;
20575 temp2 = True;
20576 }
20577 if (obj2) {
20578 {
20579 arg3 = wxString_in_helper(obj2);
20580 if (arg3 == NULL) SWIG_fail;
20581 temp3 = True;
20582 }
20583 }
20584 if (obj3) {
20585 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20586 SWIG_POINTER_EXCEPTION | 0)) == -1)
20587 SWIG_fail;
20588 if (arg4 == NULL) {
20589 PyErr_SetString(PyExc_TypeError,"null reference");
20590 SWIG_fail;
20591 }
20592 }
20593 {
20594 PyThreadState* __tstate = wxPyBeginAllowThreads();
20595 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20596
20597 wxPyEndAllowThreads(__tstate);
20598 if (PyErr_Occurred()) SWIG_fail;
20599 }
20600 resultobj = SWIG_FromInt((int)result);
20601 {
20602 if (temp2)
20603 delete arg2;
20604 }
20605 {
20606 if (temp3)
20607 delete arg3;
20608 }
20609 return resultobj;
20610 fail:
20611 {
20612 if (temp2)
20613 delete arg2;
20614 }
20615 {
20616 if (temp3)
20617 delete arg3;
20618 }
20619 return NULL;
20620 }
20621
20622
20623 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
20624 PyObject *resultobj;
20625 wxDateTime *arg1 = (wxDateTime *) 0 ;
20626 wxString *arg2 = 0 ;
20627 int result;
20628 bool temp2 = False ;
20629 PyObject * obj0 = 0 ;
20630 PyObject * obj1 = 0 ;
20631 char *kwnames[] = {
20632 (char *) "self",(char *) "datetime", NULL
20633 };
20634
20635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20638 {
20639 arg2 = wxString_in_helper(obj1);
20640 if (arg2 == NULL) SWIG_fail;
20641 temp2 = True;
20642 }
20643 {
20644 PyThreadState* __tstate = wxPyBeginAllowThreads();
20645 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20646
20647 wxPyEndAllowThreads(__tstate);
20648 if (PyErr_Occurred()) SWIG_fail;
20649 }
20650 resultobj = SWIG_FromInt((int)result);
20651 {
20652 if (temp2)
20653 delete arg2;
20654 }
20655 return resultobj;
20656 fail:
20657 {
20658 if (temp2)
20659 delete arg2;
20660 }
20661 return NULL;
20662 }
20663
20664
20665 static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
20666 PyObject *resultobj;
20667 wxDateTime *arg1 = (wxDateTime *) 0 ;
20668 wxString *arg2 = 0 ;
20669 int result;
20670 bool temp2 = False ;
20671 PyObject * obj0 = 0 ;
20672 PyObject * obj1 = 0 ;
20673 char *kwnames[] = {
20674 (char *) "self",(char *) "date", NULL
20675 };
20676
20677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20680 {
20681 arg2 = wxString_in_helper(obj1);
20682 if (arg2 == NULL) SWIG_fail;
20683 temp2 = True;
20684 }
20685 {
20686 PyThreadState* __tstate = wxPyBeginAllowThreads();
20687 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20688
20689 wxPyEndAllowThreads(__tstate);
20690 if (PyErr_Occurred()) SWIG_fail;
20691 }
20692 resultobj = SWIG_FromInt((int)result);
20693 {
20694 if (temp2)
20695 delete arg2;
20696 }
20697 return resultobj;
20698 fail:
20699 {
20700 if (temp2)
20701 delete arg2;
20702 }
20703 return NULL;
20704 }
20705
20706
20707 static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
20708 PyObject *resultobj;
20709 wxDateTime *arg1 = (wxDateTime *) 0 ;
20710 wxString *arg2 = 0 ;
20711 int result;
20712 bool temp2 = False ;
20713 PyObject * obj0 = 0 ;
20714 PyObject * obj1 = 0 ;
20715 char *kwnames[] = {
20716 (char *) "self",(char *) "time", NULL
20717 };
20718
20719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20722 {
20723 arg2 = wxString_in_helper(obj1);
20724 if (arg2 == NULL) SWIG_fail;
20725 temp2 = True;
20726 }
20727 {
20728 PyThreadState* __tstate = wxPyBeginAllowThreads();
20729 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20730
20731 wxPyEndAllowThreads(__tstate);
20732 if (PyErr_Occurred()) SWIG_fail;
20733 }
20734 resultobj = SWIG_FromInt((int)result);
20735 {
20736 if (temp2)
20737 delete arg2;
20738 }
20739 return resultobj;
20740 fail:
20741 {
20742 if (temp2)
20743 delete arg2;
20744 }
20745 return NULL;
20746 }
20747
20748
20749 static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
20750 PyObject *resultobj;
20751 wxDateTime *arg1 = (wxDateTime *) 0 ;
20752 wxString const &arg2_defvalue = wxPyDateFormatStr ;
20753 wxString *arg2 = (wxString *) &arg2_defvalue ;
20754 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20755 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20756 wxString result;
20757 bool temp2 = False ;
20758 bool temp3 = False ;
20759 PyObject * obj0 = 0 ;
20760 PyObject * obj1 = 0 ;
20761 PyObject * obj2 = 0 ;
20762 char *kwnames[] = {
20763 (char *) "self",(char *) "format",(char *) "tz", NULL
20764 };
20765
20766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
20767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20769 if (obj1) {
20770 {
20771 arg2 = wxString_in_helper(obj1);
20772 if (arg2 == NULL) SWIG_fail;
20773 temp2 = True;
20774 }
20775 }
20776 if (obj2) {
20777 {
20778 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
20779 temp3 = True;
20780 }
20781 }
20782 {
20783 PyThreadState* __tstate = wxPyBeginAllowThreads();
20784 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
20785
20786 wxPyEndAllowThreads(__tstate);
20787 if (PyErr_Occurred()) SWIG_fail;
20788 }
20789 {
20790 #if wxUSE_UNICODE
20791 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20792 #else
20793 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20794 #endif
20795 }
20796 {
20797 if (temp2)
20798 delete arg2;
20799 }
20800 {
20801 if (temp3) delete arg3;
20802 }
20803 return resultobj;
20804 fail:
20805 {
20806 if (temp2)
20807 delete arg2;
20808 }
20809 {
20810 if (temp3) delete arg3;
20811 }
20812 return NULL;
20813 }
20814
20815
20816 static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) {
20817 PyObject *resultobj;
20818 wxDateTime *arg1 = (wxDateTime *) 0 ;
20819 wxString result;
20820 PyObject * obj0 = 0 ;
20821 char *kwnames[] = {
20822 (char *) "self", NULL
20823 };
20824
20825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
20826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20828 {
20829 PyThreadState* __tstate = wxPyBeginAllowThreads();
20830 result = ((wxDateTime const *)arg1)->FormatDate();
20831
20832 wxPyEndAllowThreads(__tstate);
20833 if (PyErr_Occurred()) SWIG_fail;
20834 }
20835 {
20836 #if wxUSE_UNICODE
20837 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20838 #else
20839 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20840 #endif
20841 }
20842 return resultobj;
20843 fail:
20844 return NULL;
20845 }
20846
20847
20848 static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) {
20849 PyObject *resultobj;
20850 wxDateTime *arg1 = (wxDateTime *) 0 ;
20851 wxString result;
20852 PyObject * obj0 = 0 ;
20853 char *kwnames[] = {
20854 (char *) "self", NULL
20855 };
20856
20857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
20858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20860 {
20861 PyThreadState* __tstate = wxPyBeginAllowThreads();
20862 result = ((wxDateTime const *)arg1)->FormatTime();
20863
20864 wxPyEndAllowThreads(__tstate);
20865 if (PyErr_Occurred()) SWIG_fail;
20866 }
20867 {
20868 #if wxUSE_UNICODE
20869 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20870 #else
20871 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20872 #endif
20873 }
20874 return resultobj;
20875 fail:
20876 return NULL;
20877 }
20878
20879
20880 static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
20881 PyObject *resultobj;
20882 wxDateTime *arg1 = (wxDateTime *) 0 ;
20883 wxString result;
20884 PyObject * obj0 = 0 ;
20885 char *kwnames[] = {
20886 (char *) "self", NULL
20887 };
20888
20889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
20890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20892 {
20893 PyThreadState* __tstate = wxPyBeginAllowThreads();
20894 result = ((wxDateTime const *)arg1)->FormatISODate();
20895
20896 wxPyEndAllowThreads(__tstate);
20897 if (PyErr_Occurred()) SWIG_fail;
20898 }
20899 {
20900 #if wxUSE_UNICODE
20901 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20902 #else
20903 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20904 #endif
20905 }
20906 return resultobj;
20907 fail:
20908 return NULL;
20909 }
20910
20911
20912 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
20913 PyObject *resultobj;
20914 wxDateTime *arg1 = (wxDateTime *) 0 ;
20915 wxString result;
20916 PyObject * obj0 = 0 ;
20917 char *kwnames[] = {
20918 (char *) "self", NULL
20919 };
20920
20921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
20922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20924 {
20925 PyThreadState* __tstate = wxPyBeginAllowThreads();
20926 result = ((wxDateTime const *)arg1)->FormatISOTime();
20927
20928 wxPyEndAllowThreads(__tstate);
20929 if (PyErr_Occurred()) SWIG_fail;
20930 }
20931 {
20932 #if wxUSE_UNICODE
20933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20934 #else
20935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20936 #endif
20937 }
20938 return resultobj;
20939 fail:
20940 return NULL;
20941 }
20942
20943
20944 static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
20945 PyObject *obj;
20946 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20947 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
20948 Py_INCREF(obj);
20949 return Py_BuildValue((char *)"");
20950 }
20951 static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
20952 PyObject *resultobj;
20953 long arg1 ;
20954 wxTimeSpan result;
20955 PyObject * obj0 = 0 ;
20956 char *kwnames[] = {
20957 (char *) "sec", NULL
20958 };
20959
20960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
20961 arg1 = (long) SWIG_AsLong(obj0);
20962 if (PyErr_Occurred()) SWIG_fail;
20963 {
20964 PyThreadState* __tstate = wxPyBeginAllowThreads();
20965 result = wxTimeSpan::Seconds(arg1);
20966
20967 wxPyEndAllowThreads(__tstate);
20968 if (PyErr_Occurred()) SWIG_fail;
20969 }
20970 {
20971 wxTimeSpan * resultptr;
20972 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20973 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20974 }
20975 return resultobj;
20976 fail:
20977 return NULL;
20978 }
20979
20980
20981 static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
20982 PyObject *resultobj;
20983 wxTimeSpan result;
20984 char *kwnames[] = {
20985 NULL
20986 };
20987
20988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
20989 {
20990 PyThreadState* __tstate = wxPyBeginAllowThreads();
20991 result = wxTimeSpan::Second();
20992
20993 wxPyEndAllowThreads(__tstate);
20994 if (PyErr_Occurred()) SWIG_fail;
20995 }
20996 {
20997 wxTimeSpan * resultptr;
20998 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20999 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21000 }
21001 return resultobj;
21002 fail:
21003 return NULL;
21004 }
21005
21006
21007 static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
21008 PyObject *resultobj;
21009 long arg1 ;
21010 wxTimeSpan result;
21011 PyObject * obj0 = 0 ;
21012 char *kwnames[] = {
21013 (char *) "min", NULL
21014 };
21015
21016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21017 arg1 = (long) SWIG_AsLong(obj0);
21018 if (PyErr_Occurred()) SWIG_fail;
21019 {
21020 PyThreadState* __tstate = wxPyBeginAllowThreads();
21021 result = wxTimeSpan::Minutes(arg1);
21022
21023 wxPyEndAllowThreads(__tstate);
21024 if (PyErr_Occurred()) SWIG_fail;
21025 }
21026 {
21027 wxTimeSpan * resultptr;
21028 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21029 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21030 }
21031 return resultobj;
21032 fail:
21033 return NULL;
21034 }
21035
21036
21037 static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
21038 PyObject *resultobj;
21039 wxTimeSpan result;
21040 char *kwnames[] = {
21041 NULL
21042 };
21043
21044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21045 {
21046 PyThreadState* __tstate = wxPyBeginAllowThreads();
21047 result = wxTimeSpan::Minute();
21048
21049 wxPyEndAllowThreads(__tstate);
21050 if (PyErr_Occurred()) SWIG_fail;
21051 }
21052 {
21053 wxTimeSpan * resultptr;
21054 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21055 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21056 }
21057 return resultobj;
21058 fail:
21059 return NULL;
21060 }
21061
21062
21063 static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
21064 PyObject *resultobj;
21065 long arg1 ;
21066 wxTimeSpan result;
21067 PyObject * obj0 = 0 ;
21068 char *kwnames[] = {
21069 (char *) "hours", NULL
21070 };
21071
21072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21073 arg1 = (long) SWIG_AsLong(obj0);
21074 if (PyErr_Occurred()) SWIG_fail;
21075 {
21076 PyThreadState* __tstate = wxPyBeginAllowThreads();
21077 result = wxTimeSpan::Hours(arg1);
21078
21079 wxPyEndAllowThreads(__tstate);
21080 if (PyErr_Occurred()) SWIG_fail;
21081 }
21082 {
21083 wxTimeSpan * resultptr;
21084 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21085 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21086 }
21087 return resultobj;
21088 fail:
21089 return NULL;
21090 }
21091
21092
21093 static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
21094 PyObject *resultobj;
21095 wxTimeSpan result;
21096 char *kwnames[] = {
21097 NULL
21098 };
21099
21100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21101 {
21102 PyThreadState* __tstate = wxPyBeginAllowThreads();
21103 result = wxTimeSpan::Hour();
21104
21105 wxPyEndAllowThreads(__tstate);
21106 if (PyErr_Occurred()) SWIG_fail;
21107 }
21108 {
21109 wxTimeSpan * resultptr;
21110 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21111 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21112 }
21113 return resultobj;
21114 fail:
21115 return NULL;
21116 }
21117
21118
21119 static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
21120 PyObject *resultobj;
21121 long arg1 ;
21122 wxTimeSpan result;
21123 PyObject * obj0 = 0 ;
21124 char *kwnames[] = {
21125 (char *) "days", NULL
21126 };
21127
21128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21129 arg1 = (long) SWIG_AsLong(obj0);
21130 if (PyErr_Occurred()) SWIG_fail;
21131 {
21132 PyThreadState* __tstate = wxPyBeginAllowThreads();
21133 result = wxTimeSpan::Days(arg1);
21134
21135 wxPyEndAllowThreads(__tstate);
21136 if (PyErr_Occurred()) SWIG_fail;
21137 }
21138 {
21139 wxTimeSpan * resultptr;
21140 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21141 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21142 }
21143 return resultobj;
21144 fail:
21145 return NULL;
21146 }
21147
21148
21149 static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
21150 PyObject *resultobj;
21151 wxTimeSpan result;
21152 char *kwnames[] = {
21153 NULL
21154 };
21155
21156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21157 {
21158 PyThreadState* __tstate = wxPyBeginAllowThreads();
21159 result = wxTimeSpan::Day();
21160
21161 wxPyEndAllowThreads(__tstate);
21162 if (PyErr_Occurred()) SWIG_fail;
21163 }
21164 {
21165 wxTimeSpan * resultptr;
21166 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21167 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21168 }
21169 return resultobj;
21170 fail:
21171 return NULL;
21172 }
21173
21174
21175 static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
21176 PyObject *resultobj;
21177 long arg1 ;
21178 wxTimeSpan result;
21179 PyObject * obj0 = 0 ;
21180 char *kwnames[] = {
21181 (char *) "days", NULL
21182 };
21183
21184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21185 arg1 = (long) SWIG_AsLong(obj0);
21186 if (PyErr_Occurred()) SWIG_fail;
21187 {
21188 PyThreadState* __tstate = wxPyBeginAllowThreads();
21189 result = wxTimeSpan::Weeks(arg1);
21190
21191 wxPyEndAllowThreads(__tstate);
21192 if (PyErr_Occurred()) SWIG_fail;
21193 }
21194 {
21195 wxTimeSpan * resultptr;
21196 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21197 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21198 }
21199 return resultobj;
21200 fail:
21201 return NULL;
21202 }
21203
21204
21205 static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
21206 PyObject *resultobj;
21207 wxTimeSpan result;
21208 char *kwnames[] = {
21209 NULL
21210 };
21211
21212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21213 {
21214 PyThreadState* __tstate = wxPyBeginAllowThreads();
21215 result = wxTimeSpan::Week();
21216
21217 wxPyEndAllowThreads(__tstate);
21218 if (PyErr_Occurred()) SWIG_fail;
21219 }
21220 {
21221 wxTimeSpan * resultptr;
21222 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21223 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21224 }
21225 return resultobj;
21226 fail:
21227 return NULL;
21228 }
21229
21230
21231 static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
21232 PyObject *resultobj;
21233 long arg1 = (long) 0 ;
21234 long arg2 = (long) 0 ;
21235 long arg3 = (long) 0 ;
21236 long arg4 = (long) 0 ;
21237 wxTimeSpan *result;
21238 PyObject * obj0 = 0 ;
21239 PyObject * obj1 = 0 ;
21240 PyObject * obj2 = 0 ;
21241 PyObject * obj3 = 0 ;
21242 char *kwnames[] = {
21243 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21244 };
21245
21246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21247 if (obj0) {
21248 arg1 = (long) SWIG_AsLong(obj0);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 }
21251 if (obj1) {
21252 arg2 = (long) SWIG_AsLong(obj1);
21253 if (PyErr_Occurred()) SWIG_fail;
21254 }
21255 if (obj2) {
21256 arg3 = (long) SWIG_AsLong(obj2);
21257 if (PyErr_Occurred()) SWIG_fail;
21258 }
21259 if (obj3) {
21260 arg4 = (long) SWIG_AsLong(obj3);
21261 if (PyErr_Occurred()) SWIG_fail;
21262 }
21263 {
21264 PyThreadState* __tstate = wxPyBeginAllowThreads();
21265 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21266
21267 wxPyEndAllowThreads(__tstate);
21268 if (PyErr_Occurred()) SWIG_fail;
21269 }
21270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21271 return resultobj;
21272 fail:
21273 return NULL;
21274 }
21275
21276
21277 static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
21278 PyObject *resultobj;
21279 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21280 PyObject * obj0 = 0 ;
21281 char *kwnames[] = {
21282 (char *) "self", NULL
21283 };
21284
21285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21288 {
21289 PyThreadState* __tstate = wxPyBeginAllowThreads();
21290 delete arg1;
21291
21292 wxPyEndAllowThreads(__tstate);
21293 if (PyErr_Occurred()) SWIG_fail;
21294 }
21295 Py_INCREF(Py_None); resultobj = Py_None;
21296 return resultobj;
21297 fail:
21298 return NULL;
21299 }
21300
21301
21302 static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
21303 PyObject *resultobj;
21304 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21305 wxTimeSpan *arg2 = 0 ;
21306 wxTimeSpan *result;
21307 PyObject * obj0 = 0 ;
21308 PyObject * obj1 = 0 ;
21309 char *kwnames[] = {
21310 (char *) "self",(char *) "diff", NULL
21311 };
21312
21313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21316 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21317 SWIG_POINTER_EXCEPTION | 0)) == -1)
21318 SWIG_fail;
21319 if (arg2 == NULL) {
21320 PyErr_SetString(PyExc_TypeError,"null reference");
21321 SWIG_fail;
21322 }
21323 {
21324 PyThreadState* __tstate = wxPyBeginAllowThreads();
21325 {
21326 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21327 result = (wxTimeSpan *) &_result_ref;
21328 }
21329
21330 wxPyEndAllowThreads(__tstate);
21331 if (PyErr_Occurred()) SWIG_fail;
21332 }
21333 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21334 return resultobj;
21335 fail:
21336 return NULL;
21337 }
21338
21339
21340 static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
21341 PyObject *resultobj;
21342 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21343 wxTimeSpan *arg2 = 0 ;
21344 wxTimeSpan *result;
21345 PyObject * obj0 = 0 ;
21346 PyObject * obj1 = 0 ;
21347 char *kwnames[] = {
21348 (char *) "self",(char *) "diff", NULL
21349 };
21350
21351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21354 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21355 SWIG_POINTER_EXCEPTION | 0)) == -1)
21356 SWIG_fail;
21357 if (arg2 == NULL) {
21358 PyErr_SetString(PyExc_TypeError,"null reference");
21359 SWIG_fail;
21360 }
21361 {
21362 PyThreadState* __tstate = wxPyBeginAllowThreads();
21363 {
21364 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21365 result = (wxTimeSpan *) &_result_ref;
21366 }
21367
21368 wxPyEndAllowThreads(__tstate);
21369 if (PyErr_Occurred()) SWIG_fail;
21370 }
21371 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21372 return resultobj;
21373 fail:
21374 return NULL;
21375 }
21376
21377
21378 static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
21379 PyObject *resultobj;
21380 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21381 int arg2 ;
21382 wxTimeSpan *result;
21383 PyObject * obj0 = 0 ;
21384 PyObject * obj1 = 0 ;
21385 char *kwnames[] = {
21386 (char *) "self",(char *) "n", NULL
21387 };
21388
21389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21392 arg2 = (int) SWIG_AsInt(obj1);
21393 if (PyErr_Occurred()) SWIG_fail;
21394 {
21395 PyThreadState* __tstate = wxPyBeginAllowThreads();
21396 {
21397 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21398 result = (wxTimeSpan *) &_result_ref;
21399 }
21400
21401 wxPyEndAllowThreads(__tstate);
21402 if (PyErr_Occurred()) SWIG_fail;
21403 }
21404 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21405 return resultobj;
21406 fail:
21407 return NULL;
21408 }
21409
21410
21411 static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
21412 PyObject *resultobj;
21413 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21414 wxTimeSpan *result;
21415 PyObject * obj0 = 0 ;
21416 char *kwnames[] = {
21417 (char *) "self", NULL
21418 };
21419
21420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21423 {
21424 PyThreadState* __tstate = wxPyBeginAllowThreads();
21425 {
21426 wxTimeSpan &_result_ref = (arg1)->Neg();
21427 result = (wxTimeSpan *) &_result_ref;
21428 }
21429
21430 wxPyEndAllowThreads(__tstate);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 }
21433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21434 return resultobj;
21435 fail:
21436 return NULL;
21437 }
21438
21439
21440 static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
21441 PyObject *resultobj;
21442 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21443 wxTimeSpan result;
21444 PyObject * obj0 = 0 ;
21445 char *kwnames[] = {
21446 (char *) "self", NULL
21447 };
21448
21449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21452 {
21453 PyThreadState* __tstate = wxPyBeginAllowThreads();
21454 result = ((wxTimeSpan const *)arg1)->Abs();
21455
21456 wxPyEndAllowThreads(__tstate);
21457 if (PyErr_Occurred()) SWIG_fail;
21458 }
21459 {
21460 wxTimeSpan * resultptr;
21461 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21462 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21463 }
21464 return resultobj;
21465 fail:
21466 return NULL;
21467 }
21468
21469
21470 static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
21471 PyObject *resultobj;
21472 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21473 wxTimeSpan *arg2 = 0 ;
21474 wxTimeSpan *result;
21475 PyObject * obj0 = 0 ;
21476 PyObject * obj1 = 0 ;
21477 char *kwnames[] = {
21478 (char *) "self",(char *) "diff", NULL
21479 };
21480
21481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21484 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21485 SWIG_POINTER_EXCEPTION | 0)) == -1)
21486 SWIG_fail;
21487 if (arg2 == NULL) {
21488 PyErr_SetString(PyExc_TypeError,"null reference");
21489 SWIG_fail;
21490 }
21491 {
21492 PyThreadState* __tstate = wxPyBeginAllowThreads();
21493 {
21494 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21495 result = (wxTimeSpan *) &_result_ref;
21496 }
21497
21498 wxPyEndAllowThreads(__tstate);
21499 if (PyErr_Occurred()) SWIG_fail;
21500 }
21501 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21502 return resultobj;
21503 fail:
21504 return NULL;
21505 }
21506
21507
21508 static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
21509 PyObject *resultobj;
21510 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21511 wxTimeSpan *arg2 = 0 ;
21512 wxTimeSpan *result;
21513 PyObject * obj0 = 0 ;
21514 PyObject * obj1 = 0 ;
21515 char *kwnames[] = {
21516 (char *) "self",(char *) "diff", NULL
21517 };
21518
21519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21523 SWIG_POINTER_EXCEPTION | 0)) == -1)
21524 SWIG_fail;
21525 if (arg2 == NULL) {
21526 PyErr_SetString(PyExc_TypeError,"null reference");
21527 SWIG_fail;
21528 }
21529 {
21530 PyThreadState* __tstate = wxPyBeginAllowThreads();
21531 {
21532 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21533 result = (wxTimeSpan *) &_result_ref;
21534 }
21535
21536 wxPyEndAllowThreads(__tstate);
21537 if (PyErr_Occurred()) SWIG_fail;
21538 }
21539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21540 return resultobj;
21541 fail:
21542 return NULL;
21543 }
21544
21545
21546 static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
21547 PyObject *resultobj;
21548 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21549 int arg2 ;
21550 wxTimeSpan *result;
21551 PyObject * obj0 = 0 ;
21552 PyObject * obj1 = 0 ;
21553 char *kwnames[] = {
21554 (char *) "self",(char *) "n", NULL
21555 };
21556
21557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21560 arg2 = (int) SWIG_AsInt(obj1);
21561 if (PyErr_Occurred()) SWIG_fail;
21562 {
21563 PyThreadState* __tstate = wxPyBeginAllowThreads();
21564 {
21565 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21566 result = (wxTimeSpan *) &_result_ref;
21567 }
21568
21569 wxPyEndAllowThreads(__tstate);
21570 if (PyErr_Occurred()) SWIG_fail;
21571 }
21572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21573 return resultobj;
21574 fail:
21575 return NULL;
21576 }
21577
21578
21579 static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
21580 PyObject *resultobj;
21581 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21582 wxTimeSpan *result;
21583 PyObject * obj0 = 0 ;
21584 char *kwnames[] = {
21585 (char *) "self", NULL
21586 };
21587
21588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21591 {
21592 PyThreadState* __tstate = wxPyBeginAllowThreads();
21593 {
21594 wxTimeSpan &_result_ref = (arg1)->operator -();
21595 result = (wxTimeSpan *) &_result_ref;
21596 }
21597
21598 wxPyEndAllowThreads(__tstate);
21599 if (PyErr_Occurred()) SWIG_fail;
21600 }
21601 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21602 return resultobj;
21603 fail:
21604 return NULL;
21605 }
21606
21607
21608 static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
21609 PyObject *resultobj;
21610 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21611 wxTimeSpan *arg2 = 0 ;
21612 wxTimeSpan result;
21613 PyObject * obj0 = 0 ;
21614 PyObject * obj1 = 0 ;
21615 char *kwnames[] = {
21616 (char *) "self",(char *) "other", NULL
21617 };
21618
21619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21623 SWIG_POINTER_EXCEPTION | 0)) == -1)
21624 SWIG_fail;
21625 if (arg2 == NULL) {
21626 PyErr_SetString(PyExc_TypeError,"null reference");
21627 SWIG_fail;
21628 }
21629 {
21630 PyThreadState* __tstate = wxPyBeginAllowThreads();
21631 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21632
21633 wxPyEndAllowThreads(__tstate);
21634 if (PyErr_Occurred()) SWIG_fail;
21635 }
21636 {
21637 wxTimeSpan * resultptr;
21638 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21639 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21640 }
21641 return resultobj;
21642 fail:
21643 return NULL;
21644 }
21645
21646
21647 static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
21648 PyObject *resultobj;
21649 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21650 wxTimeSpan *arg2 = 0 ;
21651 wxTimeSpan result;
21652 PyObject * obj0 = 0 ;
21653 PyObject * obj1 = 0 ;
21654 char *kwnames[] = {
21655 (char *) "self",(char *) "other", NULL
21656 };
21657
21658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21662 SWIG_POINTER_EXCEPTION | 0)) == -1)
21663 SWIG_fail;
21664 if (arg2 == NULL) {
21665 PyErr_SetString(PyExc_TypeError,"null reference");
21666 SWIG_fail;
21667 }
21668 {
21669 PyThreadState* __tstate = wxPyBeginAllowThreads();
21670 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21671
21672 wxPyEndAllowThreads(__tstate);
21673 if (PyErr_Occurred()) SWIG_fail;
21674 }
21675 {
21676 wxTimeSpan * resultptr;
21677 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21678 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21679 }
21680 return resultobj;
21681 fail:
21682 return NULL;
21683 }
21684
21685
21686 static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
21687 PyObject *resultobj;
21688 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21689 int arg2 ;
21690 wxTimeSpan result;
21691 PyObject * obj0 = 0 ;
21692 PyObject * obj1 = 0 ;
21693 char *kwnames[] = {
21694 (char *) "self",(char *) "n", NULL
21695 };
21696
21697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
21698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21700 arg2 = (int) SWIG_AsInt(obj1);
21701 if (PyErr_Occurred()) SWIG_fail;
21702 {
21703 PyThreadState* __tstate = wxPyBeginAllowThreads();
21704 result = wxTimeSpan___mul__(arg1,arg2);
21705
21706 wxPyEndAllowThreads(__tstate);
21707 if (PyErr_Occurred()) SWIG_fail;
21708 }
21709 {
21710 wxTimeSpan * resultptr;
21711 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21712 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21713 }
21714 return resultobj;
21715 fail:
21716 return NULL;
21717 }
21718
21719
21720 static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
21721 PyObject *resultobj;
21722 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21723 int arg2 ;
21724 wxTimeSpan result;
21725 PyObject * obj0 = 0 ;
21726 PyObject * obj1 = 0 ;
21727 char *kwnames[] = {
21728 (char *) "self",(char *) "n", NULL
21729 };
21730
21731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
21732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21734 arg2 = (int) SWIG_AsInt(obj1);
21735 if (PyErr_Occurred()) SWIG_fail;
21736 {
21737 PyThreadState* __tstate = wxPyBeginAllowThreads();
21738 result = wxTimeSpan___rmul__(arg1,arg2);
21739
21740 wxPyEndAllowThreads(__tstate);
21741 if (PyErr_Occurred()) SWIG_fail;
21742 }
21743 {
21744 wxTimeSpan * resultptr;
21745 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21746 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21747 }
21748 return resultobj;
21749 fail:
21750 return NULL;
21751 }
21752
21753
21754 static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
21755 PyObject *resultobj;
21756 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21757 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21758 bool result;
21759 PyObject * obj0 = 0 ;
21760 PyObject * obj1 = 0 ;
21761 char *kwnames[] = {
21762 (char *) "self",(char *) "other", NULL
21763 };
21764
21765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
21766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21768 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21770 {
21771 PyThreadState* __tstate = wxPyBeginAllowThreads();
21772 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
21773
21774 wxPyEndAllowThreads(__tstate);
21775 if (PyErr_Occurred()) SWIG_fail;
21776 }
21777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21778 return resultobj;
21779 fail:
21780 return NULL;
21781 }
21782
21783
21784 static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) {
21785 PyObject *resultobj;
21786 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21787 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21788 bool result;
21789 PyObject * obj0 = 0 ;
21790 PyObject * obj1 = 0 ;
21791 char *kwnames[] = {
21792 (char *) "self",(char *) "other", NULL
21793 };
21794
21795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
21796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21798 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21800 {
21801 PyThreadState* __tstate = wxPyBeginAllowThreads();
21802 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
21803
21804 wxPyEndAllowThreads(__tstate);
21805 if (PyErr_Occurred()) SWIG_fail;
21806 }
21807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21808 return resultobj;
21809 fail:
21810 return NULL;
21811 }
21812
21813
21814 static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
21815 PyObject *resultobj;
21816 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21817 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21818 bool result;
21819 PyObject * obj0 = 0 ;
21820 PyObject * obj1 = 0 ;
21821 char *kwnames[] = {
21822 (char *) "self",(char *) "other", NULL
21823 };
21824
21825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
21826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21828 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21830 {
21831 PyThreadState* __tstate = wxPyBeginAllowThreads();
21832 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
21833
21834 wxPyEndAllowThreads(__tstate);
21835 if (PyErr_Occurred()) SWIG_fail;
21836 }
21837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21838 return resultobj;
21839 fail:
21840 return NULL;
21841 }
21842
21843
21844 static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
21845 PyObject *resultobj;
21846 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21847 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21848 bool result;
21849 PyObject * obj0 = 0 ;
21850 PyObject * obj1 = 0 ;
21851 char *kwnames[] = {
21852 (char *) "self",(char *) "other", NULL
21853 };
21854
21855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
21856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
21863
21864 wxPyEndAllowThreads(__tstate);
21865 if (PyErr_Occurred()) SWIG_fail;
21866 }
21867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21868 return resultobj;
21869 fail:
21870 return NULL;
21871 }
21872
21873
21874 static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
21875 PyObject *resultobj;
21876 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21877 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21878 bool result;
21879 PyObject * obj0 = 0 ;
21880 PyObject * obj1 = 0 ;
21881 char *kwnames[] = {
21882 (char *) "self",(char *) "other", NULL
21883 };
21884
21885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
21886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21888 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21890 {
21891 PyThreadState* __tstate = wxPyBeginAllowThreads();
21892 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
21893
21894 wxPyEndAllowThreads(__tstate);
21895 if (PyErr_Occurred()) SWIG_fail;
21896 }
21897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21898 return resultobj;
21899 fail:
21900 return NULL;
21901 }
21902
21903
21904 static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
21905 PyObject *resultobj;
21906 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21907 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21908 bool result;
21909 PyObject * obj0 = 0 ;
21910 PyObject * obj1 = 0 ;
21911 char *kwnames[] = {
21912 (char *) "self",(char *) "other", NULL
21913 };
21914
21915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
21916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21918 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21920 {
21921 PyThreadState* __tstate = wxPyBeginAllowThreads();
21922 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
21923
21924 wxPyEndAllowThreads(__tstate);
21925 if (PyErr_Occurred()) SWIG_fail;
21926 }
21927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21928 return resultobj;
21929 fail:
21930 return NULL;
21931 }
21932
21933
21934 static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
21935 PyObject *resultobj;
21936 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21937 bool result;
21938 PyObject * obj0 = 0 ;
21939 char *kwnames[] = {
21940 (char *) "self", NULL
21941 };
21942
21943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
21944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21946 {
21947 PyThreadState* __tstate = wxPyBeginAllowThreads();
21948 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
21949
21950 wxPyEndAllowThreads(__tstate);
21951 if (PyErr_Occurred()) SWIG_fail;
21952 }
21953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21954 return resultobj;
21955 fail:
21956 return NULL;
21957 }
21958
21959
21960 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
21961 PyObject *resultobj;
21962 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21963 bool result;
21964 PyObject * obj0 = 0 ;
21965 char *kwnames[] = {
21966 (char *) "self", NULL
21967 };
21968
21969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
21970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21972 {
21973 PyThreadState* __tstate = wxPyBeginAllowThreads();
21974 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
21975
21976 wxPyEndAllowThreads(__tstate);
21977 if (PyErr_Occurred()) SWIG_fail;
21978 }
21979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21980 return resultobj;
21981 fail:
21982 return NULL;
21983 }
21984
21985
21986 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
21987 PyObject *resultobj;
21988 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21989 bool result;
21990 PyObject * obj0 = 0 ;
21991 char *kwnames[] = {
21992 (char *) "self", NULL
21993 };
21994
21995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
21996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21998 {
21999 PyThreadState* __tstate = wxPyBeginAllowThreads();
22000 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22001
22002 wxPyEndAllowThreads(__tstate);
22003 if (PyErr_Occurred()) SWIG_fail;
22004 }
22005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22006 return resultobj;
22007 fail:
22008 return NULL;
22009 }
22010
22011
22012 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
22013 PyObject *resultobj;
22014 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22015 wxTimeSpan *arg2 = 0 ;
22016 bool result;
22017 PyObject * obj0 = 0 ;
22018 PyObject * obj1 = 0 ;
22019 char *kwnames[] = {
22020 (char *) "self",(char *) "ts", NULL
22021 };
22022
22023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22026 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22027 SWIG_POINTER_EXCEPTION | 0)) == -1)
22028 SWIG_fail;
22029 if (arg2 == NULL) {
22030 PyErr_SetString(PyExc_TypeError,"null reference");
22031 SWIG_fail;
22032 }
22033 {
22034 PyThreadState* __tstate = wxPyBeginAllowThreads();
22035 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22036
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22041 return resultobj;
22042 fail:
22043 return NULL;
22044 }
22045
22046
22047 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
22048 PyObject *resultobj;
22049 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22050 wxTimeSpan *arg2 = 0 ;
22051 bool result;
22052 PyObject * obj0 = 0 ;
22053 PyObject * obj1 = 0 ;
22054 char *kwnames[] = {
22055 (char *) "self",(char *) "ts", NULL
22056 };
22057
22058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22061 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22062 SWIG_POINTER_EXCEPTION | 0)) == -1)
22063 SWIG_fail;
22064 if (arg2 == NULL) {
22065 PyErr_SetString(PyExc_TypeError,"null reference");
22066 SWIG_fail;
22067 }
22068 {
22069 PyThreadState* __tstate = wxPyBeginAllowThreads();
22070 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22071
22072 wxPyEndAllowThreads(__tstate);
22073 if (PyErr_Occurred()) SWIG_fail;
22074 }
22075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22076 return resultobj;
22077 fail:
22078 return NULL;
22079 }
22080
22081
22082 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
22083 PyObject *resultobj;
22084 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22085 wxTimeSpan *arg2 = 0 ;
22086 bool result;
22087 PyObject * obj0 = 0 ;
22088 PyObject * obj1 = 0 ;
22089 char *kwnames[] = {
22090 (char *) "self",(char *) "t", NULL
22091 };
22092
22093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22096 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22097 SWIG_POINTER_EXCEPTION | 0)) == -1)
22098 SWIG_fail;
22099 if (arg2 == NULL) {
22100 PyErr_SetString(PyExc_TypeError,"null reference");
22101 SWIG_fail;
22102 }
22103 {
22104 PyThreadState* __tstate = wxPyBeginAllowThreads();
22105 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22106
22107 wxPyEndAllowThreads(__tstate);
22108 if (PyErr_Occurred()) SWIG_fail;
22109 }
22110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22111 return resultobj;
22112 fail:
22113 return NULL;
22114 }
22115
22116
22117 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
22118 PyObject *resultobj;
22119 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22120 int result;
22121 PyObject * obj0 = 0 ;
22122 char *kwnames[] = {
22123 (char *) "self", NULL
22124 };
22125
22126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22129 {
22130 PyThreadState* __tstate = wxPyBeginAllowThreads();
22131 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22132
22133 wxPyEndAllowThreads(__tstate);
22134 if (PyErr_Occurred()) SWIG_fail;
22135 }
22136 resultobj = SWIG_FromInt((int)result);
22137 return resultobj;
22138 fail:
22139 return NULL;
22140 }
22141
22142
22143 static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
22144 PyObject *resultobj;
22145 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22146 int result;
22147 PyObject * obj0 = 0 ;
22148 char *kwnames[] = {
22149 (char *) "self", NULL
22150 };
22151
22152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22155 {
22156 PyThreadState* __tstate = wxPyBeginAllowThreads();
22157 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22158
22159 wxPyEndAllowThreads(__tstate);
22160 if (PyErr_Occurred()) SWIG_fail;
22161 }
22162 resultobj = SWIG_FromInt((int)result);
22163 return resultobj;
22164 fail:
22165 return NULL;
22166 }
22167
22168
22169 static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
22170 PyObject *resultobj;
22171 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22172 int result;
22173 PyObject * obj0 = 0 ;
22174 char *kwnames[] = {
22175 (char *) "self", NULL
22176 };
22177
22178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22181 {
22182 PyThreadState* __tstate = wxPyBeginAllowThreads();
22183 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22184
22185 wxPyEndAllowThreads(__tstate);
22186 if (PyErr_Occurred()) SWIG_fail;
22187 }
22188 resultobj = SWIG_FromInt((int)result);
22189 return resultobj;
22190 fail:
22191 return NULL;
22192 }
22193
22194
22195 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
22196 PyObject *resultobj;
22197 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22198 int result;
22199 PyObject * obj0 = 0 ;
22200 char *kwnames[] = {
22201 (char *) "self", NULL
22202 };
22203
22204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22207 {
22208 PyThreadState* __tstate = wxPyBeginAllowThreads();
22209 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22210
22211 wxPyEndAllowThreads(__tstate);
22212 if (PyErr_Occurred()) SWIG_fail;
22213 }
22214 resultobj = SWIG_FromInt((int)result);
22215 return resultobj;
22216 fail:
22217 return NULL;
22218 }
22219
22220
22221 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
22222 PyObject *resultobj;
22223 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22224 wxLongLong result;
22225 PyObject * obj0 = 0 ;
22226 char *kwnames[] = {
22227 (char *) "self", NULL
22228 };
22229
22230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22233 {
22234 PyThreadState* __tstate = wxPyBeginAllowThreads();
22235 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22236
22237 wxPyEndAllowThreads(__tstate);
22238 if (PyErr_Occurred()) SWIG_fail;
22239 }
22240 {
22241 PyObject *hi, *lo, *shifter, *shifted;
22242 hi = PyLong_FromLong( (&result)->GetHi() );
22243 lo = PyLong_FromLong( (&result)->GetLo() );
22244 shifter = PyLong_FromLong(32);
22245 shifted = PyNumber_Lshift(hi, shifter);
22246 resultobj = PyNumber_Or(shifted, lo);
22247 Py_DECREF(hi);
22248 Py_DECREF(lo);
22249 Py_DECREF(shifter);
22250 Py_DECREF(shifted);
22251 }
22252 return resultobj;
22253 fail:
22254 return NULL;
22255 }
22256
22257
22258 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
22259 PyObject *resultobj;
22260 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22261 wxLongLong result;
22262 PyObject * obj0 = 0 ;
22263 char *kwnames[] = {
22264 (char *) "self", NULL
22265 };
22266
22267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22270 {
22271 PyThreadState* __tstate = wxPyBeginAllowThreads();
22272 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22273
22274 wxPyEndAllowThreads(__tstate);
22275 if (PyErr_Occurred()) SWIG_fail;
22276 }
22277 {
22278 PyObject *hi, *lo, *shifter, *shifted;
22279 hi = PyLong_FromLong( (&result)->GetHi() );
22280 lo = PyLong_FromLong( (&result)->GetLo() );
22281 shifter = PyLong_FromLong(32);
22282 shifted = PyNumber_Lshift(hi, shifter);
22283 resultobj = PyNumber_Or(shifted, lo);
22284 Py_DECREF(hi);
22285 Py_DECREF(lo);
22286 Py_DECREF(shifter);
22287 Py_DECREF(shifted);
22288 }
22289 return resultobj;
22290 fail:
22291 return NULL;
22292 }
22293
22294
22295 static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
22296 PyObject *resultobj;
22297 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22298 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22299 wxString *arg2 = (wxString *) &arg2_defvalue ;
22300 wxString result;
22301 bool temp2 = False ;
22302 PyObject * obj0 = 0 ;
22303 PyObject * obj1 = 0 ;
22304 char *kwnames[] = {
22305 (char *) "self",(char *) "format", NULL
22306 };
22307
22308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22311 if (obj1) {
22312 {
22313 arg2 = wxString_in_helper(obj1);
22314 if (arg2 == NULL) SWIG_fail;
22315 temp2 = True;
22316 }
22317 }
22318 {
22319 PyThreadState* __tstate = wxPyBeginAllowThreads();
22320 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22321
22322 wxPyEndAllowThreads(__tstate);
22323 if (PyErr_Occurred()) SWIG_fail;
22324 }
22325 {
22326 #if wxUSE_UNICODE
22327 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22328 #else
22329 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22330 #endif
22331 }
22332 {
22333 if (temp2)
22334 delete arg2;
22335 }
22336 return resultobj;
22337 fail:
22338 {
22339 if (temp2)
22340 delete arg2;
22341 }
22342 return NULL;
22343 }
22344
22345
22346 static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
22347 PyObject *obj;
22348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22349 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22350 Py_INCREF(obj);
22351 return Py_BuildValue((char *)"");
22352 }
22353 static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
22354 PyObject *resultobj;
22355 int arg1 = (int) 0 ;
22356 int arg2 = (int) 0 ;
22357 int arg3 = (int) 0 ;
22358 int arg4 = (int) 0 ;
22359 wxDateSpan *result;
22360 PyObject * obj0 = 0 ;
22361 PyObject * obj1 = 0 ;
22362 PyObject * obj2 = 0 ;
22363 PyObject * obj3 = 0 ;
22364 char *kwnames[] = {
22365 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22366 };
22367
22368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22369 if (obj0) {
22370 arg1 = (int) SWIG_AsInt(obj0);
22371 if (PyErr_Occurred()) SWIG_fail;
22372 }
22373 if (obj1) {
22374 arg2 = (int) SWIG_AsInt(obj1);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 }
22377 if (obj2) {
22378 arg3 = (int) SWIG_AsInt(obj2);
22379 if (PyErr_Occurred()) SWIG_fail;
22380 }
22381 if (obj3) {
22382 arg4 = (int) SWIG_AsInt(obj3);
22383 if (PyErr_Occurred()) SWIG_fail;
22384 }
22385 {
22386 PyThreadState* __tstate = wxPyBeginAllowThreads();
22387 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22388
22389 wxPyEndAllowThreads(__tstate);
22390 if (PyErr_Occurred()) SWIG_fail;
22391 }
22392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22393 return resultobj;
22394 fail:
22395 return NULL;
22396 }
22397
22398
22399 static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
22400 PyObject *resultobj;
22401 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22402 PyObject * obj0 = 0 ;
22403 char *kwnames[] = {
22404 (char *) "self", NULL
22405 };
22406
22407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22410 {
22411 PyThreadState* __tstate = wxPyBeginAllowThreads();
22412 delete arg1;
22413
22414 wxPyEndAllowThreads(__tstate);
22415 if (PyErr_Occurred()) SWIG_fail;
22416 }
22417 Py_INCREF(Py_None); resultobj = Py_None;
22418 return resultobj;
22419 fail:
22420 return NULL;
22421 }
22422
22423
22424 static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
22425 PyObject *resultobj;
22426 int arg1 ;
22427 wxDateSpan result;
22428 PyObject * obj0 = 0 ;
22429 char *kwnames[] = {
22430 (char *) "days", NULL
22431 };
22432
22433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22434 arg1 = (int) SWIG_AsInt(obj0);
22435 if (PyErr_Occurred()) SWIG_fail;
22436 {
22437 PyThreadState* __tstate = wxPyBeginAllowThreads();
22438 result = wxDateSpan::Days(arg1);
22439
22440 wxPyEndAllowThreads(__tstate);
22441 if (PyErr_Occurred()) SWIG_fail;
22442 }
22443 {
22444 wxDateSpan * resultptr;
22445 resultptr = new wxDateSpan((wxDateSpan &) result);
22446 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22447 }
22448 return resultobj;
22449 fail:
22450 return NULL;
22451 }
22452
22453
22454 static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
22455 PyObject *resultobj;
22456 wxDateSpan result;
22457 char *kwnames[] = {
22458 NULL
22459 };
22460
22461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22462 {
22463 PyThreadState* __tstate = wxPyBeginAllowThreads();
22464 result = wxDateSpan::Day();
22465
22466 wxPyEndAllowThreads(__tstate);
22467 if (PyErr_Occurred()) SWIG_fail;
22468 }
22469 {
22470 wxDateSpan * resultptr;
22471 resultptr = new wxDateSpan((wxDateSpan &) result);
22472 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22473 }
22474 return resultobj;
22475 fail:
22476 return NULL;
22477 }
22478
22479
22480 static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
22481 PyObject *resultobj;
22482 int arg1 ;
22483 wxDateSpan result;
22484 PyObject * obj0 = 0 ;
22485 char *kwnames[] = {
22486 (char *) "weeks", NULL
22487 };
22488
22489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22490 arg1 = (int) SWIG_AsInt(obj0);
22491 if (PyErr_Occurred()) SWIG_fail;
22492 {
22493 PyThreadState* __tstate = wxPyBeginAllowThreads();
22494 result = wxDateSpan::Weeks(arg1);
22495
22496 wxPyEndAllowThreads(__tstate);
22497 if (PyErr_Occurred()) SWIG_fail;
22498 }
22499 {
22500 wxDateSpan * resultptr;
22501 resultptr = new wxDateSpan((wxDateSpan &) result);
22502 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22503 }
22504 return resultobj;
22505 fail:
22506 return NULL;
22507 }
22508
22509
22510 static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
22511 PyObject *resultobj;
22512 wxDateSpan result;
22513 char *kwnames[] = {
22514 NULL
22515 };
22516
22517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22518 {
22519 PyThreadState* __tstate = wxPyBeginAllowThreads();
22520 result = wxDateSpan::Week();
22521
22522 wxPyEndAllowThreads(__tstate);
22523 if (PyErr_Occurred()) SWIG_fail;
22524 }
22525 {
22526 wxDateSpan * resultptr;
22527 resultptr = new wxDateSpan((wxDateSpan &) result);
22528 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22529 }
22530 return resultobj;
22531 fail:
22532 return NULL;
22533 }
22534
22535
22536 static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
22537 PyObject *resultobj;
22538 int arg1 ;
22539 wxDateSpan result;
22540 PyObject * obj0 = 0 ;
22541 char *kwnames[] = {
22542 (char *) "mon", NULL
22543 };
22544
22545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22546 arg1 = (int) SWIG_AsInt(obj0);
22547 if (PyErr_Occurred()) SWIG_fail;
22548 {
22549 PyThreadState* __tstate = wxPyBeginAllowThreads();
22550 result = wxDateSpan::Months(arg1);
22551
22552 wxPyEndAllowThreads(__tstate);
22553 if (PyErr_Occurred()) SWIG_fail;
22554 }
22555 {
22556 wxDateSpan * resultptr;
22557 resultptr = new wxDateSpan((wxDateSpan &) result);
22558 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22559 }
22560 return resultobj;
22561 fail:
22562 return NULL;
22563 }
22564
22565
22566 static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
22567 PyObject *resultobj;
22568 wxDateSpan result;
22569 char *kwnames[] = {
22570 NULL
22571 };
22572
22573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22574 {
22575 PyThreadState* __tstate = wxPyBeginAllowThreads();
22576 result = wxDateSpan::Month();
22577
22578 wxPyEndAllowThreads(__tstate);
22579 if (PyErr_Occurred()) SWIG_fail;
22580 }
22581 {
22582 wxDateSpan * resultptr;
22583 resultptr = new wxDateSpan((wxDateSpan &) result);
22584 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22585 }
22586 return resultobj;
22587 fail:
22588 return NULL;
22589 }
22590
22591
22592 static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
22593 PyObject *resultobj;
22594 int arg1 ;
22595 wxDateSpan result;
22596 PyObject * obj0 = 0 ;
22597 char *kwnames[] = {
22598 (char *) "years", NULL
22599 };
22600
22601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22602 arg1 = (int) SWIG_AsInt(obj0);
22603 if (PyErr_Occurred()) SWIG_fail;
22604 {
22605 PyThreadState* __tstate = wxPyBeginAllowThreads();
22606 result = wxDateSpan::Years(arg1);
22607
22608 wxPyEndAllowThreads(__tstate);
22609 if (PyErr_Occurred()) SWIG_fail;
22610 }
22611 {
22612 wxDateSpan * resultptr;
22613 resultptr = new wxDateSpan((wxDateSpan &) result);
22614 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22615 }
22616 return resultobj;
22617 fail:
22618 return NULL;
22619 }
22620
22621
22622 static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
22623 PyObject *resultobj;
22624 wxDateSpan result;
22625 char *kwnames[] = {
22626 NULL
22627 };
22628
22629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22630 {
22631 PyThreadState* __tstate = wxPyBeginAllowThreads();
22632 result = wxDateSpan::Year();
22633
22634 wxPyEndAllowThreads(__tstate);
22635 if (PyErr_Occurred()) SWIG_fail;
22636 }
22637 {
22638 wxDateSpan * resultptr;
22639 resultptr = new wxDateSpan((wxDateSpan &) result);
22640 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22641 }
22642 return resultobj;
22643 fail:
22644 return NULL;
22645 }
22646
22647
22648 static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
22649 PyObject *resultobj;
22650 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22651 int arg2 ;
22652 wxDateSpan *result;
22653 PyObject * obj0 = 0 ;
22654 PyObject * obj1 = 0 ;
22655 char *kwnames[] = {
22656 (char *) "self",(char *) "n", NULL
22657 };
22658
22659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
22660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22662 arg2 = (int) SWIG_AsInt(obj1);
22663 if (PyErr_Occurred()) SWIG_fail;
22664 {
22665 PyThreadState* __tstate = wxPyBeginAllowThreads();
22666 {
22667 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22668 result = (wxDateSpan *) &_result_ref;
22669 }
22670
22671 wxPyEndAllowThreads(__tstate);
22672 if (PyErr_Occurred()) SWIG_fail;
22673 }
22674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22675 return resultobj;
22676 fail:
22677 return NULL;
22678 }
22679
22680
22681 static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
22682 PyObject *resultobj;
22683 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22684 int arg2 ;
22685 wxDateSpan *result;
22686 PyObject * obj0 = 0 ;
22687 PyObject * obj1 = 0 ;
22688 char *kwnames[] = {
22689 (char *) "self",(char *) "n", NULL
22690 };
22691
22692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
22693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22695 arg2 = (int) SWIG_AsInt(obj1);
22696 if (PyErr_Occurred()) SWIG_fail;
22697 {
22698 PyThreadState* __tstate = wxPyBeginAllowThreads();
22699 {
22700 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22701 result = (wxDateSpan *) &_result_ref;
22702 }
22703
22704 wxPyEndAllowThreads(__tstate);
22705 if (PyErr_Occurred()) SWIG_fail;
22706 }
22707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22708 return resultobj;
22709 fail:
22710 return NULL;
22711 }
22712
22713
22714 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
22715 PyObject *resultobj;
22716 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22717 int arg2 ;
22718 wxDateSpan *result;
22719 PyObject * obj0 = 0 ;
22720 PyObject * obj1 = 0 ;
22721 char *kwnames[] = {
22722 (char *) "self",(char *) "n", NULL
22723 };
22724
22725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
22726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22728 arg2 = (int) SWIG_AsInt(obj1);
22729 if (PyErr_Occurred()) SWIG_fail;
22730 {
22731 PyThreadState* __tstate = wxPyBeginAllowThreads();
22732 {
22733 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
22734 result = (wxDateSpan *) &_result_ref;
22735 }
22736
22737 wxPyEndAllowThreads(__tstate);
22738 if (PyErr_Occurred()) SWIG_fail;
22739 }
22740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22741 return resultobj;
22742 fail:
22743 return NULL;
22744 }
22745
22746
22747 static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
22748 PyObject *resultobj;
22749 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22750 int arg2 ;
22751 wxDateSpan *result;
22752 PyObject * obj0 = 0 ;
22753 PyObject * obj1 = 0 ;
22754 char *kwnames[] = {
22755 (char *) "self",(char *) "n", NULL
22756 };
22757
22758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
22759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22761 arg2 = (int) SWIG_AsInt(obj1);
22762 if (PyErr_Occurred()) SWIG_fail;
22763 {
22764 PyThreadState* __tstate = wxPyBeginAllowThreads();
22765 {
22766 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
22767 result = (wxDateSpan *) &_result_ref;
22768 }
22769
22770 wxPyEndAllowThreads(__tstate);
22771 if (PyErr_Occurred()) SWIG_fail;
22772 }
22773 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22774 return resultobj;
22775 fail:
22776 return NULL;
22777 }
22778
22779
22780 static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
22781 PyObject *resultobj;
22782 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22783 int result;
22784 PyObject * obj0 = 0 ;
22785 char *kwnames[] = {
22786 (char *) "self", NULL
22787 };
22788
22789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",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 result = (int)((wxDateSpan const *)arg1)->GetYears();
22795
22796 wxPyEndAllowThreads(__tstate);
22797 if (PyErr_Occurred()) SWIG_fail;
22798 }
22799 resultobj = SWIG_FromInt((int)result);
22800 return resultobj;
22801 fail:
22802 return NULL;
22803 }
22804
22805
22806 static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
22807 PyObject *resultobj;
22808 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22809 int result;
22810 PyObject * obj0 = 0 ;
22811 char *kwnames[] = {
22812 (char *) "self", NULL
22813 };
22814
22815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
22816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22818 {
22819 PyThreadState* __tstate = wxPyBeginAllowThreads();
22820 result = (int)((wxDateSpan const *)arg1)->GetMonths();
22821
22822 wxPyEndAllowThreads(__tstate);
22823 if (PyErr_Occurred()) SWIG_fail;
22824 }
22825 resultobj = SWIG_FromInt((int)result);
22826 return resultobj;
22827 fail:
22828 return NULL;
22829 }
22830
22831
22832 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
22833 PyObject *resultobj;
22834 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22835 int result;
22836 PyObject * obj0 = 0 ;
22837 char *kwnames[] = {
22838 (char *) "self", NULL
22839 };
22840
22841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
22842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22844 {
22845 PyThreadState* __tstate = wxPyBeginAllowThreads();
22846 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
22847
22848 wxPyEndAllowThreads(__tstate);
22849 if (PyErr_Occurred()) SWIG_fail;
22850 }
22851 resultobj = SWIG_FromInt((int)result);
22852 return resultobj;
22853 fail:
22854 return NULL;
22855 }
22856
22857
22858 static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
22859 PyObject *resultobj;
22860 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22861 int result;
22862 PyObject * obj0 = 0 ;
22863 char *kwnames[] = {
22864 (char *) "self", NULL
22865 };
22866
22867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
22868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22870 {
22871 PyThreadState* __tstate = wxPyBeginAllowThreads();
22872 result = (int)((wxDateSpan const *)arg1)->GetDays();
22873
22874 wxPyEndAllowThreads(__tstate);
22875 if (PyErr_Occurred()) SWIG_fail;
22876 }
22877 resultobj = SWIG_FromInt((int)result);
22878 return resultobj;
22879 fail:
22880 return NULL;
22881 }
22882
22883
22884 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
22885 PyObject *resultobj;
22886 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22887 int result;
22888 PyObject * obj0 = 0 ;
22889 char *kwnames[] = {
22890 (char *) "self", NULL
22891 };
22892
22893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
22894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22896 {
22897 PyThreadState* __tstate = wxPyBeginAllowThreads();
22898 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
22899
22900 wxPyEndAllowThreads(__tstate);
22901 if (PyErr_Occurred()) SWIG_fail;
22902 }
22903 resultobj = SWIG_FromInt((int)result);
22904 return resultobj;
22905 fail:
22906 return NULL;
22907 }
22908
22909
22910 static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
22911 PyObject *resultobj;
22912 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22913 wxDateSpan *arg2 = 0 ;
22914 wxDateSpan *result;
22915 PyObject * obj0 = 0 ;
22916 PyObject * obj1 = 0 ;
22917 char *kwnames[] = {
22918 (char *) "self",(char *) "other", NULL
22919 };
22920
22921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
22922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
22925 SWIG_POINTER_EXCEPTION | 0)) == -1)
22926 SWIG_fail;
22927 if (arg2 == NULL) {
22928 PyErr_SetString(PyExc_TypeError,"null reference");
22929 SWIG_fail;
22930 }
22931 {
22932 PyThreadState* __tstate = wxPyBeginAllowThreads();
22933 {
22934 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
22935 result = (wxDateSpan *) &_result_ref;
22936 }
22937
22938 wxPyEndAllowThreads(__tstate);
22939 if (PyErr_Occurred()) SWIG_fail;
22940 }
22941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22942 return resultobj;
22943 fail:
22944 return NULL;
22945 }
22946
22947
22948 static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
22949 PyObject *resultobj;
22950 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22951 wxDateSpan *arg2 = 0 ;
22952 wxDateSpan *result;
22953 PyObject * obj0 = 0 ;
22954 PyObject * obj1 = 0 ;
22955 char *kwnames[] = {
22956 (char *) "self",(char *) "other", NULL
22957 };
22958
22959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
22960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22962 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
22963 SWIG_POINTER_EXCEPTION | 0)) == -1)
22964 SWIG_fail;
22965 if (arg2 == NULL) {
22966 PyErr_SetString(PyExc_TypeError,"null reference");
22967 SWIG_fail;
22968 }
22969 {
22970 PyThreadState* __tstate = wxPyBeginAllowThreads();
22971 {
22972 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
22973 result = (wxDateSpan *) &_result_ref;
22974 }
22975
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22980 return resultobj;
22981 fail:
22982 return NULL;
22983 }
22984
22985
22986 static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
22987 PyObject *resultobj;
22988 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22989 wxDateSpan *result;
22990 PyObject * obj0 = 0 ;
22991 char *kwnames[] = {
22992 (char *) "self", NULL
22993 };
22994
22995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
22996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22998 {
22999 PyThreadState* __tstate = wxPyBeginAllowThreads();
23000 {
23001 wxDateSpan &_result_ref = (arg1)->Neg();
23002 result = (wxDateSpan *) &_result_ref;
23003 }
23004
23005 wxPyEndAllowThreads(__tstate);
23006 if (PyErr_Occurred()) SWIG_fail;
23007 }
23008 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23009 return resultobj;
23010 fail:
23011 return NULL;
23012 }
23013
23014
23015 static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
23016 PyObject *resultobj;
23017 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23018 int arg2 ;
23019 wxDateSpan *result;
23020 PyObject * obj0 = 0 ;
23021 PyObject * obj1 = 0 ;
23022 char *kwnames[] = {
23023 (char *) "self",(char *) "factor", NULL
23024 };
23025
23026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23029 arg2 = (int) SWIG_AsInt(obj1);
23030 if (PyErr_Occurred()) SWIG_fail;
23031 {
23032 PyThreadState* __tstate = wxPyBeginAllowThreads();
23033 {
23034 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23035 result = (wxDateSpan *) &_result_ref;
23036 }
23037
23038 wxPyEndAllowThreads(__tstate);
23039 if (PyErr_Occurred()) SWIG_fail;
23040 }
23041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23042 return resultobj;
23043 fail:
23044 return NULL;
23045 }
23046
23047
23048 static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
23049 PyObject *resultobj;
23050 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23051 wxDateSpan *arg2 = 0 ;
23052 wxDateSpan *result;
23053 PyObject * obj0 = 0 ;
23054 PyObject * obj1 = 0 ;
23055 char *kwnames[] = {
23056 (char *) "self",(char *) "other", NULL
23057 };
23058
23059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23062 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23063 SWIG_POINTER_EXCEPTION | 0)) == -1)
23064 SWIG_fail;
23065 if (arg2 == NULL) {
23066 PyErr_SetString(PyExc_TypeError,"null reference");
23067 SWIG_fail;
23068 }
23069 {
23070 PyThreadState* __tstate = wxPyBeginAllowThreads();
23071 {
23072 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23073 result = (wxDateSpan *) &_result_ref;
23074 }
23075
23076 wxPyEndAllowThreads(__tstate);
23077 if (PyErr_Occurred()) SWIG_fail;
23078 }
23079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23080 return resultobj;
23081 fail:
23082 return NULL;
23083 }
23084
23085
23086 static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
23087 PyObject *resultobj;
23088 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23089 wxDateSpan *arg2 = 0 ;
23090 wxDateSpan *result;
23091 PyObject * obj0 = 0 ;
23092 PyObject * obj1 = 0 ;
23093 char *kwnames[] = {
23094 (char *) "self",(char *) "other", NULL
23095 };
23096
23097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23100 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23101 SWIG_POINTER_EXCEPTION | 0)) == -1)
23102 SWIG_fail;
23103 if (arg2 == NULL) {
23104 PyErr_SetString(PyExc_TypeError,"null reference");
23105 SWIG_fail;
23106 }
23107 {
23108 PyThreadState* __tstate = wxPyBeginAllowThreads();
23109 {
23110 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23111 result = (wxDateSpan *) &_result_ref;
23112 }
23113
23114 wxPyEndAllowThreads(__tstate);
23115 if (PyErr_Occurred()) SWIG_fail;
23116 }
23117 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23118 return resultobj;
23119 fail:
23120 return NULL;
23121 }
23122
23123
23124 static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
23125 PyObject *resultobj;
23126 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23127 wxDateSpan *result;
23128 PyObject * obj0 = 0 ;
23129 char *kwnames[] = {
23130 (char *) "self", NULL
23131 };
23132
23133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23136 {
23137 PyThreadState* __tstate = wxPyBeginAllowThreads();
23138 {
23139 wxDateSpan &_result_ref = (arg1)->operator -();
23140 result = (wxDateSpan *) &_result_ref;
23141 }
23142
23143 wxPyEndAllowThreads(__tstate);
23144 if (PyErr_Occurred()) SWIG_fail;
23145 }
23146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23147 return resultobj;
23148 fail:
23149 return NULL;
23150 }
23151
23152
23153 static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
23154 PyObject *resultobj;
23155 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23156 int arg2 ;
23157 wxDateSpan *result;
23158 PyObject * obj0 = 0 ;
23159 PyObject * obj1 = 0 ;
23160 char *kwnames[] = {
23161 (char *) "self",(char *) "factor", NULL
23162 };
23163
23164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23167 arg2 = (int) SWIG_AsInt(obj1);
23168 if (PyErr_Occurred()) SWIG_fail;
23169 {
23170 PyThreadState* __tstate = wxPyBeginAllowThreads();
23171 {
23172 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23173 result = (wxDateSpan *) &_result_ref;
23174 }
23175
23176 wxPyEndAllowThreads(__tstate);
23177 if (PyErr_Occurred()) SWIG_fail;
23178 }
23179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23180 return resultobj;
23181 fail:
23182 return NULL;
23183 }
23184
23185
23186 static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
23187 PyObject *resultobj;
23188 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23189 wxDateSpan *arg2 = 0 ;
23190 wxDateSpan result;
23191 PyObject * obj0 = 0 ;
23192 PyObject * obj1 = 0 ;
23193 char *kwnames[] = {
23194 (char *) "self",(char *) "other", NULL
23195 };
23196
23197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23200 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23201 SWIG_POINTER_EXCEPTION | 0)) == -1)
23202 SWIG_fail;
23203 if (arg2 == NULL) {
23204 PyErr_SetString(PyExc_TypeError,"null reference");
23205 SWIG_fail;
23206 }
23207 {
23208 PyThreadState* __tstate = wxPyBeginAllowThreads();
23209 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23210
23211 wxPyEndAllowThreads(__tstate);
23212 if (PyErr_Occurred()) SWIG_fail;
23213 }
23214 {
23215 wxDateSpan * resultptr;
23216 resultptr = new wxDateSpan((wxDateSpan &) result);
23217 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23218 }
23219 return resultobj;
23220 fail:
23221 return NULL;
23222 }
23223
23224
23225 static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
23226 PyObject *resultobj;
23227 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23228 wxDateSpan *arg2 = 0 ;
23229 wxDateSpan result;
23230 PyObject * obj0 = 0 ;
23231 PyObject * obj1 = 0 ;
23232 char *kwnames[] = {
23233 (char *) "self",(char *) "other", NULL
23234 };
23235
23236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23240 SWIG_POINTER_EXCEPTION | 0)) == -1)
23241 SWIG_fail;
23242 if (arg2 == NULL) {
23243 PyErr_SetString(PyExc_TypeError,"null reference");
23244 SWIG_fail;
23245 }
23246 {
23247 PyThreadState* __tstate = wxPyBeginAllowThreads();
23248 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23249
23250 wxPyEndAllowThreads(__tstate);
23251 if (PyErr_Occurred()) SWIG_fail;
23252 }
23253 {
23254 wxDateSpan * resultptr;
23255 resultptr = new wxDateSpan((wxDateSpan &) result);
23256 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23257 }
23258 return resultobj;
23259 fail:
23260 return NULL;
23261 }
23262
23263
23264 static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
23265 PyObject *resultobj;
23266 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23267 int arg2 ;
23268 wxDateSpan result;
23269 PyObject * obj0 = 0 ;
23270 PyObject * obj1 = 0 ;
23271 char *kwnames[] = {
23272 (char *) "self",(char *) "n", NULL
23273 };
23274
23275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23278 arg2 = (int) SWIG_AsInt(obj1);
23279 if (PyErr_Occurred()) SWIG_fail;
23280 {
23281 PyThreadState* __tstate = wxPyBeginAllowThreads();
23282 result = wxDateSpan___mul__(arg1,arg2);
23283
23284 wxPyEndAllowThreads(__tstate);
23285 if (PyErr_Occurred()) SWIG_fail;
23286 }
23287 {
23288 wxDateSpan * resultptr;
23289 resultptr = new wxDateSpan((wxDateSpan &) result);
23290 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23291 }
23292 return resultobj;
23293 fail:
23294 return NULL;
23295 }
23296
23297
23298 static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
23299 PyObject *resultobj;
23300 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23301 int arg2 ;
23302 wxDateSpan result;
23303 PyObject * obj0 = 0 ;
23304 PyObject * obj1 = 0 ;
23305 char *kwnames[] = {
23306 (char *) "self",(char *) "n", NULL
23307 };
23308
23309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23312 arg2 = (int) SWIG_AsInt(obj1);
23313 if (PyErr_Occurred()) SWIG_fail;
23314 {
23315 PyThreadState* __tstate = wxPyBeginAllowThreads();
23316 result = wxDateSpan___rmul__(arg1,arg2);
23317
23318 wxPyEndAllowThreads(__tstate);
23319 if (PyErr_Occurred()) SWIG_fail;
23320 }
23321 {
23322 wxDateSpan * resultptr;
23323 resultptr = new wxDateSpan((wxDateSpan &) result);
23324 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23325 }
23326 return resultobj;
23327 fail:
23328 return NULL;
23329 }
23330
23331
23332 static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
23333 PyObject *resultobj;
23334 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23335 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23336 bool result;
23337 PyObject * obj0 = 0 ;
23338 PyObject * obj1 = 0 ;
23339 char *kwnames[] = {
23340 (char *) "self",(char *) "other", NULL
23341 };
23342
23343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23346 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23348 {
23349 PyThreadState* __tstate = wxPyBeginAllowThreads();
23350 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23351
23352 wxPyEndAllowThreads(__tstate);
23353 if (PyErr_Occurred()) SWIG_fail;
23354 }
23355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23356 return resultobj;
23357 fail:
23358 return NULL;
23359 }
23360
23361
23362 static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
23363 PyObject *resultobj;
23364 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23365 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23366 bool result;
23367 PyObject * obj0 = 0 ;
23368 PyObject * obj1 = 0 ;
23369 char *kwnames[] = {
23370 (char *) "self",(char *) "other", NULL
23371 };
23372
23373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23378 {
23379 PyThreadState* __tstate = wxPyBeginAllowThreads();
23380 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23381
23382 wxPyEndAllowThreads(__tstate);
23383 if (PyErr_Occurred()) SWIG_fail;
23384 }
23385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23386 return resultobj;
23387 fail:
23388 return NULL;
23389 }
23390
23391
23392 static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
23393 PyObject *obj;
23394 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23395 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23396 Py_INCREF(obj);
23397 return Py_BuildValue((char *)"");
23398 }
23399 static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
23400 PyObject *resultobj;
23401 long result;
23402 char *kwnames[] = {
23403 NULL
23404 };
23405
23406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23407 {
23408 PyThreadState* __tstate = wxPyBeginAllowThreads();
23409 result = (long)wxGetLocalTime();
23410
23411 wxPyEndAllowThreads(__tstate);
23412 if (PyErr_Occurred()) SWIG_fail;
23413 }
23414 resultobj = SWIG_FromLong((long)result);
23415 return resultobj;
23416 fail:
23417 return NULL;
23418 }
23419
23420
23421 static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
23422 PyObject *resultobj;
23423 long result;
23424 char *kwnames[] = {
23425 NULL
23426 };
23427
23428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23429 {
23430 PyThreadState* __tstate = wxPyBeginAllowThreads();
23431 result = (long)wxGetUTCTime();
23432
23433 wxPyEndAllowThreads(__tstate);
23434 if (PyErr_Occurred()) SWIG_fail;
23435 }
23436 resultobj = SWIG_FromLong((long)result);
23437 return resultobj;
23438 fail:
23439 return NULL;
23440 }
23441
23442
23443 static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
23444 PyObject *resultobj;
23445 long result;
23446 char *kwnames[] = {
23447 NULL
23448 };
23449
23450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23451 {
23452 PyThreadState* __tstate = wxPyBeginAllowThreads();
23453 result = (long)wxGetCurrentTime();
23454
23455 wxPyEndAllowThreads(__tstate);
23456 if (PyErr_Occurred()) SWIG_fail;
23457 }
23458 resultobj = SWIG_FromLong((long)result);
23459 return resultobj;
23460 fail:
23461 return NULL;
23462 }
23463
23464
23465 static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
23466 PyObject *resultobj;
23467 wxLongLong result;
23468 char *kwnames[] = {
23469 NULL
23470 };
23471
23472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23473 {
23474 PyThreadState* __tstate = wxPyBeginAllowThreads();
23475 result = wxGetLocalTimeMillis();
23476
23477 wxPyEndAllowThreads(__tstate);
23478 if (PyErr_Occurred()) SWIG_fail;
23479 }
23480 {
23481 PyObject *hi, *lo, *shifter, *shifted;
23482 hi = PyLong_FromLong( (&result)->GetHi() );
23483 lo = PyLong_FromLong( (&result)->GetLo() );
23484 shifter = PyLong_FromLong(32);
23485 shifted = PyNumber_Lshift(hi, shifter);
23486 resultobj = PyNumber_Or(shifted, lo);
23487 Py_DECREF(hi);
23488 Py_DECREF(lo);
23489 Py_DECREF(shifter);
23490 Py_DECREF(shifted);
23491 }
23492 return resultobj;
23493 fail:
23494 return NULL;
23495 }
23496
23497
23498 static int _wrap_DefaultDateTime_set(PyObject *) {
23499 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23500 return 1;
23501 }
23502
23503
23504 static PyObject *_wrap_DefaultDateTime_get() {
23505 PyObject *pyobj;
23506
23507 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23508 return pyobj;
23509 }
23510
23511
23512 static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
23513 PyObject *resultobj;
23514 int arg1 ;
23515 wxDataFormat *result;
23516 PyObject * obj0 = 0 ;
23517 char *kwnames[] = {
23518 (char *) "type", NULL
23519 };
23520
23521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23522 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 {
23525 PyThreadState* __tstate = wxPyBeginAllowThreads();
23526 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23527
23528 wxPyEndAllowThreads(__tstate);
23529 if (PyErr_Occurred()) SWIG_fail;
23530 }
23531 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23532 return resultobj;
23533 fail:
23534 return NULL;
23535 }
23536
23537
23538 static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
23539 PyObject *resultobj;
23540 wxString *arg1 = 0 ;
23541 wxDataFormat *result;
23542 bool temp1 = False ;
23543 PyObject * obj0 = 0 ;
23544 char *kwnames[] = {
23545 (char *) "format", NULL
23546 };
23547
23548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23549 {
23550 arg1 = wxString_in_helper(obj0);
23551 if (arg1 == NULL) SWIG_fail;
23552 temp1 = True;
23553 }
23554 {
23555 PyThreadState* __tstate = wxPyBeginAllowThreads();
23556 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23557
23558 wxPyEndAllowThreads(__tstate);
23559 if (PyErr_Occurred()) SWIG_fail;
23560 }
23561 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23562 {
23563 if (temp1)
23564 delete arg1;
23565 }
23566 return resultobj;
23567 fail:
23568 {
23569 if (temp1)
23570 delete arg1;
23571 }
23572 return NULL;
23573 }
23574
23575
23576 static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
23577 PyObject *resultobj;
23578 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23579 PyObject * obj0 = 0 ;
23580 char *kwnames[] = {
23581 (char *) "self", NULL
23582 };
23583
23584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23587 {
23588 PyThreadState* __tstate = wxPyBeginAllowThreads();
23589 delete arg1;
23590
23591 wxPyEndAllowThreads(__tstate);
23592 if (PyErr_Occurred()) SWIG_fail;
23593 }
23594 Py_INCREF(Py_None); resultobj = Py_None;
23595 return resultobj;
23596 fail:
23597 return NULL;
23598 }
23599
23600
23601 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
23602 PyObject *resultobj;
23603 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23604 int arg2 ;
23605 bool result;
23606 PyObject * obj0 = 0 ;
23607 PyObject * obj1 = 0 ;
23608
23609 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23612 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23613 if (PyErr_Occurred()) SWIG_fail;
23614 {
23615 PyThreadState* __tstate = wxPyBeginAllowThreads();
23616 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23617
23618 wxPyEndAllowThreads(__tstate);
23619 if (PyErr_Occurred()) SWIG_fail;
23620 }
23621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23622 return resultobj;
23623 fail:
23624 return NULL;
23625 }
23626
23627
23628 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
23629 PyObject *resultobj;
23630 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23631 int arg2 ;
23632 bool result;
23633 PyObject * obj0 = 0 ;
23634 PyObject * obj1 = 0 ;
23635
23636 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23639 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23640 if (PyErr_Occurred()) SWIG_fail;
23641 {
23642 PyThreadState* __tstate = wxPyBeginAllowThreads();
23643 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23644
23645 wxPyEndAllowThreads(__tstate);
23646 if (PyErr_Occurred()) SWIG_fail;
23647 }
23648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23649 return resultobj;
23650 fail:
23651 return NULL;
23652 }
23653
23654
23655 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
23656 PyObject *resultobj;
23657 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23658 wxDataFormat *arg2 = 0 ;
23659 bool result;
23660 PyObject * obj0 = 0 ;
23661 PyObject * obj1 = 0 ;
23662
23663 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23666 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23667 SWIG_POINTER_EXCEPTION | 0)) == -1)
23668 SWIG_fail;
23669 if (arg2 == NULL) {
23670 PyErr_SetString(PyExc_TypeError,"null reference");
23671 SWIG_fail;
23672 }
23673 {
23674 PyThreadState* __tstate = wxPyBeginAllowThreads();
23675 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23676
23677 wxPyEndAllowThreads(__tstate);
23678 if (PyErr_Occurred()) SWIG_fail;
23679 }
23680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23681 return resultobj;
23682 fail:
23683 return NULL;
23684 }
23685
23686
23687 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23688 int argc;
23689 PyObject *argv[3];
23690 int ii;
23691
23692 argc = PyObject_Length(args);
23693 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23694 argv[ii] = PyTuple_GetItem(args,ii);
23695 }
23696 if (argc == 2) {
23697 int _v;
23698 {
23699 void *ptr;
23700 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23701 _v = 0;
23702 PyErr_Clear();
23703 } else {
23704 _v = 1;
23705 }
23706 }
23707 if (_v) {
23708 {
23709 void *ptr;
23710 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23711 _v = 0;
23712 PyErr_Clear();
23713 } else {
23714 _v = 1;
23715 }
23716 }
23717 if (_v) {
23718 return _wrap_DataFormat___eq____SWIG_1(self,args);
23719 }
23720 }
23721 }
23722 if (argc == 2) {
23723 int _v;
23724 {
23725 void *ptr;
23726 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23727 _v = 0;
23728 PyErr_Clear();
23729 } else {
23730 _v = 1;
23731 }
23732 }
23733 if (_v) {
23734 _v = SWIG_CheckInt(argv[1]);
23735 if (_v) {
23736 return _wrap_DataFormat___eq____SWIG_0(self,args);
23737 }
23738 }
23739 }
23740
23741 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
23742 return NULL;
23743 }
23744
23745
23746 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
23747 PyObject *resultobj;
23748 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23749 wxDataFormat *arg2 = 0 ;
23750 bool result;
23751 PyObject * obj0 = 0 ;
23752 PyObject * obj1 = 0 ;
23753
23754 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23758 SWIG_POINTER_EXCEPTION | 0)) == -1)
23759 SWIG_fail;
23760 if (arg2 == NULL) {
23761 PyErr_SetString(PyExc_TypeError,"null reference");
23762 SWIG_fail;
23763 }
23764 {
23765 PyThreadState* __tstate = wxPyBeginAllowThreads();
23766 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
23767
23768 wxPyEndAllowThreads(__tstate);
23769 if (PyErr_Occurred()) SWIG_fail;
23770 }
23771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23772 return resultobj;
23773 fail:
23774 return NULL;
23775 }
23776
23777
23778 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
23779 int argc;
23780 PyObject *argv[3];
23781 int ii;
23782
23783 argc = PyObject_Length(args);
23784 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23785 argv[ii] = PyTuple_GetItem(args,ii);
23786 }
23787 if (argc == 2) {
23788 int _v;
23789 {
23790 void *ptr;
23791 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23792 _v = 0;
23793 PyErr_Clear();
23794 } else {
23795 _v = 1;
23796 }
23797 }
23798 if (_v) {
23799 {
23800 void *ptr;
23801 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23802 _v = 0;
23803 PyErr_Clear();
23804 } else {
23805 _v = 1;
23806 }
23807 }
23808 if (_v) {
23809 return _wrap_DataFormat___ne____SWIG_1(self,args);
23810 }
23811 }
23812 }
23813 if (argc == 2) {
23814 int _v;
23815 {
23816 void *ptr;
23817 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23818 _v = 0;
23819 PyErr_Clear();
23820 } else {
23821 _v = 1;
23822 }
23823 }
23824 if (_v) {
23825 _v = SWIG_CheckInt(argv[1]);
23826 if (_v) {
23827 return _wrap_DataFormat___ne____SWIG_0(self,args);
23828 }
23829 }
23830 }
23831
23832 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
23833 return NULL;
23834 }
23835
23836
23837 static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
23838 PyObject *resultobj;
23839 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23840 int arg2 ;
23841 PyObject * obj0 = 0 ;
23842 PyObject * obj1 = 0 ;
23843 char *kwnames[] = {
23844 (char *) "self",(char *) "format", NULL
23845 };
23846
23847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
23848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23850 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23851 if (PyErr_Occurred()) SWIG_fail;
23852 {
23853 PyThreadState* __tstate = wxPyBeginAllowThreads();
23854 (arg1)->SetType((wxDataFormatId )arg2);
23855
23856 wxPyEndAllowThreads(__tstate);
23857 if (PyErr_Occurred()) SWIG_fail;
23858 }
23859 Py_INCREF(Py_None); resultobj = Py_None;
23860 return resultobj;
23861 fail:
23862 return NULL;
23863 }
23864
23865
23866 static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
23867 PyObject *resultobj;
23868 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23869 int result;
23870 PyObject * obj0 = 0 ;
23871 char *kwnames[] = {
23872 (char *) "self", NULL
23873 };
23874
23875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
23876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23878 {
23879 PyThreadState* __tstate = wxPyBeginAllowThreads();
23880 result = (int)((wxDataFormat const *)arg1)->GetType();
23881
23882 wxPyEndAllowThreads(__tstate);
23883 if (PyErr_Occurred()) SWIG_fail;
23884 }
23885 resultobj = SWIG_FromInt((int)result);
23886 return resultobj;
23887 fail:
23888 return NULL;
23889 }
23890
23891
23892 static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
23893 PyObject *resultobj;
23894 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23895 wxString result;
23896 PyObject * obj0 = 0 ;
23897 char *kwnames[] = {
23898 (char *) "self", NULL
23899 };
23900
23901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
23902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23904 {
23905 PyThreadState* __tstate = wxPyBeginAllowThreads();
23906 result = ((wxDataFormat const *)arg1)->GetId();
23907
23908 wxPyEndAllowThreads(__tstate);
23909 if (PyErr_Occurred()) SWIG_fail;
23910 }
23911 {
23912 #if wxUSE_UNICODE
23913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23914 #else
23915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23916 #endif
23917 }
23918 return resultobj;
23919 fail:
23920 return NULL;
23921 }
23922
23923
23924 static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
23925 PyObject *resultobj;
23926 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23927 wxString *arg2 = 0 ;
23928 bool temp2 = False ;
23929 PyObject * obj0 = 0 ;
23930 PyObject * obj1 = 0 ;
23931 char *kwnames[] = {
23932 (char *) "self",(char *) "format", NULL
23933 };
23934
23935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
23936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23938 {
23939 arg2 = wxString_in_helper(obj1);
23940 if (arg2 == NULL) SWIG_fail;
23941 temp2 = True;
23942 }
23943 {
23944 PyThreadState* __tstate = wxPyBeginAllowThreads();
23945 (arg1)->SetId((wxString const &)*arg2);
23946
23947 wxPyEndAllowThreads(__tstate);
23948 if (PyErr_Occurred()) SWIG_fail;
23949 }
23950 Py_INCREF(Py_None); resultobj = Py_None;
23951 {
23952 if (temp2)
23953 delete arg2;
23954 }
23955 return resultobj;
23956 fail:
23957 {
23958 if (temp2)
23959 delete arg2;
23960 }
23961 return NULL;
23962 }
23963
23964
23965 static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
23966 PyObject *obj;
23967 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23968 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
23969 Py_INCREF(obj);
23970 return Py_BuildValue((char *)"");
23971 }
23972 static int _wrap_FormatInvalid_set(PyObject *) {
23973 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
23974 return 1;
23975 }
23976
23977
23978 static PyObject *_wrap_FormatInvalid_get() {
23979 PyObject *pyobj;
23980
23981 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
23982 return pyobj;
23983 }
23984
23985
23986 static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
23987 PyObject *resultobj;
23988 wxDataObject *arg1 = (wxDataObject *) 0 ;
23989 PyObject * obj0 = 0 ;
23990 char *kwnames[] = {
23991 (char *) "self", NULL
23992 };
23993
23994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
23995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
23996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23997 {
23998 PyThreadState* __tstate = wxPyBeginAllowThreads();
23999 delete arg1;
24000
24001 wxPyEndAllowThreads(__tstate);
24002 if (PyErr_Occurred()) SWIG_fail;
24003 }
24004 Py_INCREF(Py_None); resultobj = Py_None;
24005 return resultobj;
24006 fail:
24007 return NULL;
24008 }
24009
24010
24011 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24012 PyObject *resultobj;
24013 wxDataObject *arg1 = (wxDataObject *) 0 ;
24014 int arg2 = (int) wxDataObject::Get ;
24015 SwigValueWrapper< wxDataFormat > result;
24016 PyObject * obj0 = 0 ;
24017 PyObject * obj1 = 0 ;
24018 char *kwnames[] = {
24019 (char *) "self",(char *) "dir", NULL
24020 };
24021
24022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24025 if (obj1) {
24026 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24027 if (PyErr_Occurred()) SWIG_fail;
24028 }
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24032
24033 wxPyEndAllowThreads(__tstate);
24034 if (PyErr_Occurred()) SWIG_fail;
24035 }
24036 {
24037 wxDataFormat * resultptr;
24038 resultptr = new wxDataFormat((wxDataFormat &) result);
24039 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24040 }
24041 return resultobj;
24042 fail:
24043 return NULL;
24044 }
24045
24046
24047 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
24048 PyObject *resultobj;
24049 wxDataObject *arg1 = (wxDataObject *) 0 ;
24050 int arg2 = (int) wxDataObject::Get ;
24051 size_t result;
24052 PyObject * obj0 = 0 ;
24053 PyObject * obj1 = 0 ;
24054 char *kwnames[] = {
24055 (char *) "self",(char *) "dir", NULL
24056 };
24057
24058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24061 if (obj1) {
24062 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24063 if (PyErr_Occurred()) SWIG_fail;
24064 }
24065 {
24066 PyThreadState* __tstate = wxPyBeginAllowThreads();
24067 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24068
24069 wxPyEndAllowThreads(__tstate);
24070 if (PyErr_Occurred()) SWIG_fail;
24071 }
24072 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24073 return resultobj;
24074 fail:
24075 return NULL;
24076 }
24077
24078
24079 static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
24080 PyObject *resultobj;
24081 wxDataObject *arg1 = (wxDataObject *) 0 ;
24082 wxDataFormat *arg2 = 0 ;
24083 int arg3 = (int) wxDataObject::Get ;
24084 bool result;
24085 PyObject * obj0 = 0 ;
24086 PyObject * obj1 = 0 ;
24087 PyObject * obj2 = 0 ;
24088 char *kwnames[] = {
24089 (char *) "self",(char *) "format",(char *) "dir", NULL
24090 };
24091
24092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24095 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24096 SWIG_POINTER_EXCEPTION | 0)) == -1)
24097 SWIG_fail;
24098 if (arg2 == NULL) {
24099 PyErr_SetString(PyExc_TypeError,"null reference");
24100 SWIG_fail;
24101 }
24102 if (obj2) {
24103 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24104 if (PyErr_Occurred()) SWIG_fail;
24105 }
24106 {
24107 PyThreadState* __tstate = wxPyBeginAllowThreads();
24108 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24109
24110 wxPyEndAllowThreads(__tstate);
24111 if (PyErr_Occurred()) SWIG_fail;
24112 }
24113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24114 return resultobj;
24115 fail:
24116 return NULL;
24117 }
24118
24119
24120 static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
24121 PyObject *resultobj;
24122 wxDataObject *arg1 = (wxDataObject *) 0 ;
24123 wxDataFormat *arg2 = 0 ;
24124 size_t result;
24125 PyObject * obj0 = 0 ;
24126 PyObject * obj1 = 0 ;
24127 char *kwnames[] = {
24128 (char *) "self",(char *) "format", NULL
24129 };
24130
24131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24135 SWIG_POINTER_EXCEPTION | 0)) == -1)
24136 SWIG_fail;
24137 if (arg2 == NULL) {
24138 PyErr_SetString(PyExc_TypeError,"null reference");
24139 SWIG_fail;
24140 }
24141 {
24142 PyThreadState* __tstate = wxPyBeginAllowThreads();
24143 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24144
24145 wxPyEndAllowThreads(__tstate);
24146 if (PyErr_Occurred()) SWIG_fail;
24147 }
24148 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24149 return resultobj;
24150 fail:
24151 return NULL;
24152 }
24153
24154
24155 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
24156 PyObject *resultobj;
24157 wxDataObject *arg1 = (wxDataObject *) 0 ;
24158 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
24159 int arg3 = (int) wxDataObject::Get ;
24160 PyObject * obj0 = 0 ;
24161 PyObject * obj1 = 0 ;
24162 PyObject * obj2 = 0 ;
24163 char *kwnames[] = {
24164 (char *) "self",(char *) "formats",(char *) "dir", NULL
24165 };
24166
24167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail;
24168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24170 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24172 if (obj2) {
24173 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24174 if (PyErr_Occurred()) SWIG_fail;
24175 }
24176 {
24177 PyThreadState* __tstate = wxPyBeginAllowThreads();
24178 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
24179
24180 wxPyEndAllowThreads(__tstate);
24181 if (PyErr_Occurred()) SWIG_fail;
24182 }
24183 Py_INCREF(Py_None); resultobj = Py_None;
24184 return resultobj;
24185 fail:
24186 return NULL;
24187 }
24188
24189
24190 static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
24191 PyObject *resultobj;
24192 wxDataObject *arg1 = (wxDataObject *) 0 ;
24193 wxDataFormat *arg2 = 0 ;
24194 void *arg3 = (void *) 0 ;
24195 bool result;
24196 PyObject * obj0 = 0 ;
24197 PyObject * obj1 = 0 ;
24198 PyObject * obj2 = 0 ;
24199 char *kwnames[] = {
24200 (char *) "self",(char *) "format",(char *) "buf", NULL
24201 };
24202
24203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
24204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24207 SWIG_POINTER_EXCEPTION | 0)) == -1)
24208 SWIG_fail;
24209 if (arg2 == NULL) {
24210 PyErr_SetString(PyExc_TypeError,"null reference");
24211 SWIG_fail;
24212 }
24213 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24214 {
24215 PyThreadState* __tstate = wxPyBeginAllowThreads();
24216 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
24217
24218 wxPyEndAllowThreads(__tstate);
24219 if (PyErr_Occurred()) SWIG_fail;
24220 }
24221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24222 return resultobj;
24223 fail:
24224 return NULL;
24225 }
24226
24227
24228 static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24229 PyObject *resultobj;
24230 wxDataObject *arg1 = (wxDataObject *) 0 ;
24231 wxDataFormat *arg2 = 0 ;
24232 size_t arg3 ;
24233 void *arg4 = (void *) 0 ;
24234 bool result;
24235 PyObject * obj0 = 0 ;
24236 PyObject * obj1 = 0 ;
24237 PyObject * obj2 = 0 ;
24238 PyObject * obj3 = 0 ;
24239 char *kwnames[] = {
24240 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
24241 };
24242
24243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24246 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24247 SWIG_POINTER_EXCEPTION | 0)) == -1)
24248 SWIG_fail;
24249 if (arg2 == NULL) {
24250 PyErr_SetString(PyExc_TypeError,"null reference");
24251 SWIG_fail;
24252 }
24253 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
24254 if (PyErr_Occurred()) SWIG_fail;
24255 if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24256 {
24257 PyThreadState* __tstate = wxPyBeginAllowThreads();
24258 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
24259
24260 wxPyEndAllowThreads(__tstate);
24261 if (PyErr_Occurred()) SWIG_fail;
24262 }
24263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24264 return resultobj;
24265 fail:
24266 return NULL;
24267 }
24268
24269
24270 static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
24271 PyObject *obj;
24272 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24273 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24274 Py_INCREF(obj);
24275 return Py_BuildValue((char *)"");
24276 }
24277 static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
24278 PyObject *resultobj;
24279 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24280 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24281 wxDataObjectSimple *result;
24282 PyObject * obj0 = 0 ;
24283 char *kwnames[] = {
24284 (char *) "format", NULL
24285 };
24286
24287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24288 if (obj0) {
24289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24290 SWIG_POINTER_EXCEPTION | 0)) == -1)
24291 SWIG_fail;
24292 if (arg1 == NULL) {
24293 PyErr_SetString(PyExc_TypeError,"null reference");
24294 SWIG_fail;
24295 }
24296 }
24297 {
24298 PyThreadState* __tstate = wxPyBeginAllowThreads();
24299 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24300
24301 wxPyEndAllowThreads(__tstate);
24302 if (PyErr_Occurred()) SWIG_fail;
24303 }
24304 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24305 return resultobj;
24306 fail:
24307 return NULL;
24308 }
24309
24310
24311 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24312 PyObject *resultobj;
24313 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24314 wxDataFormat *result;
24315 PyObject * obj0 = 0 ;
24316 char *kwnames[] = {
24317 (char *) "self", NULL
24318 };
24319
24320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24323 {
24324 PyThreadState* __tstate = wxPyBeginAllowThreads();
24325 {
24326 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24327 result = (wxDataFormat *) &_result_ref;
24328 }
24329
24330 wxPyEndAllowThreads(__tstate);
24331 if (PyErr_Occurred()) SWIG_fail;
24332 }
24333 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24334 return resultobj;
24335 fail:
24336 return NULL;
24337 }
24338
24339
24340 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24341 PyObject *resultobj;
24342 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24343 wxDataFormat *arg2 = 0 ;
24344 PyObject * obj0 = 0 ;
24345 PyObject * obj1 = 0 ;
24346 char *kwnames[] = {
24347 (char *) "self",(char *) "format", NULL
24348 };
24349
24350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24353 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24354 SWIG_POINTER_EXCEPTION | 0)) == -1)
24355 SWIG_fail;
24356 if (arg2 == NULL) {
24357 PyErr_SetString(PyExc_TypeError,"null reference");
24358 SWIG_fail;
24359 }
24360 {
24361 PyThreadState* __tstate = wxPyBeginAllowThreads();
24362 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24363
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 Py_INCREF(Py_None); resultobj = Py_None;
24368 return resultobj;
24369 fail:
24370 return NULL;
24371 }
24372
24373
24374 static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
24375 PyObject *obj;
24376 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24377 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24378 Py_INCREF(obj);
24379 return Py_BuildValue((char *)"");
24380 }
24381 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
24382 PyObject *resultobj;
24383 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24384 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24385 wxPyDataObjectSimple *result;
24386 PyObject * obj0 = 0 ;
24387 char *kwnames[] = {
24388 (char *) "format", NULL
24389 };
24390
24391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24392 if (obj0) {
24393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24394 SWIG_POINTER_EXCEPTION | 0)) == -1)
24395 SWIG_fail;
24396 if (arg1 == NULL) {
24397 PyErr_SetString(PyExc_TypeError,"null reference");
24398 SWIG_fail;
24399 }
24400 }
24401 {
24402 PyThreadState* __tstate = wxPyBeginAllowThreads();
24403 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24404
24405 wxPyEndAllowThreads(__tstate);
24406 if (PyErr_Occurred()) SWIG_fail;
24407 }
24408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24409 return resultobj;
24410 fail:
24411 return NULL;
24412 }
24413
24414
24415 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
24416 PyObject *resultobj;
24417 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24418 PyObject *arg2 = (PyObject *) 0 ;
24419 PyObject *arg3 = (PyObject *) 0 ;
24420 PyObject * obj0 = 0 ;
24421 PyObject * obj1 = 0 ;
24422 PyObject * obj2 = 0 ;
24423 char *kwnames[] = {
24424 (char *) "self",(char *) "self",(char *) "_class", NULL
24425 };
24426
24427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24430 arg2 = obj1;
24431 arg3 = obj2;
24432 {
24433 PyThreadState* __tstate = wxPyBeginAllowThreads();
24434 (arg1)->_setCallbackInfo(arg2,arg3);
24435
24436 wxPyEndAllowThreads(__tstate);
24437 if (PyErr_Occurred()) SWIG_fail;
24438 }
24439 Py_INCREF(Py_None); resultobj = Py_None;
24440 return resultobj;
24441 fail:
24442 return NULL;
24443 }
24444
24445
24446 static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
24447 PyObject *obj;
24448 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24449 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24450 Py_INCREF(obj);
24451 return Py_BuildValue((char *)"");
24452 }
24453 static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
24454 PyObject *resultobj;
24455 wxDataObjectComposite *result;
24456 char *kwnames[] = {
24457 NULL
24458 };
24459
24460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24461 {
24462 PyThreadState* __tstate = wxPyBeginAllowThreads();
24463 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24464
24465 wxPyEndAllowThreads(__tstate);
24466 if (PyErr_Occurred()) SWIG_fail;
24467 }
24468 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24469 return resultobj;
24470 fail:
24471 return NULL;
24472 }
24473
24474
24475 static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
24476 PyObject *resultobj;
24477 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24478 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24479 int arg3 = (int) False ;
24480 PyObject * obj0 = 0 ;
24481 PyObject * obj1 = 0 ;
24482 PyObject * obj2 = 0 ;
24483 char *kwnames[] = {
24484 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24485 };
24486
24487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24491 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24492 if (obj2) {
24493 arg3 = (int) SWIG_AsInt(obj2);
24494 if (PyErr_Occurred()) SWIG_fail;
24495 }
24496 {
24497 PyThreadState* __tstate = wxPyBeginAllowThreads();
24498 (arg1)->Add(arg2,arg3);
24499
24500 wxPyEndAllowThreads(__tstate);
24501 if (PyErr_Occurred()) SWIG_fail;
24502 }
24503 Py_INCREF(Py_None); resultobj = Py_None;
24504 return resultobj;
24505 fail:
24506 return NULL;
24507 }
24508
24509
24510 static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
24511 PyObject *obj;
24512 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24513 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24514 Py_INCREF(obj);
24515 return Py_BuildValue((char *)"");
24516 }
24517 static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24518 PyObject *resultobj;
24519 wxString const &arg1_defvalue = wxPyEmptyString ;
24520 wxString *arg1 = (wxString *) &arg1_defvalue ;
24521 wxTextDataObject *result;
24522 bool temp1 = False ;
24523 PyObject * obj0 = 0 ;
24524 char *kwnames[] = {
24525 (char *) "text", NULL
24526 };
24527
24528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24529 if (obj0) {
24530 {
24531 arg1 = wxString_in_helper(obj0);
24532 if (arg1 == NULL) SWIG_fail;
24533 temp1 = True;
24534 }
24535 }
24536 {
24537 PyThreadState* __tstate = wxPyBeginAllowThreads();
24538 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24539
24540 wxPyEndAllowThreads(__tstate);
24541 if (PyErr_Occurred()) SWIG_fail;
24542 }
24543 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24544 {
24545 if (temp1)
24546 delete arg1;
24547 }
24548 return resultobj;
24549 fail:
24550 {
24551 if (temp1)
24552 delete arg1;
24553 }
24554 return NULL;
24555 }
24556
24557
24558 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
24559 PyObject *resultobj;
24560 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24561 size_t result;
24562 PyObject * obj0 = 0 ;
24563 char *kwnames[] = {
24564 (char *) "self", NULL
24565 };
24566
24567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24570 {
24571 PyThreadState* __tstate = wxPyBeginAllowThreads();
24572 result = (size_t)(arg1)->GetTextLength();
24573
24574 wxPyEndAllowThreads(__tstate);
24575 if (PyErr_Occurred()) SWIG_fail;
24576 }
24577 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24578 return resultobj;
24579 fail:
24580 return NULL;
24581 }
24582
24583
24584 static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
24585 PyObject *resultobj;
24586 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24587 wxString result;
24588 PyObject * obj0 = 0 ;
24589 char *kwnames[] = {
24590 (char *) "self", NULL
24591 };
24592
24593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24596 {
24597 PyThreadState* __tstate = wxPyBeginAllowThreads();
24598 result = (arg1)->GetText();
24599
24600 wxPyEndAllowThreads(__tstate);
24601 if (PyErr_Occurred()) SWIG_fail;
24602 }
24603 {
24604 #if wxUSE_UNICODE
24605 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24606 #else
24607 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24608 #endif
24609 }
24610 return resultobj;
24611 fail:
24612 return NULL;
24613 }
24614
24615
24616 static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
24617 PyObject *resultobj;
24618 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24619 wxString *arg2 = 0 ;
24620 bool temp2 = False ;
24621 PyObject * obj0 = 0 ;
24622 PyObject * obj1 = 0 ;
24623 char *kwnames[] = {
24624 (char *) "self",(char *) "text", NULL
24625 };
24626
24627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24630 {
24631 arg2 = wxString_in_helper(obj1);
24632 if (arg2 == NULL) SWIG_fail;
24633 temp2 = True;
24634 }
24635 {
24636 PyThreadState* __tstate = wxPyBeginAllowThreads();
24637 (arg1)->SetText((wxString const &)*arg2);
24638
24639 wxPyEndAllowThreads(__tstate);
24640 if (PyErr_Occurred()) SWIG_fail;
24641 }
24642 Py_INCREF(Py_None); resultobj = Py_None;
24643 {
24644 if (temp2)
24645 delete arg2;
24646 }
24647 return resultobj;
24648 fail:
24649 {
24650 if (temp2)
24651 delete arg2;
24652 }
24653 return NULL;
24654 }
24655
24656
24657 static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
24658 PyObject *obj;
24659 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24660 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
24661 Py_INCREF(obj);
24662 return Py_BuildValue((char *)"");
24663 }
24664 static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24665 PyObject *resultobj;
24666 wxString const &arg1_defvalue = wxPyEmptyString ;
24667 wxString *arg1 = (wxString *) &arg1_defvalue ;
24668 wxPyTextDataObject *result;
24669 bool temp1 = False ;
24670 PyObject * obj0 = 0 ;
24671 char *kwnames[] = {
24672 (char *) "text", NULL
24673 };
24674
24675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
24676 if (obj0) {
24677 {
24678 arg1 = wxString_in_helper(obj0);
24679 if (arg1 == NULL) SWIG_fail;
24680 temp1 = True;
24681 }
24682 }
24683 {
24684 PyThreadState* __tstate = wxPyBeginAllowThreads();
24685 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
24686
24687 wxPyEndAllowThreads(__tstate);
24688 if (PyErr_Occurred()) SWIG_fail;
24689 }
24690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
24691 {
24692 if (temp1)
24693 delete arg1;
24694 }
24695 return resultobj;
24696 fail:
24697 {
24698 if (temp1)
24699 delete arg1;
24700 }
24701 return NULL;
24702 }
24703
24704
24705 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
24706 PyObject *resultobj;
24707 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
24708 PyObject *arg2 = (PyObject *) 0 ;
24709 PyObject *arg3 = (PyObject *) 0 ;
24710 PyObject * obj0 = 0 ;
24711 PyObject * obj1 = 0 ;
24712 PyObject * obj2 = 0 ;
24713 char *kwnames[] = {
24714 (char *) "self",(char *) "self",(char *) "_class", NULL
24715 };
24716
24717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
24719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24720 arg2 = obj1;
24721 arg3 = obj2;
24722 {
24723 PyThreadState* __tstate = wxPyBeginAllowThreads();
24724 (arg1)->_setCallbackInfo(arg2,arg3);
24725
24726 wxPyEndAllowThreads(__tstate);
24727 if (PyErr_Occurred()) SWIG_fail;
24728 }
24729 Py_INCREF(Py_None); resultobj = Py_None;
24730 return resultobj;
24731 fail:
24732 return NULL;
24733 }
24734
24735
24736 static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
24737 PyObject *obj;
24738 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24739 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
24740 Py_INCREF(obj);
24741 return Py_BuildValue((char *)"");
24742 }
24743 static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24744 PyObject *resultobj;
24745 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24746 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24747 wxBitmapDataObject *result;
24748 PyObject * obj0 = 0 ;
24749 char *kwnames[] = {
24750 (char *) "bitmap", NULL
24751 };
24752
24753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
24754 if (obj0) {
24755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
24756 SWIG_POINTER_EXCEPTION | 0)) == -1)
24757 SWIG_fail;
24758 if (arg1 == NULL) {
24759 PyErr_SetString(PyExc_TypeError,"null reference");
24760 SWIG_fail;
24761 }
24762 }
24763 {
24764 PyThreadState* __tstate = wxPyBeginAllowThreads();
24765 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
24766
24767 wxPyEndAllowThreads(__tstate);
24768 if (PyErr_Occurred()) SWIG_fail;
24769 }
24770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
24771 return resultobj;
24772 fail:
24773 return NULL;
24774 }
24775
24776
24777 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
24778 PyObject *resultobj;
24779 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
24780 wxBitmap result;
24781 PyObject * obj0 = 0 ;
24782 char *kwnames[] = {
24783 (char *) "self", NULL
24784 };
24785
24786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
24787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
24788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24789 {
24790 PyThreadState* __tstate = wxPyBeginAllowThreads();
24791 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
24792
24793 wxPyEndAllowThreads(__tstate);
24794 if (PyErr_Occurred()) SWIG_fail;
24795 }
24796 {
24797 wxBitmap * resultptr;
24798 resultptr = new wxBitmap((wxBitmap &) result);
24799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
24800 }
24801 return resultobj;
24802 fail:
24803 return NULL;
24804 }
24805
24806
24807 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
24808 PyObject *resultobj;
24809 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
24810 wxBitmap *arg2 = 0 ;
24811 PyObject * obj0 = 0 ;
24812 PyObject * obj1 = 0 ;
24813 char *kwnames[] = {
24814 (char *) "self",(char *) "bitmap", NULL
24815 };
24816
24817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
24818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
24819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
24821 SWIG_POINTER_EXCEPTION | 0)) == -1)
24822 SWIG_fail;
24823 if (arg2 == NULL) {
24824 PyErr_SetString(PyExc_TypeError,"null reference");
24825 SWIG_fail;
24826 }
24827 {
24828 PyThreadState* __tstate = wxPyBeginAllowThreads();
24829 (arg1)->SetBitmap((wxBitmap const &)*arg2);
24830
24831 wxPyEndAllowThreads(__tstate);
24832 if (PyErr_Occurred()) SWIG_fail;
24833 }
24834 Py_INCREF(Py_None); resultobj = Py_None;
24835 return resultobj;
24836 fail:
24837 return NULL;
24838 }
24839
24840
24841 static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
24842 PyObject *obj;
24843 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24844 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
24845 Py_INCREF(obj);
24846 return Py_BuildValue((char *)"");
24847 }
24848 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24849 PyObject *resultobj;
24850 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24851 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24852 wxPyBitmapDataObject *result;
24853 PyObject * obj0 = 0 ;
24854 char *kwnames[] = {
24855 (char *) "bitmap", NULL
24856 };
24857
24858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
24859 if (obj0) {
24860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
24861 SWIG_POINTER_EXCEPTION | 0)) == -1)
24862 SWIG_fail;
24863 if (arg1 == NULL) {
24864 PyErr_SetString(PyExc_TypeError,"null reference");
24865 SWIG_fail;
24866 }
24867 }
24868 {
24869 PyThreadState* __tstate = wxPyBeginAllowThreads();
24870 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
24871
24872 wxPyEndAllowThreads(__tstate);
24873 if (PyErr_Occurred()) SWIG_fail;
24874 }
24875 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
24876 return resultobj;
24877 fail:
24878 return NULL;
24879 }
24880
24881
24882 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
24883 PyObject *resultobj;
24884 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
24885 PyObject *arg2 = (PyObject *) 0 ;
24886 PyObject *arg3 = (PyObject *) 0 ;
24887 PyObject * obj0 = 0 ;
24888 PyObject * obj1 = 0 ;
24889 PyObject * obj2 = 0 ;
24890 char *kwnames[] = {
24891 (char *) "self",(char *) "self",(char *) "_class", NULL
24892 };
24893
24894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
24896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24897 arg2 = obj1;
24898 arg3 = obj2;
24899 {
24900 PyThreadState* __tstate = wxPyBeginAllowThreads();
24901 (arg1)->_setCallbackInfo(arg2,arg3);
24902
24903 wxPyEndAllowThreads(__tstate);
24904 if (PyErr_Occurred()) SWIG_fail;
24905 }
24906 Py_INCREF(Py_None); resultobj = Py_None;
24907 return resultobj;
24908 fail:
24909 return NULL;
24910 }
24911
24912
24913 static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
24914 PyObject *obj;
24915 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24916 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
24917 Py_INCREF(obj);
24918 return Py_BuildValue((char *)"");
24919 }
24920 static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24921 PyObject *resultobj;
24922 wxFileDataObject *result;
24923 char *kwnames[] = {
24924 NULL
24925 };
24926
24927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
24928 {
24929 PyThreadState* __tstate = wxPyBeginAllowThreads();
24930 result = (wxFileDataObject *)new wxFileDataObject();
24931
24932 wxPyEndAllowThreads(__tstate);
24933 if (PyErr_Occurred()) SWIG_fail;
24934 }
24935 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
24936 return resultobj;
24937 fail:
24938 return NULL;
24939 }
24940
24941
24942 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
24943 PyObject *resultobj;
24944 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
24945 wxArrayString *result;
24946 PyObject * obj0 = 0 ;
24947 char *kwnames[] = {
24948 (char *) "self", NULL
24949 };
24950
24951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
24952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
24953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24954 {
24955 PyThreadState* __tstate = wxPyBeginAllowThreads();
24956 {
24957 wxArrayString const &_result_ref = (arg1)->GetFilenames();
24958 result = (wxArrayString *) &_result_ref;
24959 }
24960
24961 wxPyEndAllowThreads(__tstate);
24962 if (PyErr_Occurred()) SWIG_fail;
24963 }
24964 {
24965 resultobj = wxArrayString2PyList_helper(*result);
24966 }
24967 return resultobj;
24968 fail:
24969 return NULL;
24970 }
24971
24972
24973 static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
24974 PyObject *resultobj;
24975 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
24976 wxString *arg2 = 0 ;
24977 bool temp2 = False ;
24978 PyObject * obj0 = 0 ;
24979 PyObject * obj1 = 0 ;
24980 char *kwnames[] = {
24981 (char *) "self",(char *) "filename", NULL
24982 };
24983
24984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
24985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
24986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24987 {
24988 arg2 = wxString_in_helper(obj1);
24989 if (arg2 == NULL) SWIG_fail;
24990 temp2 = True;
24991 }
24992 {
24993 PyThreadState* __tstate = wxPyBeginAllowThreads();
24994 (arg1)->AddFile((wxString const &)*arg2);
24995
24996 wxPyEndAllowThreads(__tstate);
24997 if (PyErr_Occurred()) SWIG_fail;
24998 }
24999 Py_INCREF(Py_None); resultobj = Py_None;
25000 {
25001 if (temp2)
25002 delete arg2;
25003 }
25004 return resultobj;
25005 fail:
25006 {
25007 if (temp2)
25008 delete arg2;
25009 }
25010 return NULL;
25011 }
25012
25013
25014 static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
25015 PyObject *obj;
25016 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25017 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25018 Py_INCREF(obj);
25019 return Py_BuildValue((char *)"");
25020 }
25021 static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25022 PyObject *resultobj;
25023 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25024 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25025 wxCustomDataObject *result;
25026 PyObject * obj0 = 0 ;
25027 char *kwnames[] = {
25028 (char *) "format", NULL
25029 };
25030
25031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25032 if (obj0) {
25033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25034 SWIG_POINTER_EXCEPTION | 0)) == -1)
25035 SWIG_fail;
25036 if (arg1 == NULL) {
25037 PyErr_SetString(PyExc_TypeError,"null reference");
25038 SWIG_fail;
25039 }
25040 }
25041 {
25042 PyThreadState* __tstate = wxPyBeginAllowThreads();
25043 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25044
25045 wxPyEndAllowThreads(__tstate);
25046 if (PyErr_Occurred()) SWIG_fail;
25047 }
25048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25049 return resultobj;
25050 fail:
25051 return NULL;
25052 }
25053
25054
25055 static PyObject *_wrap_CustomDataObject_TakeData(PyObject *, PyObject *args, PyObject *kwargs) {
25056 PyObject *resultobj;
25057 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25058 PyObject *arg2 = (PyObject *) 0 ;
25059 PyObject * obj0 = 0 ;
25060 PyObject * obj1 = 0 ;
25061 char *kwnames[] = {
25062 (char *) "self",(char *) "data", NULL
25063 };
25064
25065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
25066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25068 arg2 = obj1;
25069 {
25070 PyThreadState* __tstate = wxPyBeginAllowThreads();
25071 wxCustomDataObject_TakeData(arg1,arg2);
25072
25073 wxPyEndAllowThreads(__tstate);
25074 if (PyErr_Occurred()) SWIG_fail;
25075 }
25076 Py_INCREF(Py_None); resultobj = Py_None;
25077 return resultobj;
25078 fail:
25079 return NULL;
25080 }
25081
25082
25083 static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25084 PyObject *resultobj;
25085 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25086 PyObject *arg2 = (PyObject *) 0 ;
25087 bool result;
25088 PyObject * obj0 = 0 ;
25089 PyObject * obj1 = 0 ;
25090 char *kwnames[] = {
25091 (char *) "self",(char *) "data", NULL
25092 };
25093
25094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25097 arg2 = obj1;
25098 {
25099 PyThreadState* __tstate = wxPyBeginAllowThreads();
25100 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25101
25102 wxPyEndAllowThreads(__tstate);
25103 if (PyErr_Occurred()) SWIG_fail;
25104 }
25105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25106 return resultobj;
25107 fail:
25108 return NULL;
25109 }
25110
25111
25112 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
25113 PyObject *resultobj;
25114 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25115 size_t result;
25116 PyObject * obj0 = 0 ;
25117 char *kwnames[] = {
25118 (char *) "self", NULL
25119 };
25120
25121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25124 {
25125 PyThreadState* __tstate = wxPyBeginAllowThreads();
25126 result = (size_t)(arg1)->GetSize();
25127
25128 wxPyEndAllowThreads(__tstate);
25129 if (PyErr_Occurred()) SWIG_fail;
25130 }
25131 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25132 return resultobj;
25133 fail:
25134 return NULL;
25135 }
25136
25137
25138 static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
25139 PyObject *resultobj;
25140 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25141 PyObject *result;
25142 PyObject * obj0 = 0 ;
25143 char *kwnames[] = {
25144 (char *) "self", NULL
25145 };
25146
25147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25150 {
25151 PyThreadState* __tstate = wxPyBeginAllowThreads();
25152 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25153
25154 wxPyEndAllowThreads(__tstate);
25155 if (PyErr_Occurred()) SWIG_fail;
25156 }
25157 resultobj = result;
25158 return resultobj;
25159 fail:
25160 return NULL;
25161 }
25162
25163
25164 static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
25165 PyObject *obj;
25166 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25167 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25168 Py_INCREF(obj);
25169 return Py_BuildValue((char *)"");
25170 }
25171 static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25172 PyObject *resultobj;
25173 wxURLDataObject *result;
25174 char *kwnames[] = {
25175 NULL
25176 };
25177
25178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25179 {
25180 PyThreadState* __tstate = wxPyBeginAllowThreads();
25181 result = (wxURLDataObject *)new wxURLDataObject();
25182
25183 wxPyEndAllowThreads(__tstate);
25184 if (PyErr_Occurred()) SWIG_fail;
25185 }
25186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25187 return resultobj;
25188 fail:
25189 return NULL;
25190 }
25191
25192
25193 static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
25194 PyObject *resultobj;
25195 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25196 wxString result;
25197 PyObject * obj0 = 0 ;
25198 char *kwnames[] = {
25199 (char *) "self", NULL
25200 };
25201
25202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25205 {
25206 PyThreadState* __tstate = wxPyBeginAllowThreads();
25207 result = (arg1)->GetURL();
25208
25209 wxPyEndAllowThreads(__tstate);
25210 if (PyErr_Occurred()) SWIG_fail;
25211 }
25212 {
25213 #if wxUSE_UNICODE
25214 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25215 #else
25216 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25217 #endif
25218 }
25219 return resultobj;
25220 fail:
25221 return NULL;
25222 }
25223
25224
25225 static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
25226 PyObject *resultobj;
25227 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25228 wxString *arg2 = 0 ;
25229 bool temp2 = False ;
25230 PyObject * obj0 = 0 ;
25231 PyObject * obj1 = 0 ;
25232 char *kwnames[] = {
25233 (char *) "self",(char *) "url", NULL
25234 };
25235
25236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25239 {
25240 arg2 = wxString_in_helper(obj1);
25241 if (arg2 == NULL) SWIG_fail;
25242 temp2 = True;
25243 }
25244 {
25245 PyThreadState* __tstate = wxPyBeginAllowThreads();
25246 (arg1)->SetURL((wxString const &)*arg2);
25247
25248 wxPyEndAllowThreads(__tstate);
25249 if (PyErr_Occurred()) SWIG_fail;
25250 }
25251 Py_INCREF(Py_None); resultobj = Py_None;
25252 {
25253 if (temp2)
25254 delete arg2;
25255 }
25256 return resultobj;
25257 fail:
25258 {
25259 if (temp2)
25260 delete arg2;
25261 }
25262 return NULL;
25263 }
25264
25265
25266 static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
25267 PyObject *obj;
25268 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25269 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25270 Py_INCREF(obj);
25271 return Py_BuildValue((char *)"");
25272 }
25273 static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25274 PyObject *resultobj;
25275 wxMetafileDataObject *result;
25276 char *kwnames[] = {
25277 NULL
25278 };
25279
25280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25281 {
25282 PyThreadState* __tstate = wxPyBeginAllowThreads();
25283 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25284
25285 wxPyEndAllowThreads(__tstate);
25286 if (PyErr_Occurred()) SWIG_fail;
25287 }
25288 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25289 return resultobj;
25290 fail:
25291 return NULL;
25292 }
25293
25294
25295 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
25296 PyObject *resultobj;
25297 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25298 wxMetafile *arg2 = 0 ;
25299 PyObject * obj0 = 0 ;
25300 PyObject * obj1 = 0 ;
25301 char *kwnames[] = {
25302 (char *) "self",(char *) "metafile", NULL
25303 };
25304
25305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25308 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25309 SWIG_POINTER_EXCEPTION | 0)) == -1)
25310 SWIG_fail;
25311 if (arg2 == NULL) {
25312 PyErr_SetString(PyExc_TypeError,"null reference");
25313 SWIG_fail;
25314 }
25315 {
25316 PyThreadState* __tstate = wxPyBeginAllowThreads();
25317 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25318
25319 wxPyEndAllowThreads(__tstate);
25320 if (PyErr_Occurred()) SWIG_fail;
25321 }
25322 Py_INCREF(Py_None); resultobj = Py_None;
25323 return resultobj;
25324 fail:
25325 return NULL;
25326 }
25327
25328
25329 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
25330 PyObject *resultobj;
25331 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25332 wxMetafile result;
25333 PyObject * obj0 = 0 ;
25334 char *kwnames[] = {
25335 (char *) "self", NULL
25336 };
25337
25338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25341 {
25342 PyThreadState* __tstate = wxPyBeginAllowThreads();
25343 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25344
25345 wxPyEndAllowThreads(__tstate);
25346 if (PyErr_Occurred()) SWIG_fail;
25347 }
25348 {
25349 wxMetafile * resultptr;
25350 resultptr = new wxMetafile((wxMetafile &) result);
25351 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25352 }
25353 return resultobj;
25354 fail:
25355 return NULL;
25356 }
25357
25358
25359 static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
25360 PyObject *obj;
25361 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25362 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25363 Py_INCREF(obj);
25364 return Py_BuildValue((char *)"");
25365 }
25366 static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
25367 PyObject *resultobj;
25368 int arg1 ;
25369 bool result;
25370 PyObject * obj0 = 0 ;
25371 char *kwnames[] = {
25372 (char *) "res", NULL
25373 };
25374
25375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25376 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 {
25379 PyThreadState* __tstate = wxPyBeginAllowThreads();
25380 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25381
25382 wxPyEndAllowThreads(__tstate);
25383 if (PyErr_Occurred()) SWIG_fail;
25384 }
25385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25386 return resultobj;
25387 fail:
25388 return NULL;
25389 }
25390
25391
25392 static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
25393 PyObject *resultobj;
25394 wxWindow *arg1 = (wxWindow *) 0 ;
25395 wxCursor const &arg2_defvalue = wxNullCursor ;
25396 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25397 wxCursor const &arg3_defvalue = wxNullCursor ;
25398 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25399 wxCursor const &arg4_defvalue = wxNullCursor ;
25400 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25401 wxPyDropSource *result;
25402 PyObject * obj0 = 0 ;
25403 PyObject * obj1 = 0 ;
25404 PyObject * obj2 = 0 ;
25405 PyObject * obj3 = 0 ;
25406 char *kwnames[] = {
25407 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25408 };
25409
25410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25413 if (obj1) {
25414 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25415 SWIG_POINTER_EXCEPTION | 0)) == -1)
25416 SWIG_fail;
25417 if (arg2 == NULL) {
25418 PyErr_SetString(PyExc_TypeError,"null reference");
25419 SWIG_fail;
25420 }
25421 }
25422 if (obj2) {
25423 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25424 SWIG_POINTER_EXCEPTION | 0)) == -1)
25425 SWIG_fail;
25426 if (arg3 == NULL) {
25427 PyErr_SetString(PyExc_TypeError,"null reference");
25428 SWIG_fail;
25429 }
25430 }
25431 if (obj3) {
25432 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25433 SWIG_POINTER_EXCEPTION | 0)) == -1)
25434 SWIG_fail;
25435 if (arg4 == NULL) {
25436 PyErr_SetString(PyExc_TypeError,"null reference");
25437 SWIG_fail;
25438 }
25439 }
25440 {
25441 PyThreadState* __tstate = wxPyBeginAllowThreads();
25442 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25443
25444 wxPyEndAllowThreads(__tstate);
25445 if (PyErr_Occurred()) SWIG_fail;
25446 }
25447 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25448 return resultobj;
25449 fail:
25450 return NULL;
25451 }
25452
25453
25454 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25455 PyObject *resultobj;
25456 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25457 PyObject *arg2 = (PyObject *) 0 ;
25458 PyObject *arg3 = (PyObject *) 0 ;
25459 int arg4 ;
25460 PyObject * obj0 = 0 ;
25461 PyObject * obj1 = 0 ;
25462 PyObject * obj2 = 0 ;
25463 PyObject * obj3 = 0 ;
25464 char *kwnames[] = {
25465 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25466 };
25467
25468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25471 arg2 = obj1;
25472 arg3 = obj2;
25473 arg4 = (int) SWIG_AsInt(obj3);
25474 if (PyErr_Occurred()) SWIG_fail;
25475 {
25476 PyThreadState* __tstate = wxPyBeginAllowThreads();
25477 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25478
25479 wxPyEndAllowThreads(__tstate);
25480 if (PyErr_Occurred()) SWIG_fail;
25481 }
25482 Py_INCREF(Py_None); resultobj = Py_None;
25483 return resultobj;
25484 fail:
25485 return NULL;
25486 }
25487
25488
25489 static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
25490 PyObject *resultobj;
25491 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25492 PyObject * obj0 = 0 ;
25493 char *kwnames[] = {
25494 (char *) "self", NULL
25495 };
25496
25497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25500 {
25501 PyThreadState* __tstate = wxPyBeginAllowThreads();
25502 delete arg1;
25503
25504 wxPyEndAllowThreads(__tstate);
25505 if (PyErr_Occurred()) SWIG_fail;
25506 }
25507 Py_INCREF(Py_None); resultobj = Py_None;
25508 return resultobj;
25509 fail:
25510 return NULL;
25511 }
25512
25513
25514 static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25515 PyObject *resultobj;
25516 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25517 wxDataObject *arg2 = 0 ;
25518 PyObject * obj0 = 0 ;
25519 PyObject * obj1 = 0 ;
25520 char *kwnames[] = {
25521 (char *) "self",(char *) "data", NULL
25522 };
25523
25524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25527 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25528 SWIG_POINTER_EXCEPTION | 0)) == -1)
25529 SWIG_fail;
25530 if (arg2 == NULL) {
25531 PyErr_SetString(PyExc_TypeError,"null reference");
25532 SWIG_fail;
25533 }
25534 {
25535 PyThreadState* __tstate = wxPyBeginAllowThreads();
25536 (arg1)->SetData(*arg2);
25537
25538 wxPyEndAllowThreads(__tstate);
25539 if (PyErr_Occurred()) SWIG_fail;
25540 }
25541 Py_INCREF(Py_None); resultobj = Py_None;
25542 return resultobj;
25543 fail:
25544 return NULL;
25545 }
25546
25547
25548 static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25549 PyObject *resultobj;
25550 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25551 wxDataObject *result;
25552 PyObject * obj0 = 0 ;
25553 char *kwnames[] = {
25554 (char *) "self", NULL
25555 };
25556
25557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25560 {
25561 PyThreadState* __tstate = wxPyBeginAllowThreads();
25562 result = (wxDataObject *)(arg1)->GetDataObject();
25563
25564 wxPyEndAllowThreads(__tstate);
25565 if (PyErr_Occurred()) SWIG_fail;
25566 }
25567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25568 return resultobj;
25569 fail:
25570 return NULL;
25571 }
25572
25573
25574 static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
25575 PyObject *resultobj;
25576 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25577 int arg2 ;
25578 wxCursor *arg3 = 0 ;
25579 PyObject * obj0 = 0 ;
25580 PyObject * obj1 = 0 ;
25581 PyObject * obj2 = 0 ;
25582 char *kwnames[] = {
25583 (char *) "self",(char *) "res",(char *) "cursor", NULL
25584 };
25585
25586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25589 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25590 if (PyErr_Occurred()) SWIG_fail;
25591 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25592 SWIG_POINTER_EXCEPTION | 0)) == -1)
25593 SWIG_fail;
25594 if (arg3 == NULL) {
25595 PyErr_SetString(PyExc_TypeError,"null reference");
25596 SWIG_fail;
25597 }
25598 {
25599 PyThreadState* __tstate = wxPyBeginAllowThreads();
25600 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25601
25602 wxPyEndAllowThreads(__tstate);
25603 if (PyErr_Occurred()) SWIG_fail;
25604 }
25605 Py_INCREF(Py_None); resultobj = Py_None;
25606 return resultobj;
25607 fail:
25608 return NULL;
25609 }
25610
25611
25612 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
25613 PyObject *resultobj;
25614 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25615 int arg2 = (int) wxDrag_CopyOnly ;
25616 int result;
25617 PyObject * obj0 = 0 ;
25618 PyObject * obj1 = 0 ;
25619 char *kwnames[] = {
25620 (char *) "self",(char *) "flags", NULL
25621 };
25622
25623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25626 if (obj1) {
25627 arg2 = (int) SWIG_AsInt(obj1);
25628 if (PyErr_Occurred()) SWIG_fail;
25629 }
25630 {
25631 PyThreadState* __tstate = wxPyBeginAllowThreads();
25632 result = (int)(arg1)->DoDragDrop(arg2);
25633
25634 wxPyEndAllowThreads(__tstate);
25635 if (PyErr_Occurred()) SWIG_fail;
25636 }
25637 resultobj = SWIG_FromInt((int)result);
25638 return resultobj;
25639 fail:
25640 return NULL;
25641 }
25642
25643
25644 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
25645 PyObject *resultobj;
25646 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25647 int arg2 ;
25648 bool result;
25649 PyObject * obj0 = 0 ;
25650 PyObject * obj1 = 0 ;
25651 char *kwnames[] = {
25652 (char *) "self",(char *) "effect", NULL
25653 };
25654
25655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
25656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25658 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25659 if (PyErr_Occurred()) SWIG_fail;
25660 {
25661 PyThreadState* __tstate = wxPyBeginAllowThreads();
25662 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
25663
25664 wxPyEndAllowThreads(__tstate);
25665 if (PyErr_Occurred()) SWIG_fail;
25666 }
25667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25668 return resultobj;
25669 fail:
25670 return NULL;
25671 }
25672
25673
25674 static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
25675 PyObject *obj;
25676 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25677 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
25678 Py_INCREF(obj);
25679 return Py_BuildValue((char *)"");
25680 }
25681 static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
25682 PyObject *resultobj;
25683 wxDataObject *arg1 = (wxDataObject *) NULL ;
25684 wxPyDropTarget *result;
25685 PyObject * obj0 = 0 ;
25686 char *kwnames[] = {
25687 (char *) "dataObject", NULL
25688 };
25689
25690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
25691 if (obj0) {
25692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25693 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25694 }
25695 {
25696 PyThreadState* __tstate = wxPyBeginAllowThreads();
25697 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
25698
25699 wxPyEndAllowThreads(__tstate);
25700 if (PyErr_Occurred()) SWIG_fail;
25701 }
25702 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
25703 return resultobj;
25704 fail:
25705 return NULL;
25706 }
25707
25708
25709 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25710 PyObject *resultobj;
25711 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25712 PyObject *arg2 = (PyObject *) 0 ;
25713 PyObject *arg3 = (PyObject *) 0 ;
25714 PyObject * obj0 = 0 ;
25715 PyObject * obj1 = 0 ;
25716 PyObject * obj2 = 0 ;
25717 char *kwnames[] = {
25718 (char *) "self",(char *) "self",(char *) "_class", NULL
25719 };
25720
25721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25724 arg2 = obj1;
25725 arg3 = obj2;
25726 {
25727 PyThreadState* __tstate = wxPyBeginAllowThreads();
25728 (arg1)->_setCallbackInfo(arg2,arg3);
25729
25730 wxPyEndAllowThreads(__tstate);
25731 if (PyErr_Occurred()) SWIG_fail;
25732 }
25733 Py_INCREF(Py_None); resultobj = Py_None;
25734 return resultobj;
25735 fail:
25736 return NULL;
25737 }
25738
25739
25740 static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
25741 PyObject *resultobj;
25742 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25743 PyObject * obj0 = 0 ;
25744 char *kwnames[] = {
25745 (char *) "self", NULL
25746 };
25747
25748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
25749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25751 {
25752 PyThreadState* __tstate = wxPyBeginAllowThreads();
25753 delete arg1;
25754
25755 wxPyEndAllowThreads(__tstate);
25756 if (PyErr_Occurred()) SWIG_fail;
25757 }
25758 Py_INCREF(Py_None); resultobj = Py_None;
25759 return resultobj;
25760 fail:
25761 return NULL;
25762 }
25763
25764
25765 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25766 PyObject *resultobj;
25767 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25768 wxDataObject *result;
25769 PyObject * obj0 = 0 ;
25770 char *kwnames[] = {
25771 (char *) "self", NULL
25772 };
25773
25774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
25775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25777 {
25778 PyThreadState* __tstate = wxPyBeginAllowThreads();
25779 result = (wxDataObject *)(arg1)->GetDataObject();
25780
25781 wxPyEndAllowThreads(__tstate);
25782 if (PyErr_Occurred()) SWIG_fail;
25783 }
25784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25785 return resultobj;
25786 fail:
25787 return NULL;
25788 }
25789
25790
25791 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25792 PyObject *resultobj;
25793 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25794 wxDataObject *arg2 = (wxDataObject *) 0 ;
25795 PyObject * obj0 = 0 ;
25796 PyObject * obj1 = 0 ;
25797 char *kwnames[] = {
25798 (char *) "self",(char *) "dataObject", NULL
25799 };
25800
25801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
25802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25804 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25805 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25806 {
25807 PyThreadState* __tstate = wxPyBeginAllowThreads();
25808 (arg1)->SetDataObject(arg2);
25809
25810 wxPyEndAllowThreads(__tstate);
25811 if (PyErr_Occurred()) SWIG_fail;
25812 }
25813 Py_INCREF(Py_None); resultobj = Py_None;
25814 return resultobj;
25815 fail:
25816 return NULL;
25817 }
25818
25819
25820 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
25821 PyObject *resultobj;
25822 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25823 int arg2 ;
25824 int arg3 ;
25825 int arg4 ;
25826 int result;
25827 PyObject * obj0 = 0 ;
25828 PyObject * obj1 = 0 ;
25829 PyObject * obj2 = 0 ;
25830 PyObject * obj3 = 0 ;
25831 char *kwnames[] = {
25832 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25833 };
25834
25835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25838 arg2 = (int) SWIG_AsInt(obj1);
25839 if (PyErr_Occurred()) SWIG_fail;
25840 arg3 = (int) SWIG_AsInt(obj2);
25841 if (PyErr_Occurred()) SWIG_fail;
25842 arg4 = (wxDragResult) SWIG_AsInt(obj3);
25843 if (PyErr_Occurred()) SWIG_fail;
25844 {
25845 PyThreadState* __tstate = wxPyBeginAllowThreads();
25846 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
25847
25848 wxPyEndAllowThreads(__tstate);
25849 if (PyErr_Occurred()) SWIG_fail;
25850 }
25851 resultobj = SWIG_FromInt((int)result);
25852 return resultobj;
25853 fail:
25854 return NULL;
25855 }
25856
25857
25858 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
25859 PyObject *resultobj;
25860 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25861 int arg2 ;
25862 int arg3 ;
25863 int arg4 ;
25864 int result;
25865 PyObject * obj0 = 0 ;
25866 PyObject * obj1 = 0 ;
25867 PyObject * obj2 = 0 ;
25868 PyObject * obj3 = 0 ;
25869 char *kwnames[] = {
25870 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25871 };
25872
25873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25876 arg2 = (int) SWIG_AsInt(obj1);
25877 if (PyErr_Occurred()) SWIG_fail;
25878 arg3 = (int) SWIG_AsInt(obj2);
25879 if (PyErr_Occurred()) SWIG_fail;
25880 arg4 = (wxDragResult) SWIG_AsInt(obj3);
25881 if (PyErr_Occurred()) SWIG_fail;
25882 {
25883 PyThreadState* __tstate = wxPyBeginAllowThreads();
25884 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
25885
25886 wxPyEndAllowThreads(__tstate);
25887 if (PyErr_Occurred()) SWIG_fail;
25888 }
25889 resultobj = SWIG_FromInt((int)result);
25890 return resultobj;
25891 fail:
25892 return NULL;
25893 }
25894
25895
25896 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
25897 PyObject *resultobj;
25898 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25899 PyObject * obj0 = 0 ;
25900 char *kwnames[] = {
25901 (char *) "self", NULL
25902 };
25903
25904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
25905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25907 {
25908 PyThreadState* __tstate = wxPyBeginAllowThreads();
25909 (arg1)->base_OnLeave();
25910
25911 wxPyEndAllowThreads(__tstate);
25912 if (PyErr_Occurred()) SWIG_fail;
25913 }
25914 Py_INCREF(Py_None); resultobj = Py_None;
25915 return resultobj;
25916 fail:
25917 return NULL;
25918 }
25919
25920
25921 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
25922 PyObject *resultobj;
25923 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25924 int arg2 ;
25925 int arg3 ;
25926 bool result;
25927 PyObject * obj0 = 0 ;
25928 PyObject * obj1 = 0 ;
25929 PyObject * obj2 = 0 ;
25930 char *kwnames[] = {
25931 (char *) "self",(char *) "x",(char *) "y", NULL
25932 };
25933
25934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
25935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25937 arg2 = (int) SWIG_AsInt(obj1);
25938 if (PyErr_Occurred()) SWIG_fail;
25939 arg3 = (int) SWIG_AsInt(obj2);
25940 if (PyErr_Occurred()) SWIG_fail;
25941 {
25942 PyThreadState* __tstate = wxPyBeginAllowThreads();
25943 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
25944
25945 wxPyEndAllowThreads(__tstate);
25946 if (PyErr_Occurred()) SWIG_fail;
25947 }
25948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25949 return resultobj;
25950 fail:
25951 return NULL;
25952 }
25953
25954
25955 static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
25956 PyObject *resultobj;
25957 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25958 bool result;
25959 PyObject * obj0 = 0 ;
25960 char *kwnames[] = {
25961 (char *) "self", NULL
25962 };
25963
25964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
25965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25967 {
25968 PyThreadState* __tstate = wxPyBeginAllowThreads();
25969 result = (bool)(arg1)->GetData();
25970
25971 wxPyEndAllowThreads(__tstate);
25972 if (PyErr_Occurred()) SWIG_fail;
25973 }
25974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25975 return resultobj;
25976 fail:
25977 return NULL;
25978 }
25979
25980
25981 static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
25982 PyObject *obj;
25983 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25984 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
25985 Py_INCREF(obj);
25986 return Py_BuildValue((char *)"");
25987 }
25988 static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
25989 PyObject *resultobj;
25990 wxPyTextDropTarget *result;
25991 char *kwnames[] = {
25992 NULL
25993 };
25994
25995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
25996 {
25997 PyThreadState* __tstate = wxPyBeginAllowThreads();
25998 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
25999
26000 wxPyEndAllowThreads(__tstate);
26001 if (PyErr_Occurred()) SWIG_fail;
26002 }
26003 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26004 return resultobj;
26005 fail:
26006 return NULL;
26007 }
26008
26009
26010 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26011 PyObject *resultobj;
26012 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26013 PyObject *arg2 = (PyObject *) 0 ;
26014 PyObject *arg3 = (PyObject *) 0 ;
26015 PyObject * obj0 = 0 ;
26016 PyObject * obj1 = 0 ;
26017 PyObject * obj2 = 0 ;
26018 char *kwnames[] = {
26019 (char *) "self",(char *) "self",(char *) "_class", NULL
26020 };
26021
26022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26025 arg2 = obj1;
26026 arg3 = obj2;
26027 {
26028 PyThreadState* __tstate = wxPyBeginAllowThreads();
26029 (arg1)->_setCallbackInfo(arg2,arg3);
26030
26031 wxPyEndAllowThreads(__tstate);
26032 if (PyErr_Occurred()) SWIG_fail;
26033 }
26034 Py_INCREF(Py_None); resultobj = Py_None;
26035 return resultobj;
26036 fail:
26037 return NULL;
26038 }
26039
26040
26041 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26042 PyObject *resultobj;
26043 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26044 int arg2 ;
26045 int arg3 ;
26046 int arg4 ;
26047 int result;
26048 PyObject * obj0 = 0 ;
26049 PyObject * obj1 = 0 ;
26050 PyObject * obj2 = 0 ;
26051 PyObject * obj3 = 0 ;
26052 char *kwnames[] = {
26053 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26054 };
26055
26056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26059 arg2 = (int) SWIG_AsInt(obj1);
26060 if (PyErr_Occurred()) SWIG_fail;
26061 arg3 = (int) SWIG_AsInt(obj2);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26064 if (PyErr_Occurred()) SWIG_fail;
26065 {
26066 PyThreadState* __tstate = wxPyBeginAllowThreads();
26067 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26068
26069 wxPyEndAllowThreads(__tstate);
26070 if (PyErr_Occurred()) SWIG_fail;
26071 }
26072 resultobj = SWIG_FromInt((int)result);
26073 return resultobj;
26074 fail:
26075 return NULL;
26076 }
26077
26078
26079 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26080 PyObject *resultobj;
26081 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26082 int arg2 ;
26083 int arg3 ;
26084 int arg4 ;
26085 int result;
26086 PyObject * obj0 = 0 ;
26087 PyObject * obj1 = 0 ;
26088 PyObject * obj2 = 0 ;
26089 PyObject * obj3 = 0 ;
26090 char *kwnames[] = {
26091 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26092 };
26093
26094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26097 arg2 = (int) SWIG_AsInt(obj1);
26098 if (PyErr_Occurred()) SWIG_fail;
26099 arg3 = (int) SWIG_AsInt(obj2);
26100 if (PyErr_Occurred()) SWIG_fail;
26101 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26102 if (PyErr_Occurred()) SWIG_fail;
26103 {
26104 PyThreadState* __tstate = wxPyBeginAllowThreads();
26105 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26106
26107 wxPyEndAllowThreads(__tstate);
26108 if (PyErr_Occurred()) SWIG_fail;
26109 }
26110 resultobj = SWIG_FromInt((int)result);
26111 return resultobj;
26112 fail:
26113 return NULL;
26114 }
26115
26116
26117 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26118 PyObject *resultobj;
26119 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26120 PyObject * obj0 = 0 ;
26121 char *kwnames[] = {
26122 (char *) "self", NULL
26123 };
26124
26125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26128 {
26129 PyThreadState* __tstate = wxPyBeginAllowThreads();
26130 (arg1)->base_OnLeave();
26131
26132 wxPyEndAllowThreads(__tstate);
26133 if (PyErr_Occurred()) SWIG_fail;
26134 }
26135 Py_INCREF(Py_None); resultobj = Py_None;
26136 return resultobj;
26137 fail:
26138 return NULL;
26139 }
26140
26141
26142 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26143 PyObject *resultobj;
26144 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26145 int arg2 ;
26146 int arg3 ;
26147 bool result;
26148 PyObject * obj0 = 0 ;
26149 PyObject * obj1 = 0 ;
26150 PyObject * obj2 = 0 ;
26151 char *kwnames[] = {
26152 (char *) "self",(char *) "x",(char *) "y", NULL
26153 };
26154
26155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26158 arg2 = (int) SWIG_AsInt(obj1);
26159 if (PyErr_Occurred()) SWIG_fail;
26160 arg3 = (int) SWIG_AsInt(obj2);
26161 if (PyErr_Occurred()) SWIG_fail;
26162 {
26163 PyThreadState* __tstate = wxPyBeginAllowThreads();
26164 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26165
26166 wxPyEndAllowThreads(__tstate);
26167 if (PyErr_Occurred()) SWIG_fail;
26168 }
26169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26170 return resultobj;
26171 fail:
26172 return NULL;
26173 }
26174
26175
26176 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
26177 PyObject *resultobj;
26178 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26179 int arg2 ;
26180 int arg3 ;
26181 int arg4 ;
26182 int result;
26183 PyObject * obj0 = 0 ;
26184 PyObject * obj1 = 0 ;
26185 PyObject * obj2 = 0 ;
26186 PyObject * obj3 = 0 ;
26187 char *kwnames[] = {
26188 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26189 };
26190
26191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26194 arg2 = (int) SWIG_AsInt(obj1);
26195 if (PyErr_Occurred()) SWIG_fail;
26196 arg3 = (int) SWIG_AsInt(obj2);
26197 if (PyErr_Occurred()) SWIG_fail;
26198 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26199 if (PyErr_Occurred()) SWIG_fail;
26200 {
26201 PyThreadState* __tstate = wxPyBeginAllowThreads();
26202 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26203
26204 wxPyEndAllowThreads(__tstate);
26205 if (PyErr_Occurred()) SWIG_fail;
26206 }
26207 resultobj = SWIG_FromInt((int)result);
26208 return resultobj;
26209 fail:
26210 return NULL;
26211 }
26212
26213
26214 static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
26215 PyObject *obj;
26216 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26217 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26218 Py_INCREF(obj);
26219 return Py_BuildValue((char *)"");
26220 }
26221 static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26222 PyObject *resultobj;
26223 wxPyFileDropTarget *result;
26224 char *kwnames[] = {
26225 NULL
26226 };
26227
26228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26229 {
26230 PyThreadState* __tstate = wxPyBeginAllowThreads();
26231 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26232
26233 wxPyEndAllowThreads(__tstate);
26234 if (PyErr_Occurred()) SWIG_fail;
26235 }
26236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26237 return resultobj;
26238 fail:
26239 return NULL;
26240 }
26241
26242
26243 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26244 PyObject *resultobj;
26245 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26246 PyObject *arg2 = (PyObject *) 0 ;
26247 PyObject *arg3 = (PyObject *) 0 ;
26248 PyObject * obj0 = 0 ;
26249 PyObject * obj1 = 0 ;
26250 PyObject * obj2 = 0 ;
26251 char *kwnames[] = {
26252 (char *) "self",(char *) "self",(char *) "_class", NULL
26253 };
26254
26255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26258 arg2 = obj1;
26259 arg3 = obj2;
26260 {
26261 PyThreadState* __tstate = wxPyBeginAllowThreads();
26262 (arg1)->_setCallbackInfo(arg2,arg3);
26263
26264 wxPyEndAllowThreads(__tstate);
26265 if (PyErr_Occurred()) SWIG_fail;
26266 }
26267 Py_INCREF(Py_None); resultobj = Py_None;
26268 return resultobj;
26269 fail:
26270 return NULL;
26271 }
26272
26273
26274 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26275 PyObject *resultobj;
26276 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26277 int arg2 ;
26278 int arg3 ;
26279 int arg4 ;
26280 int result;
26281 PyObject * obj0 = 0 ;
26282 PyObject * obj1 = 0 ;
26283 PyObject * obj2 = 0 ;
26284 PyObject * obj3 = 0 ;
26285 char *kwnames[] = {
26286 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26287 };
26288
26289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26292 arg2 = (int) SWIG_AsInt(obj1);
26293 if (PyErr_Occurred()) SWIG_fail;
26294 arg3 = (int) SWIG_AsInt(obj2);
26295 if (PyErr_Occurred()) SWIG_fail;
26296 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26297 if (PyErr_Occurred()) SWIG_fail;
26298 {
26299 PyThreadState* __tstate = wxPyBeginAllowThreads();
26300 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26301
26302 wxPyEndAllowThreads(__tstate);
26303 if (PyErr_Occurred()) SWIG_fail;
26304 }
26305 resultobj = SWIG_FromInt((int)result);
26306 return resultobj;
26307 fail:
26308 return NULL;
26309 }
26310
26311
26312 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26313 PyObject *resultobj;
26314 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26315 int arg2 ;
26316 int arg3 ;
26317 int arg4 ;
26318 int result;
26319 PyObject * obj0 = 0 ;
26320 PyObject * obj1 = 0 ;
26321 PyObject * obj2 = 0 ;
26322 PyObject * obj3 = 0 ;
26323 char *kwnames[] = {
26324 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26325 };
26326
26327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26330 arg2 = (int) SWIG_AsInt(obj1);
26331 if (PyErr_Occurred()) SWIG_fail;
26332 arg3 = (int) SWIG_AsInt(obj2);
26333 if (PyErr_Occurred()) SWIG_fail;
26334 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26335 if (PyErr_Occurred()) SWIG_fail;
26336 {
26337 PyThreadState* __tstate = wxPyBeginAllowThreads();
26338 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26339
26340 wxPyEndAllowThreads(__tstate);
26341 if (PyErr_Occurred()) SWIG_fail;
26342 }
26343 resultobj = SWIG_FromInt((int)result);
26344 return resultobj;
26345 fail:
26346 return NULL;
26347 }
26348
26349
26350 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26351 PyObject *resultobj;
26352 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26353 PyObject * obj0 = 0 ;
26354 char *kwnames[] = {
26355 (char *) "self", NULL
26356 };
26357
26358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26361 {
26362 PyThreadState* __tstate = wxPyBeginAllowThreads();
26363 (arg1)->base_OnLeave();
26364
26365 wxPyEndAllowThreads(__tstate);
26366 if (PyErr_Occurred()) SWIG_fail;
26367 }
26368 Py_INCREF(Py_None); resultobj = Py_None;
26369 return resultobj;
26370 fail:
26371 return NULL;
26372 }
26373
26374
26375 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26376 PyObject *resultobj;
26377 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26378 int arg2 ;
26379 int arg3 ;
26380 bool result;
26381 PyObject * obj0 = 0 ;
26382 PyObject * obj1 = 0 ;
26383 PyObject * obj2 = 0 ;
26384 char *kwnames[] = {
26385 (char *) "self",(char *) "x",(char *) "y", NULL
26386 };
26387
26388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26391 arg2 = (int) SWIG_AsInt(obj1);
26392 if (PyErr_Occurred()) SWIG_fail;
26393 arg3 = (int) SWIG_AsInt(obj2);
26394 if (PyErr_Occurred()) SWIG_fail;
26395 {
26396 PyThreadState* __tstate = wxPyBeginAllowThreads();
26397 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26398
26399 wxPyEndAllowThreads(__tstate);
26400 if (PyErr_Occurred()) SWIG_fail;
26401 }
26402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26403 return resultobj;
26404 fail:
26405 return NULL;
26406 }
26407
26408
26409 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
26410 PyObject *resultobj;
26411 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26412 int arg2 ;
26413 int arg3 ;
26414 int arg4 ;
26415 int result;
26416 PyObject * obj0 = 0 ;
26417 PyObject * obj1 = 0 ;
26418 PyObject * obj2 = 0 ;
26419 PyObject * obj3 = 0 ;
26420 char *kwnames[] = {
26421 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26422 };
26423
26424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26427 arg2 = (int) SWIG_AsInt(obj1);
26428 if (PyErr_Occurred()) SWIG_fail;
26429 arg3 = (int) SWIG_AsInt(obj2);
26430 if (PyErr_Occurred()) SWIG_fail;
26431 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26432 if (PyErr_Occurred()) SWIG_fail;
26433 {
26434 PyThreadState* __tstate = wxPyBeginAllowThreads();
26435 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26436
26437 wxPyEndAllowThreads(__tstate);
26438 if (PyErr_Occurred()) SWIG_fail;
26439 }
26440 resultobj = SWIG_FromInt((int)result);
26441 return resultobj;
26442 fail:
26443 return NULL;
26444 }
26445
26446
26447 static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
26448 PyObject *obj;
26449 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26450 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26451 Py_INCREF(obj);
26452 return Py_BuildValue((char *)"");
26453 }
26454 static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
26455 PyObject *resultobj;
26456 wxClipboard *result;
26457 char *kwnames[] = {
26458 NULL
26459 };
26460
26461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26462 {
26463 PyThreadState* __tstate = wxPyBeginAllowThreads();
26464 result = (wxClipboard *)new wxClipboard();
26465
26466 wxPyEndAllowThreads(__tstate);
26467 if (PyErr_Occurred()) SWIG_fail;
26468 }
26469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26470 return resultobj;
26471 fail:
26472 return NULL;
26473 }
26474
26475
26476 static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
26477 PyObject *resultobj;
26478 wxClipboard *arg1 = (wxClipboard *) 0 ;
26479 PyObject * obj0 = 0 ;
26480 char *kwnames[] = {
26481 (char *) "self", NULL
26482 };
26483
26484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26487 {
26488 PyThreadState* __tstate = wxPyBeginAllowThreads();
26489 delete arg1;
26490
26491 wxPyEndAllowThreads(__tstate);
26492 if (PyErr_Occurred()) SWIG_fail;
26493 }
26494 Py_INCREF(Py_None); resultobj = Py_None;
26495 return resultobj;
26496 fail:
26497 return NULL;
26498 }
26499
26500
26501 static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
26502 PyObject *resultobj;
26503 wxClipboard *arg1 = (wxClipboard *) 0 ;
26504 bool result;
26505 PyObject * obj0 = 0 ;
26506 char *kwnames[] = {
26507 (char *) "self", NULL
26508 };
26509
26510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26513 {
26514 PyThreadState* __tstate = wxPyBeginAllowThreads();
26515 result = (bool)(arg1)->Open();
26516
26517 wxPyEndAllowThreads(__tstate);
26518 if (PyErr_Occurred()) SWIG_fail;
26519 }
26520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26521 return resultobj;
26522 fail:
26523 return NULL;
26524 }
26525
26526
26527 static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
26528 PyObject *resultobj;
26529 wxClipboard *arg1 = (wxClipboard *) 0 ;
26530 PyObject * obj0 = 0 ;
26531 char *kwnames[] = {
26532 (char *) "self", NULL
26533 };
26534
26535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26538 {
26539 PyThreadState* __tstate = wxPyBeginAllowThreads();
26540 (arg1)->Close();
26541
26542 wxPyEndAllowThreads(__tstate);
26543 if (PyErr_Occurred()) SWIG_fail;
26544 }
26545 Py_INCREF(Py_None); resultobj = Py_None;
26546 return resultobj;
26547 fail:
26548 return NULL;
26549 }
26550
26551
26552 static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
26553 PyObject *resultobj;
26554 wxClipboard *arg1 = (wxClipboard *) 0 ;
26555 bool result;
26556 PyObject * obj0 = 0 ;
26557 char *kwnames[] = {
26558 (char *) "self", NULL
26559 };
26560
26561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26564 {
26565 PyThreadState* __tstate = wxPyBeginAllowThreads();
26566 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26567
26568 wxPyEndAllowThreads(__tstate);
26569 if (PyErr_Occurred()) SWIG_fail;
26570 }
26571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26572 return resultobj;
26573 fail:
26574 return NULL;
26575 }
26576
26577
26578 static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
26579 PyObject *resultobj;
26580 wxClipboard *arg1 = (wxClipboard *) 0 ;
26581 wxDataObject *arg2 = (wxDataObject *) 0 ;
26582 bool result;
26583 PyObject * obj0 = 0 ;
26584 PyObject * obj1 = 0 ;
26585 char *kwnames[] = {
26586 (char *) "self",(char *) "data", NULL
26587 };
26588
26589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26592 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26593 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26594 {
26595 PyThreadState* __tstate = wxPyBeginAllowThreads();
26596 result = (bool)(arg1)->AddData(arg2);
26597
26598 wxPyEndAllowThreads(__tstate);
26599 if (PyErr_Occurred()) SWIG_fail;
26600 }
26601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26602 return resultobj;
26603 fail:
26604 return NULL;
26605 }
26606
26607
26608 static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
26609 PyObject *resultobj;
26610 wxClipboard *arg1 = (wxClipboard *) 0 ;
26611 wxDataObject *arg2 = (wxDataObject *) 0 ;
26612 bool result;
26613 PyObject * obj0 = 0 ;
26614 PyObject * obj1 = 0 ;
26615 char *kwnames[] = {
26616 (char *) "self",(char *) "data", NULL
26617 };
26618
26619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26623 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26624 {
26625 PyThreadState* __tstate = wxPyBeginAllowThreads();
26626 result = (bool)(arg1)->SetData(arg2);
26627
26628 wxPyEndAllowThreads(__tstate);
26629 if (PyErr_Occurred()) SWIG_fail;
26630 }
26631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26632 return resultobj;
26633 fail:
26634 return NULL;
26635 }
26636
26637
26638 static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
26639 PyObject *resultobj;
26640 wxClipboard *arg1 = (wxClipboard *) 0 ;
26641 wxDataFormat *arg2 = 0 ;
26642 bool result;
26643 PyObject * obj0 = 0 ;
26644 PyObject * obj1 = 0 ;
26645 char *kwnames[] = {
26646 (char *) "self",(char *) "format", NULL
26647 };
26648
26649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
26650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26652 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
26653 SWIG_POINTER_EXCEPTION | 0)) == -1)
26654 SWIG_fail;
26655 if (arg2 == NULL) {
26656 PyErr_SetString(PyExc_TypeError,"null reference");
26657 SWIG_fail;
26658 }
26659 {
26660 PyThreadState* __tstate = wxPyBeginAllowThreads();
26661 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
26662
26663 wxPyEndAllowThreads(__tstate);
26664 if (PyErr_Occurred()) SWIG_fail;
26665 }
26666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26667 return resultobj;
26668 fail:
26669 return NULL;
26670 }
26671
26672
26673 static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
26674 PyObject *resultobj;
26675 wxClipboard *arg1 = (wxClipboard *) 0 ;
26676 wxDataObject *arg2 = 0 ;
26677 bool result;
26678 PyObject * obj0 = 0 ;
26679 PyObject * obj1 = 0 ;
26680 char *kwnames[] = {
26681 (char *) "self",(char *) "data", NULL
26682 };
26683
26684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
26685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26687 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26688 SWIG_POINTER_EXCEPTION | 0)) == -1)
26689 SWIG_fail;
26690 if (arg2 == NULL) {
26691 PyErr_SetString(PyExc_TypeError,"null reference");
26692 SWIG_fail;
26693 }
26694 {
26695 PyThreadState* __tstate = wxPyBeginAllowThreads();
26696 result = (bool)(arg1)->GetData(*arg2);
26697
26698 wxPyEndAllowThreads(__tstate);
26699 if (PyErr_Occurred()) SWIG_fail;
26700 }
26701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26702 return resultobj;
26703 fail:
26704 return NULL;
26705 }
26706
26707
26708 static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
26709 PyObject *resultobj;
26710 wxClipboard *arg1 = (wxClipboard *) 0 ;
26711 PyObject * obj0 = 0 ;
26712 char *kwnames[] = {
26713 (char *) "self", NULL
26714 };
26715
26716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
26717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26719 {
26720 PyThreadState* __tstate = wxPyBeginAllowThreads();
26721 (arg1)->Clear();
26722
26723 wxPyEndAllowThreads(__tstate);
26724 if (PyErr_Occurred()) SWIG_fail;
26725 }
26726 Py_INCREF(Py_None); resultobj = Py_None;
26727 return resultobj;
26728 fail:
26729 return NULL;
26730 }
26731
26732
26733 static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
26734 PyObject *resultobj;
26735 wxClipboard *arg1 = (wxClipboard *) 0 ;
26736 bool result;
26737 PyObject * obj0 = 0 ;
26738 char *kwnames[] = {
26739 (char *) "self", NULL
26740 };
26741
26742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
26743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26745 {
26746 PyThreadState* __tstate = wxPyBeginAllowThreads();
26747 result = (bool)(arg1)->Flush();
26748
26749 wxPyEndAllowThreads(__tstate);
26750 if (PyErr_Occurred()) SWIG_fail;
26751 }
26752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26753 return resultobj;
26754 fail:
26755 return NULL;
26756 }
26757
26758
26759 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
26760 PyObject *resultobj;
26761 wxClipboard *arg1 = (wxClipboard *) 0 ;
26762 bool arg2 = (bool) True ;
26763 PyObject * obj0 = 0 ;
26764 PyObject * obj1 = 0 ;
26765 char *kwnames[] = {
26766 (char *) "self",(char *) "primary", NULL
26767 };
26768
26769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
26770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26772 if (obj1) {
26773 arg2 = (bool) SWIG_AsBool(obj1);
26774 if (PyErr_Occurred()) SWIG_fail;
26775 }
26776 {
26777 PyThreadState* __tstate = wxPyBeginAllowThreads();
26778 (arg1)->UsePrimarySelection(arg2);
26779
26780 wxPyEndAllowThreads(__tstate);
26781 if (PyErr_Occurred()) SWIG_fail;
26782 }
26783 Py_INCREF(Py_None); resultobj = Py_None;
26784 return resultobj;
26785 fail:
26786 return NULL;
26787 }
26788
26789
26790 static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
26791 PyObject *obj;
26792 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26793 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
26794 Py_INCREF(obj);
26795 return Py_BuildValue((char *)"");
26796 }
26797 static int _wrap_TheClipboard_set(PyObject *) {
26798 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
26799 return 1;
26800 }
26801
26802
26803 static PyObject *_wrap_TheClipboard_get() {
26804 PyObject *pyobj;
26805
26806 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
26807 return pyobj;
26808 }
26809
26810
26811 static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
26812 PyObject *resultobj;
26813 wxClipboard *arg1 = (wxClipboard *) NULL ;
26814 wxClipboardLocker *result;
26815 PyObject * obj0 = 0 ;
26816 char *kwnames[] = {
26817 (char *) "clipboard", NULL
26818 };
26819
26820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
26821 if (obj0) {
26822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26824 }
26825 {
26826 PyThreadState* __tstate = wxPyBeginAllowThreads();
26827 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
26828
26829 wxPyEndAllowThreads(__tstate);
26830 if (PyErr_Occurred()) SWIG_fail;
26831 }
26832 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
26833 return resultobj;
26834 fail:
26835 return NULL;
26836 }
26837
26838
26839 static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
26840 PyObject *resultobj;
26841 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
26842 PyObject * obj0 = 0 ;
26843 char *kwnames[] = {
26844 (char *) "self", NULL
26845 };
26846
26847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
26848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
26849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26850 {
26851 PyThreadState* __tstate = wxPyBeginAllowThreads();
26852 delete arg1;
26853
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 Py_INCREF(Py_None); resultobj = Py_None;
26858 return resultobj;
26859 fail:
26860 return NULL;
26861 }
26862
26863
26864 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
26865 PyObject *resultobj;
26866 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
26867 bool result;
26868 PyObject * obj0 = 0 ;
26869 char *kwnames[] = {
26870 (char *) "self", NULL
26871 };
26872
26873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
26874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
26875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26876 {
26877 PyThreadState* __tstate = wxPyBeginAllowThreads();
26878 result = (bool)wxClipboardLocker___nonzero__(arg1);
26879
26880 wxPyEndAllowThreads(__tstate);
26881 if (PyErr_Occurred()) SWIG_fail;
26882 }
26883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26884 return resultobj;
26885 fail:
26886 return NULL;
26887 }
26888
26889
26890 static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
26891 PyObject *obj;
26892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26893 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
26894 Py_INCREF(obj);
26895 return Py_BuildValue((char *)"");
26896 }
26897 static PyMethodDef SwigMethods[] = {
26898 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
26899 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
26900 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL },
26901 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL },
26902 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
26903 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
26904 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL },
26905 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL },
26906 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL },
26907 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
26908 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL },
26909 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
26910 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL },
26911 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL },
26912 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL },
26913 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL },
26914 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL },
26915 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL },
26916 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
26917 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL },
26918 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL },
26919 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL },
26920 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL },
26921 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL },
26922 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL },
26923 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL },
26924 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL },
26925 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL },
26926 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL },
26927 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL },
26928 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS, NULL },
26929 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL },
26930 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL },
26931 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL },
26932 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL },
26933 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL },
26934 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL },
26935 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL },
26936 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL },
26937 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL },
26938 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL },
26939 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL },
26940 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
26941 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
26942 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
26943 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL },
26944 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
26945 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
26946 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL },
26947 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL },
26948 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL },
26949 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
26950 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL },
26951 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
26952 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
26953 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
26954 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
26955 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
26956 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
26957 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
26958 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
26959 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
26960 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
26961 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
26962 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
26963 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
26964 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL },
26965 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL },
26966 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL },
26967 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL },
26968 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL },
26969 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
26970 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
26971 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL },
26972 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL },
26973 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
26974 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL },
26975 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
26976 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
26977 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
26978 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL },
26979 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL },
26980 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
26981 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
26982 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
26983 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
26984 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
26985 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
26986 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
26987 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
26988 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
26989 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL },
26990 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL },
26991 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
26992 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
26993 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL },
26994 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
26995 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL },
26996 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
26997 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
26998 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
26999 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
27000 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL },
27001 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
27002 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
27003 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL },
27004 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27005 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27006 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL },
27007 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL },
27008 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL },
27009 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL },
27010 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
27011 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL },
27012 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL },
27013 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
27014 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
27015 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL },
27016 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL },
27017 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL },
27018 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL },
27019 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL },
27020 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL },
27021 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL },
27022 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL },
27023 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL },
27024 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL },
27025 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
27026 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL },
27027 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
27028 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
27029 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
27030 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL },
27031 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL },
27032 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL },
27033 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL },
27034 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
27035 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
27036 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL },
27037 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL },
27038 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL },
27039 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
27040 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27041 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL },
27042 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL },
27043 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
27044 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
27045 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
27046 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27047 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
27048 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL },
27049 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
27050 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL },
27051 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
27052 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL },
27053 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
27054 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL },
27055 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL },
27056 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
27057 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL },
27058 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL },
27059 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL },
27060 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL },
27061 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL },
27062 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL },
27063 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
27064 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL },
27065 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL },
27066 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
27067 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL },
27068 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
27069 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
27070 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL },
27071 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
27072 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
27073 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
27074 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
27075 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
27076 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
27077 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
27078 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
27079 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
27080 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
27081 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
27082 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
27083 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
27084 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
27085 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
27086 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL },
27087 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
27088 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL },
27089 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL },
27090 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL },
27091 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
27092 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL },
27093 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL },
27094 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL },
27095 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL },
27096 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL },
27097 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL },
27098 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
27099 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
27100 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
27101 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL },
27102 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL },
27103 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL },
27104 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
27105 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
27106 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
27107 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL },
27108 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL },
27109 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL },
27110 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL },
27111 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL },
27112 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL },
27113 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL },
27114 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27115 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL },
27116 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
27117 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL },
27118 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL },
27119 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL },
27120 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL },
27121 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL },
27122 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL },
27123 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
27124 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
27125 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL },
27126 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL },
27127 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27128 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL },
27129 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL },
27130 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
27131 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL },
27132 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL },
27133 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27134 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL },
27135 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL },
27136 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL },
27137 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
27138 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL },
27139 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL },
27140 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL },
27141 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL },
27142 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL },
27143 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
27144 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
27145 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL },
27146 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL },
27147 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL },
27148 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL },
27149 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL },
27150 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL },
27151 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL },
27152 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL },
27153 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL },
27154 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL },
27155 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
27156 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
27157 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27158 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27159 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
27160 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27161 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27162 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27163 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27164 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27165 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
27166 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
27167 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
27168 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL },
27169 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL },
27170 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL },
27171 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL },
27172 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL },
27173 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL },
27174 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL },
27175 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL },
27176 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL },
27177 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL },
27178 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL },
27179 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL },
27180 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL },
27181 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL },
27182 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL },
27183 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL },
27184 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL },
27185 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL },
27186 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL },
27187 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL },
27188 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL },
27189 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL },
27190 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL },
27191 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL },
27192 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL },
27193 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL },
27194 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL },
27195 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL },
27196 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL },
27197 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL },
27198 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL },
27199 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL },
27200 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL },
27201 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL },
27202 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL },
27203 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL },
27204 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL },
27205 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL },
27206 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL },
27207 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL },
27208 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL },
27209 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL },
27210 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL },
27211 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27212 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27213 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
27214 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
27215 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
27216 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
27217 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
27218 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
27219 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27220 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
27221 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
27222 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL },
27223 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL },
27224 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL },
27225 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL },
27226 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
27227 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL },
27228 { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS, NULL },
27229 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
27230 { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS, NULL },
27231 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
27232 { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS, NULL },
27233 { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS, NULL },
27234 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
27235 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL },
27236 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27237 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL },
27238 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27239 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
27240 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
27241 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
27242 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
27243 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
27244 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
27245 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
27246 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
27247 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
27248 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL },
27249 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL },
27250 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL },
27251 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL },
27252 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
27253 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
27254 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
27255 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
27256 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
27257 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
27258 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27259 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
27260 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
27261 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
27262 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL },
27263 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL },
27264 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL },
27265 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
27266 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL },
27267 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL },
27268 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL },
27269 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
27270 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL },
27271 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL },
27272 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL },
27273 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
27274 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL },
27275 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
27276 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL },
27277 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL },
27278 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL },
27279 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
27280 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
27281 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL },
27282 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL },
27283 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27284 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL },
27285 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL },
27286 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL },
27287 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
27288 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
27289 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
27290 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL },
27291 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL },
27292 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL },
27293 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL },
27294 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL },
27295 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
27296 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
27297 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
27298 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL },
27299 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL },
27300 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL },
27301 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL },
27302 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL },
27303 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL },
27304 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL },
27305 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL },
27306 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
27307 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL },
27308 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL },
27309 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL },
27310 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL },
27311 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL },
27312 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL },
27313 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL },
27314 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL },
27315 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL },
27316 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
27317 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL },
27318 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL },
27319 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL },
27320 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL },
27321 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL },
27322 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
27323 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
27324 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
27325 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
27326 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
27327 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
27328 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
27329 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
27330 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
27331 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
27332 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
27333 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL },
27334 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL },
27335 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL },
27336 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL },
27337 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
27338 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
27339 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL },
27340 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
27341 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
27342 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL },
27343 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL },
27344 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
27345 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
27346 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
27347 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL },
27348 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL },
27349 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL },
27350 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL },
27351 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL },
27352 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL },
27353 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL },
27354 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL },
27355 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL },
27356 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL },
27357 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL },
27358 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL },
27359 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL },
27360 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL },
27361 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL },
27362 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL },
27363 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL },
27364 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
27365 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
27366 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL },
27367 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL },
27368 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL },
27369 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
27370 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
27371 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
27372 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
27373 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL },
27374 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL },
27375 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL },
27376 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL },
27377 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
27378 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL },
27379 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL },
27380 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
27381 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
27382 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
27383 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
27384 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
27385 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
27386 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
27387 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
27388 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
27389 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
27390 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
27391 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
27392 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL },
27393 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL },
27394 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
27395 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
27396 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
27397 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
27398 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
27399 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
27400 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
27401 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL },
27402 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL },
27403 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
27404 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
27405 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL },
27406 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL },
27407 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL },
27408 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
27409 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL },
27410 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL },
27411 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
27412 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL },
27413 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
27414 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL },
27415 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
27416 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
27417 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
27418 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
27419 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
27420 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL },
27421 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL },
27422 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
27423 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL },
27424 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL },
27425 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL },
27426 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL },
27427 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL },
27428 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL },
27429 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL },
27430 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL },
27431 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL },
27432 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL },
27433 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL },
27434 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
27435 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL },
27436 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL },
27437 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL },
27438 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL },
27439 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL },
27440 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL },
27441 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL },
27442 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL },
27443 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL },
27444 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL },
27445 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL },
27446 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL },
27447 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL },
27448 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL },
27449 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL },
27450 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL },
27451 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL },
27452 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL },
27453 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL },
27454 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL },
27455 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL },
27456 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL },
27457 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL },
27458 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL },
27459 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL },
27460 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL },
27461 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL },
27462 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
27463 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
27464 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
27465 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
27466 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
27467 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
27468 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
27469 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
27470 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
27471 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
27472 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL },
27473 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
27474 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
27475 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
27476 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
27477 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
27478 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
27479 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
27480 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
27481 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL },
27482 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL },
27483 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL },
27484 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL },
27485 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
27486 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
27487 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
27488 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL },
27489 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL },
27490 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
27491 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL },
27492 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL },
27493 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
27494 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
27495 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL },
27496 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL },
27497 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL },
27498 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL },
27499 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL },
27500 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL },
27501 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
27502 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
27503 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
27504 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
27505 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
27506 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
27507 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL },
27508 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL },
27509 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL },
27510 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL },
27511 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL },
27512 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
27513 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
27514 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL },
27515 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL },
27516 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
27517 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
27518 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
27519 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL },
27520 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
27521 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
27522 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
27523 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
27524 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
27525 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
27526 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
27527 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
27528 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
27529 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
27530 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
27531 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
27532 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
27533 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
27534 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL },
27535 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL },
27536 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL },
27537 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL },
27538 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL },
27539 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
27540 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
27541 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
27542 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL },
27543 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL },
27544 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL },
27545 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL },
27546 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
27547 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
27548 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL },
27549 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27550 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL },
27551 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL },
27552 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
27553 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
27554 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL },
27555 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
27556 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
27557 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL },
27558 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
27559 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
27560 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
27561 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL },
27562 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
27563 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27564 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL },
27565 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL },
27566 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL },
27567 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL },
27568 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27569 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL },
27570 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
27571 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
27572 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL },
27573 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27574 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27575 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL },
27576 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27577 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
27578 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
27579 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL },
27580 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27581 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27582 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL },
27583 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27584 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL },
27585 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL },
27586 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL },
27587 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27588 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS, NULL },
27589 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
27590 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
27591 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
27592 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL },
27593 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27594 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL },
27595 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL },
27596 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL },
27597 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27598 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
27599 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
27600 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL },
27601 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL },
27602 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
27603 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27604 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
27605 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
27606 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27607 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
27608 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL },
27609 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL },
27610 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL },
27611 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
27612 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27613 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
27614 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27615 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
27616 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
27617 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
27618 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
27619 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
27620 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
27621 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL },
27622 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
27623 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27624 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
27625 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
27626 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
27627 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
27628 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
27629 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL },
27630 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
27631 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
27632 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
27633 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
27634 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
27635 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
27636 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
27637 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL },
27638 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
27639 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
27640 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL },
27641 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL },
27642 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL },
27643 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL },
27644 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
27645 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
27646 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
27647 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
27648 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
27649 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL },
27650 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL },
27651 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
27652 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
27653 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
27654 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL },
27655 { NULL, NULL, 0, NULL }
27656 };
27657
27658
27659 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
27660
27661 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
27662 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
27663 }
27664 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
27665 return (void *)((wxEvent *) ((wxMenuEvent *) x));
27666 }
27667 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
27668 return (void *)((wxEvent *) ((wxCloseEvent *) x));
27669 }
27670 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
27671 return (void *)((wxEvent *) ((wxMouseEvent *) x));
27672 }
27673 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
27674 return (void *)((wxEvent *) ((wxEraseEvent *) x));
27675 }
27676 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
27677 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
27678 }
27679 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
27680 return (void *)((wxEvent *) ((wxTimerEvent *) x));
27681 }
27682 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
27683 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
27684 }
27685 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
27686 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
27687 }
27688 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
27689 return (void *)((wxEvent *) ((wxPyEvent *) x));
27690 }
27691 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
27692 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
27693 }
27694 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
27695 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
27696 }
27697 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
27698 return (void *)((wxEvent *) ((wxIdleEvent *) x));
27699 }
27700 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
27701 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
27702 }
27703 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
27704 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
27705 }
27706 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
27707 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
27708 }
27709 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
27710 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
27711 }
27712 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
27713 return (void *)((wxEvent *) ((wxActivateEvent *) x));
27714 }
27715 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
27716 return (void *)((wxEvent *) ((wxSizeEvent *) x));
27717 }
27718 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
27719 return (void *)((wxEvent *) ((wxMoveEvent *) x));
27720 }
27721 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
27722 return (void *)((wxEvent *) ((wxPaintEvent *) x));
27723 }
27724 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
27725 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
27726 }
27727 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
27728 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
27729 }
27730 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
27731 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
27732 }
27733 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
27734 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
27735 }
27736 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
27737 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
27738 }
27739 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
27740 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
27741 }
27742 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
27743 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
27744 }
27745 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
27746 return (void *)((wxEvent *) ((wxFocusEvent *) x));
27747 }
27748 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
27749 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
27750 }
27751 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
27752 return (void *)((wxEvent *) ((wxProcessEvent *) x));
27753 }
27754 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
27755 return (void *)((wxEvent *) ((wxShowEvent *) x));
27756 }
27757 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
27758 return (void *)((wxEvent *) ((wxCommandEvent *) x));
27759 }
27760 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
27761 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
27762 }
27763 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
27764 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
27765 }
27766 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
27767 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
27768 }
27769 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
27770 return (void *)((wxEvent *) ((wxKeyEvent *) x));
27771 }
27772 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
27773 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
27774 }
27775 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
27776 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
27777 }
27778 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
27779 return (void *)((wxConfigBase *) ((wxConfig *) x));
27780 }
27781 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
27782 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27783 }
27784 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
27785 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
27786 }
27787 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
27788 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
27789 }
27790 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
27791 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
27792 }
27793 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
27794 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
27795 }
27796 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
27797 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
27798 }
27799 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
27800 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
27801 }
27802 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
27803 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
27804 }
27805 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
27806 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27807 }
27808 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
27809 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
27810 }
27811 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
27812 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
27813 }
27814 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
27815 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
27816 }
27817 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
27818 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
27819 }
27820 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
27821 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
27822 }
27823 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
27824 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
27825 }
27826 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
27827 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
27828 }
27829 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
27830 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
27831 }
27832 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
27833 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
27834 }
27835 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
27836 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27837 }
27838 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
27839 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
27840 }
27841 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
27842 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
27843 }
27844 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
27845 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
27846 }
27847 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
27848 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
27849 }
27850 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
27851 return (void *)((wxEvtHandler *) ((wxWindow *) x));
27852 }
27853 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
27854 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
27855 }
27856 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
27857 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
27858 }
27859 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
27860 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
27861 }
27862 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
27863 return (void *)((wxEvtHandler *) ((wxValidator *) x));
27864 }
27865 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
27866 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
27867 }
27868 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
27869 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
27870 }
27871 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
27872 return (void *)((wxEvtHandler *) ((wxMenu *) x));
27873 }
27874 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
27875 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
27876 }
27877 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
27878 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
27879 }
27880 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
27881 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
27882 }
27883 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
27884 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
27885 }
27886 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
27887 return (void *)((wxObject *) ((wxSizerItem *) x));
27888 }
27889 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
27890 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
27891 }
27892 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
27893 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
27894 }
27895 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
27896 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
27897 }
27898 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
27899 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
27900 }
27901 static void *_p_wxSizerTo_p_wxObject(void *x) {
27902 return (void *)((wxObject *) ((wxSizer *) x));
27903 }
27904 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
27905 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
27906 }
27907 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
27908 return (void *)((wxObject *) ((wxFileHistory *) x));
27909 }
27910 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
27911 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
27912 }
27913 static void *_p_wxEventTo_p_wxObject(void *x) {
27914 return (void *)((wxObject *) ((wxEvent *) x));
27915 }
27916 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
27917 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
27918 }
27919 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
27920 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
27921 }
27922 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
27923 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
27924 }
27925 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
27926 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
27927 }
27928 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
27929 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
27930 }
27931 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
27932 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
27933 }
27934 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
27935 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
27936 }
27937 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
27938 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
27939 }
27940 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
27941 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
27942 }
27943 static void *_p_wxControlTo_p_wxObject(void *x) {
27944 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
27945 }
27946 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
27947 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
27948 }
27949 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
27950 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
27951 }
27952 static void *_p_wxFSFileTo_p_wxObject(void *x) {
27953 return (void *)((wxObject *) ((wxFSFile *) x));
27954 }
27955 static void *_p_wxClipboardTo_p_wxObject(void *x) {
27956 return (void *)((wxObject *) ((wxClipboard *) x));
27957 }
27958 static void *_p_wxPySizerTo_p_wxObject(void *x) {
27959 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
27960 }
27961 static void *_p_wxPyEventTo_p_wxObject(void *x) {
27962 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
27963 }
27964 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
27965 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
27966 }
27967 static void *_p_wxShowEventTo_p_wxObject(void *x) {
27968 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
27969 }
27970 static void *_p_wxToolTipTo_p_wxObject(void *x) {
27971 return (void *)((wxObject *) ((wxToolTip *) x));
27972 }
27973 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
27974 return (void *)((wxObject *) ((wxMenuItem *) x));
27975 }
27976 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
27977 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
27978 }
27979 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
27980 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
27981 }
27982 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
27983 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
27984 }
27985 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
27986 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
27987 }
27988 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
27989 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
27990 }
27991 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
27992 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
27993 }
27994 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
27995 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
27996 }
27997 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
27998 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
27999 }
28000 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
28001 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
28002 }
28003 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
28004 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
28005 }
28006 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
28007 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
28008 }
28009 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
28010 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
28011 }
28012 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
28013 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
28014 }
28015 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
28016 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
28017 }
28018 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
28019 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
28020 }
28021 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
28022 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
28023 }
28024 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
28025 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
28026 }
28027 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
28028 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
28029 }
28030 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
28031 return (void *)((wxObject *) ((wxImageHandler *) x));
28032 }
28033 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
28034 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
28035 }
28036 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
28037 return (void *)((wxObject *) ((wxEvtHandler *) x));
28038 }
28039 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
28040 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
28041 }
28042 static void *_p_wxImageTo_p_wxObject(void *x) {
28043 return (void *)((wxObject *) ((wxImage *) x));
28044 }
28045 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
28046 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
28047 }
28048 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
28049 return (void *)((wxObject *) ((wxSystemOptions *) x));
28050 }
28051 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
28052 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
28053 }
28054 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
28055 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
28056 }
28057 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
28058 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
28059 }
28060 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
28061 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
28062 }
28063 static void *_p_wxWindowTo_p_wxObject(void *x) {
28064 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
28065 }
28066 static void *_p_wxMenuTo_p_wxObject(void *x) {
28067 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
28068 }
28069 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
28070 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
28071 }
28072 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
28073 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
28074 }
28075 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
28076 return (void *)((wxObject *) ((wxFileSystem *) x));
28077 }
28078 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
28079 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
28080 }
28081 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
28082 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
28083 }
28084 static void *_p_wxPyAppTo_p_wxObject(void *x) {
28085 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
28086 }
28087 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
28088 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
28089 }
28090 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
28091 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
28092 }
28093 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
28094 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
28095 }
28096 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
28097 return (void *)((wxObject *) ((wxBusyInfo *) x));
28098 }
28099 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
28100 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
28101 }
28102 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
28103 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
28104 }
28105 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
28106 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
28107 }
28108 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
28109 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
28110 }
28111 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
28112 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
28113 }
28114 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
28115 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
28116 }
28117 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
28118 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
28119 }
28120 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
28121 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
28122 }
28123 static void *_p_wxValidatorTo_p_wxObject(void *x) {
28124 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
28125 }
28126 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
28127 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
28128 }
28129 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
28130 return (void *)((wxLog *) ((wxLogStderr *) x));
28131 }
28132 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
28133 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
28134 }
28135 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
28136 return (void *)((wxLog *) ((wxLogWindow *) x));
28137 }
28138 static void *_p_wxLogChainTo_p_wxLog(void *x) {
28139 return (void *)((wxLog *) ((wxLogChain *) x));
28140 }
28141 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
28142 return (void *)((wxLog *) ((wxLogGui *) x));
28143 }
28144 static void *_p_wxPyLogTo_p_wxLog(void *x) {
28145 return (void *)((wxLog *) ((wxPyLog *) x));
28146 }
28147 static void *_p_wxControlTo_p_wxWindow(void *x) {
28148 return (void *)((wxWindow *) ((wxControl *) x));
28149 }
28150 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
28151 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
28152 }
28153 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
28154 return (void *)((wxWindow *) ((wxMenuBar *) x));
28155 }
28156 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
28157 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
28158 }
28159 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
28160 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
28161 }
28162 static 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}};
28163 static 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}};
28164 static 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}};
28165 static 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}};
28166 static 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}};
28167 static 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}};
28168 static 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}};
28169 static 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}};
28170 static 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}};
28171 static 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}};
28172 static 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}};
28173 static 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}};
28174 static 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}};
28175 static 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}};
28176 static 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}};
28177 static 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}};
28178 static 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}};
28179 static 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}};
28180 static 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}};
28181 static 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}};
28182 static 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}};
28183 static 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}};
28184 static 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}};
28185 static 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}};
28186 static 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}};
28187 static 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}};
28188 static 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}};
28189 static 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}};
28190 static 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}};
28191 static 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}};
28192 static 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}};
28193 static 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}};
28194 static 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}};
28195 static 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}};
28196 static 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}};
28197 static 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}};
28198 static 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}};
28199 static 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}};
28200 static 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}};
28201 static 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}};
28202 static 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}};
28203 static 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}};
28204 static 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}};
28205 static 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}};
28206 static 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}};
28207 static 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}};
28208 static 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}};
28209 static 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}};
28210 static 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}};
28211 static 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}};
28212 static 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}};
28213 static 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}};
28214 static 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}};
28215 static 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}};
28216 static 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}};
28217 static 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}};
28218 static 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}};
28219 static 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}};
28220 static 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}};
28221 static 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}};
28222 static 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}};
28223 static 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}};
28224 static 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}};
28225 static 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}};
28226 static 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}};
28227 static 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}};
28228 static 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}};
28229 static 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}};
28230 static 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}};
28231 static 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}};
28232 static 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}};
28233 static 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}};
28234 static 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}};
28235 static 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}};
28236 static 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}};
28237 static 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}};
28238 static 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}};
28239 static 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}};
28240 static 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}};
28241 static 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}};
28242 static 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}};
28243 static swig_type_info _swigt__p_wxByte[] = {{"_p_wxByte", 0, "wxByte *", 0, 0, 0, 0},{"_p_wxByte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
28244 static 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}};
28245 static 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}};
28246 static 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}};
28247
28248 static swig_type_info *swig_types_initial[] = {
28249 _swigt__p_wxLogChain,
28250 _swigt__p_wxMutexGuiLocker,
28251 _swigt__p_wxMetafile,
28252 _swigt__p_wxFileHistory,
28253 _swigt__p_wxLog,
28254 _swigt__p_wxDateTime__TimeZone,
28255 _swigt__p_wxMenu,
28256 _swigt__p_wxEvent,
28257 _swigt__p_wxConfigBase,
28258 _swigt__p_wxFileType,
28259 _swigt__p_wxLogGui,
28260 _swigt__p_wxFont,
28261 _swigt__p_wxDataFormat,
28262 _swigt__p_wxTimerEvent,
28263 _swigt__p_wxCaret,
28264 _swigt__p_int,
28265 _swigt__p_wxSize,
28266 _swigt__p_wxClipboard,
28267 _swigt__p_wxStopWatch,
28268 _swigt__p_wxDC,
28269 _swigt__p_wxClipboardLocker,
28270 _swigt__p_wxIcon,
28271 _swigt__p_wxLogStderr,
28272 _swigt__p_wxLogTextCtrl,
28273 _swigt__p_wxTextCtrl,
28274 _swigt__p_wxBusyCursor,
28275 _swigt__p_wxPyTextDataObject,
28276 _swigt__p_wxBitmapDataObject,
28277 _swigt__p_wxTextDataObject,
28278 _swigt__p_wxDataObject,
28279 _swigt__p_wxPyBitmapDataObject,
28280 _swigt__p_wxFileDataObject,
28281 _swigt__p_wxCustomDataObject,
28282 _swigt__p_wxURLDataObject,
28283 _swigt__p_wxMetafileDataObject,
28284 _swigt__p_wxSound,
28285 _swigt__p_wxTimerRunner,
28286 _swigt__p_wxLogWindow,
28287 _swigt__p_wxTimeSpan,
28288 _swigt__p_wxArrayString,
28289 _swigt__p_wxWindowDisabler,
28290 _swigt__p_wxToolTip,
28291 _swigt__p_wxDataObjectComposite,
28292 _swigt__p_wxFileConfig,
28293 _swigt__p_wxSystemSettings,
28294 _swigt__p_wxPyDataObjectSimple,
28295 _swigt__p_wxDataObjectSimple,
28296 _swigt__p_wxEvtHandler,
28297 _swigt__p_wxRect,
28298 _swigt__p_char,
28299 _swigt__p_wxSingleInstanceChecker,
28300 _swigt__p_wxFileTypeInfo,
28301 _swigt__p_wxFrame,
28302 _swigt__p_wxTimer,
28303 _swigt__p_wxMimeTypesManager,
28304 _swigt__p_wxPyArtProvider,
28305 _swigt__p_wxPyTipProvider,
28306 _swigt__p_wxTipProvider,
28307 _swigt__p_wxJoystick,
28308 _swigt__p_wxSystemOptions,
28309 _swigt__p_wxPoint,
28310 _swigt__p_wxJoystickEvent,
28311 _swigt__p_wxCursor,
28312 _swigt__p_wxObject,
28313 _swigt__p_wxOutputStream,
28314 _swigt__p_wxDateTime,
28315 _swigt__p_wxPyDropSource,
28316 _swigt__p_wxWindow,
28317 _swigt__p_wxString,
28318 _swigt__p_wxPyProcess,
28319 _swigt__p_wxBitmap,
28320 _swigt__p_wxConfig,
28321 _swigt__p_wxChar,
28322 _swigt__p_wxBusyInfo,
28323 _swigt__p_wxPyDropTarget,
28324 _swigt__p_wxPyTextDropTarget,
28325 _swigt__p_wxPyFileDropTarget,
28326 _swigt__p_wxProcessEvent,
28327 _swigt__p_wxPyLog,
28328 _swigt__p_wxLogNull,
28329 _swigt__p_wxColour,
28330 _swigt__p_wxByte,
28331 _swigt__p_wxConfigPathChanger,
28332 _swigt__p_wxPyTimer,
28333 _swigt__p_wxDateSpan,
28334 0
28335 };
28336
28337
28338 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
28339
28340 static swig_const_info swig_const_table[] = {
28341 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
28342 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
28343 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
28344 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
28345 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
28346 {0, 0, 0, 0.0, 0, 0}};
28347
28348 #ifdef __cplusplus
28349 }
28350 #endif
28351
28352 #ifdef __cplusplus
28353 extern "C"
28354 #endif
28355 SWIGEXPORT(void) SWIG_init(void) {
28356 static PyObject *SWIG_globals = 0;
28357 static int typeinit = 0;
28358 PyObject *m, *d;
28359 int i;
28360 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
28361 m = Py_InitModule((char *) SWIG_name, SwigMethods);
28362 d = PyModule_GetDict(m);
28363
28364 if (!typeinit) {
28365 for (i = 0; swig_types_initial[i]; i++) {
28366 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
28367 }
28368 typeinit = 1;
28369 }
28370 SWIG_InstallConstants(d,swig_const_table);
28371
28372 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
28373 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
28374 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
28375 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
28376 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
28377 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
28378 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
28379 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
28380 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
28381 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
28382 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
28383 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
28384 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
28385 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
28386 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
28387 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
28388 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
28389 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
28390 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
28391 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
28392 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
28393 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
28394 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
28395 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
28396 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
28397 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
28398 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
28399 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
28400 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
28401 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
28402 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
28403 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
28404 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
28405 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
28406 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
28407 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
28408 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
28409 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
28410 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
28411 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
28412 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
28413 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
28414 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
28415 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
28416 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
28417 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
28418 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
28419 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
28420 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
28421 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
28422 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
28423 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
28424 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
28425 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
28426 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
28427 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
28428 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
28429 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
28430 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
28431 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
28432 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
28433 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
28434 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
28435 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
28436 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
28437 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
28438 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
28439 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
28440 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
28441 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
28442 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
28443 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
28444 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
28445 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
28446 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
28447 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
28448 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
28449 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
28450 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
28451 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
28452 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
28453 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
28454 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
28455 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
28456 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
28457 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
28458 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
28459 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
28460 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
28461 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
28462 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
28463 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
28464 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
28465 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
28466 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
28467 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
28468 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
28469 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
28470 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
28471 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
28472 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
28473 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
28474 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
28475 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
28476 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
28477 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
28478 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
28479 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
28480 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
28481 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
28482 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
28483 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
28484 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
28485 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
28486 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
28487 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
28488 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
28489 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
28490 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
28491 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
28492 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
28493 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
28494 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
28495 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
28496 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
28497 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
28498 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
28499 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
28500 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
28501 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
28502 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
28503 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
28504 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
28505 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
28506 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
28507 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
28508 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
28509 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
28510 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
28511 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
28512 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
28513 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
28514 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
28515 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
28516 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
28517 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
28518 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
28519 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
28520 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
28521 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
28522
28523 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
28524
28525 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
28526 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
28527 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
28528 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
28529 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
28530 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
28531 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
28532 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
28533 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
28534 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
28535 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
28536 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
28537 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
28538 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
28539 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
28540 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
28541 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
28542 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
28543 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
28544 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
28545 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
28546 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
28547 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
28548 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
28549 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
28550 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
28551 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
28552 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
28553 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
28554 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
28555 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
28556 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
28557 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
28558 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
28559 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
28560 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
28561 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
28562 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
28563 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
28564 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
28565 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
28566 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
28567 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
28568 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
28569 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
28570 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
28571 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
28572 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
28573 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
28574 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
28575 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
28576 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
28577 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
28578 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
28579 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
28580 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
28581 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
28582 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
28583
28584 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
28585
28586 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
28587 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
28588 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
28589 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
28590 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
28591 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
28592 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
28593 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
28594 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
28595 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
28596 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
28597 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
28598 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
28599 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
28600 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
28601 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
28602 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
28603 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
28604 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
28605 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
28606 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
28607 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
28608 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
28609 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
28610 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
28611 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
28612 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
28613 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
28614 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
28615 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
28616 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
28617 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
28618 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
28619 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
28620 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
28621 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
28622 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
28623 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
28624 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
28625 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
28626 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
28627 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
28628 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
28629 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
28630 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
28631 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
28632 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
28633 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
28634 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
28635 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
28636 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
28637 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
28638 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
28639 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
28640 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
28641 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
28642 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
28643 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
28644 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
28645 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
28646 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
28647 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
28648 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
28649 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
28650 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
28651 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
28652 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
28653 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
28654 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
28655 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
28656 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
28657 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
28658 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
28659 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
28660 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
28661 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
28662 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
28663 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
28664 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
28665 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
28666 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
28667 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
28668 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
28669 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
28670 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
28671 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
28672 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
28673 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
28674 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
28675 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
28676 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
28677 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
28678 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
28679 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
28680 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
28681 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
28682 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
28683 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
28684 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
28685 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
28686 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
28687 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
28688 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
28689 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
28690 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
28691 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
28692 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
28693 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
28694 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
28695 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
28696 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
28697 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
28698 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
28699 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
28700 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
28701 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
28702 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
28703 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
28704 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
28705 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
28706 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
28707 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
28708 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
28709 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
28710 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
28711 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
28712 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
28713 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
28714 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
28715 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
28716 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
28717 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
28718 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
28719 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
28720 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
28721 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
28722 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
28723 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
28724 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
28725 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
28726 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
28727 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
28728 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
28729 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
28730 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
28731 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
28732 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
28733 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
28734 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
28735 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
28736 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
28737 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
28738 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
28739 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
28740 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
28741 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
28742 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
28743 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
28744 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
28745 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
28746 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
28747 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
28748 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
28749 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
28750 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
28751 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
28752 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
28753 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
28754 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
28755 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
28756 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
28757 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
28758 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
28759 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
28760 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
28761 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
28762 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
28763 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
28764 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
28765 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
28766 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
28767 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
28768 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
28769 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
28770 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
28771 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
28772 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
28773 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
28774 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
28775 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
28776 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
28777 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
28778 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
28779 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
28780 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
28781 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
28782 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
28783 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
28784 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
28785 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
28786
28787 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
28788 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
28789 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
28790 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
28791
28792 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
28793 }
28794