]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/misc_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / 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
850 #include <wx/mimetype.h>
851
852 PyObject *wxFileType_GetMimeType(wxFileType *self){
853 wxString str;
854 if (self->GetMimeType(&str))
855 return wx2PyString(str);
856 else
857 RETURN_NONE();
858 }
859 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
860 wxArrayString arr;
861 if (self->GetMimeTypes(arr))
862 return wxArrayString2PyList_helper(arr);
863 else
864 RETURN_NONE();
865 }
866 PyObject *wxFileType_GetExtensions(wxFileType *self){
867 wxArrayString arr;
868 if (self->GetExtensions(arr))
869 return wxArrayString2PyList_helper(arr);
870 else
871 RETURN_NONE();
872 }
873 wxIcon *wxFileType_GetIcon(wxFileType *self){
874 wxIconLocation loc;
875 if (self->GetIcon(&loc))
876 return new wxIcon(loc);
877 else
878 return NULL;
879 }
880 PyObject *wxFileType_GetIconInfo(wxFileType *self){
881 wxIconLocation loc;
882 if (self->GetIcon(&loc)) {
883 wxString iconFile = loc.GetFileName();
884 int iconIndex = -1;
885
886 iconIndex = loc.GetIndex();
887
888 // Make a tuple and put the values in it
889 wxPyBeginBlockThreads();
890 PyObject* tuple = PyTuple_New(3);
891 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
892 wxT("wxIcon"), True));
893 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
894 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
895 wxPyEndBlockThreads();
896 return tuple;
897 }
898 else
899 RETURN_NONE();
900 }
901 PyObject *wxFileType_GetDescription(wxFileType *self){
902 wxString str;
903 if (self->GetDescription(&str))
904 return wx2PyString(str);
905 else
906 RETURN_NONE();
907 }
908 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
909 wxString str;
910 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
911 return wx2PyString(str);
912 else
913 RETURN_NONE();
914 }
915 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
916 wxString str;
917 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
918 return wx2PyString(str);
919 else
920 RETURN_NONE();
921 }
922 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
923 wxArrayString verbs;
924 wxArrayString commands;
925 if (self->GetAllCommands(&verbs, &commands,
926 wxFileType::MessageParameters(filename, mimetype))) {
927 wxPyBeginBlockThreads();
928 PyObject* tuple = PyTuple_New(2);
929 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
930 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
931 wxPyEndBlockThreads();
932 return tuple;
933 }
934 else
935 RETURN_NONE();
936 }
937 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
938 return wxFileType::ExpandCommand(command,
939 wxFileType::MessageParameters(filename, mimetype));
940 }
941 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
942 wxArrayString arr;
943 self->EnumAllFileTypes(arr);
944 return wxArrayString2PyList_helper(arr);
945 }
946
947 #include <wx/artprov.h>
948
949 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
950 static const wxString wxPyART_MENU(wxART_MENU);
951 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
952 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
953 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
954 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
955 static const wxString wxPyART_OTHER(wxART_OTHER);
956 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
957 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
958 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
959 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
960 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
961 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
962 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
963 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
964 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
965 static const wxString wxPyART_GO_UP(wxART_GO_UP);
966 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
967 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
968 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
969 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
970 static const wxString wxPyART_PRINT(wxART_PRINT);
971 static const wxString wxPyART_HELP(wxART_HELP);
972 static const wxString wxPyART_TIP(wxART_TIP);
973 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
974 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
975 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
976 static const wxString wxPyART_FOLDER(wxART_FOLDER);
977 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
978 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
979 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
980 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
981 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
982 static const wxString wxPyART_ERROR(wxART_ERROR);
983 static const wxString wxPyART_QUESTION(wxART_QUESTION);
984 static const wxString wxPyART_WARNING(wxART_WARNING);
985 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
986 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
987 // Python aware wxArtProvider
988 class wxPyArtProvider : public wxArtProvider {
989 public:
990
991 virtual wxBitmap CreateBitmap(const wxArtID& id,
992 const wxArtClient& client,
993 const wxSize& size) {
994 wxBitmap rval = wxNullBitmap;
995 wxPyBeginBlockThreads();
996 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
997 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
998 PyObject* ro;
999 wxBitmap* ptr;
1000 PyObject* s1, *s2;
1001 s1 = wx2PyString(id);
1002 s2 = wx2PyString(client);
1003 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1004 Py_DECREF(so);
1005 Py_DECREF(s1);
1006 Py_DECREF(s2);
1007 if (ro) {
1008 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1009 rval = *ptr;
1010 Py_DECREF(ro);
1011 }
1012 }
1013 wxPyEndBlockThreads();
1014 return rval;
1015 }
1016
1017 PYPRIVATE;
1018 };
1019
1020 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1021
1022
1023
1024 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1025 PyObject* ret = PyTuple_New(3);
1026 if (ret) {
1027 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1028 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1029 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1030 }
1031 return ret;
1032 }
1033
1034 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1035 bool cont;
1036 long index = 0;
1037 wxString value;
1038
1039 cont = self->GetFirstGroup(value, index);
1040 return __EnumerationHelper(cont, value, index);
1041 }
1042 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1043 bool cont;
1044 wxString value;
1045
1046 cont = self->GetNextGroup(value, index);
1047 return __EnumerationHelper(cont, value, index);
1048 }
1049 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1050 bool cont;
1051 long index = 0;
1052 wxString value;
1053
1054 cont = self->GetFirstEntry(value, index);
1055 return __EnumerationHelper(cont, value, index);
1056 }
1057 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1058 bool cont;
1059 wxString value;
1060
1061 cont = self->GetNextEntry(value, index);
1062 return __EnumerationHelper(cont, value, index);
1063 }
1064 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1065 long rv;
1066 self->Read(key, &rv, defaultVal);
1067 return rv;
1068 }
1069
1070 SWIGSTATICINLINE(double)
1071 SWIG_AsDouble(PyObject *obj)
1072 {
1073 double val = (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
1074 #if HAVE_LONG_LONG
1075 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
1076 #else
1077 ((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
1078 #endif
1079 if (PyErr_Occurred()) {
1080 PyErr_Clear();
1081 PyErr_SetString(PyExc_TypeError, "a double is expected");
1082 }
1083 return val;
1084 }
1085
1086
1087 SWIGSTATICINLINE(int)
1088 SWIG_CheckDouble(PyObject* obj)
1089 {
1090 SWIG_AsDouble(obj);
1091 if (PyErr_Occurred()) {
1092 PyErr_Clear();
1093 return 0;
1094 } else {
1095 return 1;
1096 }
1097 }
1098
1099 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1100 double rv;
1101 self->Read(key, &rv, defaultVal);
1102 return rv;
1103 }
1104 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1105 bool rv;
1106 self->Read(key, &rv, defaultVal);
1107 return rv;
1108 }
1109
1110 #include <wx/datetime.h>
1111
1112
1113 static const wxString wxPyDateFormatStr(wxT("%c"));
1114 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1115
1116 #define LOCAL_TZ wxDateTime::Local
1117
1118
1119 #if UINT_MAX < LONG_MAX
1120 #define SWIG_FromUnsignedInt SWIG_FromLong
1121 #else
1122 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1123 #endif
1124
1125 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1126 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1127 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1128 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1129 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1130 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self < *other) : False; }
1131 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){ return other ? (*self <= *other) : False; }
1132 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){ return other ? (*self > *other) : True; }
1133 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){ return other ? (*self >= *other) : True; }
1134 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){ return other ? (*self == *other) : False; }
1135 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){ return other ? (*self != *other) : True; }
1136 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1137 const wxChar* rv;
1138 const wxChar* _date = date;
1139 rv = self->ParseRfc822Date(_date);
1140 if (rv == NULL) return -1;
1141 return rv - _date;
1142 }
1143 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1144 const wxChar* rv;
1145 const wxChar* _date = date;
1146 rv = self->ParseFormat(_date, format, dateDef);
1147 if (rv == NULL) return -1;
1148 return rv - _date;
1149 }
1150 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1151 const wxChar* rv;
1152 const wxChar* _datetime = datetime;
1153 rv = self->ParseDateTime(_datetime);
1154 if (rv == NULL) return -1;
1155 return rv - _datetime;
1156 }
1157 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1158 const wxChar* rv;
1159 const wxChar* _date = date;
1160 rv = self->ParseDate(_date);
1161 if (rv == NULL) return -1;
1162 return rv - _date;
1163 }
1164 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1165 const wxChar* rv;
1166 const wxChar* _time = time;
1167 rv = self->ParseTime(_time);
1168 if (rv == NULL) return -1;
1169 return rv - _time;
1170 }
1171 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1172 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1173 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1174 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1175 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1176 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1177 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1178 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1179 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1180 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1181 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1182 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1183 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1184 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1185 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1186 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1187
1188 #include <wx/dataobj.h>
1189
1190 // Create a new class for wxPython to use
1191 class wxPyDataObjectSimple : public wxDataObjectSimple {
1192 public:
1193 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1194 : wxDataObjectSimple(format) {}
1195
1196 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1197 bool GetDataHere(void *buf) const;
1198 bool SetData(size_t len, const void *buf) const;
1199 PYPRIVATE;
1200 };
1201
1202 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1203
1204 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1205 // We need to get the data for this object and write it to buf. I think
1206 // the best way to do this for wxPython is to have the Python method
1207 // return either a string or None and then act appropriately with the
1208 // C++ version.
1209
1210 bool rval = False;
1211 wxPyBeginBlockThreads();
1212 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1213 PyObject* ro;
1214 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1215 if (ro) {
1216 rval = (ro != Py_None && PyString_Check(ro));
1217 if (rval)
1218 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1219 Py_DECREF(ro);
1220 }
1221 }
1222 wxPyEndBlockThreads();
1223 return rval;
1224 }
1225
1226 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1227 // For this one we simply need to make a string from buf and len
1228 // and send it to the Python method.
1229 bool rval = False;
1230 wxPyBeginBlockThreads();
1231 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1232 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1233 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1234 Py_DECREF(data);
1235 }
1236 wxPyEndBlockThreads();
1237 return rval;
1238 }
1239
1240 // Create a new class for wxPython to use
1241 class wxPyTextDataObject : public wxTextDataObject {
1242 public:
1243 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1244 : wxTextDataObject(text) {}
1245
1246 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1247 DEC_PYCALLBACK_STRING__const(GetText);
1248 DEC_PYCALLBACK__STRING(SetText);
1249 PYPRIVATE;
1250 };
1251
1252 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1253 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1254 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1255
1256
1257 // Create a new class for wxPython to use
1258 class wxPyBitmapDataObject : public wxBitmapDataObject {
1259 public:
1260 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1261 : wxBitmapDataObject(bitmap) {}
1262
1263 wxBitmap GetBitmap() const;
1264 void SetBitmap(const wxBitmap& bitmap);
1265 PYPRIVATE;
1266 };
1267
1268 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1269 wxBitmap* rval = &wxNullBitmap;
1270 wxPyBeginBlockThreads();
1271 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1272 PyObject* ro;
1273 wxBitmap* ptr;
1274 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1275 if (ro) {
1276 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1277 rval = ptr;
1278 Py_DECREF(ro);
1279 }
1280 }
1281 wxPyEndBlockThreads();
1282 return *rval;
1283 }
1284
1285 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1286 wxPyBeginBlockThreads();
1287 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1288 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1289 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1290 Py_DECREF(bo);
1291 }
1292 wxPyEndBlockThreads();
1293 }
1294
1295 void wxCustomDataObject_TakeData(wxCustomDataObject *self,PyObject *data){
1296 if (PyString_Check(data)) {
1297 // for Python we just call SetData here since we always need it to make a copy.
1298 self->SetData(PyString_Size(data), PyString_AsString(data));
1299 }
1300 else {
1301 // raise a TypeError if not a string
1302 PyErr_SetString(PyExc_TypeError, "String expected.");
1303 }
1304 }
1305 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1306 if (PyString_Check(data)) {
1307 return self->SetData(PyString_Size(data), PyString_AsString(data));
1308 }
1309 else {
1310 // raise a TypeError if not a string
1311 PyErr_SetString(PyExc_TypeError, "String expected.");
1312 return False;
1313 }
1314 }
1315 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1316 return PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1317 }
1318
1319 #include <wx/metafile.h>
1320
1321
1322 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1323
1324
1325 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1326 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1327 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1328 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1329 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1330
1331
1332 class wxPyTextDropTarget : public wxTextDropTarget {
1333 public:
1334 wxPyTextDropTarget() {}
1335
1336 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1337
1338 DEC_PYCALLBACK__(OnLeave);
1339 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1340 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1341 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1342 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1343
1344 PYPRIVATE;
1345 };
1346
1347 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1348 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1349 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1350 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1351 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1352 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1353
1354
1355
1356 class wxPyFileDropTarget : public wxFileDropTarget {
1357 public:
1358 wxPyFileDropTarget() {}
1359
1360 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1361
1362 DEC_PYCALLBACK__(OnLeave);
1363 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1364 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1365 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1366 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1367
1368 PYPRIVATE;
1369 };
1370
1371 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1372 const wxArrayString& filenames) {
1373 bool rval = False;
1374 wxPyBeginBlockThreads();
1375 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1376 PyObject* list = wxArrayString2PyList_helper(filenames);
1377 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1378 Py_DECREF(list);
1379 }
1380 wxPyEndBlockThreads();
1381 return rval;
1382 }
1383
1384
1385
1386 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1387 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1388 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1389 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1390 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1391
1392
1393
1394
1395 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1396 #ifdef __cplusplus
1397 extern "C" {
1398 #endif
1399 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1400 PyObject *resultobj;
1401 int arg1 ;
1402 wxColour result;
1403 PyObject * obj0 = 0 ;
1404 char *kwnames[] = {
1405 (char *) "index", NULL
1406 };
1407
1408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1409 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1410 if (PyErr_Occurred()) SWIG_fail;
1411 {
1412 PyThreadState* __tstate = wxPyBeginAllowThreads();
1413 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1414
1415 wxPyEndAllowThreads(__tstate);
1416 if (PyErr_Occurred()) SWIG_fail;
1417 }
1418 {
1419 wxColour * resultptr;
1420 resultptr = new wxColour((wxColour &) result);
1421 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1422 }
1423 return resultobj;
1424 fail:
1425 return NULL;
1426 }
1427
1428
1429 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1430 PyObject *resultobj;
1431 int arg1 ;
1432 wxFont result;
1433 PyObject * obj0 = 0 ;
1434 char *kwnames[] = {
1435 (char *) "index", NULL
1436 };
1437
1438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1439 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1440 if (PyErr_Occurred()) SWIG_fail;
1441 {
1442 PyThreadState* __tstate = wxPyBeginAllowThreads();
1443 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1444
1445 wxPyEndAllowThreads(__tstate);
1446 if (PyErr_Occurred()) SWIG_fail;
1447 }
1448 {
1449 wxFont * resultptr;
1450 resultptr = new wxFont((wxFont &) result);
1451 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1452 }
1453 return resultobj;
1454 fail:
1455 return NULL;
1456 }
1457
1458
1459 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1460 PyObject *resultobj;
1461 int arg1 ;
1462 int result;
1463 PyObject * obj0 = 0 ;
1464 char *kwnames[] = {
1465 (char *) "index", NULL
1466 };
1467
1468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1469 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1470 if (PyErr_Occurred()) SWIG_fail;
1471 {
1472 PyThreadState* __tstate = wxPyBeginAllowThreads();
1473 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1474
1475 wxPyEndAllowThreads(__tstate);
1476 if (PyErr_Occurred()) SWIG_fail;
1477 }
1478 resultobj = SWIG_FromInt((int)result);
1479 return resultobj;
1480 fail:
1481 return NULL;
1482 }
1483
1484
1485 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1486 PyObject *resultobj;
1487 int arg1 ;
1488 bool result;
1489 PyObject * obj0 = 0 ;
1490 char *kwnames[] = {
1491 (char *) "index", NULL
1492 };
1493
1494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1495 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1496 if (PyErr_Occurred()) SWIG_fail;
1497 {
1498 PyThreadState* __tstate = wxPyBeginAllowThreads();
1499 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1500
1501 wxPyEndAllowThreads(__tstate);
1502 if (PyErr_Occurred()) SWIG_fail;
1503 }
1504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1505 return resultobj;
1506 fail:
1507 return NULL;
1508 }
1509
1510
1511 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1512 PyObject *resultobj;
1513 int result;
1514 char *kwnames[] = {
1515 NULL
1516 };
1517
1518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1519 {
1520 PyThreadState* __tstate = wxPyBeginAllowThreads();
1521 result = (int)wxSystemSettings::GetScreenType();
1522
1523 wxPyEndAllowThreads(__tstate);
1524 if (PyErr_Occurred()) SWIG_fail;
1525 }
1526 resultobj = SWIG_FromInt((int)result);
1527 return resultobj;
1528 fail:
1529 return NULL;
1530 }
1531
1532
1533 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1534 PyObject *resultobj;
1535 int arg1 ;
1536 PyObject * obj0 = 0 ;
1537 char *kwnames[] = {
1538 (char *) "screen", NULL
1539 };
1540
1541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1542 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1543 if (PyErr_Occurred()) SWIG_fail;
1544 {
1545 PyThreadState* __tstate = wxPyBeginAllowThreads();
1546 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1547
1548 wxPyEndAllowThreads(__tstate);
1549 if (PyErr_Occurred()) SWIG_fail;
1550 }
1551 Py_INCREF(Py_None); resultobj = Py_None;
1552 return resultobj;
1553 fail:
1554 return NULL;
1555 }
1556
1557
1558 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1559 PyObject *obj;
1560 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1561 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1562 Py_INCREF(obj);
1563 return Py_BuildValue((char *)"");
1564 }
1565 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1566 PyObject *resultobj;
1567 wxSystemOptions *result;
1568 char *kwnames[] = {
1569 NULL
1570 };
1571
1572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1573 {
1574 PyThreadState* __tstate = wxPyBeginAllowThreads();
1575 result = (wxSystemOptions *)new wxSystemOptions();
1576
1577 wxPyEndAllowThreads(__tstate);
1578 if (PyErr_Occurred()) SWIG_fail;
1579 }
1580 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1581 return resultobj;
1582 fail:
1583 return NULL;
1584 }
1585
1586
1587 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1588 PyObject *resultobj;
1589 wxString *arg1 = 0 ;
1590 wxString *arg2 = 0 ;
1591 bool temp1 = False ;
1592 bool temp2 = False ;
1593 PyObject * obj0 = 0 ;
1594 PyObject * obj1 = 0 ;
1595 char *kwnames[] = {
1596 (char *) "name",(char *) "value", NULL
1597 };
1598
1599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1600 {
1601 arg1 = wxString_in_helper(obj0);
1602 if (arg1 == NULL) SWIG_fail;
1603 temp1 = True;
1604 }
1605 {
1606 arg2 = wxString_in_helper(obj1);
1607 if (arg2 == NULL) SWIG_fail;
1608 temp2 = True;
1609 }
1610 {
1611 PyThreadState* __tstate = wxPyBeginAllowThreads();
1612 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1613
1614 wxPyEndAllowThreads(__tstate);
1615 if (PyErr_Occurred()) SWIG_fail;
1616 }
1617 Py_INCREF(Py_None); resultobj = Py_None;
1618 {
1619 if (temp1)
1620 delete arg1;
1621 }
1622 {
1623 if (temp2)
1624 delete arg2;
1625 }
1626 return resultobj;
1627 fail:
1628 {
1629 if (temp1)
1630 delete arg1;
1631 }
1632 {
1633 if (temp2)
1634 delete arg2;
1635 }
1636 return NULL;
1637 }
1638
1639
1640 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1641 PyObject *resultobj;
1642 wxString *arg1 = 0 ;
1643 int arg2 ;
1644 bool temp1 = False ;
1645 PyObject * obj0 = 0 ;
1646 PyObject * obj1 = 0 ;
1647 char *kwnames[] = {
1648 (char *) "name",(char *) "value", NULL
1649 };
1650
1651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1652 {
1653 arg1 = wxString_in_helper(obj0);
1654 if (arg1 == NULL) SWIG_fail;
1655 temp1 = True;
1656 }
1657 arg2 = (int) SWIG_AsInt(obj1);
1658 if (PyErr_Occurred()) SWIG_fail;
1659 {
1660 PyThreadState* __tstate = wxPyBeginAllowThreads();
1661 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1662
1663 wxPyEndAllowThreads(__tstate);
1664 if (PyErr_Occurred()) SWIG_fail;
1665 }
1666 Py_INCREF(Py_None); resultobj = Py_None;
1667 {
1668 if (temp1)
1669 delete arg1;
1670 }
1671 return resultobj;
1672 fail:
1673 {
1674 if (temp1)
1675 delete arg1;
1676 }
1677 return NULL;
1678 }
1679
1680
1681 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1682 PyObject *resultobj;
1683 wxString *arg1 = 0 ;
1684 wxString result;
1685 bool temp1 = False ;
1686 PyObject * obj0 = 0 ;
1687 char *kwnames[] = {
1688 (char *) "name", NULL
1689 };
1690
1691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1692 {
1693 arg1 = wxString_in_helper(obj0);
1694 if (arg1 == NULL) SWIG_fail;
1695 temp1 = True;
1696 }
1697 {
1698 PyThreadState* __tstate = wxPyBeginAllowThreads();
1699 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1700
1701 wxPyEndAllowThreads(__tstate);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
1704 {
1705 #if wxUSE_UNICODE
1706 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1707 #else
1708 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1709 #endif
1710 }
1711 {
1712 if (temp1)
1713 delete arg1;
1714 }
1715 return resultobj;
1716 fail:
1717 {
1718 if (temp1)
1719 delete arg1;
1720 }
1721 return NULL;
1722 }
1723
1724
1725 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1726 PyObject *resultobj;
1727 wxString *arg1 = 0 ;
1728 int result;
1729 bool temp1 = False ;
1730 PyObject * obj0 = 0 ;
1731 char *kwnames[] = {
1732 (char *) "name", NULL
1733 };
1734
1735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1736 {
1737 arg1 = wxString_in_helper(obj0);
1738 if (arg1 == NULL) SWIG_fail;
1739 temp1 = True;
1740 }
1741 {
1742 PyThreadState* __tstate = wxPyBeginAllowThreads();
1743 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1744
1745 wxPyEndAllowThreads(__tstate);
1746 if (PyErr_Occurred()) SWIG_fail;
1747 }
1748 resultobj = SWIG_FromInt((int)result);
1749 {
1750 if (temp1)
1751 delete arg1;
1752 }
1753 return resultobj;
1754 fail:
1755 {
1756 if (temp1)
1757 delete arg1;
1758 }
1759 return NULL;
1760 }
1761
1762
1763 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1764 PyObject *resultobj;
1765 wxString *arg1 = 0 ;
1766 bool result;
1767 bool temp1 = False ;
1768 PyObject * obj0 = 0 ;
1769 char *kwnames[] = {
1770 (char *) "name", NULL
1771 };
1772
1773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1774 {
1775 arg1 = wxString_in_helper(obj0);
1776 if (arg1 == NULL) SWIG_fail;
1777 temp1 = True;
1778 }
1779 {
1780 PyThreadState* __tstate = wxPyBeginAllowThreads();
1781 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1782
1783 wxPyEndAllowThreads(__tstate);
1784 if (PyErr_Occurred()) SWIG_fail;
1785 }
1786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1787 {
1788 if (temp1)
1789 delete arg1;
1790 }
1791 return resultobj;
1792 fail:
1793 {
1794 if (temp1)
1795 delete arg1;
1796 }
1797 return NULL;
1798 }
1799
1800
1801 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1802 PyObject *obj;
1803 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1804 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1805 Py_INCREF(obj);
1806 return Py_BuildValue((char *)"");
1807 }
1808 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
1809 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1810 return 1;
1811 }
1812
1813
1814 static PyObject *_wrap_FileSelectorPromptStr_get() {
1815 PyObject *pyobj;
1816
1817 {
1818 #if wxUSE_UNICODE
1819 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1820 #else
1821 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
1822 #endif
1823 }
1824 return pyobj;
1825 }
1826
1827
1828 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
1829 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
1830 return 1;
1831 }
1832
1833
1834 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
1835 PyObject *pyobj;
1836
1837 {
1838 #if wxUSE_UNICODE
1839 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1840 #else
1841 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
1842 #endif
1843 }
1844 return pyobj;
1845 }
1846
1847
1848 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
1849 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
1850 return 1;
1851 }
1852
1853
1854 static PyObject *_wrap_DirSelectorPromptStr_get() {
1855 PyObject *pyobj;
1856
1857 {
1858 #if wxUSE_UNICODE
1859 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1860 #else
1861 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
1862 #endif
1863 }
1864 return pyobj;
1865 }
1866
1867
1868 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
1869 PyObject *resultobj;
1870 long result;
1871 char *kwnames[] = {
1872 NULL
1873 };
1874
1875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
1876 {
1877 PyThreadState* __tstate = wxPyBeginAllowThreads();
1878 result = (long)wxNewId();
1879
1880 wxPyEndAllowThreads(__tstate);
1881 if (PyErr_Occurred()) SWIG_fail;
1882 }
1883 resultobj = SWIG_FromLong((long)result);
1884 return resultobj;
1885 fail:
1886 return NULL;
1887 }
1888
1889
1890 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
1891 PyObject *resultobj;
1892 long arg1 ;
1893 PyObject * obj0 = 0 ;
1894 char *kwnames[] = {
1895 (char *) "id", NULL
1896 };
1897
1898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
1899 arg1 = (long) SWIG_AsLong(obj0);
1900 if (PyErr_Occurred()) SWIG_fail;
1901 {
1902 PyThreadState* __tstate = wxPyBeginAllowThreads();
1903 wxRegisterId(arg1);
1904
1905 wxPyEndAllowThreads(__tstate);
1906 if (PyErr_Occurred()) SWIG_fail;
1907 }
1908 Py_INCREF(Py_None); resultobj = Py_None;
1909 return resultobj;
1910 fail:
1911 return NULL;
1912 }
1913
1914
1915 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
1916 PyObject *resultobj;
1917 long result;
1918 char *kwnames[] = {
1919 NULL
1920 };
1921
1922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
1923 {
1924 PyThreadState* __tstate = wxPyBeginAllowThreads();
1925 result = (long)wxGetCurrentId();
1926
1927 wxPyEndAllowThreads(__tstate);
1928 if (PyErr_Occurred()) SWIG_fail;
1929 }
1930 resultobj = SWIG_FromLong((long)result);
1931 return resultobj;
1932 fail:
1933 return NULL;
1934 }
1935
1936
1937 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
1938 PyObject *resultobj;
1939 char *kwnames[] = {
1940 NULL
1941 };
1942
1943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
1944 {
1945 PyThreadState* __tstate = wxPyBeginAllowThreads();
1946 wxBell();
1947
1948 wxPyEndAllowThreads(__tstate);
1949 if (PyErr_Occurred()) SWIG_fail;
1950 }
1951 Py_INCREF(Py_None); resultobj = Py_None;
1952 return resultobj;
1953 fail:
1954 return NULL;
1955 }
1956
1957
1958 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
1959 PyObject *resultobj;
1960 char *kwnames[] = {
1961 NULL
1962 };
1963
1964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
1965 {
1966 PyThreadState* __tstate = wxPyBeginAllowThreads();
1967 wxEndBusyCursor();
1968
1969 wxPyEndAllowThreads(__tstate);
1970 if (PyErr_Occurred()) SWIG_fail;
1971 }
1972 Py_INCREF(Py_None); resultobj = Py_None;
1973 return resultobj;
1974 fail:
1975 return NULL;
1976 }
1977
1978
1979 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
1980 PyObject *resultobj;
1981 bool arg1 = (bool) True ;
1982 long result;
1983 PyObject * obj0 = 0 ;
1984 char *kwnames[] = {
1985 (char *) "resetTimer", NULL
1986 };
1987
1988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
1989 if (obj0) {
1990 arg1 = (bool) SWIG_AsBool(obj0);
1991 if (PyErr_Occurred()) SWIG_fail;
1992 }
1993 {
1994 PyThreadState* __tstate = wxPyBeginAllowThreads();
1995 result = (long)wxGetElapsedTime(arg1);
1996
1997 wxPyEndAllowThreads(__tstate);
1998 if (PyErr_Occurred()) SWIG_fail;
1999 }
2000 resultobj = SWIG_FromLong((long)result);
2001 return resultobj;
2002 fail:
2003 return NULL;
2004 }
2005
2006
2007 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2008 PyObject *resultobj;
2009 int *arg1 = (int *) 0 ;
2010 int *arg2 = (int *) 0 ;
2011 int temp1 ;
2012 int temp2 ;
2013 char *kwnames[] = {
2014 NULL
2015 };
2016
2017 arg1 = &temp1;
2018 arg2 = &temp2;
2019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2020 {
2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
2022 wxGetMousePosition(arg1,arg2);
2023
2024 wxPyEndAllowThreads(__tstate);
2025 if (PyErr_Occurred()) SWIG_fail;
2026 }
2027 Py_INCREF(Py_None); resultobj = Py_None;
2028 {
2029 PyObject *o = PyInt_FromLong((long) (*arg1));
2030 resultobj = t_output_helper(resultobj,o);
2031 }
2032 {
2033 PyObject *o = PyInt_FromLong((long) (*arg2));
2034 resultobj = t_output_helper(resultobj,o);
2035 }
2036 return resultobj;
2037 fail:
2038 return NULL;
2039 }
2040
2041
2042 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2043 PyObject *resultobj;
2044 bool result;
2045 char *kwnames[] = {
2046 NULL
2047 };
2048
2049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2050 {
2051 PyThreadState* __tstate = wxPyBeginAllowThreads();
2052 result = (bool)wxIsBusy();
2053
2054 wxPyEndAllowThreads(__tstate);
2055 if (PyErr_Occurred()) SWIG_fail;
2056 }
2057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2058 return resultobj;
2059 fail:
2060 return NULL;
2061 }
2062
2063
2064 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2065 PyObject *resultobj;
2066 wxString result;
2067 char *kwnames[] = {
2068 NULL
2069 };
2070
2071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2072 {
2073 PyThreadState* __tstate = wxPyBeginAllowThreads();
2074 result = wxNow();
2075
2076 wxPyEndAllowThreads(__tstate);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 }
2079 {
2080 #if wxUSE_UNICODE
2081 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2082 #else
2083 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2084 #endif
2085 }
2086 return resultobj;
2087 fail:
2088 return NULL;
2089 }
2090
2091
2092 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2093 PyObject *resultobj;
2094 wxString const &arg1_defvalue = wxPyEmptyString ;
2095 wxString *arg1 = (wxString *) &arg1_defvalue ;
2096 bool result;
2097 bool temp1 = False ;
2098 PyObject * obj0 = 0 ;
2099 char *kwnames[] = {
2100 (char *) "command", NULL
2101 };
2102
2103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2104 if (obj0) {
2105 {
2106 arg1 = wxString_in_helper(obj0);
2107 if (arg1 == NULL) SWIG_fail;
2108 temp1 = True;
2109 }
2110 }
2111 {
2112 PyThreadState* __tstate = wxPyBeginAllowThreads();
2113 result = (bool)wxShell((wxString const &)*arg1);
2114
2115 wxPyEndAllowThreads(__tstate);
2116 if (PyErr_Occurred()) SWIG_fail;
2117 }
2118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2119 {
2120 if (temp1)
2121 delete arg1;
2122 }
2123 return resultobj;
2124 fail:
2125 {
2126 if (temp1)
2127 delete arg1;
2128 }
2129 return NULL;
2130 }
2131
2132
2133 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2134 PyObject *resultobj;
2135 char *kwnames[] = {
2136 NULL
2137 };
2138
2139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2140 {
2141 PyThreadState* __tstate = wxPyBeginAllowThreads();
2142 wxStartTimer();
2143
2144 wxPyEndAllowThreads(__tstate);
2145 if (PyErr_Occurred()) SWIG_fail;
2146 }
2147 Py_INCREF(Py_None); resultobj = Py_None;
2148 return resultobj;
2149 fail:
2150 return NULL;
2151 }
2152
2153
2154 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2155 PyObject *resultobj;
2156 int *arg1 = (int *) 0 ;
2157 int *arg2 = (int *) 0 ;
2158 int result;
2159 int temp1 ;
2160 int temp2 ;
2161 char *kwnames[] = {
2162 NULL
2163 };
2164
2165 arg1 = &temp1;
2166 arg2 = &temp2;
2167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2168 {
2169 PyThreadState* __tstate = wxPyBeginAllowThreads();
2170 result = (int)wxGetOsVersion(arg1,arg2);
2171
2172 wxPyEndAllowThreads(__tstate);
2173 if (PyErr_Occurred()) SWIG_fail;
2174 }
2175 resultobj = SWIG_FromInt((int)result);
2176 {
2177 PyObject *o = PyInt_FromLong((long) (*arg1));
2178 resultobj = t_output_helper(resultobj,o);
2179 }
2180 {
2181 PyObject *o = PyInt_FromLong((long) (*arg2));
2182 resultobj = t_output_helper(resultobj,o);
2183 }
2184 return resultobj;
2185 fail:
2186 return NULL;
2187 }
2188
2189
2190 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2191 PyObject *resultobj;
2192 wxString result;
2193 char *kwnames[] = {
2194 NULL
2195 };
2196
2197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2198 {
2199 PyThreadState* __tstate = wxPyBeginAllowThreads();
2200 result = wxGetOsDescription();
2201
2202 wxPyEndAllowThreads(__tstate);
2203 if (PyErr_Occurred()) SWIG_fail;
2204 }
2205 {
2206 #if wxUSE_UNICODE
2207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2208 #else
2209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2210 #endif
2211 }
2212 return resultobj;
2213 fail:
2214 return NULL;
2215 }
2216
2217
2218 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2219 PyObject *resultobj;
2220 long result;
2221 char *kwnames[] = {
2222 NULL
2223 };
2224
2225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2226 {
2227 PyThreadState* __tstate = wxPyBeginAllowThreads();
2228 result = (long)wxGetFreeMemory();
2229
2230 wxPyEndAllowThreads(__tstate);
2231 if (PyErr_Occurred()) SWIG_fail;
2232 }
2233 resultobj = SWIG_FromLong((long)result);
2234 return resultobj;
2235 fail:
2236 return NULL;
2237 }
2238
2239
2240 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2241 PyObject *resultobj;
2242 int arg1 ;
2243 bool result;
2244 PyObject * obj0 = 0 ;
2245 char *kwnames[] = {
2246 (char *) "wFlags", NULL
2247 };
2248
2249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2250 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2251 if (PyErr_Occurred()) SWIG_fail;
2252 {
2253 PyThreadState* __tstate = wxPyBeginAllowThreads();
2254 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2255
2256 wxPyEndAllowThreads(__tstate);
2257 if (PyErr_Occurred()) SWIG_fail;
2258 }
2259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2260 return resultobj;
2261 fail:
2262 return NULL;
2263 }
2264
2265
2266 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2267 PyObject *resultobj;
2268 int arg1 ;
2269 PyObject * obj0 = 0 ;
2270 char *kwnames[] = {
2271 (char *) "secs", NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2275 arg1 = (int) SWIG_AsInt(obj0);
2276 if (PyErr_Occurred()) SWIG_fail;
2277 {
2278 PyThreadState* __tstate = wxPyBeginAllowThreads();
2279 wxSleep(arg1);
2280
2281 wxPyEndAllowThreads(__tstate);
2282 if (PyErr_Occurred()) SWIG_fail;
2283 }
2284 Py_INCREF(Py_None); resultobj = Py_None;
2285 return resultobj;
2286 fail:
2287 return NULL;
2288 }
2289
2290
2291 static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2292 PyObject *resultobj;
2293 unsigned long arg1 ;
2294 PyObject * obj0 = 0 ;
2295 char *kwnames[] = {
2296 (char *) "milliseconds", NULL
2297 };
2298
2299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2300 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2301 if (PyErr_Occurred()) SWIG_fail;
2302 {
2303 PyThreadState* __tstate = wxPyBeginAllowThreads();
2304 wxUsleep(arg1);
2305
2306 wxPyEndAllowThreads(__tstate);
2307 if (PyErr_Occurred()) SWIG_fail;
2308 }
2309 Py_INCREF(Py_None); resultobj = Py_None;
2310 return resultobj;
2311 fail:
2312 return NULL;
2313 }
2314
2315
2316 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2317 PyObject *resultobj;
2318 bool arg1 ;
2319 PyObject * obj0 = 0 ;
2320 char *kwnames[] = {
2321 (char *) "enable", NULL
2322 };
2323
2324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2325 arg1 = (bool) SWIG_AsBool(obj0);
2326 if (PyErr_Occurred()) SWIG_fail;
2327 {
2328 PyThreadState* __tstate = wxPyBeginAllowThreads();
2329 wxEnableTopLevelWindows(arg1);
2330
2331 wxPyEndAllowThreads(__tstate);
2332 if (PyErr_Occurred()) SWIG_fail;
2333 }
2334 Py_INCREF(Py_None); resultobj = Py_None;
2335 return resultobj;
2336 fail:
2337 return NULL;
2338 }
2339
2340
2341 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2342 PyObject *resultobj;
2343 wxString *arg1 = 0 ;
2344 wxString result;
2345 bool temp1 = False ;
2346 PyObject * obj0 = 0 ;
2347 char *kwnames[] = {
2348 (char *) "in", NULL
2349 };
2350
2351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2352 {
2353 arg1 = wxString_in_helper(obj0);
2354 if (arg1 == NULL) SWIG_fail;
2355 temp1 = True;
2356 }
2357 {
2358 PyThreadState* __tstate = wxPyBeginAllowThreads();
2359 result = wxStripMenuCodes((wxString const &)*arg1);
2360
2361 wxPyEndAllowThreads(__tstate);
2362 if (PyErr_Occurred()) SWIG_fail;
2363 }
2364 {
2365 #if wxUSE_UNICODE
2366 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2367 #else
2368 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2369 #endif
2370 }
2371 {
2372 if (temp1)
2373 delete arg1;
2374 }
2375 return resultobj;
2376 fail:
2377 {
2378 if (temp1)
2379 delete arg1;
2380 }
2381 return NULL;
2382 }
2383
2384
2385 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2386 PyObject *resultobj;
2387 wxString result;
2388 char *kwnames[] = {
2389 NULL
2390 };
2391
2392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2393 {
2394 PyThreadState* __tstate = wxPyBeginAllowThreads();
2395 result = wxGetEmailAddress();
2396
2397 wxPyEndAllowThreads(__tstate);
2398 if (PyErr_Occurred()) SWIG_fail;
2399 }
2400 {
2401 #if wxUSE_UNICODE
2402 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2403 #else
2404 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2405 #endif
2406 }
2407 return resultobj;
2408 fail:
2409 return NULL;
2410 }
2411
2412
2413 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2414 PyObject *resultobj;
2415 wxString result;
2416 char *kwnames[] = {
2417 NULL
2418 };
2419
2420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2421 {
2422 PyThreadState* __tstate = wxPyBeginAllowThreads();
2423 result = wxGetHostName();
2424
2425 wxPyEndAllowThreads(__tstate);
2426 if (PyErr_Occurred()) SWIG_fail;
2427 }
2428 {
2429 #if wxUSE_UNICODE
2430 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2431 #else
2432 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2433 #endif
2434 }
2435 return resultobj;
2436 fail:
2437 return NULL;
2438 }
2439
2440
2441 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2442 PyObject *resultobj;
2443 wxString result;
2444 char *kwnames[] = {
2445 NULL
2446 };
2447
2448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2449 {
2450 PyThreadState* __tstate = wxPyBeginAllowThreads();
2451 result = wxGetFullHostName();
2452
2453 wxPyEndAllowThreads(__tstate);
2454 if (PyErr_Occurred()) SWIG_fail;
2455 }
2456 {
2457 #if wxUSE_UNICODE
2458 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2459 #else
2460 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2461 #endif
2462 }
2463 return resultobj;
2464 fail:
2465 return NULL;
2466 }
2467
2468
2469 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2470 PyObject *resultobj;
2471 wxString result;
2472 char *kwnames[] = {
2473 NULL
2474 };
2475
2476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2477 {
2478 PyThreadState* __tstate = wxPyBeginAllowThreads();
2479 result = wxGetUserId();
2480
2481 wxPyEndAllowThreads(__tstate);
2482 if (PyErr_Occurred()) SWIG_fail;
2483 }
2484 {
2485 #if wxUSE_UNICODE
2486 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2487 #else
2488 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2489 #endif
2490 }
2491 return resultobj;
2492 fail:
2493 return NULL;
2494 }
2495
2496
2497 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2498 PyObject *resultobj;
2499 wxString result;
2500 char *kwnames[] = {
2501 NULL
2502 };
2503
2504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2505 {
2506 PyThreadState* __tstate = wxPyBeginAllowThreads();
2507 result = wxGetUserName();
2508
2509 wxPyEndAllowThreads(__tstate);
2510 if (PyErr_Occurred()) SWIG_fail;
2511 }
2512 {
2513 #if wxUSE_UNICODE
2514 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2515 #else
2516 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2517 #endif
2518 }
2519 return resultobj;
2520 fail:
2521 return NULL;
2522 }
2523
2524
2525 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2526 PyObject *resultobj;
2527 wxString result;
2528 char *kwnames[] = {
2529 NULL
2530 };
2531
2532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2533 {
2534 PyThreadState* __tstate = wxPyBeginAllowThreads();
2535 result = wxGetHomeDir();
2536
2537 wxPyEndAllowThreads(__tstate);
2538 if (PyErr_Occurred()) SWIG_fail;
2539 }
2540 {
2541 #if wxUSE_UNICODE
2542 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2543 #else
2544 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2545 #endif
2546 }
2547 return resultobj;
2548 fail:
2549 return NULL;
2550 }
2551
2552
2553 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2554 PyObject *resultobj;
2555 wxString const &arg1_defvalue = wxPyEmptyString ;
2556 wxString *arg1 = (wxString *) &arg1_defvalue ;
2557 wxString result;
2558 bool temp1 = False ;
2559 PyObject * obj0 = 0 ;
2560 char *kwnames[] = {
2561 (char *) "user", NULL
2562 };
2563
2564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2565 if (obj0) {
2566 {
2567 arg1 = wxString_in_helper(obj0);
2568 if (arg1 == NULL) SWIG_fail;
2569 temp1 = True;
2570 }
2571 }
2572 {
2573 PyThreadState* __tstate = wxPyBeginAllowThreads();
2574 result = wxGetUserHome((wxString const &)*arg1);
2575
2576 wxPyEndAllowThreads(__tstate);
2577 if (PyErr_Occurred()) SWIG_fail;
2578 }
2579 {
2580 #if wxUSE_UNICODE
2581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2582 #else
2583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2584 #endif
2585 }
2586 {
2587 if (temp1)
2588 delete arg1;
2589 }
2590 return resultobj;
2591 fail:
2592 {
2593 if (temp1)
2594 delete arg1;
2595 }
2596 return NULL;
2597 }
2598
2599
2600 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2601 PyObject *resultobj;
2602 unsigned long result;
2603 char *kwnames[] = {
2604 NULL
2605 };
2606
2607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2608 {
2609 PyThreadState* __tstate = wxPyBeginAllowThreads();
2610 result = (unsigned long)wxGetProcessId();
2611
2612 wxPyEndAllowThreads(__tstate);
2613 if (PyErr_Occurred()) SWIG_fail;
2614 }
2615 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2616 return resultobj;
2617 fail:
2618 return NULL;
2619 }
2620
2621
2622 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2623 PyObject *resultobj;
2624 char *kwnames[] = {
2625 NULL
2626 };
2627
2628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2629 {
2630 PyThreadState* __tstate = wxPyBeginAllowThreads();
2631 wxTrap();
2632
2633 wxPyEndAllowThreads(__tstate);
2634 if (PyErr_Occurred()) SWIG_fail;
2635 }
2636 Py_INCREF(Py_None); resultobj = Py_None;
2637 return resultobj;
2638 fail:
2639 return NULL;
2640 }
2641
2642
2643 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2644 PyObject *resultobj;
2645 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2646 wxString *arg1 = (wxString *) &arg1_defvalue ;
2647 wxString const &arg2_defvalue = wxPyEmptyString ;
2648 wxString *arg2 = (wxString *) &arg2_defvalue ;
2649 wxString const &arg3_defvalue = wxPyEmptyString ;
2650 wxString *arg3 = (wxString *) &arg3_defvalue ;
2651 wxString const &arg4_defvalue = wxPyEmptyString ;
2652 wxString *arg4 = (wxString *) &arg4_defvalue ;
2653 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2654 wxString *arg5 = (wxString *) &arg5_defvalue ;
2655 int arg6 = (int) 0 ;
2656 wxWindow *arg7 = (wxWindow *) NULL ;
2657 int arg8 = (int) -1 ;
2658 int arg9 = (int) -1 ;
2659 wxString result;
2660 bool temp1 = False ;
2661 bool temp2 = False ;
2662 bool temp3 = False ;
2663 bool temp4 = False ;
2664 bool temp5 = False ;
2665 PyObject * obj0 = 0 ;
2666 PyObject * obj1 = 0 ;
2667 PyObject * obj2 = 0 ;
2668 PyObject * obj3 = 0 ;
2669 PyObject * obj4 = 0 ;
2670 PyObject * obj5 = 0 ;
2671 PyObject * obj6 = 0 ;
2672 PyObject * obj7 = 0 ;
2673 PyObject * obj8 = 0 ;
2674 char *kwnames[] = {
2675 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2676 };
2677
2678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2679 if (obj0) {
2680 {
2681 arg1 = wxString_in_helper(obj0);
2682 if (arg1 == NULL) SWIG_fail;
2683 temp1 = True;
2684 }
2685 }
2686 if (obj1) {
2687 {
2688 arg2 = wxString_in_helper(obj1);
2689 if (arg2 == NULL) SWIG_fail;
2690 temp2 = True;
2691 }
2692 }
2693 if (obj2) {
2694 {
2695 arg3 = wxString_in_helper(obj2);
2696 if (arg3 == NULL) SWIG_fail;
2697 temp3 = True;
2698 }
2699 }
2700 if (obj3) {
2701 {
2702 arg4 = wxString_in_helper(obj3);
2703 if (arg4 == NULL) SWIG_fail;
2704 temp4 = True;
2705 }
2706 }
2707 if (obj4) {
2708 {
2709 arg5 = wxString_in_helper(obj4);
2710 if (arg5 == NULL) SWIG_fail;
2711 temp5 = True;
2712 }
2713 }
2714 if (obj5) {
2715 arg6 = (int) SWIG_AsInt(obj5);
2716 if (PyErr_Occurred()) SWIG_fail;
2717 }
2718 if (obj6) {
2719 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2721 }
2722 if (obj7) {
2723 arg8 = (int) SWIG_AsInt(obj7);
2724 if (PyErr_Occurred()) SWIG_fail;
2725 }
2726 if (obj8) {
2727 arg9 = (int) SWIG_AsInt(obj8);
2728 if (PyErr_Occurred()) SWIG_fail;
2729 }
2730 {
2731 PyThreadState* __tstate = wxPyBeginAllowThreads();
2732 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2733
2734 wxPyEndAllowThreads(__tstate);
2735 if (PyErr_Occurred()) SWIG_fail;
2736 }
2737 {
2738 #if wxUSE_UNICODE
2739 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2740 #else
2741 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2742 #endif
2743 }
2744 {
2745 if (temp1)
2746 delete arg1;
2747 }
2748 {
2749 if (temp2)
2750 delete arg2;
2751 }
2752 {
2753 if (temp3)
2754 delete arg3;
2755 }
2756 {
2757 if (temp4)
2758 delete arg4;
2759 }
2760 {
2761 if (temp5)
2762 delete arg5;
2763 }
2764 return resultobj;
2765 fail:
2766 {
2767 if (temp1)
2768 delete arg1;
2769 }
2770 {
2771 if (temp2)
2772 delete arg2;
2773 }
2774 {
2775 if (temp3)
2776 delete arg3;
2777 }
2778 {
2779 if (temp4)
2780 delete arg4;
2781 }
2782 {
2783 if (temp5)
2784 delete arg5;
2785 }
2786 return NULL;
2787 }
2788
2789
2790 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2791 PyObject *resultobj;
2792 wxString *arg1 = 0 ;
2793 wxString *arg2 = 0 ;
2794 wxString const &arg3_defvalue = wxPyEmptyString ;
2795 wxString *arg3 = (wxString *) &arg3_defvalue ;
2796 wxWindow *arg4 = (wxWindow *) NULL ;
2797 wxString result;
2798 bool temp1 = False ;
2799 bool temp2 = False ;
2800 bool temp3 = False ;
2801 PyObject * obj0 = 0 ;
2802 PyObject * obj1 = 0 ;
2803 PyObject * obj2 = 0 ;
2804 PyObject * obj3 = 0 ;
2805 char *kwnames[] = {
2806 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2807 };
2808
2809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2810 {
2811 arg1 = wxString_in_helper(obj0);
2812 if (arg1 == NULL) SWIG_fail;
2813 temp1 = True;
2814 }
2815 {
2816 arg2 = wxString_in_helper(obj1);
2817 if (arg2 == NULL) SWIG_fail;
2818 temp2 = True;
2819 }
2820 if (obj2) {
2821 {
2822 arg3 = wxString_in_helper(obj2);
2823 if (arg3 == NULL) SWIG_fail;
2824 temp3 = True;
2825 }
2826 }
2827 if (obj3) {
2828 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2830 }
2831 {
2832 PyThreadState* __tstate = wxPyBeginAllowThreads();
2833 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2834
2835 wxPyEndAllowThreads(__tstate);
2836 if (PyErr_Occurred()) SWIG_fail;
2837 }
2838 {
2839 #if wxUSE_UNICODE
2840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2841 #else
2842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2843 #endif
2844 }
2845 {
2846 if (temp1)
2847 delete arg1;
2848 }
2849 {
2850 if (temp2)
2851 delete arg2;
2852 }
2853 {
2854 if (temp3)
2855 delete arg3;
2856 }
2857 return resultobj;
2858 fail:
2859 {
2860 if (temp1)
2861 delete arg1;
2862 }
2863 {
2864 if (temp2)
2865 delete arg2;
2866 }
2867 {
2868 if (temp3)
2869 delete arg3;
2870 }
2871 return NULL;
2872 }
2873
2874
2875 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2876 PyObject *resultobj;
2877 wxString *arg1 = 0 ;
2878 wxString *arg2 = 0 ;
2879 wxString const &arg3_defvalue = wxPyEmptyString ;
2880 wxString *arg3 = (wxString *) &arg3_defvalue ;
2881 wxWindow *arg4 = (wxWindow *) NULL ;
2882 wxString result;
2883 bool temp1 = False ;
2884 bool temp2 = False ;
2885 bool temp3 = False ;
2886 PyObject * obj0 = 0 ;
2887 PyObject * obj1 = 0 ;
2888 PyObject * obj2 = 0 ;
2889 PyObject * obj3 = 0 ;
2890 char *kwnames[] = {
2891 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2892 };
2893
2894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2895 {
2896 arg1 = wxString_in_helper(obj0);
2897 if (arg1 == NULL) SWIG_fail;
2898 temp1 = True;
2899 }
2900 {
2901 arg2 = wxString_in_helper(obj1);
2902 if (arg2 == NULL) SWIG_fail;
2903 temp2 = True;
2904 }
2905 if (obj2) {
2906 {
2907 arg3 = wxString_in_helper(obj2);
2908 if (arg3 == NULL) SWIG_fail;
2909 temp3 = True;
2910 }
2911 }
2912 if (obj3) {
2913 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
2914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2915 }
2916 {
2917 PyThreadState* __tstate = wxPyBeginAllowThreads();
2918 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
2919
2920 wxPyEndAllowThreads(__tstate);
2921 if (PyErr_Occurred()) SWIG_fail;
2922 }
2923 {
2924 #if wxUSE_UNICODE
2925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2926 #else
2927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2928 #endif
2929 }
2930 {
2931 if (temp1)
2932 delete arg1;
2933 }
2934 {
2935 if (temp2)
2936 delete arg2;
2937 }
2938 {
2939 if (temp3)
2940 delete arg3;
2941 }
2942 return resultobj;
2943 fail:
2944 {
2945 if (temp1)
2946 delete arg1;
2947 }
2948 {
2949 if (temp2)
2950 delete arg2;
2951 }
2952 {
2953 if (temp3)
2954 delete arg3;
2955 }
2956 return NULL;
2957 }
2958
2959
2960 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2961 PyObject *resultobj;
2962 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
2963 wxString *arg1 = (wxString *) &arg1_defvalue ;
2964 wxString const &arg2_defvalue = wxPyEmptyString ;
2965 wxString *arg2 = (wxString *) &arg2_defvalue ;
2966 long arg3 = (long) wxDD_DEFAULT_STYLE ;
2967 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2968 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2969 wxWindow *arg5 = (wxWindow *) NULL ;
2970 wxString result;
2971 bool temp1 = False ;
2972 bool temp2 = False ;
2973 wxPoint temp4 ;
2974 PyObject * obj0 = 0 ;
2975 PyObject * obj1 = 0 ;
2976 PyObject * obj2 = 0 ;
2977 PyObject * obj3 = 0 ;
2978 PyObject * obj4 = 0 ;
2979 char *kwnames[] = {
2980 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
2981 };
2982
2983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
2984 if (obj0) {
2985 {
2986 arg1 = wxString_in_helper(obj0);
2987 if (arg1 == NULL) SWIG_fail;
2988 temp1 = True;
2989 }
2990 }
2991 if (obj1) {
2992 {
2993 arg2 = wxString_in_helper(obj1);
2994 if (arg2 == NULL) SWIG_fail;
2995 temp2 = True;
2996 }
2997 }
2998 if (obj2) {
2999 arg3 = (long) SWIG_AsLong(obj2);
3000 if (PyErr_Occurred()) SWIG_fail;
3001 }
3002 if (obj3) {
3003 {
3004 arg4 = &temp4;
3005 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3006 }
3007 }
3008 if (obj4) {
3009 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3011 }
3012 {
3013 PyThreadState* __tstate = wxPyBeginAllowThreads();
3014 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3015
3016 wxPyEndAllowThreads(__tstate);
3017 if (PyErr_Occurred()) SWIG_fail;
3018 }
3019 {
3020 #if wxUSE_UNICODE
3021 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3022 #else
3023 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3024 #endif
3025 }
3026 {
3027 if (temp1)
3028 delete arg1;
3029 }
3030 {
3031 if (temp2)
3032 delete arg2;
3033 }
3034 return resultobj;
3035 fail:
3036 {
3037 if (temp1)
3038 delete arg1;
3039 }
3040 {
3041 if (temp2)
3042 delete arg2;
3043 }
3044 return NULL;
3045 }
3046
3047
3048 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3049 PyObject *resultobj;
3050 wxString *arg1 = 0 ;
3051 wxString const &arg2_defvalue = wxPyEmptyString ;
3052 wxString *arg2 = (wxString *) &arg2_defvalue ;
3053 wxString const &arg3_defvalue = wxPyEmptyString ;
3054 wxString *arg3 = (wxString *) &arg3_defvalue ;
3055 wxWindow *arg4 = (wxWindow *) NULL ;
3056 int arg5 = (int) -1 ;
3057 int arg6 = (int) -1 ;
3058 bool arg7 = (bool) True ;
3059 wxString result;
3060 bool temp1 = False ;
3061 bool temp2 = False ;
3062 bool temp3 = False ;
3063 PyObject * obj0 = 0 ;
3064 PyObject * obj1 = 0 ;
3065 PyObject * obj2 = 0 ;
3066 PyObject * obj3 = 0 ;
3067 PyObject * obj4 = 0 ;
3068 PyObject * obj5 = 0 ;
3069 PyObject * obj6 = 0 ;
3070 char *kwnames[] = {
3071 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3072 };
3073
3074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3075 {
3076 arg1 = wxString_in_helper(obj0);
3077 if (arg1 == NULL) SWIG_fail;
3078 temp1 = True;
3079 }
3080 if (obj1) {
3081 {
3082 arg2 = wxString_in_helper(obj1);
3083 if (arg2 == NULL) SWIG_fail;
3084 temp2 = True;
3085 }
3086 }
3087 if (obj2) {
3088 {
3089 arg3 = wxString_in_helper(obj2);
3090 if (arg3 == NULL) SWIG_fail;
3091 temp3 = True;
3092 }
3093 }
3094 if (obj3) {
3095 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3097 }
3098 if (obj4) {
3099 arg5 = (int) SWIG_AsInt(obj4);
3100 if (PyErr_Occurred()) SWIG_fail;
3101 }
3102 if (obj5) {
3103 arg6 = (int) SWIG_AsInt(obj5);
3104 if (PyErr_Occurred()) SWIG_fail;
3105 }
3106 if (obj6) {
3107 arg7 = (bool) SWIG_AsBool(obj6);
3108 if (PyErr_Occurred()) SWIG_fail;
3109 }
3110 {
3111 PyThreadState* __tstate = wxPyBeginAllowThreads();
3112 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3113
3114 wxPyEndAllowThreads(__tstate);
3115 if (PyErr_Occurred()) SWIG_fail;
3116 }
3117 {
3118 #if wxUSE_UNICODE
3119 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3120 #else
3121 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3122 #endif
3123 }
3124 {
3125 if (temp1)
3126 delete arg1;
3127 }
3128 {
3129 if (temp2)
3130 delete arg2;
3131 }
3132 {
3133 if (temp3)
3134 delete arg3;
3135 }
3136 return resultobj;
3137 fail:
3138 {
3139 if (temp1)
3140 delete arg1;
3141 }
3142 {
3143 if (temp2)
3144 delete arg2;
3145 }
3146 {
3147 if (temp3)
3148 delete arg3;
3149 }
3150 return NULL;
3151 }
3152
3153
3154 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3155 PyObject *resultobj;
3156 wxString *arg1 = 0 ;
3157 wxString const &arg2_defvalue = wxPyEmptyString ;
3158 wxString *arg2 = (wxString *) &arg2_defvalue ;
3159 wxString const &arg3_defvalue = wxPyEmptyString ;
3160 wxString *arg3 = (wxString *) &arg3_defvalue ;
3161 wxWindow *arg4 = (wxWindow *) NULL ;
3162 wxString result;
3163 bool temp1 = False ;
3164 bool temp2 = False ;
3165 bool temp3 = False ;
3166 PyObject * obj0 = 0 ;
3167 PyObject * obj1 = 0 ;
3168 PyObject * obj2 = 0 ;
3169 PyObject * obj3 = 0 ;
3170 char *kwnames[] = {
3171 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3172 };
3173
3174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3175 {
3176 arg1 = wxString_in_helper(obj0);
3177 if (arg1 == NULL) SWIG_fail;
3178 temp1 = True;
3179 }
3180 if (obj1) {
3181 {
3182 arg2 = wxString_in_helper(obj1);
3183 if (arg2 == NULL) SWIG_fail;
3184 temp2 = True;
3185 }
3186 }
3187 if (obj2) {
3188 {
3189 arg3 = wxString_in_helper(obj2);
3190 if (arg3 == NULL) SWIG_fail;
3191 temp3 = True;
3192 }
3193 }
3194 if (obj3) {
3195 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3197 }
3198 {
3199 PyThreadState* __tstate = wxPyBeginAllowThreads();
3200 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3201
3202 wxPyEndAllowThreads(__tstate);
3203 if (PyErr_Occurred()) SWIG_fail;
3204 }
3205 {
3206 #if wxUSE_UNICODE
3207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3208 #else
3209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3210 #endif
3211 }
3212 {
3213 if (temp1)
3214 delete arg1;
3215 }
3216 {
3217 if (temp2)
3218 delete arg2;
3219 }
3220 {
3221 if (temp3)
3222 delete arg3;
3223 }
3224 return resultobj;
3225 fail:
3226 {
3227 if (temp1)
3228 delete arg1;
3229 }
3230 {
3231 if (temp2)
3232 delete arg2;
3233 }
3234 {
3235 if (temp3)
3236 delete arg3;
3237 }
3238 return NULL;
3239 }
3240
3241
3242 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3243 PyObject *resultobj;
3244 wxString *arg1 = 0 ;
3245 wxString *arg2 = 0 ;
3246 int arg3 ;
3247 wxString *arg4 = (wxString *) 0 ;
3248 wxWindow *arg5 = (wxWindow *) NULL ;
3249 int arg6 = (int) -1 ;
3250 int arg7 = (int) -1 ;
3251 bool arg8 = (bool) True ;
3252 int arg9 = (int) 150 ;
3253 int arg10 = (int) 200 ;
3254 wxString result;
3255 bool temp1 = False ;
3256 bool temp2 = False ;
3257 PyObject * obj0 = 0 ;
3258 PyObject * obj1 = 0 ;
3259 PyObject * obj2 = 0 ;
3260 PyObject * obj3 = 0 ;
3261 PyObject * obj4 = 0 ;
3262 PyObject * obj5 = 0 ;
3263 PyObject * obj6 = 0 ;
3264 PyObject * obj7 = 0 ;
3265 PyObject * obj8 = 0 ;
3266 char *kwnames[] = {
3267 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3268 };
3269
3270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3271 {
3272 arg1 = wxString_in_helper(obj0);
3273 if (arg1 == NULL) SWIG_fail;
3274 temp1 = True;
3275 }
3276 {
3277 arg2 = wxString_in_helper(obj1);
3278 if (arg2 == NULL) SWIG_fail;
3279 temp2 = True;
3280 }
3281 {
3282 arg3 = PyList_Size(obj2);
3283 arg4 = wxString_LIST_helper(obj2);
3284 if (arg4 == NULL) SWIG_fail;
3285 }
3286 if (obj3) {
3287 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3289 }
3290 if (obj4) {
3291 arg6 = (int) SWIG_AsInt(obj4);
3292 if (PyErr_Occurred()) SWIG_fail;
3293 }
3294 if (obj5) {
3295 arg7 = (int) SWIG_AsInt(obj5);
3296 if (PyErr_Occurred()) SWIG_fail;
3297 }
3298 if (obj6) {
3299 arg8 = (bool) SWIG_AsBool(obj6);
3300 if (PyErr_Occurred()) SWIG_fail;
3301 }
3302 if (obj7) {
3303 arg9 = (int) SWIG_AsInt(obj7);
3304 if (PyErr_Occurred()) SWIG_fail;
3305 }
3306 if (obj8) {
3307 arg10 = (int) SWIG_AsInt(obj8);
3308 if (PyErr_Occurred()) SWIG_fail;
3309 }
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3313
3314 wxPyEndAllowThreads(__tstate);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 }
3317 {
3318 #if wxUSE_UNICODE
3319 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3320 #else
3321 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3322 #endif
3323 }
3324 {
3325 if (temp1)
3326 delete arg1;
3327 }
3328 {
3329 if (temp2)
3330 delete arg2;
3331 }
3332 {
3333 if (arg4) delete [] arg4;
3334 }
3335 return resultobj;
3336 fail:
3337 {
3338 if (temp1)
3339 delete arg1;
3340 }
3341 {
3342 if (temp2)
3343 delete arg2;
3344 }
3345 {
3346 if (arg4) delete [] arg4;
3347 }
3348 return NULL;
3349 }
3350
3351
3352 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3353 PyObject *resultobj;
3354 wxString *arg1 = 0 ;
3355 wxString *arg2 = 0 ;
3356 int arg3 ;
3357 wxString *arg4 = (wxString *) 0 ;
3358 wxWindow *arg5 = (wxWindow *) NULL ;
3359 int arg6 = (int) -1 ;
3360 int arg7 = (int) -1 ;
3361 bool arg8 = (bool) True ;
3362 int arg9 = (int) 150 ;
3363 int arg10 = (int) 200 ;
3364 int result;
3365 bool temp1 = False ;
3366 bool temp2 = False ;
3367 PyObject * obj0 = 0 ;
3368 PyObject * obj1 = 0 ;
3369 PyObject * obj2 = 0 ;
3370 PyObject * obj3 = 0 ;
3371 PyObject * obj4 = 0 ;
3372 PyObject * obj5 = 0 ;
3373 PyObject * obj6 = 0 ;
3374 PyObject * obj7 = 0 ;
3375 PyObject * obj8 = 0 ;
3376 char *kwnames[] = {
3377 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3378 };
3379
3380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3381 {
3382 arg1 = wxString_in_helper(obj0);
3383 if (arg1 == NULL) SWIG_fail;
3384 temp1 = True;
3385 }
3386 {
3387 arg2 = wxString_in_helper(obj1);
3388 if (arg2 == NULL) SWIG_fail;
3389 temp2 = True;
3390 }
3391 {
3392 arg3 = PyList_Size(obj2);
3393 arg4 = wxString_LIST_helper(obj2);
3394 if (arg4 == NULL) SWIG_fail;
3395 }
3396 if (obj3) {
3397 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3399 }
3400 if (obj4) {
3401 arg6 = (int) SWIG_AsInt(obj4);
3402 if (PyErr_Occurred()) SWIG_fail;
3403 }
3404 if (obj5) {
3405 arg7 = (int) SWIG_AsInt(obj5);
3406 if (PyErr_Occurred()) SWIG_fail;
3407 }
3408 if (obj6) {
3409 arg8 = (bool) SWIG_AsBool(obj6);
3410 if (PyErr_Occurred()) SWIG_fail;
3411 }
3412 if (obj7) {
3413 arg9 = (int) SWIG_AsInt(obj7);
3414 if (PyErr_Occurred()) SWIG_fail;
3415 }
3416 if (obj8) {
3417 arg10 = (int) SWIG_AsInt(obj8);
3418 if (PyErr_Occurred()) SWIG_fail;
3419 }
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 resultobj = SWIG_FromInt((int)result);
3428 {
3429 if (temp1)
3430 delete arg1;
3431 }
3432 {
3433 if (temp2)
3434 delete arg2;
3435 }
3436 {
3437 if (arg4) delete [] arg4;
3438 }
3439 return resultobj;
3440 fail:
3441 {
3442 if (temp1)
3443 delete arg1;
3444 }
3445 {
3446 if (temp2)
3447 delete arg2;
3448 }
3449 {
3450 if (arg4) delete [] arg4;
3451 }
3452 return NULL;
3453 }
3454
3455
3456 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3457 PyObject *resultobj;
3458 wxString *arg1 = 0 ;
3459 wxString const &arg2_defvalue = wxPyEmptyString ;
3460 wxString *arg2 = (wxString *) &arg2_defvalue ;
3461 int arg3 = (int) wxOK|wxCENTRE ;
3462 wxWindow *arg4 = (wxWindow *) NULL ;
3463 int arg5 = (int) -1 ;
3464 int arg6 = (int) -1 ;
3465 int result;
3466 bool temp1 = False ;
3467 bool temp2 = False ;
3468 PyObject * obj0 = 0 ;
3469 PyObject * obj1 = 0 ;
3470 PyObject * obj2 = 0 ;
3471 PyObject * obj3 = 0 ;
3472 PyObject * obj4 = 0 ;
3473 PyObject * obj5 = 0 ;
3474 char *kwnames[] = {
3475 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3476 };
3477
3478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3479 {
3480 arg1 = wxString_in_helper(obj0);
3481 if (arg1 == NULL) SWIG_fail;
3482 temp1 = True;
3483 }
3484 if (obj1) {
3485 {
3486 arg2 = wxString_in_helper(obj1);
3487 if (arg2 == NULL) SWIG_fail;
3488 temp2 = True;
3489 }
3490 }
3491 if (obj2) {
3492 arg3 = (int) SWIG_AsInt(obj2);
3493 if (PyErr_Occurred()) SWIG_fail;
3494 }
3495 if (obj3) {
3496 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3498 }
3499 if (obj4) {
3500 arg5 = (int) SWIG_AsInt(obj4);
3501 if (PyErr_Occurred()) SWIG_fail;
3502 }
3503 if (obj5) {
3504 arg6 = (int) SWIG_AsInt(obj5);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 }
3507 {
3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
3509 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3510
3511 wxPyEndAllowThreads(__tstate);
3512 if (PyErr_Occurred()) SWIG_fail;
3513 }
3514 resultobj = SWIG_FromInt((int)result);
3515 {
3516 if (temp1)
3517 delete arg1;
3518 }
3519 {
3520 if (temp2)
3521 delete arg2;
3522 }
3523 return resultobj;
3524 fail:
3525 {
3526 if (temp1)
3527 delete arg1;
3528 }
3529 {
3530 if (temp2)
3531 delete arg2;
3532 }
3533 return NULL;
3534 }
3535
3536
3537 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3538 PyObject *resultobj;
3539 wxString *arg1 = 0 ;
3540 wxString *arg2 = 0 ;
3541 wxString *arg3 = 0 ;
3542 long arg4 ;
3543 long arg5 = (long) 0 ;
3544 long arg6 = (long) 100 ;
3545 wxWindow *arg7 = (wxWindow *) NULL ;
3546 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3547 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3548 long result;
3549 bool temp1 = False ;
3550 bool temp2 = False ;
3551 bool temp3 = False ;
3552 wxPoint temp8 ;
3553 PyObject * obj0 = 0 ;
3554 PyObject * obj1 = 0 ;
3555 PyObject * obj2 = 0 ;
3556 PyObject * obj3 = 0 ;
3557 PyObject * obj4 = 0 ;
3558 PyObject * obj5 = 0 ;
3559 PyObject * obj6 = 0 ;
3560 PyObject * obj7 = 0 ;
3561 char *kwnames[] = {
3562 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3563 };
3564
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3566 {
3567 arg1 = wxString_in_helper(obj0);
3568 if (arg1 == NULL) SWIG_fail;
3569 temp1 = True;
3570 }
3571 {
3572 arg2 = wxString_in_helper(obj1);
3573 if (arg2 == NULL) SWIG_fail;
3574 temp2 = True;
3575 }
3576 {
3577 arg3 = wxString_in_helper(obj2);
3578 if (arg3 == NULL) SWIG_fail;
3579 temp3 = True;
3580 }
3581 arg4 = (long) SWIG_AsLong(obj3);
3582 if (PyErr_Occurred()) SWIG_fail;
3583 if (obj4) {
3584 arg5 = (long) SWIG_AsLong(obj4);
3585 if (PyErr_Occurred()) SWIG_fail;
3586 }
3587 if (obj5) {
3588 arg6 = (long) SWIG_AsLong(obj5);
3589 if (PyErr_Occurred()) SWIG_fail;
3590 }
3591 if (obj6) {
3592 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3594 }
3595 if (obj7) {
3596 {
3597 arg8 = &temp8;
3598 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3599 }
3600 }
3601 {
3602 PyThreadState* __tstate = wxPyBeginAllowThreads();
3603 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3604
3605 wxPyEndAllowThreads(__tstate);
3606 if (PyErr_Occurred()) SWIG_fail;
3607 }
3608 resultobj = SWIG_FromLong((long)result);
3609 {
3610 if (temp1)
3611 delete arg1;
3612 }
3613 {
3614 if (temp2)
3615 delete arg2;
3616 }
3617 {
3618 if (temp3)
3619 delete arg3;
3620 }
3621 return resultobj;
3622 fail:
3623 {
3624 if (temp1)
3625 delete arg1;
3626 }
3627 {
3628 if (temp2)
3629 delete arg2;
3630 }
3631 {
3632 if (temp3)
3633 delete arg3;
3634 }
3635 return NULL;
3636 }
3637
3638
3639 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3640 PyObject *resultobj;
3641 bool result;
3642 char *kwnames[] = {
3643 NULL
3644 };
3645
3646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3647 {
3648 PyThreadState* __tstate = wxPyBeginAllowThreads();
3649 result = (bool)wxColourDisplay();
3650
3651 wxPyEndAllowThreads(__tstate);
3652 if (PyErr_Occurred()) SWIG_fail;
3653 }
3654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3655 return resultobj;
3656 fail:
3657 return NULL;
3658 }
3659
3660
3661 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3662 PyObject *resultobj;
3663 int result;
3664 char *kwnames[] = {
3665 NULL
3666 };
3667
3668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3669 {
3670 PyThreadState* __tstate = wxPyBeginAllowThreads();
3671 result = (int)wxDisplayDepth();
3672
3673 wxPyEndAllowThreads(__tstate);
3674 if (PyErr_Occurred()) SWIG_fail;
3675 }
3676 resultobj = SWIG_FromInt((int)result);
3677 return resultobj;
3678 fail:
3679 return NULL;
3680 }
3681
3682
3683 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3684 PyObject *resultobj;
3685 int result;
3686 char *kwnames[] = {
3687 NULL
3688 };
3689
3690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3691 {
3692 PyThreadState* __tstate = wxPyBeginAllowThreads();
3693 result = (int)wxGetDisplayDepth();
3694
3695 wxPyEndAllowThreads(__tstate);
3696 if (PyErr_Occurred()) SWIG_fail;
3697 }
3698 resultobj = SWIG_FromInt((int)result);
3699 return resultobj;
3700 fail:
3701 return NULL;
3702 }
3703
3704
3705 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3706 PyObject *resultobj;
3707 int *arg1 = (int *) 0 ;
3708 int *arg2 = (int *) 0 ;
3709 int temp1 ;
3710 int temp2 ;
3711 char *kwnames[] = {
3712 NULL
3713 };
3714
3715 arg1 = &temp1;
3716 arg2 = &temp2;
3717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3718 {
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 wxDisplaySize(arg1,arg2);
3721
3722 wxPyEndAllowThreads(__tstate);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
3725 Py_INCREF(Py_None); resultobj = Py_None;
3726 {
3727 PyObject *o = PyInt_FromLong((long) (*arg1));
3728 resultobj = t_output_helper(resultobj,o);
3729 }
3730 {
3731 PyObject *o = PyInt_FromLong((long) (*arg2));
3732 resultobj = t_output_helper(resultobj,o);
3733 }
3734 return resultobj;
3735 fail:
3736 return NULL;
3737 }
3738
3739
3740 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3741 PyObject *resultobj;
3742 wxSize result;
3743 char *kwnames[] = {
3744 NULL
3745 };
3746
3747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3748 {
3749 PyThreadState* __tstate = wxPyBeginAllowThreads();
3750 result = wxGetDisplaySize();
3751
3752 wxPyEndAllowThreads(__tstate);
3753 if (PyErr_Occurred()) SWIG_fail;
3754 }
3755 {
3756 wxSize * resultptr;
3757 resultptr = new wxSize((wxSize &) result);
3758 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3759 }
3760 return resultobj;
3761 fail:
3762 return NULL;
3763 }
3764
3765
3766 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3767 PyObject *resultobj;
3768 int *arg1 = (int *) 0 ;
3769 int *arg2 = (int *) 0 ;
3770 int temp1 ;
3771 int temp2 ;
3772 char *kwnames[] = {
3773 NULL
3774 };
3775
3776 arg1 = &temp1;
3777 arg2 = &temp2;
3778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3779 {
3780 PyThreadState* __tstate = wxPyBeginAllowThreads();
3781 wxDisplaySizeMM(arg1,arg2);
3782
3783 wxPyEndAllowThreads(__tstate);
3784 if (PyErr_Occurred()) SWIG_fail;
3785 }
3786 Py_INCREF(Py_None); resultobj = Py_None;
3787 {
3788 PyObject *o = PyInt_FromLong((long) (*arg1));
3789 resultobj = t_output_helper(resultobj,o);
3790 }
3791 {
3792 PyObject *o = PyInt_FromLong((long) (*arg2));
3793 resultobj = t_output_helper(resultobj,o);
3794 }
3795 return resultobj;
3796 fail:
3797 return NULL;
3798 }
3799
3800
3801 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3802 PyObject *resultobj;
3803 wxSize result;
3804 char *kwnames[] = {
3805 NULL
3806 };
3807
3808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3809 {
3810 PyThreadState* __tstate = wxPyBeginAllowThreads();
3811 result = wxGetDisplaySizeMM();
3812
3813 wxPyEndAllowThreads(__tstate);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 }
3816 {
3817 wxSize * resultptr;
3818 resultptr = new wxSize((wxSize &) result);
3819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3820 }
3821 return resultobj;
3822 fail:
3823 return NULL;
3824 }
3825
3826
3827 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3828 PyObject *resultobj;
3829 int *arg1 = (int *) 0 ;
3830 int *arg2 = (int *) 0 ;
3831 int *arg3 = (int *) 0 ;
3832 int *arg4 = (int *) 0 ;
3833 int temp1 ;
3834 int temp2 ;
3835 int temp3 ;
3836 int temp4 ;
3837 char *kwnames[] = {
3838 NULL
3839 };
3840
3841 arg1 = &temp1;
3842 arg2 = &temp2;
3843 arg3 = &temp3;
3844 arg4 = &temp4;
3845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
3846 {
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 wxClientDisplayRect(arg1,arg2,arg3,arg4);
3849
3850 wxPyEndAllowThreads(__tstate);
3851 if (PyErr_Occurred()) SWIG_fail;
3852 }
3853 Py_INCREF(Py_None); resultobj = Py_None;
3854 {
3855 PyObject *o = PyInt_FromLong((long) (*arg1));
3856 resultobj = t_output_helper(resultobj,o);
3857 }
3858 {
3859 PyObject *o = PyInt_FromLong((long) (*arg2));
3860 resultobj = t_output_helper(resultobj,o);
3861 }
3862 {
3863 PyObject *o = PyInt_FromLong((long) (*arg3));
3864 resultobj = t_output_helper(resultobj,o);
3865 }
3866 {
3867 PyObject *o = PyInt_FromLong((long) (*arg4));
3868 resultobj = t_output_helper(resultobj,o);
3869 }
3870 return resultobj;
3871 fail:
3872 return NULL;
3873 }
3874
3875
3876 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
3877 PyObject *resultobj;
3878 wxRect result;
3879 char *kwnames[] = {
3880 NULL
3881 };
3882
3883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
3884 {
3885 PyThreadState* __tstate = wxPyBeginAllowThreads();
3886 result = wxGetClientDisplayRect();
3887
3888 wxPyEndAllowThreads(__tstate);
3889 if (PyErr_Occurred()) SWIG_fail;
3890 }
3891 {
3892 wxRect * resultptr;
3893 resultptr = new wxRect((wxRect &) result);
3894 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
3895 }
3896 return resultobj;
3897 fail:
3898 return NULL;
3899 }
3900
3901
3902 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3903 PyObject *resultobj;
3904 wxCursor *arg1 = 0 ;
3905 PyObject * obj0 = 0 ;
3906 char *kwnames[] = {
3907 (char *) "cursor", NULL
3908 };
3909
3910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
3911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3912 SWIG_POINTER_EXCEPTION | 0)) == -1)
3913 SWIG_fail;
3914 if (arg1 == NULL) {
3915 PyErr_SetString(PyExc_TypeError,"null reference");
3916 SWIG_fail;
3917 }
3918 {
3919 PyThreadState* __tstate = wxPyBeginAllowThreads();
3920 wxSetCursor(*arg1);
3921
3922 wxPyEndAllowThreads(__tstate);
3923 if (PyErr_Occurred()) SWIG_fail;
3924 }
3925 Py_INCREF(Py_None); resultobj = Py_None;
3926 return resultobj;
3927 fail:
3928 return NULL;
3929 }
3930
3931
3932 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3933 PyObject *resultobj;
3934 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
3935 PyObject * obj0 = 0 ;
3936 char *kwnames[] = {
3937 (char *) "cursor", NULL
3938 };
3939
3940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
3941 if (obj0) {
3942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
3943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3944 }
3945 {
3946 PyThreadState* __tstate = wxPyBeginAllowThreads();
3947 wxBeginBusyCursor(arg1);
3948
3949 wxPyEndAllowThreads(__tstate);
3950 if (PyErr_Occurred()) SWIG_fail;
3951 }
3952 Py_INCREF(Py_None); resultobj = Py_None;
3953 return resultobj;
3954 fail:
3955 return NULL;
3956 }
3957
3958
3959 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
3960 PyObject *resultobj;
3961 wxWindow *result;
3962 char *kwnames[] = {
3963 NULL
3964 };
3965
3966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
3967 {
3968 PyThreadState* __tstate = wxPyBeginAllowThreads();
3969 result = (wxWindow *)wxGetActiveWindow();
3970
3971 wxPyEndAllowThreads(__tstate);
3972 if (PyErr_Occurred()) SWIG_fail;
3973 }
3974 {
3975 resultobj = wxPyMake_wxObject(result);
3976 }
3977 return resultobj;
3978 fail:
3979 return NULL;
3980 }
3981
3982
3983 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3984 PyObject *resultobj;
3985 wxPoint *arg1 = 0 ;
3986 wxWindow *result;
3987 wxPoint temp1 ;
3988 PyObject * obj0 = 0 ;
3989 char *kwnames[] = {
3990 (char *) "pt", NULL
3991 };
3992
3993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
3994 {
3995 arg1 = &temp1;
3996 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3997 }
3998 {
3999 PyThreadState* __tstate = wxPyBeginAllowThreads();
4000 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4001
4002 wxPyEndAllowThreads(__tstate);
4003 if (PyErr_Occurred()) SWIG_fail;
4004 }
4005 {
4006 resultobj = wxPyMake_wxObject(result);
4007 }
4008 return resultobj;
4009 fail:
4010 return NULL;
4011 }
4012
4013
4014 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4015 PyObject *resultobj;
4016 wxPoint *arg1 = 0 ;
4017 wxWindow *result;
4018 wxPoint temp1 ;
4019 PyObject * obj0 = 0 ;
4020 char *kwnames[] = {
4021 (char *) "pt", NULL
4022 };
4023
4024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4025 {
4026 arg1 = &temp1;
4027 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4028 }
4029 {
4030 PyThreadState* __tstate = wxPyBeginAllowThreads();
4031 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4032
4033 wxPyEndAllowThreads(__tstate);
4034 if (PyErr_Occurred()) SWIG_fail;
4035 }
4036 {
4037 resultobj = wxPyMake_wxObject(result);
4038 }
4039 return resultobj;
4040 fail:
4041 return NULL;
4042 }
4043
4044
4045 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4046 PyObject *resultobj;
4047 wxWindow *arg1 = (wxWindow *) 0 ;
4048 wxWindow *result;
4049 PyObject * obj0 = 0 ;
4050 char *kwnames[] = {
4051 (char *) "win", NULL
4052 };
4053
4054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4057 {
4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
4059 result = (wxWindow *)wxGetTopLevelParent(arg1);
4060
4061 wxPyEndAllowThreads(__tstate);
4062 if (PyErr_Occurred()) SWIG_fail;
4063 }
4064 {
4065 resultobj = wxPyMake_wxObject(result);
4066 }
4067 return resultobj;
4068 fail:
4069 return NULL;
4070 }
4071
4072
4073 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4074 PyObject *resultobj;
4075 int arg1 ;
4076 bool result;
4077 PyObject * obj0 = 0 ;
4078 char *kwnames[] = {
4079 (char *) "key", NULL
4080 };
4081
4082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4083 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 {
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4088
4089 wxPyEndAllowThreads(__tstate);
4090 if (PyErr_Occurred()) SWIG_fail;
4091 }
4092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4093 return resultobj;
4094 fail:
4095 return NULL;
4096 }
4097
4098
4099 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4100 PyObject *resultobj;
4101 char *kwnames[] = {
4102 NULL
4103 };
4104
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 wxWakeUpMainThread();
4109
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 Py_INCREF(Py_None); resultobj = Py_None;
4114 return resultobj;
4115 fail:
4116 return NULL;
4117 }
4118
4119
4120 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4121 PyObject *resultobj;
4122 char *kwnames[] = {
4123 NULL
4124 };
4125
4126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 wxMutexGuiEnter();
4130
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 Py_INCREF(Py_None); resultobj = Py_None;
4135 return resultobj;
4136 fail:
4137 return NULL;
4138 }
4139
4140
4141 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4142 PyObject *resultobj;
4143 char *kwnames[] = {
4144 NULL
4145 };
4146
4147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4148 {
4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
4150 wxMutexGuiLeave();
4151
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 }
4155 Py_INCREF(Py_None); resultobj = Py_None;
4156 return resultobj;
4157 fail:
4158 return NULL;
4159 }
4160
4161
4162 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4163 PyObject *resultobj;
4164 wxMutexGuiLocker *result;
4165 char *kwnames[] = {
4166 NULL
4167 };
4168
4169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4170 {
4171 PyThreadState* __tstate = wxPyBeginAllowThreads();
4172 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4173
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4178 return resultobj;
4179 fail:
4180 return NULL;
4181 }
4182
4183
4184 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4185 PyObject *resultobj;
4186 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4187 PyObject * obj0 = 0 ;
4188 char *kwnames[] = {
4189 (char *) "self", NULL
4190 };
4191
4192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4195 {
4196 PyThreadState* __tstate = wxPyBeginAllowThreads();
4197 delete arg1;
4198
4199 wxPyEndAllowThreads(__tstate);
4200 if (PyErr_Occurred()) SWIG_fail;
4201 }
4202 Py_INCREF(Py_None); resultobj = Py_None;
4203 return resultobj;
4204 fail:
4205 return NULL;
4206 }
4207
4208
4209 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4210 PyObject *obj;
4211 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4212 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4213 Py_INCREF(obj);
4214 return Py_BuildValue((char *)"");
4215 }
4216 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4217 PyObject *resultobj;
4218 bool result;
4219 char *kwnames[] = {
4220 NULL
4221 };
4222
4223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (bool)wxThread_IsMain();
4227
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj;
4240 wxString *arg1 = 0 ;
4241 wxToolTip *result;
4242 bool temp1 = False ;
4243 PyObject * obj0 = 0 ;
4244 char *kwnames[] = {
4245 (char *) "tip", NULL
4246 };
4247
4248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4249 {
4250 arg1 = wxString_in_helper(obj0);
4251 if (arg1 == NULL) SWIG_fail;
4252 temp1 = True;
4253 }
4254 {
4255 PyThreadState* __tstate = wxPyBeginAllowThreads();
4256 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4257
4258 wxPyEndAllowThreads(__tstate);
4259 if (PyErr_Occurred()) SWIG_fail;
4260 }
4261 {
4262 resultobj = wxPyMake_wxObject(result);
4263 }
4264 {
4265 if (temp1)
4266 delete arg1;
4267 }
4268 return resultobj;
4269 fail:
4270 {
4271 if (temp1)
4272 delete arg1;
4273 }
4274 return NULL;
4275 }
4276
4277
4278 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4279 PyObject *resultobj;
4280 wxToolTip *arg1 = (wxToolTip *) 0 ;
4281 wxString *arg2 = 0 ;
4282 bool temp2 = False ;
4283 PyObject * obj0 = 0 ;
4284 PyObject * obj1 = 0 ;
4285 char *kwnames[] = {
4286 (char *) "self",(char *) "tip", NULL
4287 };
4288
4289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4292 {
4293 arg2 = wxString_in_helper(obj1);
4294 if (arg2 == NULL) SWIG_fail;
4295 temp2 = True;
4296 }
4297 {
4298 PyThreadState* __tstate = wxPyBeginAllowThreads();
4299 (arg1)->SetTip((wxString const &)*arg2);
4300
4301 wxPyEndAllowThreads(__tstate);
4302 if (PyErr_Occurred()) SWIG_fail;
4303 }
4304 Py_INCREF(Py_None); resultobj = Py_None;
4305 {
4306 if (temp2)
4307 delete arg2;
4308 }
4309 return resultobj;
4310 fail:
4311 {
4312 if (temp2)
4313 delete arg2;
4314 }
4315 return NULL;
4316 }
4317
4318
4319 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4320 PyObject *resultobj;
4321 wxToolTip *arg1 = (wxToolTip *) 0 ;
4322 wxString result;
4323 PyObject * obj0 = 0 ;
4324 char *kwnames[] = {
4325 (char *) "self", NULL
4326 };
4327
4328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 result = (arg1)->GetTip();
4334
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 {
4339 #if wxUSE_UNICODE
4340 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4341 #else
4342 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4343 #endif
4344 }
4345 return resultobj;
4346 fail:
4347 return NULL;
4348 }
4349
4350
4351 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4352 PyObject *resultobj;
4353 wxToolTip *arg1 = (wxToolTip *) 0 ;
4354 wxWindow *result;
4355 PyObject * obj0 = 0 ;
4356 char *kwnames[] = {
4357 (char *) "self", NULL
4358 };
4359
4360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4363 {
4364 PyThreadState* __tstate = wxPyBeginAllowThreads();
4365 result = (wxWindow *)(arg1)->GetWindow();
4366
4367 wxPyEndAllowThreads(__tstate);
4368 if (PyErr_Occurred()) SWIG_fail;
4369 }
4370 {
4371 resultobj = wxPyMake_wxObject(result);
4372 }
4373 return resultobj;
4374 fail:
4375 return NULL;
4376 }
4377
4378
4379 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4380 PyObject *resultobj;
4381 bool arg1 ;
4382 PyObject * obj0 = 0 ;
4383 char *kwnames[] = {
4384 (char *) "flag", NULL
4385 };
4386
4387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4388 arg1 = (bool) SWIG_AsBool(obj0);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 {
4391 PyThreadState* __tstate = wxPyBeginAllowThreads();
4392 wxToolTip::Enable(arg1);
4393
4394 wxPyEndAllowThreads(__tstate);
4395 if (PyErr_Occurred()) SWIG_fail;
4396 }
4397 Py_INCREF(Py_None); resultobj = Py_None;
4398 return resultobj;
4399 fail:
4400 return NULL;
4401 }
4402
4403
4404 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4405 PyObject *resultobj;
4406 long arg1 ;
4407 PyObject * obj0 = 0 ;
4408 char *kwnames[] = {
4409 (char *) "milliseconds", NULL
4410 };
4411
4412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4413 arg1 = (long) SWIG_AsLong(obj0);
4414 if (PyErr_Occurred()) SWIG_fail;
4415 {
4416 PyThreadState* __tstate = wxPyBeginAllowThreads();
4417 wxToolTip::SetDelay(arg1);
4418
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 Py_INCREF(Py_None); resultobj = Py_None;
4423 return resultobj;
4424 fail:
4425 return NULL;
4426 }
4427
4428
4429 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4430 PyObject *obj;
4431 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4432 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4433 Py_INCREF(obj);
4434 return Py_BuildValue((char *)"");
4435 }
4436 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4437 PyObject *resultobj;
4438 wxWindow *arg1 = (wxWindow *) 0 ;
4439 wxSize *arg2 = 0 ;
4440 wxCaret *result;
4441 wxSize temp2 ;
4442 PyObject * obj0 = 0 ;
4443 PyObject * obj1 = 0 ;
4444 char *kwnames[] = {
4445 (char *) "window",(char *) "size", NULL
4446 };
4447
4448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4451 {
4452 arg2 = &temp2;
4453 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4454 }
4455 {
4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
4457 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4458
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) SWIG_fail;
4461 }
4462 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4463 return resultobj;
4464 fail:
4465 return NULL;
4466 }
4467
4468
4469 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4470 PyObject *resultobj;
4471 wxCaret *arg1 = (wxCaret *) 0 ;
4472 PyObject * obj0 = 0 ;
4473 char *kwnames[] = {
4474 (char *) "self", NULL
4475 };
4476
4477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4480 {
4481 PyThreadState* __tstate = wxPyBeginAllowThreads();
4482 delete arg1;
4483
4484 wxPyEndAllowThreads(__tstate);
4485 if (PyErr_Occurred()) SWIG_fail;
4486 }
4487 Py_INCREF(Py_None); resultobj = Py_None;
4488 return resultobj;
4489 fail:
4490 return NULL;
4491 }
4492
4493
4494 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4495 PyObject *resultobj;
4496 wxCaret *arg1 = (wxCaret *) 0 ;
4497 bool result;
4498 PyObject * obj0 = 0 ;
4499 char *kwnames[] = {
4500 (char *) "self", NULL
4501 };
4502
4503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4506 {
4507 PyThreadState* __tstate = wxPyBeginAllowThreads();
4508 result = (bool)(arg1)->IsOk();
4509
4510 wxPyEndAllowThreads(__tstate);
4511 if (PyErr_Occurred()) SWIG_fail;
4512 }
4513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4514 return resultobj;
4515 fail:
4516 return NULL;
4517 }
4518
4519
4520 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4521 PyObject *resultobj;
4522 wxCaret *arg1 = (wxCaret *) 0 ;
4523 bool result;
4524 PyObject * obj0 = 0 ;
4525 char *kwnames[] = {
4526 (char *) "self", NULL
4527 };
4528
4529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4532 {
4533 PyThreadState* __tstate = wxPyBeginAllowThreads();
4534 result = (bool)(arg1)->IsVisible();
4535
4536 wxPyEndAllowThreads(__tstate);
4537 if (PyErr_Occurred()) SWIG_fail;
4538 }
4539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4540 return resultobj;
4541 fail:
4542 return NULL;
4543 }
4544
4545
4546 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4547 PyObject *resultobj;
4548 wxCaret *arg1 = (wxCaret *) 0 ;
4549 wxPoint result;
4550 PyObject * obj0 = 0 ;
4551 char *kwnames[] = {
4552 (char *) "self", NULL
4553 };
4554
4555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4558 {
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 result = (arg1)->GetPosition();
4561
4562 wxPyEndAllowThreads(__tstate);
4563 if (PyErr_Occurred()) SWIG_fail;
4564 }
4565 {
4566 wxPoint * resultptr;
4567 resultptr = new wxPoint((wxPoint &) result);
4568 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4569 }
4570 return resultobj;
4571 fail:
4572 return NULL;
4573 }
4574
4575
4576 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4577 PyObject *resultobj;
4578 wxCaret *arg1 = (wxCaret *) 0 ;
4579 int *arg2 = (int *) 0 ;
4580 int *arg3 = (int *) 0 ;
4581 int temp2 ;
4582 int temp3 ;
4583 PyObject * obj0 = 0 ;
4584 char *kwnames[] = {
4585 (char *) "self", NULL
4586 };
4587
4588 arg2 = &temp2;
4589 arg3 = &temp3;
4590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4593 {
4594 PyThreadState* __tstate = wxPyBeginAllowThreads();
4595 (arg1)->GetPosition(arg2,arg3);
4596
4597 wxPyEndAllowThreads(__tstate);
4598 if (PyErr_Occurred()) SWIG_fail;
4599 }
4600 Py_INCREF(Py_None); resultobj = Py_None;
4601 {
4602 PyObject *o = PyInt_FromLong((long) (*arg2));
4603 resultobj = t_output_helper(resultobj,o);
4604 }
4605 {
4606 PyObject *o = PyInt_FromLong((long) (*arg3));
4607 resultobj = t_output_helper(resultobj,o);
4608 }
4609 return resultobj;
4610 fail:
4611 return NULL;
4612 }
4613
4614
4615 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4616 PyObject *resultobj;
4617 wxCaret *arg1 = (wxCaret *) 0 ;
4618 wxSize result;
4619 PyObject * obj0 = 0 ;
4620 char *kwnames[] = {
4621 (char *) "self", NULL
4622 };
4623
4624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4627 {
4628 PyThreadState* __tstate = wxPyBeginAllowThreads();
4629 result = (arg1)->GetSize();
4630
4631 wxPyEndAllowThreads(__tstate);
4632 if (PyErr_Occurred()) SWIG_fail;
4633 }
4634 {
4635 wxSize * resultptr;
4636 resultptr = new wxSize((wxSize &) result);
4637 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4638 }
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj;
4647 wxCaret *arg1 = (wxCaret *) 0 ;
4648 int *arg2 = (int *) 0 ;
4649 int *arg3 = (int *) 0 ;
4650 int temp2 ;
4651 int temp3 ;
4652 PyObject * obj0 = 0 ;
4653 char *kwnames[] = {
4654 (char *) "self", NULL
4655 };
4656
4657 arg2 = &temp2;
4658 arg3 = &temp3;
4659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4662 {
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 (arg1)->GetSize(arg2,arg3);
4665
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 Py_INCREF(Py_None); resultobj = Py_None;
4670 {
4671 PyObject *o = PyInt_FromLong((long) (*arg2));
4672 resultobj = t_output_helper(resultobj,o);
4673 }
4674 {
4675 PyObject *o = PyInt_FromLong((long) (*arg3));
4676 resultobj = t_output_helper(resultobj,o);
4677 }
4678 return resultobj;
4679 fail:
4680 return NULL;
4681 }
4682
4683
4684 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4685 PyObject *resultobj;
4686 wxCaret *arg1 = (wxCaret *) 0 ;
4687 wxWindow *result;
4688 PyObject * obj0 = 0 ;
4689 char *kwnames[] = {
4690 (char *) "self", NULL
4691 };
4692
4693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4696 {
4697 PyThreadState* __tstate = wxPyBeginAllowThreads();
4698 result = (wxWindow *)(arg1)->GetWindow();
4699
4700 wxPyEndAllowThreads(__tstate);
4701 if (PyErr_Occurred()) SWIG_fail;
4702 }
4703 {
4704 resultobj = wxPyMake_wxObject(result);
4705 }
4706 return resultobj;
4707 fail:
4708 return NULL;
4709 }
4710
4711
4712 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4713 PyObject *resultobj;
4714 wxCaret *arg1 = (wxCaret *) 0 ;
4715 int arg2 ;
4716 int arg3 ;
4717 PyObject * obj0 = 0 ;
4718 PyObject * obj1 = 0 ;
4719 PyObject * obj2 = 0 ;
4720 char *kwnames[] = {
4721 (char *) "self",(char *) "x",(char *) "y", NULL
4722 };
4723
4724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4727 arg2 = (int) SWIG_AsInt(obj1);
4728 if (PyErr_Occurred()) SWIG_fail;
4729 arg3 = (int) SWIG_AsInt(obj2);
4730 if (PyErr_Occurred()) SWIG_fail;
4731 {
4732 PyThreadState* __tstate = wxPyBeginAllowThreads();
4733 (arg1)->Move(arg2,arg3);
4734
4735 wxPyEndAllowThreads(__tstate);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 }
4738 Py_INCREF(Py_None); resultobj = Py_None;
4739 return resultobj;
4740 fail:
4741 return NULL;
4742 }
4743
4744
4745 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4746 PyObject *resultobj;
4747 wxCaret *arg1 = (wxCaret *) 0 ;
4748 wxPoint *arg2 = 0 ;
4749 wxPoint temp2 ;
4750 PyObject * obj0 = 0 ;
4751 PyObject * obj1 = 0 ;
4752 char *kwnames[] = {
4753 (char *) "self",(char *) "pt", NULL
4754 };
4755
4756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4759 {
4760 arg2 = &temp2;
4761 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4762 }
4763 {
4764 PyThreadState* __tstate = wxPyBeginAllowThreads();
4765 (arg1)->Move((wxPoint const &)*arg2);
4766
4767 wxPyEndAllowThreads(__tstate);
4768 if (PyErr_Occurred()) SWIG_fail;
4769 }
4770 Py_INCREF(Py_None); resultobj = Py_None;
4771 return resultobj;
4772 fail:
4773 return NULL;
4774 }
4775
4776
4777 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4778 PyObject *resultobj;
4779 wxCaret *arg1 = (wxCaret *) 0 ;
4780 int arg2 ;
4781 int arg3 ;
4782 PyObject * obj0 = 0 ;
4783 PyObject * obj1 = 0 ;
4784 PyObject * obj2 = 0 ;
4785 char *kwnames[] = {
4786 (char *) "self",(char *) "width",(char *) "height", NULL
4787 };
4788
4789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
4790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4792 arg2 = (int) SWIG_AsInt(obj1);
4793 if (PyErr_Occurred()) SWIG_fail;
4794 arg3 = (int) SWIG_AsInt(obj2);
4795 if (PyErr_Occurred()) SWIG_fail;
4796 {
4797 PyThreadState* __tstate = wxPyBeginAllowThreads();
4798 (arg1)->SetSize(arg2,arg3);
4799
4800 wxPyEndAllowThreads(__tstate);
4801 if (PyErr_Occurred()) SWIG_fail;
4802 }
4803 Py_INCREF(Py_None); resultobj = Py_None;
4804 return resultobj;
4805 fail:
4806 return NULL;
4807 }
4808
4809
4810 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4811 PyObject *resultobj;
4812 wxCaret *arg1 = (wxCaret *) 0 ;
4813 wxSize *arg2 = 0 ;
4814 wxSize temp2 ;
4815 PyObject * obj0 = 0 ;
4816 PyObject * obj1 = 0 ;
4817 char *kwnames[] = {
4818 (char *) "self",(char *) "size", NULL
4819 };
4820
4821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
4822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4824 {
4825 arg2 = &temp2;
4826 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4827 }
4828 {
4829 PyThreadState* __tstate = wxPyBeginAllowThreads();
4830 (arg1)->SetSize((wxSize const &)*arg2);
4831
4832 wxPyEndAllowThreads(__tstate);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 Py_INCREF(Py_None); resultobj = Py_None;
4836 return resultobj;
4837 fail:
4838 return NULL;
4839 }
4840
4841
4842 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4843 PyObject *resultobj;
4844 wxCaret *arg1 = (wxCaret *) 0 ;
4845 int arg2 = (int) True ;
4846 PyObject * obj0 = 0 ;
4847 PyObject * obj1 = 0 ;
4848 char *kwnames[] = {
4849 (char *) "self",(char *) "show", NULL
4850 };
4851
4852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
4853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4855 if (obj1) {
4856 arg2 = (int) SWIG_AsInt(obj1);
4857 if (PyErr_Occurred()) SWIG_fail;
4858 }
4859 {
4860 PyThreadState* __tstate = wxPyBeginAllowThreads();
4861 (arg1)->Show(arg2);
4862
4863 wxPyEndAllowThreads(__tstate);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 }
4866 Py_INCREF(Py_None); resultobj = Py_None;
4867 return resultobj;
4868 fail:
4869 return NULL;
4870 }
4871
4872
4873 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
4874 PyObject *resultobj;
4875 wxCaret *arg1 = (wxCaret *) 0 ;
4876 PyObject * obj0 = 0 ;
4877 char *kwnames[] = {
4878 (char *) "self", NULL
4879 };
4880
4881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
4882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4884 {
4885 PyThreadState* __tstate = wxPyBeginAllowThreads();
4886 (arg1)->Hide();
4887
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 Py_INCREF(Py_None); resultobj = Py_None;
4892 return resultobj;
4893 fail:
4894 return NULL;
4895 }
4896
4897
4898 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
4899 PyObject *obj;
4900 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4901 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
4902 Py_INCREF(obj);
4903 return Py_BuildValue((char *)"");
4904 }
4905 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4906 PyObject *resultobj;
4907 int result;
4908 char *kwnames[] = {
4909 NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
4913 {
4914 PyThreadState* __tstate = wxPyBeginAllowThreads();
4915 result = (int)wxCaret_GetBlinkTime();
4916
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = SWIG_FromInt((int)result);
4921 return resultobj;
4922 fail:
4923 return NULL;
4924 }
4925
4926
4927 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj;
4929 int arg1 ;
4930 PyObject * obj0 = 0 ;
4931 char *kwnames[] = {
4932 (char *) "milliseconds", NULL
4933 };
4934
4935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
4936 arg1 = (int) SWIG_AsInt(obj0);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 wxCaret_SetBlinkTime(arg1);
4941
4942 wxPyEndAllowThreads(__tstate);
4943 if (PyErr_Occurred()) SWIG_fail;
4944 }
4945 Py_INCREF(Py_None); resultobj = Py_None;
4946 return resultobj;
4947 fail:
4948 return NULL;
4949 }
4950
4951
4952 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4953 PyObject *resultobj;
4954 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4955 wxBusyCursor *result;
4956 PyObject * obj0 = 0 ;
4957 char *kwnames[] = {
4958 (char *) "cursor", NULL
4959 };
4960
4961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
4962 if (obj0) {
4963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4965 }
4966 {
4967 PyThreadState* __tstate = wxPyBeginAllowThreads();
4968 result = (wxBusyCursor *)new wxBusyCursor(arg1);
4969
4970 wxPyEndAllowThreads(__tstate);
4971 if (PyErr_Occurred()) SWIG_fail;
4972 }
4973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
4974 return resultobj;
4975 fail:
4976 return NULL;
4977 }
4978
4979
4980 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4981 PyObject *resultobj;
4982 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
4983 PyObject * obj0 = 0 ;
4984 char *kwnames[] = {
4985 (char *) "self", NULL
4986 };
4987
4988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
4989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
4990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4991 {
4992 PyThreadState* __tstate = wxPyBeginAllowThreads();
4993 delete arg1;
4994
4995 wxPyEndAllowThreads(__tstate);
4996 if (PyErr_Occurred()) SWIG_fail;
4997 }
4998 Py_INCREF(Py_None); resultobj = Py_None;
4999 return resultobj;
5000 fail:
5001 return NULL;
5002 }
5003
5004
5005 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5006 PyObject *obj;
5007 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5008 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5009 Py_INCREF(obj);
5010 return Py_BuildValue((char *)"");
5011 }
5012 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5013 PyObject *resultobj;
5014 wxWindow *arg1 = (wxWindow *) NULL ;
5015 wxWindowDisabler *result;
5016 PyObject * obj0 = 0 ;
5017 char *kwnames[] = {
5018 (char *) "winToSkip", NULL
5019 };
5020
5021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5022 if (obj0) {
5023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5025 }
5026 {
5027 PyThreadState* __tstate = wxPyBeginAllowThreads();
5028 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5029
5030 wxPyEndAllowThreads(__tstate);
5031 if (PyErr_Occurred()) SWIG_fail;
5032 }
5033 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5034 return resultobj;
5035 fail:
5036 return NULL;
5037 }
5038
5039
5040 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5041 PyObject *resultobj;
5042 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5043 PyObject * obj0 = 0 ;
5044 char *kwnames[] = {
5045 (char *) "self", NULL
5046 };
5047
5048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5051 {
5052 PyThreadState* __tstate = wxPyBeginAllowThreads();
5053 delete arg1;
5054
5055 wxPyEndAllowThreads(__tstate);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 }
5058 Py_INCREF(Py_None); resultobj = Py_None;
5059 return resultobj;
5060 fail:
5061 return NULL;
5062 }
5063
5064
5065 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5066 PyObject *obj;
5067 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5068 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5069 Py_INCREF(obj);
5070 return Py_BuildValue((char *)"");
5071 }
5072 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5073 PyObject *resultobj;
5074 wxString *arg1 = 0 ;
5075 wxBusyInfo *result;
5076 bool temp1 = False ;
5077 PyObject * obj0 = 0 ;
5078 char *kwnames[] = {
5079 (char *) "message", NULL
5080 };
5081
5082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5083 {
5084 arg1 = wxString_in_helper(obj0);
5085 if (arg1 == NULL) SWIG_fail;
5086 temp1 = True;
5087 }
5088 {
5089 PyThreadState* __tstate = wxPyBeginAllowThreads();
5090 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5091
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5096 {
5097 if (temp1)
5098 delete arg1;
5099 }
5100 return resultobj;
5101 fail:
5102 {
5103 if (temp1)
5104 delete arg1;
5105 }
5106 return NULL;
5107 }
5108
5109
5110 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5111 PyObject *resultobj;
5112 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5113 PyObject * obj0 = 0 ;
5114 char *kwnames[] = {
5115 (char *) "self", NULL
5116 };
5117
5118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5121 {
5122 PyThreadState* __tstate = wxPyBeginAllowThreads();
5123 delete arg1;
5124
5125 wxPyEndAllowThreads(__tstate);
5126 if (PyErr_Occurred()) SWIG_fail;
5127 }
5128 Py_INCREF(Py_None); resultobj = Py_None;
5129 return resultobj;
5130 fail:
5131 return NULL;
5132 }
5133
5134
5135 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5136 PyObject *obj;
5137 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5138 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5139 Py_INCREF(obj);
5140 return Py_BuildValue((char *)"");
5141 }
5142 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5143 PyObject *resultobj;
5144 wxStopWatch *result;
5145 char *kwnames[] = {
5146 NULL
5147 };
5148
5149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5150 {
5151 PyThreadState* __tstate = wxPyBeginAllowThreads();
5152 result = (wxStopWatch *)new wxStopWatch();
5153
5154 wxPyEndAllowThreads(__tstate);
5155 if (PyErr_Occurred()) SWIG_fail;
5156 }
5157 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5158 return resultobj;
5159 fail:
5160 return NULL;
5161 }
5162
5163
5164 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5165 PyObject *resultobj;
5166 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5167 long arg2 = (long) 0 ;
5168 PyObject * obj0 = 0 ;
5169 PyObject * obj1 = 0 ;
5170 char *kwnames[] = {
5171 (char *) "self",(char *) "t0", NULL
5172 };
5173
5174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5177 if (obj1) {
5178 arg2 = (long) SWIG_AsLong(obj1);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 (arg1)->Start(arg2);
5184
5185 wxPyEndAllowThreads(__tstate);
5186 if (PyErr_Occurred()) SWIG_fail;
5187 }
5188 Py_INCREF(Py_None); resultobj = Py_None;
5189 return resultobj;
5190 fail:
5191 return NULL;
5192 }
5193
5194
5195 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5196 PyObject *resultobj;
5197 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5198 PyObject * obj0 = 0 ;
5199 char *kwnames[] = {
5200 (char *) "self", NULL
5201 };
5202
5203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5206 {
5207 PyThreadState* __tstate = wxPyBeginAllowThreads();
5208 (arg1)->Pause();
5209
5210 wxPyEndAllowThreads(__tstate);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 }
5213 Py_INCREF(Py_None); resultobj = Py_None;
5214 return resultobj;
5215 fail:
5216 return NULL;
5217 }
5218
5219
5220 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5221 PyObject *resultobj;
5222 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5223 PyObject * obj0 = 0 ;
5224 char *kwnames[] = {
5225 (char *) "self", NULL
5226 };
5227
5228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5231 {
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 (arg1)->Resume();
5234
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 Py_INCREF(Py_None); resultobj = Py_None;
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5246 PyObject *resultobj;
5247 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5248 long result;
5249 PyObject * obj0 = 0 ;
5250 char *kwnames[] = {
5251 (char *) "self", NULL
5252 };
5253
5254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5257 {
5258 PyThreadState* __tstate = wxPyBeginAllowThreads();
5259 result = (long)((wxStopWatch const *)arg1)->Time();
5260
5261 wxPyEndAllowThreads(__tstate);
5262 if (PyErr_Occurred()) SWIG_fail;
5263 }
5264 resultobj = SWIG_FromLong((long)result);
5265 return resultobj;
5266 fail:
5267 return NULL;
5268 }
5269
5270
5271 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5272 PyObject *obj;
5273 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5274 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5275 Py_INCREF(obj);
5276 return Py_BuildValue((char *)"");
5277 }
5278 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5279 PyObject *resultobj;
5280 int arg1 = (int) 9 ;
5281 wxFileHistory *result;
5282 PyObject * obj0 = 0 ;
5283 char *kwnames[] = {
5284 (char *) "maxFiles", NULL
5285 };
5286
5287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5288 if (obj0) {
5289 arg1 = (int) SWIG_AsInt(obj0);
5290 if (PyErr_Occurred()) SWIG_fail;
5291 }
5292 {
5293 PyThreadState* __tstate = wxPyBeginAllowThreads();
5294 result = (wxFileHistory *)new wxFileHistory(arg1);
5295
5296 wxPyEndAllowThreads(__tstate);
5297 if (PyErr_Occurred()) SWIG_fail;
5298 }
5299 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5300 return resultobj;
5301 fail:
5302 return NULL;
5303 }
5304
5305
5306 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj;
5308 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5309 PyObject * obj0 = 0 ;
5310 char *kwnames[] = {
5311 (char *) "self", NULL
5312 };
5313
5314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5317 {
5318 PyThreadState* __tstate = wxPyBeginAllowThreads();
5319 delete arg1;
5320
5321 wxPyEndAllowThreads(__tstate);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 Py_INCREF(Py_None); resultobj = Py_None;
5325 return resultobj;
5326 fail:
5327 return NULL;
5328 }
5329
5330
5331 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5332 PyObject *resultobj;
5333 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5334 wxString *arg2 = 0 ;
5335 bool temp2 = False ;
5336 PyObject * obj0 = 0 ;
5337 PyObject * obj1 = 0 ;
5338 char *kwnames[] = {
5339 (char *) "self",(char *) "file", NULL
5340 };
5341
5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5345 {
5346 arg2 = wxString_in_helper(obj1);
5347 if (arg2 == NULL) SWIG_fail;
5348 temp2 = True;
5349 }
5350 {
5351 PyThreadState* __tstate = wxPyBeginAllowThreads();
5352 (arg1)->AddFileToHistory((wxString const &)*arg2);
5353
5354 wxPyEndAllowThreads(__tstate);
5355 if (PyErr_Occurred()) SWIG_fail;
5356 }
5357 Py_INCREF(Py_None); resultobj = Py_None;
5358 {
5359 if (temp2)
5360 delete arg2;
5361 }
5362 return resultobj;
5363 fail:
5364 {
5365 if (temp2)
5366 delete arg2;
5367 }
5368 return NULL;
5369 }
5370
5371
5372 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5373 PyObject *resultobj;
5374 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5375 int arg2 ;
5376 PyObject * obj0 = 0 ;
5377 PyObject * obj1 = 0 ;
5378 char *kwnames[] = {
5379 (char *) "self",(char *) "i", NULL
5380 };
5381
5382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5385 arg2 = (int) SWIG_AsInt(obj1);
5386 if (PyErr_Occurred()) SWIG_fail;
5387 {
5388 PyThreadState* __tstate = wxPyBeginAllowThreads();
5389 (arg1)->RemoveFileFromHistory(arg2);
5390
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) SWIG_fail;
5393 }
5394 Py_INCREF(Py_None); resultobj = Py_None;
5395 return resultobj;
5396 fail:
5397 return NULL;
5398 }
5399
5400
5401 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5402 PyObject *resultobj;
5403 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5404 int result;
5405 PyObject * obj0 = 0 ;
5406 char *kwnames[] = {
5407 (char *) "self", NULL
5408 };
5409
5410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5416
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 resultobj = SWIG_FromInt((int)result);
5421 return resultobj;
5422 fail:
5423 return NULL;
5424 }
5425
5426
5427 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5428 PyObject *resultobj;
5429 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5430 wxMenu *arg2 = (wxMenu *) 0 ;
5431 PyObject * obj0 = 0 ;
5432 PyObject * obj1 = 0 ;
5433 char *kwnames[] = {
5434 (char *) "self",(char *) "menu", NULL
5435 };
5436
5437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5440 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5442 {
5443 PyThreadState* __tstate = wxPyBeginAllowThreads();
5444 (arg1)->UseMenu(arg2);
5445
5446 wxPyEndAllowThreads(__tstate);
5447 if (PyErr_Occurred()) SWIG_fail;
5448 }
5449 Py_INCREF(Py_None); resultobj = Py_None;
5450 return resultobj;
5451 fail:
5452 return NULL;
5453 }
5454
5455
5456 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5457 PyObject *resultobj;
5458 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5459 wxMenu *arg2 = (wxMenu *) 0 ;
5460 PyObject * obj0 = 0 ;
5461 PyObject * obj1 = 0 ;
5462 char *kwnames[] = {
5463 (char *) "self",(char *) "menu", NULL
5464 };
5465
5466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5471 {
5472 PyThreadState* __tstate = wxPyBeginAllowThreads();
5473 (arg1)->RemoveMenu(arg2);
5474
5475 wxPyEndAllowThreads(__tstate);
5476 if (PyErr_Occurred()) SWIG_fail;
5477 }
5478 Py_INCREF(Py_None); resultobj = Py_None;
5479 return resultobj;
5480 fail:
5481 return NULL;
5482 }
5483
5484
5485 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj;
5487 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5488 wxConfigBase *arg2 = 0 ;
5489 PyObject * obj0 = 0 ;
5490 PyObject * obj1 = 0 ;
5491 char *kwnames[] = {
5492 (char *) "self",(char *) "config", NULL
5493 };
5494
5495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5498 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5499 SWIG_POINTER_EXCEPTION | 0)) == -1)
5500 SWIG_fail;
5501 if (arg2 == NULL) {
5502 PyErr_SetString(PyExc_TypeError,"null reference");
5503 SWIG_fail;
5504 }
5505 {
5506 PyThreadState* __tstate = wxPyBeginAllowThreads();
5507 (arg1)->Load(*arg2);
5508
5509 wxPyEndAllowThreads(__tstate);
5510 if (PyErr_Occurred()) SWIG_fail;
5511 }
5512 Py_INCREF(Py_None); resultobj = Py_None;
5513 return resultobj;
5514 fail:
5515 return NULL;
5516 }
5517
5518
5519 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5520 PyObject *resultobj;
5521 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5522 wxConfigBase *arg2 = 0 ;
5523 PyObject * obj0 = 0 ;
5524 PyObject * obj1 = 0 ;
5525 char *kwnames[] = {
5526 (char *) "self",(char *) "config", NULL
5527 };
5528
5529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5533 SWIG_POINTER_EXCEPTION | 0)) == -1)
5534 SWIG_fail;
5535 if (arg2 == NULL) {
5536 PyErr_SetString(PyExc_TypeError,"null reference");
5537 SWIG_fail;
5538 }
5539 {
5540 PyThreadState* __tstate = wxPyBeginAllowThreads();
5541 (arg1)->Save(*arg2);
5542
5543 wxPyEndAllowThreads(__tstate);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 }
5546 Py_INCREF(Py_None); resultobj = Py_None;
5547 return resultobj;
5548 fail:
5549 return NULL;
5550 }
5551
5552
5553 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5554 PyObject *resultobj;
5555 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5556 PyObject * obj0 = 0 ;
5557 char *kwnames[] = {
5558 (char *) "self", NULL
5559 };
5560
5561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5564 {
5565 PyThreadState* __tstate = wxPyBeginAllowThreads();
5566 (arg1)->AddFilesToMenu();
5567
5568 wxPyEndAllowThreads(__tstate);
5569 if (PyErr_Occurred()) SWIG_fail;
5570 }
5571 Py_INCREF(Py_None); resultobj = Py_None;
5572 return resultobj;
5573 fail:
5574 return NULL;
5575 }
5576
5577
5578 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5579 PyObject *resultobj;
5580 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5581 wxMenu *arg2 = (wxMenu *) 0 ;
5582 PyObject * obj0 = 0 ;
5583 PyObject * obj1 = 0 ;
5584 char *kwnames[] = {
5585 (char *) "self",(char *) "menu", NULL
5586 };
5587
5588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5591 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5593 {
5594 PyThreadState* __tstate = wxPyBeginAllowThreads();
5595 (arg1)->AddFilesToMenu(arg2);
5596
5597 wxPyEndAllowThreads(__tstate);
5598 if (PyErr_Occurred()) SWIG_fail;
5599 }
5600 Py_INCREF(Py_None); resultobj = Py_None;
5601 return resultobj;
5602 fail:
5603 return NULL;
5604 }
5605
5606
5607 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5608 PyObject *resultobj;
5609 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5610 int arg2 ;
5611 wxString result;
5612 PyObject * obj0 = 0 ;
5613 PyObject * obj1 = 0 ;
5614 char *kwnames[] = {
5615 (char *) "self",(char *) "i", NULL
5616 };
5617
5618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5621 arg2 = (int) SWIG_AsInt(obj1);
5622 if (PyErr_Occurred()) SWIG_fail;
5623 {
5624 PyThreadState* __tstate = wxPyBeginAllowThreads();
5625 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5626
5627 wxPyEndAllowThreads(__tstate);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 {
5631 #if wxUSE_UNICODE
5632 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5633 #else
5634 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5635 #endif
5636 }
5637 return resultobj;
5638 fail:
5639 return NULL;
5640 }
5641
5642
5643 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5644 PyObject *resultobj;
5645 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5646 int result;
5647 PyObject * obj0 = 0 ;
5648 char *kwnames[] = {
5649 (char *) "self", NULL
5650 };
5651
5652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (int)((wxFileHistory const *)arg1)->GetCount();
5658
5659 wxPyEndAllowThreads(__tstate);
5660 if (PyErr_Occurred()) SWIG_fail;
5661 }
5662 resultobj = SWIG_FromInt((int)result);
5663 return resultobj;
5664 fail:
5665 return NULL;
5666 }
5667
5668
5669 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5670 PyObject *obj;
5671 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5672 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5673 Py_INCREF(obj);
5674 return Py_BuildValue((char *)"");
5675 }
5676 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5677 PyObject *resultobj;
5678 wxString *arg1 = 0 ;
5679 wxString const &arg2_defvalue = wxPyEmptyString ;
5680 wxString *arg2 = (wxString *) &arg2_defvalue ;
5681 wxSingleInstanceChecker *result;
5682 bool temp1 = False ;
5683 bool temp2 = False ;
5684 PyObject * obj0 = 0 ;
5685 PyObject * obj1 = 0 ;
5686 char *kwnames[] = {
5687 (char *) "name",(char *) "path", NULL
5688 };
5689
5690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5691 {
5692 arg1 = wxString_in_helper(obj0);
5693 if (arg1 == NULL) SWIG_fail;
5694 temp1 = True;
5695 }
5696 if (obj1) {
5697 {
5698 arg2 = wxString_in_helper(obj1);
5699 if (arg2 == NULL) SWIG_fail;
5700 temp2 = True;
5701 }
5702 }
5703 {
5704 PyThreadState* __tstate = wxPyBeginAllowThreads();
5705 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5706
5707 wxPyEndAllowThreads(__tstate);
5708 if (PyErr_Occurred()) SWIG_fail;
5709 }
5710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5711 {
5712 if (temp1)
5713 delete arg1;
5714 }
5715 {
5716 if (temp2)
5717 delete arg2;
5718 }
5719 return resultobj;
5720 fail:
5721 {
5722 if (temp1)
5723 delete arg1;
5724 }
5725 {
5726 if (temp2)
5727 delete arg2;
5728 }
5729 return NULL;
5730 }
5731
5732
5733 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5734 PyObject *resultobj;
5735 wxSingleInstanceChecker *result;
5736 char *kwnames[] = {
5737 NULL
5738 };
5739
5740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5744
5745 wxPyEndAllowThreads(__tstate);
5746 if (PyErr_Occurred()) SWIG_fail;
5747 }
5748 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5749 return resultobj;
5750 fail:
5751 return NULL;
5752 }
5753
5754
5755 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5756 PyObject *resultobj;
5757 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5758 PyObject * obj0 = 0 ;
5759 char *kwnames[] = {
5760 (char *) "self", NULL
5761 };
5762
5763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5766 {
5767 PyThreadState* __tstate = wxPyBeginAllowThreads();
5768 delete arg1;
5769
5770 wxPyEndAllowThreads(__tstate);
5771 if (PyErr_Occurred()) SWIG_fail;
5772 }
5773 Py_INCREF(Py_None); resultobj = Py_None;
5774 return resultobj;
5775 fail:
5776 return NULL;
5777 }
5778
5779
5780 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5781 PyObject *resultobj;
5782 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5783 wxString *arg2 = 0 ;
5784 wxString const &arg3_defvalue = wxPyEmptyString ;
5785 wxString *arg3 = (wxString *) &arg3_defvalue ;
5786 bool result;
5787 bool temp2 = False ;
5788 bool temp3 = False ;
5789 PyObject * obj0 = 0 ;
5790 PyObject * obj1 = 0 ;
5791 PyObject * obj2 = 0 ;
5792 char *kwnames[] = {
5793 (char *) "self",(char *) "name",(char *) "path", NULL
5794 };
5795
5796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5799 {
5800 arg2 = wxString_in_helper(obj1);
5801 if (arg2 == NULL) SWIG_fail;
5802 temp2 = True;
5803 }
5804 if (obj2) {
5805 {
5806 arg3 = wxString_in_helper(obj2);
5807 if (arg3 == NULL) SWIG_fail;
5808 temp3 = True;
5809 }
5810 }
5811 {
5812 PyThreadState* __tstate = wxPyBeginAllowThreads();
5813 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
5814
5815 wxPyEndAllowThreads(__tstate);
5816 if (PyErr_Occurred()) SWIG_fail;
5817 }
5818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5819 {
5820 if (temp2)
5821 delete arg2;
5822 }
5823 {
5824 if (temp3)
5825 delete arg3;
5826 }
5827 return resultobj;
5828 fail:
5829 {
5830 if (temp2)
5831 delete arg2;
5832 }
5833 {
5834 if (temp3)
5835 delete arg3;
5836 }
5837 return NULL;
5838 }
5839
5840
5841 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
5842 PyObject *resultobj;
5843 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5844 bool result;
5845 PyObject * obj0 = 0 ;
5846 char *kwnames[] = {
5847 (char *) "self", NULL
5848 };
5849
5850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
5851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
5856
5857 wxPyEndAllowThreads(__tstate);
5858 if (PyErr_Occurred()) SWIG_fail;
5859 }
5860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5861 return resultobj;
5862 fail:
5863 return NULL;
5864 }
5865
5866
5867 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
5868 PyObject *obj;
5869 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5870 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
5871 Py_INCREF(obj);
5872 return Py_BuildValue((char *)"");
5873 }
5874 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5875 PyObject *resultobj;
5876 wxWindow *arg1 = (wxWindow *) 0 ;
5877 wxDC *arg2 = 0 ;
5878 int arg3 ;
5879 PyObject * obj0 = 0 ;
5880 PyObject * obj1 = 0 ;
5881 PyObject * obj2 = 0 ;
5882 char *kwnames[] = {
5883 (char *) "window",(char *) "dc",(char *) "method", NULL
5884 };
5885
5886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
5887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5889 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
5890 SWIG_POINTER_EXCEPTION | 0)) == -1)
5891 SWIG_fail;
5892 if (arg2 == NULL) {
5893 PyErr_SetString(PyExc_TypeError,"null reference");
5894 SWIG_fail;
5895 }
5896 arg3 = (int) SWIG_AsInt(obj2);
5897 if (PyErr_Occurred()) SWIG_fail;
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
5901
5902 wxPyEndAllowThreads(__tstate);
5903 if (PyErr_Occurred()) SWIG_fail;
5904 }
5905 Py_INCREF(Py_None); resultobj = Py_None;
5906 return resultobj;
5907 fail:
5908 return NULL;
5909 }
5910
5911
5912 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
5913 PyObject *resultobj;
5914 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5915 PyObject * obj0 = 0 ;
5916 char *kwnames[] = {
5917 (char *) "self", NULL
5918 };
5919
5920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
5921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5923 {
5924 PyThreadState* __tstate = wxPyBeginAllowThreads();
5925 delete arg1;
5926
5927 wxPyEndAllowThreads(__tstate);
5928 if (PyErr_Occurred()) SWIG_fail;
5929 }
5930 Py_INCREF(Py_None); resultobj = Py_None;
5931 return resultobj;
5932 fail:
5933 return NULL;
5934 }
5935
5936
5937 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5938 PyObject *resultobj;
5939 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5940 wxString result;
5941 PyObject * obj0 = 0 ;
5942 char *kwnames[] = {
5943 (char *) "self", NULL
5944 };
5945
5946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
5947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5949 {
5950 PyThreadState* __tstate = wxPyBeginAllowThreads();
5951 result = (arg1)->GetTip();
5952
5953 wxPyEndAllowThreads(__tstate);
5954 if (PyErr_Occurred()) SWIG_fail;
5955 }
5956 {
5957 #if wxUSE_UNICODE
5958 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5959 #else
5960 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5961 #endif
5962 }
5963 return resultobj;
5964 fail:
5965 return NULL;
5966 }
5967
5968
5969 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5970 PyObject *resultobj;
5971 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5972 size_t result;
5973 PyObject * obj0 = 0 ;
5974 char *kwnames[] = {
5975 (char *) "self", NULL
5976 };
5977
5978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
5979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
5980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5981 {
5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
5983 result = (size_t)(arg1)->GetCurrentTip();
5984
5985 wxPyEndAllowThreads(__tstate);
5986 if (PyErr_Occurred()) SWIG_fail;
5987 }
5988 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
5989 return resultobj;
5990 fail:
5991 return NULL;
5992 }
5993
5994
5995 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
5996 PyObject *resultobj;
5997 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
5998 wxString *arg2 = 0 ;
5999 wxString result;
6000 bool temp2 = False ;
6001 PyObject * obj0 = 0 ;
6002 PyObject * obj1 = 0 ;
6003 char *kwnames[] = {
6004 (char *) "self",(char *) "tip", NULL
6005 };
6006
6007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6010 {
6011 arg2 = wxString_in_helper(obj1);
6012 if (arg2 == NULL) SWIG_fail;
6013 temp2 = True;
6014 }
6015 {
6016 PyThreadState* __tstate = wxPyBeginAllowThreads();
6017 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6018
6019 wxPyEndAllowThreads(__tstate);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 }
6022 {
6023 #if wxUSE_UNICODE
6024 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6025 #else
6026 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6027 #endif
6028 }
6029 {
6030 if (temp2)
6031 delete arg2;
6032 }
6033 return resultobj;
6034 fail:
6035 {
6036 if (temp2)
6037 delete arg2;
6038 }
6039 return NULL;
6040 }
6041
6042
6043 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6044 PyObject *obj;
6045 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6046 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6047 Py_INCREF(obj);
6048 return Py_BuildValue((char *)"");
6049 }
6050 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6051 PyObject *resultobj;
6052 size_t arg1 ;
6053 wxPyTipProvider *result;
6054 PyObject * obj0 = 0 ;
6055 char *kwnames[] = {
6056 (char *) "currentTip", NULL
6057 };
6058
6059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6060 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6061 if (PyErr_Occurred()) SWIG_fail;
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6065
6066 wxPyEndAllowThreads(__tstate);
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6070 return resultobj;
6071 fail:
6072 return NULL;
6073 }
6074
6075
6076 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6077 PyObject *resultobj;
6078 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6079 PyObject *arg2 = (PyObject *) 0 ;
6080 PyObject *arg3 = (PyObject *) 0 ;
6081 PyObject * obj0 = 0 ;
6082 PyObject * obj1 = 0 ;
6083 PyObject * obj2 = 0 ;
6084 char *kwnames[] = {
6085 (char *) "self",(char *) "self",(char *) "_class", NULL
6086 };
6087
6088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6091 arg2 = obj1;
6092 arg3 = obj2;
6093 {
6094 PyThreadState* __tstate = wxPyBeginAllowThreads();
6095 (arg1)->_setCallbackInfo(arg2,arg3);
6096
6097 wxPyEndAllowThreads(__tstate);
6098 if (PyErr_Occurred()) SWIG_fail;
6099 }
6100 Py_INCREF(Py_None); resultobj = Py_None;
6101 return resultobj;
6102 fail:
6103 return NULL;
6104 }
6105
6106
6107 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6108 PyObject *obj;
6109 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6110 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6111 Py_INCREF(obj);
6112 return Py_BuildValue((char *)"");
6113 }
6114 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject *resultobj;
6116 wxWindow *arg1 = (wxWindow *) 0 ;
6117 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6118 bool arg3 = (bool) True ;
6119 bool result;
6120 PyObject * obj0 = 0 ;
6121 PyObject * obj1 = 0 ;
6122 PyObject * obj2 = 0 ;
6123 char *kwnames[] = {
6124 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6125 };
6126
6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6130 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6132 if (obj2) {
6133 arg3 = (bool) SWIG_AsBool(obj2);
6134 if (PyErr_Occurred()) SWIG_fail;
6135 }
6136 {
6137 PyThreadState* __tstate = wxPyBeginAllowThreads();
6138 result = (bool)wxShowTip(arg1,arg2,arg3);
6139
6140 wxPyEndAllowThreads(__tstate);
6141 if (PyErr_Occurred()) SWIG_fail;
6142 }
6143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6144 return resultobj;
6145 fail:
6146 return NULL;
6147 }
6148
6149
6150 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6151 PyObject *resultobj;
6152 wxString *arg1 = 0 ;
6153 size_t arg2 ;
6154 wxTipProvider *result;
6155 bool temp1 = False ;
6156 PyObject * obj0 = 0 ;
6157 PyObject * obj1 = 0 ;
6158 char *kwnames[] = {
6159 (char *) "filename",(char *) "currentTip", NULL
6160 };
6161
6162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6163 {
6164 arg1 = wxString_in_helper(obj0);
6165 if (arg1 == NULL) SWIG_fail;
6166 temp1 = True;
6167 }
6168 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6169 if (PyErr_Occurred()) SWIG_fail;
6170 {
6171 PyThreadState* __tstate = wxPyBeginAllowThreads();
6172 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6173
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6178 {
6179 if (temp1)
6180 delete arg1;
6181 }
6182 return resultobj;
6183 fail:
6184 {
6185 if (temp1)
6186 delete arg1;
6187 }
6188 return NULL;
6189 }
6190
6191
6192 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6193 PyObject *resultobj;
6194 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6195 int arg2 = (int) -1 ;
6196 wxPyTimer *result;
6197 PyObject * obj0 = 0 ;
6198 PyObject * obj1 = 0 ;
6199 char *kwnames[] = {
6200 (char *) "owner",(char *) "id", NULL
6201 };
6202
6203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6204 if (obj0) {
6205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6207 }
6208 if (obj1) {
6209 arg2 = (int) SWIG_AsInt(obj1);
6210 if (PyErr_Occurred()) SWIG_fail;
6211 }
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6215
6216 wxPyEndAllowThreads(__tstate);
6217 if (PyErr_Occurred()) SWIG_fail;
6218 }
6219 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6220 return resultobj;
6221 fail:
6222 return NULL;
6223 }
6224
6225
6226 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6227 PyObject *resultobj;
6228 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6229 PyObject * obj0 = 0 ;
6230 char *kwnames[] = {
6231 (char *) "self", NULL
6232 };
6233
6234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6237 {
6238 PyThreadState* __tstate = wxPyBeginAllowThreads();
6239 delete arg1;
6240
6241 wxPyEndAllowThreads(__tstate);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 }
6244 Py_INCREF(Py_None); resultobj = Py_None;
6245 return resultobj;
6246 fail:
6247 return NULL;
6248 }
6249
6250
6251 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6252 PyObject *resultobj;
6253 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6254 PyObject *arg2 = (PyObject *) 0 ;
6255 PyObject *arg3 = (PyObject *) 0 ;
6256 PyObject * obj0 = 0 ;
6257 PyObject * obj1 = 0 ;
6258 PyObject * obj2 = 0 ;
6259 char *kwnames[] = {
6260 (char *) "self",(char *) "self",(char *) "_class", NULL
6261 };
6262
6263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6266 arg2 = obj1;
6267 arg3 = obj2;
6268 {
6269 PyThreadState* __tstate = wxPyBeginAllowThreads();
6270 (arg1)->_setCallbackInfo(arg2,arg3);
6271
6272 wxPyEndAllowThreads(__tstate);
6273 if (PyErr_Occurred()) SWIG_fail;
6274 }
6275 Py_INCREF(Py_None); resultobj = Py_None;
6276 return resultobj;
6277 fail:
6278 return NULL;
6279 }
6280
6281
6282 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6283 PyObject *resultobj;
6284 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6285 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6286 int arg3 = (int) -1 ;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6289 PyObject * obj2 = 0 ;
6290 char *kwnames[] = {
6291 (char *) "self",(char *) "owner",(char *) "id", NULL
6292 };
6293
6294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6297 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6299 if (obj2) {
6300 arg3 = (int) SWIG_AsInt(obj2);
6301 if (PyErr_Occurred()) SWIG_fail;
6302 }
6303 {
6304 PyThreadState* __tstate = wxPyBeginAllowThreads();
6305 (arg1)->SetOwner(arg2,arg3);
6306
6307 wxPyEndAllowThreads(__tstate);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 }
6310 Py_INCREF(Py_None); resultobj = Py_None;
6311 return resultobj;
6312 fail:
6313 return NULL;
6314 }
6315
6316
6317 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6318 PyObject *resultobj;
6319 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6320 int arg2 = (int) -1 ;
6321 bool arg3 = (bool) False ;
6322 bool result;
6323 PyObject * obj0 = 0 ;
6324 PyObject * obj1 = 0 ;
6325 PyObject * obj2 = 0 ;
6326 char *kwnames[] = {
6327 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6328 };
6329
6330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6333 if (obj1) {
6334 arg2 = (int) SWIG_AsInt(obj1);
6335 if (PyErr_Occurred()) SWIG_fail;
6336 }
6337 if (obj2) {
6338 arg3 = (bool) SWIG_AsBool(obj2);
6339 if (PyErr_Occurred()) SWIG_fail;
6340 }
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 result = (bool)(arg1)->Start(arg2,arg3);
6344
6345 wxPyEndAllowThreads(__tstate);
6346 if (PyErr_Occurred()) SWIG_fail;
6347 }
6348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6349 return resultobj;
6350 fail:
6351 return NULL;
6352 }
6353
6354
6355 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6356 PyObject *resultobj;
6357 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6358 PyObject * obj0 = 0 ;
6359 char *kwnames[] = {
6360 (char *) "self", NULL
6361 };
6362
6363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6366 {
6367 PyThreadState* __tstate = wxPyBeginAllowThreads();
6368 (arg1)->Stop();
6369
6370 wxPyEndAllowThreads(__tstate);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 }
6373 Py_INCREF(Py_None); resultobj = Py_None;
6374 return resultobj;
6375 fail:
6376 return NULL;
6377 }
6378
6379
6380 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6381 PyObject *resultobj;
6382 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6383 bool result;
6384 PyObject * obj0 = 0 ;
6385 char *kwnames[] = {
6386 (char *) "self", NULL
6387 };
6388
6389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6392 {
6393 PyThreadState* __tstate = wxPyBeginAllowThreads();
6394 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6395
6396 wxPyEndAllowThreads(__tstate);
6397 if (PyErr_Occurred()) SWIG_fail;
6398 }
6399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6400 return resultobj;
6401 fail:
6402 return NULL;
6403 }
6404
6405
6406 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6407 PyObject *resultobj;
6408 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6409 int result;
6410 PyObject * obj0 = 0 ;
6411 char *kwnames[] = {
6412 (char *) "self", NULL
6413 };
6414
6415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6418 {
6419 PyThreadState* __tstate = wxPyBeginAllowThreads();
6420 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6421
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 resultobj = SWIG_FromInt((int)result);
6426 return resultobj;
6427 fail:
6428 return NULL;
6429 }
6430
6431
6432 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6433 PyObject *resultobj;
6434 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6435 bool result;
6436 PyObject * obj0 = 0 ;
6437 char *kwnames[] = {
6438 (char *) "self", NULL
6439 };
6440
6441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6444 {
6445 PyThreadState* __tstate = wxPyBeginAllowThreads();
6446 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6447
6448 wxPyEndAllowThreads(__tstate);
6449 if (PyErr_Occurred()) SWIG_fail;
6450 }
6451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6452 return resultobj;
6453 fail:
6454 return NULL;
6455 }
6456
6457
6458 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6459 PyObject *resultobj;
6460 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6461 int result;
6462 PyObject * obj0 = 0 ;
6463 char *kwnames[] = {
6464 (char *) "self", NULL
6465 };
6466
6467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6470 {
6471 PyThreadState* __tstate = wxPyBeginAllowThreads();
6472 result = (int)((wxPyTimer const *)arg1)->GetId();
6473
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 resultobj = SWIG_FromInt((int)result);
6478 return resultobj;
6479 fail:
6480 return NULL;
6481 }
6482
6483
6484 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6485 PyObject *obj;
6486 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6487 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6488 Py_INCREF(obj);
6489 return Py_BuildValue((char *)"");
6490 }
6491 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6492 PyObject *resultobj;
6493 int arg1 = (int) 0 ;
6494 int arg2 = (int) 0 ;
6495 wxTimerEvent *result;
6496 PyObject * obj0 = 0 ;
6497 PyObject * obj1 = 0 ;
6498 char *kwnames[] = {
6499 (char *) "timerid",(char *) "interval", NULL
6500 };
6501
6502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6503 if (obj0) {
6504 arg1 = (int) SWIG_AsInt(obj0);
6505 if (PyErr_Occurred()) SWIG_fail;
6506 }
6507 if (obj1) {
6508 arg2 = (int) SWIG_AsInt(obj1);
6509 if (PyErr_Occurred()) SWIG_fail;
6510 }
6511 {
6512 PyThreadState* __tstate = wxPyBeginAllowThreads();
6513 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6514
6515 wxPyEndAllowThreads(__tstate);
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6519 return resultobj;
6520 fail:
6521 return NULL;
6522 }
6523
6524
6525 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6526 PyObject *resultobj;
6527 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6528 int result;
6529 PyObject * obj0 = 0 ;
6530 char *kwnames[] = {
6531 (char *) "self", NULL
6532 };
6533
6534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6537 {
6538 PyThreadState* __tstate = wxPyBeginAllowThreads();
6539 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6540
6541 wxPyEndAllowThreads(__tstate);
6542 if (PyErr_Occurred()) SWIG_fail;
6543 }
6544 resultobj = SWIG_FromInt((int)result);
6545 return resultobj;
6546 fail:
6547 return NULL;
6548 }
6549
6550
6551 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6552 PyObject *obj;
6553 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6554 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6555 Py_INCREF(obj);
6556 return Py_BuildValue((char *)"");
6557 }
6558 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6559 PyObject *resultobj;
6560 wxTimer *arg1 = 0 ;
6561 wxTimerRunner *result;
6562 PyObject * obj0 = 0 ;
6563
6564 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6566 SWIG_POINTER_EXCEPTION | 0)) == -1)
6567 SWIG_fail;
6568 if (arg1 == NULL) {
6569 PyErr_SetString(PyExc_TypeError,"null reference");
6570 SWIG_fail;
6571 }
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6575
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6587 PyObject *resultobj;
6588 wxTimer *arg1 = 0 ;
6589 int arg2 ;
6590 bool arg3 = (bool) False ;
6591 wxTimerRunner *result;
6592 PyObject * obj0 = 0 ;
6593 PyObject * obj1 = 0 ;
6594 PyObject * obj2 = 0 ;
6595
6596 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6598 SWIG_POINTER_EXCEPTION | 0)) == -1)
6599 SWIG_fail;
6600 if (arg1 == NULL) {
6601 PyErr_SetString(PyExc_TypeError,"null reference");
6602 SWIG_fail;
6603 }
6604 arg2 = (int) SWIG_AsInt(obj1);
6605 if (PyErr_Occurred()) SWIG_fail;
6606 if (obj2) {
6607 arg3 = (bool) SWIG_AsBool(obj2);
6608 if (PyErr_Occurred()) SWIG_fail;
6609 }
6610 {
6611 PyThreadState* __tstate = wxPyBeginAllowThreads();
6612 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6613
6614 wxPyEndAllowThreads(__tstate);
6615 if (PyErr_Occurred()) SWIG_fail;
6616 }
6617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6618 return resultobj;
6619 fail:
6620 return NULL;
6621 }
6622
6623
6624 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6625 int argc;
6626 PyObject *argv[4];
6627 int ii;
6628
6629 argc = PyObject_Length(args);
6630 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6631 argv[ii] = PyTuple_GetItem(args,ii);
6632 }
6633 if (argc == 1) {
6634 int _v;
6635 {
6636 void *ptr;
6637 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6638 _v = 0;
6639 PyErr_Clear();
6640 } else {
6641 _v = 1;
6642 }
6643 }
6644 if (_v) {
6645 return _wrap_new_TimerRunner__SWIG_0(self,args);
6646 }
6647 }
6648 if ((argc >= 2) && (argc <= 3)) {
6649 int _v;
6650 {
6651 void *ptr;
6652 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6653 _v = 0;
6654 PyErr_Clear();
6655 } else {
6656 _v = 1;
6657 }
6658 }
6659 if (_v) {
6660 _v = SWIG_CheckInt(argv[1]);
6661 if (_v) {
6662 if (argc <= 2) {
6663 return _wrap_new_TimerRunner__SWIG_1(self,args);
6664 }
6665 _v = SWIG_CheckBool(argv[2]);
6666 if (_v) {
6667 return _wrap_new_TimerRunner__SWIG_1(self,args);
6668 }
6669 }
6670 }
6671 }
6672
6673 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6674 return NULL;
6675 }
6676
6677
6678 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6679 PyObject *resultobj;
6680 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6681 PyObject * obj0 = 0 ;
6682 char *kwnames[] = {
6683 (char *) "self", NULL
6684 };
6685
6686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6689 {
6690 PyThreadState* __tstate = wxPyBeginAllowThreads();
6691 delete arg1;
6692
6693 wxPyEndAllowThreads(__tstate);
6694 if (PyErr_Occurred()) SWIG_fail;
6695 }
6696 Py_INCREF(Py_None); resultobj = Py_None;
6697 return resultobj;
6698 fail:
6699 return NULL;
6700 }
6701
6702
6703 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6704 PyObject *resultobj;
6705 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6706 int arg2 ;
6707 bool arg3 = (bool) False ;
6708 PyObject * obj0 = 0 ;
6709 PyObject * obj1 = 0 ;
6710 PyObject * obj2 = 0 ;
6711 char *kwnames[] = {
6712 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6713 };
6714
6715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6718 arg2 = (int) SWIG_AsInt(obj1);
6719 if (PyErr_Occurred()) SWIG_fail;
6720 if (obj2) {
6721 arg3 = (bool) SWIG_AsBool(obj2);
6722 if (PyErr_Occurred()) SWIG_fail;
6723 }
6724 {
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 (arg1)->Start(arg2,arg3);
6727
6728 wxPyEndAllowThreads(__tstate);
6729 if (PyErr_Occurred()) SWIG_fail;
6730 }
6731 Py_INCREF(Py_None); resultobj = Py_None;
6732 return resultobj;
6733 fail:
6734 return NULL;
6735 }
6736
6737
6738 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6739 PyObject *obj;
6740 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6741 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6742 Py_INCREF(obj);
6743 return Py_BuildValue((char *)"");
6744 }
6745 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6746 PyObject *resultobj;
6747 wxLog *result;
6748 char *kwnames[] = {
6749 NULL
6750 };
6751
6752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6753 {
6754 PyThreadState* __tstate = wxPyBeginAllowThreads();
6755 result = (wxLog *)new wxLog();
6756
6757 wxPyEndAllowThreads(__tstate);
6758 if (PyErr_Occurred()) SWIG_fail;
6759 }
6760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
6761 return resultobj;
6762 fail:
6763 return NULL;
6764 }
6765
6766
6767 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
6768 PyObject *resultobj;
6769 bool result;
6770 char *kwnames[] = {
6771 NULL
6772 };
6773
6774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
6775 {
6776 PyThreadState* __tstate = wxPyBeginAllowThreads();
6777 result = (bool)wxLog::IsEnabled();
6778
6779 wxPyEndAllowThreads(__tstate);
6780 if (PyErr_Occurred()) SWIG_fail;
6781 }
6782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6783 return resultobj;
6784 fail:
6785 return NULL;
6786 }
6787
6788
6789 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
6790 PyObject *resultobj;
6791 bool arg1 = (bool) True ;
6792 bool result;
6793 PyObject * obj0 = 0 ;
6794 char *kwnames[] = {
6795 (char *) "doIt", NULL
6796 };
6797
6798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
6799 if (obj0) {
6800 arg1 = (bool) SWIG_AsBool(obj0);
6801 if (PyErr_Occurred()) SWIG_fail;
6802 }
6803 {
6804 PyThreadState* __tstate = wxPyBeginAllowThreads();
6805 result = (bool)wxLog::EnableLogging(arg1);
6806
6807 wxPyEndAllowThreads(__tstate);
6808 if (PyErr_Occurred()) SWIG_fail;
6809 }
6810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6811 return resultobj;
6812 fail:
6813 return NULL;
6814 }
6815
6816
6817 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
6818 PyObject *resultobj;
6819 wxLogLevel arg1 ;
6820 wxChar *arg2 = (wxChar *) 0 ;
6821 time_t arg3 ;
6822 PyObject * obj0 = 0 ;
6823 PyObject * obj1 = 0 ;
6824 PyObject * obj2 = 0 ;
6825 char *kwnames[] = {
6826 (char *) "level",(char *) "szString",(char *) "t", NULL
6827 };
6828
6829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
6830 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
6831 if (PyErr_Occurred()) SWIG_fail;
6832 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
6833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6834 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
6835 if (PyErr_Occurred()) SWIG_fail;
6836 {
6837 PyThreadState* __tstate = wxPyBeginAllowThreads();
6838 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
6839
6840 wxPyEndAllowThreads(__tstate);
6841 if (PyErr_Occurred()) SWIG_fail;
6842 }
6843 Py_INCREF(Py_None); resultobj = Py_None;
6844 return resultobj;
6845 fail:
6846 return NULL;
6847 }
6848
6849
6850 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
6851 PyObject *resultobj;
6852 wxLog *arg1 = (wxLog *) 0 ;
6853 PyObject * obj0 = 0 ;
6854 char *kwnames[] = {
6855 (char *) "self", NULL
6856 };
6857
6858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
6859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6861 {
6862 PyThreadState* __tstate = wxPyBeginAllowThreads();
6863 (arg1)->Flush();
6864
6865 wxPyEndAllowThreads(__tstate);
6866 if (PyErr_Occurred()) SWIG_fail;
6867 }
6868 Py_INCREF(Py_None); resultobj = Py_None;
6869 return resultobj;
6870 fail:
6871 return NULL;
6872 }
6873
6874
6875 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
6876 PyObject *resultobj;
6877 char *kwnames[] = {
6878 NULL
6879 };
6880
6881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
6882 {
6883 PyThreadState* __tstate = wxPyBeginAllowThreads();
6884 wxLog::FlushActive();
6885
6886 wxPyEndAllowThreads(__tstate);
6887 if (PyErr_Occurred()) SWIG_fail;
6888 }
6889 Py_INCREF(Py_None); resultobj = Py_None;
6890 return resultobj;
6891 fail:
6892 return NULL;
6893 }
6894
6895
6896 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6897 PyObject *resultobj;
6898 wxLog *result;
6899 char *kwnames[] = {
6900 NULL
6901 };
6902
6903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (wxLog *)wxLog::GetActiveTarget();
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
6912 return resultobj;
6913 fail:
6914 return NULL;
6915 }
6916
6917
6918 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
6919 PyObject *resultobj;
6920 wxLog *arg1 = (wxLog *) 0 ;
6921 wxLog *result;
6922 PyObject * obj0 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "pLogger", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
6928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
6929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6930 {
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 result = (wxLog *)wxLog::SetActiveTarget(arg1);
6933
6934 wxPyEndAllowThreads(__tstate);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
6938 return resultobj;
6939 fail:
6940 return NULL;
6941 }
6942
6943
6944 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
6945 PyObject *resultobj;
6946 char *kwnames[] = {
6947 NULL
6948 };
6949
6950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
6951 {
6952 PyThreadState* __tstate = wxPyBeginAllowThreads();
6953 wxLog::Suspend();
6954
6955 wxPyEndAllowThreads(__tstate);
6956 if (PyErr_Occurred()) SWIG_fail;
6957 }
6958 Py_INCREF(Py_None); resultobj = Py_None;
6959 return resultobj;
6960 fail:
6961 return NULL;
6962 }
6963
6964
6965 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
6966 PyObject *resultobj;
6967 char *kwnames[] = {
6968 NULL
6969 };
6970
6971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
6972 {
6973 PyThreadState* __tstate = wxPyBeginAllowThreads();
6974 wxLog::Resume();
6975
6976 wxPyEndAllowThreads(__tstate);
6977 if (PyErr_Occurred()) SWIG_fail;
6978 }
6979 Py_INCREF(Py_None); resultobj = Py_None;
6980 return resultobj;
6981 fail:
6982 return NULL;
6983 }
6984
6985
6986 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
6987 PyObject *resultobj;
6988 bool arg1 = (bool) True ;
6989 PyObject * obj0 = 0 ;
6990 char *kwnames[] = {
6991 (char *) "bVerbose", NULL
6992 };
6993
6994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
6995 if (obj0) {
6996 arg1 = (bool) SWIG_AsBool(obj0);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
6999 {
7000 PyThreadState* __tstate = wxPyBeginAllowThreads();
7001 wxLog::SetVerbose(arg1);
7002
7003 wxPyEndAllowThreads(__tstate);
7004 if (PyErr_Occurred()) SWIG_fail;
7005 }
7006 Py_INCREF(Py_None); resultobj = Py_None;
7007 return resultobj;
7008 fail:
7009 return NULL;
7010 }
7011
7012
7013 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7014 PyObject *resultobj;
7015 wxLogLevel arg1 ;
7016 PyObject * obj0 = 0 ;
7017 char *kwnames[] = {
7018 (char *) "logLevel", NULL
7019 };
7020
7021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7022 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 {
7025 PyThreadState* __tstate = wxPyBeginAllowThreads();
7026 wxLog::SetLogLevel(arg1);
7027
7028 wxPyEndAllowThreads(__tstate);
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 Py_INCREF(Py_None); resultobj = Py_None;
7032 return resultobj;
7033 fail:
7034 return NULL;
7035 }
7036
7037
7038 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj;
7040 char *kwnames[] = {
7041 NULL
7042 };
7043
7044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7045 {
7046 PyThreadState* __tstate = wxPyBeginAllowThreads();
7047 wxLog::DontCreateOnDemand();
7048
7049 wxPyEndAllowThreads(__tstate);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 Py_INCREF(Py_None); resultobj = Py_None;
7053 return resultobj;
7054 fail:
7055 return NULL;
7056 }
7057
7058
7059 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7060 PyObject *resultobj;
7061 wxTraceMask arg1 ;
7062 PyObject * obj0 = 0 ;
7063 char *kwnames[] = {
7064 (char *) "ulMask", NULL
7065 };
7066
7067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7068 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7069 if (PyErr_Occurred()) SWIG_fail;
7070 {
7071 PyThreadState* __tstate = wxPyBeginAllowThreads();
7072 wxLog::SetTraceMask(arg1);
7073
7074 wxPyEndAllowThreads(__tstate);
7075 if (PyErr_Occurred()) SWIG_fail;
7076 }
7077 Py_INCREF(Py_None); resultobj = Py_None;
7078 return resultobj;
7079 fail:
7080 return NULL;
7081 }
7082
7083
7084 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7085 PyObject *resultobj;
7086 wxString *arg1 = 0 ;
7087 bool temp1 = False ;
7088 PyObject * obj0 = 0 ;
7089 char *kwnames[] = {
7090 (char *) "str", NULL
7091 };
7092
7093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7094 {
7095 arg1 = wxString_in_helper(obj0);
7096 if (arg1 == NULL) SWIG_fail;
7097 temp1 = True;
7098 }
7099 {
7100 PyThreadState* __tstate = wxPyBeginAllowThreads();
7101 wxLog::AddTraceMask((wxString const &)*arg1);
7102
7103 wxPyEndAllowThreads(__tstate);
7104 if (PyErr_Occurred()) SWIG_fail;
7105 }
7106 Py_INCREF(Py_None); resultobj = Py_None;
7107 {
7108 if (temp1)
7109 delete arg1;
7110 }
7111 return resultobj;
7112 fail:
7113 {
7114 if (temp1)
7115 delete arg1;
7116 }
7117 return NULL;
7118 }
7119
7120
7121 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7122 PyObject *resultobj;
7123 wxString *arg1 = 0 ;
7124 bool temp1 = False ;
7125 PyObject * obj0 = 0 ;
7126 char *kwnames[] = {
7127 (char *) "str", NULL
7128 };
7129
7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7131 {
7132 arg1 = wxString_in_helper(obj0);
7133 if (arg1 == NULL) SWIG_fail;
7134 temp1 = True;
7135 }
7136 {
7137 PyThreadState* __tstate = wxPyBeginAllowThreads();
7138 wxLog::RemoveTraceMask((wxString const &)*arg1);
7139
7140 wxPyEndAllowThreads(__tstate);
7141 if (PyErr_Occurred()) SWIG_fail;
7142 }
7143 Py_INCREF(Py_None); resultobj = Py_None;
7144 {
7145 if (temp1)
7146 delete arg1;
7147 }
7148 return resultobj;
7149 fail:
7150 {
7151 if (temp1)
7152 delete arg1;
7153 }
7154 return NULL;
7155 }
7156
7157
7158 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7159 PyObject *resultobj;
7160 char *kwnames[] = {
7161 NULL
7162 };
7163
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7165 {
7166 PyThreadState* __tstate = wxPyBeginAllowThreads();
7167 wxLog::ClearTraceMasks();
7168
7169 wxPyEndAllowThreads(__tstate);
7170 if (PyErr_Occurred()) SWIG_fail;
7171 }
7172 Py_INCREF(Py_None); resultobj = Py_None;
7173 return resultobj;
7174 fail:
7175 return NULL;
7176 }
7177
7178
7179 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7180 PyObject *resultobj;
7181 wxArrayString *result;
7182 char *kwnames[] = {
7183 NULL
7184 };
7185
7186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7187 {
7188 PyThreadState* __tstate = wxPyBeginAllowThreads();
7189 {
7190 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7191 result = (wxArrayString *) &_result_ref;
7192 }
7193
7194 wxPyEndAllowThreads(__tstate);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 {
7198 resultobj = wxArrayString2PyList_helper(*result);
7199 }
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj;
7208 wxChar *arg1 = (wxChar *) 0 ;
7209 PyObject * obj0 = 0 ;
7210 char *kwnames[] = {
7211 (char *) "ts", NULL
7212 };
7213
7214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7217 {
7218 PyThreadState* __tstate = wxPyBeginAllowThreads();
7219 wxLog::SetTimestamp((wxChar const *)arg1);
7220
7221 wxPyEndAllowThreads(__tstate);
7222 if (PyErr_Occurred()) SWIG_fail;
7223 }
7224 Py_INCREF(Py_None); resultobj = Py_None;
7225 return resultobj;
7226 fail:
7227 return NULL;
7228 }
7229
7230
7231 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7232 PyObject *resultobj;
7233 bool result;
7234 char *kwnames[] = {
7235 NULL
7236 };
7237
7238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7239 {
7240 PyThreadState* __tstate = wxPyBeginAllowThreads();
7241 result = (bool)wxLog::GetVerbose();
7242
7243 wxPyEndAllowThreads(__tstate);
7244 if (PyErr_Occurred()) SWIG_fail;
7245 }
7246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7247 return resultobj;
7248 fail:
7249 return NULL;
7250 }
7251
7252
7253 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj;
7255 wxTraceMask result;
7256 char *kwnames[] = {
7257 NULL
7258 };
7259
7260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7261 {
7262 PyThreadState* __tstate = wxPyBeginAllowThreads();
7263 result = (wxTraceMask)wxLog::GetTraceMask();
7264
7265 wxPyEndAllowThreads(__tstate);
7266 if (PyErr_Occurred()) SWIG_fail;
7267 }
7268 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7269 return resultobj;
7270 fail:
7271 return NULL;
7272 }
7273
7274
7275 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7276 PyObject *resultobj;
7277 wxChar *arg1 = (wxChar *) 0 ;
7278 bool result;
7279 PyObject * obj0 = 0 ;
7280 char *kwnames[] = {
7281 (char *) "mask", NULL
7282 };
7283
7284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7287 {
7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
7289 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7290
7291 wxPyEndAllowThreads(__tstate);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7295 return resultobj;
7296 fail:
7297 return NULL;
7298 }
7299
7300
7301 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7302 PyObject *resultobj;
7303 wxLogLevel result;
7304 char *kwnames[] = {
7305 NULL
7306 };
7307
7308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 result = (wxLogLevel)wxLog::GetLogLevel();
7312
7313 wxPyEndAllowThreads(__tstate);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7317 return resultobj;
7318 fail:
7319 return NULL;
7320 }
7321
7322
7323 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7324 PyObject *resultobj;
7325 wxChar *result;
7326 char *kwnames[] = {
7327 NULL
7328 };
7329
7330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7331 {
7332 PyThreadState* __tstate = wxPyBeginAllowThreads();
7333 result = (wxChar *)wxLog::GetTimestamp();
7334
7335 wxPyEndAllowThreads(__tstate);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7339 return resultobj;
7340 fail:
7341 return NULL;
7342 }
7343
7344
7345 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7346 PyObject *resultobj;
7347 wxString result;
7348 char *kwnames[] = {
7349 NULL
7350 };
7351
7352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7353 {
7354 PyThreadState* __tstate = wxPyBeginAllowThreads();
7355 result = Log_TimeStamp();
7356
7357 wxPyEndAllowThreads(__tstate);
7358 if (PyErr_Occurred()) SWIG_fail;
7359 }
7360 {
7361 #if wxUSE_UNICODE
7362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7363 #else
7364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7365 #endif
7366 }
7367 return resultobj;
7368 fail:
7369 return NULL;
7370 }
7371
7372
7373 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7374 PyObject *resultobj;
7375 wxLog *arg1 = (wxLog *) 0 ;
7376 PyObject * obj0 = 0 ;
7377 char *kwnames[] = {
7378 (char *) "self", NULL
7379 };
7380
7381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7384 {
7385 PyThreadState* __tstate = wxPyBeginAllowThreads();
7386 wxLog_Destroy(arg1);
7387
7388 wxPyEndAllowThreads(__tstate);
7389 if (PyErr_Occurred()) SWIG_fail;
7390 }
7391 Py_INCREF(Py_None); resultobj = Py_None;
7392 return resultobj;
7393 fail:
7394 return NULL;
7395 }
7396
7397
7398 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7399 PyObject *obj;
7400 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7401 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7402 Py_INCREF(obj);
7403 return Py_BuildValue((char *)"");
7404 }
7405 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7406 PyObject *resultobj;
7407 wxLogStderr *result;
7408 char *kwnames[] = {
7409 NULL
7410 };
7411
7412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7413 {
7414 PyThreadState* __tstate = wxPyBeginAllowThreads();
7415 result = (wxLogStderr *)new wxLogStderr();
7416
7417 wxPyEndAllowThreads(__tstate);
7418 if (PyErr_Occurred()) SWIG_fail;
7419 }
7420 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7421 return resultobj;
7422 fail:
7423 return NULL;
7424 }
7425
7426
7427 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7428 PyObject *obj;
7429 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7430 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7431 Py_INCREF(obj);
7432 return Py_BuildValue((char *)"");
7433 }
7434 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7435 PyObject *resultobj;
7436 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7437 wxLogTextCtrl *result;
7438 PyObject * obj0 = 0 ;
7439 char *kwnames[] = {
7440 (char *) "pTextCtrl", NULL
7441 };
7442
7443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7446 {
7447 PyThreadState* __tstate = wxPyBeginAllowThreads();
7448 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7449
7450 wxPyEndAllowThreads(__tstate);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 }
7453 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7454 return resultobj;
7455 fail:
7456 return NULL;
7457 }
7458
7459
7460 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7461 PyObject *obj;
7462 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7463 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7464 Py_INCREF(obj);
7465 return Py_BuildValue((char *)"");
7466 }
7467 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7468 PyObject *resultobj;
7469 wxLogGui *result;
7470 char *kwnames[] = {
7471 NULL
7472 };
7473
7474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7475 {
7476 PyThreadState* __tstate = wxPyBeginAllowThreads();
7477 result = (wxLogGui *)new wxLogGui();
7478
7479 wxPyEndAllowThreads(__tstate);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 }
7482 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7483 return resultobj;
7484 fail:
7485 return NULL;
7486 }
7487
7488
7489 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7490 PyObject *obj;
7491 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7492 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7493 Py_INCREF(obj);
7494 return Py_BuildValue((char *)"");
7495 }
7496 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7497 PyObject *resultobj;
7498 wxFrame *arg1 = (wxFrame *) 0 ;
7499 wxString *arg2 = 0 ;
7500 bool arg3 = (bool) True ;
7501 bool arg4 = (bool) True ;
7502 wxLogWindow *result;
7503 bool temp2 = False ;
7504 PyObject * obj0 = 0 ;
7505 PyObject * obj1 = 0 ;
7506 PyObject * obj2 = 0 ;
7507 PyObject * obj3 = 0 ;
7508 char *kwnames[] = {
7509 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7510 };
7511
7512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7515 {
7516 arg2 = wxString_in_helper(obj1);
7517 if (arg2 == NULL) SWIG_fail;
7518 temp2 = True;
7519 }
7520 if (obj2) {
7521 arg3 = (bool) SWIG_AsBool(obj2);
7522 if (PyErr_Occurred()) SWIG_fail;
7523 }
7524 if (obj3) {
7525 arg4 = (bool) SWIG_AsBool(obj3);
7526 if (PyErr_Occurred()) SWIG_fail;
7527 }
7528 {
7529 PyThreadState* __tstate = wxPyBeginAllowThreads();
7530 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7531
7532 wxPyEndAllowThreads(__tstate);
7533 if (PyErr_Occurred()) SWIG_fail;
7534 }
7535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7536 {
7537 if (temp2)
7538 delete arg2;
7539 }
7540 return resultobj;
7541 fail:
7542 {
7543 if (temp2)
7544 delete arg2;
7545 }
7546 return NULL;
7547 }
7548
7549
7550 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7551 PyObject *resultobj;
7552 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7553 bool arg2 = (bool) True ;
7554 PyObject * obj0 = 0 ;
7555 PyObject * obj1 = 0 ;
7556 char *kwnames[] = {
7557 (char *) "self",(char *) "bShow", NULL
7558 };
7559
7560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7563 if (obj1) {
7564 arg2 = (bool) SWIG_AsBool(obj1);
7565 if (PyErr_Occurred()) SWIG_fail;
7566 }
7567 {
7568 PyThreadState* __tstate = wxPyBeginAllowThreads();
7569 (arg1)->Show(arg2);
7570
7571 wxPyEndAllowThreads(__tstate);
7572 if (PyErr_Occurred()) SWIG_fail;
7573 }
7574 Py_INCREF(Py_None); resultobj = Py_None;
7575 return resultobj;
7576 fail:
7577 return NULL;
7578 }
7579
7580
7581 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7582 PyObject *resultobj;
7583 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7584 wxFrame *result;
7585 PyObject * obj0 = 0 ;
7586 char *kwnames[] = {
7587 (char *) "self", NULL
7588 };
7589
7590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7593 {
7594 PyThreadState* __tstate = wxPyBeginAllowThreads();
7595 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7596
7597 wxPyEndAllowThreads(__tstate);
7598 if (PyErr_Occurred()) SWIG_fail;
7599 }
7600 {
7601 resultobj = wxPyMake_wxObject(result);
7602 }
7603 return resultobj;
7604 fail:
7605 return NULL;
7606 }
7607
7608
7609 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7610 PyObject *resultobj;
7611 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7612 wxLog *result;
7613 PyObject * obj0 = 0 ;
7614 char *kwnames[] = {
7615 (char *) "self", NULL
7616 };
7617
7618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7621 {
7622 PyThreadState* __tstate = wxPyBeginAllowThreads();
7623 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7624
7625 wxPyEndAllowThreads(__tstate);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj;
7637 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7638 bool result;
7639 PyObject * obj0 = 0 ;
7640 char *kwnames[] = {
7641 (char *) "self", NULL
7642 };
7643
7644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7647 {
7648 PyThreadState* __tstate = wxPyBeginAllowThreads();
7649 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7650
7651 wxPyEndAllowThreads(__tstate);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7655 return resultobj;
7656 fail:
7657 return NULL;
7658 }
7659
7660
7661 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj;
7663 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7664 bool arg2 ;
7665 PyObject * obj0 = 0 ;
7666 PyObject * obj1 = 0 ;
7667 char *kwnames[] = {
7668 (char *) "self",(char *) "bDoPass", NULL
7669 };
7670
7671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7674 arg2 = (bool) SWIG_AsBool(obj1);
7675 if (PyErr_Occurred()) SWIG_fail;
7676 {
7677 PyThreadState* __tstate = wxPyBeginAllowThreads();
7678 (arg1)->PassMessages(arg2);
7679
7680 wxPyEndAllowThreads(__tstate);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 Py_INCREF(Py_None); resultobj = Py_None;
7684 return resultobj;
7685 fail:
7686 return NULL;
7687 }
7688
7689
7690 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7691 PyObject *obj;
7692 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7693 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7694 Py_INCREF(obj);
7695 return Py_BuildValue((char *)"");
7696 }
7697 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7698 PyObject *resultobj;
7699 wxLog *arg1 = (wxLog *) 0 ;
7700 wxLogChain *result;
7701 PyObject * obj0 = 0 ;
7702 char *kwnames[] = {
7703 (char *) "logger", NULL
7704 };
7705
7706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7709 {
7710 PyThreadState* __tstate = wxPyBeginAllowThreads();
7711 result = (wxLogChain *)new wxLogChain(arg1);
7712
7713 wxPyEndAllowThreads(__tstate);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
7717 return resultobj;
7718 fail:
7719 return NULL;
7720 }
7721
7722
7723 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7724 PyObject *resultobj;
7725 wxLogChain *arg1 = (wxLogChain *) 0 ;
7726 wxLog *arg2 = (wxLog *) 0 ;
7727 PyObject * obj0 = 0 ;
7728 PyObject * obj1 = 0 ;
7729 char *kwnames[] = {
7730 (char *) "self",(char *) "logger", NULL
7731 };
7732
7733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7736 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7738 {
7739 PyThreadState* __tstate = wxPyBeginAllowThreads();
7740 (arg1)->SetLog(arg2);
7741
7742 wxPyEndAllowThreads(__tstate);
7743 if (PyErr_Occurred()) SWIG_fail;
7744 }
7745 Py_INCREF(Py_None); resultobj = Py_None;
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxLogChain *arg1 = (wxLogChain *) 0 ;
7755 bool arg2 ;
7756 PyObject * obj0 = 0 ;
7757 PyObject * obj1 = 0 ;
7758 char *kwnames[] = {
7759 (char *) "self",(char *) "bDoPass", NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7765 arg2 = (bool) SWIG_AsBool(obj1);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 {
7768 PyThreadState* __tstate = wxPyBeginAllowThreads();
7769 (arg1)->PassMessages(arg2);
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 Py_INCREF(Py_None); resultobj = Py_None;
7775 return resultobj;
7776 fail:
7777 return NULL;
7778 }
7779
7780
7781 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7782 PyObject *resultobj;
7783 wxLogChain *arg1 = (wxLogChain *) 0 ;
7784 bool result;
7785 PyObject * obj0 = 0 ;
7786 char *kwnames[] = {
7787 (char *) "self", NULL
7788 };
7789
7790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
7791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7793 {
7794 PyThreadState* __tstate = wxPyBeginAllowThreads();
7795 result = (bool)(arg1)->IsPassingMessages();
7796
7797 wxPyEndAllowThreads(__tstate);
7798 if (PyErr_Occurred()) SWIG_fail;
7799 }
7800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7801 return resultobj;
7802 fail:
7803 return NULL;
7804 }
7805
7806
7807 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7808 PyObject *resultobj;
7809 wxLogChain *arg1 = (wxLogChain *) 0 ;
7810 wxLog *result;
7811 PyObject * obj0 = 0 ;
7812 char *kwnames[] = {
7813 (char *) "self", NULL
7814 };
7815
7816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
7817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7819 {
7820 PyThreadState* __tstate = wxPyBeginAllowThreads();
7821 result = (wxLog *)(arg1)->GetOldLog();
7822
7823 wxPyEndAllowThreads(__tstate);
7824 if (PyErr_Occurred()) SWIG_fail;
7825 }
7826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7827 return resultobj;
7828 fail:
7829 return NULL;
7830 }
7831
7832
7833 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
7834 PyObject *obj;
7835 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7836 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
7837 Py_INCREF(obj);
7838 return Py_BuildValue((char *)"");
7839 }
7840 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
7841 PyObject *resultobj;
7842 unsigned long result;
7843 char *kwnames[] = {
7844 NULL
7845 };
7846
7847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
7848 {
7849 PyThreadState* __tstate = wxPyBeginAllowThreads();
7850 result = (unsigned long)wxSysErrorCode();
7851
7852 wxPyEndAllowThreads(__tstate);
7853 if (PyErr_Occurred()) SWIG_fail;
7854 }
7855 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7856 return resultobj;
7857 fail:
7858 return NULL;
7859 }
7860
7861
7862 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
7863 PyObject *resultobj;
7864 unsigned long arg1 = (unsigned long) 0 ;
7865 wxString result;
7866 PyObject * obj0 = 0 ;
7867 char *kwnames[] = {
7868 (char *) "nErrCode", NULL
7869 };
7870
7871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
7872 if (obj0) {
7873 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
7874 if (PyErr_Occurred()) SWIG_fail;
7875 }
7876 {
7877 PyThreadState* __tstate = wxPyBeginAllowThreads();
7878 result = wxSysErrorMsg(arg1);
7879
7880 wxPyEndAllowThreads(__tstate);
7881 if (PyErr_Occurred()) SWIG_fail;
7882 }
7883 {
7884 #if wxUSE_UNICODE
7885 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7886 #else
7887 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7888 #endif
7889 }
7890 return resultobj;
7891 fail:
7892 return NULL;
7893 }
7894
7895
7896 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
7897 PyObject *resultobj;
7898 wxString *arg1 = 0 ;
7899 bool temp1 = False ;
7900 PyObject * obj0 = 0 ;
7901 char *kwnames[] = {
7902 (char *) "msg", NULL
7903 };
7904
7905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
7906 {
7907 arg1 = wxString_in_helper(obj0);
7908 if (arg1 == NULL) SWIG_fail;
7909 temp1 = True;
7910 }
7911 {
7912 PyThreadState* __tstate = wxPyBeginAllowThreads();
7913 wxLogFatalError((wxString const &)*arg1);
7914
7915 wxPyEndAllowThreads(__tstate);
7916 if (PyErr_Occurred()) SWIG_fail;
7917 }
7918 Py_INCREF(Py_None); resultobj = Py_None;
7919 {
7920 if (temp1)
7921 delete arg1;
7922 }
7923 return resultobj;
7924 fail:
7925 {
7926 if (temp1)
7927 delete arg1;
7928 }
7929 return NULL;
7930 }
7931
7932
7933 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
7934 PyObject *resultobj;
7935 wxString *arg1 = 0 ;
7936 bool temp1 = False ;
7937 PyObject * obj0 = 0 ;
7938 char *kwnames[] = {
7939 (char *) "msg", NULL
7940 };
7941
7942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
7943 {
7944 arg1 = wxString_in_helper(obj0);
7945 if (arg1 == NULL) SWIG_fail;
7946 temp1 = True;
7947 }
7948 {
7949 PyThreadState* __tstate = wxPyBeginAllowThreads();
7950 wxLogError((wxString const &)*arg1);
7951
7952 wxPyEndAllowThreads(__tstate);
7953 if (PyErr_Occurred()) SWIG_fail;
7954 }
7955 Py_INCREF(Py_None); resultobj = Py_None;
7956 {
7957 if (temp1)
7958 delete arg1;
7959 }
7960 return resultobj;
7961 fail:
7962 {
7963 if (temp1)
7964 delete arg1;
7965 }
7966 return NULL;
7967 }
7968
7969
7970 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
7971 PyObject *resultobj;
7972 wxString *arg1 = 0 ;
7973 bool temp1 = False ;
7974 PyObject * obj0 = 0 ;
7975 char *kwnames[] = {
7976 (char *) "msg", NULL
7977 };
7978
7979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
7980 {
7981 arg1 = wxString_in_helper(obj0);
7982 if (arg1 == NULL) SWIG_fail;
7983 temp1 = True;
7984 }
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 wxLogWarning((wxString const &)*arg1);
7988
7989 wxPyEndAllowThreads(__tstate);
7990 if (PyErr_Occurred()) SWIG_fail;
7991 }
7992 Py_INCREF(Py_None); resultobj = Py_None;
7993 {
7994 if (temp1)
7995 delete arg1;
7996 }
7997 return resultobj;
7998 fail:
7999 {
8000 if (temp1)
8001 delete arg1;
8002 }
8003 return NULL;
8004 }
8005
8006
8007 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8008 PyObject *resultobj;
8009 wxString *arg1 = 0 ;
8010 bool temp1 = False ;
8011 PyObject * obj0 = 0 ;
8012 char *kwnames[] = {
8013 (char *) "msg", NULL
8014 };
8015
8016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8017 {
8018 arg1 = wxString_in_helper(obj0);
8019 if (arg1 == NULL) SWIG_fail;
8020 temp1 = True;
8021 }
8022 {
8023 PyThreadState* __tstate = wxPyBeginAllowThreads();
8024 wxLogMessage((wxString const &)*arg1);
8025
8026 wxPyEndAllowThreads(__tstate);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 Py_INCREF(Py_None); resultobj = Py_None;
8030 {
8031 if (temp1)
8032 delete arg1;
8033 }
8034 return resultobj;
8035 fail:
8036 {
8037 if (temp1)
8038 delete arg1;
8039 }
8040 return NULL;
8041 }
8042
8043
8044 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8045 PyObject *resultobj;
8046 wxString *arg1 = 0 ;
8047 bool temp1 = False ;
8048 PyObject * obj0 = 0 ;
8049 char *kwnames[] = {
8050 (char *) "msg", NULL
8051 };
8052
8053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8054 {
8055 arg1 = wxString_in_helper(obj0);
8056 if (arg1 == NULL) SWIG_fail;
8057 temp1 = True;
8058 }
8059 {
8060 PyThreadState* __tstate = wxPyBeginAllowThreads();
8061 wxLogInfo((wxString const &)*arg1);
8062
8063 wxPyEndAllowThreads(__tstate);
8064 if (PyErr_Occurred()) SWIG_fail;
8065 }
8066 Py_INCREF(Py_None); resultobj = Py_None;
8067 {
8068 if (temp1)
8069 delete arg1;
8070 }
8071 return resultobj;
8072 fail:
8073 {
8074 if (temp1)
8075 delete arg1;
8076 }
8077 return NULL;
8078 }
8079
8080
8081 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8082 PyObject *resultobj;
8083 wxString *arg1 = 0 ;
8084 bool temp1 = False ;
8085 PyObject * obj0 = 0 ;
8086 char *kwnames[] = {
8087 (char *) "msg", NULL
8088 };
8089
8090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8091 {
8092 arg1 = wxString_in_helper(obj0);
8093 if (arg1 == NULL) SWIG_fail;
8094 temp1 = True;
8095 }
8096 {
8097 PyThreadState* __tstate = wxPyBeginAllowThreads();
8098 wxLogDebug((wxString const &)*arg1);
8099
8100 wxPyEndAllowThreads(__tstate);
8101 if (PyErr_Occurred()) SWIG_fail;
8102 }
8103 Py_INCREF(Py_None); resultobj = Py_None;
8104 {
8105 if (temp1)
8106 delete arg1;
8107 }
8108 return resultobj;
8109 fail:
8110 {
8111 if (temp1)
8112 delete arg1;
8113 }
8114 return NULL;
8115 }
8116
8117
8118 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8119 PyObject *resultobj;
8120 wxString *arg1 = 0 ;
8121 bool temp1 = False ;
8122 PyObject * obj0 = 0 ;
8123 char *kwnames[] = {
8124 (char *) "msg", NULL
8125 };
8126
8127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8128 {
8129 arg1 = wxString_in_helper(obj0);
8130 if (arg1 == NULL) SWIG_fail;
8131 temp1 = True;
8132 }
8133 {
8134 PyThreadState* __tstate = wxPyBeginAllowThreads();
8135 wxLogVerbose((wxString const &)*arg1);
8136
8137 wxPyEndAllowThreads(__tstate);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 Py_INCREF(Py_None); resultobj = Py_None;
8141 {
8142 if (temp1)
8143 delete arg1;
8144 }
8145 return resultobj;
8146 fail:
8147 {
8148 if (temp1)
8149 delete arg1;
8150 }
8151 return NULL;
8152 }
8153
8154
8155 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8156 PyObject *resultobj;
8157 wxString *arg1 = 0 ;
8158 bool temp1 = False ;
8159 PyObject * obj0 = 0 ;
8160 char *kwnames[] = {
8161 (char *) "msg", NULL
8162 };
8163
8164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8165 {
8166 arg1 = wxString_in_helper(obj0);
8167 if (arg1 == NULL) SWIG_fail;
8168 temp1 = True;
8169 }
8170 {
8171 PyThreadState* __tstate = wxPyBeginAllowThreads();
8172 wxLogStatus((wxString const &)*arg1);
8173
8174 wxPyEndAllowThreads(__tstate);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 Py_INCREF(Py_None); resultobj = Py_None;
8178 {
8179 if (temp1)
8180 delete arg1;
8181 }
8182 return resultobj;
8183 fail:
8184 {
8185 if (temp1)
8186 delete arg1;
8187 }
8188 return NULL;
8189 }
8190
8191
8192 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8193 PyObject *resultobj;
8194 wxFrame *arg1 = (wxFrame *) 0 ;
8195 wxString *arg2 = 0 ;
8196 bool temp2 = False ;
8197 PyObject * obj0 = 0 ;
8198 PyObject * obj1 = 0 ;
8199 char *kwnames[] = {
8200 (char *) "pFrame",(char *) "msg", NULL
8201 };
8202
8203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8206 {
8207 arg2 = wxString_in_helper(obj1);
8208 if (arg2 == NULL) SWIG_fail;
8209 temp2 = True;
8210 }
8211 {
8212 PyThreadState* __tstate = wxPyBeginAllowThreads();
8213 wxLogStatus(arg1,(wxString const &)*arg2);
8214
8215 wxPyEndAllowThreads(__tstate);
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 Py_INCREF(Py_None); resultobj = Py_None;
8219 {
8220 if (temp2)
8221 delete arg2;
8222 }
8223 return resultobj;
8224 fail:
8225 {
8226 if (temp2)
8227 delete arg2;
8228 }
8229 return NULL;
8230 }
8231
8232
8233 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8234 PyObject *resultobj;
8235 wxString *arg1 = 0 ;
8236 bool temp1 = False ;
8237 PyObject * obj0 = 0 ;
8238 char *kwnames[] = {
8239 (char *) "msg", NULL
8240 };
8241
8242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8243 {
8244 arg1 = wxString_in_helper(obj0);
8245 if (arg1 == NULL) SWIG_fail;
8246 temp1 = True;
8247 }
8248 {
8249 PyThreadState* __tstate = wxPyBeginAllowThreads();
8250 wxLogSysError((wxString const &)*arg1);
8251
8252 wxPyEndAllowThreads(__tstate);
8253 if (PyErr_Occurred()) SWIG_fail;
8254 }
8255 Py_INCREF(Py_None); resultobj = Py_None;
8256 {
8257 if (temp1)
8258 delete arg1;
8259 }
8260 return resultobj;
8261 fail:
8262 {
8263 if (temp1)
8264 delete arg1;
8265 }
8266 return NULL;
8267 }
8268
8269
8270 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8271 PyObject *resultobj;
8272 unsigned long arg1 ;
8273 wxString *arg2 = 0 ;
8274 bool temp2 = False ;
8275 PyObject * obj0 = 0 ;
8276 PyObject * obj1 = 0 ;
8277
8278 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8279 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8280 if (PyErr_Occurred()) SWIG_fail;
8281 {
8282 arg2 = wxString_in_helper(obj1);
8283 if (arg2 == NULL) SWIG_fail;
8284 temp2 = True;
8285 }
8286 {
8287 PyThreadState* __tstate = wxPyBeginAllowThreads();
8288 wxLogTrace(arg1,(wxString const &)*arg2);
8289
8290 wxPyEndAllowThreads(__tstate);
8291 if (PyErr_Occurred()) SWIG_fail;
8292 }
8293 Py_INCREF(Py_None); resultobj = Py_None;
8294 {
8295 if (temp2)
8296 delete arg2;
8297 }
8298 return resultobj;
8299 fail:
8300 {
8301 if (temp2)
8302 delete arg2;
8303 }
8304 return NULL;
8305 }
8306
8307
8308 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8309 PyObject *resultobj;
8310 wxString *arg1 = 0 ;
8311 wxString *arg2 = 0 ;
8312 bool temp1 = False ;
8313 bool temp2 = False ;
8314 PyObject * obj0 = 0 ;
8315 PyObject * obj1 = 0 ;
8316
8317 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8318 {
8319 arg1 = wxString_in_helper(obj0);
8320 if (arg1 == NULL) SWIG_fail;
8321 temp1 = True;
8322 }
8323 {
8324 arg2 = wxString_in_helper(obj1);
8325 if (arg2 == NULL) SWIG_fail;
8326 temp2 = True;
8327 }
8328 {
8329 PyThreadState* __tstate = wxPyBeginAllowThreads();
8330 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8331
8332 wxPyEndAllowThreads(__tstate);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 Py_INCREF(Py_None); resultobj = Py_None;
8336 {
8337 if (temp1)
8338 delete arg1;
8339 }
8340 {
8341 if (temp2)
8342 delete arg2;
8343 }
8344 return resultobj;
8345 fail:
8346 {
8347 if (temp1)
8348 delete arg1;
8349 }
8350 {
8351 if (temp2)
8352 delete arg2;
8353 }
8354 return NULL;
8355 }
8356
8357
8358 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8359 int argc;
8360 PyObject *argv[3];
8361 int ii;
8362
8363 argc = PyObject_Length(args);
8364 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8365 argv[ii] = PyTuple_GetItem(args,ii);
8366 }
8367 if (argc == 2) {
8368 int _v;
8369 {
8370 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8371 }
8372 if (_v) {
8373 {
8374 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8375 }
8376 if (_v) {
8377 return _wrap_LogTrace__SWIG_1(self,args);
8378 }
8379 }
8380 }
8381 if (argc == 2) {
8382 int _v;
8383 _v = SWIG_CheckUnsignedLong(argv[0]);
8384 if (_v) {
8385 {
8386 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8387 }
8388 if (_v) {
8389 return _wrap_LogTrace__SWIG_0(self,args);
8390 }
8391 }
8392 }
8393
8394 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8395 return NULL;
8396 }
8397
8398
8399 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8400 PyObject *resultobj;
8401 unsigned long arg1 ;
8402 wxString *arg2 = 0 ;
8403 bool temp2 = False ;
8404 PyObject * obj0 = 0 ;
8405 PyObject * obj1 = 0 ;
8406 char *kwnames[] = {
8407 (char *) "level",(char *) "msg", NULL
8408 };
8409
8410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8411 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 {
8414 arg2 = wxString_in_helper(obj1);
8415 if (arg2 == NULL) SWIG_fail;
8416 temp2 = True;
8417 }
8418 {
8419 PyThreadState* __tstate = wxPyBeginAllowThreads();
8420 wxLogGeneric(arg1,(wxString const &)*arg2);
8421
8422 wxPyEndAllowThreads(__tstate);
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 Py_INCREF(Py_None); resultobj = Py_None;
8426 {
8427 if (temp2)
8428 delete arg2;
8429 }
8430 return resultobj;
8431 fail:
8432 {
8433 if (temp2)
8434 delete arg2;
8435 }
8436 return NULL;
8437 }
8438
8439
8440 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8441 PyObject *resultobj;
8442 wxString *arg1 = 0 ;
8443 wxString *arg2 = 0 ;
8444 bool temp1 = False ;
8445 bool temp2 = False ;
8446 PyObject * obj0 = 0 ;
8447 PyObject * obj1 = 0 ;
8448 char *kwnames[] = {
8449 (char *) "title",(char *) "text", NULL
8450 };
8451
8452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8453 {
8454 arg1 = wxString_in_helper(obj0);
8455 if (arg1 == NULL) SWIG_fail;
8456 temp1 = True;
8457 }
8458 {
8459 arg2 = wxString_in_helper(obj1);
8460 if (arg2 == NULL) SWIG_fail;
8461 temp2 = True;
8462 }
8463 {
8464 PyThreadState* __tstate = wxPyBeginAllowThreads();
8465 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8466
8467 wxPyEndAllowThreads(__tstate);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 Py_INCREF(Py_None); resultobj = Py_None;
8471 {
8472 if (temp1)
8473 delete arg1;
8474 }
8475 {
8476 if (temp2)
8477 delete arg2;
8478 }
8479 return resultobj;
8480 fail:
8481 {
8482 if (temp1)
8483 delete arg1;
8484 }
8485 {
8486 if (temp2)
8487 delete arg2;
8488 }
8489 return NULL;
8490 }
8491
8492
8493 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8494 PyObject *resultobj;
8495 wxLogNull *result;
8496 char *kwnames[] = {
8497 NULL
8498 };
8499
8500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8501 {
8502 PyThreadState* __tstate = wxPyBeginAllowThreads();
8503 result = (wxLogNull *)new wxLogNull();
8504
8505 wxPyEndAllowThreads(__tstate);
8506 if (PyErr_Occurred()) SWIG_fail;
8507 }
8508 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8509 return resultobj;
8510 fail:
8511 return NULL;
8512 }
8513
8514
8515 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8516 PyObject *resultobj;
8517 wxLogNull *arg1 = (wxLogNull *) 0 ;
8518 PyObject * obj0 = 0 ;
8519 char *kwnames[] = {
8520 (char *) "self", NULL
8521 };
8522
8523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8526 {
8527 PyThreadState* __tstate = wxPyBeginAllowThreads();
8528 delete arg1;
8529
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 Py_INCREF(Py_None); resultobj = Py_None;
8534 return resultobj;
8535 fail:
8536 return NULL;
8537 }
8538
8539
8540 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8541 PyObject *obj;
8542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8543 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8544 Py_INCREF(obj);
8545 return Py_BuildValue((char *)"");
8546 }
8547 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8548 PyObject *resultobj;
8549 wxPyLog *result;
8550 char *kwnames[] = {
8551 NULL
8552 };
8553
8554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8555 {
8556 PyThreadState* __tstate = wxPyBeginAllowThreads();
8557 result = (wxPyLog *)new wxPyLog();
8558
8559 wxPyEndAllowThreads(__tstate);
8560 if (PyErr_Occurred()) SWIG_fail;
8561 }
8562 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8563 return resultobj;
8564 fail:
8565 return NULL;
8566 }
8567
8568
8569 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8570 PyObject *resultobj;
8571 wxPyLog *arg1 = (wxPyLog *) 0 ;
8572 PyObject *arg2 = (PyObject *) 0 ;
8573 PyObject *arg3 = (PyObject *) 0 ;
8574 PyObject * obj0 = 0 ;
8575 PyObject * obj1 = 0 ;
8576 PyObject * obj2 = 0 ;
8577 char *kwnames[] = {
8578 (char *) "self",(char *) "self",(char *) "_class", NULL
8579 };
8580
8581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8584 arg2 = obj1;
8585 arg3 = obj2;
8586 {
8587 PyThreadState* __tstate = wxPyBeginAllowThreads();
8588 (arg1)->_setCallbackInfo(arg2,arg3);
8589
8590 wxPyEndAllowThreads(__tstate);
8591 if (PyErr_Occurred()) SWIG_fail;
8592 }
8593 Py_INCREF(Py_None); resultobj = Py_None;
8594 return resultobj;
8595 fail:
8596 return NULL;
8597 }
8598
8599
8600 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8601 PyObject *obj;
8602 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8603 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8604 Py_INCREF(obj);
8605 return Py_BuildValue((char *)"");
8606 }
8607 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8608 PyObject *resultobj;
8609 int arg1 ;
8610 int arg2 = (int) wxSIGTERM ;
8611 int result;
8612 PyObject * obj0 = 0 ;
8613 PyObject * obj1 = 0 ;
8614 char *kwnames[] = {
8615 (char *) "pid",(char *) "sig", NULL
8616 };
8617
8618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8619 arg1 = (int) SWIG_AsInt(obj0);
8620 if (PyErr_Occurred()) SWIG_fail;
8621 if (obj1) {
8622 arg2 = (wxSignal) SWIG_AsInt(obj1);
8623 if (PyErr_Occurred()) SWIG_fail;
8624 }
8625 {
8626 PyThreadState* __tstate = wxPyBeginAllowThreads();
8627 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8628
8629 wxPyEndAllowThreads(__tstate);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 resultobj = SWIG_FromInt((int)result);
8633 return resultobj;
8634 fail:
8635 return NULL;
8636 }
8637
8638
8639 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8640 PyObject *resultobj;
8641 int arg1 ;
8642 bool result;
8643 PyObject * obj0 = 0 ;
8644 char *kwnames[] = {
8645 (char *) "pid", NULL
8646 };
8647
8648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8649 arg1 = (int) SWIG_AsInt(obj0);
8650 if (PyErr_Occurred()) SWIG_fail;
8651 {
8652 PyThreadState* __tstate = wxPyBeginAllowThreads();
8653 result = (bool)wxPyProcess::Exists(arg1);
8654
8655 wxPyEndAllowThreads(__tstate);
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8659 return resultobj;
8660 fail:
8661 return NULL;
8662 }
8663
8664
8665 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8666 PyObject *resultobj;
8667 wxString *arg1 = 0 ;
8668 int arg2 = (int) wxEXEC_ASYNC ;
8669 wxPyProcess *result;
8670 bool temp1 = False ;
8671 PyObject * obj0 = 0 ;
8672 PyObject * obj1 = 0 ;
8673 char *kwnames[] = {
8674 (char *) "cmd",(char *) "flags", NULL
8675 };
8676
8677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8678 {
8679 arg1 = wxString_in_helper(obj0);
8680 if (arg1 == NULL) SWIG_fail;
8681 temp1 = True;
8682 }
8683 if (obj1) {
8684 arg2 = (int) SWIG_AsInt(obj1);
8685 if (PyErr_Occurred()) SWIG_fail;
8686 }
8687 {
8688 PyThreadState* __tstate = wxPyBeginAllowThreads();
8689 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8690
8691 wxPyEndAllowThreads(__tstate);
8692 if (PyErr_Occurred()) SWIG_fail;
8693 }
8694 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
8695 {
8696 if (temp1)
8697 delete arg1;
8698 }
8699 return resultobj;
8700 fail:
8701 {
8702 if (temp1)
8703 delete arg1;
8704 }
8705 return NULL;
8706 }
8707
8708
8709 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8710 PyObject *resultobj;
8711 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8712 int arg2 = (int) -1 ;
8713 wxPyProcess *result;
8714 PyObject * obj0 = 0 ;
8715 PyObject * obj1 = 0 ;
8716 char *kwnames[] = {
8717 (char *) "parent",(char *) "id", NULL
8718 };
8719
8720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
8721 if (obj0) {
8722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8724 }
8725 if (obj1) {
8726 arg2 = (int) SWIG_AsInt(obj1);
8727 if (PyErr_Occurred()) SWIG_fail;
8728 }
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
8737 return resultobj;
8738 fail:
8739 return NULL;
8740 }
8741
8742
8743 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8744 PyObject *resultobj;
8745 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8746 PyObject *arg2 = (PyObject *) 0 ;
8747 PyObject *arg3 = (PyObject *) 0 ;
8748 PyObject * obj0 = 0 ;
8749 PyObject * obj1 = 0 ;
8750 PyObject * obj2 = 0 ;
8751 char *kwnames[] = {
8752 (char *) "self",(char *) "self",(char *) "_class", NULL
8753 };
8754
8755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8758 arg2 = obj1;
8759 arg3 = obj2;
8760 {
8761 PyThreadState* __tstate = wxPyBeginAllowThreads();
8762 (arg1)->_setCallbackInfo(arg2,arg3);
8763
8764 wxPyEndAllowThreads(__tstate);
8765 if (PyErr_Occurred()) SWIG_fail;
8766 }
8767 Py_INCREF(Py_None); resultobj = Py_None;
8768 return resultobj;
8769 fail:
8770 return NULL;
8771 }
8772
8773
8774 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
8775 PyObject *resultobj;
8776 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8777 int arg2 ;
8778 int arg3 ;
8779 PyObject * obj0 = 0 ;
8780 PyObject * obj1 = 0 ;
8781 PyObject * obj2 = 0 ;
8782 char *kwnames[] = {
8783 (char *) "self",(char *) "pid",(char *) "status", NULL
8784 };
8785
8786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
8787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8789 arg2 = (int) SWIG_AsInt(obj1);
8790 if (PyErr_Occurred()) SWIG_fail;
8791 arg3 = (int) SWIG_AsInt(obj2);
8792 if (PyErr_Occurred()) SWIG_fail;
8793 {
8794 PyThreadState* __tstate = wxPyBeginAllowThreads();
8795 (arg1)->base_OnTerminate(arg2,arg3);
8796
8797 wxPyEndAllowThreads(__tstate);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 }
8800 Py_INCREF(Py_None); resultobj = Py_None;
8801 return resultobj;
8802 fail:
8803 return NULL;
8804 }
8805
8806
8807 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
8808 PyObject *resultobj;
8809 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8810 PyObject * obj0 = 0 ;
8811 char *kwnames[] = {
8812 (char *) "self", NULL
8813 };
8814
8815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
8816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8818 {
8819 PyThreadState* __tstate = wxPyBeginAllowThreads();
8820 (arg1)->Redirect();
8821
8822 wxPyEndAllowThreads(__tstate);
8823 if (PyErr_Occurred()) SWIG_fail;
8824 }
8825 Py_INCREF(Py_None); resultobj = Py_None;
8826 return resultobj;
8827 fail:
8828 return NULL;
8829 }
8830
8831
8832 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj;
8834 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8835 bool result;
8836 PyObject * obj0 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
8842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8844 {
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 result = (bool)(arg1)->IsRedirected();
8847
8848 wxPyEndAllowThreads(__tstate);
8849 if (PyErr_Occurred()) SWIG_fail;
8850 }
8851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8852 return resultobj;
8853 fail:
8854 return NULL;
8855 }
8856
8857
8858 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
8859 PyObject *resultobj;
8860 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8861 PyObject * obj0 = 0 ;
8862 char *kwnames[] = {
8863 (char *) "self", NULL
8864 };
8865
8866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
8867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8869 {
8870 PyThreadState* __tstate = wxPyBeginAllowThreads();
8871 (arg1)->Detach();
8872
8873 wxPyEndAllowThreads(__tstate);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 }
8876 Py_INCREF(Py_None); resultobj = Py_None;
8877 return resultobj;
8878 fail:
8879 return NULL;
8880 }
8881
8882
8883 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8884 PyObject *resultobj;
8885 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8886 wxInputStream *result;
8887 PyObject * obj0 = 0 ;
8888 char *kwnames[] = {
8889 (char *) "self", NULL
8890 };
8891
8892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
8893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8895 {
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 result = (wxInputStream *)(arg1)->GetInputStream();
8898
8899 wxPyEndAllowThreads(__tstate);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 }
8902 {
8903 wxPyInputStream * _ptr = NULL;
8904
8905 if (result) {
8906 _ptr = new wxPyInputStream(result);
8907 }
8908 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
8909 }
8910 return resultobj;
8911 fail:
8912 return NULL;
8913 }
8914
8915
8916 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8917 PyObject *resultobj;
8918 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8919 wxInputStream *result;
8920 PyObject * obj0 = 0 ;
8921 char *kwnames[] = {
8922 (char *) "self", NULL
8923 };
8924
8925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
8926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8928 {
8929 PyThreadState* __tstate = wxPyBeginAllowThreads();
8930 result = (wxInputStream *)(arg1)->GetErrorStream();
8931
8932 wxPyEndAllowThreads(__tstate);
8933 if (PyErr_Occurred()) SWIG_fail;
8934 }
8935 {
8936 wxPyInputStream * _ptr = NULL;
8937
8938 if (result) {
8939 _ptr = new wxPyInputStream(result);
8940 }
8941 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
8942 }
8943 return resultobj;
8944 fail:
8945 return NULL;
8946 }
8947
8948
8949 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8950 PyObject *resultobj;
8951 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8952 wxOutputStream *result;
8953 PyObject * obj0 = 0 ;
8954 char *kwnames[] = {
8955 (char *) "self", NULL
8956 };
8957
8958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
8959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8961 {
8962 PyThreadState* __tstate = wxPyBeginAllowThreads();
8963 result = (wxOutputStream *)(arg1)->GetOutputStream();
8964
8965 wxPyEndAllowThreads(__tstate);
8966 if (PyErr_Occurred()) SWIG_fail;
8967 }
8968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
8969 return resultobj;
8970 fail:
8971 return NULL;
8972 }
8973
8974
8975 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
8976 PyObject *resultobj;
8977 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
8978 PyObject * obj0 = 0 ;
8979 char *kwnames[] = {
8980 (char *) "self", NULL
8981 };
8982
8983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
8984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
8985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8986 {
8987 PyThreadState* __tstate = wxPyBeginAllowThreads();
8988 (arg1)->CloseOutput();
8989
8990 wxPyEndAllowThreads(__tstate);
8991 if (PyErr_Occurred()) SWIG_fail;
8992 }
8993 Py_INCREF(Py_None); resultobj = Py_None;
8994 return resultobj;
8995 fail:
8996 return NULL;
8997 }
8998
8999
9000 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9001 PyObject *resultobj;
9002 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9003 bool result;
9004 PyObject * obj0 = 0 ;
9005 char *kwnames[] = {
9006 (char *) "self", NULL
9007 };
9008
9009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9012 {
9013 PyThreadState* __tstate = wxPyBeginAllowThreads();
9014 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9015
9016 wxPyEndAllowThreads(__tstate);
9017 if (PyErr_Occurred()) SWIG_fail;
9018 }
9019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9020 return resultobj;
9021 fail:
9022 return NULL;
9023 }
9024
9025
9026 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9027 PyObject *resultobj;
9028 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9029 bool result;
9030 PyObject * obj0 = 0 ;
9031 char *kwnames[] = {
9032 (char *) "self", NULL
9033 };
9034
9035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9038 {
9039 PyThreadState* __tstate = wxPyBeginAllowThreads();
9040 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9041
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9046 return resultobj;
9047 fail:
9048 return NULL;
9049 }
9050
9051
9052 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9053 PyObject *resultobj;
9054 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9055 bool result;
9056 PyObject * obj0 = 0 ;
9057 char *kwnames[] = {
9058 (char *) "self", NULL
9059 };
9060
9061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9064 {
9065 PyThreadState* __tstate = wxPyBeginAllowThreads();
9066 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9067
9068 wxPyEndAllowThreads(__tstate);
9069 if (PyErr_Occurred()) SWIG_fail;
9070 }
9071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9072 return resultobj;
9073 fail:
9074 return NULL;
9075 }
9076
9077
9078 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9079 PyObject *obj;
9080 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9081 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9082 Py_INCREF(obj);
9083 return Py_BuildValue((char *)"");
9084 }
9085 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj;
9087 int arg1 = (int) 0 ;
9088 int arg2 = (int) 0 ;
9089 int arg3 = (int) 0 ;
9090 wxProcessEvent *result;
9091 PyObject * obj0 = 0 ;
9092 PyObject * obj1 = 0 ;
9093 PyObject * obj2 = 0 ;
9094 char *kwnames[] = {
9095 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9096 };
9097
9098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9099 if (obj0) {
9100 arg1 = (int) SWIG_AsInt(obj0);
9101 if (PyErr_Occurred()) SWIG_fail;
9102 }
9103 if (obj1) {
9104 arg2 = (int) SWIG_AsInt(obj1);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 if (obj2) {
9108 arg3 = (int) SWIG_AsInt(obj2);
9109 if (PyErr_Occurred()) SWIG_fail;
9110 }
9111 {
9112 PyThreadState* __tstate = wxPyBeginAllowThreads();
9113 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9114
9115 wxPyEndAllowThreads(__tstate);
9116 if (PyErr_Occurred()) SWIG_fail;
9117 }
9118 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9119 return resultobj;
9120 fail:
9121 return NULL;
9122 }
9123
9124
9125 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9126 PyObject *resultobj;
9127 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9128 int result;
9129 PyObject * obj0 = 0 ;
9130 char *kwnames[] = {
9131 (char *) "self", NULL
9132 };
9133
9134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9137 {
9138 PyThreadState* __tstate = wxPyBeginAllowThreads();
9139 result = (int)(arg1)->GetPid();
9140
9141 wxPyEndAllowThreads(__tstate);
9142 if (PyErr_Occurred()) SWIG_fail;
9143 }
9144 resultobj = SWIG_FromInt((int)result);
9145 return resultobj;
9146 fail:
9147 return NULL;
9148 }
9149
9150
9151 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9152 PyObject *resultobj;
9153 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9154 int result;
9155 PyObject * obj0 = 0 ;
9156 char *kwnames[] = {
9157 (char *) "self", NULL
9158 };
9159
9160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9163 {
9164 PyThreadState* __tstate = wxPyBeginAllowThreads();
9165 result = (int)(arg1)->GetExitCode();
9166
9167 wxPyEndAllowThreads(__tstate);
9168 if (PyErr_Occurred()) SWIG_fail;
9169 }
9170 resultobj = SWIG_FromInt((int)result);
9171 return resultobj;
9172 fail:
9173 return NULL;
9174 }
9175
9176
9177 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9178 PyObject *resultobj;
9179 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9180 int arg2 ;
9181 PyObject * obj0 = 0 ;
9182 PyObject * obj1 = 0 ;
9183 char *kwnames[] = {
9184 (char *) "self",(char *) "m_pid", NULL
9185 };
9186
9187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9190 arg2 = (int) SWIG_AsInt(obj1);
9191 if (PyErr_Occurred()) SWIG_fail;
9192 if (arg1) (arg1)->m_pid = arg2;
9193
9194 Py_INCREF(Py_None); resultobj = Py_None;
9195 return resultobj;
9196 fail:
9197 return NULL;
9198 }
9199
9200
9201 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9202 PyObject *resultobj;
9203 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9204 int result;
9205 PyObject * obj0 = 0 ;
9206 char *kwnames[] = {
9207 (char *) "self", NULL
9208 };
9209
9210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9213 result = (int) ((arg1)->m_pid);
9214
9215 resultobj = SWIG_FromInt((int)result);
9216 return resultobj;
9217 fail:
9218 return NULL;
9219 }
9220
9221
9222 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9223 PyObject *resultobj;
9224 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9225 int arg2 ;
9226 PyObject * obj0 = 0 ;
9227 PyObject * obj1 = 0 ;
9228 char *kwnames[] = {
9229 (char *) "self",(char *) "m_exitcode", NULL
9230 };
9231
9232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9235 arg2 = (int) SWIG_AsInt(obj1);
9236 if (PyErr_Occurred()) SWIG_fail;
9237 if (arg1) (arg1)->m_exitcode = arg2;
9238
9239 Py_INCREF(Py_None); resultobj = Py_None;
9240 return resultobj;
9241 fail:
9242 return NULL;
9243 }
9244
9245
9246 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9247 PyObject *resultobj;
9248 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9249 int result;
9250 PyObject * obj0 = 0 ;
9251 char *kwnames[] = {
9252 (char *) "self", NULL
9253 };
9254
9255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9258 result = (int) ((arg1)->m_exitcode);
9259
9260 resultobj = SWIG_FromInt((int)result);
9261 return resultobj;
9262 fail:
9263 return NULL;
9264 }
9265
9266
9267 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9268 PyObject *obj;
9269 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9270 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9271 Py_INCREF(obj);
9272 return Py_BuildValue((char *)"");
9273 }
9274 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9275 PyObject *resultobj;
9276 wxString *arg1 = 0 ;
9277 int arg2 = (int) wxEXEC_ASYNC ;
9278 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9279 long result;
9280 bool temp1 = False ;
9281 PyObject * obj0 = 0 ;
9282 PyObject * obj1 = 0 ;
9283 PyObject * obj2 = 0 ;
9284 char *kwnames[] = {
9285 (char *) "command",(char *) "flags",(char *) "process", NULL
9286 };
9287
9288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9289 {
9290 arg1 = wxString_in_helper(obj0);
9291 if (arg1 == NULL) SWIG_fail;
9292 temp1 = True;
9293 }
9294 if (obj1) {
9295 arg2 = (int) SWIG_AsInt(obj1);
9296 if (PyErr_Occurred()) SWIG_fail;
9297 }
9298 if (obj2) {
9299 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9301 }
9302 {
9303 PyThreadState* __tstate = wxPyBeginAllowThreads();
9304 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9305
9306 wxPyEndAllowThreads(__tstate);
9307 if (PyErr_Occurred()) SWIG_fail;
9308 }
9309 resultobj = SWIG_FromLong((long)result);
9310 {
9311 if (temp1)
9312 delete arg1;
9313 }
9314 return resultobj;
9315 fail:
9316 {
9317 if (temp1)
9318 delete arg1;
9319 }
9320 return NULL;
9321 }
9322
9323
9324 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9325 PyObject *resultobj;
9326 int arg1 = (int) wxJOYSTICK1 ;
9327 wxJoystick *result;
9328 PyObject * obj0 = 0 ;
9329 char *kwnames[] = {
9330 (char *) "joystick", NULL
9331 };
9332
9333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9334 if (obj0) {
9335 arg1 = (int) SWIG_AsInt(obj0);
9336 if (PyErr_Occurred()) SWIG_fail;
9337 }
9338 {
9339 PyThreadState* __tstate = wxPyBeginAllowThreads();
9340 result = (wxJoystick *)new wxJoystick(arg1);
9341
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9346 return resultobj;
9347 fail:
9348 return NULL;
9349 }
9350
9351
9352 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj;
9354 wxJoystick *arg1 = (wxJoystick *) 0 ;
9355 PyObject * obj0 = 0 ;
9356 char *kwnames[] = {
9357 (char *) "self", NULL
9358 };
9359
9360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9363 {
9364 PyThreadState* __tstate = wxPyBeginAllowThreads();
9365 delete arg1;
9366
9367 wxPyEndAllowThreads(__tstate);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 }
9370 Py_INCREF(Py_None); resultobj = Py_None;
9371 return resultobj;
9372 fail:
9373 return NULL;
9374 }
9375
9376
9377 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj;
9379 wxJoystick *arg1 = (wxJoystick *) 0 ;
9380 wxPoint result;
9381 PyObject * obj0 = 0 ;
9382 char *kwnames[] = {
9383 (char *) "self", NULL
9384 };
9385
9386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9389 {
9390 PyThreadState* __tstate = wxPyBeginAllowThreads();
9391 result = (arg1)->GetPosition();
9392
9393 wxPyEndAllowThreads(__tstate);
9394 if (PyErr_Occurred()) SWIG_fail;
9395 }
9396 {
9397 wxPoint * resultptr;
9398 resultptr = new wxPoint((wxPoint &) result);
9399 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9400 }
9401 return resultobj;
9402 fail:
9403 return NULL;
9404 }
9405
9406
9407 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9408 PyObject *resultobj;
9409 wxJoystick *arg1 = (wxJoystick *) 0 ;
9410 int result;
9411 PyObject * obj0 = 0 ;
9412 char *kwnames[] = {
9413 (char *) "self", NULL
9414 };
9415
9416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9419 {
9420 PyThreadState* __tstate = wxPyBeginAllowThreads();
9421 result = (int)(arg1)->GetZPosition();
9422
9423 wxPyEndAllowThreads(__tstate);
9424 if (PyErr_Occurred()) SWIG_fail;
9425 }
9426 resultobj = SWIG_FromInt((int)result);
9427 return resultobj;
9428 fail:
9429 return NULL;
9430 }
9431
9432
9433 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9434 PyObject *resultobj;
9435 wxJoystick *arg1 = (wxJoystick *) 0 ;
9436 int result;
9437 PyObject * obj0 = 0 ;
9438 char *kwnames[] = {
9439 (char *) "self", NULL
9440 };
9441
9442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9445 {
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 result = (int)(arg1)->GetButtonState();
9448
9449 wxPyEndAllowThreads(__tstate);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 resultobj = SWIG_FromInt((int)result);
9453 return resultobj;
9454 fail:
9455 return NULL;
9456 }
9457
9458
9459 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9460 PyObject *resultobj;
9461 wxJoystick *arg1 = (wxJoystick *) 0 ;
9462 int result;
9463 PyObject * obj0 = 0 ;
9464 char *kwnames[] = {
9465 (char *) "self", NULL
9466 };
9467
9468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 result = (int)(arg1)->GetPOVPosition();
9474
9475 wxPyEndAllowThreads(__tstate);
9476 if (PyErr_Occurred()) SWIG_fail;
9477 }
9478 resultobj = SWIG_FromInt((int)result);
9479 return resultobj;
9480 fail:
9481 return NULL;
9482 }
9483
9484
9485 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9486 PyObject *resultobj;
9487 wxJoystick *arg1 = (wxJoystick *) 0 ;
9488 int result;
9489 PyObject * obj0 = 0 ;
9490 char *kwnames[] = {
9491 (char *) "self", NULL
9492 };
9493
9494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9497 {
9498 PyThreadState* __tstate = wxPyBeginAllowThreads();
9499 result = (int)(arg1)->GetPOVCTSPosition();
9500
9501 wxPyEndAllowThreads(__tstate);
9502 if (PyErr_Occurred()) SWIG_fail;
9503 }
9504 resultobj = SWIG_FromInt((int)result);
9505 return resultobj;
9506 fail:
9507 return NULL;
9508 }
9509
9510
9511 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9512 PyObject *resultobj;
9513 wxJoystick *arg1 = (wxJoystick *) 0 ;
9514 int result;
9515 PyObject * obj0 = 0 ;
9516 char *kwnames[] = {
9517 (char *) "self", NULL
9518 };
9519
9520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9523 {
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 result = (int)(arg1)->GetRudderPosition();
9526
9527 wxPyEndAllowThreads(__tstate);
9528 if (PyErr_Occurred()) SWIG_fail;
9529 }
9530 resultobj = SWIG_FromInt((int)result);
9531 return resultobj;
9532 fail:
9533 return NULL;
9534 }
9535
9536
9537 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9538 PyObject *resultobj;
9539 wxJoystick *arg1 = (wxJoystick *) 0 ;
9540 int result;
9541 PyObject * obj0 = 0 ;
9542 char *kwnames[] = {
9543 (char *) "self", NULL
9544 };
9545
9546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9549 {
9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
9551 result = (int)(arg1)->GetUPosition();
9552
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 resultobj = SWIG_FromInt((int)result);
9557 return resultobj;
9558 fail:
9559 return NULL;
9560 }
9561
9562
9563 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9564 PyObject *resultobj;
9565 wxJoystick *arg1 = (wxJoystick *) 0 ;
9566 int result;
9567 PyObject * obj0 = 0 ;
9568 char *kwnames[] = {
9569 (char *) "self", NULL
9570 };
9571
9572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 result = (int)(arg1)->GetVPosition();
9578
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 resultobj = SWIG_FromInt((int)result);
9583 return resultobj;
9584 fail:
9585 return NULL;
9586 }
9587
9588
9589 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9590 PyObject *resultobj;
9591 wxJoystick *arg1 = (wxJoystick *) 0 ;
9592 int result;
9593 PyObject * obj0 = 0 ;
9594 char *kwnames[] = {
9595 (char *) "self", NULL
9596 };
9597
9598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9601 {
9602 PyThreadState* __tstate = wxPyBeginAllowThreads();
9603 result = (int)(arg1)->GetMovementThreshold();
9604
9605 wxPyEndAllowThreads(__tstate);
9606 if (PyErr_Occurred()) SWIG_fail;
9607 }
9608 resultobj = SWIG_FromInt((int)result);
9609 return resultobj;
9610 fail:
9611 return NULL;
9612 }
9613
9614
9615 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9616 PyObject *resultobj;
9617 wxJoystick *arg1 = (wxJoystick *) 0 ;
9618 int arg2 ;
9619 PyObject * obj0 = 0 ;
9620 PyObject * obj1 = 0 ;
9621 char *kwnames[] = {
9622 (char *) "self",(char *) "threshold", NULL
9623 };
9624
9625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9628 arg2 = (int) SWIG_AsInt(obj1);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 {
9631 PyThreadState* __tstate = wxPyBeginAllowThreads();
9632 (arg1)->SetMovementThreshold(arg2);
9633
9634 wxPyEndAllowThreads(__tstate);
9635 if (PyErr_Occurred()) SWIG_fail;
9636 }
9637 Py_INCREF(Py_None); resultobj = Py_None;
9638 return resultobj;
9639 fail:
9640 return NULL;
9641 }
9642
9643
9644 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9645 PyObject *resultobj;
9646 wxJoystick *arg1 = (wxJoystick *) 0 ;
9647 bool result;
9648 PyObject * obj0 = 0 ;
9649 char *kwnames[] = {
9650 (char *) "self", NULL
9651 };
9652
9653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9656 {
9657 PyThreadState* __tstate = wxPyBeginAllowThreads();
9658 result = (bool)(arg1)->IsOk();
9659
9660 wxPyEndAllowThreads(__tstate);
9661 if (PyErr_Occurred()) SWIG_fail;
9662 }
9663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9664 return resultobj;
9665 fail:
9666 return NULL;
9667 }
9668
9669
9670 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9671 PyObject *resultobj;
9672 wxJoystick *arg1 = (wxJoystick *) 0 ;
9673 int result;
9674 PyObject * obj0 = 0 ;
9675 char *kwnames[] = {
9676 (char *) "self", NULL
9677 };
9678
9679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9682 {
9683 PyThreadState* __tstate = wxPyBeginAllowThreads();
9684 result = (int)(arg1)->GetNumberJoysticks();
9685
9686 wxPyEndAllowThreads(__tstate);
9687 if (PyErr_Occurred()) SWIG_fail;
9688 }
9689 resultobj = SWIG_FromInt((int)result);
9690 return resultobj;
9691 fail:
9692 return NULL;
9693 }
9694
9695
9696 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
9697 PyObject *resultobj;
9698 wxJoystick *arg1 = (wxJoystick *) 0 ;
9699 int result;
9700 PyObject * obj0 = 0 ;
9701 char *kwnames[] = {
9702 (char *) "self", NULL
9703 };
9704
9705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9708 {
9709 PyThreadState* __tstate = wxPyBeginAllowThreads();
9710 result = (int)(arg1)->GetManufacturerId();
9711
9712 wxPyEndAllowThreads(__tstate);
9713 if (PyErr_Occurred()) SWIG_fail;
9714 }
9715 resultobj = SWIG_FromInt((int)result);
9716 return resultobj;
9717 fail:
9718 return NULL;
9719 }
9720
9721
9722 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
9723 PyObject *resultobj;
9724 wxJoystick *arg1 = (wxJoystick *) 0 ;
9725 int result;
9726 PyObject * obj0 = 0 ;
9727 char *kwnames[] = {
9728 (char *) "self", NULL
9729 };
9730
9731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
9732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (int)(arg1)->GetProductId();
9737
9738 wxPyEndAllowThreads(__tstate);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 }
9741 resultobj = SWIG_FromInt((int)result);
9742 return resultobj;
9743 fail:
9744 return NULL;
9745 }
9746
9747
9748 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
9749 PyObject *resultobj;
9750 wxJoystick *arg1 = (wxJoystick *) 0 ;
9751 wxString result;
9752 PyObject * obj0 = 0 ;
9753 char *kwnames[] = {
9754 (char *) "self", NULL
9755 };
9756
9757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
9758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9760 {
9761 PyThreadState* __tstate = wxPyBeginAllowThreads();
9762 result = (arg1)->GetProductName();
9763
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
9767 {
9768 #if wxUSE_UNICODE
9769 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9770 #else
9771 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9772 #endif
9773 }
9774 return resultobj;
9775 fail:
9776 return NULL;
9777 }
9778
9779
9780 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9781 PyObject *resultobj;
9782 wxJoystick *arg1 = (wxJoystick *) 0 ;
9783 int result;
9784 PyObject * obj0 = 0 ;
9785 char *kwnames[] = {
9786 (char *) "self", NULL
9787 };
9788
9789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
9790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9792 {
9793 PyThreadState* __tstate = wxPyBeginAllowThreads();
9794 result = (int)(arg1)->GetXMin();
9795
9796 wxPyEndAllowThreads(__tstate);
9797 if (PyErr_Occurred()) SWIG_fail;
9798 }
9799 resultobj = SWIG_FromInt((int)result);
9800 return resultobj;
9801 fail:
9802 return NULL;
9803 }
9804
9805
9806 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9807 PyObject *resultobj;
9808 wxJoystick *arg1 = (wxJoystick *) 0 ;
9809 int result;
9810 PyObject * obj0 = 0 ;
9811 char *kwnames[] = {
9812 (char *) "self", NULL
9813 };
9814
9815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
9816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9818 {
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 result = (int)(arg1)->GetYMin();
9821
9822 wxPyEndAllowThreads(__tstate);
9823 if (PyErr_Occurred()) SWIG_fail;
9824 }
9825 resultobj = SWIG_FromInt((int)result);
9826 return resultobj;
9827 fail:
9828 return NULL;
9829 }
9830
9831
9832 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
9833 PyObject *resultobj;
9834 wxJoystick *arg1 = (wxJoystick *) 0 ;
9835 int result;
9836 PyObject * obj0 = 0 ;
9837 char *kwnames[] = {
9838 (char *) "self", NULL
9839 };
9840
9841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
9842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9844 {
9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
9846 result = (int)(arg1)->GetZMin();
9847
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 resultobj = SWIG_FromInt((int)result);
9852 return resultobj;
9853 fail:
9854 return NULL;
9855 }
9856
9857
9858 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9859 PyObject *resultobj;
9860 wxJoystick *arg1 = (wxJoystick *) 0 ;
9861 int result;
9862 PyObject * obj0 = 0 ;
9863 char *kwnames[] = {
9864 (char *) "self", NULL
9865 };
9866
9867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
9868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9870 {
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 result = (int)(arg1)->GetXMax();
9873
9874 wxPyEndAllowThreads(__tstate);
9875 if (PyErr_Occurred()) SWIG_fail;
9876 }
9877 resultobj = SWIG_FromInt((int)result);
9878 return resultobj;
9879 fail:
9880 return NULL;
9881 }
9882
9883
9884 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9885 PyObject *resultobj;
9886 wxJoystick *arg1 = (wxJoystick *) 0 ;
9887 int result;
9888 PyObject * obj0 = 0 ;
9889 char *kwnames[] = {
9890 (char *) "self", NULL
9891 };
9892
9893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
9894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9896 {
9897 PyThreadState* __tstate = wxPyBeginAllowThreads();
9898 result = (int)(arg1)->GetYMax();
9899
9900 wxPyEndAllowThreads(__tstate);
9901 if (PyErr_Occurred()) SWIG_fail;
9902 }
9903 resultobj = SWIG_FromInt((int)result);
9904 return resultobj;
9905 fail:
9906 return NULL;
9907 }
9908
9909
9910 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
9911 PyObject *resultobj;
9912 wxJoystick *arg1 = (wxJoystick *) 0 ;
9913 int result;
9914 PyObject * obj0 = 0 ;
9915 char *kwnames[] = {
9916 (char *) "self", NULL
9917 };
9918
9919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
9920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9922 {
9923 PyThreadState* __tstate = wxPyBeginAllowThreads();
9924 result = (int)(arg1)->GetZMax();
9925
9926 wxPyEndAllowThreads(__tstate);
9927 if (PyErr_Occurred()) SWIG_fail;
9928 }
9929 resultobj = SWIG_FromInt((int)result);
9930 return resultobj;
9931 fail:
9932 return NULL;
9933 }
9934
9935
9936 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
9937 PyObject *resultobj;
9938 wxJoystick *arg1 = (wxJoystick *) 0 ;
9939 int result;
9940 PyObject * obj0 = 0 ;
9941 char *kwnames[] = {
9942 (char *) "self", NULL
9943 };
9944
9945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
9946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9948 {
9949 PyThreadState* __tstate = wxPyBeginAllowThreads();
9950 result = (int)(arg1)->GetNumberButtons();
9951
9952 wxPyEndAllowThreads(__tstate);
9953 if (PyErr_Occurred()) SWIG_fail;
9954 }
9955 resultobj = SWIG_FromInt((int)result);
9956 return resultobj;
9957 fail:
9958 return NULL;
9959 }
9960
9961
9962 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
9963 PyObject *resultobj;
9964 wxJoystick *arg1 = (wxJoystick *) 0 ;
9965 int result;
9966 PyObject * obj0 = 0 ;
9967 char *kwnames[] = {
9968 (char *) "self", NULL
9969 };
9970
9971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
9972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9974 {
9975 PyThreadState* __tstate = wxPyBeginAllowThreads();
9976 result = (int)(arg1)->GetNumberAxes();
9977
9978 wxPyEndAllowThreads(__tstate);
9979 if (PyErr_Occurred()) SWIG_fail;
9980 }
9981 resultobj = SWIG_FromInt((int)result);
9982 return resultobj;
9983 fail:
9984 return NULL;
9985 }
9986
9987
9988 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
9989 PyObject *resultobj;
9990 wxJoystick *arg1 = (wxJoystick *) 0 ;
9991 int result;
9992 PyObject * obj0 = 0 ;
9993 char *kwnames[] = {
9994 (char *) "self", NULL
9995 };
9996
9997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
9998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10000 {
10001 PyThreadState* __tstate = wxPyBeginAllowThreads();
10002 result = (int)(arg1)->GetMaxButtons();
10003
10004 wxPyEndAllowThreads(__tstate);
10005 if (PyErr_Occurred()) SWIG_fail;
10006 }
10007 resultobj = SWIG_FromInt((int)result);
10008 return resultobj;
10009 fail:
10010 return NULL;
10011 }
10012
10013
10014 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10015 PyObject *resultobj;
10016 wxJoystick *arg1 = (wxJoystick *) 0 ;
10017 int result;
10018 PyObject * obj0 = 0 ;
10019 char *kwnames[] = {
10020 (char *) "self", NULL
10021 };
10022
10023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10026 {
10027 PyThreadState* __tstate = wxPyBeginAllowThreads();
10028 result = (int)(arg1)->GetMaxAxes();
10029
10030 wxPyEndAllowThreads(__tstate);
10031 if (PyErr_Occurred()) SWIG_fail;
10032 }
10033 resultobj = SWIG_FromInt((int)result);
10034 return resultobj;
10035 fail:
10036 return NULL;
10037 }
10038
10039
10040 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10041 PyObject *resultobj;
10042 wxJoystick *arg1 = (wxJoystick *) 0 ;
10043 int result;
10044 PyObject * obj0 = 0 ;
10045 char *kwnames[] = {
10046 (char *) "self", NULL
10047 };
10048
10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10052 {
10053 PyThreadState* __tstate = wxPyBeginAllowThreads();
10054 result = (int)(arg1)->GetPollingMin();
10055
10056 wxPyEndAllowThreads(__tstate);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 resultobj = SWIG_FromInt((int)result);
10060 return resultobj;
10061 fail:
10062 return NULL;
10063 }
10064
10065
10066 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10067 PyObject *resultobj;
10068 wxJoystick *arg1 = (wxJoystick *) 0 ;
10069 int result;
10070 PyObject * obj0 = 0 ;
10071 char *kwnames[] = {
10072 (char *) "self", NULL
10073 };
10074
10075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10078 {
10079 PyThreadState* __tstate = wxPyBeginAllowThreads();
10080 result = (int)(arg1)->GetPollingMax();
10081
10082 wxPyEndAllowThreads(__tstate);
10083 if (PyErr_Occurred()) SWIG_fail;
10084 }
10085 resultobj = SWIG_FromInt((int)result);
10086 return resultobj;
10087 fail:
10088 return NULL;
10089 }
10090
10091
10092 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10093 PyObject *resultobj;
10094 wxJoystick *arg1 = (wxJoystick *) 0 ;
10095 int result;
10096 PyObject * obj0 = 0 ;
10097 char *kwnames[] = {
10098 (char *) "self", NULL
10099 };
10100
10101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10104 {
10105 PyThreadState* __tstate = wxPyBeginAllowThreads();
10106 result = (int)(arg1)->GetRudderMin();
10107
10108 wxPyEndAllowThreads(__tstate);
10109 if (PyErr_Occurred()) SWIG_fail;
10110 }
10111 resultobj = SWIG_FromInt((int)result);
10112 return resultobj;
10113 fail:
10114 return NULL;
10115 }
10116
10117
10118 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10119 PyObject *resultobj;
10120 wxJoystick *arg1 = (wxJoystick *) 0 ;
10121 int result;
10122 PyObject * obj0 = 0 ;
10123 char *kwnames[] = {
10124 (char *) "self", NULL
10125 };
10126
10127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10130 {
10131 PyThreadState* __tstate = wxPyBeginAllowThreads();
10132 result = (int)(arg1)->GetRudderMax();
10133
10134 wxPyEndAllowThreads(__tstate);
10135 if (PyErr_Occurred()) SWIG_fail;
10136 }
10137 resultobj = SWIG_FromInt((int)result);
10138 return resultobj;
10139 fail:
10140 return NULL;
10141 }
10142
10143
10144 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10145 PyObject *resultobj;
10146 wxJoystick *arg1 = (wxJoystick *) 0 ;
10147 int result;
10148 PyObject * obj0 = 0 ;
10149 char *kwnames[] = {
10150 (char *) "self", NULL
10151 };
10152
10153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10156 {
10157 PyThreadState* __tstate = wxPyBeginAllowThreads();
10158 result = (int)(arg1)->GetUMin();
10159
10160 wxPyEndAllowThreads(__tstate);
10161 if (PyErr_Occurred()) SWIG_fail;
10162 }
10163 resultobj = SWIG_FromInt((int)result);
10164 return resultobj;
10165 fail:
10166 return NULL;
10167 }
10168
10169
10170 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10171 PyObject *resultobj;
10172 wxJoystick *arg1 = (wxJoystick *) 0 ;
10173 int result;
10174 PyObject * obj0 = 0 ;
10175 char *kwnames[] = {
10176 (char *) "self", NULL
10177 };
10178
10179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10182 {
10183 PyThreadState* __tstate = wxPyBeginAllowThreads();
10184 result = (int)(arg1)->GetUMax();
10185
10186 wxPyEndAllowThreads(__tstate);
10187 if (PyErr_Occurred()) SWIG_fail;
10188 }
10189 resultobj = SWIG_FromInt((int)result);
10190 return resultobj;
10191 fail:
10192 return NULL;
10193 }
10194
10195
10196 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10197 PyObject *resultobj;
10198 wxJoystick *arg1 = (wxJoystick *) 0 ;
10199 int result;
10200 PyObject * obj0 = 0 ;
10201 char *kwnames[] = {
10202 (char *) "self", NULL
10203 };
10204
10205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10208 {
10209 PyThreadState* __tstate = wxPyBeginAllowThreads();
10210 result = (int)(arg1)->GetVMin();
10211
10212 wxPyEndAllowThreads(__tstate);
10213 if (PyErr_Occurred()) SWIG_fail;
10214 }
10215 resultobj = SWIG_FromInt((int)result);
10216 return resultobj;
10217 fail:
10218 return NULL;
10219 }
10220
10221
10222 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10223 PyObject *resultobj;
10224 wxJoystick *arg1 = (wxJoystick *) 0 ;
10225 int result;
10226 PyObject * obj0 = 0 ;
10227 char *kwnames[] = {
10228 (char *) "self", NULL
10229 };
10230
10231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10234 {
10235 PyThreadState* __tstate = wxPyBeginAllowThreads();
10236 result = (int)(arg1)->GetVMax();
10237
10238 wxPyEndAllowThreads(__tstate);
10239 if (PyErr_Occurred()) SWIG_fail;
10240 }
10241 resultobj = SWIG_FromInt((int)result);
10242 return resultobj;
10243 fail:
10244 return NULL;
10245 }
10246
10247
10248 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10249 PyObject *resultobj;
10250 wxJoystick *arg1 = (wxJoystick *) 0 ;
10251 bool result;
10252 PyObject * obj0 = 0 ;
10253 char *kwnames[] = {
10254 (char *) "self", NULL
10255 };
10256
10257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10260 {
10261 PyThreadState* __tstate = wxPyBeginAllowThreads();
10262 result = (bool)(arg1)->HasRudder();
10263
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10268 return resultobj;
10269 fail:
10270 return NULL;
10271 }
10272
10273
10274 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10275 PyObject *resultobj;
10276 wxJoystick *arg1 = (wxJoystick *) 0 ;
10277 bool result;
10278 PyObject * obj0 = 0 ;
10279 char *kwnames[] = {
10280 (char *) "self", NULL
10281 };
10282
10283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10286 {
10287 PyThreadState* __tstate = wxPyBeginAllowThreads();
10288 result = (bool)(arg1)->HasZ();
10289
10290 wxPyEndAllowThreads(__tstate);
10291 if (PyErr_Occurred()) SWIG_fail;
10292 }
10293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10294 return resultobj;
10295 fail:
10296 return NULL;
10297 }
10298
10299
10300 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10301 PyObject *resultobj;
10302 wxJoystick *arg1 = (wxJoystick *) 0 ;
10303 bool result;
10304 PyObject * obj0 = 0 ;
10305 char *kwnames[] = {
10306 (char *) "self", NULL
10307 };
10308
10309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10312 {
10313 PyThreadState* __tstate = wxPyBeginAllowThreads();
10314 result = (bool)(arg1)->HasU();
10315
10316 wxPyEndAllowThreads(__tstate);
10317 if (PyErr_Occurred()) SWIG_fail;
10318 }
10319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10320 return resultobj;
10321 fail:
10322 return NULL;
10323 }
10324
10325
10326 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10327 PyObject *resultobj;
10328 wxJoystick *arg1 = (wxJoystick *) 0 ;
10329 bool result;
10330 PyObject * obj0 = 0 ;
10331 char *kwnames[] = {
10332 (char *) "self", NULL
10333 };
10334
10335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10338 {
10339 PyThreadState* __tstate = wxPyBeginAllowThreads();
10340 result = (bool)(arg1)->HasV();
10341
10342 wxPyEndAllowThreads(__tstate);
10343 if (PyErr_Occurred()) SWIG_fail;
10344 }
10345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10346 return resultobj;
10347 fail:
10348 return NULL;
10349 }
10350
10351
10352 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10353 PyObject *resultobj;
10354 wxJoystick *arg1 = (wxJoystick *) 0 ;
10355 bool result;
10356 PyObject * obj0 = 0 ;
10357 char *kwnames[] = {
10358 (char *) "self", NULL
10359 };
10360
10361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10364 {
10365 PyThreadState* __tstate = wxPyBeginAllowThreads();
10366 result = (bool)(arg1)->HasPOV();
10367
10368 wxPyEndAllowThreads(__tstate);
10369 if (PyErr_Occurred()) SWIG_fail;
10370 }
10371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10372 return resultobj;
10373 fail:
10374 return NULL;
10375 }
10376
10377
10378 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10379 PyObject *resultobj;
10380 wxJoystick *arg1 = (wxJoystick *) 0 ;
10381 bool result;
10382 PyObject * obj0 = 0 ;
10383 char *kwnames[] = {
10384 (char *) "self", NULL
10385 };
10386
10387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10390 {
10391 PyThreadState* __tstate = wxPyBeginAllowThreads();
10392 result = (bool)(arg1)->HasPOV4Dir();
10393
10394 wxPyEndAllowThreads(__tstate);
10395 if (PyErr_Occurred()) SWIG_fail;
10396 }
10397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10398 return resultobj;
10399 fail:
10400 return NULL;
10401 }
10402
10403
10404 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10405 PyObject *resultobj;
10406 wxJoystick *arg1 = (wxJoystick *) 0 ;
10407 bool result;
10408 PyObject * obj0 = 0 ;
10409 char *kwnames[] = {
10410 (char *) "self", NULL
10411 };
10412
10413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10416 {
10417 PyThreadState* __tstate = wxPyBeginAllowThreads();
10418 result = (bool)(arg1)->HasPOVCTS();
10419
10420 wxPyEndAllowThreads(__tstate);
10421 if (PyErr_Occurred()) SWIG_fail;
10422 }
10423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10424 return resultobj;
10425 fail:
10426 return NULL;
10427 }
10428
10429
10430 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10431 PyObject *resultobj;
10432 wxJoystick *arg1 = (wxJoystick *) 0 ;
10433 wxWindow *arg2 = (wxWindow *) 0 ;
10434 int arg3 = (int) 0 ;
10435 bool result;
10436 PyObject * obj0 = 0 ;
10437 PyObject * obj1 = 0 ;
10438 PyObject * obj2 = 0 ;
10439 char *kwnames[] = {
10440 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10441 };
10442
10443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10446 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10448 if (obj2) {
10449 arg3 = (int) SWIG_AsInt(obj2);
10450 if (PyErr_Occurred()) SWIG_fail;
10451 }
10452 {
10453 PyThreadState* __tstate = wxPyBeginAllowThreads();
10454 result = (bool)(arg1)->SetCapture(arg2,arg3);
10455
10456 wxPyEndAllowThreads(__tstate);
10457 if (PyErr_Occurred()) SWIG_fail;
10458 }
10459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10460 return resultobj;
10461 fail:
10462 return NULL;
10463 }
10464
10465
10466 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10467 PyObject *resultobj;
10468 wxJoystick *arg1 = (wxJoystick *) 0 ;
10469 bool result;
10470 PyObject * obj0 = 0 ;
10471 char *kwnames[] = {
10472 (char *) "self", NULL
10473 };
10474
10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10478 {
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (bool)(arg1)->ReleaseCapture();
10481
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10493 PyObject *obj;
10494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10495 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10496 Py_INCREF(obj);
10497 return Py_BuildValue((char *)"");
10498 }
10499 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj;
10501 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10502 wxPoint *arg2 = (wxPoint *) 0 ;
10503 PyObject * obj0 = 0 ;
10504 PyObject * obj1 = 0 ;
10505 char *kwnames[] = {
10506 (char *) "self",(char *) "m_pos", NULL
10507 };
10508
10509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10512 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10514 if (arg1) (arg1)->m_pos = *arg2;
10515
10516 Py_INCREF(Py_None); resultobj = Py_None;
10517 return resultobj;
10518 fail:
10519 return NULL;
10520 }
10521
10522
10523 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10524 PyObject *resultobj;
10525 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10526 wxPoint *result;
10527 PyObject * obj0 = 0 ;
10528 char *kwnames[] = {
10529 (char *) "self", NULL
10530 };
10531
10532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10535 result = (wxPoint *)& ((arg1)->m_pos);
10536
10537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10538 return resultobj;
10539 fail:
10540 return NULL;
10541 }
10542
10543
10544 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10545 PyObject *resultobj;
10546 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10547 int arg2 ;
10548 PyObject * obj0 = 0 ;
10549 PyObject * obj1 = 0 ;
10550 char *kwnames[] = {
10551 (char *) "self",(char *) "m_zPosition", NULL
10552 };
10553
10554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10557 arg2 = (int) SWIG_AsInt(obj1);
10558 if (PyErr_Occurred()) SWIG_fail;
10559 if (arg1) (arg1)->m_zPosition = arg2;
10560
10561 Py_INCREF(Py_None); resultobj = Py_None;
10562 return resultobj;
10563 fail:
10564 return NULL;
10565 }
10566
10567
10568 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10569 PyObject *resultobj;
10570 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10571 int result;
10572 PyObject * obj0 = 0 ;
10573 char *kwnames[] = {
10574 (char *) "self", NULL
10575 };
10576
10577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10580 result = (int) ((arg1)->m_zPosition);
10581
10582 resultobj = SWIG_FromInt((int)result);
10583 return resultobj;
10584 fail:
10585 return NULL;
10586 }
10587
10588
10589 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10590 PyObject *resultobj;
10591 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10592 int arg2 ;
10593 PyObject * obj0 = 0 ;
10594 PyObject * obj1 = 0 ;
10595 char *kwnames[] = {
10596 (char *) "self",(char *) "m_buttonChange", NULL
10597 };
10598
10599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10602 arg2 = (int) SWIG_AsInt(obj1);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 if (arg1) (arg1)->m_buttonChange = arg2;
10605
10606 Py_INCREF(Py_None); resultobj = Py_None;
10607 return resultobj;
10608 fail:
10609 return NULL;
10610 }
10611
10612
10613 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10614 PyObject *resultobj;
10615 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10616 int result;
10617 PyObject * obj0 = 0 ;
10618 char *kwnames[] = {
10619 (char *) "self", NULL
10620 };
10621
10622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10625 result = (int) ((arg1)->m_buttonChange);
10626
10627 resultobj = SWIG_FromInt((int)result);
10628 return resultobj;
10629 fail:
10630 return NULL;
10631 }
10632
10633
10634 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj;
10636 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10637 int arg2 ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 char *kwnames[] = {
10641 (char *) "self",(char *) "m_buttonState", NULL
10642 };
10643
10644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10647 arg2 = (int) SWIG_AsInt(obj1);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 if (arg1) (arg1)->m_buttonState = arg2;
10650
10651 Py_INCREF(Py_None); resultobj = Py_None;
10652 return resultobj;
10653 fail:
10654 return NULL;
10655 }
10656
10657
10658 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10659 PyObject *resultobj;
10660 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10661 int result;
10662 PyObject * obj0 = 0 ;
10663 char *kwnames[] = {
10664 (char *) "self", NULL
10665 };
10666
10667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10670 result = (int) ((arg1)->m_buttonState);
10671
10672 resultobj = SWIG_FromInt((int)result);
10673 return resultobj;
10674 fail:
10675 return NULL;
10676 }
10677
10678
10679 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10680 PyObject *resultobj;
10681 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10682 int arg2 ;
10683 PyObject * obj0 = 0 ;
10684 PyObject * obj1 = 0 ;
10685 char *kwnames[] = {
10686 (char *) "self",(char *) "m_joyStick", NULL
10687 };
10688
10689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
10690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10692 arg2 = (int) SWIG_AsInt(obj1);
10693 if (PyErr_Occurred()) SWIG_fail;
10694 if (arg1) (arg1)->m_joyStick = arg2;
10695
10696 Py_INCREF(Py_None); resultobj = Py_None;
10697 return resultobj;
10698 fail:
10699 return NULL;
10700 }
10701
10702
10703 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10704 PyObject *resultobj;
10705 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10706 int result;
10707 PyObject * obj0 = 0 ;
10708 char *kwnames[] = {
10709 (char *) "self", NULL
10710 };
10711
10712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10715 result = (int) ((arg1)->m_joyStick);
10716
10717 resultobj = SWIG_FromInt((int)result);
10718 return resultobj;
10719 fail:
10720 return NULL;
10721 }
10722
10723
10724 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
10725 PyObject *resultobj;
10726 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
10727 int arg2 = (int) 0 ;
10728 int arg3 = (int) wxJOYSTICK1 ;
10729 int arg4 = (int) 0 ;
10730 wxJoystickEvent *result;
10731 PyObject * obj0 = 0 ;
10732 PyObject * obj1 = 0 ;
10733 PyObject * obj2 = 0 ;
10734 PyObject * obj3 = 0 ;
10735 char *kwnames[] = {
10736 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
10737 };
10738
10739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10740 if (obj0) {
10741 arg1 = (wxEventType) SWIG_AsInt(obj0);
10742 if (PyErr_Occurred()) SWIG_fail;
10743 }
10744 if (obj1) {
10745 arg2 = (int) SWIG_AsInt(obj1);
10746 if (PyErr_Occurred()) SWIG_fail;
10747 }
10748 if (obj2) {
10749 arg3 = (int) SWIG_AsInt(obj2);
10750 if (PyErr_Occurred()) SWIG_fail;
10751 }
10752 if (obj3) {
10753 arg4 = (int) SWIG_AsInt(obj3);
10754 if (PyErr_Occurred()) SWIG_fail;
10755 }
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
10759
10760 wxPyEndAllowThreads(__tstate);
10761 if (PyErr_Occurred()) SWIG_fail;
10762 }
10763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
10764 return resultobj;
10765 fail:
10766 return NULL;
10767 }
10768
10769
10770 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10771 PyObject *resultobj;
10772 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10773 wxPoint result;
10774 PyObject * obj0 = 0 ;
10775 char *kwnames[] = {
10776 (char *) "self", NULL
10777 };
10778
10779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
10780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10782 {
10783 PyThreadState* __tstate = wxPyBeginAllowThreads();
10784 result = ((wxJoystickEvent const *)arg1)->GetPosition();
10785
10786 wxPyEndAllowThreads(__tstate);
10787 if (PyErr_Occurred()) SWIG_fail;
10788 }
10789 {
10790 wxPoint * resultptr;
10791 resultptr = new wxPoint((wxPoint &) result);
10792 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10793 }
10794 return resultobj;
10795 fail:
10796 return NULL;
10797 }
10798
10799
10800 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10801 PyObject *resultobj;
10802 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10803 int result;
10804 PyObject * obj0 = 0 ;
10805 char *kwnames[] = {
10806 (char *) "self", NULL
10807 };
10808
10809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
10810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10812 {
10813 PyThreadState* __tstate = wxPyBeginAllowThreads();
10814 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
10815
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 resultobj = SWIG_FromInt((int)result);
10820 return resultobj;
10821 fail:
10822 return NULL;
10823 }
10824
10825
10826 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj;
10828 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10829 int result;
10830 PyObject * obj0 = 0 ;
10831 char *kwnames[] = {
10832 (char *) "self", NULL
10833 };
10834
10835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
10836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10838 {
10839 PyThreadState* __tstate = wxPyBeginAllowThreads();
10840 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
10841
10842 wxPyEndAllowThreads(__tstate);
10843 if (PyErr_Occurred()) SWIG_fail;
10844 }
10845 resultobj = SWIG_FromInt((int)result);
10846 return resultobj;
10847 fail:
10848 return NULL;
10849 }
10850
10851
10852 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10853 PyObject *resultobj;
10854 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10855 int result;
10856 PyObject * obj0 = 0 ;
10857 char *kwnames[] = {
10858 (char *) "self", NULL
10859 };
10860
10861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
10862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10864 {
10865 PyThreadState* __tstate = wxPyBeginAllowThreads();
10866 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
10867
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 resultobj = SWIG_FromInt((int)result);
10872 return resultobj;
10873 fail:
10874 return NULL;
10875 }
10876
10877
10878 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10879 PyObject *resultobj;
10880 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10881 int result;
10882 PyObject * obj0 = 0 ;
10883 char *kwnames[] = {
10884 (char *) "self", NULL
10885 };
10886
10887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
10888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10890 {
10891 PyThreadState* __tstate = wxPyBeginAllowThreads();
10892 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
10893
10894 wxPyEndAllowThreads(__tstate);
10895 if (PyErr_Occurred()) SWIG_fail;
10896 }
10897 resultobj = SWIG_FromInt((int)result);
10898 return resultobj;
10899 fail:
10900 return NULL;
10901 }
10902
10903
10904 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
10905 PyObject *resultobj;
10906 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10907 int arg2 ;
10908 PyObject * obj0 = 0 ;
10909 PyObject * obj1 = 0 ;
10910 char *kwnames[] = {
10911 (char *) "self",(char *) "stick", NULL
10912 };
10913
10914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
10915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10917 arg2 = (int) SWIG_AsInt(obj1);
10918 if (PyErr_Occurred()) SWIG_fail;
10919 {
10920 PyThreadState* __tstate = wxPyBeginAllowThreads();
10921 (arg1)->SetJoystick(arg2);
10922
10923 wxPyEndAllowThreads(__tstate);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 }
10926 Py_INCREF(Py_None); resultobj = Py_None;
10927 return resultobj;
10928 fail:
10929 return NULL;
10930 }
10931
10932
10933 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
10934 PyObject *resultobj;
10935 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10936 int arg2 ;
10937 PyObject * obj0 = 0 ;
10938 PyObject * obj1 = 0 ;
10939 char *kwnames[] = {
10940 (char *) "self",(char *) "state", NULL
10941 };
10942
10943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
10944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10946 arg2 = (int) SWIG_AsInt(obj1);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 (arg1)->SetButtonState(arg2);
10951
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 }
10955 Py_INCREF(Py_None); resultobj = Py_None;
10956 return resultobj;
10957 fail:
10958 return NULL;
10959 }
10960
10961
10962 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
10963 PyObject *resultobj;
10964 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10965 int arg2 ;
10966 PyObject * obj0 = 0 ;
10967 PyObject * obj1 = 0 ;
10968 char *kwnames[] = {
10969 (char *) "self",(char *) "change", NULL
10970 };
10971
10972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
10973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10975 arg2 = (int) SWIG_AsInt(obj1);
10976 if (PyErr_Occurred()) SWIG_fail;
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 (arg1)->SetButtonChange(arg2);
10980
10981 wxPyEndAllowThreads(__tstate);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 }
10984 Py_INCREF(Py_None); resultobj = Py_None;
10985 return resultobj;
10986 fail:
10987 return NULL;
10988 }
10989
10990
10991 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
10992 PyObject *resultobj;
10993 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10994 wxPoint *arg2 = 0 ;
10995 wxPoint temp2 ;
10996 PyObject * obj0 = 0 ;
10997 PyObject * obj1 = 0 ;
10998 char *kwnames[] = {
10999 (char *) "self",(char *) "pos", NULL
11000 };
11001
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11005 {
11006 arg2 = &temp2;
11007 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11008 }
11009 {
11010 PyThreadState* __tstate = wxPyBeginAllowThreads();
11011 (arg1)->SetPosition((wxPoint const &)*arg2);
11012
11013 wxPyEndAllowThreads(__tstate);
11014 if (PyErr_Occurred()) SWIG_fail;
11015 }
11016 Py_INCREF(Py_None); resultobj = Py_None;
11017 return resultobj;
11018 fail:
11019 return NULL;
11020 }
11021
11022
11023 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11024 PyObject *resultobj;
11025 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11026 int arg2 ;
11027 PyObject * obj0 = 0 ;
11028 PyObject * obj1 = 0 ;
11029 char *kwnames[] = {
11030 (char *) "self",(char *) "zPos", NULL
11031 };
11032
11033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11036 arg2 = (int) SWIG_AsInt(obj1);
11037 if (PyErr_Occurred()) SWIG_fail;
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 (arg1)->SetZPosition(arg2);
11041
11042 wxPyEndAllowThreads(__tstate);
11043 if (PyErr_Occurred()) SWIG_fail;
11044 }
11045 Py_INCREF(Py_None); resultobj = Py_None;
11046 return resultobj;
11047 fail:
11048 return NULL;
11049 }
11050
11051
11052 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11053 PyObject *resultobj;
11054 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11055 bool result;
11056 PyObject * obj0 = 0 ;
11057 char *kwnames[] = {
11058 (char *) "self", NULL
11059 };
11060
11061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11064 {
11065 PyThreadState* __tstate = wxPyBeginAllowThreads();
11066 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11067
11068 wxPyEndAllowThreads(__tstate);
11069 if (PyErr_Occurred()) SWIG_fail;
11070 }
11071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11072 return resultobj;
11073 fail:
11074 return NULL;
11075 }
11076
11077
11078 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11079 PyObject *resultobj;
11080 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11081 bool result;
11082 PyObject * obj0 = 0 ;
11083 char *kwnames[] = {
11084 (char *) "self", NULL
11085 };
11086
11087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11090 {
11091 PyThreadState* __tstate = wxPyBeginAllowThreads();
11092 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11093
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11098 return resultobj;
11099 fail:
11100 return NULL;
11101 }
11102
11103
11104 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11105 PyObject *resultobj;
11106 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11107 bool result;
11108 PyObject * obj0 = 0 ;
11109 char *kwnames[] = {
11110 (char *) "self", NULL
11111 };
11112
11113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11116 {
11117 PyThreadState* __tstate = wxPyBeginAllowThreads();
11118 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11119
11120 wxPyEndAllowThreads(__tstate);
11121 if (PyErr_Occurred()) SWIG_fail;
11122 }
11123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11124 return resultobj;
11125 fail:
11126 return NULL;
11127 }
11128
11129
11130 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj;
11132 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11133 int arg2 = (int) wxJOY_BUTTON_ANY ;
11134 bool result;
11135 PyObject * obj0 = 0 ;
11136 PyObject * obj1 = 0 ;
11137 char *kwnames[] = {
11138 (char *) "self",(char *) "but", NULL
11139 };
11140
11141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11144 if (obj1) {
11145 arg2 = (int) SWIG_AsInt(obj1);
11146 if (PyErr_Occurred()) SWIG_fail;
11147 }
11148 {
11149 PyThreadState* __tstate = wxPyBeginAllowThreads();
11150 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11151
11152 wxPyEndAllowThreads(__tstate);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11156 return resultobj;
11157 fail:
11158 return NULL;
11159 }
11160
11161
11162 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11163 PyObject *resultobj;
11164 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11165 int arg2 = (int) wxJOY_BUTTON_ANY ;
11166 bool result;
11167 PyObject * obj0 = 0 ;
11168 PyObject * obj1 = 0 ;
11169 char *kwnames[] = {
11170 (char *) "self",(char *) "but", NULL
11171 };
11172
11173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11176 if (obj1) {
11177 arg2 = (int) SWIG_AsInt(obj1);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 {
11181 PyThreadState* __tstate = wxPyBeginAllowThreads();
11182 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11183
11184 wxPyEndAllowThreads(__tstate);
11185 if (PyErr_Occurred()) SWIG_fail;
11186 }
11187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11188 return resultobj;
11189 fail:
11190 return NULL;
11191 }
11192
11193
11194 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11195 PyObject *resultobj;
11196 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11197 int arg2 = (int) wxJOY_BUTTON_ANY ;
11198 bool result;
11199 PyObject * obj0 = 0 ;
11200 PyObject * obj1 = 0 ;
11201 char *kwnames[] = {
11202 (char *) "self",(char *) "but", NULL
11203 };
11204
11205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11208 if (obj1) {
11209 arg2 = (int) SWIG_AsInt(obj1);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 }
11212 {
11213 PyThreadState* __tstate = wxPyBeginAllowThreads();
11214 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11215
11216 wxPyEndAllowThreads(__tstate);
11217 if (PyErr_Occurred()) SWIG_fail;
11218 }
11219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11220 return resultobj;
11221 fail:
11222 return NULL;
11223 }
11224
11225
11226 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11227 PyObject *obj;
11228 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11229 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11230 Py_INCREF(obj);
11231 return Py_BuildValue((char *)"");
11232 }
11233 static PyObject *_wrap_new_Sound__SWIG_0(PyObject *self, PyObject *args) {
11234 PyObject *resultobj;
11235 wxSound *result;
11236
11237 if(!PyArg_ParseTuple(args,(char *)":new_Sound")) goto fail;
11238 {
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 result = (wxSound *)new wxSound();
11241
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11246 return resultobj;
11247 fail:
11248 return NULL;
11249 }
11250
11251
11252 static PyObject *_wrap_new_Sound__SWIG_1(PyObject *self, PyObject *args) {
11253 PyObject *resultobj;
11254 wxString *arg1 = 0 ;
11255 bool arg2 = (bool) false ;
11256 wxSound *result;
11257 bool temp1 = False ;
11258 PyObject * obj0 = 0 ;
11259 PyObject * obj1 = 0 ;
11260
11261 if(!PyArg_ParseTuple(args,(char *)"O|O:new_Sound",&obj0,&obj1)) goto fail;
11262 {
11263 arg1 = wxString_in_helper(obj0);
11264 if (arg1 == NULL) SWIG_fail;
11265 temp1 = True;
11266 }
11267 if (obj1) {
11268 arg2 = (bool) SWIG_AsBool(obj1);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 {
11272 PyThreadState* __tstate = wxPyBeginAllowThreads();
11273 result = (wxSound *)new wxSound((wxString const &)*arg1,arg2);
11274
11275 wxPyEndAllowThreads(__tstate);
11276 if (PyErr_Occurred()) SWIG_fail;
11277 }
11278 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11279 {
11280 if (temp1)
11281 delete arg1;
11282 }
11283 return resultobj;
11284 fail:
11285 {
11286 if (temp1)
11287 delete arg1;
11288 }
11289 return NULL;
11290 }
11291
11292
11293 static PyObject *_wrap_new_Sound__SWIG_2(PyObject *self, PyObject *args) {
11294 PyObject *resultobj;
11295 int arg1 ;
11296 wxByte *arg2 = (wxByte *) 0 ;
11297 wxSound *result;
11298 PyObject * obj0 = 0 ;
11299 PyObject * obj1 = 0 ;
11300
11301 if(!PyArg_ParseTuple(args,(char *)"OO:new_Sound",&obj0,&obj1)) goto fail;
11302 arg1 = (int) SWIG_AsInt(obj0);
11303 if (PyErr_Occurred()) SWIG_fail;
11304 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxByte,
11305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11306 {
11307 PyThreadState* __tstate = wxPyBeginAllowThreads();
11308 result = (wxSound *)new wxSound(arg1,(wxByte const *)arg2);
11309
11310 wxPyEndAllowThreads(__tstate);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 }
11313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11314 return resultobj;
11315 fail:
11316 return NULL;
11317 }
11318
11319
11320 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args) {
11321 int argc;
11322 PyObject *argv[3];
11323 int ii;
11324
11325 argc = PyObject_Length(args);
11326 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
11327 argv[ii] = PyTuple_GetItem(args,ii);
11328 }
11329 if (argc == 0) {
11330 return _wrap_new_Sound__SWIG_0(self,args);
11331 }
11332 if ((argc >= 1) && (argc <= 2)) {
11333 int _v;
11334 {
11335 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
11336 }
11337 if (_v) {
11338 if (argc <= 1) {
11339 return _wrap_new_Sound__SWIG_1(self,args);
11340 }
11341 _v = SWIG_CheckBool(argv[1]);
11342 if (_v) {
11343 return _wrap_new_Sound__SWIG_1(self,args);
11344 }
11345 }
11346 }
11347 if (argc == 2) {
11348 int _v;
11349 _v = SWIG_CheckInt(argv[0]);
11350 if (_v) {
11351 {
11352 void *ptr;
11353 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11354 _v = 0;
11355 PyErr_Clear();
11356 } else {
11357 _v = 1;
11358 }
11359 }
11360 if (_v) {
11361 return _wrap_new_Sound__SWIG_2(self,args);
11362 }
11363 }
11364 }
11365
11366 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_Sound'");
11367 return NULL;
11368 }
11369
11370
11371 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11372 PyObject *resultobj;
11373 wxSound *arg1 = (wxSound *) 0 ;
11374 PyObject * obj0 = 0 ;
11375 char *kwnames[] = {
11376 (char *) "self", NULL
11377 };
11378
11379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11382 {
11383 PyThreadState* __tstate = wxPyBeginAllowThreads();
11384 delete arg1;
11385
11386 wxPyEndAllowThreads(__tstate);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 }
11389 Py_INCREF(Py_None); resultobj = Py_None;
11390 return resultobj;
11391 fail:
11392 return NULL;
11393 }
11394
11395
11396 static PyObject *_wrap_Sound_Create__SWIG_0(PyObject *self, PyObject *args) {
11397 PyObject *resultobj;
11398 wxSound *arg1 = (wxSound *) 0 ;
11399 wxString *arg2 = 0 ;
11400 bool arg3 = (bool) false ;
11401 bool result;
11402 bool temp2 = False ;
11403 PyObject * obj0 = 0 ;
11404 PyObject * obj1 = 0 ;
11405 PyObject * obj2 = 0 ;
11406
11407 if(!PyArg_ParseTuple(args,(char *)"OO|O:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11410 {
11411 arg2 = wxString_in_helper(obj1);
11412 if (arg2 == NULL) SWIG_fail;
11413 temp2 = True;
11414 }
11415 if (obj2) {
11416 arg3 = (bool) SWIG_AsBool(obj2);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 }
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 result = (bool)(arg1)->Create((wxString const &)*arg2,arg3);
11422
11423 wxPyEndAllowThreads(__tstate);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11427 {
11428 if (temp2)
11429 delete arg2;
11430 }
11431 return resultobj;
11432 fail:
11433 {
11434 if (temp2)
11435 delete arg2;
11436 }
11437 return NULL;
11438 }
11439
11440
11441 static PyObject *_wrap_Sound_Create__SWIG_1(PyObject *self, PyObject *args) {
11442 PyObject *resultobj;
11443 wxSound *arg1 = (wxSound *) 0 ;
11444 int arg2 ;
11445 wxByte *arg3 = (wxByte *) 0 ;
11446 bool result;
11447 PyObject * obj0 = 0 ;
11448 PyObject * obj1 = 0 ;
11449 PyObject * obj2 = 0 ;
11450
11451 if(!PyArg_ParseTuple(args,(char *)"OOO:Sound_Create",&obj0,&obj1,&obj2)) goto fail;
11452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11454 arg2 = (int) SWIG_AsInt(obj1);
11455 if (PyErr_Occurred()) SWIG_fail;
11456 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxByte,
11457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11458 {
11459 PyThreadState* __tstate = wxPyBeginAllowThreads();
11460 result = (bool)(arg1)->Create(arg2,(wxByte const *)arg3);
11461
11462 wxPyEndAllowThreads(__tstate);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 }
11465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11466 return resultobj;
11467 fail:
11468 return NULL;
11469 }
11470
11471
11472 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args) {
11473 int argc;
11474 PyObject *argv[4];
11475 int ii;
11476
11477 argc = PyObject_Length(args);
11478 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
11479 argv[ii] = PyTuple_GetItem(args,ii);
11480 }
11481 if ((argc >= 2) && (argc <= 3)) {
11482 int _v;
11483 {
11484 void *ptr;
11485 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11486 _v = 0;
11487 PyErr_Clear();
11488 } else {
11489 _v = 1;
11490 }
11491 }
11492 if (_v) {
11493 {
11494 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
11495 }
11496 if (_v) {
11497 if (argc <= 2) {
11498 return _wrap_Sound_Create__SWIG_0(self,args);
11499 }
11500 _v = SWIG_CheckBool(argv[2]);
11501 if (_v) {
11502 return _wrap_Sound_Create__SWIG_0(self,args);
11503 }
11504 }
11505 }
11506 }
11507 if (argc == 3) {
11508 int _v;
11509 {
11510 void *ptr;
11511 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxSound, 0) == -1) {
11512 _v = 0;
11513 PyErr_Clear();
11514 } else {
11515 _v = 1;
11516 }
11517 }
11518 if (_v) {
11519 _v = SWIG_CheckInt(argv[1]);
11520 if (_v) {
11521 {
11522 void *ptr;
11523 if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxByte, 0) == -1) {
11524 _v = 0;
11525 PyErr_Clear();
11526 } else {
11527 _v = 1;
11528 }
11529 }
11530 if (_v) {
11531 return _wrap_Sound_Create__SWIG_1(self,args);
11532 }
11533 }
11534 }
11535 }
11536
11537 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Sound_Create'");
11538 return NULL;
11539 }
11540
11541
11542 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj;
11544 wxSound *arg1 = (wxSound *) 0 ;
11545 bool result;
11546 PyObject * obj0 = 0 ;
11547 char *kwnames[] = {
11548 (char *) "self", NULL
11549 };
11550
11551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11554 {
11555 PyThreadState* __tstate = wxPyBeginAllowThreads();
11556 result = (bool)(arg1)->IsOk();
11557
11558 wxPyEndAllowThreads(__tstate);
11559 if (PyErr_Occurred()) SWIG_fail;
11560 }
11561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11562 return resultobj;
11563 fail:
11564 return NULL;
11565 }
11566
11567
11568 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args) {
11569 PyObject *resultobj;
11570 wxSound *arg1 = (wxSound *) 0 ;
11571 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11572 bool result;
11573 PyObject * obj0 = 0 ;
11574 PyObject * obj1 = 0 ;
11575
11576 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_Play",&obj0,&obj1)) goto fail;
11577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11579 if (obj1) {
11580 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
11585 result = (bool)((wxSound const *)arg1)->Play(arg2);
11586
11587 wxPyEndAllowThreads(__tstate);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11591 return resultobj;
11592 fail:
11593 return NULL;
11594 }
11595
11596
11597 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args) {
11598 PyObject *resultobj;
11599 wxString *arg1 = 0 ;
11600 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11601 bool result;
11602 bool temp1 = False ;
11603 PyObject * obj0 = 0 ;
11604 PyObject * obj1 = 0 ;
11605
11606 if(!PyArg_ParseTuple(args,(char *)"O|O:Sound_PlaySound",&obj0,&obj1)) goto fail;
11607 {
11608 arg1 = wxString_in_helper(obj0);
11609 if (arg1 == NULL) SWIG_fail;
11610 temp1 = True;
11611 }
11612 if (obj1) {
11613 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 {
11617 PyThreadState* __tstate = wxPyBeginAllowThreads();
11618 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11619
11620 wxPyEndAllowThreads(__tstate);
11621 if (PyErr_Occurred()) SWIG_fail;
11622 }
11623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11624 {
11625 if (temp1)
11626 delete arg1;
11627 }
11628 return resultobj;
11629 fail:
11630 {
11631 if (temp1)
11632 delete arg1;
11633 }
11634 return NULL;
11635 }
11636
11637
11638 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11639 PyObject *resultobj;
11640 char *kwnames[] = {
11641 NULL
11642 };
11643
11644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11645 {
11646 PyThreadState* __tstate = wxPyBeginAllowThreads();
11647 wxSound::Stop();
11648
11649 wxPyEndAllowThreads(__tstate);
11650 if (PyErr_Occurred()) SWIG_fail;
11651 }
11652 Py_INCREF(Py_None); resultobj = Py_None;
11653 return resultobj;
11654 fail:
11655 return NULL;
11656 }
11657
11658
11659 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11660 PyObject *obj;
11661 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11662 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11663 Py_INCREF(obj);
11664 return Py_BuildValue((char *)"");
11665 }
11666 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11667 PyObject *resultobj;
11668 wxString *arg1 = 0 ;
11669 wxString *arg2 = 0 ;
11670 wxString *arg3 = 0 ;
11671 wxString *arg4 = 0 ;
11672 wxFileTypeInfo *result;
11673 bool temp1 = False ;
11674 bool temp2 = False ;
11675 bool temp3 = False ;
11676 bool temp4 = False ;
11677 PyObject * obj0 = 0 ;
11678 PyObject * obj1 = 0 ;
11679 PyObject * obj2 = 0 ;
11680 PyObject * obj3 = 0 ;
11681 char *kwnames[] = {
11682 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11683 };
11684
11685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11686 {
11687 arg1 = wxString_in_helper(obj0);
11688 if (arg1 == NULL) SWIG_fail;
11689 temp1 = True;
11690 }
11691 {
11692 arg2 = wxString_in_helper(obj1);
11693 if (arg2 == NULL) SWIG_fail;
11694 temp2 = True;
11695 }
11696 {
11697 arg3 = wxString_in_helper(obj2);
11698 if (arg3 == NULL) SWIG_fail;
11699 temp3 = True;
11700 }
11701 {
11702 arg4 = wxString_in_helper(obj3);
11703 if (arg4 == NULL) SWIG_fail;
11704 temp4 = True;
11705 }
11706 {
11707 PyThreadState* __tstate = wxPyBeginAllowThreads();
11708 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11709
11710 wxPyEndAllowThreads(__tstate);
11711 if (PyErr_Occurred()) SWIG_fail;
11712 }
11713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11714 {
11715 if (temp1)
11716 delete arg1;
11717 }
11718 {
11719 if (temp2)
11720 delete arg2;
11721 }
11722 {
11723 if (temp3)
11724 delete arg3;
11725 }
11726 {
11727 if (temp4)
11728 delete arg4;
11729 }
11730 return resultobj;
11731 fail:
11732 {
11733 if (temp1)
11734 delete arg1;
11735 }
11736 {
11737 if (temp2)
11738 delete arg2;
11739 }
11740 {
11741 if (temp3)
11742 delete arg3;
11743 }
11744 {
11745 if (temp4)
11746 delete arg4;
11747 }
11748 return NULL;
11749 }
11750
11751
11752 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11753 PyObject *resultobj;
11754 wxArrayString *arg1 = 0 ;
11755 wxFileTypeInfo *result;
11756 bool temp1 = False ;
11757 PyObject * obj0 = 0 ;
11758 char *kwnames[] = {
11759 (char *) "sArray", NULL
11760 };
11761
11762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11763 {
11764 if (! PySequence_Check(obj0)) {
11765 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11766 SWIG_fail;
11767 }
11768 arg1 = new wxArrayString;
11769 temp1 = True;
11770 int i, len=PySequence_Length(obj0);
11771 for (i=0; i<len; i++) {
11772 PyObject* item = PySequence_GetItem(obj0, i);
11773 #if wxUSE_UNICODE
11774 PyObject* str = PyObject_Unicode(item);
11775 #else
11776 PyObject* str = PyObject_Str(item);
11777 #endif
11778 arg1->Add(Py2wxString(str));
11779 Py_DECREF(item);
11780 Py_DECREF(str);
11781 }
11782 }
11783 {
11784 PyThreadState* __tstate = wxPyBeginAllowThreads();
11785 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11786
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11791 {
11792 if (temp1) delete arg1;
11793 }
11794 return resultobj;
11795 fail:
11796 {
11797 if (temp1) delete arg1;
11798 }
11799 return NULL;
11800 }
11801
11802
11803 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11804 PyObject *resultobj;
11805 wxFileTypeInfo *result;
11806 char *kwnames[] = {
11807 NULL
11808 };
11809
11810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11811 {
11812 PyThreadState* __tstate = wxPyBeginAllowThreads();
11813 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11814
11815 wxPyEndAllowThreads(__tstate);
11816 if (PyErr_Occurred()) SWIG_fail;
11817 }
11818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11819 return resultobj;
11820 fail:
11821 return NULL;
11822 }
11823
11824
11825 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
11826 PyObject *resultobj;
11827 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11828 bool result;
11829 PyObject * obj0 = 0 ;
11830 char *kwnames[] = {
11831 (char *) "self", NULL
11832 };
11833
11834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
11835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11837 {
11838 PyThreadState* __tstate = wxPyBeginAllowThreads();
11839 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
11840
11841 wxPyEndAllowThreads(__tstate);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11845 return resultobj;
11846 fail:
11847 return NULL;
11848 }
11849
11850
11851 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11852 PyObject *resultobj;
11853 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11854 wxString *arg2 = 0 ;
11855 int arg3 = (int) 0 ;
11856 bool temp2 = False ;
11857 PyObject * obj0 = 0 ;
11858 PyObject * obj1 = 0 ;
11859 PyObject * obj2 = 0 ;
11860 char *kwnames[] = {
11861 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
11862 };
11863
11864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11867 {
11868 arg2 = wxString_in_helper(obj1);
11869 if (arg2 == NULL) SWIG_fail;
11870 temp2 = True;
11871 }
11872 if (obj2) {
11873 arg3 = (int) SWIG_AsInt(obj2);
11874 if (PyErr_Occurred()) SWIG_fail;
11875 }
11876 {
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 (arg1)->SetIcon((wxString const &)*arg2,arg3);
11879
11880 wxPyEndAllowThreads(__tstate);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 Py_INCREF(Py_None); resultobj = Py_None;
11884 {
11885 if (temp2)
11886 delete arg2;
11887 }
11888 return resultobj;
11889 fail:
11890 {
11891 if (temp2)
11892 delete arg2;
11893 }
11894 return NULL;
11895 }
11896
11897
11898 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
11899 PyObject *resultobj;
11900 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11901 wxString *arg2 = 0 ;
11902 bool temp2 = False ;
11903 PyObject * obj0 = 0 ;
11904 PyObject * obj1 = 0 ;
11905 char *kwnames[] = {
11906 (char *) "self",(char *) "shortDesc", NULL
11907 };
11908
11909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
11910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11912 {
11913 arg2 = wxString_in_helper(obj1);
11914 if (arg2 == NULL) SWIG_fail;
11915 temp2 = True;
11916 }
11917 {
11918 PyThreadState* __tstate = wxPyBeginAllowThreads();
11919 (arg1)->SetShortDesc((wxString const &)*arg2);
11920
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 Py_INCREF(Py_None); resultobj = Py_None;
11925 {
11926 if (temp2)
11927 delete arg2;
11928 }
11929 return resultobj;
11930 fail:
11931 {
11932 if (temp2)
11933 delete arg2;
11934 }
11935 return NULL;
11936 }
11937
11938
11939 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
11940 PyObject *resultobj;
11941 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11942 wxString *result;
11943 PyObject * obj0 = 0 ;
11944 char *kwnames[] = {
11945 (char *) "self", NULL
11946 };
11947
11948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
11949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11951 {
11952 PyThreadState* __tstate = wxPyBeginAllowThreads();
11953 {
11954 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
11955 result = (wxString *) &_result_ref;
11956 }
11957
11958 wxPyEndAllowThreads(__tstate);
11959 if (PyErr_Occurred()) SWIG_fail;
11960 }
11961 {
11962 #if wxUSE_UNICODE
11963 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11964 #else
11965 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
11966 #endif
11967 }
11968 return resultobj;
11969 fail:
11970 return NULL;
11971 }
11972
11973
11974 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
11975 PyObject *resultobj;
11976 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11977 wxString *result;
11978 PyObject * obj0 = 0 ;
11979 char *kwnames[] = {
11980 (char *) "self", NULL
11981 };
11982
11983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
11984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
11985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11986 {
11987 PyThreadState* __tstate = wxPyBeginAllowThreads();
11988 {
11989 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
11990 result = (wxString *) &_result_ref;
11991 }
11992
11993 wxPyEndAllowThreads(__tstate);
11994 if (PyErr_Occurred()) SWIG_fail;
11995 }
11996 {
11997 #if wxUSE_UNICODE
11998 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
11999 #else
12000 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12001 #endif
12002 }
12003 return resultobj;
12004 fail:
12005 return NULL;
12006 }
12007
12008
12009 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12010 PyObject *resultobj;
12011 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12012 wxString *result;
12013 PyObject * obj0 = 0 ;
12014 char *kwnames[] = {
12015 (char *) "self", NULL
12016 };
12017
12018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 {
12024 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12025 result = (wxString *) &_result_ref;
12026 }
12027
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 {
12032 #if wxUSE_UNICODE
12033 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12034 #else
12035 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12036 #endif
12037 }
12038 return resultobj;
12039 fail:
12040 return NULL;
12041 }
12042
12043
12044 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12045 PyObject *resultobj;
12046 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12047 wxString *result;
12048 PyObject * obj0 = 0 ;
12049 char *kwnames[] = {
12050 (char *) "self", NULL
12051 };
12052
12053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12056 {
12057 PyThreadState* __tstate = wxPyBeginAllowThreads();
12058 {
12059 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12060 result = (wxString *) &_result_ref;
12061 }
12062
12063 wxPyEndAllowThreads(__tstate);
12064 if (PyErr_Occurred()) SWIG_fail;
12065 }
12066 {
12067 #if wxUSE_UNICODE
12068 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12069 #else
12070 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12071 #endif
12072 }
12073 return resultobj;
12074 fail:
12075 return NULL;
12076 }
12077
12078
12079 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12080 PyObject *resultobj;
12081 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12082 wxString *result;
12083 PyObject * obj0 = 0 ;
12084 char *kwnames[] = {
12085 (char *) "self", NULL
12086 };
12087
12088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 {
12094 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12095 result = (wxString *) &_result_ref;
12096 }
12097
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 {
12102 #if wxUSE_UNICODE
12103 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12104 #else
12105 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12106 #endif
12107 }
12108 return resultobj;
12109 fail:
12110 return NULL;
12111 }
12112
12113
12114 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj;
12116 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12117 wxArrayString *result;
12118 PyObject * obj0 = 0 ;
12119 char *kwnames[] = {
12120 (char *) "self", NULL
12121 };
12122
12123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12126 {
12127 PyThreadState* __tstate = wxPyBeginAllowThreads();
12128 {
12129 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12130 result = (wxArrayString *) &_result_ref;
12131 }
12132
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 {
12137 resultobj = wxArrayString2PyList_helper(*result);
12138 }
12139 return resultobj;
12140 fail:
12141 return NULL;
12142 }
12143
12144
12145 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12146 PyObject *resultobj;
12147 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12148 int result;
12149 PyObject * obj0 = 0 ;
12150 char *kwnames[] = {
12151 (char *) "self", NULL
12152 };
12153
12154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12160
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 resultobj = SWIG_FromInt((int)result);
12165 return resultobj;
12166 fail:
12167 return NULL;
12168 }
12169
12170
12171 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12172 PyObject *resultobj;
12173 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12174 wxString *result;
12175 PyObject * obj0 = 0 ;
12176 char *kwnames[] = {
12177 (char *) "self", NULL
12178 };
12179
12180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 {
12186 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12187 result = (wxString *) &_result_ref;
12188 }
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 {
12194 #if wxUSE_UNICODE
12195 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12196 #else
12197 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12198 #endif
12199 }
12200 return resultobj;
12201 fail:
12202 return NULL;
12203 }
12204
12205
12206 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12207 PyObject *resultobj;
12208 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12209 int result;
12210 PyObject * obj0 = 0 ;
12211 char *kwnames[] = {
12212 (char *) "self", NULL
12213 };
12214
12215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12218 {
12219 PyThreadState* __tstate = wxPyBeginAllowThreads();
12220 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12221
12222 wxPyEndAllowThreads(__tstate);
12223 if (PyErr_Occurred()) SWIG_fail;
12224 }
12225 resultobj = SWIG_FromInt((int)result);
12226 return resultobj;
12227 fail:
12228 return NULL;
12229 }
12230
12231
12232 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12233 PyObject *obj;
12234 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12235 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12236 Py_INCREF(obj);
12237 return Py_BuildValue((char *)"");
12238 }
12239 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12240 PyObject *resultobj;
12241 wxFileTypeInfo *arg1 = 0 ;
12242 wxFileType *result;
12243 PyObject * obj0 = 0 ;
12244 char *kwnames[] = {
12245 (char *) "ftInfo", NULL
12246 };
12247
12248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12250 SWIG_POINTER_EXCEPTION | 0)) == -1)
12251 SWIG_fail;
12252 if (arg1 == NULL) {
12253 PyErr_SetString(PyExc_TypeError,"null reference");
12254 SWIG_fail;
12255 }
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12259
12260 wxPyEndAllowThreads(__tstate);
12261 if (PyErr_Occurred()) SWIG_fail;
12262 }
12263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12264 return resultobj;
12265 fail:
12266 return NULL;
12267 }
12268
12269
12270 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12271 PyObject *resultobj;
12272 wxFileType *arg1 = (wxFileType *) 0 ;
12273 PyObject * obj0 = 0 ;
12274 char *kwnames[] = {
12275 (char *) "self", NULL
12276 };
12277
12278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12281 {
12282 PyThreadState* __tstate = wxPyBeginAllowThreads();
12283 delete arg1;
12284
12285 wxPyEndAllowThreads(__tstate);
12286 if (PyErr_Occurred()) SWIG_fail;
12287 }
12288 Py_INCREF(Py_None); resultobj = Py_None;
12289 return resultobj;
12290 fail:
12291 return NULL;
12292 }
12293
12294
12295 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12296 PyObject *resultobj;
12297 wxFileType *arg1 = (wxFileType *) 0 ;
12298 PyObject *result;
12299 PyObject * obj0 = 0 ;
12300 char *kwnames[] = {
12301 (char *) "self", NULL
12302 };
12303
12304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12307 {
12308 PyThreadState* __tstate = wxPyBeginAllowThreads();
12309 result = (PyObject *)wxFileType_GetMimeType(arg1);
12310
12311 wxPyEndAllowThreads(__tstate);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 resultobj = result;
12315 return resultobj;
12316 fail:
12317 return NULL;
12318 }
12319
12320
12321 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12322 PyObject *resultobj;
12323 wxFileType *arg1 = (wxFileType *) 0 ;
12324 PyObject *result;
12325 PyObject * obj0 = 0 ;
12326 char *kwnames[] = {
12327 (char *) "self", NULL
12328 };
12329
12330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12333 {
12334 PyThreadState* __tstate = wxPyBeginAllowThreads();
12335 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12336
12337 wxPyEndAllowThreads(__tstate);
12338 if (PyErr_Occurred()) SWIG_fail;
12339 }
12340 resultobj = result;
12341 return resultobj;
12342 fail:
12343 return NULL;
12344 }
12345
12346
12347 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12348 PyObject *resultobj;
12349 wxFileType *arg1 = (wxFileType *) 0 ;
12350 PyObject *result;
12351 PyObject * obj0 = 0 ;
12352 char *kwnames[] = {
12353 (char *) "self", NULL
12354 };
12355
12356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12359 {
12360 PyThreadState* __tstate = wxPyBeginAllowThreads();
12361 result = (PyObject *)wxFileType_GetExtensions(arg1);
12362
12363 wxPyEndAllowThreads(__tstate);
12364 if (PyErr_Occurred()) SWIG_fail;
12365 }
12366 resultobj = result;
12367 return resultobj;
12368 fail:
12369 return NULL;
12370 }
12371
12372
12373 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12374 PyObject *resultobj;
12375 wxFileType *arg1 = (wxFileType *) 0 ;
12376 wxIcon *result;
12377 PyObject * obj0 = 0 ;
12378 char *kwnames[] = {
12379 (char *) "self", NULL
12380 };
12381
12382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
12387 result = (wxIcon *)wxFileType_GetIcon(arg1);
12388
12389 wxPyEndAllowThreads(__tstate);
12390 if (PyErr_Occurred()) SWIG_fail;
12391 }
12392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12393 return resultobj;
12394 fail:
12395 return NULL;
12396 }
12397
12398
12399 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12400 PyObject *resultobj;
12401 wxFileType *arg1 = (wxFileType *) 0 ;
12402 PyObject *result;
12403 PyObject * obj0 = 0 ;
12404 char *kwnames[] = {
12405 (char *) "self", NULL
12406 };
12407
12408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12411 {
12412 PyThreadState* __tstate = wxPyBeginAllowThreads();
12413 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12414
12415 wxPyEndAllowThreads(__tstate);
12416 if (PyErr_Occurred()) SWIG_fail;
12417 }
12418 resultobj = result;
12419 return resultobj;
12420 fail:
12421 return NULL;
12422 }
12423
12424
12425 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12426 PyObject *resultobj;
12427 wxFileType *arg1 = (wxFileType *) 0 ;
12428 PyObject *result;
12429 PyObject * obj0 = 0 ;
12430 char *kwnames[] = {
12431 (char *) "self", NULL
12432 };
12433
12434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12437 {
12438 PyThreadState* __tstate = wxPyBeginAllowThreads();
12439 result = (PyObject *)wxFileType_GetDescription(arg1);
12440
12441 wxPyEndAllowThreads(__tstate);
12442 if (PyErr_Occurred()) SWIG_fail;
12443 }
12444 resultobj = result;
12445 return resultobj;
12446 fail:
12447 return NULL;
12448 }
12449
12450
12451 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12452 PyObject *resultobj;
12453 wxFileType *arg1 = (wxFileType *) 0 ;
12454 wxString *arg2 = 0 ;
12455 wxString const &arg3_defvalue = wxPyEmptyString ;
12456 wxString *arg3 = (wxString *) &arg3_defvalue ;
12457 PyObject *result;
12458 bool temp2 = False ;
12459 bool temp3 = False ;
12460 PyObject * obj0 = 0 ;
12461 PyObject * obj1 = 0 ;
12462 PyObject * obj2 = 0 ;
12463 char *kwnames[] = {
12464 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12465 };
12466
12467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12470 {
12471 arg2 = wxString_in_helper(obj1);
12472 if (arg2 == NULL) SWIG_fail;
12473 temp2 = True;
12474 }
12475 if (obj2) {
12476 {
12477 arg3 = wxString_in_helper(obj2);
12478 if (arg3 == NULL) SWIG_fail;
12479 temp3 = True;
12480 }
12481 }
12482 {
12483 PyThreadState* __tstate = wxPyBeginAllowThreads();
12484 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12485
12486 wxPyEndAllowThreads(__tstate);
12487 if (PyErr_Occurred()) SWIG_fail;
12488 }
12489 resultobj = result;
12490 {
12491 if (temp2)
12492 delete arg2;
12493 }
12494 {
12495 if (temp3)
12496 delete arg3;
12497 }
12498 return resultobj;
12499 fail:
12500 {
12501 if (temp2)
12502 delete arg2;
12503 }
12504 {
12505 if (temp3)
12506 delete arg3;
12507 }
12508 return NULL;
12509 }
12510
12511
12512 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12513 PyObject *resultobj;
12514 wxFileType *arg1 = (wxFileType *) 0 ;
12515 wxString *arg2 = 0 ;
12516 wxString const &arg3_defvalue = wxPyEmptyString ;
12517 wxString *arg3 = (wxString *) &arg3_defvalue ;
12518 PyObject *result;
12519 bool temp2 = False ;
12520 bool temp3 = False ;
12521 PyObject * obj0 = 0 ;
12522 PyObject * obj1 = 0 ;
12523 PyObject * obj2 = 0 ;
12524 char *kwnames[] = {
12525 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12526 };
12527
12528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12531 {
12532 arg2 = wxString_in_helper(obj1);
12533 if (arg2 == NULL) SWIG_fail;
12534 temp2 = True;
12535 }
12536 if (obj2) {
12537 {
12538 arg3 = wxString_in_helper(obj2);
12539 if (arg3 == NULL) SWIG_fail;
12540 temp3 = True;
12541 }
12542 }
12543 {
12544 PyThreadState* __tstate = wxPyBeginAllowThreads();
12545 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12546
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 resultobj = result;
12551 {
12552 if (temp2)
12553 delete arg2;
12554 }
12555 {
12556 if (temp3)
12557 delete arg3;
12558 }
12559 return resultobj;
12560 fail:
12561 {
12562 if (temp2)
12563 delete arg2;
12564 }
12565 {
12566 if (temp3)
12567 delete arg3;
12568 }
12569 return NULL;
12570 }
12571
12572
12573 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12574 PyObject *resultobj;
12575 wxFileType *arg1 = (wxFileType *) 0 ;
12576 wxString *arg2 = 0 ;
12577 wxString const &arg3_defvalue = wxPyEmptyString ;
12578 wxString *arg3 = (wxString *) &arg3_defvalue ;
12579 PyObject *result;
12580 bool temp2 = False ;
12581 bool temp3 = False ;
12582 PyObject * obj0 = 0 ;
12583 PyObject * obj1 = 0 ;
12584 PyObject * obj2 = 0 ;
12585 char *kwnames[] = {
12586 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12587 };
12588
12589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12592 {
12593 arg2 = wxString_in_helper(obj1);
12594 if (arg2 == NULL) SWIG_fail;
12595 temp2 = True;
12596 }
12597 if (obj2) {
12598 {
12599 arg3 = wxString_in_helper(obj2);
12600 if (arg3 == NULL) SWIG_fail;
12601 temp3 = True;
12602 }
12603 }
12604 {
12605 PyThreadState* __tstate = wxPyBeginAllowThreads();
12606 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12607
12608 wxPyEndAllowThreads(__tstate);
12609 if (PyErr_Occurred()) SWIG_fail;
12610 }
12611 resultobj = result;
12612 {
12613 if (temp2)
12614 delete arg2;
12615 }
12616 {
12617 if (temp3)
12618 delete arg3;
12619 }
12620 return resultobj;
12621 fail:
12622 {
12623 if (temp2)
12624 delete arg2;
12625 }
12626 {
12627 if (temp3)
12628 delete arg3;
12629 }
12630 return NULL;
12631 }
12632
12633
12634 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12635 PyObject *resultobj;
12636 wxFileType *arg1 = (wxFileType *) 0 ;
12637 wxString *arg2 = 0 ;
12638 wxString *arg3 = 0 ;
12639 bool arg4 = (bool) True ;
12640 bool result;
12641 bool temp2 = False ;
12642 bool temp3 = False ;
12643 PyObject * obj0 = 0 ;
12644 PyObject * obj1 = 0 ;
12645 PyObject * obj2 = 0 ;
12646 PyObject * obj3 = 0 ;
12647 char *kwnames[] = {
12648 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12649 };
12650
12651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12654 {
12655 arg2 = wxString_in_helper(obj1);
12656 if (arg2 == NULL) SWIG_fail;
12657 temp2 = True;
12658 }
12659 {
12660 arg3 = wxString_in_helper(obj2);
12661 if (arg3 == NULL) SWIG_fail;
12662 temp3 = True;
12663 }
12664 if (obj3) {
12665 arg4 = (bool) SWIG_AsBool(obj3);
12666 if (PyErr_Occurred()) SWIG_fail;
12667 }
12668 {
12669 PyThreadState* __tstate = wxPyBeginAllowThreads();
12670 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12671
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12676 {
12677 if (temp2)
12678 delete arg2;
12679 }
12680 {
12681 if (temp3)
12682 delete arg3;
12683 }
12684 return resultobj;
12685 fail:
12686 {
12687 if (temp2)
12688 delete arg2;
12689 }
12690 {
12691 if (temp3)
12692 delete arg3;
12693 }
12694 return NULL;
12695 }
12696
12697
12698 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12699 PyObject *resultobj;
12700 wxFileType *arg1 = (wxFileType *) 0 ;
12701 wxString const &arg2_defvalue = wxPyEmptyString ;
12702 wxString *arg2 = (wxString *) &arg2_defvalue ;
12703 int arg3 = (int) 0 ;
12704 bool result;
12705 bool temp2 = False ;
12706 PyObject * obj0 = 0 ;
12707 PyObject * obj1 = 0 ;
12708 PyObject * obj2 = 0 ;
12709 char *kwnames[] = {
12710 (char *) "self",(char *) "cmd",(char *) "index", NULL
12711 };
12712
12713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12716 if (obj1) {
12717 {
12718 arg2 = wxString_in_helper(obj1);
12719 if (arg2 == NULL) SWIG_fail;
12720 temp2 = True;
12721 }
12722 }
12723 if (obj2) {
12724 arg3 = (int) SWIG_AsInt(obj2);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 {
12728 PyThreadState* __tstate = wxPyBeginAllowThreads();
12729 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12730
12731 wxPyEndAllowThreads(__tstate);
12732 if (PyErr_Occurred()) SWIG_fail;
12733 }
12734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12735 {
12736 if (temp2)
12737 delete arg2;
12738 }
12739 return resultobj;
12740 fail:
12741 {
12742 if (temp2)
12743 delete arg2;
12744 }
12745 return NULL;
12746 }
12747
12748
12749 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12750 PyObject *resultobj;
12751 wxFileType *arg1 = (wxFileType *) 0 ;
12752 bool result;
12753 PyObject * obj0 = 0 ;
12754 char *kwnames[] = {
12755 (char *) "self", NULL
12756 };
12757
12758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12761 {
12762 PyThreadState* __tstate = wxPyBeginAllowThreads();
12763 result = (bool)(arg1)->Unassociate();
12764
12765 wxPyEndAllowThreads(__tstate);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12769 return resultobj;
12770 fail:
12771 return NULL;
12772 }
12773
12774
12775 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12776 PyObject *resultobj;
12777 wxString *arg1 = 0 ;
12778 wxString *arg2 = 0 ;
12779 wxString const &arg3_defvalue = wxPyEmptyString ;
12780 wxString *arg3 = (wxString *) &arg3_defvalue ;
12781 wxString result;
12782 bool temp1 = False ;
12783 bool temp2 = False ;
12784 bool temp3 = False ;
12785 PyObject * obj0 = 0 ;
12786 PyObject * obj1 = 0 ;
12787 PyObject * obj2 = 0 ;
12788 char *kwnames[] = {
12789 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12790 };
12791
12792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12793 {
12794 arg1 = wxString_in_helper(obj0);
12795 if (arg1 == NULL) SWIG_fail;
12796 temp1 = True;
12797 }
12798 {
12799 arg2 = wxString_in_helper(obj1);
12800 if (arg2 == NULL) SWIG_fail;
12801 temp2 = True;
12802 }
12803 if (obj2) {
12804 {
12805 arg3 = wxString_in_helper(obj2);
12806 if (arg3 == NULL) SWIG_fail;
12807 temp3 = True;
12808 }
12809 }
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12813
12814 wxPyEndAllowThreads(__tstate);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 }
12817 {
12818 #if wxUSE_UNICODE
12819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12820 #else
12821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12822 #endif
12823 }
12824 {
12825 if (temp1)
12826 delete arg1;
12827 }
12828 {
12829 if (temp2)
12830 delete arg2;
12831 }
12832 {
12833 if (temp3)
12834 delete arg3;
12835 }
12836 return resultobj;
12837 fail:
12838 {
12839 if (temp1)
12840 delete arg1;
12841 }
12842 {
12843 if (temp2)
12844 delete arg2;
12845 }
12846 {
12847 if (temp3)
12848 delete arg3;
12849 }
12850 return NULL;
12851 }
12852
12853
12854 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
12855 PyObject *obj;
12856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12857 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
12858 Py_INCREF(obj);
12859 return Py_BuildValue((char *)"");
12860 }
12861 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
12862 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
12863 return 1;
12864 }
12865
12866
12867 static PyObject *_wrap_TheMimeTypesManager_get() {
12868 PyObject *pyobj;
12869
12870 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
12871 return pyobj;
12872 }
12873
12874
12875 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
12876 PyObject *resultobj;
12877 wxString *arg1 = 0 ;
12878 wxString *arg2 = 0 ;
12879 bool result;
12880 bool temp1 = False ;
12881 bool temp2 = False ;
12882 PyObject * obj0 = 0 ;
12883 PyObject * obj1 = 0 ;
12884 char *kwnames[] = {
12885 (char *) "mimeType",(char *) "wildcard", NULL
12886 };
12887
12888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
12889 {
12890 arg1 = wxString_in_helper(obj0);
12891 if (arg1 == NULL) SWIG_fail;
12892 temp1 = True;
12893 }
12894 {
12895 arg2 = wxString_in_helper(obj1);
12896 if (arg2 == NULL) SWIG_fail;
12897 temp2 = True;
12898 }
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
12902
12903 wxPyEndAllowThreads(__tstate);
12904 if (PyErr_Occurred()) SWIG_fail;
12905 }
12906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12907 {
12908 if (temp1)
12909 delete arg1;
12910 }
12911 {
12912 if (temp2)
12913 delete arg2;
12914 }
12915 return resultobj;
12916 fail:
12917 {
12918 if (temp1)
12919 delete arg1;
12920 }
12921 {
12922 if (temp2)
12923 delete arg2;
12924 }
12925 return NULL;
12926 }
12927
12928
12929 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
12930 PyObject *resultobj;
12931 wxMimeTypesManager *result;
12932 char *kwnames[] = {
12933 NULL
12934 };
12935
12936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
12937 {
12938 PyThreadState* __tstate = wxPyBeginAllowThreads();
12939 result = (wxMimeTypesManager *)new wxMimeTypesManager();
12940
12941 wxPyEndAllowThreads(__tstate);
12942 if (PyErr_Occurred()) SWIG_fail;
12943 }
12944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
12945 return resultobj;
12946 fail:
12947 return NULL;
12948 }
12949
12950
12951 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
12952 PyObject *resultobj;
12953 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
12954 int arg2 = (int) wxMAILCAP_ALL ;
12955 wxString const &arg3_defvalue = wxPyEmptyString ;
12956 wxString *arg3 = (wxString *) &arg3_defvalue ;
12957 bool temp3 = False ;
12958 PyObject * obj0 = 0 ;
12959 PyObject * obj1 = 0 ;
12960 PyObject * obj2 = 0 ;
12961 char *kwnames[] = {
12962 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
12963 };
12964
12965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
12967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12968 if (obj1) {
12969 arg2 = (int) SWIG_AsInt(obj1);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 if (obj2) {
12973 {
12974 arg3 = wxString_in_helper(obj2);
12975 if (arg3 == NULL) SWIG_fail;
12976 temp3 = True;
12977 }
12978 }
12979 {
12980 PyThreadState* __tstate = wxPyBeginAllowThreads();
12981 (arg1)->Initialize(arg2,(wxString const &)*arg3);
12982
12983 wxPyEndAllowThreads(__tstate);
12984 if (PyErr_Occurred()) SWIG_fail;
12985 }
12986 Py_INCREF(Py_None); resultobj = Py_None;
12987 {
12988 if (temp3)
12989 delete arg3;
12990 }
12991 return resultobj;
12992 fail:
12993 {
12994 if (temp3)
12995 delete arg3;
12996 }
12997 return NULL;
12998 }
12999
13000
13001 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13002 PyObject *resultobj;
13003 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13004 PyObject * obj0 = 0 ;
13005 char *kwnames[] = {
13006 (char *) "self", NULL
13007 };
13008
13009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13012 {
13013 PyThreadState* __tstate = wxPyBeginAllowThreads();
13014 (arg1)->ClearData();
13015
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) SWIG_fail;
13018 }
13019 Py_INCREF(Py_None); resultobj = Py_None;
13020 return resultobj;
13021 fail:
13022 return NULL;
13023 }
13024
13025
13026 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13027 PyObject *resultobj;
13028 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13029 wxString *arg2 = 0 ;
13030 wxFileType *result;
13031 bool temp2 = False ;
13032 PyObject * obj0 = 0 ;
13033 PyObject * obj1 = 0 ;
13034 char *kwnames[] = {
13035 (char *) "self",(char *) "ext", NULL
13036 };
13037
13038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13041 {
13042 arg2 = wxString_in_helper(obj1);
13043 if (arg2 == NULL) SWIG_fail;
13044 temp2 = True;
13045 }
13046 {
13047 PyThreadState* __tstate = wxPyBeginAllowThreads();
13048 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13049
13050 wxPyEndAllowThreads(__tstate);
13051 if (PyErr_Occurred()) SWIG_fail;
13052 }
13053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13054 {
13055 if (temp2)
13056 delete arg2;
13057 }
13058 return resultobj;
13059 fail:
13060 {
13061 if (temp2)
13062 delete arg2;
13063 }
13064 return NULL;
13065 }
13066
13067
13068 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13069 PyObject *resultobj;
13070 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13071 wxString *arg2 = 0 ;
13072 wxFileType *result;
13073 bool temp2 = False ;
13074 PyObject * obj0 = 0 ;
13075 PyObject * obj1 = 0 ;
13076 char *kwnames[] = {
13077 (char *) "self",(char *) "mimeType", NULL
13078 };
13079
13080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13083 {
13084 arg2 = wxString_in_helper(obj1);
13085 if (arg2 == NULL) SWIG_fail;
13086 temp2 = True;
13087 }
13088 {
13089 PyThreadState* __tstate = wxPyBeginAllowThreads();
13090 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13091
13092 wxPyEndAllowThreads(__tstate);
13093 if (PyErr_Occurred()) SWIG_fail;
13094 }
13095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13096 {
13097 if (temp2)
13098 delete arg2;
13099 }
13100 return resultobj;
13101 fail:
13102 {
13103 if (temp2)
13104 delete arg2;
13105 }
13106 return NULL;
13107 }
13108
13109
13110 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13111 PyObject *resultobj;
13112 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13113 wxString *arg2 = 0 ;
13114 bool arg3 = (bool) False ;
13115 bool result;
13116 bool temp2 = False ;
13117 PyObject * obj0 = 0 ;
13118 PyObject * obj1 = 0 ;
13119 PyObject * obj2 = 0 ;
13120 char *kwnames[] = {
13121 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13122 };
13123
13124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13127 {
13128 arg2 = wxString_in_helper(obj1);
13129 if (arg2 == NULL) SWIG_fail;
13130 temp2 = True;
13131 }
13132 if (obj2) {
13133 arg3 = (bool) SWIG_AsBool(obj2);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13139
13140 wxPyEndAllowThreads(__tstate);
13141 if (PyErr_Occurred()) SWIG_fail;
13142 }
13143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13144 {
13145 if (temp2)
13146 delete arg2;
13147 }
13148 return resultobj;
13149 fail:
13150 {
13151 if (temp2)
13152 delete arg2;
13153 }
13154 return NULL;
13155 }
13156
13157
13158 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13159 PyObject *resultobj;
13160 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13161 wxString *arg2 = 0 ;
13162 bool result;
13163 bool temp2 = False ;
13164 PyObject * obj0 = 0 ;
13165 PyObject * obj1 = 0 ;
13166 char *kwnames[] = {
13167 (char *) "self",(char *) "filename", NULL
13168 };
13169
13170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13173 {
13174 arg2 = wxString_in_helper(obj1);
13175 if (arg2 == NULL) SWIG_fail;
13176 temp2 = True;
13177 }
13178 {
13179 PyThreadState* __tstate = wxPyBeginAllowThreads();
13180 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13181
13182 wxPyEndAllowThreads(__tstate);
13183 if (PyErr_Occurred()) SWIG_fail;
13184 }
13185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13186 {
13187 if (temp2)
13188 delete arg2;
13189 }
13190 return resultobj;
13191 fail:
13192 {
13193 if (temp2)
13194 delete arg2;
13195 }
13196 return NULL;
13197 }
13198
13199
13200 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13201 PyObject *resultobj;
13202 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13203 PyObject *result;
13204 PyObject * obj0 = 0 ;
13205 char *kwnames[] = {
13206 (char *) "self", NULL
13207 };
13208
13209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13212 {
13213 PyThreadState* __tstate = wxPyBeginAllowThreads();
13214 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13215
13216 wxPyEndAllowThreads(__tstate);
13217 if (PyErr_Occurred()) SWIG_fail;
13218 }
13219 resultobj = result;
13220 return resultobj;
13221 fail:
13222 return NULL;
13223 }
13224
13225
13226 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13227 PyObject *resultobj;
13228 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13229 wxFileTypeInfo *arg2 = 0 ;
13230 PyObject * obj0 = 0 ;
13231 PyObject * obj1 = 0 ;
13232 char *kwnames[] = {
13233 (char *) "self",(char *) "ft", NULL
13234 };
13235
13236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13240 SWIG_POINTER_EXCEPTION | 0)) == -1)
13241 SWIG_fail;
13242 if (arg2 == NULL) {
13243 PyErr_SetString(PyExc_TypeError,"null reference");
13244 SWIG_fail;
13245 }
13246 {
13247 PyThreadState* __tstate = wxPyBeginAllowThreads();
13248 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13249
13250 wxPyEndAllowThreads(__tstate);
13251 if (PyErr_Occurred()) SWIG_fail;
13252 }
13253 Py_INCREF(Py_None); resultobj = Py_None;
13254 return resultobj;
13255 fail:
13256 return NULL;
13257 }
13258
13259
13260 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13261 PyObject *resultobj;
13262 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13263 wxFileTypeInfo *arg2 = 0 ;
13264 wxFileType *result;
13265 PyObject * obj0 = 0 ;
13266 PyObject * obj1 = 0 ;
13267 char *kwnames[] = {
13268 (char *) "self",(char *) "ftInfo", NULL
13269 };
13270
13271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13275 SWIG_POINTER_EXCEPTION | 0)) == -1)
13276 SWIG_fail;
13277 if (arg2 == NULL) {
13278 PyErr_SetString(PyExc_TypeError,"null reference");
13279 SWIG_fail;
13280 }
13281 {
13282 PyThreadState* __tstate = wxPyBeginAllowThreads();
13283 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13284
13285 wxPyEndAllowThreads(__tstate);
13286 if (PyErr_Occurred()) SWIG_fail;
13287 }
13288 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13289 return resultobj;
13290 fail:
13291 return NULL;
13292 }
13293
13294
13295 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13296 PyObject *resultobj;
13297 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13298 wxFileType *arg2 = (wxFileType *) 0 ;
13299 bool result;
13300 PyObject * obj0 = 0 ;
13301 PyObject * obj1 = 0 ;
13302 char *kwnames[] = {
13303 (char *) "self",(char *) "ft", NULL
13304 };
13305
13306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13311 {
13312 PyThreadState* __tstate = wxPyBeginAllowThreads();
13313 result = (bool)(arg1)->Unassociate(arg2);
13314
13315 wxPyEndAllowThreads(__tstate);
13316 if (PyErr_Occurred()) SWIG_fail;
13317 }
13318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13319 return resultobj;
13320 fail:
13321 return NULL;
13322 }
13323
13324
13325 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13326 PyObject *resultobj;
13327 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13328 PyObject * obj0 = 0 ;
13329 char *kwnames[] = {
13330 (char *) "self", NULL
13331 };
13332
13333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 delete arg1;
13339
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 Py_INCREF(Py_None); resultobj = Py_None;
13344 return resultobj;
13345 fail:
13346 return NULL;
13347 }
13348
13349
13350 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13351 PyObject *obj;
13352 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13353 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13354 Py_INCREF(obj);
13355 return Py_BuildValue((char *)"");
13356 }
13357 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13358 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13359 return 1;
13360 }
13361
13362
13363 static PyObject *_wrap_ART_TOOLBAR_get() {
13364 PyObject *pyobj;
13365
13366 {
13367 #if wxUSE_UNICODE
13368 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13369 #else
13370 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13371 #endif
13372 }
13373 return pyobj;
13374 }
13375
13376
13377 static int _wrap_ART_MENU_set(PyObject *_val) {
13378 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13379 return 1;
13380 }
13381
13382
13383 static PyObject *_wrap_ART_MENU_get() {
13384 PyObject *pyobj;
13385
13386 {
13387 #if wxUSE_UNICODE
13388 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13389 #else
13390 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13391 #endif
13392 }
13393 return pyobj;
13394 }
13395
13396
13397 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13398 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13399 return 1;
13400 }
13401
13402
13403 static PyObject *_wrap_ART_FRAME_ICON_get() {
13404 PyObject *pyobj;
13405
13406 {
13407 #if wxUSE_UNICODE
13408 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13409 #else
13410 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13411 #endif
13412 }
13413 return pyobj;
13414 }
13415
13416
13417 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13418 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13419 return 1;
13420 }
13421
13422
13423 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13424 PyObject *pyobj;
13425
13426 {
13427 #if wxUSE_UNICODE
13428 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13429 #else
13430 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13431 #endif
13432 }
13433 return pyobj;
13434 }
13435
13436
13437 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13438 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13439 return 1;
13440 }
13441
13442
13443 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13444 PyObject *pyobj;
13445
13446 {
13447 #if wxUSE_UNICODE
13448 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13449 #else
13450 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13451 #endif
13452 }
13453 return pyobj;
13454 }
13455
13456
13457 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13458 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13459 return 1;
13460 }
13461
13462
13463 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13464 PyObject *pyobj;
13465
13466 {
13467 #if wxUSE_UNICODE
13468 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13469 #else
13470 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13471 #endif
13472 }
13473 return pyobj;
13474 }
13475
13476
13477 static int _wrap_ART_OTHER_set(PyObject *_val) {
13478 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13479 return 1;
13480 }
13481
13482
13483 static PyObject *_wrap_ART_OTHER_get() {
13484 PyObject *pyobj;
13485
13486 {
13487 #if wxUSE_UNICODE
13488 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13489 #else
13490 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13491 #endif
13492 }
13493 return pyobj;
13494 }
13495
13496
13497 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13498 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13499 return 1;
13500 }
13501
13502
13503 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13504 PyObject *pyobj;
13505
13506 {
13507 #if wxUSE_UNICODE
13508 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13509 #else
13510 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13511 #endif
13512 }
13513 return pyobj;
13514 }
13515
13516
13517 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13518 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13519 return 1;
13520 }
13521
13522
13523 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13524 PyObject *pyobj;
13525
13526 {
13527 #if wxUSE_UNICODE
13528 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13529 #else
13530 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13531 #endif
13532 }
13533 return pyobj;
13534 }
13535
13536
13537 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13538 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13539 return 1;
13540 }
13541
13542
13543 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13544 PyObject *pyobj;
13545
13546 {
13547 #if wxUSE_UNICODE
13548 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13549 #else
13550 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13551 #endif
13552 }
13553 return pyobj;
13554 }
13555
13556
13557 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13558 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13559 return 1;
13560 }
13561
13562
13563 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13564 PyObject *pyobj;
13565
13566 {
13567 #if wxUSE_UNICODE
13568 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13569 #else
13570 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13571 #endif
13572 }
13573 return pyobj;
13574 }
13575
13576
13577 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13578 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13579 return 1;
13580 }
13581
13582
13583 static PyObject *_wrap_ART_HELP_BOOK_get() {
13584 PyObject *pyobj;
13585
13586 {
13587 #if wxUSE_UNICODE
13588 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13589 #else
13590 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13591 #endif
13592 }
13593 return pyobj;
13594 }
13595
13596
13597 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13598 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13599 return 1;
13600 }
13601
13602
13603 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13604 PyObject *pyobj;
13605
13606 {
13607 #if wxUSE_UNICODE
13608 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13609 #else
13610 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13611 #endif
13612 }
13613 return pyobj;
13614 }
13615
13616
13617 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13618 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13619 return 1;
13620 }
13621
13622
13623 static PyObject *_wrap_ART_HELP_PAGE_get() {
13624 PyObject *pyobj;
13625
13626 {
13627 #if wxUSE_UNICODE
13628 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13629 #else
13630 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13631 #endif
13632 }
13633 return pyobj;
13634 }
13635
13636
13637 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13638 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13639 return 1;
13640 }
13641
13642
13643 static PyObject *_wrap_ART_GO_BACK_get() {
13644 PyObject *pyobj;
13645
13646 {
13647 #if wxUSE_UNICODE
13648 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13649 #else
13650 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13651 #endif
13652 }
13653 return pyobj;
13654 }
13655
13656
13657 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13658 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13659 return 1;
13660 }
13661
13662
13663 static PyObject *_wrap_ART_GO_FORWARD_get() {
13664 PyObject *pyobj;
13665
13666 {
13667 #if wxUSE_UNICODE
13668 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13669 #else
13670 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13671 #endif
13672 }
13673 return pyobj;
13674 }
13675
13676
13677 static int _wrap_ART_GO_UP_set(PyObject *_val) {
13678 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13679 return 1;
13680 }
13681
13682
13683 static PyObject *_wrap_ART_GO_UP_get() {
13684 PyObject *pyobj;
13685
13686 {
13687 #if wxUSE_UNICODE
13688 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13689 #else
13690 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13691 #endif
13692 }
13693 return pyobj;
13694 }
13695
13696
13697 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13698 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13699 return 1;
13700 }
13701
13702
13703 static PyObject *_wrap_ART_GO_DOWN_get() {
13704 PyObject *pyobj;
13705
13706 {
13707 #if wxUSE_UNICODE
13708 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13709 #else
13710 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13711 #endif
13712 }
13713 return pyobj;
13714 }
13715
13716
13717 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
13718 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13719 return 1;
13720 }
13721
13722
13723 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13724 PyObject *pyobj;
13725
13726 {
13727 #if wxUSE_UNICODE
13728 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13729 #else
13730 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13731 #endif
13732 }
13733 return pyobj;
13734 }
13735
13736
13737 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
13738 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13739 return 1;
13740 }
13741
13742
13743 static PyObject *_wrap_ART_GO_HOME_get() {
13744 PyObject *pyobj;
13745
13746 {
13747 #if wxUSE_UNICODE
13748 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13749 #else
13750 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13751 #endif
13752 }
13753 return pyobj;
13754 }
13755
13756
13757 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
13758 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13759 return 1;
13760 }
13761
13762
13763 static PyObject *_wrap_ART_FILE_OPEN_get() {
13764 PyObject *pyobj;
13765
13766 {
13767 #if wxUSE_UNICODE
13768 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13769 #else
13770 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13771 #endif
13772 }
13773 return pyobj;
13774 }
13775
13776
13777 static int _wrap_ART_PRINT_set(PyObject *_val) {
13778 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13779 return 1;
13780 }
13781
13782
13783 static PyObject *_wrap_ART_PRINT_get() {
13784 PyObject *pyobj;
13785
13786 {
13787 #if wxUSE_UNICODE
13788 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13789 #else
13790 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13791 #endif
13792 }
13793 return pyobj;
13794 }
13795
13796
13797 static int _wrap_ART_HELP_set(PyObject *_val) {
13798 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13799 return 1;
13800 }
13801
13802
13803 static PyObject *_wrap_ART_HELP_get() {
13804 PyObject *pyobj;
13805
13806 {
13807 #if wxUSE_UNICODE
13808 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13809 #else
13810 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13811 #endif
13812 }
13813 return pyobj;
13814 }
13815
13816
13817 static int _wrap_ART_TIP_set(PyObject *_val) {
13818 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
13819 return 1;
13820 }
13821
13822
13823 static PyObject *_wrap_ART_TIP_get() {
13824 PyObject *pyobj;
13825
13826 {
13827 #if wxUSE_UNICODE
13828 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13829 #else
13830 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
13831 #endif
13832 }
13833 return pyobj;
13834 }
13835
13836
13837 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
13838 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
13839 return 1;
13840 }
13841
13842
13843 static PyObject *_wrap_ART_REPORT_VIEW_get() {
13844 PyObject *pyobj;
13845
13846 {
13847 #if wxUSE_UNICODE
13848 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13849 #else
13850 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
13851 #endif
13852 }
13853 return pyobj;
13854 }
13855
13856
13857 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
13858 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
13859 return 1;
13860 }
13861
13862
13863 static PyObject *_wrap_ART_LIST_VIEW_get() {
13864 PyObject *pyobj;
13865
13866 {
13867 #if wxUSE_UNICODE
13868 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13869 #else
13870 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
13871 #endif
13872 }
13873 return pyobj;
13874 }
13875
13876
13877 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
13878 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
13879 return 1;
13880 }
13881
13882
13883 static PyObject *_wrap_ART_NEW_DIR_get() {
13884 PyObject *pyobj;
13885
13886 {
13887 #if wxUSE_UNICODE
13888 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13889 #else
13890 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
13891 #endif
13892 }
13893 return pyobj;
13894 }
13895
13896
13897 static int _wrap_ART_FOLDER_set(PyObject *_val) {
13898 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
13899 return 1;
13900 }
13901
13902
13903 static PyObject *_wrap_ART_FOLDER_get() {
13904 PyObject *pyobj;
13905
13906 {
13907 #if wxUSE_UNICODE
13908 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
13909 #else
13910 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
13911 #endif
13912 }
13913 return pyobj;
13914 }
13915
13916
13917 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
13918 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
13919 return 1;
13920 }
13921
13922
13923 static PyObject *_wrap_ART_GO_DIR_UP_get() {
13924 PyObject *pyobj;
13925
13926 {
13927 #if wxUSE_UNICODE
13928 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
13929 #else
13930 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
13931 #endif
13932 }
13933 return pyobj;
13934 }
13935
13936
13937 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
13938 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
13939 return 1;
13940 }
13941
13942
13943 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
13944 PyObject *pyobj;
13945
13946 {
13947 #if wxUSE_UNICODE
13948 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
13949 #else
13950 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
13951 #endif
13952 }
13953 return pyobj;
13954 }
13955
13956
13957 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
13958 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
13959 return 1;
13960 }
13961
13962
13963 static PyObject *_wrap_ART_NORMAL_FILE_get() {
13964 PyObject *pyobj;
13965
13966 {
13967 #if wxUSE_UNICODE
13968 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
13969 #else
13970 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
13971 #endif
13972 }
13973 return pyobj;
13974 }
13975
13976
13977 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
13978 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
13979 return 1;
13980 }
13981
13982
13983 static PyObject *_wrap_ART_TICK_MARK_get() {
13984 PyObject *pyobj;
13985
13986 {
13987 #if wxUSE_UNICODE
13988 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
13989 #else
13990 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
13991 #endif
13992 }
13993 return pyobj;
13994 }
13995
13996
13997 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
13998 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
13999 return 1;
14000 }
14001
14002
14003 static PyObject *_wrap_ART_CROSS_MARK_get() {
14004 PyObject *pyobj;
14005
14006 {
14007 #if wxUSE_UNICODE
14008 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14009 #else
14010 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14011 #endif
14012 }
14013 return pyobj;
14014 }
14015
14016
14017 static int _wrap_ART_ERROR_set(PyObject *_val) {
14018 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14019 return 1;
14020 }
14021
14022
14023 static PyObject *_wrap_ART_ERROR_get() {
14024 PyObject *pyobj;
14025
14026 {
14027 #if wxUSE_UNICODE
14028 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14029 #else
14030 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14031 #endif
14032 }
14033 return pyobj;
14034 }
14035
14036
14037 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14038 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14039 return 1;
14040 }
14041
14042
14043 static PyObject *_wrap_ART_QUESTION_get() {
14044 PyObject *pyobj;
14045
14046 {
14047 #if wxUSE_UNICODE
14048 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14049 #else
14050 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14051 #endif
14052 }
14053 return pyobj;
14054 }
14055
14056
14057 static int _wrap_ART_WARNING_set(PyObject *_val) {
14058 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14059 return 1;
14060 }
14061
14062
14063 static PyObject *_wrap_ART_WARNING_get() {
14064 PyObject *pyobj;
14065
14066 {
14067 #if wxUSE_UNICODE
14068 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14069 #else
14070 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14071 #endif
14072 }
14073 return pyobj;
14074 }
14075
14076
14077 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14078 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14079 return 1;
14080 }
14081
14082
14083 static PyObject *_wrap_ART_INFORMATION_get() {
14084 PyObject *pyobj;
14085
14086 {
14087 #if wxUSE_UNICODE
14088 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14089 #else
14090 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14091 #endif
14092 }
14093 return pyobj;
14094 }
14095
14096
14097 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14098 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14099 return 1;
14100 }
14101
14102
14103 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14104 PyObject *pyobj;
14105
14106 {
14107 #if wxUSE_UNICODE
14108 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14109 #else
14110 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14111 #endif
14112 }
14113 return pyobj;
14114 }
14115
14116
14117 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14118 PyObject *resultobj;
14119 wxPyArtProvider *result;
14120 char *kwnames[] = {
14121 NULL
14122 };
14123
14124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14125 {
14126 PyThreadState* __tstate = wxPyBeginAllowThreads();
14127 result = (wxPyArtProvider *)new wxPyArtProvider();
14128
14129 wxPyEndAllowThreads(__tstate);
14130 if (PyErr_Occurred()) SWIG_fail;
14131 }
14132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14133 return resultobj;
14134 fail:
14135 return NULL;
14136 }
14137
14138
14139 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14140 PyObject *resultobj;
14141 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14142 PyObject *arg2 = (PyObject *) 0 ;
14143 PyObject *arg3 = (PyObject *) 0 ;
14144 PyObject * obj0 = 0 ;
14145 PyObject * obj1 = 0 ;
14146 PyObject * obj2 = 0 ;
14147 char *kwnames[] = {
14148 (char *) "self",(char *) "self",(char *) "_class", NULL
14149 };
14150
14151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14154 arg2 = obj1;
14155 arg3 = obj2;
14156 {
14157 PyThreadState* __tstate = wxPyBeginAllowThreads();
14158 (arg1)->_setCallbackInfo(arg2,arg3);
14159
14160 wxPyEndAllowThreads(__tstate);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 }
14163 Py_INCREF(Py_None); resultobj = Py_None;
14164 return resultobj;
14165 fail:
14166 return NULL;
14167 }
14168
14169
14170 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14171 PyObject *resultobj;
14172 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14173 PyObject * obj0 = 0 ;
14174 char *kwnames[] = {
14175 (char *) "provider", NULL
14176 };
14177
14178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14181 {
14182 PyThreadState* __tstate = wxPyBeginAllowThreads();
14183 wxPyArtProvider::PushProvider(arg1);
14184
14185 wxPyEndAllowThreads(__tstate);
14186 if (PyErr_Occurred()) SWIG_fail;
14187 }
14188 Py_INCREF(Py_None); resultobj = Py_None;
14189 return resultobj;
14190 fail:
14191 return NULL;
14192 }
14193
14194
14195 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14196 PyObject *resultobj;
14197 bool result;
14198 char *kwnames[] = {
14199 NULL
14200 };
14201
14202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 result = (bool)wxPyArtProvider::PopProvider();
14206
14207 wxPyEndAllowThreads(__tstate);
14208 if (PyErr_Occurred()) SWIG_fail;
14209 }
14210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14211 return resultobj;
14212 fail:
14213 return NULL;
14214 }
14215
14216
14217 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14218 PyObject *resultobj;
14219 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14220 bool result;
14221 PyObject * obj0 = 0 ;
14222 char *kwnames[] = {
14223 (char *) "provider", NULL
14224 };
14225
14226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14229 {
14230 PyThreadState* __tstate = wxPyBeginAllowThreads();
14231 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14232
14233 wxPyEndAllowThreads(__tstate);
14234 if (PyErr_Occurred()) SWIG_fail;
14235 }
14236 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14237 return resultobj;
14238 fail:
14239 return NULL;
14240 }
14241
14242
14243 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14244 PyObject *resultobj;
14245 wxString *arg1 = 0 ;
14246 wxString const &arg2_defvalue = wxPyART_OTHER ;
14247 wxString *arg2 = (wxString *) &arg2_defvalue ;
14248 wxSize const &arg3_defvalue = wxDefaultSize ;
14249 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14250 wxBitmap result;
14251 bool temp1 = False ;
14252 bool temp2 = False ;
14253 wxSize temp3 ;
14254 PyObject * obj0 = 0 ;
14255 PyObject * obj1 = 0 ;
14256 PyObject * obj2 = 0 ;
14257 char *kwnames[] = {
14258 (char *) "id",(char *) "client",(char *) "size", NULL
14259 };
14260
14261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14262 {
14263 arg1 = wxString_in_helper(obj0);
14264 if (arg1 == NULL) SWIG_fail;
14265 temp1 = True;
14266 }
14267 if (obj1) {
14268 {
14269 arg2 = wxString_in_helper(obj1);
14270 if (arg2 == NULL) SWIG_fail;
14271 temp2 = True;
14272 }
14273 }
14274 if (obj2) {
14275 {
14276 arg3 = &temp3;
14277 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14278 }
14279 }
14280 {
14281 PyThreadState* __tstate = wxPyBeginAllowThreads();
14282 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14283
14284 wxPyEndAllowThreads(__tstate);
14285 if (PyErr_Occurred()) SWIG_fail;
14286 }
14287 {
14288 wxBitmap * resultptr;
14289 resultptr = new wxBitmap((wxBitmap &) result);
14290 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14291 }
14292 {
14293 if (temp1)
14294 delete arg1;
14295 }
14296 {
14297 if (temp2)
14298 delete arg2;
14299 }
14300 return resultobj;
14301 fail:
14302 {
14303 if (temp1)
14304 delete arg1;
14305 }
14306 {
14307 if (temp2)
14308 delete arg2;
14309 }
14310 return NULL;
14311 }
14312
14313
14314 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14315 PyObject *resultobj;
14316 wxString *arg1 = 0 ;
14317 wxString const &arg2_defvalue = wxPyART_OTHER ;
14318 wxString *arg2 = (wxString *) &arg2_defvalue ;
14319 wxSize const &arg3_defvalue = wxDefaultSize ;
14320 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14321 wxIcon result;
14322 bool temp1 = False ;
14323 bool temp2 = False ;
14324 wxSize temp3 ;
14325 PyObject * obj0 = 0 ;
14326 PyObject * obj1 = 0 ;
14327 PyObject * obj2 = 0 ;
14328 char *kwnames[] = {
14329 (char *) "id",(char *) "client",(char *) "size", NULL
14330 };
14331
14332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14333 {
14334 arg1 = wxString_in_helper(obj0);
14335 if (arg1 == NULL) SWIG_fail;
14336 temp1 = True;
14337 }
14338 if (obj1) {
14339 {
14340 arg2 = wxString_in_helper(obj1);
14341 if (arg2 == NULL) SWIG_fail;
14342 temp2 = True;
14343 }
14344 }
14345 if (obj2) {
14346 {
14347 arg3 = &temp3;
14348 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14349 }
14350 }
14351 {
14352 PyThreadState* __tstate = wxPyBeginAllowThreads();
14353 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14354
14355 wxPyEndAllowThreads(__tstate);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 }
14358 {
14359 wxIcon * resultptr;
14360 resultptr = new wxIcon((wxIcon &) result);
14361 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14362 }
14363 {
14364 if (temp1)
14365 delete arg1;
14366 }
14367 {
14368 if (temp2)
14369 delete arg2;
14370 }
14371 return resultobj;
14372 fail:
14373 {
14374 if (temp1)
14375 delete arg1;
14376 }
14377 {
14378 if (temp2)
14379 delete arg2;
14380 }
14381 return NULL;
14382 }
14383
14384
14385 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14386 PyObject *resultobj;
14387 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14388 PyObject * obj0 = 0 ;
14389 char *kwnames[] = {
14390 (char *) "self", NULL
14391 };
14392
14393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14396 {
14397 PyThreadState* __tstate = wxPyBeginAllowThreads();
14398 wxPyArtProvider_Destroy(arg1);
14399
14400 wxPyEndAllowThreads(__tstate);
14401 if (PyErr_Occurred()) SWIG_fail;
14402 }
14403 Py_INCREF(Py_None); resultobj = Py_None;
14404 return resultobj;
14405 fail:
14406 return NULL;
14407 }
14408
14409
14410 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14411 PyObject *obj;
14412 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14413 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14414 Py_INCREF(obj);
14415 return Py_BuildValue((char *)"");
14416 }
14417 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14418 PyObject *resultobj;
14419 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14420 PyObject * obj0 = 0 ;
14421 char *kwnames[] = {
14422 (char *) "self", NULL
14423 };
14424
14425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 delete arg1;
14431
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 Py_INCREF(Py_None); resultobj = Py_None;
14436 return resultobj;
14437 fail:
14438 return NULL;
14439 }
14440
14441
14442 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14443 PyObject *resultobj;
14444 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14445 wxConfigBase *result;
14446 PyObject * obj0 = 0 ;
14447 char *kwnames[] = {
14448 (char *) "config", NULL
14449 };
14450
14451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14454 {
14455 PyThreadState* __tstate = wxPyBeginAllowThreads();
14456 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14457
14458 wxPyEndAllowThreads(__tstate);
14459 if (PyErr_Occurred()) SWIG_fail;
14460 }
14461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14462 return resultobj;
14463 fail:
14464 return NULL;
14465 }
14466
14467
14468 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14469 PyObject *resultobj;
14470 bool arg1 = (bool) True ;
14471 wxConfigBase *result;
14472 PyObject * obj0 = 0 ;
14473 char *kwnames[] = {
14474 (char *) "createOnDemand", NULL
14475 };
14476
14477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14478 if (obj0) {
14479 arg1 = (bool) SWIG_AsBool(obj0);
14480 if (PyErr_Occurred()) SWIG_fail;
14481 }
14482 {
14483 PyThreadState* __tstate = wxPyBeginAllowThreads();
14484 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14485
14486 wxPyEndAllowThreads(__tstate);
14487 if (PyErr_Occurred()) SWIG_fail;
14488 }
14489 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14490 return resultobj;
14491 fail:
14492 return NULL;
14493 }
14494
14495
14496 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14497 PyObject *resultobj;
14498 wxConfigBase *result;
14499 char *kwnames[] = {
14500 NULL
14501 };
14502
14503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14504 {
14505 PyThreadState* __tstate = wxPyBeginAllowThreads();
14506 result = (wxConfigBase *)wxConfigBase::Create();
14507
14508 wxPyEndAllowThreads(__tstate);
14509 if (PyErr_Occurred()) SWIG_fail;
14510 }
14511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14512 return resultobj;
14513 fail:
14514 return NULL;
14515 }
14516
14517
14518 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14519 PyObject *resultobj;
14520 char *kwnames[] = {
14521 NULL
14522 };
14523
14524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14525 {
14526 PyThreadState* __tstate = wxPyBeginAllowThreads();
14527 wxConfigBase::DontCreateOnDemand();
14528
14529 wxPyEndAllowThreads(__tstate);
14530 if (PyErr_Occurred()) SWIG_fail;
14531 }
14532 Py_INCREF(Py_None); resultobj = Py_None;
14533 return resultobj;
14534 fail:
14535 return NULL;
14536 }
14537
14538
14539 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14540 PyObject *resultobj;
14541 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14542 wxString *arg2 = 0 ;
14543 bool temp2 = False ;
14544 PyObject * obj0 = 0 ;
14545 PyObject * obj1 = 0 ;
14546 char *kwnames[] = {
14547 (char *) "self",(char *) "path", NULL
14548 };
14549
14550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14553 {
14554 arg2 = wxString_in_helper(obj1);
14555 if (arg2 == NULL) SWIG_fail;
14556 temp2 = True;
14557 }
14558 {
14559 PyThreadState* __tstate = wxPyBeginAllowThreads();
14560 (arg1)->SetPath((wxString const &)*arg2);
14561
14562 wxPyEndAllowThreads(__tstate);
14563 if (PyErr_Occurred()) SWIG_fail;
14564 }
14565 Py_INCREF(Py_None); resultobj = Py_None;
14566 {
14567 if (temp2)
14568 delete arg2;
14569 }
14570 return resultobj;
14571 fail:
14572 {
14573 if (temp2)
14574 delete arg2;
14575 }
14576 return NULL;
14577 }
14578
14579
14580 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14581 PyObject *resultobj;
14582 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14583 wxString *result;
14584 PyObject * obj0 = 0 ;
14585 char *kwnames[] = {
14586 (char *) "self", NULL
14587 };
14588
14589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 {
14595 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14596 result = (wxString *) &_result_ref;
14597 }
14598
14599 wxPyEndAllowThreads(__tstate);
14600 if (PyErr_Occurred()) SWIG_fail;
14601 }
14602 {
14603 #if wxUSE_UNICODE
14604 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14605 #else
14606 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14607 #endif
14608 }
14609 return resultobj;
14610 fail:
14611 return NULL;
14612 }
14613
14614
14615 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14616 PyObject *resultobj;
14617 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14618 PyObject *result;
14619 PyObject * obj0 = 0 ;
14620 char *kwnames[] = {
14621 (char *) "self", NULL
14622 };
14623
14624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14627 {
14628 PyThreadState* __tstate = wxPyBeginAllowThreads();
14629 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14630
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 resultobj = result;
14635 return resultobj;
14636 fail:
14637 return NULL;
14638 }
14639
14640
14641 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14642 PyObject *resultobj;
14643 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14644 long arg2 ;
14645 PyObject *result;
14646 PyObject * obj0 = 0 ;
14647 PyObject * obj1 = 0 ;
14648 char *kwnames[] = {
14649 (char *) "self",(char *) "index", NULL
14650 };
14651
14652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14655 arg2 = (long) SWIG_AsLong(obj1);
14656 if (PyErr_Occurred()) SWIG_fail;
14657 {
14658 PyThreadState* __tstate = wxPyBeginAllowThreads();
14659 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14660
14661 wxPyEndAllowThreads(__tstate);
14662 if (PyErr_Occurred()) SWIG_fail;
14663 }
14664 resultobj = result;
14665 return resultobj;
14666 fail:
14667 return NULL;
14668 }
14669
14670
14671 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14672 PyObject *resultobj;
14673 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14674 PyObject *result;
14675 PyObject * obj0 = 0 ;
14676 char *kwnames[] = {
14677 (char *) "self", NULL
14678 };
14679
14680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14683 {
14684 PyThreadState* __tstate = wxPyBeginAllowThreads();
14685 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14686
14687 wxPyEndAllowThreads(__tstate);
14688 if (PyErr_Occurred()) SWIG_fail;
14689 }
14690 resultobj = result;
14691 return resultobj;
14692 fail:
14693 return NULL;
14694 }
14695
14696
14697 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14698 PyObject *resultobj;
14699 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14700 long arg2 ;
14701 PyObject *result;
14702 PyObject * obj0 = 0 ;
14703 PyObject * obj1 = 0 ;
14704 char *kwnames[] = {
14705 (char *) "self",(char *) "index", NULL
14706 };
14707
14708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14711 arg2 = (long) SWIG_AsLong(obj1);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 {
14714 PyThreadState* __tstate = wxPyBeginAllowThreads();
14715 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14716
14717 wxPyEndAllowThreads(__tstate);
14718 if (PyErr_Occurred()) SWIG_fail;
14719 }
14720 resultobj = result;
14721 return resultobj;
14722 fail:
14723 return NULL;
14724 }
14725
14726
14727 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14728 PyObject *resultobj;
14729 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14730 bool arg2 = (bool) False ;
14731 size_t result;
14732 PyObject * obj0 = 0 ;
14733 PyObject * obj1 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self",(char *) "recursive", NULL
14736 };
14737
14738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14741 if (obj1) {
14742 arg2 = (bool) SWIG_AsBool(obj1);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 }
14745 {
14746 PyThreadState* __tstate = wxPyBeginAllowThreads();
14747 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14748
14749 wxPyEndAllowThreads(__tstate);
14750 if (PyErr_Occurred()) SWIG_fail;
14751 }
14752 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14753 return resultobj;
14754 fail:
14755 return NULL;
14756 }
14757
14758
14759 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
14760 PyObject *resultobj;
14761 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14762 bool arg2 = (bool) False ;
14763 size_t result;
14764 PyObject * obj0 = 0 ;
14765 PyObject * obj1 = 0 ;
14766 char *kwnames[] = {
14767 (char *) "self",(char *) "recursive", NULL
14768 };
14769
14770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14773 if (obj1) {
14774 arg2 = (bool) SWIG_AsBool(obj1);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 }
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14780
14781 wxPyEndAllowThreads(__tstate);
14782 if (PyErr_Occurred()) SWIG_fail;
14783 }
14784 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14785 return resultobj;
14786 fail:
14787 return NULL;
14788 }
14789
14790
14791 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14792 PyObject *resultobj;
14793 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14794 wxString *arg2 = 0 ;
14795 bool result;
14796 bool temp2 = False ;
14797 PyObject * obj0 = 0 ;
14798 PyObject * obj1 = 0 ;
14799 char *kwnames[] = {
14800 (char *) "self",(char *) "name", NULL
14801 };
14802
14803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14806 {
14807 arg2 = wxString_in_helper(obj1);
14808 if (arg2 == NULL) SWIG_fail;
14809 temp2 = True;
14810 }
14811 {
14812 PyThreadState* __tstate = wxPyBeginAllowThreads();
14813 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
14814
14815 wxPyEndAllowThreads(__tstate);
14816 if (PyErr_Occurred()) SWIG_fail;
14817 }
14818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14819 {
14820 if (temp2)
14821 delete arg2;
14822 }
14823 return resultobj;
14824 fail:
14825 {
14826 if (temp2)
14827 delete arg2;
14828 }
14829 return NULL;
14830 }
14831
14832
14833 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14834 PyObject *resultobj;
14835 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14836 wxString *arg2 = 0 ;
14837 bool result;
14838 bool temp2 = False ;
14839 PyObject * obj0 = 0 ;
14840 PyObject * obj1 = 0 ;
14841 char *kwnames[] = {
14842 (char *) "self",(char *) "name", NULL
14843 };
14844
14845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
14846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14848 {
14849 arg2 = wxString_in_helper(obj1);
14850 if (arg2 == NULL) SWIG_fail;
14851 temp2 = True;
14852 }
14853 {
14854 PyThreadState* __tstate = wxPyBeginAllowThreads();
14855 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
14856
14857 wxPyEndAllowThreads(__tstate);
14858 if (PyErr_Occurred()) SWIG_fail;
14859 }
14860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14861 {
14862 if (temp2)
14863 delete arg2;
14864 }
14865 return resultobj;
14866 fail:
14867 {
14868 if (temp2)
14869 delete arg2;
14870 }
14871 return NULL;
14872 }
14873
14874
14875 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
14876 PyObject *resultobj;
14877 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14878 wxString *arg2 = 0 ;
14879 bool result;
14880 bool temp2 = False ;
14881 PyObject * obj0 = 0 ;
14882 PyObject * obj1 = 0 ;
14883 char *kwnames[] = {
14884 (char *) "self",(char *) "name", NULL
14885 };
14886
14887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
14888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14890 {
14891 arg2 = wxString_in_helper(obj1);
14892 if (arg2 == NULL) SWIG_fail;
14893 temp2 = True;
14894 }
14895 {
14896 PyThreadState* __tstate = wxPyBeginAllowThreads();
14897 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
14898
14899 wxPyEndAllowThreads(__tstate);
14900 if (PyErr_Occurred()) SWIG_fail;
14901 }
14902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14903 {
14904 if (temp2)
14905 delete arg2;
14906 }
14907 return resultobj;
14908 fail:
14909 {
14910 if (temp2)
14911 delete arg2;
14912 }
14913 return NULL;
14914 }
14915
14916
14917 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
14918 PyObject *resultobj;
14919 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14920 wxString *arg2 = 0 ;
14921 int result;
14922 bool temp2 = False ;
14923 PyObject * obj0 = 0 ;
14924 PyObject * obj1 = 0 ;
14925 char *kwnames[] = {
14926 (char *) "self",(char *) "name", NULL
14927 };
14928
14929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
14930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14932 {
14933 arg2 = wxString_in_helper(obj1);
14934 if (arg2 == NULL) SWIG_fail;
14935 temp2 = True;
14936 }
14937 {
14938 PyThreadState* __tstate = wxPyBeginAllowThreads();
14939 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
14940
14941 wxPyEndAllowThreads(__tstate);
14942 if (PyErr_Occurred()) SWIG_fail;
14943 }
14944 resultobj = SWIG_FromInt((int)result);
14945 {
14946 if (temp2)
14947 delete arg2;
14948 }
14949 return resultobj;
14950 fail:
14951 {
14952 if (temp2)
14953 delete arg2;
14954 }
14955 return NULL;
14956 }
14957
14958
14959 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
14960 PyObject *resultobj;
14961 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14962 wxString *arg2 = 0 ;
14963 wxString const &arg3_defvalue = wxPyEmptyString ;
14964 wxString *arg3 = (wxString *) &arg3_defvalue ;
14965 wxString result;
14966 bool temp2 = False ;
14967 bool temp3 = False ;
14968 PyObject * obj0 = 0 ;
14969 PyObject * obj1 = 0 ;
14970 PyObject * obj2 = 0 ;
14971 char *kwnames[] = {
14972 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
14973 };
14974
14975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
14976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14978 {
14979 arg2 = wxString_in_helper(obj1);
14980 if (arg2 == NULL) SWIG_fail;
14981 temp2 = True;
14982 }
14983 if (obj2) {
14984 {
14985 arg3 = wxString_in_helper(obj2);
14986 if (arg3 == NULL) SWIG_fail;
14987 temp3 = True;
14988 }
14989 }
14990 {
14991 PyThreadState* __tstate = wxPyBeginAllowThreads();
14992 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
14993
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 {
14998 #if wxUSE_UNICODE
14999 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15000 #else
15001 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15002 #endif
15003 }
15004 {
15005 if (temp2)
15006 delete arg2;
15007 }
15008 {
15009 if (temp3)
15010 delete arg3;
15011 }
15012 return resultobj;
15013 fail:
15014 {
15015 if (temp2)
15016 delete arg2;
15017 }
15018 {
15019 if (temp3)
15020 delete arg3;
15021 }
15022 return NULL;
15023 }
15024
15025
15026 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15027 PyObject *resultobj;
15028 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15029 wxString *arg2 = 0 ;
15030 long arg3 = (long) 0 ;
15031 long result;
15032 bool temp2 = False ;
15033 PyObject * obj0 = 0 ;
15034 PyObject * obj1 = 0 ;
15035 PyObject * obj2 = 0 ;
15036 char *kwnames[] = {
15037 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15038 };
15039
15040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15043 {
15044 arg2 = wxString_in_helper(obj1);
15045 if (arg2 == NULL) SWIG_fail;
15046 temp2 = True;
15047 }
15048 if (obj2) {
15049 arg3 = (long) SWIG_AsLong(obj2);
15050 if (PyErr_Occurred()) SWIG_fail;
15051 }
15052 {
15053 PyThreadState* __tstate = wxPyBeginAllowThreads();
15054 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15055
15056 wxPyEndAllowThreads(__tstate);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 }
15059 resultobj = SWIG_FromLong((long)result);
15060 {
15061 if (temp2)
15062 delete arg2;
15063 }
15064 return resultobj;
15065 fail:
15066 {
15067 if (temp2)
15068 delete arg2;
15069 }
15070 return NULL;
15071 }
15072
15073
15074 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15075 PyObject *resultobj;
15076 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15077 wxString *arg2 = 0 ;
15078 double arg3 = (double) 0.0 ;
15079 double result;
15080 bool temp2 = False ;
15081 PyObject * obj0 = 0 ;
15082 PyObject * obj1 = 0 ;
15083 PyObject * obj2 = 0 ;
15084 char *kwnames[] = {
15085 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15086 };
15087
15088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15091 {
15092 arg2 = wxString_in_helper(obj1);
15093 if (arg2 == NULL) SWIG_fail;
15094 temp2 = True;
15095 }
15096 if (obj2) {
15097 arg3 = (double) SWIG_AsDouble(obj2);
15098 if (PyErr_Occurred()) SWIG_fail;
15099 }
15100 {
15101 PyThreadState* __tstate = wxPyBeginAllowThreads();
15102 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15103
15104 wxPyEndAllowThreads(__tstate);
15105 if (PyErr_Occurred()) SWIG_fail;
15106 }
15107 resultobj = SWIG_FromDouble((double)result);
15108 {
15109 if (temp2)
15110 delete arg2;
15111 }
15112 return resultobj;
15113 fail:
15114 {
15115 if (temp2)
15116 delete arg2;
15117 }
15118 return NULL;
15119 }
15120
15121
15122 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15123 PyObject *resultobj;
15124 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15125 wxString *arg2 = 0 ;
15126 bool arg3 = (bool) False ;
15127 bool result;
15128 bool temp2 = False ;
15129 PyObject * obj0 = 0 ;
15130 PyObject * obj1 = 0 ;
15131 PyObject * obj2 = 0 ;
15132 char *kwnames[] = {
15133 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15134 };
15135
15136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15139 {
15140 arg2 = wxString_in_helper(obj1);
15141 if (arg2 == NULL) SWIG_fail;
15142 temp2 = True;
15143 }
15144 if (obj2) {
15145 arg3 = (bool) SWIG_AsBool(obj2);
15146 if (PyErr_Occurred()) SWIG_fail;
15147 }
15148 {
15149 PyThreadState* __tstate = wxPyBeginAllowThreads();
15150 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15151
15152 wxPyEndAllowThreads(__tstate);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 }
15155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15156 {
15157 if (temp2)
15158 delete arg2;
15159 }
15160 return resultobj;
15161 fail:
15162 {
15163 if (temp2)
15164 delete arg2;
15165 }
15166 return NULL;
15167 }
15168
15169
15170 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15171 PyObject *resultobj;
15172 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15173 wxString *arg2 = 0 ;
15174 wxString *arg3 = 0 ;
15175 bool result;
15176 bool temp2 = False ;
15177 bool temp3 = False ;
15178 PyObject * obj0 = 0 ;
15179 PyObject * obj1 = 0 ;
15180 PyObject * obj2 = 0 ;
15181 char *kwnames[] = {
15182 (char *) "self",(char *) "key",(char *) "value", NULL
15183 };
15184
15185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15188 {
15189 arg2 = wxString_in_helper(obj1);
15190 if (arg2 == NULL) SWIG_fail;
15191 temp2 = True;
15192 }
15193 {
15194 arg3 = wxString_in_helper(obj2);
15195 if (arg3 == NULL) SWIG_fail;
15196 temp3 = True;
15197 }
15198 {
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15201
15202 wxPyEndAllowThreads(__tstate);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 }
15205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15206 {
15207 if (temp2)
15208 delete arg2;
15209 }
15210 {
15211 if (temp3)
15212 delete arg3;
15213 }
15214 return resultobj;
15215 fail:
15216 {
15217 if (temp2)
15218 delete arg2;
15219 }
15220 {
15221 if (temp3)
15222 delete arg3;
15223 }
15224 return NULL;
15225 }
15226
15227
15228 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15229 PyObject *resultobj;
15230 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15231 wxString *arg2 = 0 ;
15232 long arg3 ;
15233 bool result;
15234 bool temp2 = False ;
15235 PyObject * obj0 = 0 ;
15236 PyObject * obj1 = 0 ;
15237 PyObject * obj2 = 0 ;
15238 char *kwnames[] = {
15239 (char *) "self",(char *) "key",(char *) "value", NULL
15240 };
15241
15242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15245 {
15246 arg2 = wxString_in_helper(obj1);
15247 if (arg2 == NULL) SWIG_fail;
15248 temp2 = True;
15249 }
15250 arg3 = (long) SWIG_AsLong(obj2);
15251 if (PyErr_Occurred()) SWIG_fail;
15252 {
15253 PyThreadState* __tstate = wxPyBeginAllowThreads();
15254 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15255
15256 wxPyEndAllowThreads(__tstate);
15257 if (PyErr_Occurred()) SWIG_fail;
15258 }
15259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15260 {
15261 if (temp2)
15262 delete arg2;
15263 }
15264 return resultobj;
15265 fail:
15266 {
15267 if (temp2)
15268 delete arg2;
15269 }
15270 return NULL;
15271 }
15272
15273
15274 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15275 PyObject *resultobj;
15276 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15277 wxString *arg2 = 0 ;
15278 double arg3 ;
15279 bool result;
15280 bool temp2 = False ;
15281 PyObject * obj0 = 0 ;
15282 PyObject * obj1 = 0 ;
15283 PyObject * obj2 = 0 ;
15284 char *kwnames[] = {
15285 (char *) "self",(char *) "key",(char *) "value", NULL
15286 };
15287
15288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15291 {
15292 arg2 = wxString_in_helper(obj1);
15293 if (arg2 == NULL) SWIG_fail;
15294 temp2 = True;
15295 }
15296 arg3 = (double) SWIG_AsDouble(obj2);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 {
15299 PyThreadState* __tstate = wxPyBeginAllowThreads();
15300 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15301
15302 wxPyEndAllowThreads(__tstate);
15303 if (PyErr_Occurred()) SWIG_fail;
15304 }
15305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15306 {
15307 if (temp2)
15308 delete arg2;
15309 }
15310 return resultobj;
15311 fail:
15312 {
15313 if (temp2)
15314 delete arg2;
15315 }
15316 return NULL;
15317 }
15318
15319
15320 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15321 PyObject *resultobj;
15322 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15323 wxString *arg2 = 0 ;
15324 bool arg3 ;
15325 bool result;
15326 bool temp2 = False ;
15327 PyObject * obj0 = 0 ;
15328 PyObject * obj1 = 0 ;
15329 PyObject * obj2 = 0 ;
15330 char *kwnames[] = {
15331 (char *) "self",(char *) "key",(char *) "value", NULL
15332 };
15333
15334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15337 {
15338 arg2 = wxString_in_helper(obj1);
15339 if (arg2 == NULL) SWIG_fail;
15340 temp2 = True;
15341 }
15342 arg3 = (bool) SWIG_AsBool(obj2);
15343 if (PyErr_Occurred()) SWIG_fail;
15344 {
15345 PyThreadState* __tstate = wxPyBeginAllowThreads();
15346 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15347
15348 wxPyEndAllowThreads(__tstate);
15349 if (PyErr_Occurred()) SWIG_fail;
15350 }
15351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15352 {
15353 if (temp2)
15354 delete arg2;
15355 }
15356 return resultobj;
15357 fail:
15358 {
15359 if (temp2)
15360 delete arg2;
15361 }
15362 return NULL;
15363 }
15364
15365
15366 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15367 PyObject *resultobj;
15368 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15369 bool arg2 = (bool) False ;
15370 bool result;
15371 PyObject * obj0 = 0 ;
15372 PyObject * obj1 = 0 ;
15373 char *kwnames[] = {
15374 (char *) "self",(char *) "currentOnly", NULL
15375 };
15376
15377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15380 if (obj1) {
15381 arg2 = (bool) SWIG_AsBool(obj1);
15382 if (PyErr_Occurred()) SWIG_fail;
15383 }
15384 {
15385 PyThreadState* __tstate = wxPyBeginAllowThreads();
15386 result = (bool)(arg1)->Flush(arg2);
15387
15388 wxPyEndAllowThreads(__tstate);
15389 if (PyErr_Occurred()) SWIG_fail;
15390 }
15391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15392 return resultobj;
15393 fail:
15394 return NULL;
15395 }
15396
15397
15398 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15399 PyObject *resultobj;
15400 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15401 wxString *arg2 = 0 ;
15402 wxString *arg3 = 0 ;
15403 bool result;
15404 bool temp2 = False ;
15405 bool temp3 = False ;
15406 PyObject * obj0 = 0 ;
15407 PyObject * obj1 = 0 ;
15408 PyObject * obj2 = 0 ;
15409 char *kwnames[] = {
15410 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15411 };
15412
15413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15416 {
15417 arg2 = wxString_in_helper(obj1);
15418 if (arg2 == NULL) SWIG_fail;
15419 temp2 = True;
15420 }
15421 {
15422 arg3 = wxString_in_helper(obj2);
15423 if (arg3 == NULL) SWIG_fail;
15424 temp3 = True;
15425 }
15426 {
15427 PyThreadState* __tstate = wxPyBeginAllowThreads();
15428 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15429
15430 wxPyEndAllowThreads(__tstate);
15431 if (PyErr_Occurred()) SWIG_fail;
15432 }
15433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15434 {
15435 if (temp2)
15436 delete arg2;
15437 }
15438 {
15439 if (temp3)
15440 delete arg3;
15441 }
15442 return resultobj;
15443 fail:
15444 {
15445 if (temp2)
15446 delete arg2;
15447 }
15448 {
15449 if (temp3)
15450 delete arg3;
15451 }
15452 return NULL;
15453 }
15454
15455
15456 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15457 PyObject *resultobj;
15458 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15459 wxString *arg2 = 0 ;
15460 wxString *arg3 = 0 ;
15461 bool result;
15462 bool temp2 = False ;
15463 bool temp3 = False ;
15464 PyObject * obj0 = 0 ;
15465 PyObject * obj1 = 0 ;
15466 PyObject * obj2 = 0 ;
15467 char *kwnames[] = {
15468 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15469 };
15470
15471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15474 {
15475 arg2 = wxString_in_helper(obj1);
15476 if (arg2 == NULL) SWIG_fail;
15477 temp2 = True;
15478 }
15479 {
15480 arg3 = wxString_in_helper(obj2);
15481 if (arg3 == NULL) SWIG_fail;
15482 temp3 = True;
15483 }
15484 {
15485 PyThreadState* __tstate = wxPyBeginAllowThreads();
15486 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15487
15488 wxPyEndAllowThreads(__tstate);
15489 if (PyErr_Occurred()) SWIG_fail;
15490 }
15491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15492 {
15493 if (temp2)
15494 delete arg2;
15495 }
15496 {
15497 if (temp3)
15498 delete arg3;
15499 }
15500 return resultobj;
15501 fail:
15502 {
15503 if (temp2)
15504 delete arg2;
15505 }
15506 {
15507 if (temp3)
15508 delete arg3;
15509 }
15510 return NULL;
15511 }
15512
15513
15514 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15515 PyObject *resultobj;
15516 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15517 wxString *arg2 = 0 ;
15518 bool arg3 = (bool) True ;
15519 bool result;
15520 bool temp2 = False ;
15521 PyObject * obj0 = 0 ;
15522 PyObject * obj1 = 0 ;
15523 PyObject * obj2 = 0 ;
15524 char *kwnames[] = {
15525 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15526 };
15527
15528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15531 {
15532 arg2 = wxString_in_helper(obj1);
15533 if (arg2 == NULL) SWIG_fail;
15534 temp2 = True;
15535 }
15536 if (obj2) {
15537 arg3 = (bool) SWIG_AsBool(obj2);
15538 if (PyErr_Occurred()) SWIG_fail;
15539 }
15540 {
15541 PyThreadState* __tstate = wxPyBeginAllowThreads();
15542 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15543
15544 wxPyEndAllowThreads(__tstate);
15545 if (PyErr_Occurred()) SWIG_fail;
15546 }
15547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15548 {
15549 if (temp2)
15550 delete arg2;
15551 }
15552 return resultobj;
15553 fail:
15554 {
15555 if (temp2)
15556 delete arg2;
15557 }
15558 return NULL;
15559 }
15560
15561
15562 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15563 PyObject *resultobj;
15564 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15565 wxString *arg2 = 0 ;
15566 bool result;
15567 bool temp2 = False ;
15568 PyObject * obj0 = 0 ;
15569 PyObject * obj1 = 0 ;
15570 char *kwnames[] = {
15571 (char *) "self",(char *) "key", NULL
15572 };
15573
15574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15577 {
15578 arg2 = wxString_in_helper(obj1);
15579 if (arg2 == NULL) SWIG_fail;
15580 temp2 = True;
15581 }
15582 {
15583 PyThreadState* __tstate = wxPyBeginAllowThreads();
15584 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15585
15586 wxPyEndAllowThreads(__tstate);
15587 if (PyErr_Occurred()) SWIG_fail;
15588 }
15589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15590 {
15591 if (temp2)
15592 delete arg2;
15593 }
15594 return resultobj;
15595 fail:
15596 {
15597 if (temp2)
15598 delete arg2;
15599 }
15600 return NULL;
15601 }
15602
15603
15604 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15605 PyObject *resultobj;
15606 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15607 bool result;
15608 PyObject * obj0 = 0 ;
15609 char *kwnames[] = {
15610 (char *) "self", NULL
15611 };
15612
15613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15616 {
15617 PyThreadState* __tstate = wxPyBeginAllowThreads();
15618 result = (bool)(arg1)->DeleteAll();
15619
15620 wxPyEndAllowThreads(__tstate);
15621 if (PyErr_Occurred()) SWIG_fail;
15622 }
15623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15624 return resultobj;
15625 fail:
15626 return NULL;
15627 }
15628
15629
15630 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15631 PyObject *resultobj;
15632 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15633 bool arg2 = (bool) True ;
15634 PyObject * obj0 = 0 ;
15635 PyObject * obj1 = 0 ;
15636 char *kwnames[] = {
15637 (char *) "self",(char *) "doIt", NULL
15638 };
15639
15640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15643 if (obj1) {
15644 arg2 = (bool) SWIG_AsBool(obj1);
15645 if (PyErr_Occurred()) SWIG_fail;
15646 }
15647 {
15648 PyThreadState* __tstate = wxPyBeginAllowThreads();
15649 (arg1)->SetExpandEnvVars(arg2);
15650
15651 wxPyEndAllowThreads(__tstate);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 }
15654 Py_INCREF(Py_None); resultobj = Py_None;
15655 return resultobj;
15656 fail:
15657 return NULL;
15658 }
15659
15660
15661 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15662 PyObject *resultobj;
15663 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15664 bool result;
15665 PyObject * obj0 = 0 ;
15666 char *kwnames[] = {
15667 (char *) "self", NULL
15668 };
15669
15670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15673 {
15674 PyThreadState* __tstate = wxPyBeginAllowThreads();
15675 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15676
15677 wxPyEndAllowThreads(__tstate);
15678 if (PyErr_Occurred()) SWIG_fail;
15679 }
15680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15681 return resultobj;
15682 fail:
15683 return NULL;
15684 }
15685
15686
15687 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15688 PyObject *resultobj;
15689 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15690 bool arg2 = (bool) True ;
15691 PyObject * obj0 = 0 ;
15692 PyObject * obj1 = 0 ;
15693 char *kwnames[] = {
15694 (char *) "self",(char *) "doIt", NULL
15695 };
15696
15697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15700 if (obj1) {
15701 arg2 = (bool) SWIG_AsBool(obj1);
15702 if (PyErr_Occurred()) SWIG_fail;
15703 }
15704 {
15705 PyThreadState* __tstate = wxPyBeginAllowThreads();
15706 (arg1)->SetRecordDefaults(arg2);
15707
15708 wxPyEndAllowThreads(__tstate);
15709 if (PyErr_Occurred()) SWIG_fail;
15710 }
15711 Py_INCREF(Py_None); resultobj = Py_None;
15712 return resultobj;
15713 fail:
15714 return NULL;
15715 }
15716
15717
15718 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15719 PyObject *resultobj;
15720 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15721 bool result;
15722 PyObject * obj0 = 0 ;
15723 char *kwnames[] = {
15724 (char *) "self", NULL
15725 };
15726
15727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15730 {
15731 PyThreadState* __tstate = wxPyBeginAllowThreads();
15732 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15733
15734 wxPyEndAllowThreads(__tstate);
15735 if (PyErr_Occurred()) SWIG_fail;
15736 }
15737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15738 return resultobj;
15739 fail:
15740 return NULL;
15741 }
15742
15743
15744 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15745 PyObject *resultobj;
15746 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15747 wxString *arg2 = 0 ;
15748 wxString result;
15749 bool temp2 = False ;
15750 PyObject * obj0 = 0 ;
15751 PyObject * obj1 = 0 ;
15752 char *kwnames[] = {
15753 (char *) "self",(char *) "str", NULL
15754 };
15755
15756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15759 {
15760 arg2 = wxString_in_helper(obj1);
15761 if (arg2 == NULL) SWIG_fail;
15762 temp2 = True;
15763 }
15764 {
15765 PyThreadState* __tstate = wxPyBeginAllowThreads();
15766 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15767
15768 wxPyEndAllowThreads(__tstate);
15769 if (PyErr_Occurred()) SWIG_fail;
15770 }
15771 {
15772 #if wxUSE_UNICODE
15773 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15774 #else
15775 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15776 #endif
15777 }
15778 {
15779 if (temp2)
15780 delete arg2;
15781 }
15782 return resultobj;
15783 fail:
15784 {
15785 if (temp2)
15786 delete arg2;
15787 }
15788 return NULL;
15789 }
15790
15791
15792 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15793 PyObject *resultobj;
15794 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15795 wxString result;
15796 PyObject * obj0 = 0 ;
15797 char *kwnames[] = {
15798 (char *) "self", NULL
15799 };
15800
15801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
15802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15804 {
15805 PyThreadState* __tstate = wxPyBeginAllowThreads();
15806 result = ((wxConfigBase const *)arg1)->GetAppName();
15807
15808 wxPyEndAllowThreads(__tstate);
15809 if (PyErr_Occurred()) SWIG_fail;
15810 }
15811 {
15812 #if wxUSE_UNICODE
15813 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15814 #else
15815 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15816 #endif
15817 }
15818 return resultobj;
15819 fail:
15820 return NULL;
15821 }
15822
15823
15824 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
15825 PyObject *resultobj;
15826 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15827 wxString result;
15828 PyObject * obj0 = 0 ;
15829 char *kwnames[] = {
15830 (char *) "self", NULL
15831 };
15832
15833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
15834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15836 {
15837 PyThreadState* __tstate = wxPyBeginAllowThreads();
15838 result = ((wxConfigBase const *)arg1)->GetVendorName();
15839
15840 wxPyEndAllowThreads(__tstate);
15841 if (PyErr_Occurred()) SWIG_fail;
15842 }
15843 {
15844 #if wxUSE_UNICODE
15845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15846 #else
15847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15848 #endif
15849 }
15850 return resultobj;
15851 fail:
15852 return NULL;
15853 }
15854
15855
15856 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
15857 PyObject *resultobj;
15858 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15859 wxString *arg2 = 0 ;
15860 bool temp2 = False ;
15861 PyObject * obj0 = 0 ;
15862 PyObject * obj1 = 0 ;
15863 char *kwnames[] = {
15864 (char *) "self",(char *) "appName", NULL
15865 };
15866
15867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
15868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15870 {
15871 arg2 = wxString_in_helper(obj1);
15872 if (arg2 == NULL) SWIG_fail;
15873 temp2 = True;
15874 }
15875 {
15876 PyThreadState* __tstate = wxPyBeginAllowThreads();
15877 (arg1)->SetAppName((wxString const &)*arg2);
15878
15879 wxPyEndAllowThreads(__tstate);
15880 if (PyErr_Occurred()) SWIG_fail;
15881 }
15882 Py_INCREF(Py_None); resultobj = Py_None;
15883 {
15884 if (temp2)
15885 delete arg2;
15886 }
15887 return resultobj;
15888 fail:
15889 {
15890 if (temp2)
15891 delete arg2;
15892 }
15893 return NULL;
15894 }
15895
15896
15897 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
15898 PyObject *resultobj;
15899 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15900 wxString *arg2 = 0 ;
15901 bool temp2 = False ;
15902 PyObject * obj0 = 0 ;
15903 PyObject * obj1 = 0 ;
15904 char *kwnames[] = {
15905 (char *) "self",(char *) "vendorName", NULL
15906 };
15907
15908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
15909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15911 {
15912 arg2 = wxString_in_helper(obj1);
15913 if (arg2 == NULL) SWIG_fail;
15914 temp2 = True;
15915 }
15916 {
15917 PyThreadState* __tstate = wxPyBeginAllowThreads();
15918 (arg1)->SetVendorName((wxString const &)*arg2);
15919
15920 wxPyEndAllowThreads(__tstate);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 Py_INCREF(Py_None); resultobj = Py_None;
15924 {
15925 if (temp2)
15926 delete arg2;
15927 }
15928 return resultobj;
15929 fail:
15930 {
15931 if (temp2)
15932 delete arg2;
15933 }
15934 return NULL;
15935 }
15936
15937
15938 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15939 PyObject *resultobj;
15940 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15941 long arg2 ;
15942 PyObject * obj0 = 0 ;
15943 PyObject * obj1 = 0 ;
15944 char *kwnames[] = {
15945 (char *) "self",(char *) "style", NULL
15946 };
15947
15948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
15949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15951 arg2 = (long) SWIG_AsLong(obj1);
15952 if (PyErr_Occurred()) SWIG_fail;
15953 {
15954 PyThreadState* __tstate = wxPyBeginAllowThreads();
15955 (arg1)->SetStyle(arg2);
15956
15957 wxPyEndAllowThreads(__tstate);
15958 if (PyErr_Occurred()) SWIG_fail;
15959 }
15960 Py_INCREF(Py_None); resultobj = Py_None;
15961 return resultobj;
15962 fail:
15963 return NULL;
15964 }
15965
15966
15967 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
15968 PyObject *resultobj;
15969 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15970 long result;
15971 PyObject * obj0 = 0 ;
15972 char *kwnames[] = {
15973 (char *) "self", NULL
15974 };
15975
15976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
15977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15979 {
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 result = (long)((wxConfigBase const *)arg1)->GetStyle();
15982
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 resultobj = SWIG_FromLong((long)result);
15987 return resultobj;
15988 fail:
15989 return NULL;
15990 }
15991
15992
15993 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
15994 PyObject *obj;
15995 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15996 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
15997 Py_INCREF(obj);
15998 return Py_BuildValue((char *)"");
15999 }
16000 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16001 PyObject *resultobj;
16002 wxString const &arg1_defvalue = wxPyEmptyString ;
16003 wxString *arg1 = (wxString *) &arg1_defvalue ;
16004 wxString const &arg2_defvalue = wxPyEmptyString ;
16005 wxString *arg2 = (wxString *) &arg2_defvalue ;
16006 wxString const &arg3_defvalue = wxPyEmptyString ;
16007 wxString *arg3 = (wxString *) &arg3_defvalue ;
16008 wxString const &arg4_defvalue = wxPyEmptyString ;
16009 wxString *arg4 = (wxString *) &arg4_defvalue ;
16010 long arg5 = (long) 0 ;
16011 wxConfig *result;
16012 bool temp1 = False ;
16013 bool temp2 = False ;
16014 bool temp3 = False ;
16015 bool temp4 = False ;
16016 PyObject * obj0 = 0 ;
16017 PyObject * obj1 = 0 ;
16018 PyObject * obj2 = 0 ;
16019 PyObject * obj3 = 0 ;
16020 PyObject * obj4 = 0 ;
16021 char *kwnames[] = {
16022 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16023 };
16024
16025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16026 if (obj0) {
16027 {
16028 arg1 = wxString_in_helper(obj0);
16029 if (arg1 == NULL) SWIG_fail;
16030 temp1 = True;
16031 }
16032 }
16033 if (obj1) {
16034 {
16035 arg2 = wxString_in_helper(obj1);
16036 if (arg2 == NULL) SWIG_fail;
16037 temp2 = True;
16038 }
16039 }
16040 if (obj2) {
16041 {
16042 arg3 = wxString_in_helper(obj2);
16043 if (arg3 == NULL) SWIG_fail;
16044 temp3 = True;
16045 }
16046 }
16047 if (obj3) {
16048 {
16049 arg4 = wxString_in_helper(obj3);
16050 if (arg4 == NULL) SWIG_fail;
16051 temp4 = True;
16052 }
16053 }
16054 if (obj4) {
16055 arg5 = (long) SWIG_AsLong(obj4);
16056 if (PyErr_Occurred()) SWIG_fail;
16057 }
16058 {
16059 PyThreadState* __tstate = wxPyBeginAllowThreads();
16060 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16061
16062 wxPyEndAllowThreads(__tstate);
16063 if (PyErr_Occurred()) SWIG_fail;
16064 }
16065 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16066 {
16067 if (temp1)
16068 delete arg1;
16069 }
16070 {
16071 if (temp2)
16072 delete arg2;
16073 }
16074 {
16075 if (temp3)
16076 delete arg3;
16077 }
16078 {
16079 if (temp4)
16080 delete arg4;
16081 }
16082 return resultobj;
16083 fail:
16084 {
16085 if (temp1)
16086 delete arg1;
16087 }
16088 {
16089 if (temp2)
16090 delete arg2;
16091 }
16092 {
16093 if (temp3)
16094 delete arg3;
16095 }
16096 {
16097 if (temp4)
16098 delete arg4;
16099 }
16100 return NULL;
16101 }
16102
16103
16104 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16105 PyObject *resultobj;
16106 wxConfig *arg1 = (wxConfig *) 0 ;
16107 PyObject * obj0 = 0 ;
16108 char *kwnames[] = {
16109 (char *) "self", NULL
16110 };
16111
16112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16115 {
16116 PyThreadState* __tstate = wxPyBeginAllowThreads();
16117 delete arg1;
16118
16119 wxPyEndAllowThreads(__tstate);
16120 if (PyErr_Occurred()) SWIG_fail;
16121 }
16122 Py_INCREF(Py_None); resultobj = Py_None;
16123 return resultobj;
16124 fail:
16125 return NULL;
16126 }
16127
16128
16129 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16130 PyObject *obj;
16131 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16132 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16133 Py_INCREF(obj);
16134 return Py_BuildValue((char *)"");
16135 }
16136 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16137 PyObject *resultobj;
16138 wxString const &arg1_defvalue = wxPyEmptyString ;
16139 wxString *arg1 = (wxString *) &arg1_defvalue ;
16140 wxString const &arg2_defvalue = wxPyEmptyString ;
16141 wxString *arg2 = (wxString *) &arg2_defvalue ;
16142 wxString const &arg3_defvalue = wxPyEmptyString ;
16143 wxString *arg3 = (wxString *) &arg3_defvalue ;
16144 wxString const &arg4_defvalue = wxPyEmptyString ;
16145 wxString *arg4 = (wxString *) &arg4_defvalue ;
16146 long arg5 = (long) 0 ;
16147 wxFileConfig *result;
16148 bool temp1 = False ;
16149 bool temp2 = False ;
16150 bool temp3 = False ;
16151 bool temp4 = False ;
16152 PyObject * obj0 = 0 ;
16153 PyObject * obj1 = 0 ;
16154 PyObject * obj2 = 0 ;
16155 PyObject * obj3 = 0 ;
16156 PyObject * obj4 = 0 ;
16157 char *kwnames[] = {
16158 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16159 };
16160
16161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16162 if (obj0) {
16163 {
16164 arg1 = wxString_in_helper(obj0);
16165 if (arg1 == NULL) SWIG_fail;
16166 temp1 = True;
16167 }
16168 }
16169 if (obj1) {
16170 {
16171 arg2 = wxString_in_helper(obj1);
16172 if (arg2 == NULL) SWIG_fail;
16173 temp2 = True;
16174 }
16175 }
16176 if (obj2) {
16177 {
16178 arg3 = wxString_in_helper(obj2);
16179 if (arg3 == NULL) SWIG_fail;
16180 temp3 = True;
16181 }
16182 }
16183 if (obj3) {
16184 {
16185 arg4 = wxString_in_helper(obj3);
16186 if (arg4 == NULL) SWIG_fail;
16187 temp4 = True;
16188 }
16189 }
16190 if (obj4) {
16191 arg5 = (long) SWIG_AsLong(obj4);
16192 if (PyErr_Occurred()) SWIG_fail;
16193 }
16194 {
16195 PyThreadState* __tstate = wxPyBeginAllowThreads();
16196 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16197
16198 wxPyEndAllowThreads(__tstate);
16199 if (PyErr_Occurred()) SWIG_fail;
16200 }
16201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16202 {
16203 if (temp1)
16204 delete arg1;
16205 }
16206 {
16207 if (temp2)
16208 delete arg2;
16209 }
16210 {
16211 if (temp3)
16212 delete arg3;
16213 }
16214 {
16215 if (temp4)
16216 delete arg4;
16217 }
16218 return resultobj;
16219 fail:
16220 {
16221 if (temp1)
16222 delete arg1;
16223 }
16224 {
16225 if (temp2)
16226 delete arg2;
16227 }
16228 {
16229 if (temp3)
16230 delete arg3;
16231 }
16232 {
16233 if (temp4)
16234 delete arg4;
16235 }
16236 return NULL;
16237 }
16238
16239
16240 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16241 PyObject *resultobj;
16242 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16243 PyObject * obj0 = 0 ;
16244 char *kwnames[] = {
16245 (char *) "self", NULL
16246 };
16247
16248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16251 {
16252 PyThreadState* __tstate = wxPyBeginAllowThreads();
16253 delete arg1;
16254
16255 wxPyEndAllowThreads(__tstate);
16256 if (PyErr_Occurred()) SWIG_fail;
16257 }
16258 Py_INCREF(Py_None); resultobj = Py_None;
16259 return resultobj;
16260 fail:
16261 return NULL;
16262 }
16263
16264
16265 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16266 PyObject *obj;
16267 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16268 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16269 Py_INCREF(obj);
16270 return Py_BuildValue((char *)"");
16271 }
16272 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16273 PyObject *resultobj;
16274 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16275 wxString *arg2 = 0 ;
16276 wxConfigPathChanger *result;
16277 bool temp2 = False ;
16278 PyObject * obj0 = 0 ;
16279 PyObject * obj1 = 0 ;
16280 char *kwnames[] = {
16281 (char *) "config",(char *) "entry", NULL
16282 };
16283
16284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16287 {
16288 arg2 = wxString_in_helper(obj1);
16289 if (arg2 == NULL) SWIG_fail;
16290 temp2 = True;
16291 }
16292 {
16293 PyThreadState* __tstate = wxPyBeginAllowThreads();
16294 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16295
16296 wxPyEndAllowThreads(__tstate);
16297 if (PyErr_Occurred()) SWIG_fail;
16298 }
16299 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16300 {
16301 if (temp2)
16302 delete arg2;
16303 }
16304 return resultobj;
16305 fail:
16306 {
16307 if (temp2)
16308 delete arg2;
16309 }
16310 return NULL;
16311 }
16312
16313
16314 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16315 PyObject *resultobj;
16316 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16317 PyObject * obj0 = 0 ;
16318 char *kwnames[] = {
16319 (char *) "self", NULL
16320 };
16321
16322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16325 {
16326 PyThreadState* __tstate = wxPyBeginAllowThreads();
16327 delete arg1;
16328
16329 wxPyEndAllowThreads(__tstate);
16330 if (PyErr_Occurred()) SWIG_fail;
16331 }
16332 Py_INCREF(Py_None); resultobj = Py_None;
16333 return resultobj;
16334 fail:
16335 return NULL;
16336 }
16337
16338
16339 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16340 PyObject *resultobj;
16341 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16342 wxString *result;
16343 PyObject * obj0 = 0 ;
16344 char *kwnames[] = {
16345 (char *) "self", NULL
16346 };
16347
16348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16351 {
16352 PyThreadState* __tstate = wxPyBeginAllowThreads();
16353 {
16354 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16355 result = (wxString *) &_result_ref;
16356 }
16357
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 {
16362 #if wxUSE_UNICODE
16363 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16364 #else
16365 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16366 #endif
16367 }
16368 return resultobj;
16369 fail:
16370 return NULL;
16371 }
16372
16373
16374 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16375 PyObject *obj;
16376 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16377 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16378 Py_INCREF(obj);
16379 return Py_BuildValue((char *)"");
16380 }
16381 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16382 PyObject *resultobj;
16383 wxString *arg1 = 0 ;
16384 wxString result;
16385 bool temp1 = False ;
16386 PyObject * obj0 = 0 ;
16387 char *kwnames[] = {
16388 (char *) "sz", NULL
16389 };
16390
16391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16392 {
16393 arg1 = wxString_in_helper(obj0);
16394 if (arg1 == NULL) SWIG_fail;
16395 temp1 = True;
16396 }
16397 {
16398 PyThreadState* __tstate = wxPyBeginAllowThreads();
16399 result = wxExpandEnvVars((wxString const &)*arg1);
16400
16401 wxPyEndAllowThreads(__tstate);
16402 if (PyErr_Occurred()) SWIG_fail;
16403 }
16404 {
16405 #if wxUSE_UNICODE
16406 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16407 #else
16408 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16409 #endif
16410 }
16411 {
16412 if (temp1)
16413 delete arg1;
16414 }
16415 return resultobj;
16416 fail:
16417 {
16418 if (temp1)
16419 delete arg1;
16420 }
16421 return NULL;
16422 }
16423
16424
16425 static int _wrap_DateFormatStr_set(PyObject *_val) {
16426 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16427 return 1;
16428 }
16429
16430
16431 static PyObject *_wrap_DateFormatStr_get() {
16432 PyObject *pyobj;
16433
16434 {
16435 #if wxUSE_UNICODE
16436 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16437 #else
16438 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16439 #endif
16440 }
16441 return pyobj;
16442 }
16443
16444
16445 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16446 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16447 return 1;
16448 }
16449
16450
16451 static PyObject *_wrap_TimeSpanFormatStr_get() {
16452 PyObject *pyobj;
16453
16454 {
16455 #if wxUSE_UNICODE
16456 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16457 #else
16458 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16459 #endif
16460 }
16461 return pyobj;
16462 }
16463
16464
16465 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16466 PyObject *resultobj;
16467 int arg1 ;
16468 PyObject * obj0 = 0 ;
16469 char *kwnames[] = {
16470 (char *) "country", NULL
16471 };
16472
16473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16474 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16475 if (PyErr_Occurred()) SWIG_fail;
16476 {
16477 PyThreadState* __tstate = wxPyBeginAllowThreads();
16478 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16479
16480 wxPyEndAllowThreads(__tstate);
16481 if (PyErr_Occurred()) SWIG_fail;
16482 }
16483 Py_INCREF(Py_None); resultobj = Py_None;
16484 return resultobj;
16485 fail:
16486 return NULL;
16487 }
16488
16489
16490 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16491 PyObject *resultobj;
16492 int result;
16493 char *kwnames[] = {
16494 NULL
16495 };
16496
16497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16498 {
16499 PyThreadState* __tstate = wxPyBeginAllowThreads();
16500 result = (int)wxDateTime::GetCountry();
16501
16502 wxPyEndAllowThreads(__tstate);
16503 if (PyErr_Occurred()) SWIG_fail;
16504 }
16505 resultobj = SWIG_FromInt((int)result);
16506 return resultobj;
16507 fail:
16508 return NULL;
16509 }
16510
16511
16512 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16513 PyObject *resultobj;
16514 int arg1 = (int) wxDateTime::Country_Default ;
16515 bool result;
16516 PyObject * obj0 = 0 ;
16517 char *kwnames[] = {
16518 (char *) "country", NULL
16519 };
16520
16521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16522 if (obj0) {
16523 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16524 if (PyErr_Occurred()) SWIG_fail;
16525 }
16526 {
16527 PyThreadState* __tstate = wxPyBeginAllowThreads();
16528 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16529
16530 wxPyEndAllowThreads(__tstate);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 }
16533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16534 return resultobj;
16535 fail:
16536 return NULL;
16537 }
16538
16539
16540 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16541 PyObject *resultobj;
16542 int arg1 = (int) wxDateTime::Gregorian ;
16543 int result;
16544 PyObject * obj0 = 0 ;
16545 char *kwnames[] = {
16546 (char *) "cal", NULL
16547 };
16548
16549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16550 if (obj0) {
16551 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16552 if (PyErr_Occurred()) SWIG_fail;
16553 }
16554 {
16555 PyThreadState* __tstate = wxPyBeginAllowThreads();
16556 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16557
16558 wxPyEndAllowThreads(__tstate);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 }
16561 resultobj = SWIG_FromInt((int)result);
16562 return resultobj;
16563 fail:
16564 return NULL;
16565 }
16566
16567
16568 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16569 PyObject *resultobj;
16570 int arg1 ;
16571 int result;
16572 PyObject * obj0 = 0 ;
16573 char *kwnames[] = {
16574 (char *) "year", NULL
16575 };
16576
16577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16578 arg1 = (int) SWIG_AsInt(obj0);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 {
16581 PyThreadState* __tstate = wxPyBeginAllowThreads();
16582 result = (int)wxDateTime::ConvertYearToBC(arg1);
16583
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 resultobj = SWIG_FromInt((int)result);
16588 return resultobj;
16589 fail:
16590 return NULL;
16591 }
16592
16593
16594 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16595 PyObject *resultobj;
16596 int arg1 = (int) wxDateTime::Gregorian ;
16597 int result;
16598 PyObject * obj0 = 0 ;
16599 char *kwnames[] = {
16600 (char *) "cal", NULL
16601 };
16602
16603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16604 if (obj0) {
16605 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16606 if (PyErr_Occurred()) SWIG_fail;
16607 }
16608 {
16609 PyThreadState* __tstate = wxPyBeginAllowThreads();
16610 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16611
16612 wxPyEndAllowThreads(__tstate);
16613 if (PyErr_Occurred()) SWIG_fail;
16614 }
16615 resultobj = SWIG_FromInt((int)result);
16616 return resultobj;
16617 fail:
16618 return NULL;
16619 }
16620
16621
16622 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16623 PyObject *resultobj;
16624 int arg1 = (int) wxDateTime::Inv_Year ;
16625 int arg2 = (int) wxDateTime::Gregorian ;
16626 bool result;
16627 PyObject * obj0 = 0 ;
16628 PyObject * obj1 = 0 ;
16629 char *kwnames[] = {
16630 (char *) "year",(char *) "cal", NULL
16631 };
16632
16633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16634 if (obj0) {
16635 arg1 = (int) SWIG_AsInt(obj0);
16636 if (PyErr_Occurred()) SWIG_fail;
16637 }
16638 if (obj1) {
16639 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16640 if (PyErr_Occurred()) SWIG_fail;
16641 }
16642 {
16643 PyThreadState* __tstate = wxPyBeginAllowThreads();
16644 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16645
16646 wxPyEndAllowThreads(__tstate);
16647 if (PyErr_Occurred()) SWIG_fail;
16648 }
16649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16650 return resultobj;
16651 fail:
16652 return NULL;
16653 }
16654
16655
16656 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16657 PyObject *resultobj;
16658 int arg1 = (int) wxDateTime::Inv_Year ;
16659 int result;
16660 PyObject * obj0 = 0 ;
16661 char *kwnames[] = {
16662 (char *) "year", NULL
16663 };
16664
16665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16666 if (obj0) {
16667 arg1 = (int) SWIG_AsInt(obj0);
16668 if (PyErr_Occurred()) SWIG_fail;
16669 }
16670 {
16671 PyThreadState* __tstate = wxPyBeginAllowThreads();
16672 result = (int)wxDateTime::GetCentury(arg1);
16673
16674 wxPyEndAllowThreads(__tstate);
16675 if (PyErr_Occurred()) SWIG_fail;
16676 }
16677 resultobj = SWIG_FromInt((int)result);
16678 return resultobj;
16679 fail:
16680 return NULL;
16681 }
16682
16683
16684 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16685 PyObject *resultobj;
16686 int arg1 ;
16687 int arg2 = (int) wxDateTime::Gregorian ;
16688 int result;
16689 PyObject * obj0 = 0 ;
16690 PyObject * obj1 = 0 ;
16691 char *kwnames[] = {
16692 (char *) "year",(char *) "cal", NULL
16693 };
16694
16695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16696 arg1 = (int) SWIG_AsInt(obj0);
16697 if (PyErr_Occurred()) SWIG_fail;
16698 if (obj1) {
16699 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16700 if (PyErr_Occurred()) SWIG_fail;
16701 }
16702 {
16703 PyThreadState* __tstate = wxPyBeginAllowThreads();
16704 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16705
16706 wxPyEndAllowThreads(__tstate);
16707 if (PyErr_Occurred()) SWIG_fail;
16708 }
16709 resultobj = SWIG_FromInt((int)result);
16710 return resultobj;
16711 fail:
16712 return NULL;
16713 }
16714
16715
16716 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16717 PyObject *resultobj;
16718 int arg1 ;
16719 int arg2 = (int) wxDateTime::Inv_Year ;
16720 int arg3 = (int) wxDateTime::Gregorian ;
16721 int result;
16722 PyObject * obj0 = 0 ;
16723 PyObject * obj1 = 0 ;
16724 PyObject * obj2 = 0 ;
16725 char *kwnames[] = {
16726 (char *) "month",(char *) "year",(char *) "cal", NULL
16727 };
16728
16729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16730 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16731 if (PyErr_Occurred()) SWIG_fail;
16732 if (obj1) {
16733 arg2 = (int) SWIG_AsInt(obj1);
16734 if (PyErr_Occurred()) SWIG_fail;
16735 }
16736 if (obj2) {
16737 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 {
16741 PyThreadState* __tstate = wxPyBeginAllowThreads();
16742 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
16743
16744 wxPyEndAllowThreads(__tstate);
16745 if (PyErr_Occurred()) SWIG_fail;
16746 }
16747 resultobj = SWIG_FromInt((int)result);
16748 return resultobj;
16749 fail:
16750 return NULL;
16751 }
16752
16753
16754 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
16755 PyObject *resultobj;
16756 int arg1 ;
16757 int arg2 = (int) wxDateTime::Name_Full ;
16758 wxString result;
16759 PyObject * obj0 = 0 ;
16760 PyObject * obj1 = 0 ;
16761 char *kwnames[] = {
16762 (char *) "month",(char *) "flags", NULL
16763 };
16764
16765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16766 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16767 if (PyErr_Occurred()) SWIG_fail;
16768 if (obj1) {
16769 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16770 if (PyErr_Occurred()) SWIG_fail;
16771 }
16772 {
16773 PyThreadState* __tstate = wxPyBeginAllowThreads();
16774 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16775
16776 wxPyEndAllowThreads(__tstate);
16777 if (PyErr_Occurred()) SWIG_fail;
16778 }
16779 {
16780 #if wxUSE_UNICODE
16781 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16782 #else
16783 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16784 #endif
16785 }
16786 return resultobj;
16787 fail:
16788 return NULL;
16789 }
16790
16791
16792 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
16793 PyObject *resultobj;
16794 int arg1 ;
16795 int arg2 = (int) wxDateTime::Name_Full ;
16796 wxString result;
16797 PyObject * obj0 = 0 ;
16798 PyObject * obj1 = 0 ;
16799 char *kwnames[] = {
16800 (char *) "weekday",(char *) "flags", NULL
16801 };
16802
16803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
16804 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
16805 if (PyErr_Occurred()) SWIG_fail;
16806 if (obj1) {
16807 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16808 if (PyErr_Occurred()) SWIG_fail;
16809 }
16810 {
16811 PyThreadState* __tstate = wxPyBeginAllowThreads();
16812 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
16813
16814 wxPyEndAllowThreads(__tstate);
16815 if (PyErr_Occurred()) SWIG_fail;
16816 }
16817 {
16818 #if wxUSE_UNICODE
16819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16820 #else
16821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16822 #endif
16823 }
16824 return resultobj;
16825 fail:
16826 return NULL;
16827 }
16828
16829
16830 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
16831 PyObject *resultobj;
16832 wxString *arg1 = (wxString *) 0 ;
16833 wxString *arg2 = (wxString *) 0 ;
16834 bool temp1 = False ;
16835 bool temp2 = False ;
16836 PyObject * obj0 = 0 ;
16837 PyObject * obj1 = 0 ;
16838 char *kwnames[] = {
16839 (char *) "OUTPUT",(char *) "OUTPUT", NULL
16840 };
16841
16842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
16843 {
16844 arg1 = wxString_in_helper(obj0);
16845 if (arg1 == NULL) SWIG_fail;
16846 temp1 = True;
16847 }
16848 {
16849 arg2 = wxString_in_helper(obj1);
16850 if (arg2 == NULL) SWIG_fail;
16851 temp2 = True;
16852 }
16853 {
16854 PyThreadState* __tstate = wxPyBeginAllowThreads();
16855 wxDateTime::GetAmPmStrings(arg1,arg2);
16856
16857 wxPyEndAllowThreads(__tstate);
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 Py_INCREF(Py_None); resultobj = Py_None;
16861 {
16862 if (temp1)
16863 delete arg1;
16864 }
16865 {
16866 if (temp2)
16867 delete arg2;
16868 }
16869 return resultobj;
16870 fail:
16871 {
16872 if (temp1)
16873 delete arg1;
16874 }
16875 {
16876 if (temp2)
16877 delete arg2;
16878 }
16879 return NULL;
16880 }
16881
16882
16883 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
16884 PyObject *resultobj;
16885 int arg1 = (int) wxDateTime::Inv_Year ;
16886 int arg2 = (int) wxDateTime::Country_Default ;
16887 bool result;
16888 PyObject * obj0 = 0 ;
16889 PyObject * obj1 = 0 ;
16890 char *kwnames[] = {
16891 (char *) "year",(char *) "country", NULL
16892 };
16893
16894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
16895 if (obj0) {
16896 arg1 = (int) SWIG_AsInt(obj0);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 if (obj1) {
16900 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16901 if (PyErr_Occurred()) SWIG_fail;
16902 }
16903 {
16904 PyThreadState* __tstate = wxPyBeginAllowThreads();
16905 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
16906
16907 wxPyEndAllowThreads(__tstate);
16908 if (PyErr_Occurred()) SWIG_fail;
16909 }
16910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16911 return resultobj;
16912 fail:
16913 return NULL;
16914 }
16915
16916
16917 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
16918 PyObject *resultobj;
16919 int arg1 = (int) wxDateTime::Inv_Year ;
16920 int arg2 = (int) wxDateTime::Country_Default ;
16921 wxDateTime result;
16922 PyObject * obj0 = 0 ;
16923 PyObject * obj1 = 0 ;
16924 char *kwnames[] = {
16925 (char *) "year",(char *) "country", NULL
16926 };
16927
16928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
16929 if (obj0) {
16930 arg1 = (int) SWIG_AsInt(obj0);
16931 if (PyErr_Occurred()) SWIG_fail;
16932 }
16933 if (obj1) {
16934 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16935 if (PyErr_Occurred()) SWIG_fail;
16936 }
16937 {
16938 PyThreadState* __tstate = wxPyBeginAllowThreads();
16939 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
16940
16941 wxPyEndAllowThreads(__tstate);
16942 if (PyErr_Occurred()) SWIG_fail;
16943 }
16944 {
16945 wxDateTime * resultptr;
16946 resultptr = new wxDateTime((wxDateTime &) result);
16947 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
16948 }
16949 return resultobj;
16950 fail:
16951 return NULL;
16952 }
16953
16954
16955 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
16956 PyObject *resultobj;
16957 int arg1 = (int) wxDateTime::Inv_Year ;
16958 int arg2 = (int) wxDateTime::Country_Default ;
16959 wxDateTime result;
16960 PyObject * obj0 = 0 ;
16961 PyObject * obj1 = 0 ;
16962 char *kwnames[] = {
16963 (char *) "year",(char *) "country", NULL
16964 };
16965
16966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
16967 if (obj0) {
16968 arg1 = (int) SWIG_AsInt(obj0);
16969 if (PyErr_Occurred()) SWIG_fail;
16970 }
16971 if (obj1) {
16972 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
16975 {
16976 PyThreadState* __tstate = wxPyBeginAllowThreads();
16977 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
16978
16979 wxPyEndAllowThreads(__tstate);
16980 if (PyErr_Occurred()) SWIG_fail;
16981 }
16982 {
16983 wxDateTime * resultptr;
16984 resultptr = new wxDateTime((wxDateTime &) result);
16985 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
16986 }
16987 return resultobj;
16988 fail:
16989 return NULL;
16990 }
16991
16992
16993 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
16994 PyObject *resultobj;
16995 wxDateTime result;
16996 char *kwnames[] = {
16997 NULL
16998 };
16999
17000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17001 {
17002 PyThreadState* __tstate = wxPyBeginAllowThreads();
17003 result = wxDateTime::Now();
17004
17005 wxPyEndAllowThreads(__tstate);
17006 if (PyErr_Occurred()) SWIG_fail;
17007 }
17008 {
17009 wxDateTime * resultptr;
17010 resultptr = new wxDateTime((wxDateTime &) result);
17011 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17012 }
17013 return resultobj;
17014 fail:
17015 return NULL;
17016 }
17017
17018
17019 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17020 PyObject *resultobj;
17021 wxDateTime result;
17022 char *kwnames[] = {
17023 NULL
17024 };
17025
17026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17027 {
17028 PyThreadState* __tstate = wxPyBeginAllowThreads();
17029 result = wxDateTime::UNow();
17030
17031 wxPyEndAllowThreads(__tstate);
17032 if (PyErr_Occurred()) SWIG_fail;
17033 }
17034 {
17035 wxDateTime * resultptr;
17036 resultptr = new wxDateTime((wxDateTime &) result);
17037 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17038 }
17039 return resultobj;
17040 fail:
17041 return NULL;
17042 }
17043
17044
17045 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17046 PyObject *resultobj;
17047 wxDateTime result;
17048 char *kwnames[] = {
17049 NULL
17050 };
17051
17052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17053 {
17054 PyThreadState* __tstate = wxPyBeginAllowThreads();
17055 result = wxDateTime::Today();
17056
17057 wxPyEndAllowThreads(__tstate);
17058 if (PyErr_Occurred()) SWIG_fail;
17059 }
17060 {
17061 wxDateTime * resultptr;
17062 resultptr = new wxDateTime((wxDateTime &) result);
17063 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17064 }
17065 return resultobj;
17066 fail:
17067 return NULL;
17068 }
17069
17070
17071 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17072 PyObject *resultobj;
17073 wxDateTime *result;
17074 char *kwnames[] = {
17075 NULL
17076 };
17077
17078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17079 {
17080 PyThreadState* __tstate = wxPyBeginAllowThreads();
17081 result = (wxDateTime *)new wxDateTime();
17082
17083 wxPyEndAllowThreads(__tstate);
17084 if (PyErr_Occurred()) SWIG_fail;
17085 }
17086 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17087 return resultobj;
17088 fail:
17089 return NULL;
17090 }
17091
17092
17093 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17094 PyObject *resultobj;
17095 time_t arg1 ;
17096 wxDateTime *result;
17097 PyObject * obj0 = 0 ;
17098 char *kwnames[] = {
17099 (char *) "timet", NULL
17100 };
17101
17102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17103 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17104 if (PyErr_Occurred()) SWIG_fail;
17105 {
17106 PyThreadState* __tstate = wxPyBeginAllowThreads();
17107 result = (wxDateTime *)new wxDateTime(arg1);
17108
17109 wxPyEndAllowThreads(__tstate);
17110 if (PyErr_Occurred()) SWIG_fail;
17111 }
17112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17113 return resultobj;
17114 fail:
17115 return NULL;
17116 }
17117
17118
17119 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17120 PyObject *resultobj;
17121 double arg1 ;
17122 wxDateTime *result;
17123 PyObject * obj0 = 0 ;
17124 char *kwnames[] = {
17125 (char *) "jdn", NULL
17126 };
17127
17128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17129 arg1 = (double) SWIG_AsDouble(obj0);
17130 if (PyErr_Occurred()) SWIG_fail;
17131 {
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 result = (wxDateTime *)new wxDateTime(arg1);
17134
17135 wxPyEndAllowThreads(__tstate);
17136 if (PyErr_Occurred()) SWIG_fail;
17137 }
17138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17139 return resultobj;
17140 fail:
17141 return NULL;
17142 }
17143
17144
17145 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17146 PyObject *resultobj;
17147 int arg1 ;
17148 int arg2 = (int) 0 ;
17149 int arg3 = (int) 0 ;
17150 int arg4 = (int) 0 ;
17151 wxDateTime *result;
17152 PyObject * obj0 = 0 ;
17153 PyObject * obj1 = 0 ;
17154 PyObject * obj2 = 0 ;
17155 PyObject * obj3 = 0 ;
17156 char *kwnames[] = {
17157 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17158 };
17159
17160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17161 arg1 = (int) SWIG_AsInt(obj0);
17162 if (PyErr_Occurred()) SWIG_fail;
17163 if (obj1) {
17164 arg2 = (int) SWIG_AsInt(obj1);
17165 if (PyErr_Occurred()) SWIG_fail;
17166 }
17167 if (obj2) {
17168 arg3 = (int) SWIG_AsInt(obj2);
17169 if (PyErr_Occurred()) SWIG_fail;
17170 }
17171 if (obj3) {
17172 arg4 = (int) SWIG_AsInt(obj3);
17173 if (PyErr_Occurred()) SWIG_fail;
17174 }
17175 {
17176 PyThreadState* __tstate = wxPyBeginAllowThreads();
17177 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17178
17179 wxPyEndAllowThreads(__tstate);
17180 if (PyErr_Occurred()) SWIG_fail;
17181 }
17182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17183 return resultobj;
17184 fail:
17185 return NULL;
17186 }
17187
17188
17189 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17190 PyObject *resultobj;
17191 int arg1 ;
17192 int arg2 = (int) wxDateTime::Inv_Month ;
17193 int arg3 = (int) wxDateTime::Inv_Year ;
17194 int arg4 = (int) 0 ;
17195 int arg5 = (int) 0 ;
17196 int arg6 = (int) 0 ;
17197 int arg7 = (int) 0 ;
17198 wxDateTime *result;
17199 PyObject * obj0 = 0 ;
17200 PyObject * obj1 = 0 ;
17201 PyObject * obj2 = 0 ;
17202 PyObject * obj3 = 0 ;
17203 PyObject * obj4 = 0 ;
17204 PyObject * obj5 = 0 ;
17205 PyObject * obj6 = 0 ;
17206 char *kwnames[] = {
17207 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17208 };
17209
17210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17211 arg1 = (int) SWIG_AsInt(obj0);
17212 if (PyErr_Occurred()) SWIG_fail;
17213 if (obj1) {
17214 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17215 if (PyErr_Occurred()) SWIG_fail;
17216 }
17217 if (obj2) {
17218 arg3 = (int) SWIG_AsInt(obj2);
17219 if (PyErr_Occurred()) SWIG_fail;
17220 }
17221 if (obj3) {
17222 arg4 = (int) SWIG_AsInt(obj3);
17223 if (PyErr_Occurred()) SWIG_fail;
17224 }
17225 if (obj4) {
17226 arg5 = (int) SWIG_AsInt(obj4);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 }
17229 if (obj5) {
17230 arg6 = (int) SWIG_AsInt(obj5);
17231 if (PyErr_Occurred()) SWIG_fail;
17232 }
17233 if (obj6) {
17234 arg7 = (int) SWIG_AsInt(obj6);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 {
17238 PyThreadState* __tstate = wxPyBeginAllowThreads();
17239 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17240
17241 wxPyEndAllowThreads(__tstate);
17242 if (PyErr_Occurred()) SWIG_fail;
17243 }
17244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17245 return resultobj;
17246 fail:
17247 return NULL;
17248 }
17249
17250
17251 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17252 PyObject *resultobj;
17253 wxDateTime *arg1 = (wxDateTime *) 0 ;
17254 PyObject * obj0 = 0 ;
17255 char *kwnames[] = {
17256 (char *) "self", NULL
17257 };
17258
17259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17262 {
17263 PyThreadState* __tstate = wxPyBeginAllowThreads();
17264 delete arg1;
17265
17266 wxPyEndAllowThreads(__tstate);
17267 if (PyErr_Occurred()) SWIG_fail;
17268 }
17269 Py_INCREF(Py_None); resultobj = Py_None;
17270 return resultobj;
17271 fail:
17272 return NULL;
17273 }
17274
17275
17276 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17277 PyObject *resultobj;
17278 wxDateTime *arg1 = (wxDateTime *) 0 ;
17279 wxDateTime *result;
17280 PyObject * obj0 = 0 ;
17281 char *kwnames[] = {
17282 (char *) "self", NULL
17283 };
17284
17285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17288 {
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 {
17291 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17292 result = (wxDateTime *) &_result_ref;
17293 }
17294
17295 wxPyEndAllowThreads(__tstate);
17296 if (PyErr_Occurred()) SWIG_fail;
17297 }
17298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17299 return resultobj;
17300 fail:
17301 return NULL;
17302 }
17303
17304
17305 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17306 PyObject *resultobj;
17307 wxDateTime *arg1 = (wxDateTime *) 0 ;
17308 time_t arg2 ;
17309 wxDateTime *result;
17310 PyObject * obj0 = 0 ;
17311 PyObject * obj1 = 0 ;
17312 char *kwnames[] = {
17313 (char *) "self",(char *) "timet", NULL
17314 };
17315
17316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17319 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 {
17322 PyThreadState* __tstate = wxPyBeginAllowThreads();
17323 {
17324 wxDateTime &_result_ref = (arg1)->Set(arg2);
17325 result = (wxDateTime *) &_result_ref;
17326 }
17327
17328 wxPyEndAllowThreads(__tstate);
17329 if (PyErr_Occurred()) SWIG_fail;
17330 }
17331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17332 return resultobj;
17333 fail:
17334 return NULL;
17335 }
17336
17337
17338 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17339 PyObject *resultobj;
17340 wxDateTime *arg1 = (wxDateTime *) 0 ;
17341 double arg2 ;
17342 wxDateTime *result;
17343 PyObject * obj0 = 0 ;
17344 PyObject * obj1 = 0 ;
17345 char *kwnames[] = {
17346 (char *) "self",(char *) "jdn", NULL
17347 };
17348
17349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17352 arg2 = (double) SWIG_AsDouble(obj1);
17353 if (PyErr_Occurred()) SWIG_fail;
17354 {
17355 PyThreadState* __tstate = wxPyBeginAllowThreads();
17356 {
17357 wxDateTime &_result_ref = (arg1)->Set(arg2);
17358 result = (wxDateTime *) &_result_ref;
17359 }
17360
17361 wxPyEndAllowThreads(__tstate);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 }
17364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17365 return resultobj;
17366 fail:
17367 return NULL;
17368 }
17369
17370
17371 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17372 PyObject *resultobj;
17373 wxDateTime *arg1 = (wxDateTime *) 0 ;
17374 int arg2 ;
17375 int arg3 = (int) 0 ;
17376 int arg4 = (int) 0 ;
17377 int arg5 = (int) 0 ;
17378 wxDateTime *result;
17379 PyObject * obj0 = 0 ;
17380 PyObject * obj1 = 0 ;
17381 PyObject * obj2 = 0 ;
17382 PyObject * obj3 = 0 ;
17383 PyObject * obj4 = 0 ;
17384 char *kwnames[] = {
17385 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17386 };
17387
17388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17391 arg2 = (int) SWIG_AsInt(obj1);
17392 if (PyErr_Occurred()) SWIG_fail;
17393 if (obj2) {
17394 arg3 = (int) SWIG_AsInt(obj2);
17395 if (PyErr_Occurred()) SWIG_fail;
17396 }
17397 if (obj3) {
17398 arg4 = (int) SWIG_AsInt(obj3);
17399 if (PyErr_Occurred()) SWIG_fail;
17400 }
17401 if (obj4) {
17402 arg5 = (int) SWIG_AsInt(obj4);
17403 if (PyErr_Occurred()) SWIG_fail;
17404 }
17405 {
17406 PyThreadState* __tstate = wxPyBeginAllowThreads();
17407 {
17408 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17409 result = (wxDateTime *) &_result_ref;
17410 }
17411
17412 wxPyEndAllowThreads(__tstate);
17413 if (PyErr_Occurred()) SWIG_fail;
17414 }
17415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17416 return resultobj;
17417 fail:
17418 return NULL;
17419 }
17420
17421
17422 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17423 PyObject *resultobj;
17424 wxDateTime *arg1 = (wxDateTime *) 0 ;
17425 int arg2 ;
17426 int arg3 = (int) wxDateTime::Inv_Month ;
17427 int arg4 = (int) wxDateTime::Inv_Year ;
17428 int arg5 = (int) 0 ;
17429 int arg6 = (int) 0 ;
17430 int arg7 = (int) 0 ;
17431 int arg8 = (int) 0 ;
17432 wxDateTime *result;
17433 PyObject * obj0 = 0 ;
17434 PyObject * obj1 = 0 ;
17435 PyObject * obj2 = 0 ;
17436 PyObject * obj3 = 0 ;
17437 PyObject * obj4 = 0 ;
17438 PyObject * obj5 = 0 ;
17439 PyObject * obj6 = 0 ;
17440 PyObject * obj7 = 0 ;
17441 char *kwnames[] = {
17442 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17443 };
17444
17445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17448 arg2 = (int) SWIG_AsInt(obj1);
17449 if (PyErr_Occurred()) SWIG_fail;
17450 if (obj2) {
17451 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17452 if (PyErr_Occurred()) SWIG_fail;
17453 }
17454 if (obj3) {
17455 arg4 = (int) SWIG_AsInt(obj3);
17456 if (PyErr_Occurred()) SWIG_fail;
17457 }
17458 if (obj4) {
17459 arg5 = (int) SWIG_AsInt(obj4);
17460 if (PyErr_Occurred()) SWIG_fail;
17461 }
17462 if (obj5) {
17463 arg6 = (int) SWIG_AsInt(obj5);
17464 if (PyErr_Occurred()) SWIG_fail;
17465 }
17466 if (obj6) {
17467 arg7 = (int) SWIG_AsInt(obj6);
17468 if (PyErr_Occurred()) SWIG_fail;
17469 }
17470 if (obj7) {
17471 arg8 = (int) SWIG_AsInt(obj7);
17472 if (PyErr_Occurred()) SWIG_fail;
17473 }
17474 {
17475 PyThreadState* __tstate = wxPyBeginAllowThreads();
17476 {
17477 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17478 result = (wxDateTime *) &_result_ref;
17479 }
17480
17481 wxPyEndAllowThreads(__tstate);
17482 if (PyErr_Occurred()) SWIG_fail;
17483 }
17484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17485 return resultobj;
17486 fail:
17487 return NULL;
17488 }
17489
17490
17491 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17492 PyObject *resultobj;
17493 wxDateTime *arg1 = (wxDateTime *) 0 ;
17494 wxDateTime *result;
17495 PyObject * obj0 = 0 ;
17496 char *kwnames[] = {
17497 (char *) "self", NULL
17498 };
17499
17500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17503 {
17504 PyThreadState* __tstate = wxPyBeginAllowThreads();
17505 {
17506 wxDateTime &_result_ref = (arg1)->ResetTime();
17507 result = (wxDateTime *) &_result_ref;
17508 }
17509
17510 wxPyEndAllowThreads(__tstate);
17511 if (PyErr_Occurred()) SWIG_fail;
17512 }
17513 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17514 return resultobj;
17515 fail:
17516 return NULL;
17517 }
17518
17519
17520 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17521 PyObject *resultobj;
17522 wxDateTime *arg1 = (wxDateTime *) 0 ;
17523 int arg2 ;
17524 wxDateTime *result;
17525 PyObject * obj0 = 0 ;
17526 PyObject * obj1 = 0 ;
17527 char *kwnames[] = {
17528 (char *) "self",(char *) "year", NULL
17529 };
17530
17531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17534 arg2 = (int) SWIG_AsInt(obj1);
17535 if (PyErr_Occurred()) SWIG_fail;
17536 {
17537 PyThreadState* __tstate = wxPyBeginAllowThreads();
17538 {
17539 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17540 result = (wxDateTime *) &_result_ref;
17541 }
17542
17543 wxPyEndAllowThreads(__tstate);
17544 if (PyErr_Occurred()) SWIG_fail;
17545 }
17546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17547 return resultobj;
17548 fail:
17549 return NULL;
17550 }
17551
17552
17553 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17554 PyObject *resultobj;
17555 wxDateTime *arg1 = (wxDateTime *) 0 ;
17556 int arg2 ;
17557 wxDateTime *result;
17558 PyObject * obj0 = 0 ;
17559 PyObject * obj1 = 0 ;
17560 char *kwnames[] = {
17561 (char *) "self",(char *) "month", NULL
17562 };
17563
17564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17567 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17568 if (PyErr_Occurred()) SWIG_fail;
17569 {
17570 PyThreadState* __tstate = wxPyBeginAllowThreads();
17571 {
17572 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17573 result = (wxDateTime *) &_result_ref;
17574 }
17575
17576 wxPyEndAllowThreads(__tstate);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 }
17579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17580 return resultobj;
17581 fail:
17582 return NULL;
17583 }
17584
17585
17586 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17587 PyObject *resultobj;
17588 wxDateTime *arg1 = (wxDateTime *) 0 ;
17589 int arg2 ;
17590 wxDateTime *result;
17591 PyObject * obj0 = 0 ;
17592 PyObject * obj1 = 0 ;
17593 char *kwnames[] = {
17594 (char *) "self",(char *) "day", NULL
17595 };
17596
17597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17600 arg2 = (int) SWIG_AsInt(obj1);
17601 if (PyErr_Occurred()) SWIG_fail;
17602 {
17603 PyThreadState* __tstate = wxPyBeginAllowThreads();
17604 {
17605 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17606 result = (wxDateTime *) &_result_ref;
17607 }
17608
17609 wxPyEndAllowThreads(__tstate);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17613 return resultobj;
17614 fail:
17615 return NULL;
17616 }
17617
17618
17619 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17620 PyObject *resultobj;
17621 wxDateTime *arg1 = (wxDateTime *) 0 ;
17622 int arg2 ;
17623 wxDateTime *result;
17624 PyObject * obj0 = 0 ;
17625 PyObject * obj1 = 0 ;
17626 char *kwnames[] = {
17627 (char *) "self",(char *) "hour", NULL
17628 };
17629
17630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17633 arg2 = (int) SWIG_AsInt(obj1);
17634 if (PyErr_Occurred()) SWIG_fail;
17635 {
17636 PyThreadState* __tstate = wxPyBeginAllowThreads();
17637 {
17638 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17639 result = (wxDateTime *) &_result_ref;
17640 }
17641
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17646 return resultobj;
17647 fail:
17648 return NULL;
17649 }
17650
17651
17652 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17653 PyObject *resultobj;
17654 wxDateTime *arg1 = (wxDateTime *) 0 ;
17655 int arg2 ;
17656 wxDateTime *result;
17657 PyObject * obj0 = 0 ;
17658 PyObject * obj1 = 0 ;
17659 char *kwnames[] = {
17660 (char *) "self",(char *) "minute", NULL
17661 };
17662
17663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17666 arg2 = (int) SWIG_AsInt(obj1);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 {
17669 PyThreadState* __tstate = wxPyBeginAllowThreads();
17670 {
17671 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17672 result = (wxDateTime *) &_result_ref;
17673 }
17674
17675 wxPyEndAllowThreads(__tstate);
17676 if (PyErr_Occurred()) SWIG_fail;
17677 }
17678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17679 return resultobj;
17680 fail:
17681 return NULL;
17682 }
17683
17684
17685 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17686 PyObject *resultobj;
17687 wxDateTime *arg1 = (wxDateTime *) 0 ;
17688 int arg2 ;
17689 wxDateTime *result;
17690 PyObject * obj0 = 0 ;
17691 PyObject * obj1 = 0 ;
17692 char *kwnames[] = {
17693 (char *) "self",(char *) "second", NULL
17694 };
17695
17696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17699 arg2 = (int) SWIG_AsInt(obj1);
17700 if (PyErr_Occurred()) SWIG_fail;
17701 {
17702 PyThreadState* __tstate = wxPyBeginAllowThreads();
17703 {
17704 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17705 result = (wxDateTime *) &_result_ref;
17706 }
17707
17708 wxPyEndAllowThreads(__tstate);
17709 if (PyErr_Occurred()) SWIG_fail;
17710 }
17711 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17712 return resultobj;
17713 fail:
17714 return NULL;
17715 }
17716
17717
17718 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17719 PyObject *resultobj;
17720 wxDateTime *arg1 = (wxDateTime *) 0 ;
17721 int arg2 ;
17722 wxDateTime *result;
17723 PyObject * obj0 = 0 ;
17724 PyObject * obj1 = 0 ;
17725 char *kwnames[] = {
17726 (char *) "self",(char *) "millisecond", NULL
17727 };
17728
17729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17732 arg2 = (int) SWIG_AsInt(obj1);
17733 if (PyErr_Occurred()) SWIG_fail;
17734 {
17735 PyThreadState* __tstate = wxPyBeginAllowThreads();
17736 {
17737 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17738 result = (wxDateTime *) &_result_ref;
17739 }
17740
17741 wxPyEndAllowThreads(__tstate);
17742 if (PyErr_Occurred()) SWIG_fail;
17743 }
17744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17745 return resultobj;
17746 fail:
17747 return NULL;
17748 }
17749
17750
17751 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17752 PyObject *resultobj;
17753 wxDateTime *arg1 = (wxDateTime *) 0 ;
17754 int arg2 ;
17755 int arg3 = (int) wxDateTime::Monday_First ;
17756 wxDateTime *result;
17757 PyObject * obj0 = 0 ;
17758 PyObject * obj1 = 0 ;
17759 PyObject * obj2 = 0 ;
17760 char *kwnames[] = {
17761 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17762 };
17763
17764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17767 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 if (obj2) {
17770 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17771 if (PyErr_Occurred()) SWIG_fail;
17772 }
17773 {
17774 PyThreadState* __tstate = wxPyBeginAllowThreads();
17775 {
17776 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17777 result = (wxDateTime *) &_result_ref;
17778 }
17779
17780 wxPyEndAllowThreads(__tstate);
17781 if (PyErr_Occurred()) SWIG_fail;
17782 }
17783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj;
17792 wxDateTime *arg1 = (wxDateTime *) 0 ;
17793 int arg2 ;
17794 int arg3 = (int) wxDateTime::Monday_First ;
17795 wxDateTime result;
17796 PyObject * obj0 = 0 ;
17797 PyObject * obj1 = 0 ;
17798 PyObject * obj2 = 0 ;
17799 char *kwnames[] = {
17800 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17801 };
17802
17803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17806 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17807 if (PyErr_Occurred()) SWIG_fail;
17808 if (obj2) {
17809 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17810 if (PyErr_Occurred()) SWIG_fail;
17811 }
17812 {
17813 PyThreadState* __tstate = wxPyBeginAllowThreads();
17814 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
17815
17816 wxPyEndAllowThreads(__tstate);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 }
17819 {
17820 wxDateTime * resultptr;
17821 resultptr = new wxDateTime((wxDateTime &) result);
17822 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17823 }
17824 return resultobj;
17825 fail:
17826 return NULL;
17827 }
17828
17829
17830 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17831 PyObject *resultobj;
17832 wxDateTime *arg1 = (wxDateTime *) 0 ;
17833 int arg2 ;
17834 wxDateTime *result;
17835 PyObject * obj0 = 0 ;
17836 PyObject * obj1 = 0 ;
17837 char *kwnames[] = {
17838 (char *) "self",(char *) "weekday", NULL
17839 };
17840
17841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
17842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17844 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17845 if (PyErr_Occurred()) SWIG_fail;
17846 {
17847 PyThreadState* __tstate = wxPyBeginAllowThreads();
17848 {
17849 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
17850 result = (wxDateTime *) &_result_ref;
17851 }
17852
17853 wxPyEndAllowThreads(__tstate);
17854 if (PyErr_Occurred()) SWIG_fail;
17855 }
17856 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17857 return resultobj;
17858 fail:
17859 return NULL;
17860 }
17861
17862
17863 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17864 PyObject *resultobj;
17865 wxDateTime *arg1 = (wxDateTime *) 0 ;
17866 int arg2 ;
17867 wxDateTime result;
17868 PyObject * obj0 = 0 ;
17869 PyObject * obj1 = 0 ;
17870 char *kwnames[] = {
17871 (char *) "self",(char *) "weekday", NULL
17872 };
17873
17874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
17875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17877 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17878 if (PyErr_Occurred()) SWIG_fail;
17879 {
17880 PyThreadState* __tstate = wxPyBeginAllowThreads();
17881 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
17882
17883 wxPyEndAllowThreads(__tstate);
17884 if (PyErr_Occurred()) SWIG_fail;
17885 }
17886 {
17887 wxDateTime * resultptr;
17888 resultptr = new wxDateTime((wxDateTime &) result);
17889 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17890 }
17891 return resultobj;
17892 fail:
17893 return NULL;
17894 }
17895
17896
17897 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17898 PyObject *resultobj;
17899 wxDateTime *arg1 = (wxDateTime *) 0 ;
17900 int arg2 ;
17901 wxDateTime *result;
17902 PyObject * obj0 = 0 ;
17903 PyObject * obj1 = 0 ;
17904 char *kwnames[] = {
17905 (char *) "self",(char *) "weekday", NULL
17906 };
17907
17908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
17909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17911 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17912 if (PyErr_Occurred()) SWIG_fail;
17913 {
17914 PyThreadState* __tstate = wxPyBeginAllowThreads();
17915 {
17916 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
17917 result = (wxDateTime *) &_result_ref;
17918 }
17919
17920 wxPyEndAllowThreads(__tstate);
17921 if (PyErr_Occurred()) SWIG_fail;
17922 }
17923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17924 return resultobj;
17925 fail:
17926 return NULL;
17927 }
17928
17929
17930 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17931 PyObject *resultobj;
17932 wxDateTime *arg1 = (wxDateTime *) 0 ;
17933 int arg2 ;
17934 wxDateTime result;
17935 PyObject * obj0 = 0 ;
17936 PyObject * obj1 = 0 ;
17937 char *kwnames[] = {
17938 (char *) "self",(char *) "weekday", NULL
17939 };
17940
17941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
17942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17944 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17945 if (PyErr_Occurred()) SWIG_fail;
17946 {
17947 PyThreadState* __tstate = wxPyBeginAllowThreads();
17948 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
17949
17950 wxPyEndAllowThreads(__tstate);
17951 if (PyErr_Occurred()) SWIG_fail;
17952 }
17953 {
17954 wxDateTime * resultptr;
17955 resultptr = new wxDateTime((wxDateTime &) result);
17956 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17957 }
17958 return resultobj;
17959 fail:
17960 return NULL;
17961 }
17962
17963
17964 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17965 PyObject *resultobj;
17966 wxDateTime *arg1 = (wxDateTime *) 0 ;
17967 int arg2 ;
17968 int arg3 = (int) 1 ;
17969 int arg4 = (int) wxDateTime::Inv_Month ;
17970 int arg5 = (int) wxDateTime::Inv_Year ;
17971 bool result;
17972 PyObject * obj0 = 0 ;
17973 PyObject * obj1 = 0 ;
17974 PyObject * obj2 = 0 ;
17975 PyObject * obj3 = 0 ;
17976 PyObject * obj4 = 0 ;
17977 char *kwnames[] = {
17978 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
17979 };
17980
17981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17984 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17985 if (PyErr_Occurred()) SWIG_fail;
17986 if (obj2) {
17987 arg3 = (int) SWIG_AsInt(obj2);
17988 if (PyErr_Occurred()) SWIG_fail;
17989 }
17990 if (obj3) {
17991 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
17992 if (PyErr_Occurred()) SWIG_fail;
17993 }
17994 if (obj4) {
17995 arg5 = (int) SWIG_AsInt(obj4);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 {
17999 PyThreadState* __tstate = wxPyBeginAllowThreads();
18000 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18001
18002 wxPyEndAllowThreads(__tstate);
18003 if (PyErr_Occurred()) SWIG_fail;
18004 }
18005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18006 return resultobj;
18007 fail:
18008 return NULL;
18009 }
18010
18011
18012 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18013 PyObject *resultobj;
18014 wxDateTime *arg1 = (wxDateTime *) 0 ;
18015 int arg2 ;
18016 int arg3 = (int) wxDateTime::Inv_Month ;
18017 int arg4 = (int) wxDateTime::Inv_Year ;
18018 bool result;
18019 PyObject * obj0 = 0 ;
18020 PyObject * obj1 = 0 ;
18021 PyObject * obj2 = 0 ;
18022 PyObject * obj3 = 0 ;
18023 char *kwnames[] = {
18024 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18025 };
18026
18027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18030 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18031 if (PyErr_Occurred()) SWIG_fail;
18032 if (obj2) {
18033 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 }
18036 if (obj3) {
18037 arg4 = (int) SWIG_AsInt(obj3);
18038 if (PyErr_Occurred()) SWIG_fail;
18039 }
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18043
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18048 return resultobj;
18049 fail:
18050 return NULL;
18051 }
18052
18053
18054 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18055 PyObject *resultobj;
18056 wxDateTime *arg1 = (wxDateTime *) 0 ;
18057 int arg2 ;
18058 int arg3 = (int) wxDateTime::Inv_Month ;
18059 int arg4 = (int) wxDateTime::Inv_Year ;
18060 wxDateTime result;
18061 PyObject * obj0 = 0 ;
18062 PyObject * obj1 = 0 ;
18063 PyObject * obj2 = 0 ;
18064 PyObject * obj3 = 0 ;
18065 char *kwnames[] = {
18066 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18067 };
18068
18069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18072 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18073 if (PyErr_Occurred()) SWIG_fail;
18074 if (obj2) {
18075 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18076 if (PyErr_Occurred()) SWIG_fail;
18077 }
18078 if (obj3) {
18079 arg4 = (int) SWIG_AsInt(obj3);
18080 if (PyErr_Occurred()) SWIG_fail;
18081 }
18082 {
18083 PyThreadState* __tstate = wxPyBeginAllowThreads();
18084 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18085
18086 wxPyEndAllowThreads(__tstate);
18087 if (PyErr_Occurred()) SWIG_fail;
18088 }
18089 {
18090 wxDateTime * resultptr;
18091 resultptr = new wxDateTime((wxDateTime &) result);
18092 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18093 }
18094 return resultobj;
18095 fail:
18096 return NULL;
18097 }
18098
18099
18100 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18101 PyObject *resultobj;
18102 wxDateTime *arg1 = (wxDateTime *) 0 ;
18103 int arg2 ;
18104 int arg3 = (int) wxDateTime::Mon ;
18105 int arg4 = (int) wxDateTime::Monday_First ;
18106 bool result;
18107 PyObject * obj0 = 0 ;
18108 PyObject * obj1 = 0 ;
18109 PyObject * obj2 = 0 ;
18110 PyObject * obj3 = 0 ;
18111 char *kwnames[] = {
18112 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18113 };
18114
18115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18118 arg2 = (int) SWIG_AsInt(obj1);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 if (obj2) {
18121 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18122 if (PyErr_Occurred()) SWIG_fail;
18123 }
18124 if (obj3) {
18125 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18126 if (PyErr_Occurred()) SWIG_fail;
18127 }
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18131
18132 wxPyEndAllowThreads(__tstate);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 }
18135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18136 return resultobj;
18137 fail:
18138 return NULL;
18139 }
18140
18141
18142 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18143 PyObject *resultobj;
18144 wxDateTime *arg1 = (wxDateTime *) 0 ;
18145 int arg2 ;
18146 int arg3 = (int) wxDateTime::Mon ;
18147 int arg4 = (int) wxDateTime::Monday_First ;
18148 wxDateTime result;
18149 PyObject * obj0 = 0 ;
18150 PyObject * obj1 = 0 ;
18151 PyObject * obj2 = 0 ;
18152 PyObject * obj3 = 0 ;
18153 char *kwnames[] = {
18154 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18155 };
18156
18157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18160 arg2 = (int) SWIG_AsInt(obj1);
18161 if (PyErr_Occurred()) SWIG_fail;
18162 if (obj2) {
18163 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18164 if (PyErr_Occurred()) SWIG_fail;
18165 }
18166 if (obj3) {
18167 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18168 if (PyErr_Occurred()) SWIG_fail;
18169 }
18170 {
18171 PyThreadState* __tstate = wxPyBeginAllowThreads();
18172 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18173
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 {
18178 wxDateTime * resultptr;
18179 resultptr = new wxDateTime((wxDateTime &) result);
18180 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18181 }
18182 return resultobj;
18183 fail:
18184 return NULL;
18185 }
18186
18187
18188 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18189 PyObject *resultobj;
18190 wxDateTime *arg1 = (wxDateTime *) 0 ;
18191 int arg2 = (int) wxDateTime::Inv_Month ;
18192 int arg3 = (int) wxDateTime::Inv_Year ;
18193 wxDateTime *result;
18194 PyObject * obj0 = 0 ;
18195 PyObject * obj1 = 0 ;
18196 PyObject * obj2 = 0 ;
18197 char *kwnames[] = {
18198 (char *) "self",(char *) "month",(char *) "year", NULL
18199 };
18200
18201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18204 if (obj1) {
18205 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 }
18208 if (obj2) {
18209 arg3 = (int) SWIG_AsInt(obj2);
18210 if (PyErr_Occurred()) SWIG_fail;
18211 }
18212 {
18213 PyThreadState* __tstate = wxPyBeginAllowThreads();
18214 {
18215 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18216 result = (wxDateTime *) &_result_ref;
18217 }
18218
18219 wxPyEndAllowThreads(__tstate);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 }
18222 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18223 return resultobj;
18224 fail:
18225 return NULL;
18226 }
18227
18228
18229 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18230 PyObject *resultobj;
18231 wxDateTime *arg1 = (wxDateTime *) 0 ;
18232 int arg2 = (int) wxDateTime::Inv_Month ;
18233 int arg3 = (int) wxDateTime::Inv_Year ;
18234 wxDateTime result;
18235 PyObject * obj0 = 0 ;
18236 PyObject * obj1 = 0 ;
18237 PyObject * obj2 = 0 ;
18238 char *kwnames[] = {
18239 (char *) "self",(char *) "month",(char *) "year", NULL
18240 };
18241
18242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18245 if (obj1) {
18246 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18247 if (PyErr_Occurred()) SWIG_fail;
18248 }
18249 if (obj2) {
18250 arg3 = (int) SWIG_AsInt(obj2);
18251 if (PyErr_Occurred()) SWIG_fail;
18252 }
18253 {
18254 PyThreadState* __tstate = wxPyBeginAllowThreads();
18255 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18256
18257 wxPyEndAllowThreads(__tstate);
18258 if (PyErr_Occurred()) SWIG_fail;
18259 }
18260 {
18261 wxDateTime * resultptr;
18262 resultptr = new wxDateTime((wxDateTime &) result);
18263 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18264 }
18265 return resultobj;
18266 fail:
18267 return NULL;
18268 }
18269
18270
18271 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18272 PyObject *resultobj;
18273 wxDateTime *arg1 = (wxDateTime *) 0 ;
18274 int arg2 ;
18275 wxDateTime *result;
18276 PyObject * obj0 = 0 ;
18277 PyObject * obj1 = 0 ;
18278 char *kwnames[] = {
18279 (char *) "self",(char *) "yday", NULL
18280 };
18281
18282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18285 arg2 = (int) SWIG_AsInt(obj1);
18286 if (PyErr_Occurred()) SWIG_fail;
18287 {
18288 PyThreadState* __tstate = wxPyBeginAllowThreads();
18289 {
18290 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18291 result = (wxDateTime *) &_result_ref;
18292 }
18293
18294 wxPyEndAllowThreads(__tstate);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18298 return resultobj;
18299 fail:
18300 return NULL;
18301 }
18302
18303
18304 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18305 PyObject *resultobj;
18306 wxDateTime *arg1 = (wxDateTime *) 0 ;
18307 int arg2 ;
18308 wxDateTime result;
18309 PyObject * obj0 = 0 ;
18310 PyObject * obj1 = 0 ;
18311 char *kwnames[] = {
18312 (char *) "self",(char *) "yday", NULL
18313 };
18314
18315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18318 arg2 = (int) SWIG_AsInt(obj1);
18319 if (PyErr_Occurred()) SWIG_fail;
18320 {
18321 PyThreadState* __tstate = wxPyBeginAllowThreads();
18322 result = (arg1)->GetYearDay(arg2);
18323
18324 wxPyEndAllowThreads(__tstate);
18325 if (PyErr_Occurred()) SWIG_fail;
18326 }
18327 {
18328 wxDateTime * resultptr;
18329 resultptr = new wxDateTime((wxDateTime &) result);
18330 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18331 }
18332 return resultobj;
18333 fail:
18334 return NULL;
18335 }
18336
18337
18338 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18339 PyObject *resultobj;
18340 wxDateTime *arg1 = (wxDateTime *) 0 ;
18341 double result;
18342 PyObject * obj0 = 0 ;
18343 char *kwnames[] = {
18344 (char *) "self", NULL
18345 };
18346
18347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18350 {
18351 PyThreadState* __tstate = wxPyBeginAllowThreads();
18352 result = (double)(arg1)->GetJulianDayNumber();
18353
18354 wxPyEndAllowThreads(__tstate);
18355 if (PyErr_Occurred()) SWIG_fail;
18356 }
18357 resultobj = SWIG_FromDouble((double)result);
18358 return resultobj;
18359 fail:
18360 return NULL;
18361 }
18362
18363
18364 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18365 PyObject *resultobj;
18366 wxDateTime *arg1 = (wxDateTime *) 0 ;
18367 double result;
18368 PyObject * obj0 = 0 ;
18369 char *kwnames[] = {
18370 (char *) "self", NULL
18371 };
18372
18373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18376 {
18377 PyThreadState* __tstate = wxPyBeginAllowThreads();
18378 result = (double)(arg1)->GetJDN();
18379
18380 wxPyEndAllowThreads(__tstate);
18381 if (PyErr_Occurred()) SWIG_fail;
18382 }
18383 resultobj = SWIG_FromDouble((double)result);
18384 return resultobj;
18385 fail:
18386 return NULL;
18387 }
18388
18389
18390 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18391 PyObject *resultobj;
18392 wxDateTime *arg1 = (wxDateTime *) 0 ;
18393 double result;
18394 PyObject * obj0 = 0 ;
18395 char *kwnames[] = {
18396 (char *) "self", NULL
18397 };
18398
18399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18402 {
18403 PyThreadState* __tstate = wxPyBeginAllowThreads();
18404 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18405
18406 wxPyEndAllowThreads(__tstate);
18407 if (PyErr_Occurred()) SWIG_fail;
18408 }
18409 resultobj = SWIG_FromDouble((double)result);
18410 return resultobj;
18411 fail:
18412 return NULL;
18413 }
18414
18415
18416 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18417 PyObject *resultobj;
18418 wxDateTime *arg1 = (wxDateTime *) 0 ;
18419 double result;
18420 PyObject * obj0 = 0 ;
18421 char *kwnames[] = {
18422 (char *) "self", NULL
18423 };
18424
18425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18428 {
18429 PyThreadState* __tstate = wxPyBeginAllowThreads();
18430 result = (double)(arg1)->GetMJD();
18431
18432 wxPyEndAllowThreads(__tstate);
18433 if (PyErr_Occurred()) SWIG_fail;
18434 }
18435 resultobj = SWIG_FromDouble((double)result);
18436 return resultobj;
18437 fail:
18438 return NULL;
18439 }
18440
18441
18442 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18443 PyObject *resultobj;
18444 wxDateTime *arg1 = (wxDateTime *) 0 ;
18445 double result;
18446 PyObject * obj0 = 0 ;
18447 char *kwnames[] = {
18448 (char *) "self", NULL
18449 };
18450
18451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18454 {
18455 PyThreadState* __tstate = wxPyBeginAllowThreads();
18456 result = (double)(arg1)->GetRataDie();
18457
18458 wxPyEndAllowThreads(__tstate);
18459 if (PyErr_Occurred()) SWIG_fail;
18460 }
18461 resultobj = SWIG_FromDouble((double)result);
18462 return resultobj;
18463 fail:
18464 return NULL;
18465 }
18466
18467
18468 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18469 PyObject *resultobj;
18470 wxDateTime *arg1 = (wxDateTime *) 0 ;
18471 wxDateTime::TimeZone *arg2 = 0 ;
18472 bool arg3 = (bool) False ;
18473 wxDateTime result;
18474 bool temp2 = False ;
18475 PyObject * obj0 = 0 ;
18476 PyObject * obj1 = 0 ;
18477 PyObject * obj2 = 0 ;
18478 char *kwnames[] = {
18479 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18480 };
18481
18482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18485 {
18486 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18487 temp2 = True;
18488 }
18489 if (obj2) {
18490 arg3 = (bool) SWIG_AsBool(obj2);
18491 if (PyErr_Occurred()) SWIG_fail;
18492 }
18493 {
18494 PyThreadState* __tstate = wxPyBeginAllowThreads();
18495 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18496
18497 wxPyEndAllowThreads(__tstate);
18498 if (PyErr_Occurred()) SWIG_fail;
18499 }
18500 {
18501 wxDateTime * resultptr;
18502 resultptr = new wxDateTime((wxDateTime &) result);
18503 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18504 }
18505 {
18506 if (temp2) delete arg2;
18507 }
18508 return resultobj;
18509 fail:
18510 {
18511 if (temp2) delete arg2;
18512 }
18513 return NULL;
18514 }
18515
18516
18517 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj;
18519 wxDateTime *arg1 = (wxDateTime *) 0 ;
18520 wxDateTime::TimeZone *arg2 = 0 ;
18521 bool arg3 = (bool) False ;
18522 wxDateTime *result;
18523 bool temp2 = False ;
18524 PyObject * obj0 = 0 ;
18525 PyObject * obj1 = 0 ;
18526 PyObject * obj2 = 0 ;
18527 char *kwnames[] = {
18528 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18529 };
18530
18531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18534 {
18535 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18536 temp2 = True;
18537 }
18538 if (obj2) {
18539 arg3 = (bool) SWIG_AsBool(obj2);
18540 if (PyErr_Occurred()) SWIG_fail;
18541 }
18542 {
18543 PyThreadState* __tstate = wxPyBeginAllowThreads();
18544 {
18545 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18546 result = (wxDateTime *) &_result_ref;
18547 }
18548
18549 wxPyEndAllowThreads(__tstate);
18550 if (PyErr_Occurred()) SWIG_fail;
18551 }
18552 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18553 {
18554 if (temp2) delete arg2;
18555 }
18556 return resultobj;
18557 fail:
18558 {
18559 if (temp2) delete arg2;
18560 }
18561 return NULL;
18562 }
18563
18564
18565 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18566 PyObject *resultobj;
18567 wxDateTime *arg1 = (wxDateTime *) 0 ;
18568 bool arg2 = (bool) False ;
18569 wxDateTime result;
18570 PyObject * obj0 = 0 ;
18571 PyObject * obj1 = 0 ;
18572 char *kwnames[] = {
18573 (char *) "self",(char *) "noDST", NULL
18574 };
18575
18576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18579 if (obj1) {
18580 arg2 = (bool) SWIG_AsBool(obj1);
18581 if (PyErr_Occurred()) SWIG_fail;
18582 }
18583 {
18584 PyThreadState* __tstate = wxPyBeginAllowThreads();
18585 result = (arg1)->ToGMT(arg2);
18586
18587 wxPyEndAllowThreads(__tstate);
18588 if (PyErr_Occurred()) SWIG_fail;
18589 }
18590 {
18591 wxDateTime * resultptr;
18592 resultptr = new wxDateTime((wxDateTime &) result);
18593 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18594 }
18595 return resultobj;
18596 fail:
18597 return NULL;
18598 }
18599
18600
18601 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18602 PyObject *resultobj;
18603 wxDateTime *arg1 = (wxDateTime *) 0 ;
18604 bool arg2 = (bool) False ;
18605 wxDateTime *result;
18606 PyObject * obj0 = 0 ;
18607 PyObject * obj1 = 0 ;
18608 char *kwnames[] = {
18609 (char *) "self",(char *) "noDST", NULL
18610 };
18611
18612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18615 if (obj1) {
18616 arg2 = (bool) SWIG_AsBool(obj1);
18617 if (PyErr_Occurred()) SWIG_fail;
18618 }
18619 {
18620 PyThreadState* __tstate = wxPyBeginAllowThreads();
18621 {
18622 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18623 result = (wxDateTime *) &_result_ref;
18624 }
18625
18626 wxPyEndAllowThreads(__tstate);
18627 if (PyErr_Occurred()) SWIG_fail;
18628 }
18629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18630 return resultobj;
18631 fail:
18632 return NULL;
18633 }
18634
18635
18636 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18637 PyObject *resultobj;
18638 wxDateTime *arg1 = (wxDateTime *) 0 ;
18639 int arg2 = (int) wxDateTime::Country_Default ;
18640 int result;
18641 PyObject * obj0 = 0 ;
18642 PyObject * obj1 = 0 ;
18643 char *kwnames[] = {
18644 (char *) "self",(char *) "country", NULL
18645 };
18646
18647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18650 if (obj1) {
18651 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18652 if (PyErr_Occurred()) SWIG_fail;
18653 }
18654 {
18655 PyThreadState* __tstate = wxPyBeginAllowThreads();
18656 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18657
18658 wxPyEndAllowThreads(__tstate);
18659 if (PyErr_Occurred()) SWIG_fail;
18660 }
18661 resultobj = SWIG_FromInt((int)result);
18662 return resultobj;
18663 fail:
18664 return NULL;
18665 }
18666
18667
18668 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
18669 PyObject *resultobj;
18670 wxDateTime *arg1 = (wxDateTime *) 0 ;
18671 bool result;
18672 PyObject * obj0 = 0 ;
18673 char *kwnames[] = {
18674 (char *) "self", NULL
18675 };
18676
18677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18680 {
18681 PyThreadState* __tstate = wxPyBeginAllowThreads();
18682 result = (bool)((wxDateTime const *)arg1)->IsValid();
18683
18684 wxPyEndAllowThreads(__tstate);
18685 if (PyErr_Occurred()) SWIG_fail;
18686 }
18687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18688 return resultobj;
18689 fail:
18690 return NULL;
18691 }
18692
18693
18694 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18695 PyObject *resultobj;
18696 wxDateTime *arg1 = (wxDateTime *) 0 ;
18697 time_t result;
18698 PyObject * obj0 = 0 ;
18699 char *kwnames[] = {
18700 (char *) "self", NULL
18701 };
18702
18703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18706 {
18707 PyThreadState* __tstate = wxPyBeginAllowThreads();
18708 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18709
18710 wxPyEndAllowThreads(__tstate);
18711 if (PyErr_Occurred()) SWIG_fail;
18712 }
18713 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
18714 return resultobj;
18715 fail:
18716 return NULL;
18717 }
18718
18719
18720 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18721 PyObject *resultobj;
18722 wxDateTime *arg1 = (wxDateTime *) 0 ;
18723 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18724 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18725 int result;
18726 bool temp2 = False ;
18727 PyObject * obj0 = 0 ;
18728 PyObject * obj1 = 0 ;
18729 char *kwnames[] = {
18730 (char *) "self",(char *) "tz", NULL
18731 };
18732
18733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18736 if (obj1) {
18737 {
18738 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18739 temp2 = True;
18740 }
18741 }
18742 {
18743 PyThreadState* __tstate = wxPyBeginAllowThreads();
18744 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18745
18746 wxPyEndAllowThreads(__tstate);
18747 if (PyErr_Occurred()) SWIG_fail;
18748 }
18749 resultobj = SWIG_FromInt((int)result);
18750 {
18751 if (temp2) delete arg2;
18752 }
18753 return resultobj;
18754 fail:
18755 {
18756 if (temp2) delete arg2;
18757 }
18758 return NULL;
18759 }
18760
18761
18762 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18763 PyObject *resultobj;
18764 wxDateTime *arg1 = (wxDateTime *) 0 ;
18765 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18766 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18767 int result;
18768 bool temp2 = False ;
18769 PyObject * obj0 = 0 ;
18770 PyObject * obj1 = 0 ;
18771 char *kwnames[] = {
18772 (char *) "self",(char *) "tz", NULL
18773 };
18774
18775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
18776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18778 if (obj1) {
18779 {
18780 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18781 temp2 = True;
18782 }
18783 }
18784 {
18785 PyThreadState* __tstate = wxPyBeginAllowThreads();
18786 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
18787
18788 wxPyEndAllowThreads(__tstate);
18789 if (PyErr_Occurred()) SWIG_fail;
18790 }
18791 resultobj = SWIG_FromInt((int)result);
18792 {
18793 if (temp2) delete arg2;
18794 }
18795 return resultobj;
18796 fail:
18797 {
18798 if (temp2) delete arg2;
18799 }
18800 return NULL;
18801 }
18802
18803
18804 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18805 PyObject *resultobj;
18806 wxDateTime *arg1 = (wxDateTime *) 0 ;
18807 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18808 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18809 int result;
18810 bool temp2 = False ;
18811 PyObject * obj0 = 0 ;
18812 PyObject * obj1 = 0 ;
18813 char *kwnames[] = {
18814 (char *) "self",(char *) "tz", NULL
18815 };
18816
18817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
18818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18820 if (obj1) {
18821 {
18822 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18823 temp2 = True;
18824 }
18825 }
18826 {
18827 PyThreadState* __tstate = wxPyBeginAllowThreads();
18828 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
18829
18830 wxPyEndAllowThreads(__tstate);
18831 if (PyErr_Occurred()) SWIG_fail;
18832 }
18833 resultobj = SWIG_FromInt((int)result);
18834 {
18835 if (temp2) delete arg2;
18836 }
18837 return resultobj;
18838 fail:
18839 {
18840 if (temp2) delete arg2;
18841 }
18842 return NULL;
18843 }
18844
18845
18846 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18847 PyObject *resultobj;
18848 wxDateTime *arg1 = (wxDateTime *) 0 ;
18849 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18850 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18851 int result;
18852 bool temp2 = False ;
18853 PyObject * obj0 = 0 ;
18854 PyObject * obj1 = 0 ;
18855 char *kwnames[] = {
18856 (char *) "self",(char *) "tz", NULL
18857 };
18858
18859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
18860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18862 if (obj1) {
18863 {
18864 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18865 temp2 = True;
18866 }
18867 }
18868 {
18869 PyThreadState* __tstate = wxPyBeginAllowThreads();
18870 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
18871
18872 wxPyEndAllowThreads(__tstate);
18873 if (PyErr_Occurred()) SWIG_fail;
18874 }
18875 resultobj = SWIG_FromInt((int)result);
18876 {
18877 if (temp2) delete arg2;
18878 }
18879 return resultobj;
18880 fail:
18881 {
18882 if (temp2) delete arg2;
18883 }
18884 return NULL;
18885 }
18886
18887
18888 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
18889 PyObject *resultobj;
18890 wxDateTime *arg1 = (wxDateTime *) 0 ;
18891 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18892 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18893 int result;
18894 bool temp2 = False ;
18895 PyObject * obj0 = 0 ;
18896 PyObject * obj1 = 0 ;
18897 char *kwnames[] = {
18898 (char *) "self",(char *) "tz", NULL
18899 };
18900
18901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
18902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18904 if (obj1) {
18905 {
18906 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18907 temp2 = True;
18908 }
18909 }
18910 {
18911 PyThreadState* __tstate = wxPyBeginAllowThreads();
18912 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
18913
18914 wxPyEndAllowThreads(__tstate);
18915 if (PyErr_Occurred()) SWIG_fail;
18916 }
18917 resultobj = SWIG_FromInt((int)result);
18918 {
18919 if (temp2) delete arg2;
18920 }
18921 return resultobj;
18922 fail:
18923 {
18924 if (temp2) delete arg2;
18925 }
18926 return NULL;
18927 }
18928
18929
18930 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
18931 PyObject *resultobj;
18932 wxDateTime *arg1 = (wxDateTime *) 0 ;
18933 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18934 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18935 int result;
18936 bool temp2 = False ;
18937 PyObject * obj0 = 0 ;
18938 PyObject * obj1 = 0 ;
18939 char *kwnames[] = {
18940 (char *) "self",(char *) "tz", NULL
18941 };
18942
18943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
18944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18946 if (obj1) {
18947 {
18948 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18949 temp2 = True;
18950 }
18951 }
18952 {
18953 PyThreadState* __tstate = wxPyBeginAllowThreads();
18954 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
18955
18956 wxPyEndAllowThreads(__tstate);
18957 if (PyErr_Occurred()) SWIG_fail;
18958 }
18959 resultobj = SWIG_FromInt((int)result);
18960 {
18961 if (temp2) delete arg2;
18962 }
18963 return resultobj;
18964 fail:
18965 {
18966 if (temp2) delete arg2;
18967 }
18968 return NULL;
18969 }
18970
18971
18972 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18973 PyObject *resultobj;
18974 wxDateTime *arg1 = (wxDateTime *) 0 ;
18975 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18976 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18977 int result;
18978 bool temp2 = False ;
18979 PyObject * obj0 = 0 ;
18980 PyObject * obj1 = 0 ;
18981 char *kwnames[] = {
18982 (char *) "self",(char *) "tz", NULL
18983 };
18984
18985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
18986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18988 if (obj1) {
18989 {
18990 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18991 temp2 = True;
18992 }
18993 }
18994 {
18995 PyThreadState* __tstate = wxPyBeginAllowThreads();
18996 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
18997
18998 wxPyEndAllowThreads(__tstate);
18999 if (PyErr_Occurred()) SWIG_fail;
19000 }
19001 resultobj = SWIG_FromInt((int)result);
19002 {
19003 if (temp2) delete arg2;
19004 }
19005 return resultobj;
19006 fail:
19007 {
19008 if (temp2) delete arg2;
19009 }
19010 return NULL;
19011 }
19012
19013
19014 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19015 PyObject *resultobj;
19016 wxDateTime *arg1 = (wxDateTime *) 0 ;
19017 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19018 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19019 int result;
19020 bool temp2 = False ;
19021 PyObject * obj0 = 0 ;
19022 PyObject * obj1 = 0 ;
19023 char *kwnames[] = {
19024 (char *) "self",(char *) "tz", NULL
19025 };
19026
19027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19030 if (obj1) {
19031 {
19032 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19033 temp2 = True;
19034 }
19035 }
19036 {
19037 PyThreadState* __tstate = wxPyBeginAllowThreads();
19038 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19039
19040 wxPyEndAllowThreads(__tstate);
19041 if (PyErr_Occurred()) SWIG_fail;
19042 }
19043 resultobj = SWIG_FromInt((int)result);
19044 {
19045 if (temp2) delete arg2;
19046 }
19047 return resultobj;
19048 fail:
19049 {
19050 if (temp2) delete arg2;
19051 }
19052 return NULL;
19053 }
19054
19055
19056 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19057 PyObject *resultobj;
19058 wxDateTime *arg1 = (wxDateTime *) 0 ;
19059 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19060 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19061 int result;
19062 bool temp2 = False ;
19063 PyObject * obj0 = 0 ;
19064 PyObject * obj1 = 0 ;
19065 char *kwnames[] = {
19066 (char *) "self",(char *) "tz", NULL
19067 };
19068
19069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19072 if (obj1) {
19073 {
19074 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19075 temp2 = True;
19076 }
19077 }
19078 {
19079 PyThreadState* __tstate = wxPyBeginAllowThreads();
19080 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19081
19082 wxPyEndAllowThreads(__tstate);
19083 if (PyErr_Occurred()) SWIG_fail;
19084 }
19085 resultobj = SWIG_FromInt((int)result);
19086 {
19087 if (temp2) delete arg2;
19088 }
19089 return resultobj;
19090 fail:
19091 {
19092 if (temp2) delete arg2;
19093 }
19094 return NULL;
19095 }
19096
19097
19098 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19099 PyObject *resultobj;
19100 wxDateTime *arg1 = (wxDateTime *) 0 ;
19101 int arg2 = (int) wxDateTime::Monday_First ;
19102 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19103 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19104 int result;
19105 bool temp3 = False ;
19106 PyObject * obj0 = 0 ;
19107 PyObject * obj1 = 0 ;
19108 PyObject * obj2 = 0 ;
19109 char *kwnames[] = {
19110 (char *) "self",(char *) "flags",(char *) "tz", NULL
19111 };
19112
19113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19116 if (obj1) {
19117 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19118 if (PyErr_Occurred()) SWIG_fail;
19119 }
19120 if (obj2) {
19121 {
19122 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19123 temp3 = True;
19124 }
19125 }
19126 {
19127 PyThreadState* __tstate = wxPyBeginAllowThreads();
19128 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19129
19130 wxPyEndAllowThreads(__tstate);
19131 if (PyErr_Occurred()) SWIG_fail;
19132 }
19133 resultobj = SWIG_FromInt((int)result);
19134 {
19135 if (temp3) delete arg3;
19136 }
19137 return resultobj;
19138 fail:
19139 {
19140 if (temp3) delete arg3;
19141 }
19142 return NULL;
19143 }
19144
19145
19146 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19147 PyObject *resultobj;
19148 wxDateTime *arg1 = (wxDateTime *) 0 ;
19149 int arg2 = (int) wxDateTime::Monday_First ;
19150 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19151 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19152 int result;
19153 bool temp3 = False ;
19154 PyObject * obj0 = 0 ;
19155 PyObject * obj1 = 0 ;
19156 PyObject * obj2 = 0 ;
19157 char *kwnames[] = {
19158 (char *) "self",(char *) "flags",(char *) "tz", NULL
19159 };
19160
19161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19164 if (obj1) {
19165 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19166 if (PyErr_Occurred()) SWIG_fail;
19167 }
19168 if (obj2) {
19169 {
19170 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19171 temp3 = True;
19172 }
19173 }
19174 {
19175 PyThreadState* __tstate = wxPyBeginAllowThreads();
19176 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19177
19178 wxPyEndAllowThreads(__tstate);
19179 if (PyErr_Occurred()) SWIG_fail;
19180 }
19181 resultobj = SWIG_FromInt((int)result);
19182 {
19183 if (temp3) delete arg3;
19184 }
19185 return resultobj;
19186 fail:
19187 {
19188 if (temp3) delete arg3;
19189 }
19190 return NULL;
19191 }
19192
19193
19194 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19195 PyObject *resultobj;
19196 wxDateTime *arg1 = (wxDateTime *) 0 ;
19197 int arg2 = (int) wxDateTime::Country_Default ;
19198 bool result;
19199 PyObject * obj0 = 0 ;
19200 PyObject * obj1 = 0 ;
19201 char *kwnames[] = {
19202 (char *) "self",(char *) "country", NULL
19203 };
19204
19205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19208 if (obj1) {
19209 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19210 if (PyErr_Occurred()) SWIG_fail;
19211 }
19212 {
19213 PyThreadState* __tstate = wxPyBeginAllowThreads();
19214 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19215
19216 wxPyEndAllowThreads(__tstate);
19217 if (PyErr_Occurred()) SWIG_fail;
19218 }
19219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19220 return resultobj;
19221 fail:
19222 return NULL;
19223 }
19224
19225
19226 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19227 PyObject *resultobj;
19228 wxDateTime *arg1 = (wxDateTime *) 0 ;
19229 wxDateTime *arg2 = 0 ;
19230 bool result;
19231 PyObject * obj0 = 0 ;
19232 PyObject * obj1 = 0 ;
19233 char *kwnames[] = {
19234 (char *) "self",(char *) "datetime", NULL
19235 };
19236
19237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19240 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19241 SWIG_POINTER_EXCEPTION | 0)) == -1)
19242 SWIG_fail;
19243 if (arg2 == NULL) {
19244 PyErr_SetString(PyExc_TypeError,"null reference");
19245 SWIG_fail;
19246 }
19247 {
19248 PyThreadState* __tstate = wxPyBeginAllowThreads();
19249 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19250
19251 wxPyEndAllowThreads(__tstate);
19252 if (PyErr_Occurred()) SWIG_fail;
19253 }
19254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19255 return resultobj;
19256 fail:
19257 return NULL;
19258 }
19259
19260
19261 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19262 PyObject *resultobj;
19263 wxDateTime *arg1 = (wxDateTime *) 0 ;
19264 wxDateTime *arg2 = 0 ;
19265 bool result;
19266 PyObject * obj0 = 0 ;
19267 PyObject * obj1 = 0 ;
19268 char *kwnames[] = {
19269 (char *) "self",(char *) "datetime", NULL
19270 };
19271
19272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19276 SWIG_POINTER_EXCEPTION | 0)) == -1)
19277 SWIG_fail;
19278 if (arg2 == NULL) {
19279 PyErr_SetString(PyExc_TypeError,"null reference");
19280 SWIG_fail;
19281 }
19282 {
19283 PyThreadState* __tstate = wxPyBeginAllowThreads();
19284 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19285
19286 wxPyEndAllowThreads(__tstate);
19287 if (PyErr_Occurred()) SWIG_fail;
19288 }
19289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19290 return resultobj;
19291 fail:
19292 return NULL;
19293 }
19294
19295
19296 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19297 PyObject *resultobj;
19298 wxDateTime *arg1 = (wxDateTime *) 0 ;
19299 wxDateTime *arg2 = 0 ;
19300 bool result;
19301 PyObject * obj0 = 0 ;
19302 PyObject * obj1 = 0 ;
19303 char *kwnames[] = {
19304 (char *) "self",(char *) "datetime", NULL
19305 };
19306
19307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19310 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19311 SWIG_POINTER_EXCEPTION | 0)) == -1)
19312 SWIG_fail;
19313 if (arg2 == NULL) {
19314 PyErr_SetString(PyExc_TypeError,"null reference");
19315 SWIG_fail;
19316 }
19317 {
19318 PyThreadState* __tstate = wxPyBeginAllowThreads();
19319 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19320
19321 wxPyEndAllowThreads(__tstate);
19322 if (PyErr_Occurred()) SWIG_fail;
19323 }
19324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19325 return resultobj;
19326 fail:
19327 return NULL;
19328 }
19329
19330
19331 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19332 PyObject *resultobj;
19333 wxDateTime *arg1 = (wxDateTime *) 0 ;
19334 wxDateTime *arg2 = 0 ;
19335 wxDateTime *arg3 = 0 ;
19336 bool result;
19337 PyObject * obj0 = 0 ;
19338 PyObject * obj1 = 0 ;
19339 PyObject * obj2 = 0 ;
19340 char *kwnames[] = {
19341 (char *) "self",(char *) "t1",(char *) "t2", NULL
19342 };
19343
19344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19347 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19348 SWIG_POINTER_EXCEPTION | 0)) == -1)
19349 SWIG_fail;
19350 if (arg2 == NULL) {
19351 PyErr_SetString(PyExc_TypeError,"null reference");
19352 SWIG_fail;
19353 }
19354 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19355 SWIG_POINTER_EXCEPTION | 0)) == -1)
19356 SWIG_fail;
19357 if (arg3 == NULL) {
19358 PyErr_SetString(PyExc_TypeError,"null reference");
19359 SWIG_fail;
19360 }
19361 {
19362 PyThreadState* __tstate = wxPyBeginAllowThreads();
19363 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19364
19365 wxPyEndAllowThreads(__tstate);
19366 if (PyErr_Occurred()) SWIG_fail;
19367 }
19368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19369 return resultobj;
19370 fail:
19371 return NULL;
19372 }
19373
19374
19375 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19376 PyObject *resultobj;
19377 wxDateTime *arg1 = (wxDateTime *) 0 ;
19378 wxDateTime *arg2 = 0 ;
19379 wxDateTime *arg3 = 0 ;
19380 bool result;
19381 PyObject * obj0 = 0 ;
19382 PyObject * obj1 = 0 ;
19383 PyObject * obj2 = 0 ;
19384 char *kwnames[] = {
19385 (char *) "self",(char *) "t1",(char *) "t2", NULL
19386 };
19387
19388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19391 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19392 SWIG_POINTER_EXCEPTION | 0)) == -1)
19393 SWIG_fail;
19394 if (arg2 == NULL) {
19395 PyErr_SetString(PyExc_TypeError,"null reference");
19396 SWIG_fail;
19397 }
19398 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19399 SWIG_POINTER_EXCEPTION | 0)) == -1)
19400 SWIG_fail;
19401 if (arg3 == NULL) {
19402 PyErr_SetString(PyExc_TypeError,"null reference");
19403 SWIG_fail;
19404 }
19405 {
19406 PyThreadState* __tstate = wxPyBeginAllowThreads();
19407 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19408
19409 wxPyEndAllowThreads(__tstate);
19410 if (PyErr_Occurred()) SWIG_fail;
19411 }
19412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19413 return resultobj;
19414 fail:
19415 return NULL;
19416 }
19417
19418
19419 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19420 PyObject *resultobj;
19421 wxDateTime *arg1 = (wxDateTime *) 0 ;
19422 wxDateTime *arg2 = 0 ;
19423 bool result;
19424 PyObject * obj0 = 0 ;
19425 PyObject * obj1 = 0 ;
19426 char *kwnames[] = {
19427 (char *) "self",(char *) "dt", NULL
19428 };
19429
19430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19433 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19434 SWIG_POINTER_EXCEPTION | 0)) == -1)
19435 SWIG_fail;
19436 if (arg2 == NULL) {
19437 PyErr_SetString(PyExc_TypeError,"null reference");
19438 SWIG_fail;
19439 }
19440 {
19441 PyThreadState* __tstate = wxPyBeginAllowThreads();
19442 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19443
19444 wxPyEndAllowThreads(__tstate);
19445 if (PyErr_Occurred()) SWIG_fail;
19446 }
19447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19448 return resultobj;
19449 fail:
19450 return NULL;
19451 }
19452
19453
19454 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19455 PyObject *resultobj;
19456 wxDateTime *arg1 = (wxDateTime *) 0 ;
19457 wxDateTime *arg2 = 0 ;
19458 bool result;
19459 PyObject * obj0 = 0 ;
19460 PyObject * obj1 = 0 ;
19461 char *kwnames[] = {
19462 (char *) "self",(char *) "dt", NULL
19463 };
19464
19465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19468 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19469 SWIG_POINTER_EXCEPTION | 0)) == -1)
19470 SWIG_fail;
19471 if (arg2 == NULL) {
19472 PyErr_SetString(PyExc_TypeError,"null reference");
19473 SWIG_fail;
19474 }
19475 {
19476 PyThreadState* __tstate = wxPyBeginAllowThreads();
19477 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19478
19479 wxPyEndAllowThreads(__tstate);
19480 if (PyErr_Occurred()) SWIG_fail;
19481 }
19482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19483 return resultobj;
19484 fail:
19485 return NULL;
19486 }
19487
19488
19489 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19490 PyObject *resultobj;
19491 wxDateTime *arg1 = (wxDateTime *) 0 ;
19492 wxDateTime *arg2 = 0 ;
19493 wxTimeSpan *arg3 = 0 ;
19494 bool result;
19495 PyObject * obj0 = 0 ;
19496 PyObject * obj1 = 0 ;
19497 PyObject * obj2 = 0 ;
19498 char *kwnames[] = {
19499 (char *) "self",(char *) "dt",(char *) "ts", NULL
19500 };
19501
19502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19506 SWIG_POINTER_EXCEPTION | 0)) == -1)
19507 SWIG_fail;
19508 if (arg2 == NULL) {
19509 PyErr_SetString(PyExc_TypeError,"null reference");
19510 SWIG_fail;
19511 }
19512 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19513 SWIG_POINTER_EXCEPTION | 0)) == -1)
19514 SWIG_fail;
19515 if (arg3 == NULL) {
19516 PyErr_SetString(PyExc_TypeError,"null reference");
19517 SWIG_fail;
19518 }
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19522
19523 wxPyEndAllowThreads(__tstate);
19524 if (PyErr_Occurred()) SWIG_fail;
19525 }
19526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19527 return resultobj;
19528 fail:
19529 return NULL;
19530 }
19531
19532
19533 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19534 PyObject *resultobj;
19535 wxDateTime *arg1 = (wxDateTime *) 0 ;
19536 wxTimeSpan *arg2 = 0 ;
19537 wxDateTime *result;
19538 PyObject * obj0 = 0 ;
19539 PyObject * obj1 = 0 ;
19540 char *kwnames[] = {
19541 (char *) "self",(char *) "diff", NULL
19542 };
19543
19544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19547 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19548 SWIG_POINTER_EXCEPTION | 0)) == -1)
19549 SWIG_fail;
19550 if (arg2 == NULL) {
19551 PyErr_SetString(PyExc_TypeError,"null reference");
19552 SWIG_fail;
19553 }
19554 {
19555 PyThreadState* __tstate = wxPyBeginAllowThreads();
19556 {
19557 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19558 result = (wxDateTime *) &_result_ref;
19559 }
19560
19561 wxPyEndAllowThreads(__tstate);
19562 if (PyErr_Occurred()) SWIG_fail;
19563 }
19564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19565 return resultobj;
19566 fail:
19567 return NULL;
19568 }
19569
19570
19571 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19572 PyObject *resultobj;
19573 wxDateTime *arg1 = (wxDateTime *) 0 ;
19574 wxDateSpan *arg2 = 0 ;
19575 wxDateTime *result;
19576 PyObject * obj0 = 0 ;
19577 PyObject * obj1 = 0 ;
19578 char *kwnames[] = {
19579 (char *) "self",(char *) "diff", NULL
19580 };
19581
19582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19585 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19586 SWIG_POINTER_EXCEPTION | 0)) == -1)
19587 SWIG_fail;
19588 if (arg2 == NULL) {
19589 PyErr_SetString(PyExc_TypeError,"null reference");
19590 SWIG_fail;
19591 }
19592 {
19593 PyThreadState* __tstate = wxPyBeginAllowThreads();
19594 {
19595 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19596 result = (wxDateTime *) &_result_ref;
19597 }
19598
19599 wxPyEndAllowThreads(__tstate);
19600 if (PyErr_Occurred()) SWIG_fail;
19601 }
19602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19603 return resultobj;
19604 fail:
19605 return NULL;
19606 }
19607
19608
19609 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19610 PyObject *resultobj;
19611 wxDateTime *arg1 = (wxDateTime *) 0 ;
19612 wxTimeSpan *arg2 = 0 ;
19613 wxDateTime *result;
19614 PyObject * obj0 = 0 ;
19615 PyObject * obj1 = 0 ;
19616 char *kwnames[] = {
19617 (char *) "self",(char *) "diff", NULL
19618 };
19619
19620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19623 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19624 SWIG_POINTER_EXCEPTION | 0)) == -1)
19625 SWIG_fail;
19626 if (arg2 == NULL) {
19627 PyErr_SetString(PyExc_TypeError,"null reference");
19628 SWIG_fail;
19629 }
19630 {
19631 PyThreadState* __tstate = wxPyBeginAllowThreads();
19632 {
19633 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19634 result = (wxDateTime *) &_result_ref;
19635 }
19636
19637 wxPyEndAllowThreads(__tstate);
19638 if (PyErr_Occurred()) SWIG_fail;
19639 }
19640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19641 return resultobj;
19642 fail:
19643 return NULL;
19644 }
19645
19646
19647 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19648 PyObject *resultobj;
19649 wxDateTime *arg1 = (wxDateTime *) 0 ;
19650 wxDateSpan *arg2 = 0 ;
19651 wxDateTime *result;
19652 PyObject * obj0 = 0 ;
19653 PyObject * obj1 = 0 ;
19654 char *kwnames[] = {
19655 (char *) "self",(char *) "diff", NULL
19656 };
19657
19658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19662 SWIG_POINTER_EXCEPTION | 0)) == -1)
19663 SWIG_fail;
19664 if (arg2 == NULL) {
19665 PyErr_SetString(PyExc_TypeError,"null reference");
19666 SWIG_fail;
19667 }
19668 {
19669 PyThreadState* __tstate = wxPyBeginAllowThreads();
19670 {
19671 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19672 result = (wxDateTime *) &_result_ref;
19673 }
19674
19675 wxPyEndAllowThreads(__tstate);
19676 if (PyErr_Occurred()) SWIG_fail;
19677 }
19678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19679 return resultobj;
19680 fail:
19681 return NULL;
19682 }
19683
19684
19685 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19686 PyObject *resultobj;
19687 wxDateTime *arg1 = (wxDateTime *) 0 ;
19688 wxDateTime *arg2 = 0 ;
19689 wxTimeSpan result;
19690 PyObject * obj0 = 0 ;
19691 PyObject * obj1 = 0 ;
19692 char *kwnames[] = {
19693 (char *) "self",(char *) "dt", NULL
19694 };
19695
19696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19699 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19700 SWIG_POINTER_EXCEPTION | 0)) == -1)
19701 SWIG_fail;
19702 if (arg2 == NULL) {
19703 PyErr_SetString(PyExc_TypeError,"null reference");
19704 SWIG_fail;
19705 }
19706 {
19707 PyThreadState* __tstate = wxPyBeginAllowThreads();
19708 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19709
19710 wxPyEndAllowThreads(__tstate);
19711 if (PyErr_Occurred()) SWIG_fail;
19712 }
19713 {
19714 wxTimeSpan * resultptr;
19715 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19716 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
19717 }
19718 return resultobj;
19719 fail:
19720 return NULL;
19721 }
19722
19723
19724 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
19725 PyObject *resultobj;
19726 wxDateTime *arg1 = (wxDateTime *) 0 ;
19727 wxTimeSpan *arg2 = 0 ;
19728 wxDateTime *result;
19729 PyObject * obj0 = 0 ;
19730 PyObject * obj1 = 0 ;
19731
19732 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19735 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19736 SWIG_POINTER_EXCEPTION | 0)) == -1)
19737 SWIG_fail;
19738 if (arg2 == NULL) {
19739 PyErr_SetString(PyExc_TypeError,"null reference");
19740 SWIG_fail;
19741 }
19742 {
19743 PyThreadState* __tstate = wxPyBeginAllowThreads();
19744 {
19745 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19746 result = (wxDateTime *) &_result_ref;
19747 }
19748
19749 wxPyEndAllowThreads(__tstate);
19750 if (PyErr_Occurred()) SWIG_fail;
19751 }
19752 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19753 return resultobj;
19754 fail:
19755 return NULL;
19756 }
19757
19758
19759 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
19760 PyObject *resultobj;
19761 wxDateTime *arg1 = (wxDateTime *) 0 ;
19762 wxDateSpan *arg2 = 0 ;
19763 wxDateTime *result;
19764 PyObject * obj0 = 0 ;
19765 PyObject * obj1 = 0 ;
19766
19767 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19770 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19771 SWIG_POINTER_EXCEPTION | 0)) == -1)
19772 SWIG_fail;
19773 if (arg2 == NULL) {
19774 PyErr_SetString(PyExc_TypeError,"null reference");
19775 SWIG_fail;
19776 }
19777 {
19778 PyThreadState* __tstate = wxPyBeginAllowThreads();
19779 {
19780 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
19781 result = (wxDateTime *) &_result_ref;
19782 }
19783
19784 wxPyEndAllowThreads(__tstate);
19785 if (PyErr_Occurred()) SWIG_fail;
19786 }
19787 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19788 return resultobj;
19789 fail:
19790 return NULL;
19791 }
19792
19793
19794 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
19795 int argc;
19796 PyObject *argv[3];
19797 int ii;
19798
19799 argc = PyObject_Length(args);
19800 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19801 argv[ii] = PyTuple_GetItem(args,ii);
19802 }
19803 if (argc == 2) {
19804 int _v;
19805 {
19806 void *ptr;
19807 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19808 _v = 0;
19809 PyErr_Clear();
19810 } else {
19811 _v = 1;
19812 }
19813 }
19814 if (_v) {
19815 {
19816 void *ptr;
19817 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
19818 _v = 0;
19819 PyErr_Clear();
19820 } else {
19821 _v = 1;
19822 }
19823 }
19824 if (_v) {
19825 return _wrap_DateTime___iadd____SWIG_0(self,args);
19826 }
19827 }
19828 }
19829 if (argc == 2) {
19830 int _v;
19831 {
19832 void *ptr;
19833 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19834 _v = 0;
19835 PyErr_Clear();
19836 } else {
19837 _v = 1;
19838 }
19839 }
19840 if (_v) {
19841 {
19842 void *ptr;
19843 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
19844 _v = 0;
19845 PyErr_Clear();
19846 } else {
19847 _v = 1;
19848 }
19849 }
19850 if (_v) {
19851 return _wrap_DateTime___iadd____SWIG_1(self,args);
19852 }
19853 }
19854 }
19855
19856 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
19857 return NULL;
19858 }
19859
19860
19861 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
19862 PyObject *resultobj;
19863 wxDateTime *arg1 = (wxDateTime *) 0 ;
19864 wxTimeSpan *arg2 = 0 ;
19865 wxDateTime *result;
19866 PyObject * obj0 = 0 ;
19867 PyObject * obj1 = 0 ;
19868
19869 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
19870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19872 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19873 SWIG_POINTER_EXCEPTION | 0)) == -1)
19874 SWIG_fail;
19875 if (arg2 == NULL) {
19876 PyErr_SetString(PyExc_TypeError,"null reference");
19877 SWIG_fail;
19878 }
19879 {
19880 PyThreadState* __tstate = wxPyBeginAllowThreads();
19881 {
19882 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
19883 result = (wxDateTime *) &_result_ref;
19884 }
19885
19886 wxPyEndAllowThreads(__tstate);
19887 if (PyErr_Occurred()) SWIG_fail;
19888 }
19889 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19890 return resultobj;
19891 fail:
19892 return NULL;
19893 }
19894
19895
19896 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
19897 PyObject *resultobj;
19898 wxDateTime *arg1 = (wxDateTime *) 0 ;
19899 wxDateSpan *arg2 = 0 ;
19900 wxDateTime *result;
19901 PyObject * obj0 = 0 ;
19902 PyObject * obj1 = 0 ;
19903
19904 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
19905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19907 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19908 SWIG_POINTER_EXCEPTION | 0)) == -1)
19909 SWIG_fail;
19910 if (arg2 == NULL) {
19911 PyErr_SetString(PyExc_TypeError,"null reference");
19912 SWIG_fail;
19913 }
19914 {
19915 PyThreadState* __tstate = wxPyBeginAllowThreads();
19916 {
19917 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
19918 result = (wxDateTime *) &_result_ref;
19919 }
19920
19921 wxPyEndAllowThreads(__tstate);
19922 if (PyErr_Occurred()) SWIG_fail;
19923 }
19924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19925 return resultobj;
19926 fail:
19927 return NULL;
19928 }
19929
19930
19931 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
19932 int argc;
19933 PyObject *argv[3];
19934 int ii;
19935
19936 argc = PyObject_Length(args);
19937 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
19938 argv[ii] = PyTuple_GetItem(args,ii);
19939 }
19940 if (argc == 2) {
19941 int _v;
19942 {
19943 void *ptr;
19944 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19945 _v = 0;
19946 PyErr_Clear();
19947 } else {
19948 _v = 1;
19949 }
19950 }
19951 if (_v) {
19952 {
19953 void *ptr;
19954 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
19955 _v = 0;
19956 PyErr_Clear();
19957 } else {
19958 _v = 1;
19959 }
19960 }
19961 if (_v) {
19962 return _wrap_DateTime___isub____SWIG_0(self,args);
19963 }
19964 }
19965 }
19966 if (argc == 2) {
19967 int _v;
19968 {
19969 void *ptr;
19970 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
19971 _v = 0;
19972 PyErr_Clear();
19973 } else {
19974 _v = 1;
19975 }
19976 }
19977 if (_v) {
19978 {
19979 void *ptr;
19980 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
19981 _v = 0;
19982 PyErr_Clear();
19983 } else {
19984 _v = 1;
19985 }
19986 }
19987 if (_v) {
19988 return _wrap_DateTime___isub____SWIG_1(self,args);
19989 }
19990 }
19991 }
19992
19993 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
19994 return NULL;
19995 }
19996
19997
19998 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
19999 PyObject *resultobj;
20000 wxDateTime *arg1 = (wxDateTime *) 0 ;
20001 wxTimeSpan *arg2 = 0 ;
20002 wxDateTime result;
20003 PyObject * obj0 = 0 ;
20004 PyObject * obj1 = 0 ;
20005
20006 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20009 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20010 SWIG_POINTER_EXCEPTION | 0)) == -1)
20011 SWIG_fail;
20012 if (arg2 == NULL) {
20013 PyErr_SetString(PyExc_TypeError,"null reference");
20014 SWIG_fail;
20015 }
20016 {
20017 PyThreadState* __tstate = wxPyBeginAllowThreads();
20018 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20019
20020 wxPyEndAllowThreads(__tstate);
20021 if (PyErr_Occurred()) SWIG_fail;
20022 }
20023 {
20024 wxDateTime * resultptr;
20025 resultptr = new wxDateTime((wxDateTime &) result);
20026 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20027 }
20028 return resultobj;
20029 fail:
20030 return NULL;
20031 }
20032
20033
20034 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20035 PyObject *resultobj;
20036 wxDateTime *arg1 = (wxDateTime *) 0 ;
20037 wxDateSpan *arg2 = 0 ;
20038 wxDateTime result;
20039 PyObject * obj0 = 0 ;
20040 PyObject * obj1 = 0 ;
20041
20042 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20046 SWIG_POINTER_EXCEPTION | 0)) == -1)
20047 SWIG_fail;
20048 if (arg2 == NULL) {
20049 PyErr_SetString(PyExc_TypeError,"null reference");
20050 SWIG_fail;
20051 }
20052 {
20053 PyThreadState* __tstate = wxPyBeginAllowThreads();
20054 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20055
20056 wxPyEndAllowThreads(__tstate);
20057 if (PyErr_Occurred()) SWIG_fail;
20058 }
20059 {
20060 wxDateTime * resultptr;
20061 resultptr = new wxDateTime((wxDateTime &) result);
20062 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20063 }
20064 return resultobj;
20065 fail:
20066 return NULL;
20067 }
20068
20069
20070 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20071 int argc;
20072 PyObject *argv[3];
20073 int ii;
20074
20075 argc = PyObject_Length(args);
20076 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20077 argv[ii] = PyTuple_GetItem(args,ii);
20078 }
20079 if (argc == 2) {
20080 int _v;
20081 {
20082 void *ptr;
20083 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20084 _v = 0;
20085 PyErr_Clear();
20086 } else {
20087 _v = 1;
20088 }
20089 }
20090 if (_v) {
20091 {
20092 void *ptr;
20093 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20094 _v = 0;
20095 PyErr_Clear();
20096 } else {
20097 _v = 1;
20098 }
20099 }
20100 if (_v) {
20101 return _wrap_DateTime___add____SWIG_0(self,args);
20102 }
20103 }
20104 }
20105 if (argc == 2) {
20106 int _v;
20107 {
20108 void *ptr;
20109 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20110 _v = 0;
20111 PyErr_Clear();
20112 } else {
20113 _v = 1;
20114 }
20115 }
20116 if (_v) {
20117 {
20118 void *ptr;
20119 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20120 _v = 0;
20121 PyErr_Clear();
20122 } else {
20123 _v = 1;
20124 }
20125 }
20126 if (_v) {
20127 return _wrap_DateTime___add____SWIG_1(self,args);
20128 }
20129 }
20130 }
20131
20132 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20133 return NULL;
20134 }
20135
20136
20137 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20138 PyObject *resultobj;
20139 wxDateTime *arg1 = (wxDateTime *) 0 ;
20140 wxDateTime *arg2 = 0 ;
20141 wxTimeSpan result;
20142 PyObject * obj0 = 0 ;
20143 PyObject * obj1 = 0 ;
20144
20145 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20148 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20149 SWIG_POINTER_EXCEPTION | 0)) == -1)
20150 SWIG_fail;
20151 if (arg2 == NULL) {
20152 PyErr_SetString(PyExc_TypeError,"null reference");
20153 SWIG_fail;
20154 }
20155 {
20156 PyThreadState* __tstate = wxPyBeginAllowThreads();
20157 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20158
20159 wxPyEndAllowThreads(__tstate);
20160 if (PyErr_Occurred()) SWIG_fail;
20161 }
20162 {
20163 wxTimeSpan * resultptr;
20164 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20165 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20166 }
20167 return resultobj;
20168 fail:
20169 return NULL;
20170 }
20171
20172
20173 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20174 PyObject *resultobj;
20175 wxDateTime *arg1 = (wxDateTime *) 0 ;
20176 wxTimeSpan *arg2 = 0 ;
20177 wxDateTime result;
20178 PyObject * obj0 = 0 ;
20179 PyObject * obj1 = 0 ;
20180
20181 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20184 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20185 SWIG_POINTER_EXCEPTION | 0)) == -1)
20186 SWIG_fail;
20187 if (arg2 == NULL) {
20188 PyErr_SetString(PyExc_TypeError,"null reference");
20189 SWIG_fail;
20190 }
20191 {
20192 PyThreadState* __tstate = wxPyBeginAllowThreads();
20193 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20194
20195 wxPyEndAllowThreads(__tstate);
20196 if (PyErr_Occurred()) SWIG_fail;
20197 }
20198 {
20199 wxDateTime * resultptr;
20200 resultptr = new wxDateTime((wxDateTime &) result);
20201 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20202 }
20203 return resultobj;
20204 fail:
20205 return NULL;
20206 }
20207
20208
20209 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20210 PyObject *resultobj;
20211 wxDateTime *arg1 = (wxDateTime *) 0 ;
20212 wxDateSpan *arg2 = 0 ;
20213 wxDateTime result;
20214 PyObject * obj0 = 0 ;
20215 PyObject * obj1 = 0 ;
20216
20217 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20221 SWIG_POINTER_EXCEPTION | 0)) == -1)
20222 SWIG_fail;
20223 if (arg2 == NULL) {
20224 PyErr_SetString(PyExc_TypeError,"null reference");
20225 SWIG_fail;
20226 }
20227 {
20228 PyThreadState* __tstate = wxPyBeginAllowThreads();
20229 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20230
20231 wxPyEndAllowThreads(__tstate);
20232 if (PyErr_Occurred()) SWIG_fail;
20233 }
20234 {
20235 wxDateTime * resultptr;
20236 resultptr = new wxDateTime((wxDateTime &) result);
20237 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20238 }
20239 return resultobj;
20240 fail:
20241 return NULL;
20242 }
20243
20244
20245 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20246 int argc;
20247 PyObject *argv[3];
20248 int ii;
20249
20250 argc = PyObject_Length(args);
20251 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20252 argv[ii] = PyTuple_GetItem(args,ii);
20253 }
20254 if (argc == 2) {
20255 int _v;
20256 {
20257 void *ptr;
20258 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20259 _v = 0;
20260 PyErr_Clear();
20261 } else {
20262 _v = 1;
20263 }
20264 }
20265 if (_v) {
20266 {
20267 void *ptr;
20268 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20269 _v = 0;
20270 PyErr_Clear();
20271 } else {
20272 _v = 1;
20273 }
20274 }
20275 if (_v) {
20276 return _wrap_DateTime___sub____SWIG_0(self,args);
20277 }
20278 }
20279 }
20280 if (argc == 2) {
20281 int _v;
20282 {
20283 void *ptr;
20284 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20285 _v = 0;
20286 PyErr_Clear();
20287 } else {
20288 _v = 1;
20289 }
20290 }
20291 if (_v) {
20292 {
20293 void *ptr;
20294 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20295 _v = 0;
20296 PyErr_Clear();
20297 } else {
20298 _v = 1;
20299 }
20300 }
20301 if (_v) {
20302 return _wrap_DateTime___sub____SWIG_1(self,args);
20303 }
20304 }
20305 }
20306 if (argc == 2) {
20307 int _v;
20308 {
20309 void *ptr;
20310 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20311 _v = 0;
20312 PyErr_Clear();
20313 } else {
20314 _v = 1;
20315 }
20316 }
20317 if (_v) {
20318 {
20319 void *ptr;
20320 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20321 _v = 0;
20322 PyErr_Clear();
20323 } else {
20324 _v = 1;
20325 }
20326 }
20327 if (_v) {
20328 return _wrap_DateTime___sub____SWIG_2(self,args);
20329 }
20330 }
20331 }
20332
20333 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20334 return NULL;
20335 }
20336
20337
20338 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20339 PyObject *resultobj;
20340 wxDateTime *arg1 = (wxDateTime *) 0 ;
20341 wxDateTime *arg2 = (wxDateTime *) 0 ;
20342 bool result;
20343 PyObject * obj0 = 0 ;
20344 PyObject * obj1 = 0 ;
20345
20346 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20351 {
20352 PyThreadState* __tstate = wxPyBeginAllowThreads();
20353 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20354
20355 wxPyEndAllowThreads(__tstate);
20356 if (PyErr_Occurred()) SWIG_fail;
20357 }
20358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20359 return resultobj;
20360 fail:
20361 return NULL;
20362 }
20363
20364
20365 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20366 PyObject *resultobj;
20367 wxDateTime *arg1 = (wxDateTime *) 0 ;
20368 wxDateTime *arg2 = (wxDateTime *) 0 ;
20369 bool result;
20370 PyObject * obj0 = 0 ;
20371 PyObject * obj1 = 0 ;
20372
20373 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20378 {
20379 PyThreadState* __tstate = wxPyBeginAllowThreads();
20380 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20381
20382 wxPyEndAllowThreads(__tstate);
20383 if (PyErr_Occurred()) SWIG_fail;
20384 }
20385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20386 return resultobj;
20387 fail:
20388 return NULL;
20389 }
20390
20391
20392 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20393 PyObject *resultobj;
20394 wxDateTime *arg1 = (wxDateTime *) 0 ;
20395 wxDateTime *arg2 = (wxDateTime *) 0 ;
20396 bool result;
20397 PyObject * obj0 = 0 ;
20398 PyObject * obj1 = 0 ;
20399
20400 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20403 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20405 {
20406 PyThreadState* __tstate = wxPyBeginAllowThreads();
20407 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20408
20409 wxPyEndAllowThreads(__tstate);
20410 if (PyErr_Occurred()) SWIG_fail;
20411 }
20412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20413 return resultobj;
20414 fail:
20415 return NULL;
20416 }
20417
20418
20419 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20420 PyObject *resultobj;
20421 wxDateTime *arg1 = (wxDateTime *) 0 ;
20422 wxDateTime *arg2 = (wxDateTime *) 0 ;
20423 bool result;
20424 PyObject * obj0 = 0 ;
20425 PyObject * obj1 = 0 ;
20426
20427 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20430 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20432 {
20433 PyThreadState* __tstate = wxPyBeginAllowThreads();
20434 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20435
20436 wxPyEndAllowThreads(__tstate);
20437 if (PyErr_Occurred()) SWIG_fail;
20438 }
20439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20440 return resultobj;
20441 fail:
20442 return NULL;
20443 }
20444
20445
20446 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20447 PyObject *resultobj;
20448 wxDateTime *arg1 = (wxDateTime *) 0 ;
20449 wxDateTime *arg2 = (wxDateTime *) 0 ;
20450 bool result;
20451 PyObject * obj0 = 0 ;
20452 PyObject * obj1 = 0 ;
20453
20454 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20457 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20459 {
20460 PyThreadState* __tstate = wxPyBeginAllowThreads();
20461 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20462
20463 wxPyEndAllowThreads(__tstate);
20464 if (PyErr_Occurred()) SWIG_fail;
20465 }
20466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20467 return resultobj;
20468 fail:
20469 return NULL;
20470 }
20471
20472
20473 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20474 PyObject *resultobj;
20475 wxDateTime *arg1 = (wxDateTime *) 0 ;
20476 wxDateTime *arg2 = (wxDateTime *) 0 ;
20477 bool result;
20478 PyObject * obj0 = 0 ;
20479 PyObject * obj1 = 0 ;
20480
20481 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20484 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20486 {
20487 PyThreadState* __tstate = wxPyBeginAllowThreads();
20488 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20489
20490 wxPyEndAllowThreads(__tstate);
20491 if (PyErr_Occurred()) SWIG_fail;
20492 }
20493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20494 return resultobj;
20495 fail:
20496 return NULL;
20497 }
20498
20499
20500 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20501 PyObject *resultobj;
20502 wxDateTime *arg1 = (wxDateTime *) 0 ;
20503 wxString *arg2 = 0 ;
20504 int result;
20505 bool temp2 = False ;
20506 PyObject * obj0 = 0 ;
20507 PyObject * obj1 = 0 ;
20508 char *kwnames[] = {
20509 (char *) "self",(char *) "date", NULL
20510 };
20511
20512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20515 {
20516 arg2 = wxString_in_helper(obj1);
20517 if (arg2 == NULL) SWIG_fail;
20518 temp2 = True;
20519 }
20520 {
20521 PyThreadState* __tstate = wxPyBeginAllowThreads();
20522 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20523
20524 wxPyEndAllowThreads(__tstate);
20525 if (PyErr_Occurred()) SWIG_fail;
20526 }
20527 resultobj = SWIG_FromInt((int)result);
20528 {
20529 if (temp2)
20530 delete arg2;
20531 }
20532 return resultobj;
20533 fail:
20534 {
20535 if (temp2)
20536 delete arg2;
20537 }
20538 return NULL;
20539 }
20540
20541
20542 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20543 PyObject *resultobj;
20544 wxDateTime *arg1 = (wxDateTime *) 0 ;
20545 wxString *arg2 = 0 ;
20546 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20547 wxString *arg3 = (wxString *) &arg3_defvalue ;
20548 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20549 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20550 int result;
20551 bool temp2 = False ;
20552 bool temp3 = False ;
20553 PyObject * obj0 = 0 ;
20554 PyObject * obj1 = 0 ;
20555 PyObject * obj2 = 0 ;
20556 PyObject * obj3 = 0 ;
20557 char *kwnames[] = {
20558 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20559 };
20560
20561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20564 {
20565 arg2 = wxString_in_helper(obj1);
20566 if (arg2 == NULL) SWIG_fail;
20567 temp2 = True;
20568 }
20569 if (obj2) {
20570 {
20571 arg3 = wxString_in_helper(obj2);
20572 if (arg3 == NULL) SWIG_fail;
20573 temp3 = True;
20574 }
20575 }
20576 if (obj3) {
20577 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20578 SWIG_POINTER_EXCEPTION | 0)) == -1)
20579 SWIG_fail;
20580 if (arg4 == NULL) {
20581 PyErr_SetString(PyExc_TypeError,"null reference");
20582 SWIG_fail;
20583 }
20584 }
20585 {
20586 PyThreadState* __tstate = wxPyBeginAllowThreads();
20587 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20588
20589 wxPyEndAllowThreads(__tstate);
20590 if (PyErr_Occurred()) SWIG_fail;
20591 }
20592 resultobj = SWIG_FromInt((int)result);
20593 {
20594 if (temp2)
20595 delete arg2;
20596 }
20597 {
20598 if (temp3)
20599 delete arg3;
20600 }
20601 return resultobj;
20602 fail:
20603 {
20604 if (temp2)
20605 delete arg2;
20606 }
20607 {
20608 if (temp3)
20609 delete arg3;
20610 }
20611 return NULL;
20612 }
20613
20614
20615 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20616 PyObject *resultobj;
20617 wxDateTime *arg1 = (wxDateTime *) 0 ;
20618 wxString *arg2 = 0 ;
20619 int result;
20620 bool temp2 = False ;
20621 PyObject * obj0 = 0 ;
20622 PyObject * obj1 = 0 ;
20623 char *kwnames[] = {
20624 (char *) "self",(char *) "datetime", NULL
20625 };
20626
20627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20630 {
20631 arg2 = wxString_in_helper(obj1);
20632 if (arg2 == NULL) SWIG_fail;
20633 temp2 = True;
20634 }
20635 {
20636 PyThreadState* __tstate = wxPyBeginAllowThreads();
20637 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20638
20639 wxPyEndAllowThreads(__tstate);
20640 if (PyErr_Occurred()) SWIG_fail;
20641 }
20642 resultobj = SWIG_FromInt((int)result);
20643 {
20644 if (temp2)
20645 delete arg2;
20646 }
20647 return resultobj;
20648 fail:
20649 {
20650 if (temp2)
20651 delete arg2;
20652 }
20653 return NULL;
20654 }
20655
20656
20657 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20658 PyObject *resultobj;
20659 wxDateTime *arg1 = (wxDateTime *) 0 ;
20660 wxString *arg2 = 0 ;
20661 int result;
20662 bool temp2 = False ;
20663 PyObject * obj0 = 0 ;
20664 PyObject * obj1 = 0 ;
20665 char *kwnames[] = {
20666 (char *) "self",(char *) "date", NULL
20667 };
20668
20669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20672 {
20673 arg2 = wxString_in_helper(obj1);
20674 if (arg2 == NULL) SWIG_fail;
20675 temp2 = True;
20676 }
20677 {
20678 PyThreadState* __tstate = wxPyBeginAllowThreads();
20679 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20680
20681 wxPyEndAllowThreads(__tstate);
20682 if (PyErr_Occurred()) SWIG_fail;
20683 }
20684 resultobj = SWIG_FromInt((int)result);
20685 {
20686 if (temp2)
20687 delete arg2;
20688 }
20689 return resultobj;
20690 fail:
20691 {
20692 if (temp2)
20693 delete arg2;
20694 }
20695 return NULL;
20696 }
20697
20698
20699 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20700 PyObject *resultobj;
20701 wxDateTime *arg1 = (wxDateTime *) 0 ;
20702 wxString *arg2 = 0 ;
20703 int result;
20704 bool temp2 = False ;
20705 PyObject * obj0 = 0 ;
20706 PyObject * obj1 = 0 ;
20707 char *kwnames[] = {
20708 (char *) "self",(char *) "time", NULL
20709 };
20710
20711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20714 {
20715 arg2 = wxString_in_helper(obj1);
20716 if (arg2 == NULL) SWIG_fail;
20717 temp2 = True;
20718 }
20719 {
20720 PyThreadState* __tstate = wxPyBeginAllowThreads();
20721 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20722
20723 wxPyEndAllowThreads(__tstate);
20724 if (PyErr_Occurred()) SWIG_fail;
20725 }
20726 resultobj = SWIG_FromInt((int)result);
20727 {
20728 if (temp2)
20729 delete arg2;
20730 }
20731 return resultobj;
20732 fail:
20733 {
20734 if (temp2)
20735 delete arg2;
20736 }
20737 return NULL;
20738 }
20739
20740
20741 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
20742 PyObject *resultobj;
20743 wxDateTime *arg1 = (wxDateTime *) 0 ;
20744 wxString const &arg2_defvalue = wxPyDateFormatStr ;
20745 wxString *arg2 = (wxString *) &arg2_defvalue ;
20746 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
20747 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
20748 wxString result;
20749 bool temp2 = False ;
20750 bool temp3 = False ;
20751 PyObject * obj0 = 0 ;
20752 PyObject * obj1 = 0 ;
20753 PyObject * obj2 = 0 ;
20754 char *kwnames[] = {
20755 (char *) "self",(char *) "format",(char *) "tz", NULL
20756 };
20757
20758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
20759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20761 if (obj1) {
20762 {
20763 arg2 = wxString_in_helper(obj1);
20764 if (arg2 == NULL) SWIG_fail;
20765 temp2 = True;
20766 }
20767 }
20768 if (obj2) {
20769 {
20770 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
20771 temp3 = True;
20772 }
20773 }
20774 {
20775 PyThreadState* __tstate = wxPyBeginAllowThreads();
20776 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
20777
20778 wxPyEndAllowThreads(__tstate);
20779 if (PyErr_Occurred()) SWIG_fail;
20780 }
20781 {
20782 #if wxUSE_UNICODE
20783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20784 #else
20785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20786 #endif
20787 }
20788 {
20789 if (temp2)
20790 delete arg2;
20791 }
20792 {
20793 if (temp3) delete arg3;
20794 }
20795 return resultobj;
20796 fail:
20797 {
20798 if (temp2)
20799 delete arg2;
20800 }
20801 {
20802 if (temp3) delete arg3;
20803 }
20804 return NULL;
20805 }
20806
20807
20808 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20809 PyObject *resultobj;
20810 wxDateTime *arg1 = (wxDateTime *) 0 ;
20811 wxString result;
20812 PyObject * obj0 = 0 ;
20813 char *kwnames[] = {
20814 (char *) "self", NULL
20815 };
20816
20817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
20818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20820 {
20821 PyThreadState* __tstate = wxPyBeginAllowThreads();
20822 result = ((wxDateTime const *)arg1)->FormatDate();
20823
20824 wxPyEndAllowThreads(__tstate);
20825 if (PyErr_Occurred()) SWIG_fail;
20826 }
20827 {
20828 #if wxUSE_UNICODE
20829 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20830 #else
20831 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20832 #endif
20833 }
20834 return resultobj;
20835 fail:
20836 return NULL;
20837 }
20838
20839
20840 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20841 PyObject *resultobj;
20842 wxDateTime *arg1 = (wxDateTime *) 0 ;
20843 wxString result;
20844 PyObject * obj0 = 0 ;
20845 char *kwnames[] = {
20846 (char *) "self", NULL
20847 };
20848
20849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
20850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20852 {
20853 PyThreadState* __tstate = wxPyBeginAllowThreads();
20854 result = ((wxDateTime const *)arg1)->FormatTime();
20855
20856 wxPyEndAllowThreads(__tstate);
20857 if (PyErr_Occurred()) SWIG_fail;
20858 }
20859 {
20860 #if wxUSE_UNICODE
20861 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20862 #else
20863 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20864 #endif
20865 }
20866 return resultobj;
20867 fail:
20868 return NULL;
20869 }
20870
20871
20872 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
20873 PyObject *resultobj;
20874 wxDateTime *arg1 = (wxDateTime *) 0 ;
20875 wxString result;
20876 PyObject * obj0 = 0 ;
20877 char *kwnames[] = {
20878 (char *) "self", NULL
20879 };
20880
20881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
20882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20884 {
20885 PyThreadState* __tstate = wxPyBeginAllowThreads();
20886 result = ((wxDateTime const *)arg1)->FormatISODate();
20887
20888 wxPyEndAllowThreads(__tstate);
20889 if (PyErr_Occurred()) SWIG_fail;
20890 }
20891 {
20892 #if wxUSE_UNICODE
20893 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20894 #else
20895 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20896 #endif
20897 }
20898 return resultobj;
20899 fail:
20900 return NULL;
20901 }
20902
20903
20904 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20905 PyObject *resultobj;
20906 wxDateTime *arg1 = (wxDateTime *) 0 ;
20907 wxString result;
20908 PyObject * obj0 = 0 ;
20909 char *kwnames[] = {
20910 (char *) "self", NULL
20911 };
20912
20913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
20914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20916 {
20917 PyThreadState* __tstate = wxPyBeginAllowThreads();
20918 result = ((wxDateTime const *)arg1)->FormatISOTime();
20919
20920 wxPyEndAllowThreads(__tstate);
20921 if (PyErr_Occurred()) SWIG_fail;
20922 }
20923 {
20924 #if wxUSE_UNICODE
20925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20926 #else
20927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20928 #endif
20929 }
20930 return resultobj;
20931 fail:
20932 return NULL;
20933 }
20934
20935
20936 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
20937 PyObject *obj;
20938 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20939 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
20940 Py_INCREF(obj);
20941 return Py_BuildValue((char *)"");
20942 }
20943 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
20944 PyObject *resultobj;
20945 long arg1 ;
20946 wxTimeSpan result;
20947 PyObject * obj0 = 0 ;
20948 char *kwnames[] = {
20949 (char *) "sec", NULL
20950 };
20951
20952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
20953 arg1 = (long) SWIG_AsLong(obj0);
20954 if (PyErr_Occurred()) SWIG_fail;
20955 {
20956 PyThreadState* __tstate = wxPyBeginAllowThreads();
20957 result = wxTimeSpan::Seconds(arg1);
20958
20959 wxPyEndAllowThreads(__tstate);
20960 if (PyErr_Occurred()) SWIG_fail;
20961 }
20962 {
20963 wxTimeSpan * resultptr;
20964 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20965 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20966 }
20967 return resultobj;
20968 fail:
20969 return NULL;
20970 }
20971
20972
20973 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
20974 PyObject *resultobj;
20975 wxTimeSpan result;
20976 char *kwnames[] = {
20977 NULL
20978 };
20979
20980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
20981 {
20982 PyThreadState* __tstate = wxPyBeginAllowThreads();
20983 result = wxTimeSpan::Second();
20984
20985 wxPyEndAllowThreads(__tstate);
20986 if (PyErr_Occurred()) SWIG_fail;
20987 }
20988 {
20989 wxTimeSpan * resultptr;
20990 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20991 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20992 }
20993 return resultobj;
20994 fail:
20995 return NULL;
20996 }
20997
20998
20999 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21000 PyObject *resultobj;
21001 long arg1 ;
21002 wxTimeSpan result;
21003 PyObject * obj0 = 0 ;
21004 char *kwnames[] = {
21005 (char *) "min", NULL
21006 };
21007
21008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21009 arg1 = (long) SWIG_AsLong(obj0);
21010 if (PyErr_Occurred()) SWIG_fail;
21011 {
21012 PyThreadState* __tstate = wxPyBeginAllowThreads();
21013 result = wxTimeSpan::Minutes(arg1);
21014
21015 wxPyEndAllowThreads(__tstate);
21016 if (PyErr_Occurred()) SWIG_fail;
21017 }
21018 {
21019 wxTimeSpan * resultptr;
21020 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21021 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21022 }
21023 return resultobj;
21024 fail:
21025 return NULL;
21026 }
21027
21028
21029 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21030 PyObject *resultobj;
21031 wxTimeSpan result;
21032 char *kwnames[] = {
21033 NULL
21034 };
21035
21036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21037 {
21038 PyThreadState* __tstate = wxPyBeginAllowThreads();
21039 result = wxTimeSpan::Minute();
21040
21041 wxPyEndAllowThreads(__tstate);
21042 if (PyErr_Occurred()) SWIG_fail;
21043 }
21044 {
21045 wxTimeSpan * resultptr;
21046 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21047 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21048 }
21049 return resultobj;
21050 fail:
21051 return NULL;
21052 }
21053
21054
21055 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21056 PyObject *resultobj;
21057 long arg1 ;
21058 wxTimeSpan result;
21059 PyObject * obj0 = 0 ;
21060 char *kwnames[] = {
21061 (char *) "hours", NULL
21062 };
21063
21064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21065 arg1 = (long) SWIG_AsLong(obj0);
21066 if (PyErr_Occurred()) SWIG_fail;
21067 {
21068 PyThreadState* __tstate = wxPyBeginAllowThreads();
21069 result = wxTimeSpan::Hours(arg1);
21070
21071 wxPyEndAllowThreads(__tstate);
21072 if (PyErr_Occurred()) SWIG_fail;
21073 }
21074 {
21075 wxTimeSpan * resultptr;
21076 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21077 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21078 }
21079 return resultobj;
21080 fail:
21081 return NULL;
21082 }
21083
21084
21085 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21086 PyObject *resultobj;
21087 wxTimeSpan result;
21088 char *kwnames[] = {
21089 NULL
21090 };
21091
21092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21093 {
21094 PyThreadState* __tstate = wxPyBeginAllowThreads();
21095 result = wxTimeSpan::Hour();
21096
21097 wxPyEndAllowThreads(__tstate);
21098 if (PyErr_Occurred()) SWIG_fail;
21099 }
21100 {
21101 wxTimeSpan * resultptr;
21102 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21103 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21104 }
21105 return resultobj;
21106 fail:
21107 return NULL;
21108 }
21109
21110
21111 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21112 PyObject *resultobj;
21113 long arg1 ;
21114 wxTimeSpan result;
21115 PyObject * obj0 = 0 ;
21116 char *kwnames[] = {
21117 (char *) "days", NULL
21118 };
21119
21120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21121 arg1 = (long) SWIG_AsLong(obj0);
21122 if (PyErr_Occurred()) SWIG_fail;
21123 {
21124 PyThreadState* __tstate = wxPyBeginAllowThreads();
21125 result = wxTimeSpan::Days(arg1);
21126
21127 wxPyEndAllowThreads(__tstate);
21128 if (PyErr_Occurred()) SWIG_fail;
21129 }
21130 {
21131 wxTimeSpan * resultptr;
21132 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21134 }
21135 return resultobj;
21136 fail:
21137 return NULL;
21138 }
21139
21140
21141 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21142 PyObject *resultobj;
21143 wxTimeSpan result;
21144 char *kwnames[] = {
21145 NULL
21146 };
21147
21148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21149 {
21150 PyThreadState* __tstate = wxPyBeginAllowThreads();
21151 result = wxTimeSpan::Day();
21152
21153 wxPyEndAllowThreads(__tstate);
21154 if (PyErr_Occurred()) SWIG_fail;
21155 }
21156 {
21157 wxTimeSpan * resultptr;
21158 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21159 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21160 }
21161 return resultobj;
21162 fail:
21163 return NULL;
21164 }
21165
21166
21167 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21168 PyObject *resultobj;
21169 long arg1 ;
21170 wxTimeSpan result;
21171 PyObject * obj0 = 0 ;
21172 char *kwnames[] = {
21173 (char *) "days", NULL
21174 };
21175
21176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21177 arg1 = (long) SWIG_AsLong(obj0);
21178 if (PyErr_Occurred()) SWIG_fail;
21179 {
21180 PyThreadState* __tstate = wxPyBeginAllowThreads();
21181 result = wxTimeSpan::Weeks(arg1);
21182
21183 wxPyEndAllowThreads(__tstate);
21184 if (PyErr_Occurred()) SWIG_fail;
21185 }
21186 {
21187 wxTimeSpan * resultptr;
21188 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21189 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21190 }
21191 return resultobj;
21192 fail:
21193 return NULL;
21194 }
21195
21196
21197 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21198 PyObject *resultobj;
21199 wxTimeSpan result;
21200 char *kwnames[] = {
21201 NULL
21202 };
21203
21204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21205 {
21206 PyThreadState* __tstate = wxPyBeginAllowThreads();
21207 result = wxTimeSpan::Week();
21208
21209 wxPyEndAllowThreads(__tstate);
21210 if (PyErr_Occurred()) SWIG_fail;
21211 }
21212 {
21213 wxTimeSpan * resultptr;
21214 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21215 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21216 }
21217 return resultobj;
21218 fail:
21219 return NULL;
21220 }
21221
21222
21223 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21224 PyObject *resultobj;
21225 long arg1 = (long) 0 ;
21226 long arg2 = (long) 0 ;
21227 long arg3 = (long) 0 ;
21228 long arg4 = (long) 0 ;
21229 wxTimeSpan *result;
21230 PyObject * obj0 = 0 ;
21231 PyObject * obj1 = 0 ;
21232 PyObject * obj2 = 0 ;
21233 PyObject * obj3 = 0 ;
21234 char *kwnames[] = {
21235 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21236 };
21237
21238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21239 if (obj0) {
21240 arg1 = (long) SWIG_AsLong(obj0);
21241 if (PyErr_Occurred()) SWIG_fail;
21242 }
21243 if (obj1) {
21244 arg2 = (long) SWIG_AsLong(obj1);
21245 if (PyErr_Occurred()) SWIG_fail;
21246 }
21247 if (obj2) {
21248 arg3 = (long) SWIG_AsLong(obj2);
21249 if (PyErr_Occurred()) SWIG_fail;
21250 }
21251 if (obj3) {
21252 arg4 = (long) SWIG_AsLong(obj3);
21253 if (PyErr_Occurred()) SWIG_fail;
21254 }
21255 {
21256 PyThreadState* __tstate = wxPyBeginAllowThreads();
21257 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21258
21259 wxPyEndAllowThreads(__tstate);
21260 if (PyErr_Occurred()) SWIG_fail;
21261 }
21262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21263 return resultobj;
21264 fail:
21265 return NULL;
21266 }
21267
21268
21269 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21270 PyObject *resultobj;
21271 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21272 PyObject * obj0 = 0 ;
21273 char *kwnames[] = {
21274 (char *) "self", NULL
21275 };
21276
21277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21280 {
21281 PyThreadState* __tstate = wxPyBeginAllowThreads();
21282 delete arg1;
21283
21284 wxPyEndAllowThreads(__tstate);
21285 if (PyErr_Occurred()) SWIG_fail;
21286 }
21287 Py_INCREF(Py_None); resultobj = Py_None;
21288 return resultobj;
21289 fail:
21290 return NULL;
21291 }
21292
21293
21294 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21295 PyObject *resultobj;
21296 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21297 wxTimeSpan *arg2 = 0 ;
21298 wxTimeSpan *result;
21299 PyObject * obj0 = 0 ;
21300 PyObject * obj1 = 0 ;
21301 char *kwnames[] = {
21302 (char *) "self",(char *) "diff", NULL
21303 };
21304
21305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21308 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21309 SWIG_POINTER_EXCEPTION | 0)) == -1)
21310 SWIG_fail;
21311 if (arg2 == NULL) {
21312 PyErr_SetString(PyExc_TypeError,"null reference");
21313 SWIG_fail;
21314 }
21315 {
21316 PyThreadState* __tstate = wxPyBeginAllowThreads();
21317 {
21318 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21319 result = (wxTimeSpan *) &_result_ref;
21320 }
21321
21322 wxPyEndAllowThreads(__tstate);
21323 if (PyErr_Occurred()) SWIG_fail;
21324 }
21325 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21326 return resultobj;
21327 fail:
21328 return NULL;
21329 }
21330
21331
21332 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21333 PyObject *resultobj;
21334 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21335 wxTimeSpan *arg2 = 0 ;
21336 wxTimeSpan *result;
21337 PyObject * obj0 = 0 ;
21338 PyObject * obj1 = 0 ;
21339 char *kwnames[] = {
21340 (char *) "self",(char *) "diff", NULL
21341 };
21342
21343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21346 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21347 SWIG_POINTER_EXCEPTION | 0)) == -1)
21348 SWIG_fail;
21349 if (arg2 == NULL) {
21350 PyErr_SetString(PyExc_TypeError,"null reference");
21351 SWIG_fail;
21352 }
21353 {
21354 PyThreadState* __tstate = wxPyBeginAllowThreads();
21355 {
21356 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21357 result = (wxTimeSpan *) &_result_ref;
21358 }
21359
21360 wxPyEndAllowThreads(__tstate);
21361 if (PyErr_Occurred()) SWIG_fail;
21362 }
21363 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21364 return resultobj;
21365 fail:
21366 return NULL;
21367 }
21368
21369
21370 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21371 PyObject *resultobj;
21372 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21373 int arg2 ;
21374 wxTimeSpan *result;
21375 PyObject * obj0 = 0 ;
21376 PyObject * obj1 = 0 ;
21377 char *kwnames[] = {
21378 (char *) "self",(char *) "n", NULL
21379 };
21380
21381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21384 arg2 = (int) SWIG_AsInt(obj1);
21385 if (PyErr_Occurred()) SWIG_fail;
21386 {
21387 PyThreadState* __tstate = wxPyBeginAllowThreads();
21388 {
21389 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21390 result = (wxTimeSpan *) &_result_ref;
21391 }
21392
21393 wxPyEndAllowThreads(__tstate);
21394 if (PyErr_Occurred()) SWIG_fail;
21395 }
21396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21397 return resultobj;
21398 fail:
21399 return NULL;
21400 }
21401
21402
21403 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21404 PyObject *resultobj;
21405 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21406 wxTimeSpan *result;
21407 PyObject * obj0 = 0 ;
21408 char *kwnames[] = {
21409 (char *) "self", NULL
21410 };
21411
21412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21415 {
21416 PyThreadState* __tstate = wxPyBeginAllowThreads();
21417 {
21418 wxTimeSpan &_result_ref = (arg1)->Neg();
21419 result = (wxTimeSpan *) &_result_ref;
21420 }
21421
21422 wxPyEndAllowThreads(__tstate);
21423 if (PyErr_Occurred()) SWIG_fail;
21424 }
21425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21426 return resultobj;
21427 fail:
21428 return NULL;
21429 }
21430
21431
21432 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21433 PyObject *resultobj;
21434 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21435 wxTimeSpan result;
21436 PyObject * obj0 = 0 ;
21437 char *kwnames[] = {
21438 (char *) "self", NULL
21439 };
21440
21441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21444 {
21445 PyThreadState* __tstate = wxPyBeginAllowThreads();
21446 result = ((wxTimeSpan const *)arg1)->Abs();
21447
21448 wxPyEndAllowThreads(__tstate);
21449 if (PyErr_Occurred()) SWIG_fail;
21450 }
21451 {
21452 wxTimeSpan * resultptr;
21453 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21454 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21455 }
21456 return resultobj;
21457 fail:
21458 return NULL;
21459 }
21460
21461
21462 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21463 PyObject *resultobj;
21464 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21465 wxTimeSpan *arg2 = 0 ;
21466 wxTimeSpan *result;
21467 PyObject * obj0 = 0 ;
21468 PyObject * obj1 = 0 ;
21469 char *kwnames[] = {
21470 (char *) "self",(char *) "diff", NULL
21471 };
21472
21473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21476 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21477 SWIG_POINTER_EXCEPTION | 0)) == -1)
21478 SWIG_fail;
21479 if (arg2 == NULL) {
21480 PyErr_SetString(PyExc_TypeError,"null reference");
21481 SWIG_fail;
21482 }
21483 {
21484 PyThreadState* __tstate = wxPyBeginAllowThreads();
21485 {
21486 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21487 result = (wxTimeSpan *) &_result_ref;
21488 }
21489
21490 wxPyEndAllowThreads(__tstate);
21491 if (PyErr_Occurred()) SWIG_fail;
21492 }
21493 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21494 return resultobj;
21495 fail:
21496 return NULL;
21497 }
21498
21499
21500 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21501 PyObject *resultobj;
21502 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21503 wxTimeSpan *arg2 = 0 ;
21504 wxTimeSpan *result;
21505 PyObject * obj0 = 0 ;
21506 PyObject * obj1 = 0 ;
21507 char *kwnames[] = {
21508 (char *) "self",(char *) "diff", NULL
21509 };
21510
21511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21515 SWIG_POINTER_EXCEPTION | 0)) == -1)
21516 SWIG_fail;
21517 if (arg2 == NULL) {
21518 PyErr_SetString(PyExc_TypeError,"null reference");
21519 SWIG_fail;
21520 }
21521 {
21522 PyThreadState* __tstate = wxPyBeginAllowThreads();
21523 {
21524 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21525 result = (wxTimeSpan *) &_result_ref;
21526 }
21527
21528 wxPyEndAllowThreads(__tstate);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 }
21531 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21532 return resultobj;
21533 fail:
21534 return NULL;
21535 }
21536
21537
21538 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21539 PyObject *resultobj;
21540 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21541 int arg2 ;
21542 wxTimeSpan *result;
21543 PyObject * obj0 = 0 ;
21544 PyObject * obj1 = 0 ;
21545 char *kwnames[] = {
21546 (char *) "self",(char *) "n", NULL
21547 };
21548
21549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21552 arg2 = (int) SWIG_AsInt(obj1);
21553 if (PyErr_Occurred()) SWIG_fail;
21554 {
21555 PyThreadState* __tstate = wxPyBeginAllowThreads();
21556 {
21557 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21558 result = (wxTimeSpan *) &_result_ref;
21559 }
21560
21561 wxPyEndAllowThreads(__tstate);
21562 if (PyErr_Occurred()) SWIG_fail;
21563 }
21564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21565 return resultobj;
21566 fail:
21567 return NULL;
21568 }
21569
21570
21571 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21572 PyObject *resultobj;
21573 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21574 wxTimeSpan *result;
21575 PyObject * obj0 = 0 ;
21576 char *kwnames[] = {
21577 (char *) "self", NULL
21578 };
21579
21580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21583 {
21584 PyThreadState* __tstate = wxPyBeginAllowThreads();
21585 {
21586 wxTimeSpan &_result_ref = (arg1)->operator -();
21587 result = (wxTimeSpan *) &_result_ref;
21588 }
21589
21590 wxPyEndAllowThreads(__tstate);
21591 if (PyErr_Occurred()) SWIG_fail;
21592 }
21593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21594 return resultobj;
21595 fail:
21596 return NULL;
21597 }
21598
21599
21600 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21601 PyObject *resultobj;
21602 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21603 wxTimeSpan *arg2 = 0 ;
21604 wxTimeSpan result;
21605 PyObject * obj0 = 0 ;
21606 PyObject * obj1 = 0 ;
21607 char *kwnames[] = {
21608 (char *) "self",(char *) "other", NULL
21609 };
21610
21611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21614 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21615 SWIG_POINTER_EXCEPTION | 0)) == -1)
21616 SWIG_fail;
21617 if (arg2 == NULL) {
21618 PyErr_SetString(PyExc_TypeError,"null reference");
21619 SWIG_fail;
21620 }
21621 {
21622 PyThreadState* __tstate = wxPyBeginAllowThreads();
21623 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21624
21625 wxPyEndAllowThreads(__tstate);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 }
21628 {
21629 wxTimeSpan * resultptr;
21630 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21631 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21632 }
21633 return resultobj;
21634 fail:
21635 return NULL;
21636 }
21637
21638
21639 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21640 PyObject *resultobj;
21641 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21642 wxTimeSpan *arg2 = 0 ;
21643 wxTimeSpan result;
21644 PyObject * obj0 = 0 ;
21645 PyObject * obj1 = 0 ;
21646 char *kwnames[] = {
21647 (char *) "self",(char *) "other", NULL
21648 };
21649
21650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21653 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21654 SWIG_POINTER_EXCEPTION | 0)) == -1)
21655 SWIG_fail;
21656 if (arg2 == NULL) {
21657 PyErr_SetString(PyExc_TypeError,"null reference");
21658 SWIG_fail;
21659 }
21660 {
21661 PyThreadState* __tstate = wxPyBeginAllowThreads();
21662 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21663
21664 wxPyEndAllowThreads(__tstate);
21665 if (PyErr_Occurred()) SWIG_fail;
21666 }
21667 {
21668 wxTimeSpan * resultptr;
21669 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21670 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21671 }
21672 return resultobj;
21673 fail:
21674 return NULL;
21675 }
21676
21677
21678 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21679 PyObject *resultobj;
21680 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21681 int arg2 ;
21682 wxTimeSpan result;
21683 PyObject * obj0 = 0 ;
21684 PyObject * obj1 = 0 ;
21685 char *kwnames[] = {
21686 (char *) "self",(char *) "n", NULL
21687 };
21688
21689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
21690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21692 arg2 = (int) SWIG_AsInt(obj1);
21693 if (PyErr_Occurred()) SWIG_fail;
21694 {
21695 PyThreadState* __tstate = wxPyBeginAllowThreads();
21696 result = wxTimeSpan___mul__(arg1,arg2);
21697
21698 wxPyEndAllowThreads(__tstate);
21699 if (PyErr_Occurred()) SWIG_fail;
21700 }
21701 {
21702 wxTimeSpan * resultptr;
21703 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21705 }
21706 return resultobj;
21707 fail:
21708 return NULL;
21709 }
21710
21711
21712 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21713 PyObject *resultobj;
21714 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21715 int arg2 ;
21716 wxTimeSpan result;
21717 PyObject * obj0 = 0 ;
21718 PyObject * obj1 = 0 ;
21719 char *kwnames[] = {
21720 (char *) "self",(char *) "n", NULL
21721 };
21722
21723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
21724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21726 arg2 = (int) SWIG_AsInt(obj1);
21727 if (PyErr_Occurred()) SWIG_fail;
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 result = wxTimeSpan___rmul__(arg1,arg2);
21731
21732 wxPyEndAllowThreads(__tstate);
21733 if (PyErr_Occurred()) SWIG_fail;
21734 }
21735 {
21736 wxTimeSpan * resultptr;
21737 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21738 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21739 }
21740 return resultobj;
21741 fail:
21742 return NULL;
21743 }
21744
21745
21746 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21747 PyObject *resultobj;
21748 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21749 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21750 bool result;
21751 PyObject * obj0 = 0 ;
21752 PyObject * obj1 = 0 ;
21753 char *kwnames[] = {
21754 (char *) "self",(char *) "other", NULL
21755 };
21756
21757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
21758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21762 {
21763 PyThreadState* __tstate = wxPyBeginAllowThreads();
21764 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
21765
21766 wxPyEndAllowThreads(__tstate);
21767 if (PyErr_Occurred()) SWIG_fail;
21768 }
21769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21770 return resultobj;
21771 fail:
21772 return NULL;
21773 }
21774
21775
21776 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
21777 PyObject *resultobj;
21778 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21779 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21780 bool result;
21781 PyObject * obj0 = 0 ;
21782 PyObject * obj1 = 0 ;
21783 char *kwnames[] = {
21784 (char *) "self",(char *) "other", NULL
21785 };
21786
21787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
21788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21790 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21792 {
21793 PyThreadState* __tstate = wxPyBeginAllowThreads();
21794 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
21795
21796 wxPyEndAllowThreads(__tstate);
21797 if (PyErr_Occurred()) SWIG_fail;
21798 }
21799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21800 return resultobj;
21801 fail:
21802 return NULL;
21803 }
21804
21805
21806 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
21807 PyObject *resultobj;
21808 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21809 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21810 bool result;
21811 PyObject * obj0 = 0 ;
21812 PyObject * obj1 = 0 ;
21813 char *kwnames[] = {
21814 (char *) "self",(char *) "other", NULL
21815 };
21816
21817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
21818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21822 {
21823 PyThreadState* __tstate = wxPyBeginAllowThreads();
21824 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
21825
21826 wxPyEndAllowThreads(__tstate);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21830 return resultobj;
21831 fail:
21832 return NULL;
21833 }
21834
21835
21836 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
21837 PyObject *resultobj;
21838 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21839 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21840 bool result;
21841 PyObject * obj0 = 0 ;
21842 PyObject * obj1 = 0 ;
21843 char *kwnames[] = {
21844 (char *) "self",(char *) "other", NULL
21845 };
21846
21847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
21848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21850 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21852 {
21853 PyThreadState* __tstate = wxPyBeginAllowThreads();
21854 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
21855
21856 wxPyEndAllowThreads(__tstate);
21857 if (PyErr_Occurred()) SWIG_fail;
21858 }
21859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21860 return resultobj;
21861 fail:
21862 return NULL;
21863 }
21864
21865
21866 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
21867 PyObject *resultobj;
21868 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21869 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21870 bool result;
21871 PyObject * obj0 = 0 ;
21872 PyObject * obj1 = 0 ;
21873 char *kwnames[] = {
21874 (char *) "self",(char *) "other", NULL
21875 };
21876
21877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
21878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21882 {
21883 PyThreadState* __tstate = wxPyBeginAllowThreads();
21884 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
21885
21886 wxPyEndAllowThreads(__tstate);
21887 if (PyErr_Occurred()) SWIG_fail;
21888 }
21889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21890 return resultobj;
21891 fail:
21892 return NULL;
21893 }
21894
21895
21896 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
21897 PyObject *resultobj;
21898 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21899 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
21900 bool result;
21901 PyObject * obj0 = 0 ;
21902 PyObject * obj1 = 0 ;
21903 char *kwnames[] = {
21904 (char *) "self",(char *) "other", NULL
21905 };
21906
21907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
21908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21910 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21912 {
21913 PyThreadState* __tstate = wxPyBeginAllowThreads();
21914 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
21915
21916 wxPyEndAllowThreads(__tstate);
21917 if (PyErr_Occurred()) SWIG_fail;
21918 }
21919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21920 return resultobj;
21921 fail:
21922 return NULL;
21923 }
21924
21925
21926 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj;
21928 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21929 bool result;
21930 PyObject * obj0 = 0 ;
21931 char *kwnames[] = {
21932 (char *) "self", NULL
21933 };
21934
21935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
21936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
21941
21942 wxPyEndAllowThreads(__tstate);
21943 if (PyErr_Occurred()) SWIG_fail;
21944 }
21945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21946 return resultobj;
21947 fail:
21948 return NULL;
21949 }
21950
21951
21952 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
21953 PyObject *resultobj;
21954 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21955 bool result;
21956 PyObject * obj0 = 0 ;
21957 char *kwnames[] = {
21958 (char *) "self", NULL
21959 };
21960
21961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
21962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21964 {
21965 PyThreadState* __tstate = wxPyBeginAllowThreads();
21966 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
21967
21968 wxPyEndAllowThreads(__tstate);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 }
21971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21972 return resultobj;
21973 fail:
21974 return NULL;
21975 }
21976
21977
21978 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
21979 PyObject *resultobj;
21980 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21981 bool result;
21982 PyObject * obj0 = 0 ;
21983 char *kwnames[] = {
21984 (char *) "self", NULL
21985 };
21986
21987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
21988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21990 {
21991 PyThreadState* __tstate = wxPyBeginAllowThreads();
21992 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
21993
21994 wxPyEndAllowThreads(__tstate);
21995 if (PyErr_Occurred()) SWIG_fail;
21996 }
21997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21998 return resultobj;
21999 fail:
22000 return NULL;
22001 }
22002
22003
22004 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22005 PyObject *resultobj;
22006 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22007 wxTimeSpan *arg2 = 0 ;
22008 bool result;
22009 PyObject * obj0 = 0 ;
22010 PyObject * obj1 = 0 ;
22011 char *kwnames[] = {
22012 (char *) "self",(char *) "ts", NULL
22013 };
22014
22015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22019 SWIG_POINTER_EXCEPTION | 0)) == -1)
22020 SWIG_fail;
22021 if (arg2 == NULL) {
22022 PyErr_SetString(PyExc_TypeError,"null reference");
22023 SWIG_fail;
22024 }
22025 {
22026 PyThreadState* __tstate = wxPyBeginAllowThreads();
22027 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22028
22029 wxPyEndAllowThreads(__tstate);
22030 if (PyErr_Occurred()) SWIG_fail;
22031 }
22032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22033 return resultobj;
22034 fail:
22035 return NULL;
22036 }
22037
22038
22039 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22040 PyObject *resultobj;
22041 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22042 wxTimeSpan *arg2 = 0 ;
22043 bool result;
22044 PyObject * obj0 = 0 ;
22045 PyObject * obj1 = 0 ;
22046 char *kwnames[] = {
22047 (char *) "self",(char *) "ts", NULL
22048 };
22049
22050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22054 SWIG_POINTER_EXCEPTION | 0)) == -1)
22055 SWIG_fail;
22056 if (arg2 == NULL) {
22057 PyErr_SetString(PyExc_TypeError,"null reference");
22058 SWIG_fail;
22059 }
22060 {
22061 PyThreadState* __tstate = wxPyBeginAllowThreads();
22062 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22063
22064 wxPyEndAllowThreads(__tstate);
22065 if (PyErr_Occurred()) SWIG_fail;
22066 }
22067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22068 return resultobj;
22069 fail:
22070 return NULL;
22071 }
22072
22073
22074 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22075 PyObject *resultobj;
22076 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22077 wxTimeSpan *arg2 = 0 ;
22078 bool result;
22079 PyObject * obj0 = 0 ;
22080 PyObject * obj1 = 0 ;
22081 char *kwnames[] = {
22082 (char *) "self",(char *) "t", NULL
22083 };
22084
22085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22088 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22089 SWIG_POINTER_EXCEPTION | 0)) == -1)
22090 SWIG_fail;
22091 if (arg2 == NULL) {
22092 PyErr_SetString(PyExc_TypeError,"null reference");
22093 SWIG_fail;
22094 }
22095 {
22096 PyThreadState* __tstate = wxPyBeginAllowThreads();
22097 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22098
22099 wxPyEndAllowThreads(__tstate);
22100 if (PyErr_Occurred()) SWIG_fail;
22101 }
22102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22103 return resultobj;
22104 fail:
22105 return NULL;
22106 }
22107
22108
22109 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22110 PyObject *resultobj;
22111 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22112 int result;
22113 PyObject * obj0 = 0 ;
22114 char *kwnames[] = {
22115 (char *) "self", NULL
22116 };
22117
22118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22121 {
22122 PyThreadState* __tstate = wxPyBeginAllowThreads();
22123 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22124
22125 wxPyEndAllowThreads(__tstate);
22126 if (PyErr_Occurred()) SWIG_fail;
22127 }
22128 resultobj = SWIG_FromInt((int)result);
22129 return resultobj;
22130 fail:
22131 return NULL;
22132 }
22133
22134
22135 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22136 PyObject *resultobj;
22137 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22138 int result;
22139 PyObject * obj0 = 0 ;
22140 char *kwnames[] = {
22141 (char *) "self", NULL
22142 };
22143
22144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22147 {
22148 PyThreadState* __tstate = wxPyBeginAllowThreads();
22149 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22150
22151 wxPyEndAllowThreads(__tstate);
22152 if (PyErr_Occurred()) SWIG_fail;
22153 }
22154 resultobj = SWIG_FromInt((int)result);
22155 return resultobj;
22156 fail:
22157 return NULL;
22158 }
22159
22160
22161 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22162 PyObject *resultobj;
22163 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22164 int result;
22165 PyObject * obj0 = 0 ;
22166 char *kwnames[] = {
22167 (char *) "self", NULL
22168 };
22169
22170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22173 {
22174 PyThreadState* __tstate = wxPyBeginAllowThreads();
22175 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22176
22177 wxPyEndAllowThreads(__tstate);
22178 if (PyErr_Occurred()) SWIG_fail;
22179 }
22180 resultobj = SWIG_FromInt((int)result);
22181 return resultobj;
22182 fail:
22183 return NULL;
22184 }
22185
22186
22187 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22188 PyObject *resultobj;
22189 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22190 int result;
22191 PyObject * obj0 = 0 ;
22192 char *kwnames[] = {
22193 (char *) "self", NULL
22194 };
22195
22196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22199 {
22200 PyThreadState* __tstate = wxPyBeginAllowThreads();
22201 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22202
22203 wxPyEndAllowThreads(__tstate);
22204 if (PyErr_Occurred()) SWIG_fail;
22205 }
22206 resultobj = SWIG_FromInt((int)result);
22207 return resultobj;
22208 fail:
22209 return NULL;
22210 }
22211
22212
22213 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22214 PyObject *resultobj;
22215 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22216 wxLongLong result;
22217 PyObject * obj0 = 0 ;
22218 char *kwnames[] = {
22219 (char *) "self", NULL
22220 };
22221
22222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22225 {
22226 PyThreadState* __tstate = wxPyBeginAllowThreads();
22227 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22228
22229 wxPyEndAllowThreads(__tstate);
22230 if (PyErr_Occurred()) SWIG_fail;
22231 }
22232 {
22233 PyObject *hi, *lo, *shifter, *shifted;
22234 hi = PyLong_FromLong( (&result)->GetHi() );
22235 lo = PyLong_FromLong( (&result)->GetLo() );
22236 shifter = PyLong_FromLong(32);
22237 shifted = PyNumber_Lshift(hi, shifter);
22238 resultobj = PyNumber_Or(shifted, lo);
22239 Py_DECREF(hi);
22240 Py_DECREF(lo);
22241 Py_DECREF(shifter);
22242 Py_DECREF(shifted);
22243 }
22244 return resultobj;
22245 fail:
22246 return NULL;
22247 }
22248
22249
22250 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22251 PyObject *resultobj;
22252 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22253 wxLongLong result;
22254 PyObject * obj0 = 0 ;
22255 char *kwnames[] = {
22256 (char *) "self", NULL
22257 };
22258
22259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22262 {
22263 PyThreadState* __tstate = wxPyBeginAllowThreads();
22264 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22265
22266 wxPyEndAllowThreads(__tstate);
22267 if (PyErr_Occurred()) SWIG_fail;
22268 }
22269 {
22270 PyObject *hi, *lo, *shifter, *shifted;
22271 hi = PyLong_FromLong( (&result)->GetHi() );
22272 lo = PyLong_FromLong( (&result)->GetLo() );
22273 shifter = PyLong_FromLong(32);
22274 shifted = PyNumber_Lshift(hi, shifter);
22275 resultobj = PyNumber_Or(shifted, lo);
22276 Py_DECREF(hi);
22277 Py_DECREF(lo);
22278 Py_DECREF(shifter);
22279 Py_DECREF(shifted);
22280 }
22281 return resultobj;
22282 fail:
22283 return NULL;
22284 }
22285
22286
22287 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22288 PyObject *resultobj;
22289 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22290 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22291 wxString *arg2 = (wxString *) &arg2_defvalue ;
22292 wxString result;
22293 bool temp2 = False ;
22294 PyObject * obj0 = 0 ;
22295 PyObject * obj1 = 0 ;
22296 char *kwnames[] = {
22297 (char *) "self",(char *) "format", NULL
22298 };
22299
22300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22303 if (obj1) {
22304 {
22305 arg2 = wxString_in_helper(obj1);
22306 if (arg2 == NULL) SWIG_fail;
22307 temp2 = True;
22308 }
22309 }
22310 {
22311 PyThreadState* __tstate = wxPyBeginAllowThreads();
22312 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22313
22314 wxPyEndAllowThreads(__tstate);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
22317 {
22318 #if wxUSE_UNICODE
22319 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22320 #else
22321 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22322 #endif
22323 }
22324 {
22325 if (temp2)
22326 delete arg2;
22327 }
22328 return resultobj;
22329 fail:
22330 {
22331 if (temp2)
22332 delete arg2;
22333 }
22334 return NULL;
22335 }
22336
22337
22338 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22339 PyObject *obj;
22340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22341 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22342 Py_INCREF(obj);
22343 return Py_BuildValue((char *)"");
22344 }
22345 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22346 PyObject *resultobj;
22347 int arg1 = (int) 0 ;
22348 int arg2 = (int) 0 ;
22349 int arg3 = (int) 0 ;
22350 int arg4 = (int) 0 ;
22351 wxDateSpan *result;
22352 PyObject * obj0 = 0 ;
22353 PyObject * obj1 = 0 ;
22354 PyObject * obj2 = 0 ;
22355 PyObject * obj3 = 0 ;
22356 char *kwnames[] = {
22357 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22358 };
22359
22360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22361 if (obj0) {
22362 arg1 = (int) SWIG_AsInt(obj0);
22363 if (PyErr_Occurred()) SWIG_fail;
22364 }
22365 if (obj1) {
22366 arg2 = (int) SWIG_AsInt(obj1);
22367 if (PyErr_Occurred()) SWIG_fail;
22368 }
22369 if (obj2) {
22370 arg3 = (int) SWIG_AsInt(obj2);
22371 if (PyErr_Occurred()) SWIG_fail;
22372 }
22373 if (obj3) {
22374 arg4 = (int) SWIG_AsInt(obj3);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 }
22377 {
22378 PyThreadState* __tstate = wxPyBeginAllowThreads();
22379 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22380
22381 wxPyEndAllowThreads(__tstate);
22382 if (PyErr_Occurred()) SWIG_fail;
22383 }
22384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22385 return resultobj;
22386 fail:
22387 return NULL;
22388 }
22389
22390
22391 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22392 PyObject *resultobj;
22393 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22394 PyObject * obj0 = 0 ;
22395 char *kwnames[] = {
22396 (char *) "self", NULL
22397 };
22398
22399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22402 {
22403 PyThreadState* __tstate = wxPyBeginAllowThreads();
22404 delete arg1;
22405
22406 wxPyEndAllowThreads(__tstate);
22407 if (PyErr_Occurred()) SWIG_fail;
22408 }
22409 Py_INCREF(Py_None); resultobj = Py_None;
22410 return resultobj;
22411 fail:
22412 return NULL;
22413 }
22414
22415
22416 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22417 PyObject *resultobj;
22418 int arg1 ;
22419 wxDateSpan result;
22420 PyObject * obj0 = 0 ;
22421 char *kwnames[] = {
22422 (char *) "days", NULL
22423 };
22424
22425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22426 arg1 = (int) SWIG_AsInt(obj0);
22427 if (PyErr_Occurred()) SWIG_fail;
22428 {
22429 PyThreadState* __tstate = wxPyBeginAllowThreads();
22430 result = wxDateSpan::Days(arg1);
22431
22432 wxPyEndAllowThreads(__tstate);
22433 if (PyErr_Occurred()) SWIG_fail;
22434 }
22435 {
22436 wxDateSpan * resultptr;
22437 resultptr = new wxDateSpan((wxDateSpan &) result);
22438 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22439 }
22440 return resultobj;
22441 fail:
22442 return NULL;
22443 }
22444
22445
22446 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22447 PyObject *resultobj;
22448 wxDateSpan result;
22449 char *kwnames[] = {
22450 NULL
22451 };
22452
22453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22454 {
22455 PyThreadState* __tstate = wxPyBeginAllowThreads();
22456 result = wxDateSpan::Day();
22457
22458 wxPyEndAllowThreads(__tstate);
22459 if (PyErr_Occurred()) SWIG_fail;
22460 }
22461 {
22462 wxDateSpan * resultptr;
22463 resultptr = new wxDateSpan((wxDateSpan &) result);
22464 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22465 }
22466 return resultobj;
22467 fail:
22468 return NULL;
22469 }
22470
22471
22472 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22473 PyObject *resultobj;
22474 int arg1 ;
22475 wxDateSpan result;
22476 PyObject * obj0 = 0 ;
22477 char *kwnames[] = {
22478 (char *) "weeks", NULL
22479 };
22480
22481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22482 arg1 = (int) SWIG_AsInt(obj0);
22483 if (PyErr_Occurred()) SWIG_fail;
22484 {
22485 PyThreadState* __tstate = wxPyBeginAllowThreads();
22486 result = wxDateSpan::Weeks(arg1);
22487
22488 wxPyEndAllowThreads(__tstate);
22489 if (PyErr_Occurred()) SWIG_fail;
22490 }
22491 {
22492 wxDateSpan * resultptr;
22493 resultptr = new wxDateSpan((wxDateSpan &) result);
22494 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22495 }
22496 return resultobj;
22497 fail:
22498 return NULL;
22499 }
22500
22501
22502 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22503 PyObject *resultobj;
22504 wxDateSpan result;
22505 char *kwnames[] = {
22506 NULL
22507 };
22508
22509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22510 {
22511 PyThreadState* __tstate = wxPyBeginAllowThreads();
22512 result = wxDateSpan::Week();
22513
22514 wxPyEndAllowThreads(__tstate);
22515 if (PyErr_Occurred()) SWIG_fail;
22516 }
22517 {
22518 wxDateSpan * resultptr;
22519 resultptr = new wxDateSpan((wxDateSpan &) result);
22520 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22521 }
22522 return resultobj;
22523 fail:
22524 return NULL;
22525 }
22526
22527
22528 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22529 PyObject *resultobj;
22530 int arg1 ;
22531 wxDateSpan result;
22532 PyObject * obj0 = 0 ;
22533 char *kwnames[] = {
22534 (char *) "mon", NULL
22535 };
22536
22537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22538 arg1 = (int) SWIG_AsInt(obj0);
22539 if (PyErr_Occurred()) SWIG_fail;
22540 {
22541 PyThreadState* __tstate = wxPyBeginAllowThreads();
22542 result = wxDateSpan::Months(arg1);
22543
22544 wxPyEndAllowThreads(__tstate);
22545 if (PyErr_Occurred()) SWIG_fail;
22546 }
22547 {
22548 wxDateSpan * resultptr;
22549 resultptr = new wxDateSpan((wxDateSpan &) result);
22550 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22551 }
22552 return resultobj;
22553 fail:
22554 return NULL;
22555 }
22556
22557
22558 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22559 PyObject *resultobj;
22560 wxDateSpan result;
22561 char *kwnames[] = {
22562 NULL
22563 };
22564
22565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22566 {
22567 PyThreadState* __tstate = wxPyBeginAllowThreads();
22568 result = wxDateSpan::Month();
22569
22570 wxPyEndAllowThreads(__tstate);
22571 if (PyErr_Occurred()) SWIG_fail;
22572 }
22573 {
22574 wxDateSpan * resultptr;
22575 resultptr = new wxDateSpan((wxDateSpan &) result);
22576 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22577 }
22578 return resultobj;
22579 fail:
22580 return NULL;
22581 }
22582
22583
22584 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22585 PyObject *resultobj;
22586 int arg1 ;
22587 wxDateSpan result;
22588 PyObject * obj0 = 0 ;
22589 char *kwnames[] = {
22590 (char *) "years", NULL
22591 };
22592
22593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22594 arg1 = (int) SWIG_AsInt(obj0);
22595 if (PyErr_Occurred()) SWIG_fail;
22596 {
22597 PyThreadState* __tstate = wxPyBeginAllowThreads();
22598 result = wxDateSpan::Years(arg1);
22599
22600 wxPyEndAllowThreads(__tstate);
22601 if (PyErr_Occurred()) SWIG_fail;
22602 }
22603 {
22604 wxDateSpan * resultptr;
22605 resultptr = new wxDateSpan((wxDateSpan &) result);
22606 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22607 }
22608 return resultobj;
22609 fail:
22610 return NULL;
22611 }
22612
22613
22614 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22615 PyObject *resultobj;
22616 wxDateSpan result;
22617 char *kwnames[] = {
22618 NULL
22619 };
22620
22621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22622 {
22623 PyThreadState* __tstate = wxPyBeginAllowThreads();
22624 result = wxDateSpan::Year();
22625
22626 wxPyEndAllowThreads(__tstate);
22627 if (PyErr_Occurred()) SWIG_fail;
22628 }
22629 {
22630 wxDateSpan * resultptr;
22631 resultptr = new wxDateSpan((wxDateSpan &) result);
22632 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22633 }
22634 return resultobj;
22635 fail:
22636 return NULL;
22637 }
22638
22639
22640 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22641 PyObject *resultobj;
22642 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22643 int arg2 ;
22644 wxDateSpan *result;
22645 PyObject * obj0 = 0 ;
22646 PyObject * obj1 = 0 ;
22647 char *kwnames[] = {
22648 (char *) "self",(char *) "n", NULL
22649 };
22650
22651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
22652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22654 arg2 = (int) SWIG_AsInt(obj1);
22655 if (PyErr_Occurred()) SWIG_fail;
22656 {
22657 PyThreadState* __tstate = wxPyBeginAllowThreads();
22658 {
22659 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22660 result = (wxDateSpan *) &_result_ref;
22661 }
22662
22663 wxPyEndAllowThreads(__tstate);
22664 if (PyErr_Occurred()) SWIG_fail;
22665 }
22666 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22667 return resultobj;
22668 fail:
22669 return NULL;
22670 }
22671
22672
22673 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22674 PyObject *resultobj;
22675 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22676 int arg2 ;
22677 wxDateSpan *result;
22678 PyObject * obj0 = 0 ;
22679 PyObject * obj1 = 0 ;
22680 char *kwnames[] = {
22681 (char *) "self",(char *) "n", NULL
22682 };
22683
22684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
22685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22687 arg2 = (int) SWIG_AsInt(obj1);
22688 if (PyErr_Occurred()) SWIG_fail;
22689 {
22690 PyThreadState* __tstate = wxPyBeginAllowThreads();
22691 {
22692 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22693 result = (wxDateSpan *) &_result_ref;
22694 }
22695
22696 wxPyEndAllowThreads(__tstate);
22697 if (PyErr_Occurred()) SWIG_fail;
22698 }
22699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22700 return resultobj;
22701 fail:
22702 return NULL;
22703 }
22704
22705
22706 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22707 PyObject *resultobj;
22708 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22709 int arg2 ;
22710 wxDateSpan *result;
22711 PyObject * obj0 = 0 ;
22712 PyObject * obj1 = 0 ;
22713 char *kwnames[] = {
22714 (char *) "self",(char *) "n", NULL
22715 };
22716
22717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
22718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22720 arg2 = (int) SWIG_AsInt(obj1);
22721 if (PyErr_Occurred()) SWIG_fail;
22722 {
22723 PyThreadState* __tstate = wxPyBeginAllowThreads();
22724 {
22725 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
22726 result = (wxDateSpan *) &_result_ref;
22727 }
22728
22729 wxPyEndAllowThreads(__tstate);
22730 if (PyErr_Occurred()) SWIG_fail;
22731 }
22732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22733 return resultobj;
22734 fail:
22735 return NULL;
22736 }
22737
22738
22739 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22740 PyObject *resultobj;
22741 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22742 int arg2 ;
22743 wxDateSpan *result;
22744 PyObject * obj0 = 0 ;
22745 PyObject * obj1 = 0 ;
22746 char *kwnames[] = {
22747 (char *) "self",(char *) "n", NULL
22748 };
22749
22750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
22751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22753 arg2 = (int) SWIG_AsInt(obj1);
22754 if (PyErr_Occurred()) SWIG_fail;
22755 {
22756 PyThreadState* __tstate = wxPyBeginAllowThreads();
22757 {
22758 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
22759 result = (wxDateSpan *) &_result_ref;
22760 }
22761
22762 wxPyEndAllowThreads(__tstate);
22763 if (PyErr_Occurred()) SWIG_fail;
22764 }
22765 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22766 return resultobj;
22767 fail:
22768 return NULL;
22769 }
22770
22771
22772 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22773 PyObject *resultobj;
22774 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22775 int result;
22776 PyObject * obj0 = 0 ;
22777 char *kwnames[] = {
22778 (char *) "self", NULL
22779 };
22780
22781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
22782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22784 {
22785 PyThreadState* __tstate = wxPyBeginAllowThreads();
22786 result = (int)((wxDateSpan const *)arg1)->GetYears();
22787
22788 wxPyEndAllowThreads(__tstate);
22789 if (PyErr_Occurred()) SWIG_fail;
22790 }
22791 resultobj = SWIG_FromInt((int)result);
22792 return resultobj;
22793 fail:
22794 return NULL;
22795 }
22796
22797
22798 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22799 PyObject *resultobj;
22800 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22801 int result;
22802 PyObject * obj0 = 0 ;
22803 char *kwnames[] = {
22804 (char *) "self", NULL
22805 };
22806
22807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
22808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22810 {
22811 PyThreadState* __tstate = wxPyBeginAllowThreads();
22812 result = (int)((wxDateSpan const *)arg1)->GetMonths();
22813
22814 wxPyEndAllowThreads(__tstate);
22815 if (PyErr_Occurred()) SWIG_fail;
22816 }
22817 resultobj = SWIG_FromInt((int)result);
22818 return resultobj;
22819 fail:
22820 return NULL;
22821 }
22822
22823
22824 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22825 PyObject *resultobj;
22826 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22827 int result;
22828 PyObject * obj0 = 0 ;
22829 char *kwnames[] = {
22830 (char *) "self", NULL
22831 };
22832
22833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
22834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22836 {
22837 PyThreadState* __tstate = wxPyBeginAllowThreads();
22838 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
22839
22840 wxPyEndAllowThreads(__tstate);
22841 if (PyErr_Occurred()) SWIG_fail;
22842 }
22843 resultobj = SWIG_FromInt((int)result);
22844 return resultobj;
22845 fail:
22846 return NULL;
22847 }
22848
22849
22850 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22851 PyObject *resultobj;
22852 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22853 int result;
22854 PyObject * obj0 = 0 ;
22855 char *kwnames[] = {
22856 (char *) "self", NULL
22857 };
22858
22859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
22860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22862 {
22863 PyThreadState* __tstate = wxPyBeginAllowThreads();
22864 result = (int)((wxDateSpan const *)arg1)->GetDays();
22865
22866 wxPyEndAllowThreads(__tstate);
22867 if (PyErr_Occurred()) SWIG_fail;
22868 }
22869 resultobj = SWIG_FromInt((int)result);
22870 return resultobj;
22871 fail:
22872 return NULL;
22873 }
22874
22875
22876 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22877 PyObject *resultobj;
22878 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22879 int result;
22880 PyObject * obj0 = 0 ;
22881 char *kwnames[] = {
22882 (char *) "self", NULL
22883 };
22884
22885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
22886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22888 {
22889 PyThreadState* __tstate = wxPyBeginAllowThreads();
22890 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
22891
22892 wxPyEndAllowThreads(__tstate);
22893 if (PyErr_Occurred()) SWIG_fail;
22894 }
22895 resultobj = SWIG_FromInt((int)result);
22896 return resultobj;
22897 fail:
22898 return NULL;
22899 }
22900
22901
22902 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
22903 PyObject *resultobj;
22904 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22905 wxDateSpan *arg2 = 0 ;
22906 wxDateSpan *result;
22907 PyObject * obj0 = 0 ;
22908 PyObject * obj1 = 0 ;
22909 char *kwnames[] = {
22910 (char *) "self",(char *) "other", NULL
22911 };
22912
22913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
22914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22916 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
22917 SWIG_POINTER_EXCEPTION | 0)) == -1)
22918 SWIG_fail;
22919 if (arg2 == NULL) {
22920 PyErr_SetString(PyExc_TypeError,"null reference");
22921 SWIG_fail;
22922 }
22923 {
22924 PyThreadState* __tstate = wxPyBeginAllowThreads();
22925 {
22926 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
22927 result = (wxDateSpan *) &_result_ref;
22928 }
22929
22930 wxPyEndAllowThreads(__tstate);
22931 if (PyErr_Occurred()) SWIG_fail;
22932 }
22933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22934 return resultobj;
22935 fail:
22936 return NULL;
22937 }
22938
22939
22940 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
22941 PyObject *resultobj;
22942 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22943 wxDateSpan *arg2 = 0 ;
22944 wxDateSpan *result;
22945 PyObject * obj0 = 0 ;
22946 PyObject * obj1 = 0 ;
22947 char *kwnames[] = {
22948 (char *) "self",(char *) "other", NULL
22949 };
22950
22951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
22952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
22955 SWIG_POINTER_EXCEPTION | 0)) == -1)
22956 SWIG_fail;
22957 if (arg2 == NULL) {
22958 PyErr_SetString(PyExc_TypeError,"null reference");
22959 SWIG_fail;
22960 }
22961 {
22962 PyThreadState* __tstate = wxPyBeginAllowThreads();
22963 {
22964 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
22965 result = (wxDateSpan *) &_result_ref;
22966 }
22967
22968 wxPyEndAllowThreads(__tstate);
22969 if (PyErr_Occurred()) SWIG_fail;
22970 }
22971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22972 return resultobj;
22973 fail:
22974 return NULL;
22975 }
22976
22977
22978 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
22979 PyObject *resultobj;
22980 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22981 wxDateSpan *result;
22982 PyObject * obj0 = 0 ;
22983 char *kwnames[] = {
22984 (char *) "self", NULL
22985 };
22986
22987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
22988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22990 {
22991 PyThreadState* __tstate = wxPyBeginAllowThreads();
22992 {
22993 wxDateSpan &_result_ref = (arg1)->Neg();
22994 result = (wxDateSpan *) &_result_ref;
22995 }
22996
22997 wxPyEndAllowThreads(__tstate);
22998 if (PyErr_Occurred()) SWIG_fail;
22999 }
23000 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23001 return resultobj;
23002 fail:
23003 return NULL;
23004 }
23005
23006
23007 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23008 PyObject *resultobj;
23009 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23010 int arg2 ;
23011 wxDateSpan *result;
23012 PyObject * obj0 = 0 ;
23013 PyObject * obj1 = 0 ;
23014 char *kwnames[] = {
23015 (char *) "self",(char *) "factor", NULL
23016 };
23017
23018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23021 arg2 = (int) SWIG_AsInt(obj1);
23022 if (PyErr_Occurred()) SWIG_fail;
23023 {
23024 PyThreadState* __tstate = wxPyBeginAllowThreads();
23025 {
23026 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23027 result = (wxDateSpan *) &_result_ref;
23028 }
23029
23030 wxPyEndAllowThreads(__tstate);
23031 if (PyErr_Occurred()) SWIG_fail;
23032 }
23033 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23034 return resultobj;
23035 fail:
23036 return NULL;
23037 }
23038
23039
23040 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23041 PyObject *resultobj;
23042 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23043 wxDateSpan *arg2 = 0 ;
23044 wxDateSpan *result;
23045 PyObject * obj0 = 0 ;
23046 PyObject * obj1 = 0 ;
23047 char *kwnames[] = {
23048 (char *) "self",(char *) "other", NULL
23049 };
23050
23051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23054 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23055 SWIG_POINTER_EXCEPTION | 0)) == -1)
23056 SWIG_fail;
23057 if (arg2 == NULL) {
23058 PyErr_SetString(PyExc_TypeError,"null reference");
23059 SWIG_fail;
23060 }
23061 {
23062 PyThreadState* __tstate = wxPyBeginAllowThreads();
23063 {
23064 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23065 result = (wxDateSpan *) &_result_ref;
23066 }
23067
23068 wxPyEndAllowThreads(__tstate);
23069 if (PyErr_Occurred()) SWIG_fail;
23070 }
23071 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23072 return resultobj;
23073 fail:
23074 return NULL;
23075 }
23076
23077
23078 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23079 PyObject *resultobj;
23080 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23081 wxDateSpan *arg2 = 0 ;
23082 wxDateSpan *result;
23083 PyObject * obj0 = 0 ;
23084 PyObject * obj1 = 0 ;
23085 char *kwnames[] = {
23086 (char *) "self",(char *) "other", NULL
23087 };
23088
23089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23092 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23093 SWIG_POINTER_EXCEPTION | 0)) == -1)
23094 SWIG_fail;
23095 if (arg2 == NULL) {
23096 PyErr_SetString(PyExc_TypeError,"null reference");
23097 SWIG_fail;
23098 }
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 {
23102 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23103 result = (wxDateSpan *) &_result_ref;
23104 }
23105
23106 wxPyEndAllowThreads(__tstate);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 }
23109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23110 return resultobj;
23111 fail:
23112 return NULL;
23113 }
23114
23115
23116 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23117 PyObject *resultobj;
23118 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23119 wxDateSpan *result;
23120 PyObject * obj0 = 0 ;
23121 char *kwnames[] = {
23122 (char *) "self", NULL
23123 };
23124
23125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23128 {
23129 PyThreadState* __tstate = wxPyBeginAllowThreads();
23130 {
23131 wxDateSpan &_result_ref = (arg1)->operator -();
23132 result = (wxDateSpan *) &_result_ref;
23133 }
23134
23135 wxPyEndAllowThreads(__tstate);
23136 if (PyErr_Occurred()) SWIG_fail;
23137 }
23138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23139 return resultobj;
23140 fail:
23141 return NULL;
23142 }
23143
23144
23145 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23146 PyObject *resultobj;
23147 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23148 int arg2 ;
23149 wxDateSpan *result;
23150 PyObject * obj0 = 0 ;
23151 PyObject * obj1 = 0 ;
23152 char *kwnames[] = {
23153 (char *) "self",(char *) "factor", NULL
23154 };
23155
23156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23159 arg2 = (int) SWIG_AsInt(obj1);
23160 if (PyErr_Occurred()) SWIG_fail;
23161 {
23162 PyThreadState* __tstate = wxPyBeginAllowThreads();
23163 {
23164 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23165 result = (wxDateSpan *) &_result_ref;
23166 }
23167
23168 wxPyEndAllowThreads(__tstate);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 }
23171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23172 return resultobj;
23173 fail:
23174 return NULL;
23175 }
23176
23177
23178 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23179 PyObject *resultobj;
23180 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23181 wxDateSpan *arg2 = 0 ;
23182 wxDateSpan result;
23183 PyObject * obj0 = 0 ;
23184 PyObject * obj1 = 0 ;
23185 char *kwnames[] = {
23186 (char *) "self",(char *) "other", NULL
23187 };
23188
23189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23192 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23193 SWIG_POINTER_EXCEPTION | 0)) == -1)
23194 SWIG_fail;
23195 if (arg2 == NULL) {
23196 PyErr_SetString(PyExc_TypeError,"null reference");
23197 SWIG_fail;
23198 }
23199 {
23200 PyThreadState* __tstate = wxPyBeginAllowThreads();
23201 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23202
23203 wxPyEndAllowThreads(__tstate);
23204 if (PyErr_Occurred()) SWIG_fail;
23205 }
23206 {
23207 wxDateSpan * resultptr;
23208 resultptr = new wxDateSpan((wxDateSpan &) result);
23209 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23210 }
23211 return resultobj;
23212 fail:
23213 return NULL;
23214 }
23215
23216
23217 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23218 PyObject *resultobj;
23219 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23220 wxDateSpan *arg2 = 0 ;
23221 wxDateSpan result;
23222 PyObject * obj0 = 0 ;
23223 PyObject * obj1 = 0 ;
23224 char *kwnames[] = {
23225 (char *) "self",(char *) "other", NULL
23226 };
23227
23228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23231 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23232 SWIG_POINTER_EXCEPTION | 0)) == -1)
23233 SWIG_fail;
23234 if (arg2 == NULL) {
23235 PyErr_SetString(PyExc_TypeError,"null reference");
23236 SWIG_fail;
23237 }
23238 {
23239 PyThreadState* __tstate = wxPyBeginAllowThreads();
23240 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23241
23242 wxPyEndAllowThreads(__tstate);
23243 if (PyErr_Occurred()) SWIG_fail;
23244 }
23245 {
23246 wxDateSpan * resultptr;
23247 resultptr = new wxDateSpan((wxDateSpan &) result);
23248 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23249 }
23250 return resultobj;
23251 fail:
23252 return NULL;
23253 }
23254
23255
23256 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23257 PyObject *resultobj;
23258 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23259 int arg2 ;
23260 wxDateSpan result;
23261 PyObject * obj0 = 0 ;
23262 PyObject * obj1 = 0 ;
23263 char *kwnames[] = {
23264 (char *) "self",(char *) "n", NULL
23265 };
23266
23267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23270 arg2 = (int) SWIG_AsInt(obj1);
23271 if (PyErr_Occurred()) SWIG_fail;
23272 {
23273 PyThreadState* __tstate = wxPyBeginAllowThreads();
23274 result = wxDateSpan___mul__(arg1,arg2);
23275
23276 wxPyEndAllowThreads(__tstate);
23277 if (PyErr_Occurred()) SWIG_fail;
23278 }
23279 {
23280 wxDateSpan * resultptr;
23281 resultptr = new wxDateSpan((wxDateSpan &) result);
23282 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23283 }
23284 return resultobj;
23285 fail:
23286 return NULL;
23287 }
23288
23289
23290 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23291 PyObject *resultobj;
23292 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23293 int arg2 ;
23294 wxDateSpan result;
23295 PyObject * obj0 = 0 ;
23296 PyObject * obj1 = 0 ;
23297 char *kwnames[] = {
23298 (char *) "self",(char *) "n", NULL
23299 };
23300
23301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23304 arg2 = (int) SWIG_AsInt(obj1);
23305 if (PyErr_Occurred()) SWIG_fail;
23306 {
23307 PyThreadState* __tstate = wxPyBeginAllowThreads();
23308 result = wxDateSpan___rmul__(arg1,arg2);
23309
23310 wxPyEndAllowThreads(__tstate);
23311 if (PyErr_Occurred()) SWIG_fail;
23312 }
23313 {
23314 wxDateSpan * resultptr;
23315 resultptr = new wxDateSpan((wxDateSpan &) result);
23316 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23317 }
23318 return resultobj;
23319 fail:
23320 return NULL;
23321 }
23322
23323
23324 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23325 PyObject *resultobj;
23326 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23327 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23328 bool result;
23329 PyObject * obj0 = 0 ;
23330 PyObject * obj1 = 0 ;
23331 char *kwnames[] = {
23332 (char *) "self",(char *) "other", NULL
23333 };
23334
23335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23338 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23340 {
23341 PyThreadState* __tstate = wxPyBeginAllowThreads();
23342 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23343
23344 wxPyEndAllowThreads(__tstate);
23345 if (PyErr_Occurred()) SWIG_fail;
23346 }
23347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23348 return resultobj;
23349 fail:
23350 return NULL;
23351 }
23352
23353
23354 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23355 PyObject *resultobj;
23356 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23357 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23358 bool result;
23359 PyObject * obj0 = 0 ;
23360 PyObject * obj1 = 0 ;
23361 char *kwnames[] = {
23362 (char *) "self",(char *) "other", NULL
23363 };
23364
23365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23368 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23370 {
23371 PyThreadState* __tstate = wxPyBeginAllowThreads();
23372 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23373
23374 wxPyEndAllowThreads(__tstate);
23375 if (PyErr_Occurred()) SWIG_fail;
23376 }
23377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23378 return resultobj;
23379 fail:
23380 return NULL;
23381 }
23382
23383
23384 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23385 PyObject *obj;
23386 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23387 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23388 Py_INCREF(obj);
23389 return Py_BuildValue((char *)"");
23390 }
23391 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23392 PyObject *resultobj;
23393 long result;
23394 char *kwnames[] = {
23395 NULL
23396 };
23397
23398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23399 {
23400 PyThreadState* __tstate = wxPyBeginAllowThreads();
23401 result = (long)wxGetLocalTime();
23402
23403 wxPyEndAllowThreads(__tstate);
23404 if (PyErr_Occurred()) SWIG_fail;
23405 }
23406 resultobj = SWIG_FromLong((long)result);
23407 return resultobj;
23408 fail:
23409 return NULL;
23410 }
23411
23412
23413 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23414 PyObject *resultobj;
23415 long result;
23416 char *kwnames[] = {
23417 NULL
23418 };
23419
23420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23421 {
23422 PyThreadState* __tstate = wxPyBeginAllowThreads();
23423 result = (long)wxGetUTCTime();
23424
23425 wxPyEndAllowThreads(__tstate);
23426 if (PyErr_Occurred()) SWIG_fail;
23427 }
23428 resultobj = SWIG_FromLong((long)result);
23429 return resultobj;
23430 fail:
23431 return NULL;
23432 }
23433
23434
23435 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23436 PyObject *resultobj;
23437 long result;
23438 char *kwnames[] = {
23439 NULL
23440 };
23441
23442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23443 {
23444 PyThreadState* __tstate = wxPyBeginAllowThreads();
23445 result = (long)wxGetCurrentTime();
23446
23447 wxPyEndAllowThreads(__tstate);
23448 if (PyErr_Occurred()) SWIG_fail;
23449 }
23450 resultobj = SWIG_FromLong((long)result);
23451 return resultobj;
23452 fail:
23453 return NULL;
23454 }
23455
23456
23457 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23458 PyObject *resultobj;
23459 wxLongLong result;
23460 char *kwnames[] = {
23461 NULL
23462 };
23463
23464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23465 {
23466 PyThreadState* __tstate = wxPyBeginAllowThreads();
23467 result = wxGetLocalTimeMillis();
23468
23469 wxPyEndAllowThreads(__tstate);
23470 if (PyErr_Occurred()) SWIG_fail;
23471 }
23472 {
23473 PyObject *hi, *lo, *shifter, *shifted;
23474 hi = PyLong_FromLong( (&result)->GetHi() );
23475 lo = PyLong_FromLong( (&result)->GetLo() );
23476 shifter = PyLong_FromLong(32);
23477 shifted = PyNumber_Lshift(hi, shifter);
23478 resultobj = PyNumber_Or(shifted, lo);
23479 Py_DECREF(hi);
23480 Py_DECREF(lo);
23481 Py_DECREF(shifter);
23482 Py_DECREF(shifted);
23483 }
23484 return resultobj;
23485 fail:
23486 return NULL;
23487 }
23488
23489
23490 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23491 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23492 return 1;
23493 }
23494
23495
23496 static PyObject *_wrap_DefaultDateTime_get() {
23497 PyObject *pyobj;
23498
23499 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23500 return pyobj;
23501 }
23502
23503
23504 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23505 PyObject *resultobj;
23506 int arg1 ;
23507 wxDataFormat *result;
23508 PyObject * obj0 = 0 ;
23509 char *kwnames[] = {
23510 (char *) "type", NULL
23511 };
23512
23513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23514 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23515 if (PyErr_Occurred()) SWIG_fail;
23516 {
23517 PyThreadState* __tstate = wxPyBeginAllowThreads();
23518 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23519
23520 wxPyEndAllowThreads(__tstate);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23524 return resultobj;
23525 fail:
23526 return NULL;
23527 }
23528
23529
23530 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23531 PyObject *resultobj;
23532 wxString *arg1 = 0 ;
23533 wxDataFormat *result;
23534 bool temp1 = False ;
23535 PyObject * obj0 = 0 ;
23536 char *kwnames[] = {
23537 (char *) "format", NULL
23538 };
23539
23540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23541 {
23542 arg1 = wxString_in_helper(obj0);
23543 if (arg1 == NULL) SWIG_fail;
23544 temp1 = True;
23545 }
23546 {
23547 PyThreadState* __tstate = wxPyBeginAllowThreads();
23548 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23549
23550 wxPyEndAllowThreads(__tstate);
23551 if (PyErr_Occurred()) SWIG_fail;
23552 }
23553 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23554 {
23555 if (temp1)
23556 delete arg1;
23557 }
23558 return resultobj;
23559 fail:
23560 {
23561 if (temp1)
23562 delete arg1;
23563 }
23564 return NULL;
23565 }
23566
23567
23568 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23569 PyObject *resultobj;
23570 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23571 PyObject * obj0 = 0 ;
23572 char *kwnames[] = {
23573 (char *) "self", NULL
23574 };
23575
23576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23579 {
23580 PyThreadState* __tstate = wxPyBeginAllowThreads();
23581 delete arg1;
23582
23583 wxPyEndAllowThreads(__tstate);
23584 if (PyErr_Occurred()) SWIG_fail;
23585 }
23586 Py_INCREF(Py_None); resultobj = Py_None;
23587 return resultobj;
23588 fail:
23589 return NULL;
23590 }
23591
23592
23593 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23594 PyObject *resultobj;
23595 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23596 int arg2 ;
23597 bool result;
23598 PyObject * obj0 = 0 ;
23599 PyObject * obj1 = 0 ;
23600
23601 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23604 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23605 if (PyErr_Occurred()) SWIG_fail;
23606 {
23607 PyThreadState* __tstate = wxPyBeginAllowThreads();
23608 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23609
23610 wxPyEndAllowThreads(__tstate);
23611 if (PyErr_Occurred()) SWIG_fail;
23612 }
23613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23614 return resultobj;
23615 fail:
23616 return NULL;
23617 }
23618
23619
23620 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23621 PyObject *resultobj;
23622 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23623 int arg2 ;
23624 bool result;
23625 PyObject * obj0 = 0 ;
23626 PyObject * obj1 = 0 ;
23627
23628 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23631 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23632 if (PyErr_Occurred()) SWIG_fail;
23633 {
23634 PyThreadState* __tstate = wxPyBeginAllowThreads();
23635 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23636
23637 wxPyEndAllowThreads(__tstate);
23638 if (PyErr_Occurred()) SWIG_fail;
23639 }
23640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23641 return resultobj;
23642 fail:
23643 return NULL;
23644 }
23645
23646
23647 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
23648 PyObject *resultobj;
23649 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23650 wxDataFormat *arg2 = 0 ;
23651 bool result;
23652 PyObject * obj0 = 0 ;
23653 PyObject * obj1 = 0 ;
23654
23655 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23658 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23659 SWIG_POINTER_EXCEPTION | 0)) == -1)
23660 SWIG_fail;
23661 if (arg2 == NULL) {
23662 PyErr_SetString(PyExc_TypeError,"null reference");
23663 SWIG_fail;
23664 }
23665 {
23666 PyThreadState* __tstate = wxPyBeginAllowThreads();
23667 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23668
23669 wxPyEndAllowThreads(__tstate);
23670 if (PyErr_Occurred()) SWIG_fail;
23671 }
23672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23673 return resultobj;
23674 fail:
23675 return NULL;
23676 }
23677
23678
23679 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23680 int argc;
23681 PyObject *argv[3];
23682 int ii;
23683
23684 argc = PyObject_Length(args);
23685 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23686 argv[ii] = PyTuple_GetItem(args,ii);
23687 }
23688 if (argc == 2) {
23689 int _v;
23690 {
23691 void *ptr;
23692 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23693 _v = 0;
23694 PyErr_Clear();
23695 } else {
23696 _v = 1;
23697 }
23698 }
23699 if (_v) {
23700 {
23701 void *ptr;
23702 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23703 _v = 0;
23704 PyErr_Clear();
23705 } else {
23706 _v = 1;
23707 }
23708 }
23709 if (_v) {
23710 return _wrap_DataFormat___eq____SWIG_1(self,args);
23711 }
23712 }
23713 }
23714 if (argc == 2) {
23715 int _v;
23716 {
23717 void *ptr;
23718 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23719 _v = 0;
23720 PyErr_Clear();
23721 } else {
23722 _v = 1;
23723 }
23724 }
23725 if (_v) {
23726 _v = SWIG_CheckInt(argv[1]);
23727 if (_v) {
23728 return _wrap_DataFormat___eq____SWIG_0(self,args);
23729 }
23730 }
23731 }
23732
23733 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
23734 return NULL;
23735 }
23736
23737
23738 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
23739 PyObject *resultobj;
23740 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23741 wxDataFormat *arg2 = 0 ;
23742 bool result;
23743 PyObject * obj0 = 0 ;
23744 PyObject * obj1 = 0 ;
23745
23746 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23749 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23750 SWIG_POINTER_EXCEPTION | 0)) == -1)
23751 SWIG_fail;
23752 if (arg2 == NULL) {
23753 PyErr_SetString(PyExc_TypeError,"null reference");
23754 SWIG_fail;
23755 }
23756 {
23757 PyThreadState* __tstate = wxPyBeginAllowThreads();
23758 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
23759
23760 wxPyEndAllowThreads(__tstate);
23761 if (PyErr_Occurred()) SWIG_fail;
23762 }
23763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23764 return resultobj;
23765 fail:
23766 return NULL;
23767 }
23768
23769
23770 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
23771 int argc;
23772 PyObject *argv[3];
23773 int ii;
23774
23775 argc = PyObject_Length(args);
23776 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23777 argv[ii] = PyTuple_GetItem(args,ii);
23778 }
23779 if (argc == 2) {
23780 int _v;
23781 {
23782 void *ptr;
23783 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23784 _v = 0;
23785 PyErr_Clear();
23786 } else {
23787 _v = 1;
23788 }
23789 }
23790 if (_v) {
23791 {
23792 void *ptr;
23793 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23794 _v = 0;
23795 PyErr_Clear();
23796 } else {
23797 _v = 1;
23798 }
23799 }
23800 if (_v) {
23801 return _wrap_DataFormat___ne____SWIG_1(self,args);
23802 }
23803 }
23804 }
23805 if (argc == 2) {
23806 int _v;
23807 {
23808 void *ptr;
23809 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23810 _v = 0;
23811 PyErr_Clear();
23812 } else {
23813 _v = 1;
23814 }
23815 }
23816 if (_v) {
23817 _v = SWIG_CheckInt(argv[1]);
23818 if (_v) {
23819 return _wrap_DataFormat___ne____SWIG_0(self,args);
23820 }
23821 }
23822 }
23823
23824 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
23825 return NULL;
23826 }
23827
23828
23829 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
23830 PyObject *resultobj;
23831 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23832 int arg2 ;
23833 PyObject * obj0 = 0 ;
23834 PyObject * obj1 = 0 ;
23835 char *kwnames[] = {
23836 (char *) "self",(char *) "format", NULL
23837 };
23838
23839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
23840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23842 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 {
23845 PyThreadState* __tstate = wxPyBeginAllowThreads();
23846 (arg1)->SetType((wxDataFormatId )arg2);
23847
23848 wxPyEndAllowThreads(__tstate);
23849 if (PyErr_Occurred()) SWIG_fail;
23850 }
23851 Py_INCREF(Py_None); resultobj = Py_None;
23852 return resultobj;
23853 fail:
23854 return NULL;
23855 }
23856
23857
23858 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
23859 PyObject *resultobj;
23860 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23861 int result;
23862 PyObject * obj0 = 0 ;
23863 char *kwnames[] = {
23864 (char *) "self", NULL
23865 };
23866
23867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
23868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23870 {
23871 PyThreadState* __tstate = wxPyBeginAllowThreads();
23872 result = (int)((wxDataFormat const *)arg1)->GetType();
23873
23874 wxPyEndAllowThreads(__tstate);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 }
23877 resultobj = SWIG_FromInt((int)result);
23878 return resultobj;
23879 fail:
23880 return NULL;
23881 }
23882
23883
23884 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23885 PyObject *resultobj;
23886 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23887 wxString result;
23888 PyObject * obj0 = 0 ;
23889 char *kwnames[] = {
23890 (char *) "self", NULL
23891 };
23892
23893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
23894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23896 {
23897 PyThreadState* __tstate = wxPyBeginAllowThreads();
23898 result = ((wxDataFormat const *)arg1)->GetId();
23899
23900 wxPyEndAllowThreads(__tstate);
23901 if (PyErr_Occurred()) SWIG_fail;
23902 }
23903 {
23904 #if wxUSE_UNICODE
23905 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23906 #else
23907 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23908 #endif
23909 }
23910 return resultobj;
23911 fail:
23912 return NULL;
23913 }
23914
23915
23916 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
23917 PyObject *resultobj;
23918 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23919 wxString *arg2 = 0 ;
23920 bool temp2 = False ;
23921 PyObject * obj0 = 0 ;
23922 PyObject * obj1 = 0 ;
23923 char *kwnames[] = {
23924 (char *) "self",(char *) "format", NULL
23925 };
23926
23927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
23928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23930 {
23931 arg2 = wxString_in_helper(obj1);
23932 if (arg2 == NULL) SWIG_fail;
23933 temp2 = True;
23934 }
23935 {
23936 PyThreadState* __tstate = wxPyBeginAllowThreads();
23937 (arg1)->SetId((wxString const &)*arg2);
23938
23939 wxPyEndAllowThreads(__tstate);
23940 if (PyErr_Occurred()) SWIG_fail;
23941 }
23942 Py_INCREF(Py_None); resultobj = Py_None;
23943 {
23944 if (temp2)
23945 delete arg2;
23946 }
23947 return resultobj;
23948 fail:
23949 {
23950 if (temp2)
23951 delete arg2;
23952 }
23953 return NULL;
23954 }
23955
23956
23957 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
23958 PyObject *obj;
23959 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23960 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
23961 Py_INCREF(obj);
23962 return Py_BuildValue((char *)"");
23963 }
23964 static int _wrap_FormatInvalid_set(PyObject *_val) {
23965 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
23966 return 1;
23967 }
23968
23969
23970 static PyObject *_wrap_FormatInvalid_get() {
23971 PyObject *pyobj;
23972
23973 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
23974 return pyobj;
23975 }
23976
23977
23978 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
23979 PyObject *resultobj;
23980 wxDataObject *arg1 = (wxDataObject *) 0 ;
23981 PyObject * obj0 = 0 ;
23982 char *kwnames[] = {
23983 (char *) "self", NULL
23984 };
23985
23986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
23987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
23988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23989 {
23990 PyThreadState* __tstate = wxPyBeginAllowThreads();
23991 delete arg1;
23992
23993 wxPyEndAllowThreads(__tstate);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 }
23996 Py_INCREF(Py_None); resultobj = Py_None;
23997 return resultobj;
23998 fail:
23999 return NULL;
24000 }
24001
24002
24003 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24004 PyObject *resultobj;
24005 wxDataObject *arg1 = (wxDataObject *) 0 ;
24006 int arg2 = (int) wxDataObject::Get ;
24007 SwigValueWrapper< wxDataFormat > result;
24008 PyObject * obj0 = 0 ;
24009 PyObject * obj1 = 0 ;
24010 char *kwnames[] = {
24011 (char *) "self",(char *) "dir", NULL
24012 };
24013
24014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24017 if (obj1) {
24018 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24019 if (PyErr_Occurred()) SWIG_fail;
24020 }
24021 {
24022 PyThreadState* __tstate = wxPyBeginAllowThreads();
24023 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24024
24025 wxPyEndAllowThreads(__tstate);
24026 if (PyErr_Occurred()) SWIG_fail;
24027 }
24028 {
24029 wxDataFormat * resultptr;
24030 resultptr = new wxDataFormat((wxDataFormat &) result);
24031 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24032 }
24033 return resultobj;
24034 fail:
24035 return NULL;
24036 }
24037
24038
24039 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24040 PyObject *resultobj;
24041 wxDataObject *arg1 = (wxDataObject *) 0 ;
24042 int arg2 = (int) wxDataObject::Get ;
24043 size_t result;
24044 PyObject * obj0 = 0 ;
24045 PyObject * obj1 = 0 ;
24046 char *kwnames[] = {
24047 (char *) "self",(char *) "dir", NULL
24048 };
24049
24050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24053 if (obj1) {
24054 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24055 if (PyErr_Occurred()) SWIG_fail;
24056 }
24057 {
24058 PyThreadState* __tstate = wxPyBeginAllowThreads();
24059 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24060
24061 wxPyEndAllowThreads(__tstate);
24062 if (PyErr_Occurred()) SWIG_fail;
24063 }
24064 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24065 return resultobj;
24066 fail:
24067 return NULL;
24068 }
24069
24070
24071 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24072 PyObject *resultobj;
24073 wxDataObject *arg1 = (wxDataObject *) 0 ;
24074 wxDataFormat *arg2 = 0 ;
24075 int arg3 = (int) wxDataObject::Get ;
24076 bool result;
24077 PyObject * obj0 = 0 ;
24078 PyObject * obj1 = 0 ;
24079 PyObject * obj2 = 0 ;
24080 char *kwnames[] = {
24081 (char *) "self",(char *) "format",(char *) "dir", NULL
24082 };
24083
24084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24087 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24088 SWIG_POINTER_EXCEPTION | 0)) == -1)
24089 SWIG_fail;
24090 if (arg2 == NULL) {
24091 PyErr_SetString(PyExc_TypeError,"null reference");
24092 SWIG_fail;
24093 }
24094 if (obj2) {
24095 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24096 if (PyErr_Occurred()) SWIG_fail;
24097 }
24098 {
24099 PyThreadState* __tstate = wxPyBeginAllowThreads();
24100 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24101
24102 wxPyEndAllowThreads(__tstate);
24103 if (PyErr_Occurred()) SWIG_fail;
24104 }
24105 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24106 return resultobj;
24107 fail:
24108 return NULL;
24109 }
24110
24111
24112 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24113 PyObject *resultobj;
24114 wxDataObject *arg1 = (wxDataObject *) 0 ;
24115 wxDataFormat *arg2 = 0 ;
24116 size_t result;
24117 PyObject * obj0 = 0 ;
24118 PyObject * obj1 = 0 ;
24119 char *kwnames[] = {
24120 (char *) "self",(char *) "format", NULL
24121 };
24122
24123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24127 SWIG_POINTER_EXCEPTION | 0)) == -1)
24128 SWIG_fail;
24129 if (arg2 == NULL) {
24130 PyErr_SetString(PyExc_TypeError,"null reference");
24131 SWIG_fail;
24132 }
24133 {
24134 PyThreadState* __tstate = wxPyBeginAllowThreads();
24135 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24136
24137 wxPyEndAllowThreads(__tstate);
24138 if (PyErr_Occurred()) SWIG_fail;
24139 }
24140 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24141 return resultobj;
24142 fail:
24143 return NULL;
24144 }
24145
24146
24147 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24148 PyObject *resultobj;
24149 wxDataObject *arg1 = (wxDataObject *) 0 ;
24150 wxDataFormat *arg2 = (wxDataFormat *) 0 ;
24151 int arg3 = (int) wxDataObject::Get ;
24152 PyObject * obj0 = 0 ;
24153 PyObject * obj1 = 0 ;
24154 PyObject * obj2 = 0 ;
24155 char *kwnames[] = {
24156 (char *) "self",(char *) "formats",(char *) "dir", NULL
24157 };
24158
24159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1,&obj2)) goto fail;
24160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24162 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24164 if (obj2) {
24165 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24166 if (PyErr_Occurred()) SWIG_fail;
24167 }
24168 {
24169 PyThreadState* __tstate = wxPyBeginAllowThreads();
24170 ((wxDataObject const *)arg1)->GetAllFormats(arg2,(wxDataObject::Direction )arg3);
24171
24172 wxPyEndAllowThreads(__tstate);
24173 if (PyErr_Occurred()) SWIG_fail;
24174 }
24175 Py_INCREF(Py_None); resultobj = Py_None;
24176 return resultobj;
24177 fail:
24178 return NULL;
24179 }
24180
24181
24182 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24183 PyObject *resultobj;
24184 wxDataObject *arg1 = (wxDataObject *) 0 ;
24185 wxDataFormat *arg2 = 0 ;
24186 void *arg3 = (void *) 0 ;
24187 bool result;
24188 PyObject * obj0 = 0 ;
24189 PyObject * obj1 = 0 ;
24190 PyObject * obj2 = 0 ;
24191 char *kwnames[] = {
24192 (char *) "self",(char *) "format",(char *) "buf", NULL
24193 };
24194
24195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_GetDataHere",kwnames,&obj0,&obj1,&obj2)) goto fail;
24196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24198 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24199 SWIG_POINTER_EXCEPTION | 0)) == -1)
24200 SWIG_fail;
24201 if (arg2 == NULL) {
24202 PyErr_SetString(PyExc_TypeError,"null reference");
24203 SWIG_fail;
24204 }
24205 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24206 {
24207 PyThreadState* __tstate = wxPyBeginAllowThreads();
24208 result = (bool)((wxDataObject const *)arg1)->GetDataHere((wxDataFormat const &)*arg2,arg3);
24209
24210 wxPyEndAllowThreads(__tstate);
24211 if (PyErr_Occurred()) SWIG_fail;
24212 }
24213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24214 return resultobj;
24215 fail:
24216 return NULL;
24217 }
24218
24219
24220 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24221 PyObject *resultobj;
24222 wxDataObject *arg1 = (wxDataObject *) 0 ;
24223 wxDataFormat *arg2 = 0 ;
24224 size_t arg3 ;
24225 void *arg4 = (void *) 0 ;
24226 bool result;
24227 PyObject * obj0 = 0 ;
24228 PyObject * obj1 = 0 ;
24229 PyObject * obj2 = 0 ;
24230 PyObject * obj3 = 0 ;
24231 char *kwnames[] = {
24232 (char *) "self",(char *) "format",(char *) "len",(char *) "buf", NULL
24233 };
24234
24235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
24236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24238 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24239 SWIG_POINTER_EXCEPTION | 0)) == -1)
24240 SWIG_fail;
24241 if (arg2 == NULL) {
24242 PyErr_SetString(PyExc_TypeError,"null reference");
24243 SWIG_fail;
24244 }
24245 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
24246 if (PyErr_Occurred()) SWIG_fail;
24247 if ((SWIG_ConvertPtr(obj3,&arg4,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24248 {
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 result = (bool)(arg1)->SetData((wxDataFormat const &)*arg2,arg3,(void const *)arg4);
24251
24252 wxPyEndAllowThreads(__tstate);
24253 if (PyErr_Occurred()) SWIG_fail;
24254 }
24255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24256 return resultobj;
24257 fail:
24258 return NULL;
24259 }
24260
24261
24262 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24263 PyObject *obj;
24264 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24265 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24266 Py_INCREF(obj);
24267 return Py_BuildValue((char *)"");
24268 }
24269 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24270 PyObject *resultobj;
24271 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24272 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24273 wxDataObjectSimple *result;
24274 PyObject * obj0 = 0 ;
24275 char *kwnames[] = {
24276 (char *) "format", NULL
24277 };
24278
24279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24280 if (obj0) {
24281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24282 SWIG_POINTER_EXCEPTION | 0)) == -1)
24283 SWIG_fail;
24284 if (arg1 == NULL) {
24285 PyErr_SetString(PyExc_TypeError,"null reference");
24286 SWIG_fail;
24287 }
24288 }
24289 {
24290 PyThreadState* __tstate = wxPyBeginAllowThreads();
24291 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24292
24293 wxPyEndAllowThreads(__tstate);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24297 return resultobj;
24298 fail:
24299 return NULL;
24300 }
24301
24302
24303 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24304 PyObject *resultobj;
24305 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24306 wxDataFormat *result;
24307 PyObject * obj0 = 0 ;
24308 char *kwnames[] = {
24309 (char *) "self", NULL
24310 };
24311
24312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24315 {
24316 PyThreadState* __tstate = wxPyBeginAllowThreads();
24317 {
24318 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24319 result = (wxDataFormat *) &_result_ref;
24320 }
24321
24322 wxPyEndAllowThreads(__tstate);
24323 if (PyErr_Occurred()) SWIG_fail;
24324 }
24325 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24326 return resultobj;
24327 fail:
24328 return NULL;
24329 }
24330
24331
24332 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24333 PyObject *resultobj;
24334 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24335 wxDataFormat *arg2 = 0 ;
24336 PyObject * obj0 = 0 ;
24337 PyObject * obj1 = 0 ;
24338 char *kwnames[] = {
24339 (char *) "self",(char *) "format", NULL
24340 };
24341
24342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24345 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24346 SWIG_POINTER_EXCEPTION | 0)) == -1)
24347 SWIG_fail;
24348 if (arg2 == NULL) {
24349 PyErr_SetString(PyExc_TypeError,"null reference");
24350 SWIG_fail;
24351 }
24352 {
24353 PyThreadState* __tstate = wxPyBeginAllowThreads();
24354 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24355
24356 wxPyEndAllowThreads(__tstate);
24357 if (PyErr_Occurred()) SWIG_fail;
24358 }
24359 Py_INCREF(Py_None); resultobj = Py_None;
24360 return resultobj;
24361 fail:
24362 return NULL;
24363 }
24364
24365
24366 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24367 PyObject *obj;
24368 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24369 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24370 Py_INCREF(obj);
24371 return Py_BuildValue((char *)"");
24372 }
24373 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24374 PyObject *resultobj;
24375 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24376 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24377 wxPyDataObjectSimple *result;
24378 PyObject * obj0 = 0 ;
24379 char *kwnames[] = {
24380 (char *) "format", NULL
24381 };
24382
24383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24384 if (obj0) {
24385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24386 SWIG_POINTER_EXCEPTION | 0)) == -1)
24387 SWIG_fail;
24388 if (arg1 == NULL) {
24389 PyErr_SetString(PyExc_TypeError,"null reference");
24390 SWIG_fail;
24391 }
24392 }
24393 {
24394 PyThreadState* __tstate = wxPyBeginAllowThreads();
24395 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24396
24397 wxPyEndAllowThreads(__tstate);
24398 if (PyErr_Occurred()) SWIG_fail;
24399 }
24400 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24401 return resultobj;
24402 fail:
24403 return NULL;
24404 }
24405
24406
24407 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24408 PyObject *resultobj;
24409 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24410 PyObject *arg2 = (PyObject *) 0 ;
24411 PyObject *arg3 = (PyObject *) 0 ;
24412 PyObject * obj0 = 0 ;
24413 PyObject * obj1 = 0 ;
24414 PyObject * obj2 = 0 ;
24415 char *kwnames[] = {
24416 (char *) "self",(char *) "self",(char *) "_class", NULL
24417 };
24418
24419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24422 arg2 = obj1;
24423 arg3 = obj2;
24424 {
24425 PyThreadState* __tstate = wxPyBeginAllowThreads();
24426 (arg1)->_setCallbackInfo(arg2,arg3);
24427
24428 wxPyEndAllowThreads(__tstate);
24429 if (PyErr_Occurred()) SWIG_fail;
24430 }
24431 Py_INCREF(Py_None); resultobj = Py_None;
24432 return resultobj;
24433 fail:
24434 return NULL;
24435 }
24436
24437
24438 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24439 PyObject *obj;
24440 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24441 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24442 Py_INCREF(obj);
24443 return Py_BuildValue((char *)"");
24444 }
24445 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24446 PyObject *resultobj;
24447 wxDataObjectComposite *result;
24448 char *kwnames[] = {
24449 NULL
24450 };
24451
24452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24453 {
24454 PyThreadState* __tstate = wxPyBeginAllowThreads();
24455 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24456
24457 wxPyEndAllowThreads(__tstate);
24458 if (PyErr_Occurred()) SWIG_fail;
24459 }
24460 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24461 return resultobj;
24462 fail:
24463 return NULL;
24464 }
24465
24466
24467 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24468 PyObject *resultobj;
24469 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24470 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24471 int arg3 = (int) False ;
24472 PyObject * obj0 = 0 ;
24473 PyObject * obj1 = 0 ;
24474 PyObject * obj2 = 0 ;
24475 char *kwnames[] = {
24476 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24477 };
24478
24479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24482 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24483 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24484 if (obj2) {
24485 arg3 = (int) SWIG_AsInt(obj2);
24486 if (PyErr_Occurred()) SWIG_fail;
24487 }
24488 {
24489 PyThreadState* __tstate = wxPyBeginAllowThreads();
24490 (arg1)->Add(arg2,arg3);
24491
24492 wxPyEndAllowThreads(__tstate);
24493 if (PyErr_Occurred()) SWIG_fail;
24494 }
24495 Py_INCREF(Py_None); resultobj = Py_None;
24496 return resultobj;
24497 fail:
24498 return NULL;
24499 }
24500
24501
24502 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24503 PyObject *obj;
24504 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24505 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24506 Py_INCREF(obj);
24507 return Py_BuildValue((char *)"");
24508 }
24509 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24510 PyObject *resultobj;
24511 wxString const &arg1_defvalue = wxPyEmptyString ;
24512 wxString *arg1 = (wxString *) &arg1_defvalue ;
24513 wxTextDataObject *result;
24514 bool temp1 = False ;
24515 PyObject * obj0 = 0 ;
24516 char *kwnames[] = {
24517 (char *) "text", NULL
24518 };
24519
24520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24521 if (obj0) {
24522 {
24523 arg1 = wxString_in_helper(obj0);
24524 if (arg1 == NULL) SWIG_fail;
24525 temp1 = True;
24526 }
24527 }
24528 {
24529 PyThreadState* __tstate = wxPyBeginAllowThreads();
24530 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24531
24532 wxPyEndAllowThreads(__tstate);
24533 if (PyErr_Occurred()) SWIG_fail;
24534 }
24535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24536 {
24537 if (temp1)
24538 delete arg1;
24539 }
24540 return resultobj;
24541 fail:
24542 {
24543 if (temp1)
24544 delete arg1;
24545 }
24546 return NULL;
24547 }
24548
24549
24550 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24551 PyObject *resultobj;
24552 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24553 size_t result;
24554 PyObject * obj0 = 0 ;
24555 char *kwnames[] = {
24556 (char *) "self", NULL
24557 };
24558
24559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24562 {
24563 PyThreadState* __tstate = wxPyBeginAllowThreads();
24564 result = (size_t)(arg1)->GetTextLength();
24565
24566 wxPyEndAllowThreads(__tstate);
24567 if (PyErr_Occurred()) SWIG_fail;
24568 }
24569 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24570 return resultobj;
24571 fail:
24572 return NULL;
24573 }
24574
24575
24576 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24577 PyObject *resultobj;
24578 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24579 wxString result;
24580 PyObject * obj0 = 0 ;
24581 char *kwnames[] = {
24582 (char *) "self", NULL
24583 };
24584
24585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24588 {
24589 PyThreadState* __tstate = wxPyBeginAllowThreads();
24590 result = (arg1)->GetText();
24591
24592 wxPyEndAllowThreads(__tstate);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 }
24595 {
24596 #if wxUSE_UNICODE
24597 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24598 #else
24599 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24600 #endif
24601 }
24602 return resultobj;
24603 fail:
24604 return NULL;
24605 }
24606
24607
24608 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24609 PyObject *resultobj;
24610 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24611 wxString *arg2 = 0 ;
24612 bool temp2 = False ;
24613 PyObject * obj0 = 0 ;
24614 PyObject * obj1 = 0 ;
24615 char *kwnames[] = {
24616 (char *) "self",(char *) "text", NULL
24617 };
24618
24619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24622 {
24623 arg2 = wxString_in_helper(obj1);
24624 if (arg2 == NULL) SWIG_fail;
24625 temp2 = True;
24626 }
24627 {
24628 PyThreadState* __tstate = wxPyBeginAllowThreads();
24629 (arg1)->SetText((wxString const &)*arg2);
24630
24631 wxPyEndAllowThreads(__tstate);
24632 if (PyErr_Occurred()) SWIG_fail;
24633 }
24634 Py_INCREF(Py_None); resultobj = Py_None;
24635 {
24636 if (temp2)
24637 delete arg2;
24638 }
24639 return resultobj;
24640 fail:
24641 {
24642 if (temp2)
24643 delete arg2;
24644 }
24645 return NULL;
24646 }
24647
24648
24649 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
24650 PyObject *obj;
24651 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24652 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
24653 Py_INCREF(obj);
24654 return Py_BuildValue((char *)"");
24655 }
24656 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24657 PyObject *resultobj;
24658 wxString const &arg1_defvalue = wxPyEmptyString ;
24659 wxString *arg1 = (wxString *) &arg1_defvalue ;
24660 wxPyTextDataObject *result;
24661 bool temp1 = False ;
24662 PyObject * obj0 = 0 ;
24663 char *kwnames[] = {
24664 (char *) "text", NULL
24665 };
24666
24667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
24668 if (obj0) {
24669 {
24670 arg1 = wxString_in_helper(obj0);
24671 if (arg1 == NULL) SWIG_fail;
24672 temp1 = True;
24673 }
24674 }
24675 {
24676 PyThreadState* __tstate = wxPyBeginAllowThreads();
24677 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
24678
24679 wxPyEndAllowThreads(__tstate);
24680 if (PyErr_Occurred()) SWIG_fail;
24681 }
24682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
24683 {
24684 if (temp1)
24685 delete arg1;
24686 }
24687 return resultobj;
24688 fail:
24689 {
24690 if (temp1)
24691 delete arg1;
24692 }
24693 return NULL;
24694 }
24695
24696
24697 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24698 PyObject *resultobj;
24699 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
24700 PyObject *arg2 = (PyObject *) 0 ;
24701 PyObject *arg3 = (PyObject *) 0 ;
24702 PyObject * obj0 = 0 ;
24703 PyObject * obj1 = 0 ;
24704 PyObject * obj2 = 0 ;
24705 char *kwnames[] = {
24706 (char *) "self",(char *) "self",(char *) "_class", NULL
24707 };
24708
24709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
24711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24712 arg2 = obj1;
24713 arg3 = obj2;
24714 {
24715 PyThreadState* __tstate = wxPyBeginAllowThreads();
24716 (arg1)->_setCallbackInfo(arg2,arg3);
24717
24718 wxPyEndAllowThreads(__tstate);
24719 if (PyErr_Occurred()) SWIG_fail;
24720 }
24721 Py_INCREF(Py_None); resultobj = Py_None;
24722 return resultobj;
24723 fail:
24724 return NULL;
24725 }
24726
24727
24728 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
24729 PyObject *obj;
24730 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24731 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
24732 Py_INCREF(obj);
24733 return Py_BuildValue((char *)"");
24734 }
24735 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24736 PyObject *resultobj;
24737 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24738 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24739 wxBitmapDataObject *result;
24740 PyObject * obj0 = 0 ;
24741 char *kwnames[] = {
24742 (char *) "bitmap", NULL
24743 };
24744
24745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
24746 if (obj0) {
24747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
24748 SWIG_POINTER_EXCEPTION | 0)) == -1)
24749 SWIG_fail;
24750 if (arg1 == NULL) {
24751 PyErr_SetString(PyExc_TypeError,"null reference");
24752 SWIG_fail;
24753 }
24754 }
24755 {
24756 PyThreadState* __tstate = wxPyBeginAllowThreads();
24757 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
24758
24759 wxPyEndAllowThreads(__tstate);
24760 if (PyErr_Occurred()) SWIG_fail;
24761 }
24762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
24763 return resultobj;
24764 fail:
24765 return NULL;
24766 }
24767
24768
24769 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
24770 PyObject *resultobj;
24771 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
24772 wxBitmap result;
24773 PyObject * obj0 = 0 ;
24774 char *kwnames[] = {
24775 (char *) "self", NULL
24776 };
24777
24778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
24779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
24780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24781 {
24782 PyThreadState* __tstate = wxPyBeginAllowThreads();
24783 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
24784
24785 wxPyEndAllowThreads(__tstate);
24786 if (PyErr_Occurred()) SWIG_fail;
24787 }
24788 {
24789 wxBitmap * resultptr;
24790 resultptr = new wxBitmap((wxBitmap &) result);
24791 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
24792 }
24793 return resultobj;
24794 fail:
24795 return NULL;
24796 }
24797
24798
24799 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
24800 PyObject *resultobj;
24801 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
24802 wxBitmap *arg2 = 0 ;
24803 PyObject * obj0 = 0 ;
24804 PyObject * obj1 = 0 ;
24805 char *kwnames[] = {
24806 (char *) "self",(char *) "bitmap", NULL
24807 };
24808
24809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
24810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
24811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24812 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
24813 SWIG_POINTER_EXCEPTION | 0)) == -1)
24814 SWIG_fail;
24815 if (arg2 == NULL) {
24816 PyErr_SetString(PyExc_TypeError,"null reference");
24817 SWIG_fail;
24818 }
24819 {
24820 PyThreadState* __tstate = wxPyBeginAllowThreads();
24821 (arg1)->SetBitmap((wxBitmap const &)*arg2);
24822
24823 wxPyEndAllowThreads(__tstate);
24824 if (PyErr_Occurred()) SWIG_fail;
24825 }
24826 Py_INCREF(Py_None); resultobj = Py_None;
24827 return resultobj;
24828 fail:
24829 return NULL;
24830 }
24831
24832
24833 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
24834 PyObject *obj;
24835 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24836 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
24837 Py_INCREF(obj);
24838 return Py_BuildValue((char *)"");
24839 }
24840 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24841 PyObject *resultobj;
24842 wxBitmap const &arg1_defvalue = wxNullBitmap ;
24843 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
24844 wxPyBitmapDataObject *result;
24845 PyObject * obj0 = 0 ;
24846 char *kwnames[] = {
24847 (char *) "bitmap", NULL
24848 };
24849
24850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
24851 if (obj0) {
24852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
24853 SWIG_POINTER_EXCEPTION | 0)) == -1)
24854 SWIG_fail;
24855 if (arg1 == NULL) {
24856 PyErr_SetString(PyExc_TypeError,"null reference");
24857 SWIG_fail;
24858 }
24859 }
24860 {
24861 PyThreadState* __tstate = wxPyBeginAllowThreads();
24862 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
24863
24864 wxPyEndAllowThreads(__tstate);
24865 if (PyErr_Occurred()) SWIG_fail;
24866 }
24867 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
24868 return resultobj;
24869 fail:
24870 return NULL;
24871 }
24872
24873
24874 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24875 PyObject *resultobj;
24876 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
24877 PyObject *arg2 = (PyObject *) 0 ;
24878 PyObject *arg3 = (PyObject *) 0 ;
24879 PyObject * obj0 = 0 ;
24880 PyObject * obj1 = 0 ;
24881 PyObject * obj2 = 0 ;
24882 char *kwnames[] = {
24883 (char *) "self",(char *) "self",(char *) "_class", NULL
24884 };
24885
24886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
24888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24889 arg2 = obj1;
24890 arg3 = obj2;
24891 {
24892 PyThreadState* __tstate = wxPyBeginAllowThreads();
24893 (arg1)->_setCallbackInfo(arg2,arg3);
24894
24895 wxPyEndAllowThreads(__tstate);
24896 if (PyErr_Occurred()) SWIG_fail;
24897 }
24898 Py_INCREF(Py_None); resultobj = Py_None;
24899 return resultobj;
24900 fail:
24901 return NULL;
24902 }
24903
24904
24905 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
24906 PyObject *obj;
24907 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24908 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
24909 Py_INCREF(obj);
24910 return Py_BuildValue((char *)"");
24911 }
24912 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24913 PyObject *resultobj;
24914 wxFileDataObject *result;
24915 char *kwnames[] = {
24916 NULL
24917 };
24918
24919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
24920 {
24921 PyThreadState* __tstate = wxPyBeginAllowThreads();
24922 result = (wxFileDataObject *)new wxFileDataObject();
24923
24924 wxPyEndAllowThreads(__tstate);
24925 if (PyErr_Occurred()) SWIG_fail;
24926 }
24927 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
24928 return resultobj;
24929 fail:
24930 return NULL;
24931 }
24932
24933
24934 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
24935 PyObject *resultobj;
24936 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
24937 wxArrayString *result;
24938 PyObject * obj0 = 0 ;
24939 char *kwnames[] = {
24940 (char *) "self", NULL
24941 };
24942
24943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
24944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
24945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24946 {
24947 PyThreadState* __tstate = wxPyBeginAllowThreads();
24948 {
24949 wxArrayString const &_result_ref = (arg1)->GetFilenames();
24950 result = (wxArrayString *) &_result_ref;
24951 }
24952
24953 wxPyEndAllowThreads(__tstate);
24954 if (PyErr_Occurred()) SWIG_fail;
24955 }
24956 {
24957 resultobj = wxArrayString2PyList_helper(*result);
24958 }
24959 return resultobj;
24960 fail:
24961 return NULL;
24962 }
24963
24964
24965 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
24966 PyObject *resultobj;
24967 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
24968 wxString *arg2 = 0 ;
24969 bool temp2 = False ;
24970 PyObject * obj0 = 0 ;
24971 PyObject * obj1 = 0 ;
24972 char *kwnames[] = {
24973 (char *) "self",(char *) "filename", NULL
24974 };
24975
24976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
24977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
24978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24979 {
24980 arg2 = wxString_in_helper(obj1);
24981 if (arg2 == NULL) SWIG_fail;
24982 temp2 = True;
24983 }
24984 {
24985 PyThreadState* __tstate = wxPyBeginAllowThreads();
24986 (arg1)->AddFile((wxString const &)*arg2);
24987
24988 wxPyEndAllowThreads(__tstate);
24989 if (PyErr_Occurred()) SWIG_fail;
24990 }
24991 Py_INCREF(Py_None); resultobj = Py_None;
24992 {
24993 if (temp2)
24994 delete arg2;
24995 }
24996 return resultobj;
24997 fail:
24998 {
24999 if (temp2)
25000 delete arg2;
25001 }
25002 return NULL;
25003 }
25004
25005
25006 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25007 PyObject *obj;
25008 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25009 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25010 Py_INCREF(obj);
25011 return Py_BuildValue((char *)"");
25012 }
25013 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25014 PyObject *resultobj;
25015 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25016 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25017 wxCustomDataObject *result;
25018 PyObject * obj0 = 0 ;
25019 char *kwnames[] = {
25020 (char *) "format", NULL
25021 };
25022
25023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25024 if (obj0) {
25025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25026 SWIG_POINTER_EXCEPTION | 0)) == -1)
25027 SWIG_fail;
25028 if (arg1 == NULL) {
25029 PyErr_SetString(PyExc_TypeError,"null reference");
25030 SWIG_fail;
25031 }
25032 }
25033 {
25034 PyThreadState* __tstate = wxPyBeginAllowThreads();
25035 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25036
25037 wxPyEndAllowThreads(__tstate);
25038 if (PyErr_Occurred()) SWIG_fail;
25039 }
25040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25041 return resultobj;
25042 fail:
25043 return NULL;
25044 }
25045
25046
25047 static PyObject *_wrap_CustomDataObject_TakeData(PyObject *self, PyObject *args, PyObject *kwargs) {
25048 PyObject *resultobj;
25049 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25050 PyObject *arg2 = (PyObject *) 0 ;
25051 PyObject * obj0 = 0 ;
25052 PyObject * obj1 = 0 ;
25053 char *kwnames[] = {
25054 (char *) "self",(char *) "data", NULL
25055 };
25056
25057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_TakeData",kwnames,&obj0,&obj1)) goto fail;
25058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25060 arg2 = obj1;
25061 {
25062 PyThreadState* __tstate = wxPyBeginAllowThreads();
25063 wxCustomDataObject_TakeData(arg1,arg2);
25064
25065 wxPyEndAllowThreads(__tstate);
25066 if (PyErr_Occurred()) SWIG_fail;
25067 }
25068 Py_INCREF(Py_None); resultobj = Py_None;
25069 return resultobj;
25070 fail:
25071 return NULL;
25072 }
25073
25074
25075 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25076 PyObject *resultobj;
25077 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25078 PyObject *arg2 = (PyObject *) 0 ;
25079 bool result;
25080 PyObject * obj0 = 0 ;
25081 PyObject * obj1 = 0 ;
25082 char *kwnames[] = {
25083 (char *) "self",(char *) "data", NULL
25084 };
25085
25086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25089 arg2 = obj1;
25090 {
25091 PyThreadState* __tstate = wxPyBeginAllowThreads();
25092 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25093
25094 wxPyEndAllowThreads(__tstate);
25095 if (PyErr_Occurred()) SWIG_fail;
25096 }
25097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25098 return resultobj;
25099 fail:
25100 return NULL;
25101 }
25102
25103
25104 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25105 PyObject *resultobj;
25106 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25107 size_t result;
25108 PyObject * obj0 = 0 ;
25109 char *kwnames[] = {
25110 (char *) "self", NULL
25111 };
25112
25113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25116 {
25117 PyThreadState* __tstate = wxPyBeginAllowThreads();
25118 result = (size_t)(arg1)->GetSize();
25119
25120 wxPyEndAllowThreads(__tstate);
25121 if (PyErr_Occurred()) SWIG_fail;
25122 }
25123 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25124 return resultobj;
25125 fail:
25126 return NULL;
25127 }
25128
25129
25130 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25131 PyObject *resultobj;
25132 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25133 PyObject *result;
25134 PyObject * obj0 = 0 ;
25135 char *kwnames[] = {
25136 (char *) "self", NULL
25137 };
25138
25139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25142 {
25143 PyThreadState* __tstate = wxPyBeginAllowThreads();
25144 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25145
25146 wxPyEndAllowThreads(__tstate);
25147 if (PyErr_Occurred()) SWIG_fail;
25148 }
25149 resultobj = result;
25150 return resultobj;
25151 fail:
25152 return NULL;
25153 }
25154
25155
25156 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25157 PyObject *obj;
25158 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25159 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25160 Py_INCREF(obj);
25161 return Py_BuildValue((char *)"");
25162 }
25163 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25164 PyObject *resultobj;
25165 wxURLDataObject *result;
25166 char *kwnames[] = {
25167 NULL
25168 };
25169
25170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25171 {
25172 PyThreadState* __tstate = wxPyBeginAllowThreads();
25173 result = (wxURLDataObject *)new wxURLDataObject();
25174
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25179 return resultobj;
25180 fail:
25181 return NULL;
25182 }
25183
25184
25185 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25186 PyObject *resultobj;
25187 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25188 wxString result;
25189 PyObject * obj0 = 0 ;
25190 char *kwnames[] = {
25191 (char *) "self", NULL
25192 };
25193
25194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25197 {
25198 PyThreadState* __tstate = wxPyBeginAllowThreads();
25199 result = (arg1)->GetURL();
25200
25201 wxPyEndAllowThreads(__tstate);
25202 if (PyErr_Occurred()) SWIG_fail;
25203 }
25204 {
25205 #if wxUSE_UNICODE
25206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25207 #else
25208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25209 #endif
25210 }
25211 return resultobj;
25212 fail:
25213 return NULL;
25214 }
25215
25216
25217 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25218 PyObject *resultobj;
25219 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25220 wxString *arg2 = 0 ;
25221 bool temp2 = False ;
25222 PyObject * obj0 = 0 ;
25223 PyObject * obj1 = 0 ;
25224 char *kwnames[] = {
25225 (char *) "self",(char *) "url", NULL
25226 };
25227
25228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25231 {
25232 arg2 = wxString_in_helper(obj1);
25233 if (arg2 == NULL) SWIG_fail;
25234 temp2 = True;
25235 }
25236 {
25237 PyThreadState* __tstate = wxPyBeginAllowThreads();
25238 (arg1)->SetURL((wxString const &)*arg2);
25239
25240 wxPyEndAllowThreads(__tstate);
25241 if (PyErr_Occurred()) SWIG_fail;
25242 }
25243 Py_INCREF(Py_None); resultobj = Py_None;
25244 {
25245 if (temp2)
25246 delete arg2;
25247 }
25248 return resultobj;
25249 fail:
25250 {
25251 if (temp2)
25252 delete arg2;
25253 }
25254 return NULL;
25255 }
25256
25257
25258 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25259 PyObject *obj;
25260 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25261 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25262 Py_INCREF(obj);
25263 return Py_BuildValue((char *)"");
25264 }
25265 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25266 PyObject *resultobj;
25267 wxMetafileDataObject *result;
25268 char *kwnames[] = {
25269 NULL
25270 };
25271
25272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25273 {
25274 PyThreadState* __tstate = wxPyBeginAllowThreads();
25275 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25276
25277 wxPyEndAllowThreads(__tstate);
25278 if (PyErr_Occurred()) SWIG_fail;
25279 }
25280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25281 return resultobj;
25282 fail:
25283 return NULL;
25284 }
25285
25286
25287 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25288 PyObject *resultobj;
25289 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25290 wxMetafile *arg2 = 0 ;
25291 PyObject * obj0 = 0 ;
25292 PyObject * obj1 = 0 ;
25293 char *kwnames[] = {
25294 (char *) "self",(char *) "metafile", NULL
25295 };
25296
25297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25300 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25301 SWIG_POINTER_EXCEPTION | 0)) == -1)
25302 SWIG_fail;
25303 if (arg2 == NULL) {
25304 PyErr_SetString(PyExc_TypeError,"null reference");
25305 SWIG_fail;
25306 }
25307 {
25308 PyThreadState* __tstate = wxPyBeginAllowThreads();
25309 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25310
25311 wxPyEndAllowThreads(__tstate);
25312 if (PyErr_Occurred()) SWIG_fail;
25313 }
25314 Py_INCREF(Py_None); resultobj = Py_None;
25315 return resultobj;
25316 fail:
25317 return NULL;
25318 }
25319
25320
25321 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25322 PyObject *resultobj;
25323 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25324 wxMetafile result;
25325 PyObject * obj0 = 0 ;
25326 char *kwnames[] = {
25327 (char *) "self", NULL
25328 };
25329
25330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25333 {
25334 PyThreadState* __tstate = wxPyBeginAllowThreads();
25335 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25336
25337 wxPyEndAllowThreads(__tstate);
25338 if (PyErr_Occurred()) SWIG_fail;
25339 }
25340 {
25341 wxMetafile * resultptr;
25342 resultptr = new wxMetafile((wxMetafile &) result);
25343 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25344 }
25345 return resultobj;
25346 fail:
25347 return NULL;
25348 }
25349
25350
25351 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25352 PyObject *obj;
25353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25354 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25355 Py_INCREF(obj);
25356 return Py_BuildValue((char *)"");
25357 }
25358 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25359 PyObject *resultobj;
25360 int arg1 ;
25361 bool result;
25362 PyObject * obj0 = 0 ;
25363 char *kwnames[] = {
25364 (char *) "res", NULL
25365 };
25366
25367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25368 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25369 if (PyErr_Occurred()) SWIG_fail;
25370 {
25371 PyThreadState* __tstate = wxPyBeginAllowThreads();
25372 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25373
25374 wxPyEndAllowThreads(__tstate);
25375 if (PyErr_Occurred()) SWIG_fail;
25376 }
25377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25378 return resultobj;
25379 fail:
25380 return NULL;
25381 }
25382
25383
25384 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25385 PyObject *resultobj;
25386 wxWindow *arg1 = (wxWindow *) 0 ;
25387 wxCursor const &arg2_defvalue = wxNullCursor ;
25388 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25389 wxCursor const &arg3_defvalue = wxNullCursor ;
25390 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25391 wxCursor const &arg4_defvalue = wxNullCursor ;
25392 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25393 wxPyDropSource *result;
25394 PyObject * obj0 = 0 ;
25395 PyObject * obj1 = 0 ;
25396 PyObject * obj2 = 0 ;
25397 PyObject * obj3 = 0 ;
25398 char *kwnames[] = {
25399 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25400 };
25401
25402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25405 if (obj1) {
25406 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25407 SWIG_POINTER_EXCEPTION | 0)) == -1)
25408 SWIG_fail;
25409 if (arg2 == NULL) {
25410 PyErr_SetString(PyExc_TypeError,"null reference");
25411 SWIG_fail;
25412 }
25413 }
25414 if (obj2) {
25415 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25416 SWIG_POINTER_EXCEPTION | 0)) == -1)
25417 SWIG_fail;
25418 if (arg3 == NULL) {
25419 PyErr_SetString(PyExc_TypeError,"null reference");
25420 SWIG_fail;
25421 }
25422 }
25423 if (obj3) {
25424 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25425 SWIG_POINTER_EXCEPTION | 0)) == -1)
25426 SWIG_fail;
25427 if (arg4 == NULL) {
25428 PyErr_SetString(PyExc_TypeError,"null reference");
25429 SWIG_fail;
25430 }
25431 }
25432 {
25433 PyThreadState* __tstate = wxPyBeginAllowThreads();
25434 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25435
25436 wxPyEndAllowThreads(__tstate);
25437 if (PyErr_Occurred()) SWIG_fail;
25438 }
25439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25440 return resultobj;
25441 fail:
25442 return NULL;
25443 }
25444
25445
25446 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25447 PyObject *resultobj;
25448 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25449 PyObject *arg2 = (PyObject *) 0 ;
25450 PyObject *arg3 = (PyObject *) 0 ;
25451 int arg4 ;
25452 PyObject * obj0 = 0 ;
25453 PyObject * obj1 = 0 ;
25454 PyObject * obj2 = 0 ;
25455 PyObject * obj3 = 0 ;
25456 char *kwnames[] = {
25457 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25458 };
25459
25460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25463 arg2 = obj1;
25464 arg3 = obj2;
25465 arg4 = (int) SWIG_AsInt(obj3);
25466 if (PyErr_Occurred()) SWIG_fail;
25467 {
25468 PyThreadState* __tstate = wxPyBeginAllowThreads();
25469 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25470
25471 wxPyEndAllowThreads(__tstate);
25472 if (PyErr_Occurred()) SWIG_fail;
25473 }
25474 Py_INCREF(Py_None); resultobj = Py_None;
25475 return resultobj;
25476 fail:
25477 return NULL;
25478 }
25479
25480
25481 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25482 PyObject *resultobj;
25483 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25484 PyObject * obj0 = 0 ;
25485 char *kwnames[] = {
25486 (char *) "self", NULL
25487 };
25488
25489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25492 {
25493 PyThreadState* __tstate = wxPyBeginAllowThreads();
25494 delete arg1;
25495
25496 wxPyEndAllowThreads(__tstate);
25497 if (PyErr_Occurred()) SWIG_fail;
25498 }
25499 Py_INCREF(Py_None); resultobj = Py_None;
25500 return resultobj;
25501 fail:
25502 return NULL;
25503 }
25504
25505
25506 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25507 PyObject *resultobj;
25508 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25509 wxDataObject *arg2 = 0 ;
25510 PyObject * obj0 = 0 ;
25511 PyObject * obj1 = 0 ;
25512 char *kwnames[] = {
25513 (char *) "self",(char *) "data", NULL
25514 };
25515
25516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25519 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25520 SWIG_POINTER_EXCEPTION | 0)) == -1)
25521 SWIG_fail;
25522 if (arg2 == NULL) {
25523 PyErr_SetString(PyExc_TypeError,"null reference");
25524 SWIG_fail;
25525 }
25526 {
25527 PyThreadState* __tstate = wxPyBeginAllowThreads();
25528 (arg1)->SetData(*arg2);
25529
25530 wxPyEndAllowThreads(__tstate);
25531 if (PyErr_Occurred()) SWIG_fail;
25532 }
25533 Py_INCREF(Py_None); resultobj = Py_None;
25534 return resultobj;
25535 fail:
25536 return NULL;
25537 }
25538
25539
25540 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25541 PyObject *resultobj;
25542 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25543 wxDataObject *result;
25544 PyObject * obj0 = 0 ;
25545 char *kwnames[] = {
25546 (char *) "self", NULL
25547 };
25548
25549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25552 {
25553 PyThreadState* __tstate = wxPyBeginAllowThreads();
25554 result = (wxDataObject *)(arg1)->GetDataObject();
25555
25556 wxPyEndAllowThreads(__tstate);
25557 if (PyErr_Occurred()) SWIG_fail;
25558 }
25559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25560 return resultobj;
25561 fail:
25562 return NULL;
25563 }
25564
25565
25566 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25567 PyObject *resultobj;
25568 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25569 int arg2 ;
25570 wxCursor *arg3 = 0 ;
25571 PyObject * obj0 = 0 ;
25572 PyObject * obj1 = 0 ;
25573 PyObject * obj2 = 0 ;
25574 char *kwnames[] = {
25575 (char *) "self",(char *) "res",(char *) "cursor", NULL
25576 };
25577
25578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25581 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25582 if (PyErr_Occurred()) SWIG_fail;
25583 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25584 SWIG_POINTER_EXCEPTION | 0)) == -1)
25585 SWIG_fail;
25586 if (arg3 == NULL) {
25587 PyErr_SetString(PyExc_TypeError,"null reference");
25588 SWIG_fail;
25589 }
25590 {
25591 PyThreadState* __tstate = wxPyBeginAllowThreads();
25592 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25593
25594 wxPyEndAllowThreads(__tstate);
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
25597 Py_INCREF(Py_None); resultobj = Py_None;
25598 return resultobj;
25599 fail:
25600 return NULL;
25601 }
25602
25603
25604 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25605 PyObject *resultobj;
25606 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25607 int arg2 = (int) wxDrag_CopyOnly ;
25608 int result;
25609 PyObject * obj0 = 0 ;
25610 PyObject * obj1 = 0 ;
25611 char *kwnames[] = {
25612 (char *) "self",(char *) "flags", NULL
25613 };
25614
25615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25618 if (obj1) {
25619 arg2 = (int) SWIG_AsInt(obj1);
25620 if (PyErr_Occurred()) SWIG_fail;
25621 }
25622 {
25623 PyThreadState* __tstate = wxPyBeginAllowThreads();
25624 result = (int)(arg1)->DoDragDrop(arg2);
25625
25626 wxPyEndAllowThreads(__tstate);
25627 if (PyErr_Occurred()) SWIG_fail;
25628 }
25629 resultobj = SWIG_FromInt((int)result);
25630 return resultobj;
25631 fail:
25632 return NULL;
25633 }
25634
25635
25636 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25637 PyObject *resultobj;
25638 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25639 int arg2 ;
25640 bool result;
25641 PyObject * obj0 = 0 ;
25642 PyObject * obj1 = 0 ;
25643 char *kwnames[] = {
25644 (char *) "self",(char *) "effect", NULL
25645 };
25646
25647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
25648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25650 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25651 if (PyErr_Occurred()) SWIG_fail;
25652 {
25653 PyThreadState* __tstate = wxPyBeginAllowThreads();
25654 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
25655
25656 wxPyEndAllowThreads(__tstate);
25657 if (PyErr_Occurred()) SWIG_fail;
25658 }
25659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25660 return resultobj;
25661 fail:
25662 return NULL;
25663 }
25664
25665
25666 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
25667 PyObject *obj;
25668 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25669 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
25670 Py_INCREF(obj);
25671 return Py_BuildValue((char *)"");
25672 }
25673 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25674 PyObject *resultobj;
25675 wxDataObject *arg1 = (wxDataObject *) NULL ;
25676 wxPyDropTarget *result;
25677 PyObject * obj0 = 0 ;
25678 char *kwnames[] = {
25679 (char *) "dataObject", NULL
25680 };
25681
25682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
25683 if (obj0) {
25684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
25685 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25686 }
25687 {
25688 PyThreadState* __tstate = wxPyBeginAllowThreads();
25689 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
25690
25691 wxPyEndAllowThreads(__tstate);
25692 if (PyErr_Occurred()) SWIG_fail;
25693 }
25694 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
25695 return resultobj;
25696 fail:
25697 return NULL;
25698 }
25699
25700
25701 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25702 PyObject *resultobj;
25703 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25704 PyObject *arg2 = (PyObject *) 0 ;
25705 PyObject *arg3 = (PyObject *) 0 ;
25706 PyObject * obj0 = 0 ;
25707 PyObject * obj1 = 0 ;
25708 PyObject * obj2 = 0 ;
25709 char *kwnames[] = {
25710 (char *) "self",(char *) "self",(char *) "_class", NULL
25711 };
25712
25713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25716 arg2 = obj1;
25717 arg3 = obj2;
25718 {
25719 PyThreadState* __tstate = wxPyBeginAllowThreads();
25720 (arg1)->_setCallbackInfo(arg2,arg3);
25721
25722 wxPyEndAllowThreads(__tstate);
25723 if (PyErr_Occurred()) SWIG_fail;
25724 }
25725 Py_INCREF(Py_None); resultobj = Py_None;
25726 return resultobj;
25727 fail:
25728 return NULL;
25729 }
25730
25731
25732 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25733 PyObject *resultobj;
25734 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25735 PyObject * obj0 = 0 ;
25736 char *kwnames[] = {
25737 (char *) "self", NULL
25738 };
25739
25740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
25741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25743 {
25744 PyThreadState* __tstate = wxPyBeginAllowThreads();
25745 delete arg1;
25746
25747 wxPyEndAllowThreads(__tstate);
25748 if (PyErr_Occurred()) SWIG_fail;
25749 }
25750 Py_INCREF(Py_None); resultobj = Py_None;
25751 return resultobj;
25752 fail:
25753 return NULL;
25754 }
25755
25756
25757 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25758 PyObject *resultobj;
25759 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25760 wxDataObject *result;
25761 PyObject * obj0 = 0 ;
25762 char *kwnames[] = {
25763 (char *) "self", NULL
25764 };
25765
25766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
25767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25769 {
25770 PyThreadState* __tstate = wxPyBeginAllowThreads();
25771 result = (wxDataObject *)(arg1)->GetDataObject();
25772
25773 wxPyEndAllowThreads(__tstate);
25774 if (PyErr_Occurred()) SWIG_fail;
25775 }
25776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25777 return resultobj;
25778 fail:
25779 return NULL;
25780 }
25781
25782
25783 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25784 PyObject *resultobj;
25785 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25786 wxDataObject *arg2 = (wxDataObject *) 0 ;
25787 PyObject * obj0 = 0 ;
25788 PyObject * obj1 = 0 ;
25789 char *kwnames[] = {
25790 (char *) "self",(char *) "dataObject", NULL
25791 };
25792
25793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
25794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25796 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25797 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25798 {
25799 PyThreadState* __tstate = wxPyBeginAllowThreads();
25800 (arg1)->SetDataObject(arg2);
25801
25802 wxPyEndAllowThreads(__tstate);
25803 if (PyErr_Occurred()) SWIG_fail;
25804 }
25805 Py_INCREF(Py_None); resultobj = Py_None;
25806 return resultobj;
25807 fail:
25808 return NULL;
25809 }
25810
25811
25812 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
25813 PyObject *resultobj;
25814 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25815 int arg2 ;
25816 int arg3 ;
25817 int arg4 ;
25818 int result;
25819 PyObject * obj0 = 0 ;
25820 PyObject * obj1 = 0 ;
25821 PyObject * obj2 = 0 ;
25822 PyObject * obj3 = 0 ;
25823 char *kwnames[] = {
25824 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25825 };
25826
25827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25830 arg2 = (int) SWIG_AsInt(obj1);
25831 if (PyErr_Occurred()) SWIG_fail;
25832 arg3 = (int) SWIG_AsInt(obj2);
25833 if (PyErr_Occurred()) SWIG_fail;
25834 arg4 = (wxDragResult) SWIG_AsInt(obj3);
25835 if (PyErr_Occurred()) SWIG_fail;
25836 {
25837 PyThreadState* __tstate = wxPyBeginAllowThreads();
25838 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
25839
25840 wxPyEndAllowThreads(__tstate);
25841 if (PyErr_Occurred()) SWIG_fail;
25842 }
25843 resultobj = SWIG_FromInt((int)result);
25844 return resultobj;
25845 fail:
25846 return NULL;
25847 }
25848
25849
25850 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
25851 PyObject *resultobj;
25852 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25853 int arg2 ;
25854 int arg3 ;
25855 int arg4 ;
25856 int result;
25857 PyObject * obj0 = 0 ;
25858 PyObject * obj1 = 0 ;
25859 PyObject * obj2 = 0 ;
25860 PyObject * obj3 = 0 ;
25861 char *kwnames[] = {
25862 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
25863 };
25864
25865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25868 arg2 = (int) SWIG_AsInt(obj1);
25869 if (PyErr_Occurred()) SWIG_fail;
25870 arg3 = (int) SWIG_AsInt(obj2);
25871 if (PyErr_Occurred()) SWIG_fail;
25872 arg4 = (wxDragResult) SWIG_AsInt(obj3);
25873 if (PyErr_Occurred()) SWIG_fail;
25874 {
25875 PyThreadState* __tstate = wxPyBeginAllowThreads();
25876 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
25877
25878 wxPyEndAllowThreads(__tstate);
25879 if (PyErr_Occurred()) SWIG_fail;
25880 }
25881 resultobj = SWIG_FromInt((int)result);
25882 return resultobj;
25883 fail:
25884 return NULL;
25885 }
25886
25887
25888 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
25889 PyObject *resultobj;
25890 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25891 PyObject * obj0 = 0 ;
25892 char *kwnames[] = {
25893 (char *) "self", NULL
25894 };
25895
25896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
25897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25899 {
25900 PyThreadState* __tstate = wxPyBeginAllowThreads();
25901 (arg1)->base_OnLeave();
25902
25903 wxPyEndAllowThreads(__tstate);
25904 if (PyErr_Occurred()) SWIG_fail;
25905 }
25906 Py_INCREF(Py_None); resultobj = Py_None;
25907 return resultobj;
25908 fail:
25909 return NULL;
25910 }
25911
25912
25913 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25914 PyObject *resultobj;
25915 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25916 int arg2 ;
25917 int arg3 ;
25918 bool result;
25919 PyObject * obj0 = 0 ;
25920 PyObject * obj1 = 0 ;
25921 PyObject * obj2 = 0 ;
25922 char *kwnames[] = {
25923 (char *) "self",(char *) "x",(char *) "y", NULL
25924 };
25925
25926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
25927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25929 arg2 = (int) SWIG_AsInt(obj1);
25930 if (PyErr_Occurred()) SWIG_fail;
25931 arg3 = (int) SWIG_AsInt(obj2);
25932 if (PyErr_Occurred()) SWIG_fail;
25933 {
25934 PyThreadState* __tstate = wxPyBeginAllowThreads();
25935 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
25936
25937 wxPyEndAllowThreads(__tstate);
25938 if (PyErr_Occurred()) SWIG_fail;
25939 }
25940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25941 return resultobj;
25942 fail:
25943 return NULL;
25944 }
25945
25946
25947 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25948 PyObject *resultobj;
25949 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
25950 bool result;
25951 PyObject * obj0 = 0 ;
25952 char *kwnames[] = {
25953 (char *) "self", NULL
25954 };
25955
25956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
25957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
25958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25959 {
25960 PyThreadState* __tstate = wxPyBeginAllowThreads();
25961 result = (bool)(arg1)->GetData();
25962
25963 wxPyEndAllowThreads(__tstate);
25964 if (PyErr_Occurred()) SWIG_fail;
25965 }
25966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25967 return resultobj;
25968 fail:
25969 return NULL;
25970 }
25971
25972
25973 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
25974 PyObject *obj;
25975 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25976 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
25977 Py_INCREF(obj);
25978 return Py_BuildValue((char *)"");
25979 }
25980 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
25981 PyObject *resultobj;
25982 wxPyTextDropTarget *result;
25983 char *kwnames[] = {
25984 NULL
25985 };
25986
25987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
25988 {
25989 PyThreadState* __tstate = wxPyBeginAllowThreads();
25990 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
25991
25992 wxPyEndAllowThreads(__tstate);
25993 if (PyErr_Occurred()) SWIG_fail;
25994 }
25995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
25996 return resultobj;
25997 fail:
25998 return NULL;
25999 }
26000
26001
26002 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26003 PyObject *resultobj;
26004 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26005 PyObject *arg2 = (PyObject *) 0 ;
26006 PyObject *arg3 = (PyObject *) 0 ;
26007 PyObject * obj0 = 0 ;
26008 PyObject * obj1 = 0 ;
26009 PyObject * obj2 = 0 ;
26010 char *kwnames[] = {
26011 (char *) "self",(char *) "self",(char *) "_class", NULL
26012 };
26013
26014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26017 arg2 = obj1;
26018 arg3 = obj2;
26019 {
26020 PyThreadState* __tstate = wxPyBeginAllowThreads();
26021 (arg1)->_setCallbackInfo(arg2,arg3);
26022
26023 wxPyEndAllowThreads(__tstate);
26024 if (PyErr_Occurred()) SWIG_fail;
26025 }
26026 Py_INCREF(Py_None); resultobj = Py_None;
26027 return resultobj;
26028 fail:
26029 return NULL;
26030 }
26031
26032
26033 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26034 PyObject *resultobj;
26035 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26036 int arg2 ;
26037 int arg3 ;
26038 int arg4 ;
26039 int result;
26040 PyObject * obj0 = 0 ;
26041 PyObject * obj1 = 0 ;
26042 PyObject * obj2 = 0 ;
26043 PyObject * obj3 = 0 ;
26044 char *kwnames[] = {
26045 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26046 };
26047
26048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26051 arg2 = (int) SWIG_AsInt(obj1);
26052 if (PyErr_Occurred()) SWIG_fail;
26053 arg3 = (int) SWIG_AsInt(obj2);
26054 if (PyErr_Occurred()) SWIG_fail;
26055 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26056 if (PyErr_Occurred()) SWIG_fail;
26057 {
26058 PyThreadState* __tstate = wxPyBeginAllowThreads();
26059 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26060
26061 wxPyEndAllowThreads(__tstate);
26062 if (PyErr_Occurred()) SWIG_fail;
26063 }
26064 resultobj = SWIG_FromInt((int)result);
26065 return resultobj;
26066 fail:
26067 return NULL;
26068 }
26069
26070
26071 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26072 PyObject *resultobj;
26073 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26074 int arg2 ;
26075 int arg3 ;
26076 int arg4 ;
26077 int result;
26078 PyObject * obj0 = 0 ;
26079 PyObject * obj1 = 0 ;
26080 PyObject * obj2 = 0 ;
26081 PyObject * obj3 = 0 ;
26082 char *kwnames[] = {
26083 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26084 };
26085
26086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26089 arg2 = (int) SWIG_AsInt(obj1);
26090 if (PyErr_Occurred()) SWIG_fail;
26091 arg3 = (int) SWIG_AsInt(obj2);
26092 if (PyErr_Occurred()) SWIG_fail;
26093 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26094 if (PyErr_Occurred()) SWIG_fail;
26095 {
26096 PyThreadState* __tstate = wxPyBeginAllowThreads();
26097 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26098
26099 wxPyEndAllowThreads(__tstate);
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 resultobj = SWIG_FromInt((int)result);
26103 return resultobj;
26104 fail:
26105 return NULL;
26106 }
26107
26108
26109 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26110 PyObject *resultobj;
26111 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26112 PyObject * obj0 = 0 ;
26113 char *kwnames[] = {
26114 (char *) "self", NULL
26115 };
26116
26117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26120 {
26121 PyThreadState* __tstate = wxPyBeginAllowThreads();
26122 (arg1)->base_OnLeave();
26123
26124 wxPyEndAllowThreads(__tstate);
26125 if (PyErr_Occurred()) SWIG_fail;
26126 }
26127 Py_INCREF(Py_None); resultobj = Py_None;
26128 return resultobj;
26129 fail:
26130 return NULL;
26131 }
26132
26133
26134 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26135 PyObject *resultobj;
26136 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26137 int arg2 ;
26138 int arg3 ;
26139 bool result;
26140 PyObject * obj0 = 0 ;
26141 PyObject * obj1 = 0 ;
26142 PyObject * obj2 = 0 ;
26143 char *kwnames[] = {
26144 (char *) "self",(char *) "x",(char *) "y", NULL
26145 };
26146
26147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26150 arg2 = (int) SWIG_AsInt(obj1);
26151 if (PyErr_Occurred()) SWIG_fail;
26152 arg3 = (int) SWIG_AsInt(obj2);
26153 if (PyErr_Occurred()) SWIG_fail;
26154 {
26155 PyThreadState* __tstate = wxPyBeginAllowThreads();
26156 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26157
26158 wxPyEndAllowThreads(__tstate);
26159 if (PyErr_Occurred()) SWIG_fail;
26160 }
26161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26162 return resultobj;
26163 fail:
26164 return NULL;
26165 }
26166
26167
26168 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26169 PyObject *resultobj;
26170 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26171 int arg2 ;
26172 int arg3 ;
26173 int arg4 ;
26174 int result;
26175 PyObject * obj0 = 0 ;
26176 PyObject * obj1 = 0 ;
26177 PyObject * obj2 = 0 ;
26178 PyObject * obj3 = 0 ;
26179 char *kwnames[] = {
26180 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26181 };
26182
26183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26186 arg2 = (int) SWIG_AsInt(obj1);
26187 if (PyErr_Occurred()) SWIG_fail;
26188 arg3 = (int) SWIG_AsInt(obj2);
26189 if (PyErr_Occurred()) SWIG_fail;
26190 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26191 if (PyErr_Occurred()) SWIG_fail;
26192 {
26193 PyThreadState* __tstate = wxPyBeginAllowThreads();
26194 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26195
26196 wxPyEndAllowThreads(__tstate);
26197 if (PyErr_Occurred()) SWIG_fail;
26198 }
26199 resultobj = SWIG_FromInt((int)result);
26200 return resultobj;
26201 fail:
26202 return NULL;
26203 }
26204
26205
26206 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26207 PyObject *obj;
26208 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26209 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26210 Py_INCREF(obj);
26211 return Py_BuildValue((char *)"");
26212 }
26213 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26214 PyObject *resultobj;
26215 wxPyFileDropTarget *result;
26216 char *kwnames[] = {
26217 NULL
26218 };
26219
26220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26221 {
26222 PyThreadState* __tstate = wxPyBeginAllowThreads();
26223 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26224
26225 wxPyEndAllowThreads(__tstate);
26226 if (PyErr_Occurred()) SWIG_fail;
26227 }
26228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26229 return resultobj;
26230 fail:
26231 return NULL;
26232 }
26233
26234
26235 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26236 PyObject *resultobj;
26237 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26238 PyObject *arg2 = (PyObject *) 0 ;
26239 PyObject *arg3 = (PyObject *) 0 ;
26240 PyObject * obj0 = 0 ;
26241 PyObject * obj1 = 0 ;
26242 PyObject * obj2 = 0 ;
26243 char *kwnames[] = {
26244 (char *) "self",(char *) "self",(char *) "_class", NULL
26245 };
26246
26247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26250 arg2 = obj1;
26251 arg3 = obj2;
26252 {
26253 PyThreadState* __tstate = wxPyBeginAllowThreads();
26254 (arg1)->_setCallbackInfo(arg2,arg3);
26255
26256 wxPyEndAllowThreads(__tstate);
26257 if (PyErr_Occurred()) SWIG_fail;
26258 }
26259 Py_INCREF(Py_None); resultobj = Py_None;
26260 return resultobj;
26261 fail:
26262 return NULL;
26263 }
26264
26265
26266 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26267 PyObject *resultobj;
26268 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26269 int arg2 ;
26270 int arg3 ;
26271 int arg4 ;
26272 int result;
26273 PyObject * obj0 = 0 ;
26274 PyObject * obj1 = 0 ;
26275 PyObject * obj2 = 0 ;
26276 PyObject * obj3 = 0 ;
26277 char *kwnames[] = {
26278 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26279 };
26280
26281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26284 arg2 = (int) SWIG_AsInt(obj1);
26285 if (PyErr_Occurred()) SWIG_fail;
26286 arg3 = (int) SWIG_AsInt(obj2);
26287 if (PyErr_Occurred()) SWIG_fail;
26288 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26289 if (PyErr_Occurred()) SWIG_fail;
26290 {
26291 PyThreadState* __tstate = wxPyBeginAllowThreads();
26292 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26293
26294 wxPyEndAllowThreads(__tstate);
26295 if (PyErr_Occurred()) SWIG_fail;
26296 }
26297 resultobj = SWIG_FromInt((int)result);
26298 return resultobj;
26299 fail:
26300 return NULL;
26301 }
26302
26303
26304 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26305 PyObject *resultobj;
26306 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26307 int arg2 ;
26308 int arg3 ;
26309 int arg4 ;
26310 int result;
26311 PyObject * obj0 = 0 ;
26312 PyObject * obj1 = 0 ;
26313 PyObject * obj2 = 0 ;
26314 PyObject * obj3 = 0 ;
26315 char *kwnames[] = {
26316 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26317 };
26318
26319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26322 arg2 = (int) SWIG_AsInt(obj1);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 arg3 = (int) SWIG_AsInt(obj2);
26325 if (PyErr_Occurred()) SWIG_fail;
26326 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26327 if (PyErr_Occurred()) SWIG_fail;
26328 {
26329 PyThreadState* __tstate = wxPyBeginAllowThreads();
26330 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26331
26332 wxPyEndAllowThreads(__tstate);
26333 if (PyErr_Occurred()) SWIG_fail;
26334 }
26335 resultobj = SWIG_FromInt((int)result);
26336 return resultobj;
26337 fail:
26338 return NULL;
26339 }
26340
26341
26342 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26343 PyObject *resultobj;
26344 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26345 PyObject * obj0 = 0 ;
26346 char *kwnames[] = {
26347 (char *) "self", NULL
26348 };
26349
26350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26353 {
26354 PyThreadState* __tstate = wxPyBeginAllowThreads();
26355 (arg1)->base_OnLeave();
26356
26357 wxPyEndAllowThreads(__tstate);
26358 if (PyErr_Occurred()) SWIG_fail;
26359 }
26360 Py_INCREF(Py_None); resultobj = Py_None;
26361 return resultobj;
26362 fail:
26363 return NULL;
26364 }
26365
26366
26367 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26368 PyObject *resultobj;
26369 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26370 int arg2 ;
26371 int arg3 ;
26372 bool result;
26373 PyObject * obj0 = 0 ;
26374 PyObject * obj1 = 0 ;
26375 PyObject * obj2 = 0 ;
26376 char *kwnames[] = {
26377 (char *) "self",(char *) "x",(char *) "y", NULL
26378 };
26379
26380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26383 arg2 = (int) SWIG_AsInt(obj1);
26384 if (PyErr_Occurred()) SWIG_fail;
26385 arg3 = (int) SWIG_AsInt(obj2);
26386 if (PyErr_Occurred()) SWIG_fail;
26387 {
26388 PyThreadState* __tstate = wxPyBeginAllowThreads();
26389 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26390
26391 wxPyEndAllowThreads(__tstate);
26392 if (PyErr_Occurred()) SWIG_fail;
26393 }
26394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26395 return resultobj;
26396 fail:
26397 return NULL;
26398 }
26399
26400
26401 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26402 PyObject *resultobj;
26403 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26404 int arg2 ;
26405 int arg3 ;
26406 int arg4 ;
26407 int result;
26408 PyObject * obj0 = 0 ;
26409 PyObject * obj1 = 0 ;
26410 PyObject * obj2 = 0 ;
26411 PyObject * obj3 = 0 ;
26412 char *kwnames[] = {
26413 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26414 };
26415
26416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26419 arg2 = (int) SWIG_AsInt(obj1);
26420 if (PyErr_Occurred()) SWIG_fail;
26421 arg3 = (int) SWIG_AsInt(obj2);
26422 if (PyErr_Occurred()) SWIG_fail;
26423 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26424 if (PyErr_Occurred()) SWIG_fail;
26425 {
26426 PyThreadState* __tstate = wxPyBeginAllowThreads();
26427 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26428
26429 wxPyEndAllowThreads(__tstate);
26430 if (PyErr_Occurred()) SWIG_fail;
26431 }
26432 resultobj = SWIG_FromInt((int)result);
26433 return resultobj;
26434 fail:
26435 return NULL;
26436 }
26437
26438
26439 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26440 PyObject *obj;
26441 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26442 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26443 Py_INCREF(obj);
26444 return Py_BuildValue((char *)"");
26445 }
26446 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26447 PyObject *resultobj;
26448 wxClipboard *result;
26449 char *kwnames[] = {
26450 NULL
26451 };
26452
26453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26454 {
26455 PyThreadState* __tstate = wxPyBeginAllowThreads();
26456 result = (wxClipboard *)new wxClipboard();
26457
26458 wxPyEndAllowThreads(__tstate);
26459 if (PyErr_Occurred()) SWIG_fail;
26460 }
26461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26462 return resultobj;
26463 fail:
26464 return NULL;
26465 }
26466
26467
26468 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26469 PyObject *resultobj;
26470 wxClipboard *arg1 = (wxClipboard *) 0 ;
26471 PyObject * obj0 = 0 ;
26472 char *kwnames[] = {
26473 (char *) "self", NULL
26474 };
26475
26476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26479 {
26480 PyThreadState* __tstate = wxPyBeginAllowThreads();
26481 delete arg1;
26482
26483 wxPyEndAllowThreads(__tstate);
26484 if (PyErr_Occurred()) SWIG_fail;
26485 }
26486 Py_INCREF(Py_None); resultobj = Py_None;
26487 return resultobj;
26488 fail:
26489 return NULL;
26490 }
26491
26492
26493 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26494 PyObject *resultobj;
26495 wxClipboard *arg1 = (wxClipboard *) 0 ;
26496 bool result;
26497 PyObject * obj0 = 0 ;
26498 char *kwnames[] = {
26499 (char *) "self", NULL
26500 };
26501
26502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26505 {
26506 PyThreadState* __tstate = wxPyBeginAllowThreads();
26507 result = (bool)(arg1)->Open();
26508
26509 wxPyEndAllowThreads(__tstate);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 }
26512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26513 return resultobj;
26514 fail:
26515 return NULL;
26516 }
26517
26518
26519 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26520 PyObject *resultobj;
26521 wxClipboard *arg1 = (wxClipboard *) 0 ;
26522 PyObject * obj0 = 0 ;
26523 char *kwnames[] = {
26524 (char *) "self", NULL
26525 };
26526
26527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26530 {
26531 PyThreadState* __tstate = wxPyBeginAllowThreads();
26532 (arg1)->Close();
26533
26534 wxPyEndAllowThreads(__tstate);
26535 if (PyErr_Occurred()) SWIG_fail;
26536 }
26537 Py_INCREF(Py_None); resultobj = Py_None;
26538 return resultobj;
26539 fail:
26540 return NULL;
26541 }
26542
26543
26544 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26545 PyObject *resultobj;
26546 wxClipboard *arg1 = (wxClipboard *) 0 ;
26547 bool result;
26548 PyObject * obj0 = 0 ;
26549 char *kwnames[] = {
26550 (char *) "self", NULL
26551 };
26552
26553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26556 {
26557 PyThreadState* __tstate = wxPyBeginAllowThreads();
26558 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26559
26560 wxPyEndAllowThreads(__tstate);
26561 if (PyErr_Occurred()) SWIG_fail;
26562 }
26563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26564 return resultobj;
26565 fail:
26566 return NULL;
26567 }
26568
26569
26570 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26571 PyObject *resultobj;
26572 wxClipboard *arg1 = (wxClipboard *) 0 ;
26573 wxDataObject *arg2 = (wxDataObject *) 0 ;
26574 bool result;
26575 PyObject * obj0 = 0 ;
26576 PyObject * obj1 = 0 ;
26577 char *kwnames[] = {
26578 (char *) "self",(char *) "data", NULL
26579 };
26580
26581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26584 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26585 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26586 {
26587 PyThreadState* __tstate = wxPyBeginAllowThreads();
26588 result = (bool)(arg1)->AddData(arg2);
26589
26590 wxPyEndAllowThreads(__tstate);
26591 if (PyErr_Occurred()) SWIG_fail;
26592 }
26593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26594 return resultobj;
26595 fail:
26596 return NULL;
26597 }
26598
26599
26600 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26601 PyObject *resultobj;
26602 wxClipboard *arg1 = (wxClipboard *) 0 ;
26603 wxDataObject *arg2 = (wxDataObject *) 0 ;
26604 bool result;
26605 PyObject * obj0 = 0 ;
26606 PyObject * obj1 = 0 ;
26607 char *kwnames[] = {
26608 (char *) "self",(char *) "data", NULL
26609 };
26610
26611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26614 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26615 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26616 {
26617 PyThreadState* __tstate = wxPyBeginAllowThreads();
26618 result = (bool)(arg1)->SetData(arg2);
26619
26620 wxPyEndAllowThreads(__tstate);
26621 if (PyErr_Occurred()) SWIG_fail;
26622 }
26623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26624 return resultobj;
26625 fail:
26626 return NULL;
26627 }
26628
26629
26630 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
26631 PyObject *resultobj;
26632 wxClipboard *arg1 = (wxClipboard *) 0 ;
26633 wxDataFormat *arg2 = 0 ;
26634 bool result;
26635 PyObject * obj0 = 0 ;
26636 PyObject * obj1 = 0 ;
26637 char *kwnames[] = {
26638 (char *) "self",(char *) "format", NULL
26639 };
26640
26641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
26642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26644 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
26645 SWIG_POINTER_EXCEPTION | 0)) == -1)
26646 SWIG_fail;
26647 if (arg2 == NULL) {
26648 PyErr_SetString(PyExc_TypeError,"null reference");
26649 SWIG_fail;
26650 }
26651 {
26652 PyThreadState* __tstate = wxPyBeginAllowThreads();
26653 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
26654
26655 wxPyEndAllowThreads(__tstate);
26656 if (PyErr_Occurred()) SWIG_fail;
26657 }
26658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26659 return resultobj;
26660 fail:
26661 return NULL;
26662 }
26663
26664
26665 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26666 PyObject *resultobj;
26667 wxClipboard *arg1 = (wxClipboard *) 0 ;
26668 wxDataObject *arg2 = 0 ;
26669 bool result;
26670 PyObject * obj0 = 0 ;
26671 PyObject * obj1 = 0 ;
26672 char *kwnames[] = {
26673 (char *) "self",(char *) "data", NULL
26674 };
26675
26676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
26677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26680 SWIG_POINTER_EXCEPTION | 0)) == -1)
26681 SWIG_fail;
26682 if (arg2 == NULL) {
26683 PyErr_SetString(PyExc_TypeError,"null reference");
26684 SWIG_fail;
26685 }
26686 {
26687 PyThreadState* __tstate = wxPyBeginAllowThreads();
26688 result = (bool)(arg1)->GetData(*arg2);
26689
26690 wxPyEndAllowThreads(__tstate);
26691 if (PyErr_Occurred()) SWIG_fail;
26692 }
26693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26694 return resultobj;
26695 fail:
26696 return NULL;
26697 }
26698
26699
26700 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
26701 PyObject *resultobj;
26702 wxClipboard *arg1 = (wxClipboard *) 0 ;
26703 PyObject * obj0 = 0 ;
26704 char *kwnames[] = {
26705 (char *) "self", NULL
26706 };
26707
26708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
26709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26711 {
26712 PyThreadState* __tstate = wxPyBeginAllowThreads();
26713 (arg1)->Clear();
26714
26715 wxPyEndAllowThreads(__tstate);
26716 if (PyErr_Occurred()) SWIG_fail;
26717 }
26718 Py_INCREF(Py_None); resultobj = Py_None;
26719 return resultobj;
26720 fail:
26721 return NULL;
26722 }
26723
26724
26725 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
26726 PyObject *resultobj;
26727 wxClipboard *arg1 = (wxClipboard *) 0 ;
26728 bool result;
26729 PyObject * obj0 = 0 ;
26730 char *kwnames[] = {
26731 (char *) "self", NULL
26732 };
26733
26734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
26735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26737 {
26738 PyThreadState* __tstate = wxPyBeginAllowThreads();
26739 result = (bool)(arg1)->Flush();
26740
26741 wxPyEndAllowThreads(__tstate);
26742 if (PyErr_Occurred()) SWIG_fail;
26743 }
26744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26745 return resultobj;
26746 fail:
26747 return NULL;
26748 }
26749
26750
26751 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
26752 PyObject *resultobj;
26753 wxClipboard *arg1 = (wxClipboard *) 0 ;
26754 bool arg2 = (bool) True ;
26755 PyObject * obj0 = 0 ;
26756 PyObject * obj1 = 0 ;
26757 char *kwnames[] = {
26758 (char *) "self",(char *) "primary", NULL
26759 };
26760
26761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
26762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26764 if (obj1) {
26765 arg2 = (bool) SWIG_AsBool(obj1);
26766 if (PyErr_Occurred()) SWIG_fail;
26767 }
26768 {
26769 PyThreadState* __tstate = wxPyBeginAllowThreads();
26770 (arg1)->UsePrimarySelection(arg2);
26771
26772 wxPyEndAllowThreads(__tstate);
26773 if (PyErr_Occurred()) SWIG_fail;
26774 }
26775 Py_INCREF(Py_None); resultobj = Py_None;
26776 return resultobj;
26777 fail:
26778 return NULL;
26779 }
26780
26781
26782 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
26783 PyObject *obj;
26784 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26785 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
26786 Py_INCREF(obj);
26787 return Py_BuildValue((char *)"");
26788 }
26789 static int _wrap_TheClipboard_set(PyObject *_val) {
26790 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
26791 return 1;
26792 }
26793
26794
26795 static PyObject *_wrap_TheClipboard_get() {
26796 PyObject *pyobj;
26797
26798 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
26799 return pyobj;
26800 }
26801
26802
26803 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
26804 PyObject *resultobj;
26805 wxClipboard *arg1 = (wxClipboard *) NULL ;
26806 wxClipboardLocker *result;
26807 PyObject * obj0 = 0 ;
26808 char *kwnames[] = {
26809 (char *) "clipboard", NULL
26810 };
26811
26812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
26813 if (obj0) {
26814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26816 }
26817 {
26818 PyThreadState* __tstate = wxPyBeginAllowThreads();
26819 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
26820
26821 wxPyEndAllowThreads(__tstate);
26822 if (PyErr_Occurred()) SWIG_fail;
26823 }
26824 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
26825 return resultobj;
26826 fail:
26827 return NULL;
26828 }
26829
26830
26831 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
26832 PyObject *resultobj;
26833 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
26834 PyObject * obj0 = 0 ;
26835 char *kwnames[] = {
26836 (char *) "self", NULL
26837 };
26838
26839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
26840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
26841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26842 {
26843 PyThreadState* __tstate = wxPyBeginAllowThreads();
26844 delete arg1;
26845
26846 wxPyEndAllowThreads(__tstate);
26847 if (PyErr_Occurred()) SWIG_fail;
26848 }
26849 Py_INCREF(Py_None); resultobj = Py_None;
26850 return resultobj;
26851 fail:
26852 return NULL;
26853 }
26854
26855
26856 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
26857 PyObject *resultobj;
26858 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
26859 bool result;
26860 PyObject * obj0 = 0 ;
26861 char *kwnames[] = {
26862 (char *) "self", NULL
26863 };
26864
26865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
26866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
26867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26868 {
26869 PyThreadState* __tstate = wxPyBeginAllowThreads();
26870 result = (bool)wxClipboardLocker___nonzero__(arg1);
26871
26872 wxPyEndAllowThreads(__tstate);
26873 if (PyErr_Occurred()) SWIG_fail;
26874 }
26875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26876 return resultobj;
26877 fail:
26878 return NULL;
26879 }
26880
26881
26882 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
26883 PyObject *obj;
26884 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26885 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
26886 Py_INCREF(obj);
26887 return Py_BuildValue((char *)"");
26888 }
26889 static PyMethodDef SwigMethods[] = {
26890 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
26891 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
26892 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
26893 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
26894 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
26895 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
26896 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
26897 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
26898 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
26899 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
26900 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
26901 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
26902 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
26903 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
26904 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
26905 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
26906 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
26907 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
26908 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
26909 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
26910 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
26911 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
26912 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
26913 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
26914 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
26915 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
26916 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
26917 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
26918 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
26919 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
26920 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
26921 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
26922 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
26923 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
26924 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
26925 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
26926 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
26927 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
26928 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
26929 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
26930 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
26931 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
26932 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
26933 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
26934 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
26935 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
26936 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
26937 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
26938 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
26939 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
26940 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
26941 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
26942 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
26943 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
26944 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
26945 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
26946 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
26947 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
26948 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
26949 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
26950 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
26951 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
26952 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
26953 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
26954 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
26955 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
26956 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
26957 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
26958 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
26959 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
26960 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
26961 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
26962 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
26963 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
26964 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
26965 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
26966 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
26967 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
26968 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
26969 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
26970 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
26971 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
26972 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
26973 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
26974 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
26975 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
26976 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
26977 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
26978 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
26979 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
26980 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
26981 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
26982 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
26983 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
26984 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
26985 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
26986 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
26987 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
26988 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
26989 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
26990 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
26991 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
26992 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
26993 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
26994 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
26995 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
26996 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
26997 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
26998 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
26999 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
27000 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
27001 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
27002 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
27003 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
27004 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
27005 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
27006 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
27007 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
27008 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
27009 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
27010 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
27011 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
27012 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
27013 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
27014 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
27015 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
27016 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
27017 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
27018 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
27019 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
27020 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
27021 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
27022 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
27023 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
27024 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
27025 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
27026 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
27027 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
27028 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
27029 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
27030 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
27031 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
27032 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27033 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
27034 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
27035 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
27036 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
27037 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
27038 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27039 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
27040 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
27041 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
27042 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
27043 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
27044 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
27045 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
27046 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
27047 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
27048 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
27049 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
27050 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
27051 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
27052 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
27053 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
27054 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
27055 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
27056 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
27057 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
27058 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
27059 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
27060 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
27061 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
27062 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
27063 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
27064 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
27065 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
27066 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
27067 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
27068 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
27069 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
27070 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
27071 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
27072 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
27073 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
27074 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
27075 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
27076 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
27077 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
27078 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
27079 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
27080 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
27081 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
27082 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
27083 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
27084 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
27085 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
27086 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
27087 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
27088 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
27089 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
27090 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
27091 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
27092 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
27093 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
27094 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
27095 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
27096 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
27097 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
27098 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
27099 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
27100 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
27101 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
27102 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
27103 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
27104 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
27105 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
27106 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
27107 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
27108 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
27109 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
27110 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
27111 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
27112 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
27113 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
27114 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
27115 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
27116 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
27117 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
27118 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
27119 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27120 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
27121 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
27122 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
27123 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
27124 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
27125 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27126 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
27127 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
27128 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
27129 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
27130 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
27131 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
27132 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
27133 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
27134 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
27135 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
27136 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
27137 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
27138 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
27139 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
27140 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
27141 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
27142 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
27143 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
27144 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
27145 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
27146 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
27147 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
27148 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
27149 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
27150 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
27151 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
27152 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
27153 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
27154 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
27155 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
27156 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
27157 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
27158 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
27159 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
27160 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
27161 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
27162 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
27163 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
27164 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
27165 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
27166 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
27167 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
27168 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
27169 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
27170 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
27171 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
27172 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
27173 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
27174 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
27175 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
27176 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
27177 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
27178 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
27179 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
27180 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
27181 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
27182 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
27183 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
27184 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
27185 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
27186 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
27187 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
27188 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
27189 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
27190 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
27191 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
27192 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
27193 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
27194 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
27195 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
27196 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
27197 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
27198 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
27199 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
27200 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
27201 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
27202 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
27203 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
27204 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
27205 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
27206 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
27207 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
27208 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
27209 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
27210 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
27211 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
27212 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
27213 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
27214 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
27215 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
27216 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
27217 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
27218 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
27219 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
27220 { (char *)"new_Sound", _wrap_new_Sound, METH_VARARGS },
27221 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
27222 { (char *)"Sound_Create", _wrap_Sound_Create, METH_VARARGS },
27223 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
27224 { (char *)"Sound_Play", _wrap_Sound_Play, METH_VARARGS },
27225 { (char *)"Sound_PlaySound", _wrap_Sound_PlaySound, METH_VARARGS },
27226 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
27227 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
27228 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
27229 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
27230 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
27231 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
27232 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
27233 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
27234 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
27235 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
27236 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
27237 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
27238 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
27239 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
27240 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
27241 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
27242 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
27243 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
27244 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
27245 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
27246 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
27247 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
27248 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
27249 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
27250 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
27251 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
27252 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
27253 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
27254 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
27255 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
27256 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
27257 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
27258 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
27259 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
27260 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
27261 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
27262 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
27263 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
27264 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
27265 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
27266 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
27267 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
27268 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
27269 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
27270 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
27271 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
27272 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
27273 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
27274 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
27275 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27276 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
27277 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
27278 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
27279 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
27280 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
27281 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
27282 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
27283 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
27284 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
27285 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
27286 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
27287 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
27288 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
27289 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
27290 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
27291 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
27292 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
27293 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
27294 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
27295 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
27296 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
27297 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
27298 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
27299 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
27300 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
27301 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
27302 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
27303 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
27304 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
27305 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
27306 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
27307 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
27308 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
27309 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
27310 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
27311 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
27312 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
27313 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
27314 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
27315 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
27316 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
27317 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
27318 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
27319 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
27320 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
27321 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
27322 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
27323 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
27324 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
27325 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
27326 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
27327 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
27328 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
27329 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
27330 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
27331 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
27332 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
27333 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
27334 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
27335 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
27336 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
27337 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
27338 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
27339 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
27340 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
27341 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
27342 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
27343 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
27344 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
27345 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
27346 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
27347 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
27348 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
27349 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
27350 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
27351 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
27352 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
27353 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
27354 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
27355 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
27356 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
27357 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
27358 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
27359 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
27360 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
27361 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
27362 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
27363 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
27364 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
27365 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
27366 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
27367 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
27368 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
27369 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
27370 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
27371 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
27372 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
27373 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
27374 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
27375 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
27376 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
27377 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
27378 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
27379 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
27380 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
27381 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
27382 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
27383 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
27384 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
27385 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
27386 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
27387 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
27388 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
27389 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
27390 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
27391 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
27392 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
27393 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
27394 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
27395 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
27396 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
27397 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
27398 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
27399 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
27400 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
27401 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
27402 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
27403 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
27404 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
27405 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
27406 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
27407 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
27408 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
27409 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
27410 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
27411 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
27412 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
27413 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
27414 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
27415 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
27416 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
27417 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
27418 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
27419 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
27420 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
27421 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
27422 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
27423 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
27424 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
27425 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
27426 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
27427 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
27428 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
27429 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
27430 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
27431 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
27432 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
27433 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
27434 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
27435 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
27436 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
27437 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
27438 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
27439 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
27440 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
27441 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
27442 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
27443 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
27444 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
27445 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
27446 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
27447 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
27448 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
27449 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
27450 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
27451 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
27452 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
27453 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
27454 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
27455 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
27456 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
27457 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
27458 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
27459 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
27460 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
27461 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
27462 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
27463 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
27464 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
27465 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
27466 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
27467 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
27468 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
27469 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
27470 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
27471 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
27472 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
27473 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
27474 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
27475 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
27476 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
27477 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
27478 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
27479 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
27480 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
27481 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
27482 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
27483 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
27484 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
27485 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
27486 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
27487 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
27488 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
27489 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
27490 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
27491 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
27492 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
27493 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
27494 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
27495 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
27496 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
27497 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
27498 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
27499 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
27500 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
27501 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
27502 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
27503 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
27504 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
27505 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
27506 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
27507 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
27508 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
27509 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
27510 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
27511 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
27512 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
27513 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
27514 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
27515 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
27516 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
27517 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
27518 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
27519 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
27520 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
27521 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
27522 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
27523 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
27524 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
27525 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
27526 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
27527 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
27528 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
27529 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
27530 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
27531 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
27532 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
27533 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
27534 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
27535 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
27536 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
27537 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
27538 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
27539 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
27540 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
27541 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
27542 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
27543 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
27544 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
27545 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
27546 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
27547 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
27548 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
27549 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
27550 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
27551 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
27552 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
27553 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
27554 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
27555 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27556 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
27557 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
27558 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
27559 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
27560 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
27561 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
27562 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
27563 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
27564 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
27565 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
27566 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27567 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
27568 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
27569 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
27570 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
27571 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
27572 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
27573 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27574 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
27575 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
27576 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
27577 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
27578 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
27579 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
27580 { (char *)"CustomDataObject_TakeData", (PyCFunction) _wrap_CustomDataObject_TakeData, METH_VARARGS | METH_KEYWORDS },
27581 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
27582 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
27583 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
27584 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
27585 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
27586 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
27587 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
27588 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
27589 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
27590 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
27591 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
27592 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
27593 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
27594 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
27595 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27596 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
27597 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
27598 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
27599 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
27600 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
27601 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
27602 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
27603 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
27604 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27605 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
27606 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
27607 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
27608 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
27609 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
27610 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
27611 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
27612 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
27613 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
27614 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
27615 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27616 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
27617 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
27618 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
27619 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
27620 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
27621 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
27622 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
27623 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
27624 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
27625 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
27626 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
27627 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
27628 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
27629 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
27630 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
27631 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
27632 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
27633 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
27634 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
27635 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
27636 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
27637 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
27638 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
27639 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
27640 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
27641 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
27642 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
27643 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
27644 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
27645 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
27646 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
27647 { NULL, NULL }
27648 };
27649
27650
27651 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
27652
27653 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
27654 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
27655 }
27656 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
27657 return (void *)((wxEvent *) ((wxMenuEvent *) x));
27658 }
27659 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
27660 return (void *)((wxEvent *) ((wxCloseEvent *) x));
27661 }
27662 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
27663 return (void *)((wxEvent *) ((wxMouseEvent *) x));
27664 }
27665 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
27666 return (void *)((wxEvent *) ((wxEraseEvent *) x));
27667 }
27668 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
27669 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
27670 }
27671 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
27672 return (void *)((wxEvent *) ((wxTimerEvent *) x));
27673 }
27674 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
27675 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
27676 }
27677 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
27678 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
27679 }
27680 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
27681 return (void *)((wxEvent *) ((wxPyEvent *) x));
27682 }
27683 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
27684 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
27685 }
27686 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
27687 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
27688 }
27689 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
27690 return (void *)((wxEvent *) ((wxIdleEvent *) x));
27691 }
27692 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
27693 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
27694 }
27695 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
27696 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
27697 }
27698 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
27699 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
27700 }
27701 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
27702 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
27703 }
27704 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
27705 return (void *)((wxEvent *) ((wxActivateEvent *) x));
27706 }
27707 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
27708 return (void *)((wxEvent *) ((wxSizeEvent *) x));
27709 }
27710 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
27711 return (void *)((wxEvent *) ((wxMoveEvent *) x));
27712 }
27713 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
27714 return (void *)((wxEvent *) ((wxPaintEvent *) x));
27715 }
27716 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
27717 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
27718 }
27719 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
27720 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
27721 }
27722 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
27723 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
27724 }
27725 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
27726 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
27727 }
27728 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
27729 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
27730 }
27731 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
27732 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
27733 }
27734 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
27735 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
27736 }
27737 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
27738 return (void *)((wxEvent *) ((wxFocusEvent *) x));
27739 }
27740 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
27741 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
27742 }
27743 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
27744 return (void *)((wxEvent *) ((wxProcessEvent *) x));
27745 }
27746 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
27747 return (void *)((wxEvent *) ((wxShowEvent *) x));
27748 }
27749 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
27750 return (void *)((wxEvent *) ((wxCommandEvent *) x));
27751 }
27752 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
27753 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
27754 }
27755 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
27756 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
27757 }
27758 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
27759 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
27760 }
27761 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
27762 return (void *)((wxEvent *) ((wxKeyEvent *) x));
27763 }
27764 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
27765 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
27766 }
27767 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
27768 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
27769 }
27770 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
27771 return (void *)((wxConfigBase *) ((wxConfig *) x));
27772 }
27773 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
27774 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27775 }
27776 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
27777 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
27778 }
27779 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
27780 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
27781 }
27782 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
27783 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
27784 }
27785 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
27786 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
27787 }
27788 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
27789 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
27790 }
27791 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
27792 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
27793 }
27794 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
27795 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
27796 }
27797 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
27798 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27799 }
27800 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
27801 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
27802 }
27803 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
27804 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
27805 }
27806 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
27807 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
27808 }
27809 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
27810 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
27811 }
27812 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
27813 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
27814 }
27815 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
27816 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
27817 }
27818 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
27819 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
27820 }
27821 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
27822 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
27823 }
27824 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
27825 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
27826 }
27827 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
27828 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
27829 }
27830 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
27831 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
27832 }
27833 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
27834 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
27835 }
27836 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
27837 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
27838 }
27839 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
27840 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
27841 }
27842 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
27843 return (void *)((wxEvtHandler *) ((wxWindow *) x));
27844 }
27845 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
27846 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
27847 }
27848 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
27849 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
27850 }
27851 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
27852 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
27853 }
27854 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
27855 return (void *)((wxEvtHandler *) ((wxValidator *) x));
27856 }
27857 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
27858 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
27859 }
27860 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
27861 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
27862 }
27863 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
27864 return (void *)((wxEvtHandler *) ((wxMenu *) x));
27865 }
27866 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
27867 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
27868 }
27869 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
27870 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
27871 }
27872 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
27873 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
27874 }
27875 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
27876 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
27877 }
27878 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
27879 return (void *)((wxObject *) ((wxSizerItem *) x));
27880 }
27881 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
27882 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
27883 }
27884 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
27885 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
27886 }
27887 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
27888 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
27889 }
27890 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
27891 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
27892 }
27893 static void *_p_wxSizerTo_p_wxObject(void *x) {
27894 return (void *)((wxObject *) ((wxSizer *) x));
27895 }
27896 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
27897 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
27898 }
27899 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
27900 return (void *)((wxObject *) ((wxFileHistory *) x));
27901 }
27902 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
27903 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
27904 }
27905 static void *_p_wxEventTo_p_wxObject(void *x) {
27906 return (void *)((wxObject *) ((wxEvent *) x));
27907 }
27908 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
27909 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
27910 }
27911 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
27912 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
27913 }
27914 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
27915 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
27916 }
27917 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
27918 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
27919 }
27920 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
27921 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
27922 }
27923 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
27924 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
27925 }
27926 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
27927 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
27928 }
27929 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
27930 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
27931 }
27932 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
27933 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
27934 }
27935 static void *_p_wxControlTo_p_wxObject(void *x) {
27936 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
27937 }
27938 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
27939 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
27940 }
27941 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
27942 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
27943 }
27944 static void *_p_wxFSFileTo_p_wxObject(void *x) {
27945 return (void *)((wxObject *) ((wxFSFile *) x));
27946 }
27947 static void *_p_wxClipboardTo_p_wxObject(void *x) {
27948 return (void *)((wxObject *) ((wxClipboard *) x));
27949 }
27950 static void *_p_wxPySizerTo_p_wxObject(void *x) {
27951 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
27952 }
27953 static void *_p_wxPyEventTo_p_wxObject(void *x) {
27954 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
27955 }
27956 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
27957 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
27958 }
27959 static void *_p_wxShowEventTo_p_wxObject(void *x) {
27960 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
27961 }
27962 static void *_p_wxToolTipTo_p_wxObject(void *x) {
27963 return (void *)((wxObject *) ((wxToolTip *) x));
27964 }
27965 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
27966 return (void *)((wxObject *) ((wxMenuItem *) x));
27967 }
27968 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
27969 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
27970 }
27971 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
27972 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
27973 }
27974 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
27975 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
27976 }
27977 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
27978 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
27979 }
27980 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
27981 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
27982 }
27983 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
27984 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
27985 }
27986 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
27987 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
27988 }
27989 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
27990 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
27991 }
27992 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
27993 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
27994 }
27995 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
27996 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
27997 }
27998 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
27999 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
28000 }
28001 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
28002 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
28003 }
28004 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
28005 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
28006 }
28007 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
28008 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
28009 }
28010 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
28011 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
28012 }
28013 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
28014 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
28015 }
28016 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
28017 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
28018 }
28019 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
28020 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
28021 }
28022 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
28023 return (void *)((wxObject *) ((wxImageHandler *) x));
28024 }
28025 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
28026 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
28027 }
28028 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
28029 return (void *)((wxObject *) ((wxEvtHandler *) x));
28030 }
28031 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
28032 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
28033 }
28034 static void *_p_wxImageTo_p_wxObject(void *x) {
28035 return (void *)((wxObject *) ((wxImage *) x));
28036 }
28037 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
28038 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
28039 }
28040 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
28041 return (void *)((wxObject *) ((wxSystemOptions *) x));
28042 }
28043 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
28044 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
28045 }
28046 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
28047 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
28048 }
28049 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
28050 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
28051 }
28052 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
28053 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
28054 }
28055 static void *_p_wxWindowTo_p_wxObject(void *x) {
28056 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
28057 }
28058 static void *_p_wxMenuTo_p_wxObject(void *x) {
28059 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
28060 }
28061 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
28062 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
28063 }
28064 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
28065 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
28066 }
28067 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
28068 return (void *)((wxObject *) ((wxFileSystem *) x));
28069 }
28070 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
28071 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
28072 }
28073 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
28074 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
28075 }
28076 static void *_p_wxPyAppTo_p_wxObject(void *x) {
28077 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
28078 }
28079 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
28080 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
28081 }
28082 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
28083 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
28084 }
28085 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
28086 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
28087 }
28088 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
28089 return (void *)((wxObject *) ((wxBusyInfo *) x));
28090 }
28091 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
28092 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
28093 }
28094 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
28095 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
28096 }
28097 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
28098 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
28099 }
28100 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
28101 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
28102 }
28103 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
28104 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
28105 }
28106 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
28107 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
28108 }
28109 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
28110 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
28111 }
28112 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
28113 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
28114 }
28115 static void *_p_wxValidatorTo_p_wxObject(void *x) {
28116 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
28117 }
28118 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
28119 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
28120 }
28121 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
28122 return (void *)((wxLog *) ((wxLogStderr *) x));
28123 }
28124 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
28125 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
28126 }
28127 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
28128 return (void *)((wxLog *) ((wxLogWindow *) x));
28129 }
28130 static void *_p_wxLogChainTo_p_wxLog(void *x) {
28131 return (void *)((wxLog *) ((wxLogChain *) x));
28132 }
28133 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
28134 return (void *)((wxLog *) ((wxLogGui *) x));
28135 }
28136 static void *_p_wxPyLogTo_p_wxLog(void *x) {
28137 return (void *)((wxLog *) ((wxPyLog *) x));
28138 }
28139 static void *_p_wxControlTo_p_wxWindow(void *x) {
28140 return (void *)((wxWindow *) ((wxControl *) x));
28141 }
28142 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
28143 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
28144 }
28145 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
28146 return (void *)((wxWindow *) ((wxMenuBar *) x));
28147 }
28148 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
28149 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
28150 }
28151 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
28152 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
28153 }
28154 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}};
28155 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}};
28156 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}};
28157 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}};
28158 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}};
28159 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}};
28160 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}};
28161 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}};
28162 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}};
28163 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}};
28164 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}};
28165 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}};
28166 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}};
28167 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}};
28168 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}};
28169 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}};
28170 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}};
28171 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}};
28172 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}};
28173 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}};
28174 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}};
28175 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}};
28176 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}};
28177 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}};
28178 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}};
28179 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}};
28180 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}};
28181 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}};
28182 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}};
28183 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}};
28184 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}};
28185 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}};
28186 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}};
28187 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}};
28188 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}};
28189 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}};
28190 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}};
28191 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}};
28192 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}};
28193 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}};
28194 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}};
28195 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}};
28196 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}};
28197 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}};
28198 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}};
28199 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}};
28200 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}};
28201 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}};
28202 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}};
28203 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}};
28204 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}};
28205 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}};
28206 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}};
28207 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}};
28208 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}};
28209 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}};
28210 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}};
28211 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}};
28212 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}};
28213 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}};
28214 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}};
28215 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}};
28216 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}};
28217 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}};
28218 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}};
28219 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}};
28220 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}};
28221 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}};
28222 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}};
28223 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}};
28224 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}};
28225 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}};
28226 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}};
28227 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}};
28228 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}};
28229 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}};
28230 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}};
28231 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}};
28232 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}};
28233 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}};
28234 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}};
28235 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}};
28236 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}};
28237 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}};
28238 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}};
28239
28240 static swig_type_info *swig_types_initial[] = {
28241 _swigt__p_wxLogChain,
28242 _swigt__p_wxMutexGuiLocker,
28243 _swigt__p_wxMetafile,
28244 _swigt__p_wxFileHistory,
28245 _swigt__p_wxLog,
28246 _swigt__p_wxDateTime__TimeZone,
28247 _swigt__p_wxMenu,
28248 _swigt__p_wxEvent,
28249 _swigt__p_wxConfigBase,
28250 _swigt__p_wxFileType,
28251 _swigt__p_wxLogGui,
28252 _swigt__p_wxFont,
28253 _swigt__p_wxDataFormat,
28254 _swigt__p_wxTimerEvent,
28255 _swigt__p_wxCaret,
28256 _swigt__p_int,
28257 _swigt__p_wxSize,
28258 _swigt__p_wxClipboard,
28259 _swigt__p_wxStopWatch,
28260 _swigt__p_wxDC,
28261 _swigt__p_wxClipboardLocker,
28262 _swigt__p_wxIcon,
28263 _swigt__p_wxLogStderr,
28264 _swigt__p_wxLogTextCtrl,
28265 _swigt__p_wxTextCtrl,
28266 _swigt__p_wxBusyCursor,
28267 _swigt__p_wxPyTextDataObject,
28268 _swigt__p_wxBitmapDataObject,
28269 _swigt__p_wxTextDataObject,
28270 _swigt__p_wxDataObject,
28271 _swigt__p_wxPyBitmapDataObject,
28272 _swigt__p_wxFileDataObject,
28273 _swigt__p_wxCustomDataObject,
28274 _swigt__p_wxURLDataObject,
28275 _swigt__p_wxMetafileDataObject,
28276 _swigt__p_wxSound,
28277 _swigt__p_wxTimerRunner,
28278 _swigt__p_wxLogWindow,
28279 _swigt__p_wxTimeSpan,
28280 _swigt__p_wxArrayString,
28281 _swigt__p_wxWindowDisabler,
28282 _swigt__p_wxToolTip,
28283 _swigt__p_wxDataObjectComposite,
28284 _swigt__p_wxFileConfig,
28285 _swigt__p_wxSystemSettings,
28286 _swigt__p_wxPyDataObjectSimple,
28287 _swigt__p_wxDataObjectSimple,
28288 _swigt__p_wxEvtHandler,
28289 _swigt__p_wxRect,
28290 _swigt__p_char,
28291 _swigt__p_wxSingleInstanceChecker,
28292 _swigt__p_wxFileTypeInfo,
28293 _swigt__p_wxFrame,
28294 _swigt__p_wxTimer,
28295 _swigt__p_wxMimeTypesManager,
28296 _swigt__p_wxPyArtProvider,
28297 _swigt__p_wxPyTipProvider,
28298 _swigt__p_wxTipProvider,
28299 _swigt__p_wxJoystick,
28300 _swigt__p_wxSystemOptions,
28301 _swigt__p_wxPoint,
28302 _swigt__p_wxJoystickEvent,
28303 _swigt__p_wxCursor,
28304 _swigt__p_wxObject,
28305 _swigt__p_wxOutputStream,
28306 _swigt__p_wxDateTime,
28307 _swigt__p_wxPyDropSource,
28308 _swigt__p_wxWindow,
28309 _swigt__p_wxString,
28310 _swigt__p_wxPyProcess,
28311 _swigt__p_wxBitmap,
28312 _swigt__p_wxConfig,
28313 _swigt__p_wxChar,
28314 _swigt__p_wxBusyInfo,
28315 _swigt__p_wxPyDropTarget,
28316 _swigt__p_wxPyTextDropTarget,
28317 _swigt__p_wxPyFileDropTarget,
28318 _swigt__p_wxProcessEvent,
28319 _swigt__p_wxPyLog,
28320 _swigt__p_wxLogNull,
28321 _swigt__p_wxColour,
28322 _swigt__p_wxByte,
28323 _swigt__p_wxConfigPathChanger,
28324 _swigt__p_wxPyTimer,
28325 _swigt__p_wxDateSpan,
28326 0
28327 };
28328
28329
28330 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
28331
28332 static swig_const_info swig_const_table[] = {
28333 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
28334 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
28335 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
28336 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
28337 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
28338 {0}};
28339
28340 #ifdef __cplusplus
28341 }
28342 #endif
28343
28344 #ifdef __cplusplus
28345 extern "C"
28346 #endif
28347 SWIGEXPORT(void) SWIG_init(void) {
28348 static PyObject *SWIG_globals = 0;
28349 static int typeinit = 0;
28350 PyObject *m, *d;
28351 int i;
28352 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
28353 m = Py_InitModule((char *) SWIG_name, SwigMethods);
28354 d = PyModule_GetDict(m);
28355
28356 if (!typeinit) {
28357 for (i = 0; swig_types_initial[i]; i++) {
28358 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
28359 }
28360 typeinit = 1;
28361 }
28362 SWIG_InstallConstants(d,swig_const_table);
28363
28364 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
28365 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
28366 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
28367 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
28368 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
28369 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
28370 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
28371 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
28372 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
28373 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
28374 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
28375 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
28376 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
28377 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
28378 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
28379 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
28380 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
28381 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
28382 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
28383 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
28384 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
28385 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
28386 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
28387 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
28388 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
28389 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
28390 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
28391 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
28392 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
28393 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
28394 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
28395 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
28396 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
28397 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
28398 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
28399 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
28400 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
28401 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
28402 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
28403 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
28404 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
28405 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
28406 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
28407 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
28408 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
28409 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
28410 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
28411 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
28412 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
28413 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
28414 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
28415 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
28416 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
28417 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
28418 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
28419 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
28420 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
28421 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
28422 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
28423 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
28424 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
28425 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
28426 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
28427 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
28428 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
28429 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
28430 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
28431 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
28432 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
28433 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
28434 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
28435 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
28436 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
28437 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
28438 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
28439 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
28440 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
28441 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
28442 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
28443 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
28444 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
28445 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
28446 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
28447 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
28448 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
28449 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
28450 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
28451 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
28452 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
28453 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
28454 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
28455 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
28456 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
28457 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
28458 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
28459 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
28460 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
28461 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
28462 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
28463 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
28464 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
28465 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
28466 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
28467 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
28468 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
28469 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
28470 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
28471 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
28472 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
28473 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
28474 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
28475 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
28476 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
28477 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
28478 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
28479 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
28480 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
28481 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
28482 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
28483 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
28484 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
28485 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
28486 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
28487 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
28488 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
28489 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
28490 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
28491 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
28492 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
28493 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
28494 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
28495 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
28496 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
28497 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
28498 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
28499 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
28500 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
28501 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
28502 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
28503 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
28504 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
28505 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
28506 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
28507 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
28508 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
28509 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
28510 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
28511 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
28512 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
28513 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
28514
28515 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
28516
28517 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
28518 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
28519 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
28520 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
28521 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
28522 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
28523 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
28524 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
28525 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
28526 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
28527 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
28528 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
28529 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
28530 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
28531 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
28532 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
28533 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
28534 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
28535 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
28536 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
28537 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
28538 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
28539 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
28540 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
28541 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
28542 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
28543 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
28544 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
28545 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
28546 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
28547 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
28548 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
28549 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
28550 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
28551 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
28552 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
28553 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
28554 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
28555 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
28556 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
28557 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
28558 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
28559 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
28560 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
28561 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
28562 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
28563 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
28564 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
28565 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
28566 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
28567 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
28568 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
28569 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
28570 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
28571 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
28572 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
28573 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
28574 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
28575
28576 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
28577
28578 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
28579 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
28580 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
28581 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
28582 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
28583 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
28584 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
28585 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
28586 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
28587 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
28588 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
28589 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
28590 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
28591 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
28592 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
28593 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
28594 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
28595 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
28596 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
28597 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
28598 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
28599 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
28600 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
28601 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
28602 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
28603 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
28604 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
28605 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
28606 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
28607 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
28608 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
28609 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
28610 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
28611 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
28612 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
28613 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
28614 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
28615 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
28616 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
28617 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
28618 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
28619 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
28620 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
28621 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
28622 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
28623 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
28624 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
28625 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
28626 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
28627 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
28628 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
28629 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
28630 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
28631 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
28632 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
28633 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
28634 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
28635 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
28636 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
28637 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
28638 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
28639 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
28640 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
28641 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
28642 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
28643 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
28644 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
28645 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
28646 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
28647 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
28648 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
28649 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
28650 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
28651 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
28652 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
28653 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
28654 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
28655 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
28656 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
28657 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
28658 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
28659 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
28660 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
28661 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
28662 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
28663 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
28664 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
28665 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
28666 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
28667 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
28668 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
28669 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
28670 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
28671 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
28672 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
28673 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
28674 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
28675 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
28676 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
28677 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
28678 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
28679 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
28680 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
28681 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
28682 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
28683 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
28684 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
28685 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
28686 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
28687 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
28688 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
28689 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
28690 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
28691 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
28692 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
28693 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
28694 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
28695 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
28696 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
28697 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
28698 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
28699 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
28700 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
28701 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
28702 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
28703 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
28704 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
28705 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
28706 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
28707 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
28708 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
28709 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
28710 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
28711 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
28712 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
28713 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
28714 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
28715 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
28716 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
28717 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
28718 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
28719 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
28720 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
28721 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
28722 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
28723 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
28724 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
28725 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
28726 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
28727 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
28728 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
28729 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
28730 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
28731 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
28732 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
28733 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
28734 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
28735 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
28736 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
28737 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
28738 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
28739 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
28740 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
28741 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
28742 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
28743 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
28744 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
28745 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
28746 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
28747 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
28748 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
28749 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
28750 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
28751 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
28752 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
28753 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
28754 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
28755 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
28756 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
28757 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
28758 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
28759 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
28760 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
28761 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
28762 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
28763 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
28764 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
28765 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
28766 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
28767 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
28768 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
28769 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
28770 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
28771 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
28772 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
28773 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
28774 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
28775 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
28776 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
28777 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
28778
28779 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
28780 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
28781 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
28782 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
28783
28784 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
28785 }
28786