]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_misc_wrap.cpp
gave different accels to different radio items
[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_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53 /***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63 #include <string.h>
64
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
70 # else
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
73 # endif
74 # else
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
78 # else
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
81 # endif
82 # endif
83 #else
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
86 #endif
87
88 #ifdef SWIG_GLOBAL
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 #else
91 # define SWIGRUNTIME(a) static a
92 #endif
93
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109 } swig_type_info;
110
111
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124 #ifdef __cplusplus
125 }
126 #endif
127
128
129 /***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxLogChain swig_types[0]
212 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
213 #define SWIGTYPE_p_wxMetafile swig_types[2]
214 #define SWIGTYPE_p_wxFileHistory swig_types[3]
215 #define SWIGTYPE_p_wxLog swig_types[4]
216 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
217 #define SWIGTYPE_p_wxMenu swig_types[6]
218 #define SWIGTYPE_p_wxEvent swig_types[7]
219 #define SWIGTYPE_p_wxConfigBase swig_types[8]
220 #define SWIGTYPE_p_wxDisplay swig_types[9]
221 #define SWIGTYPE_p_wxFileType swig_types[10]
222 #define SWIGTYPE_p_wxLogGui swig_types[11]
223 #define SWIGTYPE_p_wxFont swig_types[12]
224 #define SWIGTYPE_p_wxDataFormat swig_types[13]
225 #define SWIGTYPE_p_wxTimerEvent swig_types[14]
226 #define SWIGTYPE_p_wxCaret swig_types[15]
227 #define SWIGTYPE_p_int swig_types[16]
228 #define SWIGTYPE_p_wxSize swig_types[17]
229 #define SWIGTYPE_p_wxClipboard swig_types[18]
230 #define SWIGTYPE_p_wxStopWatch swig_types[19]
231 #define SWIGTYPE_p_wxDC swig_types[20]
232 #define SWIGTYPE_p_wxClipboardLocker swig_types[21]
233 #define SWIGTYPE_p_wxIcon swig_types[22]
234 #define SWIGTYPE_p_wxLogStderr swig_types[23]
235 #define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
236 #define SWIGTYPE_p_wxTextCtrl swig_types[25]
237 #define SWIGTYPE_p_wxBusyCursor swig_types[26]
238 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
239 #define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
240 #define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
241 #define SWIGTYPE_p_wxTextDataObject swig_types[30]
242 #define SWIGTYPE_p_wxDataObject swig_types[31]
243 #define SWIGTYPE_p_wxFileDataObject swig_types[32]
244 #define SWIGTYPE_p_wxCustomDataObject swig_types[33]
245 #define SWIGTYPE_p_wxURLDataObject swig_types[34]
246 #define SWIGTYPE_p_wxMetafileDataObject swig_types[35]
247 #define SWIGTYPE_p_wxSound swig_types[36]
248 #define SWIGTYPE_p_wxTimerRunner swig_types[37]
249 #define SWIGTYPE_p_wxLogWindow swig_types[38]
250 #define SWIGTYPE_p_wxTimeSpan swig_types[39]
251 #define SWIGTYPE_p_wxArrayString swig_types[40]
252 #define SWIGTYPE_p_wxWindowDisabler swig_types[41]
253 #define SWIGTYPE_p_wxToolTip swig_types[42]
254 #define SWIGTYPE_p_wxDataObjectComposite swig_types[43]
255 #define SWIGTYPE_p_wxFileConfig swig_types[44]
256 #define SWIGTYPE_p_wxSystemSettings swig_types[45]
257 #define SWIGTYPE_p_wxVideoMode swig_types[46]
258 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47]
259 #define SWIGTYPE_p_wxDataObjectSimple swig_types[48]
260 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
261 #define SWIGTYPE_p_wxRect swig_types[50]
262 #define SWIGTYPE_p_char swig_types[51]
263 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52]
264 #define SWIGTYPE_p_wxStandardPaths swig_types[53]
265 #define SWIGTYPE_p_wxFileTypeInfo swig_types[54]
266 #define SWIGTYPE_p_wxFrame swig_types[55]
267 #define SWIGTYPE_p_wxTimer swig_types[56]
268 #define SWIGTYPE_p_wxMimeTypesManager swig_types[57]
269 #define SWIGTYPE_p_wxPyArtProvider swig_types[58]
270 #define SWIGTYPE_p_wxPyTipProvider swig_types[59]
271 #define SWIGTYPE_p_wxTipProvider swig_types[60]
272 #define SWIGTYPE_p_wxJoystick swig_types[61]
273 #define SWIGTYPE_p_wxSystemOptions swig_types[62]
274 #define SWIGTYPE_p_wxPoint swig_types[63]
275 #define SWIGTYPE_p_wxJoystickEvent swig_types[64]
276 #define SWIGTYPE_p_wxCursor swig_types[65]
277 #define SWIGTYPE_p_wxObject swig_types[66]
278 #define SWIGTYPE_p_wxOutputStream swig_types[67]
279 #define SWIGTYPE_p_wxDateTime swig_types[68]
280 #define SWIGTYPE_p_wxPyDropSource swig_types[69]
281 #define SWIGTYPE_p_wxWindow swig_types[70]
282 #define SWIGTYPE_p_wxString swig_types[71]
283 #define SWIGTYPE_p_wxPyProcess swig_types[72]
284 #define SWIGTYPE_p_wxBitmap swig_types[73]
285 #define SWIGTYPE_p_wxConfig swig_types[74]
286 #define SWIGTYPE_p_wxChar swig_types[75]
287 #define SWIGTYPE_p_wxBusyInfo swig_types[76]
288 #define SWIGTYPE_p_wxPyDropTarget swig_types[77]
289 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[78]
290 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[79]
291 #define SWIGTYPE_p_wxProcessEvent swig_types[80]
292 #define SWIGTYPE_p_wxPyLog swig_types[81]
293 #define SWIGTYPE_p_wxLogNull swig_types[82]
294 #define SWIGTYPE_p_wxColour swig_types[83]
295 #define SWIGTYPE_p_wxConfigPathChanger swig_types[84]
296 #define SWIGTYPE_p_wxPyTimer swig_types[85]
297 #define SWIGTYPE_p_wxDateSpan swig_types[86]
298 static swig_type_info *swig_types[88];
299
300 /* -------- TYPES TABLE (END) -------- */
301
302
303 /*-----------------------------------------------
304 @(target):= _misc_.so
305 ------------------------------------------------*/
306 #define SWIG_init init_misc_
307
308 #define SWIG_name "_misc_"
309
310 /* Auxiliar swig macros that appear in the header */
311
312 #define SWIG_OLDOBJ 1
313 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
314 #define SWIG_PYSTR SWIG_NEWOBJ + 1
315
316 #ifdef __cplusplus
317 #define SWIGSTATICINLINE(a) static inline a
318 #define SWIGSTATIC(a) static a
319 #define swig_new_array(size,Type) (new Type[(size)])
320 #define swig_delete(cptr) delete cptr
321 #define swig_delete_array(cptr) delete[] cptr
322 #define swig_const_cast(a,Type) const_cast<Type >(a)
323 #define swig_static_cast(a,Type) static_cast<Type >(a)
324 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
325 #define swig_new_copy(ptr,Type) (new Type(*ptr))
326 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
327
328 #else /* C case */
329
330 #define SWIGSTATICINLINE(a) static a
331 #define SWIGSTATIC(a) static a
332 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
333 #define swig_delete(cptr) free((char*)cptr)
334 #define swig_delete_array(cptr) free((char*)cptr)
335 #define swig_const_cast(a,Type) (Type)(a)
336 #define swig_static_cast(a,Type) (Type)(a)
337 #define swig_reinterpret_cast(a,Type) (Type)(a)
338 #define swig_numeric_cast(a,Type) (Type)(a)
339 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
340
341 #endif /* __cplusplus */
342
343
344 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
345 #define SWIG_From_signed_SS_char PyInt_FromLong
346 /*@@*/
347 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
348 #define SWIG_From_unsigned_SS_char PyInt_FromLong
349 /*@@*/
350 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
351 #define SWIG_From_short PyInt_FromLong
352 /*@@*/
353 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
354 #define SWIG_From_unsigned_SS_short PyInt_FromLong
355 /*@@*/
356 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
357 #define SWIG_From_int PyInt_FromLong
358 /*@@*/
359 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
360 #define SWIG_From_long PyInt_FromLong
361 /*@@*/
362 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
363 #define SWIG_From_float PyFloat_FromDouble
364 /*@@*/
365 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
366 #define SWIG_From_double PyFloat_FromDouble
367 /*@@*/
368
369
370 #include "wx/wxPython/wxPython.h"
371 #include "wx/wxPython/pyclasses.h"
372 #include "wx/wxPython/pyistream.h"
373
374 static const wxString wxPyEmptyString(wxEmptyString);
375
376
377
378 #include <limits.h>
379
380
381 SWIGSTATICINLINE(int)
382 SWIG_CheckLongInRange(long value, long min_value, long max_value,
383 const char *errmsg)
384 {
385 if (value < min_value) {
386 if (errmsg) {
387 PyErr_Format(PyExc_OverflowError,
388 "value %ld is less than '%s' minimum %ld",
389 value, errmsg, min_value);
390 }
391 return 0;
392 } else if (value > max_value) {
393 if (errmsg) {
394 PyErr_Format(PyExc_OverflowError,
395 "value %ld is greater than '%s' maximum %ld",
396 value, errmsg, max_value);
397 }
398 return 0;
399 }
400 return 1;
401 }
402
403
404 // See my_fragments.i
405 SWIGSTATICINLINE(int)
406 SWIG_AsVal_long(PyObject* obj, long* val)
407 {
408 if (PyNumber_Check(obj)) {
409 if (val) *val = PyInt_AsLong(obj);
410 return 1;
411 }
412 else {
413 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
414 obj->ob_type->tp_name);
415 PyErr_SetObject(PyExc_TypeError, errmsg);
416 Py_DECREF(errmsg);
417 }
418 return 0;
419 }
420
421
422 #if INT_MAX != LONG_MAX
423 SWIGSTATICINLINE(int)
424 SWIG_AsVal_int(PyObject *obj, int *val)
425 {
426 const char* errmsg = val ? "int" : 0;
427 long v;
428 if (SWIG_AsVal_long(obj, &v)) {
429 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
430 if (val) *val = swig_numeric_cast(v, int);
431 return 1;
432 } else {
433 return 0;
434 }
435 } else {
436 PyErr_Clear();
437 }
438 if (val) {
439 PyErr_SetString(PyExc_TypeError, "an int is expected");
440 }
441 return 0;
442 }
443 #else
444 SWIGSTATICINLINE(int)
445 SWIG_AsVal_int(PyObject *obj, int *val)
446 {
447 return SWIG_AsVal_long(obj,(long*)val);
448 }
449 #endif
450
451
452 SWIGSTATICINLINE(int)
453 SWIG_As_int(PyObject* obj)
454 {
455 int v;
456 if (!SWIG_AsVal_int(obj, &v)) {
457 /*
458 this is needed to make valgrind/purify happier. the other
459 solution is throw an exception, but since this code should work
460 with plain C ....
461 */
462 memset((void*)&v, 0, sizeof(int));
463 }
464 return v;
465 }
466
467
468 SWIGSTATICINLINE(int)
469 SWIG_Check_int(PyObject* obj)
470 {
471 return SWIG_AsVal_int(obj, (int*)0);
472 }
473
474 static const wxString wxPyWINDOW_DEFAULT_VARIANT(wxWINDOW_DEFAULT_VARIANT);
475
476 #include <wx/stockitem.h>
477
478 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
479 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
480 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
481
482 SWIGSTATICINLINE(long)
483 SWIG_As_long(PyObject* obj)
484 {
485 long v;
486 if (!SWIG_AsVal_long(obj, &v)) {
487 /*
488 this is needed to make valgrind/purify happier. the other
489 solution is throw an exception, but since this code should work
490 with plain C ....
491 */
492 memset((void*)&v, 0, sizeof(long));
493 }
494 return v;
495 }
496
497
498 SWIGSTATICINLINE(int)
499 SWIG_Check_long(PyObject* obj)
500 {
501 return SWIG_AsVal_long(obj, (long*)0);
502 }
503
504
505 SWIGSTATICINLINE(int)
506 SWIG_AsVal_bool(PyObject *obj, bool *val)
507 {
508 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
509 if (obj == Py_True) {
510 if (val) *val = true;
511 return 1;
512 }
513 if (obj == Py_False) {
514 if (val) *val = false;
515 return 1;
516 }
517 int res = 0;
518 if (SWIG_AsVal_int(obj, &res)) {
519 if (val) *val = (bool)res;
520 return 1;
521 }
522 if (val) {
523 PyErr_SetString(PyExc_TypeError, "a bool is expected");
524 }
525 return 0;
526 }
527
528
529 SWIGSTATICINLINE(bool)
530 SWIG_As_bool(PyObject* obj)
531 {
532 bool v;
533 if (!SWIG_AsVal_bool(obj, &v)) {
534 /*
535 this is needed to make valgrind/purify happier. the other
536 solution is throw an exception, but since this code should work
537 with plain C ....
538 */
539 memset((void*)&v, 0, sizeof(bool));
540 }
541 return v;
542 }
543
544
545 SWIGSTATICINLINE(int)
546 SWIG_Check_bool(PyObject* obj)
547 {
548 return SWIG_AsVal_bool(obj, (bool*)0);
549 }
550
551
552 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
553 PyObject* o2;
554 PyObject* o3;
555
556 if (!target) {
557 target = o;
558 } else if (target == Py_None) {
559 Py_DECREF(Py_None);
560 target = o;
561 } else {
562 if (!PyTuple_Check(target)) {
563 o2 = target;
564 target = PyTuple_New(1);
565 PyTuple_SetItem(target, 0, o2);
566 }
567 o3 = PyTuple_New(1);
568 PyTuple_SetItem(o3, 0, o);
569
570 o2 = target;
571 target = PySequence_Concat(o2, o3);
572 Py_DECREF(o2);
573 Py_DECREF(o3);
574 }
575 return target;
576 }
577
578
579
580 // See my_fragments.i
581 SWIGSTATICINLINE(int)
582 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
583 {
584 long v = 0;
585 if (SWIG_AsVal_long(obj, &v) && v < 0) {
586 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
587 return 0;
588 }
589 else if (val)
590 *val = (unsigned long)v;
591 return 1;
592 }
593
594
595 SWIGSTATICINLINE(unsigned long)
596 SWIG_As_unsigned_SS_long(PyObject* obj)
597 {
598 unsigned long v;
599 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
600 /*
601 this is needed to make valgrind/purify happier. the other
602 solution is throw an exception, but since this code should work
603 with plain C ....
604 */
605 memset((void*)&v, 0, sizeof(unsigned long));
606 }
607 return v;
608 }
609
610
611 SWIGSTATICINLINE(int)
612 SWIG_Check_unsigned_SS_long(PyObject* obj)
613 {
614 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
615 }
616
617
618 SWIGSTATICINLINE(PyObject* )
619 SWIG_From_unsigned_SS_long(unsigned long value)
620 {
621 return (value > LONG_MAX) ?
622 PyLong_FromUnsignedLong(value)
623 : PyInt_FromLong(swig_numeric_cast(value,long));
624 }
625
626
627 bool wxThread_IsMain() {
628 #ifdef WXP_WITH_THREAD
629 return wxThread::IsMain();
630 #else
631 return true;
632 #endif
633 }
634
635
636 int wxCaret_GetBlinkTime() {
637 return wxCaret::GetBlinkTime();
638 }
639
640 void wxCaret_SetBlinkTime(int milliseconds) {
641 wxCaret::SetBlinkTime(milliseconds);
642 }
643
644
645 #include <wx/snglinst.h>
646
647
648 #ifdef __WXMSW__
649 #include <wx/msw/private.h>
650 #include <wx/dynload.h>
651 #endif
652
653
654
655 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
656 {
657 #ifdef __WXMSW__
658
659 switch (method)
660 {
661 case 1:
662 // This one only partially works. Appears to be an undocumented
663 // "standard" convention that not all widgets adhear to. For
664 // example, for some widgets backgrounds or non-client areas may
665 // not be painted.
666 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
667 break;
668
669 case 2:
670 // This one works much better, except for on XP. On Win2k nearly
671 // all widgets and their children are captured correctly[**]. On
672 // XP with Themes activated most native widgets draw only
673 // partially, if at all. Without themes it works just like on
674 // Win2k.
675 //
676 // ** For example the radio buttons in a wxRadioBox are not its
677 // children by default, but you can capture it via the panel
678 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
679 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
680 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
681 PRF_ERASEBKGND | PRF_OWNED );
682 break;
683
684 case 3:
685 // This one is only defined in the latest SDK and is only
686 // available on XP. MSDN says it is similar to sending WM_PRINT
687 // so I expect that it will work similar to the above. Since it
688 // is avaialble only on XP, it can't be compiled like this and
689 // will have to be loaded dynamically.
690 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
691
692 // fall through
693
694 case 4:
695 // Use PrintWindow if available, or fallback to WM_PRINT
696 // otherwise. Unfortunately using PrintWindow is even worse than
697 // WM_PRINT. For most native widgets nothing is drawn to the dc
698 // at all, with or without Themes.
699 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
700 static bool s_triedToLoad = false;
701 static PrintWindow_t pfnPrintWindow = NULL;
702 if ( !s_triedToLoad )
703 {
704
705 s_triedToLoad = true;
706 wxDynamicLibrary dllUser32(_T("user32.dll"));
707 if ( dllUser32.IsLoaded() )
708 {
709 wxLogNull nolog; // Don't report errors here
710 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
711 }
712 }
713 if (pfnPrintWindow)
714 {
715 printf("Using PrintWindow\n");
716 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
717 }
718 else
719 {
720 printf("Using WM_PRINT\n");
721 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
722 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
723 }
724 }
725 #endif
726 }
727
728
729
730 #include <wx/tipdlg.h>
731
732
733 class wxPyTipProvider : public wxTipProvider {
734 public:
735 wxPyTipProvider(size_t currentTip)
736 : wxTipProvider(currentTip) {}
737
738 DEC_PYCALLBACK_STRING__pure(GetTip);
739 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
740 PYPRIVATE;
741 };
742
743 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
744 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
745
746
747 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
748
749 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
750
751 void wxPyTimer::Notify() {
752 bool found;
753 bool blocked = wxPyBeginBlockThreads();
754 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
755 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
756 wxPyEndBlockThreads(blocked);
757 if (! found)
758 wxTimer::Notify();
759 }
760 void wxPyTimer::base_Notify() {
761 wxTimer::Notify();
762 }
763
764
765
766 SWIGSTATICINLINE(PyObject *)
767 SWIG_FromCharPtr(const char* cptr)
768 {
769 if (cptr) {
770 size_t size = strlen(cptr);
771 if (size > INT_MAX) {
772 return SWIG_NewPointerObj(swig_const_cast(cptr,char*),
773 SWIG_TypeQuery("char *"), 0);
774 } else {
775 if (size != 0) {
776 return PyString_FromStringAndSize(cptr, size);
777 } else {
778 return PyString_FromString(cptr);
779 }
780 }
781 }
782 Py_INCREF(Py_None);
783 return Py_None;
784 }
785
786
787 SWIGSTATICINLINE(int)
788 SWIG_CheckUnsignedLongInRange(unsigned long value,
789 unsigned long max_value,
790 const char *errmsg)
791 {
792 if (value > max_value) {
793 if (errmsg) {
794 PyErr_Format(PyExc_OverflowError,
795 "value %ld is greater than '%s' minimum %ld",
796 value, errmsg, max_value);
797 }
798 return 0;
799 }
800 return 1;
801 }
802
803
804 #if UINT_MAX != ULONG_MAX
805 SWIGSTATICINLINE(int)
806 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
807 {
808 const char* errmsg = val ? "unsigned int" : 0;
809 unsigned long v;
810 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
811 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
812 if (val) *val = swig_numeric_cast(v, unsigned int);
813 return 1;
814 }
815 } else {
816 PyErr_Clear();
817 }
818 if (val) {
819 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
820 }
821 return 0;
822 }
823 #else
824 SWIGSTATICINLINE(unsigned int)
825 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
826 {
827 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
828 }
829 #endif
830
831
832 SWIGSTATICINLINE(unsigned int)
833 SWIG_As_unsigned_SS_int(PyObject* obj)
834 {
835 unsigned int v;
836 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
837 /*
838 this is needed to make valgrind/purify happier. the other
839 solution is throw an exception, but since this code should work
840 with plain C ....
841 */
842 memset((void*)&v, 0, sizeof(unsigned int));
843 }
844 return v;
845 }
846
847
848 SWIGSTATICINLINE(int)
849 SWIG_Check_unsigned_SS_int(PyObject* obj)
850 {
851 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
852 }
853
854 wxString Log_TimeStamp(){
855 wxString msg;
856 wxLog::TimeStamp(&msg);
857 return msg;
858 }
859 void wxLog_Destroy(wxLog *self){ delete self; }
860
861 // A wxLog class that can be derived from in wxPython
862 class wxPyLog : public wxLog {
863 public:
864 wxPyLog() : wxLog() {}
865
866 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
867 bool found;
868 bool blocked = wxPyBeginBlockThreads();
869 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
870 PyObject* s = wx2PyString(szString);
871 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
872 Py_DECREF(s);
873 }
874 wxPyEndBlockThreads(blocked);
875 if (! found)
876 wxLog::DoLog(level, szString, t);
877 }
878
879 virtual void DoLogString(const wxChar *szString, time_t t) {
880 bool found;
881 bool blocked = wxPyBeginBlockThreads();
882 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
883 PyObject* s = wx2PyString(szString);
884 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
885 Py_DECREF(s);
886 }
887 wxPyEndBlockThreads(blocked);
888 if (! found)
889 wxLog::DoLogString(szString, t);
890 }
891
892 PYPRIVATE;
893 };
894
895
896
897
898 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
899
900
901 #include <wx/joystick.h>
902
903
904 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
905 // A C++ stub class for wxJoystick for platforms that don't have it.
906 class wxJoystick : public wxObject {
907 public:
908 wxJoystick(int joystick = wxJOYSTICK1) {
909 bool blocked = wxPyBeginBlockThreads();
910 PyErr_SetString(PyExc_NotImplementedError,
911 "wxJoystick is not available on this platform.");
912 wxPyEndBlockThreads(blocked);
913 }
914 wxPoint GetPosition() { return wxPoint(-1,-1); }
915 int GetZPosition() { return -1; }
916 int GetButtonState() { return -1; }
917 int GetPOVPosition() { return -1; }
918 int GetPOVCTSPosition() { return -1; }
919 int GetRudderPosition() { return -1; }
920 int GetUPosition() { return -1; }
921 int GetVPosition() { return -1; }
922 int GetMovementThreshold() { return -1; }
923 void SetMovementThreshold(int threshold) {}
924
925 bool IsOk(void) { return false; }
926 int GetNumberJoysticks() { return -1; }
927 int GetManufacturerId() { return -1; }
928 int GetProductId() { return -1; }
929 wxString GetProductName() { return wxEmptyString; }
930 int GetXMin() { return -1; }
931 int GetYMin() { return -1; }
932 int GetZMin() { return -1; }
933 int GetXMax() { return -1; }
934 int GetYMax() { return -1; }
935 int GetZMax() { return -1; }
936 int GetNumberButtons() { return -1; }
937 int GetNumberAxes() { return -1; }
938 int GetMaxButtons() { return -1; }
939 int GetMaxAxes() { return -1; }
940 int GetPollingMin() { return -1; }
941 int GetPollingMax() { return -1; }
942 int GetRudderMin() { return -1; }
943 int GetRudderMax() { return -1; }
944 int GetUMin() { return -1; }
945 int GetUMax() { return -1; }
946 int GetVMin() { return -1; }
947 int GetVMax() { return -1; }
948
949 bool HasRudder() { return false; }
950 bool HasZ() { return false; }
951 bool HasU() { return false; }
952 bool HasV() { return false; }
953 bool HasPOV() { return false; }
954 bool HasPOV4Dir() { return false; }
955 bool HasPOVCTS() { return false; }
956
957 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return false; }
958 bool ReleaseCapture() { return false; }
959 };
960 #endif
961
962
963 #include <wx/sound.h>
964
965
966 #if !wxUSE_SOUND
967 // A C++ stub class for wxWave for platforms that don't have it.
968 class wxSound : public wxObject
969 {
970 public:
971 wxSound() {
972 bool blocked = wxPyBeginBlockThreads();
973 PyErr_SetString(PyExc_NotImplementedError,
974 "wxSound is not available on this platform.");
975 wxPyEndBlockThreads(blocked);
976 }
977 wxSound(const wxString&/*, bool*/) {
978 bool blocked = wxPyBeginBlockThreads();
979 PyErr_SetString(PyExc_NotImplementedError,
980 "wxSound is not available on this platform.");
981 wxPyEndBlockThreads(blocked);
982 }
983 wxSound(int, const wxByte*) {
984 bool blocked = wxPyBeginBlockThreads();
985 PyErr_SetString(PyExc_NotImplementedError,
986 "wxSound is not available on this platform.");
987 wxPyEndBlockThreads(blocked);
988 }
989
990 ~wxSound() {};
991
992 bool Create(const wxString&/*, bool*/) { return false; }
993 bool Create(int, const wxByte*) { return false; };
994 bool IsOk() { return false; };
995 bool Play(unsigned) const { return false; }
996 static bool Play(const wxString&, unsigned) { return false; }
997 static void Stop() {}
998 };
999
1000 #endif
1001
1002 wxSound *new_wxSound(wxString const &fileName){
1003 if (fileName.Length() == 0)
1004 return new wxSound;
1005 else
1006 return new wxSound(fileName);
1007 }
1008 wxSound *new_wxSound(PyObject *data){
1009 unsigned char* buffer; int size;
1010 wxSound *sound = NULL;
1011
1012 bool blocked = wxPyBeginBlockThreads();
1013 if (!PyArg_Parse(data, "t#", &buffer, &size))
1014 goto done;
1015 sound = new wxSound(size, buffer);
1016 done:
1017 wxPyEndBlockThreads(blocked);
1018 return sound;
1019 }
1020 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
1021 #ifndef __WXMAC__
1022 unsigned char* buffer;
1023 int size;
1024 bool rv = false;
1025
1026 bool blocked = wxPyBeginBlockThreads();
1027 if (!PyArg_Parse(data, "t#", &buffer, &size))
1028 goto done;
1029 rv = self->Create(size, buffer);
1030 done:
1031 wxPyEndBlockThreads(blocked);
1032 return rv;
1033 #else
1034 bool blocked = wxPyBeginBlockThreads();
1035 PyErr_SetString(PyExc_NotImplementedError,
1036 "Create from data is not available on this platform.");
1037 wxPyEndBlockThreads(blocked);
1038 return false;
1039 #endif
1040 }
1041
1042 #include <wx/mimetype.h>
1043
1044 PyObject *wxFileType_GetMimeType(wxFileType *self){
1045 wxString str;
1046 if (self->GetMimeType(&str))
1047 return wx2PyString(str);
1048 else
1049 RETURN_NONE();
1050 }
1051 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
1052 wxArrayString arr;
1053 if (self->GetMimeTypes(arr))
1054 return wxArrayString2PyList_helper(arr);
1055 else
1056 RETURN_NONE();
1057 }
1058 PyObject *wxFileType_GetExtensions(wxFileType *self){
1059 wxArrayString arr;
1060 if (self->GetExtensions(arr))
1061 return wxArrayString2PyList_helper(arr);
1062 else
1063 RETURN_NONE();
1064 }
1065 wxIcon *wxFileType_GetIcon(wxFileType *self){
1066 wxIconLocation loc;
1067 if (self->GetIcon(&loc))
1068 return new wxIcon(loc);
1069 else
1070 return NULL;
1071 }
1072 PyObject *wxFileType_GetIconInfo(wxFileType *self){
1073 wxIconLocation loc;
1074 if (self->GetIcon(&loc)) {
1075 wxString iconFile = loc.GetFileName();
1076 int iconIndex = -1;
1077
1078 iconIndex = loc.GetIndex();
1079
1080 // Make a tuple and put the values in it
1081 bool blocked = wxPyBeginBlockThreads();
1082 PyObject* tuple = PyTuple_New(3);
1083 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
1084 wxT("wxIcon"), true));
1085 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
1086 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
1087 wxPyEndBlockThreads(blocked);
1088 return tuple;
1089 }
1090 else
1091 RETURN_NONE();
1092 }
1093 PyObject *wxFileType_GetDescription(wxFileType *self){
1094 wxString str;
1095 if (self->GetDescription(&str))
1096 return wx2PyString(str);
1097 else
1098 RETURN_NONE();
1099 }
1100 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
1101 wxString str;
1102 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
1103 return wx2PyString(str);
1104 else
1105 RETURN_NONE();
1106 }
1107 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
1108 wxString str;
1109 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
1110 return wx2PyString(str);
1111 else
1112 RETURN_NONE();
1113 }
1114 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
1115 wxArrayString verbs;
1116 wxArrayString commands;
1117 if (self->GetAllCommands(&verbs, &commands,
1118 wxFileType::MessageParameters(filename, mimetype))) {
1119 bool blocked = wxPyBeginBlockThreads();
1120 PyObject* tuple = PyTuple_New(2);
1121 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
1122 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
1123 wxPyEndBlockThreads(blocked);
1124 return tuple;
1125 }
1126 else
1127 RETURN_NONE();
1128 }
1129 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1130 return wxFileType::ExpandCommand(command,
1131 wxFileType::MessageParameters(filename, mimetype));
1132 }
1133 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1134 wxArrayString arr;
1135 self->EnumAllFileTypes(arr);
1136 return wxArrayString2PyList_helper(arr);
1137 }
1138
1139 #include <wx/artprov.h>
1140
1141 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1142 static const wxString wxPyART_MENU(wxART_MENU);
1143 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1144 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1145 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1146 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1147 static const wxString wxPyART_BUTTON(wxART_BUTTON);
1148 static const wxString wxPyART_OTHER(wxART_OTHER);
1149 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1150 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1151 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1152 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1153 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1154 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1155 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1156 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1157 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1158 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1159 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1160 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1161 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1162 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1163 static const wxString wxPyART_PRINT(wxART_PRINT);
1164 static const wxString wxPyART_HELP(wxART_HELP);
1165 static const wxString wxPyART_TIP(wxART_TIP);
1166 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1167 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1168 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1169 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1170 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1171 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1172 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1173 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1174 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1175 static const wxString wxPyART_ERROR(wxART_ERROR);
1176 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1177 static const wxString wxPyART_WARNING(wxART_WARNING);
1178 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1179 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1180 // Python aware wxArtProvider
1181 class wxPyArtProvider : public wxArtProvider {
1182 public:
1183
1184 virtual wxBitmap CreateBitmap(const wxArtID& id,
1185 const wxArtClient& client,
1186 const wxSize& size) {
1187 wxBitmap rval = wxNullBitmap;
1188 bool blocked = wxPyBeginBlockThreads();
1189 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1190 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1191 PyObject* ro;
1192 wxBitmap* ptr;
1193 PyObject* s1, *s2;
1194 s1 = wx2PyString(id);
1195 s2 = wx2PyString(client);
1196 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1197 Py_DECREF(so);
1198 Py_DECREF(s1);
1199 Py_DECREF(s2);
1200 if (ro) {
1201 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1202 rval = *ptr;
1203 Py_DECREF(ro);
1204 }
1205 }
1206 wxPyEndBlockThreads(blocked);
1207 return rval;
1208 }
1209
1210 PYPRIVATE;
1211 };
1212
1213 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1214
1215
1216
1217 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1218 PyObject* ret = PyTuple_New(3);
1219 if (ret) {
1220 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1221 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1222 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1223 }
1224 return ret;
1225 }
1226
1227 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1228 bool cont;
1229 long index = 0;
1230 wxString value;
1231
1232 cont = self->GetFirstGroup(value, index);
1233 return __EnumerationHelper(cont, value, index);
1234 }
1235 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1236 bool cont;
1237 wxString value;
1238
1239 cont = self->GetNextGroup(value, index);
1240 return __EnumerationHelper(cont, value, index);
1241 }
1242 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1243 bool cont;
1244 long index = 0;
1245 wxString value;
1246
1247 cont = self->GetFirstEntry(value, index);
1248 return __EnumerationHelper(cont, value, index);
1249 }
1250 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1251 bool cont;
1252 wxString value;
1253
1254 cont = self->GetNextEntry(value, index);
1255 return __EnumerationHelper(cont, value, index);
1256 }
1257 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1258 long rv;
1259 self->Read(key, &rv, defaultVal);
1260 return rv;
1261 }
1262
1263 // See my_fragments.i
1264 SWIGSTATICINLINE(int)
1265 SWIG_AsVal_double(PyObject *obj, double* val)
1266 {
1267 if (PyNumber_Check(obj)) {
1268 if (val) *val = PyFloat_AsDouble(obj);
1269 return 1;
1270 }
1271 else {
1272 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1273 obj->ob_type->tp_name);
1274 PyErr_SetObject(PyExc_TypeError, errmsg);
1275 Py_DECREF(errmsg);
1276 }
1277 return 0;
1278 }
1279
1280
1281 SWIGSTATICINLINE(double)
1282 SWIG_As_double(PyObject* obj)
1283 {
1284 double v;
1285 if (!SWIG_AsVal_double(obj, &v)) {
1286 /*
1287 this is needed to make valgrind/purify happier. the other
1288 solution is throw an exception, but since this code should work
1289 with plain C ....
1290 */
1291 memset((void*)&v, 0, sizeof(double));
1292 }
1293 return v;
1294 }
1295
1296
1297 SWIGSTATICINLINE(int)
1298 SWIG_Check_double(PyObject* obj)
1299 {
1300 return SWIG_AsVal_double(obj, (double*)0);
1301 }
1302
1303 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1304 double rv;
1305 self->Read(key, &rv, defaultVal);
1306 return rv;
1307 }
1308 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1309 bool rv;
1310 self->Read(key, &rv, defaultVal);
1311 return rv;
1312 }
1313
1314 #include <wx/datetime.h>
1315
1316
1317 static const wxString wxPyDateFormatStr(wxT("%c"));
1318 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1319
1320 #define LOCAL_TZ wxDateTime::Local
1321
1322
1323 #if UINT_MAX < LONG_MAX
1324 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
1325 #define SWIG_From_unsigned_SS_int SWIG_From_long
1326 /*@@*/
1327 #else
1328 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
1329 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
1330 /*@@*/
1331 #endif
1332
1333 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1334 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1335 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1336 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1337 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1338 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1339 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1340 return (*self < *other);
1341 }
1342 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1343 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1344 return (*self <= *other);
1345 }
1346 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1347 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1348 return (*self > *other);
1349 }
1350 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1351 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1352 return (*self >= *other);
1353 }
1354 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1355 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1356 return (*self == *other);
1357 }
1358 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1359 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1360 return (*self != *other);
1361 }
1362 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1363 const wxChar* rv;
1364 const wxChar* _date = date;
1365 rv = self->ParseRfc822Date(_date);
1366 if (rv == NULL) return -1;
1367 return rv - _date;
1368 }
1369 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1370 const wxChar* rv;
1371 const wxChar* _date = date;
1372 rv = self->ParseFormat(_date, format, dateDef);
1373 if (rv == NULL) return -1;
1374 return rv - _date;
1375 }
1376 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1377 const wxChar* rv;
1378 const wxChar* _datetime = datetime;
1379 rv = self->ParseDateTime(_datetime);
1380 if (rv == NULL) return -1;
1381 return rv - _datetime;
1382 }
1383 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1384 const wxChar* rv;
1385 const wxChar* _date = date;
1386 rv = self->ParseDate(_date);
1387 if (rv == NULL) return -1;
1388 return rv - _date;
1389 }
1390 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1391 const wxChar* rv;
1392 const wxChar* _time = time;
1393 rv = self->ParseTime(_time);
1394 if (rv == NULL) return -1;
1395 return rv - _time;
1396 }
1397 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1398 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1399 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1400 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1401 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : false; }
1402 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : false; }
1403 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : true; }
1404 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : true; }
1405 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : false; }
1406 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : true; }
1407 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1408 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1409 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1410 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1411 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : false; }
1412 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : true; }
1413
1414 #include <wx/dataobj.h>
1415
1416 PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1417 size_t count = self->GetFormatCount(dir);
1418 wxDataFormat* formats = new wxDataFormat[count];
1419 self->GetAllFormats(formats, dir);
1420
1421 bool blocked = wxPyBeginBlockThreads();
1422 PyObject* list = PyList_New(count);
1423 for (size_t i=0; i<count; i++) {
1424 wxDataFormat* format = new wxDataFormat(formats[i]);
1425 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), true);
1426 PyList_Append(list, obj);
1427 Py_DECREF(obj);
1428 }
1429 wxPyEndBlockThreads(blocked);
1430 delete [] formats;
1431 return list;
1432 }
1433 PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1434 PyObject* rval = NULL;
1435 size_t size = self->GetDataSize(format);
1436 bool blocked = wxPyBeginBlockThreads();
1437 if (size) {
1438 char* buf = new char[size];
1439 if (self->GetDataHere(format, buf))
1440 rval = PyString_FromStringAndSize(buf, size);
1441 delete [] buf;
1442 }
1443 if (! rval) {
1444 rval = Py_None;
1445 Py_INCREF(rval);
1446 }
1447 wxPyEndBlockThreads(blocked);
1448 return rval;
1449 }
1450 bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1451 bool rval;
1452 bool blocked = wxPyBeginBlockThreads();
1453 if (PyString_Check(data)) {
1454 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1455 }
1456 else {
1457 // raise a TypeError if not a string
1458 PyErr_SetString(PyExc_TypeError, "String expected.");
1459 rval = false;
1460 }
1461 wxPyEndBlockThreads(blocked);
1462 return rval;
1463 }
1464 PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1465 PyObject* rval = NULL;
1466 size_t size = self->GetDataSize();
1467 bool blocked = wxPyBeginBlockThreads();
1468 if (size) {
1469 char* buf = new char[size];
1470 if (self->GetDataHere(buf))
1471 rval = PyString_FromStringAndSize(buf, size);
1472 delete [] buf;
1473 }
1474 if (! rval) {
1475 rval = Py_None;
1476 Py_INCREF(rval);
1477 }
1478 wxPyEndBlockThreads(blocked);
1479 return rval;
1480 }
1481 bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1482 bool rval;
1483 bool blocked = wxPyBeginBlockThreads();
1484 if (PyString_Check(data)) {
1485 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1486 }
1487 else {
1488 // raise a TypeError if not a string
1489 PyErr_SetString(PyExc_TypeError, "String expected.");
1490 rval = false;
1491 }
1492 wxPyEndBlockThreads(blocked);
1493 return rval;
1494 }
1495 // Create a new class for wxPython to use
1496 class wxPyDataObjectSimple : public wxDataObjectSimple {
1497 public:
1498 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1499 : wxDataObjectSimple(format) {}
1500
1501 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1502 bool GetDataHere(void *buf) const;
1503 bool SetData(size_t len, const void *buf) const;
1504 PYPRIVATE;
1505 };
1506
1507 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1508
1509 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1510 // We need to get the data for this object and write it to buf. I think
1511 // the best way to do this for wxPython is to have the Python method
1512 // return either a string or None and then act appropriately with the
1513 // C++ version.
1514
1515 bool rval = false;
1516 bool blocked = wxPyBeginBlockThreads();
1517 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1518 PyObject* ro;
1519 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1520 if (ro) {
1521 rval = (ro != Py_None && PyString_Check(ro));
1522 if (rval)
1523 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1524 Py_DECREF(ro);
1525 }
1526 }
1527 wxPyEndBlockThreads(blocked);
1528 return rval;
1529 }
1530
1531 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1532 // For this one we simply need to make a string from buf and len
1533 // and send it to the Python method.
1534 bool rval = false;
1535 bool blocked = wxPyBeginBlockThreads();
1536 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1537 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1538 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1539 Py_DECREF(data);
1540 }
1541 wxPyEndBlockThreads(blocked);
1542 return rval;
1543 }
1544
1545 // Create a new class for wxPython to use
1546 class wxPyTextDataObject : public wxTextDataObject {
1547 public:
1548 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1549 : wxTextDataObject(text) {}
1550
1551 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1552 DEC_PYCALLBACK_STRING__const(GetText);
1553 DEC_PYCALLBACK__STRING(SetText);
1554 PYPRIVATE;
1555 };
1556
1557 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1558 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1559 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1560
1561
1562 // Create a new class for wxPython to use
1563 class wxPyBitmapDataObject : public wxBitmapDataObject {
1564 public:
1565 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1566 : wxBitmapDataObject(bitmap) {}
1567
1568 wxBitmap GetBitmap() const;
1569 void SetBitmap(const wxBitmap& bitmap);
1570 PYPRIVATE;
1571 };
1572
1573 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1574 wxBitmap* rval = &wxNullBitmap;
1575 bool blocked = wxPyBeginBlockThreads();
1576 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1577 PyObject* ro;
1578 wxBitmap* ptr;
1579 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1580 if (ro) {
1581 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1582 rval = ptr;
1583 Py_DECREF(ro);
1584 }
1585 }
1586 wxPyEndBlockThreads(blocked);
1587 return *rval;
1588 }
1589
1590 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1591 bool blocked = wxPyBeginBlockThreads();
1592 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1593 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), false);
1594 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1595 Py_DECREF(bo);
1596 }
1597 wxPyEndBlockThreads(blocked);
1598 }
1599
1600 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1601 bool rval;
1602 bool blocked = wxPyBeginBlockThreads();
1603 if (PyString_Check(data)) {
1604 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1605 }
1606 else {
1607 // raise a TypeError if not a string
1608 PyErr_SetString(PyExc_TypeError, "String expected.");
1609 rval = false;
1610 }
1611 wxPyEndBlockThreads(blocked);
1612 return rval;
1613 }
1614 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1615 PyObject* obj;
1616 bool blocked = wxPyBeginBlockThreads();
1617 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1618 wxPyEndBlockThreads(blocked);
1619 return obj;
1620 }
1621
1622 #include <wx/metafile.h>
1623
1624
1625 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1626
1627
1628 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1629 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1630 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1631 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1632 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1633
1634
1635 class wxPyTextDropTarget : public wxTextDropTarget {
1636 public:
1637 wxPyTextDropTarget() {}
1638
1639 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1640
1641 DEC_PYCALLBACK__(OnLeave);
1642 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1643 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1644 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1645 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1646
1647 PYPRIVATE;
1648 };
1649
1650 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1651 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1652 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1653 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1654 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1655 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1656
1657
1658
1659 class wxPyFileDropTarget : public wxFileDropTarget {
1660 public:
1661 wxPyFileDropTarget() {}
1662
1663 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1664
1665 DEC_PYCALLBACK__(OnLeave);
1666 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1667 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1668 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1669 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1670
1671 PYPRIVATE;
1672 };
1673
1674 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1675 const wxArrayString& filenames) {
1676 bool rval = false;
1677 bool blocked = wxPyBeginBlockThreads();
1678 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1679 PyObject* list = wxArrayString2PyList_helper(filenames);
1680 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1681 Py_DECREF(list);
1682 }
1683 wxPyEndBlockThreads(blocked);
1684 return rval;
1685 }
1686
1687
1688
1689 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1690 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1691 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1692 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1693 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1694
1695
1696
1697
1698 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1699
1700 #include <wx/display.h>
1701
1702 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : false; }
1703 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : true; }
1704
1705 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1706 #if !wxUSE_DISPLAY
1707 #include <wx/dynarray.h>
1708 #include <wx/vidmode.h>
1709
1710 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1711 #include "wx/arrimpl.cpp"
1712 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1713 const wxVideoMode wxDefaultVideoMode;
1714
1715 class wxDisplay
1716 {
1717 public:
1718 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1719 ~wxDisplay() {}
1720
1721 static size_t GetCount()
1722 { wxPyRaiseNotImplemented(); return 0; }
1723
1724 static int GetFromPoint(const wxPoint& pt)
1725 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1726 static int GetFromWindow(wxWindow *window)
1727 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1728
1729 virtual bool IsOk() const { return false; }
1730 virtual wxRect GetGeometry() const { wxRect r; return r; }
1731 virtual wxString GetName() const { return wxEmptyString; }
1732 bool IsPrimary() const { return false; }
1733
1734 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1735 { wxArrayVideoModes a; return a; }
1736
1737 virtual wxVideoMode GetCurrentMode() const
1738 { return wxDefaultVideoMode; }
1739
1740 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1741 { return false; }
1742
1743 void ResetMode() {}
1744 };
1745 #endif
1746
1747 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1748 PyObject* pyList = NULL;
1749 wxArrayVideoModes arr = self->GetModes(mode);
1750 bool blocked = wxPyBeginBlockThreads();
1751 pyList = PyList_New(0);
1752 for (int i=0; i < arr.GetCount(); i++) {
1753 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1754 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1755 PyList_Append(pyList, pyObj);
1756 Py_DECREF(pyObj);
1757 }
1758 wxPyEndBlockThreads(blocked);
1759 return pyList;
1760 }
1761
1762 #include <wx/stdpaths.h>
1763
1764 void wxStandardPaths_SetInstallPrefix(wxStandardPaths *self,wxString const &prefix){}
1765 wxString wxStandardPaths_GetInstallPrefix(wxStandardPaths *self){ return wxEmptyString; }
1766 #ifdef __cplusplus
1767 extern "C" {
1768 #endif
1769 static PyObject *_wrap_SystemSettings_GetColour(PyObject *, PyObject *args, PyObject *kwargs) {
1770 PyObject *resultobj;
1771 int arg1 ;
1772 wxColour result;
1773 PyObject * obj0 = 0 ;
1774 char *kwnames[] = {
1775 (char *) "index", NULL
1776 };
1777
1778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1779 arg1 = (int)SWIG_As_int(obj0);
1780 if (PyErr_Occurred()) SWIG_fail;
1781 {
1782 if (!wxPyCheckForApp()) SWIG_fail;
1783 PyThreadState* __tstate = wxPyBeginAllowThreads();
1784 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1785
1786 wxPyEndAllowThreads(__tstate);
1787 if (PyErr_Occurred()) SWIG_fail;
1788 }
1789 {
1790 wxColour * resultptr;
1791 resultptr = new wxColour((wxColour &) result);
1792 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1793 }
1794 return resultobj;
1795 fail:
1796 return NULL;
1797 }
1798
1799
1800 static PyObject *_wrap_SystemSettings_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
1801 PyObject *resultobj;
1802 int arg1 ;
1803 wxFont result;
1804 PyObject * obj0 = 0 ;
1805 char *kwnames[] = {
1806 (char *) "index", NULL
1807 };
1808
1809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1810 arg1 = (int)SWIG_As_int(obj0);
1811 if (PyErr_Occurred()) SWIG_fail;
1812 {
1813 if (!wxPyCheckForApp()) SWIG_fail;
1814 PyThreadState* __tstate = wxPyBeginAllowThreads();
1815 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1816
1817 wxPyEndAllowThreads(__tstate);
1818 if (PyErr_Occurred()) SWIG_fail;
1819 }
1820 {
1821 wxFont * resultptr;
1822 resultptr = new wxFont((wxFont &) result);
1823 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1824 }
1825 return resultobj;
1826 fail:
1827 return NULL;
1828 }
1829
1830
1831 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *, PyObject *args, PyObject *kwargs) {
1832 PyObject *resultobj;
1833 int arg1 ;
1834 int result;
1835 PyObject * obj0 = 0 ;
1836 char *kwnames[] = {
1837 (char *) "index", NULL
1838 };
1839
1840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1841 arg1 = (int)SWIG_As_int(obj0);
1842 if (PyErr_Occurred()) SWIG_fail;
1843 {
1844 if (!wxPyCheckForApp()) SWIG_fail;
1845 PyThreadState* __tstate = wxPyBeginAllowThreads();
1846 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1847
1848 wxPyEndAllowThreads(__tstate);
1849 if (PyErr_Occurred()) SWIG_fail;
1850 }
1851 resultobj = SWIG_From_int((int)result);
1852 return resultobj;
1853 fail:
1854 return NULL;
1855 }
1856
1857
1858 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *, PyObject *args, PyObject *kwargs) {
1859 PyObject *resultobj;
1860 int arg1 ;
1861 bool result;
1862 PyObject * obj0 = 0 ;
1863 char *kwnames[] = {
1864 (char *) "index", NULL
1865 };
1866
1867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1868 arg1 = (int)SWIG_As_int(obj0);
1869 if (PyErr_Occurred()) SWIG_fail;
1870 {
1871 if (!wxPyCheckForApp()) SWIG_fail;
1872 PyThreadState* __tstate = wxPyBeginAllowThreads();
1873 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1874
1875 wxPyEndAllowThreads(__tstate);
1876 if (PyErr_Occurred()) SWIG_fail;
1877 }
1878 {
1879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1880 }
1881 return resultobj;
1882 fail:
1883 return NULL;
1884 }
1885
1886
1887 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1888 PyObject *resultobj;
1889 int result;
1890 char *kwnames[] = {
1891 NULL
1892 };
1893
1894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1895 {
1896 if (!wxPyCheckForApp()) SWIG_fail;
1897 PyThreadState* __tstate = wxPyBeginAllowThreads();
1898 result = (int)wxSystemSettings::GetScreenType();
1899
1900 wxPyEndAllowThreads(__tstate);
1901 if (PyErr_Occurred()) SWIG_fail;
1902 }
1903 resultobj = SWIG_From_int((int)result);
1904 return resultobj;
1905 fail:
1906 return NULL;
1907 }
1908
1909
1910 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *, PyObject *args, PyObject *kwargs) {
1911 PyObject *resultobj;
1912 int arg1 ;
1913 PyObject * obj0 = 0 ;
1914 char *kwnames[] = {
1915 (char *) "screen", NULL
1916 };
1917
1918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1919 arg1 = (int)SWIG_As_int(obj0);
1920 if (PyErr_Occurred()) SWIG_fail;
1921 {
1922 if (!wxPyCheckForApp()) SWIG_fail;
1923 PyThreadState* __tstate = wxPyBeginAllowThreads();
1924 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1925
1926 wxPyEndAllowThreads(__tstate);
1927 if (PyErr_Occurred()) SWIG_fail;
1928 }
1929 Py_INCREF(Py_None); resultobj = Py_None;
1930 return resultobj;
1931 fail:
1932 return NULL;
1933 }
1934
1935
1936 static PyObject * SystemSettings_swigregister(PyObject *, PyObject *args) {
1937 PyObject *obj;
1938 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1939 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1940 Py_INCREF(obj);
1941 return Py_BuildValue((char *)"");
1942 }
1943 static int _wrap_WINDOW_DEFAULT_VARIANT_set(PyObject *) {
1944 PyErr_SetString(PyExc_TypeError,"Variable WINDOW_DEFAULT_VARIANT is read-only.");
1945 return 1;
1946 }
1947
1948
1949 static PyObject *_wrap_WINDOW_DEFAULT_VARIANT_get() {
1950 PyObject *pyobj;
1951
1952 {
1953 #if wxUSE_UNICODE
1954 pyobj = PyUnicode_FromWideChar((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
1955 #else
1956 pyobj = PyString_FromStringAndSize((&wxPyWINDOW_DEFAULT_VARIANT)->c_str(), (&wxPyWINDOW_DEFAULT_VARIANT)->Len());
1957 #endif
1958 }
1959 return pyobj;
1960 }
1961
1962
1963 static PyObject *_wrap_new_SystemOptions(PyObject *, PyObject *args, PyObject *kwargs) {
1964 PyObject *resultobj;
1965 wxSystemOptions *result;
1966 char *kwnames[] = {
1967 NULL
1968 };
1969
1970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1971 {
1972 PyThreadState* __tstate = wxPyBeginAllowThreads();
1973 result = (wxSystemOptions *)new wxSystemOptions();
1974
1975 wxPyEndAllowThreads(__tstate);
1976 if (PyErr_Occurred()) SWIG_fail;
1977 }
1978 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1979 return resultobj;
1980 fail:
1981 return NULL;
1982 }
1983
1984
1985 static PyObject *_wrap_SystemOptions_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
1986 PyObject *resultobj;
1987 wxString *arg1 = 0 ;
1988 wxString *arg2 = 0 ;
1989 bool temp1 = false ;
1990 bool temp2 = false ;
1991 PyObject * obj0 = 0 ;
1992 PyObject * obj1 = 0 ;
1993 char *kwnames[] = {
1994 (char *) "name",(char *) "value", NULL
1995 };
1996
1997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1998 {
1999 arg1 = wxString_in_helper(obj0);
2000 if (arg1 == NULL) SWIG_fail;
2001 temp1 = true;
2002 }
2003 {
2004 arg2 = wxString_in_helper(obj1);
2005 if (arg2 == NULL) SWIG_fail;
2006 temp2 = true;
2007 }
2008 {
2009 PyThreadState* __tstate = wxPyBeginAllowThreads();
2010 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
2011
2012 wxPyEndAllowThreads(__tstate);
2013 if (PyErr_Occurred()) SWIG_fail;
2014 }
2015 Py_INCREF(Py_None); resultobj = Py_None;
2016 {
2017 if (temp1)
2018 delete arg1;
2019 }
2020 {
2021 if (temp2)
2022 delete arg2;
2023 }
2024 return resultobj;
2025 fail:
2026 {
2027 if (temp1)
2028 delete arg1;
2029 }
2030 {
2031 if (temp2)
2032 delete arg2;
2033 }
2034 return NULL;
2035 }
2036
2037
2038 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
2039 PyObject *resultobj;
2040 wxString *arg1 = 0 ;
2041 int arg2 ;
2042 bool temp1 = false ;
2043 PyObject * obj0 = 0 ;
2044 PyObject * obj1 = 0 ;
2045 char *kwnames[] = {
2046 (char *) "name",(char *) "value", NULL
2047 };
2048
2049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
2050 {
2051 arg1 = wxString_in_helper(obj0);
2052 if (arg1 == NULL) SWIG_fail;
2053 temp1 = true;
2054 }
2055 arg2 = (int)SWIG_As_int(obj1);
2056 if (PyErr_Occurred()) SWIG_fail;
2057 {
2058 PyThreadState* __tstate = wxPyBeginAllowThreads();
2059 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
2060
2061 wxPyEndAllowThreads(__tstate);
2062 if (PyErr_Occurred()) SWIG_fail;
2063 }
2064 Py_INCREF(Py_None); resultobj = Py_None;
2065 {
2066 if (temp1)
2067 delete arg1;
2068 }
2069 return resultobj;
2070 fail:
2071 {
2072 if (temp1)
2073 delete arg1;
2074 }
2075 return NULL;
2076 }
2077
2078
2079 static PyObject *_wrap_SystemOptions_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
2080 PyObject *resultobj;
2081 wxString *arg1 = 0 ;
2082 wxString result;
2083 bool temp1 = false ;
2084 PyObject * obj0 = 0 ;
2085 char *kwnames[] = {
2086 (char *) "name", NULL
2087 };
2088
2089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
2090 {
2091 arg1 = wxString_in_helper(obj0);
2092 if (arg1 == NULL) SWIG_fail;
2093 temp1 = true;
2094 }
2095 {
2096 PyThreadState* __tstate = wxPyBeginAllowThreads();
2097 result = wxSystemOptions::GetOption((wxString const &)*arg1);
2098
2099 wxPyEndAllowThreads(__tstate);
2100 if (PyErr_Occurred()) SWIG_fail;
2101 }
2102 {
2103 #if wxUSE_UNICODE
2104 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2105 #else
2106 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2107 #endif
2108 }
2109 {
2110 if (temp1)
2111 delete arg1;
2112 }
2113 return resultobj;
2114 fail:
2115 {
2116 if (temp1)
2117 delete arg1;
2118 }
2119 return NULL;
2120 }
2121
2122
2123 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
2124 PyObject *resultobj;
2125 wxString *arg1 = 0 ;
2126 int result;
2127 bool temp1 = false ;
2128 PyObject * obj0 = 0 ;
2129 char *kwnames[] = {
2130 (char *) "name", NULL
2131 };
2132
2133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
2134 {
2135 arg1 = wxString_in_helper(obj0);
2136 if (arg1 == NULL) SWIG_fail;
2137 temp1 = true;
2138 }
2139 {
2140 PyThreadState* __tstate = wxPyBeginAllowThreads();
2141 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
2142
2143 wxPyEndAllowThreads(__tstate);
2144 if (PyErr_Occurred()) SWIG_fail;
2145 }
2146 resultobj = SWIG_From_int((int)result);
2147 {
2148 if (temp1)
2149 delete arg1;
2150 }
2151 return resultobj;
2152 fail:
2153 {
2154 if (temp1)
2155 delete arg1;
2156 }
2157 return NULL;
2158 }
2159
2160
2161 static PyObject *_wrap_SystemOptions_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
2162 PyObject *resultobj;
2163 wxString *arg1 = 0 ;
2164 bool result;
2165 bool temp1 = false ;
2166 PyObject * obj0 = 0 ;
2167 char *kwnames[] = {
2168 (char *) "name", NULL
2169 };
2170
2171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2172 {
2173 arg1 = wxString_in_helper(obj0);
2174 if (arg1 == NULL) SWIG_fail;
2175 temp1 = true;
2176 }
2177 {
2178 PyThreadState* __tstate = wxPyBeginAllowThreads();
2179 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2180
2181 wxPyEndAllowThreads(__tstate);
2182 if (PyErr_Occurred()) SWIG_fail;
2183 }
2184 {
2185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2186 }
2187 {
2188 if (temp1)
2189 delete arg1;
2190 }
2191 return resultobj;
2192 fail:
2193 {
2194 if (temp1)
2195 delete arg1;
2196 }
2197 return NULL;
2198 }
2199
2200
2201 static PyObject * SystemOptions_swigregister(PyObject *, PyObject *args) {
2202 PyObject *obj;
2203 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2204 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2205 Py_INCREF(obj);
2206 return Py_BuildValue((char *)"");
2207 }
2208 static int _wrap_FileSelectorPromptStr_set(PyObject *) {
2209 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2210 return 1;
2211 }
2212
2213
2214 static PyObject *_wrap_FileSelectorPromptStr_get() {
2215 PyObject *pyobj;
2216
2217 {
2218 #if wxUSE_UNICODE
2219 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2220 #else
2221 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2222 #endif
2223 }
2224 return pyobj;
2225 }
2226
2227
2228 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) {
2229 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2230 return 1;
2231 }
2232
2233
2234 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2235 PyObject *pyobj;
2236
2237 {
2238 #if wxUSE_UNICODE
2239 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2240 #else
2241 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2242 #endif
2243 }
2244 return pyobj;
2245 }
2246
2247
2248 static int _wrap_DirSelectorPromptStr_set(PyObject *) {
2249 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2250 return 1;
2251 }
2252
2253
2254 static PyObject *_wrap_DirSelectorPromptStr_get() {
2255 PyObject *pyobj;
2256
2257 {
2258 #if wxUSE_UNICODE
2259 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2260 #else
2261 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2262 #endif
2263 }
2264 return pyobj;
2265 }
2266
2267
2268 static PyObject *_wrap_NewId(PyObject *, PyObject *args, PyObject *kwargs) {
2269 PyObject *resultobj;
2270 long result;
2271 char *kwnames[] = {
2272 NULL
2273 };
2274
2275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2276 {
2277 PyThreadState* __tstate = wxPyBeginAllowThreads();
2278 result = (long)wxNewId();
2279
2280 wxPyEndAllowThreads(__tstate);
2281 if (PyErr_Occurred()) SWIG_fail;
2282 }
2283 resultobj = SWIG_From_long((long)result);
2284 return resultobj;
2285 fail:
2286 return NULL;
2287 }
2288
2289
2290 static PyObject *_wrap_RegisterId(PyObject *, PyObject *args, PyObject *kwargs) {
2291 PyObject *resultobj;
2292 long arg1 ;
2293 PyObject * obj0 = 0 ;
2294 char *kwnames[] = {
2295 (char *) "id", NULL
2296 };
2297
2298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2299 arg1 = (long)SWIG_As_long(obj0);
2300 if (PyErr_Occurred()) SWIG_fail;
2301 {
2302 PyThreadState* __tstate = wxPyBeginAllowThreads();
2303 wxRegisterId(arg1);
2304
2305 wxPyEndAllowThreads(__tstate);
2306 if (PyErr_Occurred()) SWIG_fail;
2307 }
2308 Py_INCREF(Py_None); resultobj = Py_None;
2309 return resultobj;
2310 fail:
2311 return NULL;
2312 }
2313
2314
2315 static PyObject *_wrap_GetCurrentId(PyObject *, PyObject *args, PyObject *kwargs) {
2316 PyObject *resultobj;
2317 long result;
2318 char *kwnames[] = {
2319 NULL
2320 };
2321
2322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2323 {
2324 PyThreadState* __tstate = wxPyBeginAllowThreads();
2325 result = (long)wxGetCurrentId();
2326
2327 wxPyEndAllowThreads(__tstate);
2328 if (PyErr_Occurred()) SWIG_fail;
2329 }
2330 resultobj = SWIG_From_long((long)result);
2331 return resultobj;
2332 fail:
2333 return NULL;
2334 }
2335
2336
2337 static PyObject *_wrap_IsStockID(PyObject *, PyObject *args, PyObject *kwargs) {
2338 PyObject *resultobj;
2339 int arg1 ;
2340 bool result;
2341 PyObject * obj0 = 0 ;
2342 char *kwnames[] = {
2343 (char *) "id", NULL
2344 };
2345
2346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsStockID",kwnames,&obj0)) goto fail;
2347 arg1 = (int)SWIG_As_int(obj0);
2348 if (PyErr_Occurred()) SWIG_fail;
2349 {
2350 PyThreadState* __tstate = wxPyBeginAllowThreads();
2351 result = (bool)wxIsStockID(arg1);
2352
2353 wxPyEndAllowThreads(__tstate);
2354 if (PyErr_Occurred()) SWIG_fail;
2355 }
2356 {
2357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2358 }
2359 return resultobj;
2360 fail:
2361 return NULL;
2362 }
2363
2364
2365 static PyObject *_wrap_IsStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
2366 PyObject *resultobj;
2367 int arg1 ;
2368 wxString *arg2 = 0 ;
2369 bool result;
2370 bool temp2 = false ;
2371 PyObject * obj0 = 0 ;
2372 PyObject * obj1 = 0 ;
2373 char *kwnames[] = {
2374 (char *) "id",(char *) "label", NULL
2375 };
2376
2377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IsStockLabel",kwnames,&obj0,&obj1)) goto fail;
2378 arg1 = (int)SWIG_As_int(obj0);
2379 if (PyErr_Occurred()) SWIG_fail;
2380 {
2381 arg2 = wxString_in_helper(obj1);
2382 if (arg2 == NULL) SWIG_fail;
2383 temp2 = true;
2384 }
2385 {
2386 PyThreadState* __tstate = wxPyBeginAllowThreads();
2387 result = (bool)wxIsStockLabel(arg1,(wxString const &)*arg2);
2388
2389 wxPyEndAllowThreads(__tstate);
2390 if (PyErr_Occurred()) SWIG_fail;
2391 }
2392 {
2393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2394 }
2395 {
2396 if (temp2)
2397 delete arg2;
2398 }
2399 return resultobj;
2400 fail:
2401 {
2402 if (temp2)
2403 delete arg2;
2404 }
2405 return NULL;
2406 }
2407
2408
2409 static PyObject *_wrap_GetStockLabel(PyObject *, PyObject *args, PyObject *kwargs) {
2410 PyObject *resultobj;
2411 int arg1 ;
2412 wxString result;
2413 PyObject * obj0 = 0 ;
2414 char *kwnames[] = {
2415 (char *) "id", NULL
2416 };
2417
2418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetStockLabel",kwnames,&obj0)) goto fail;
2419 arg1 = (int)SWIG_As_int(obj0);
2420 if (PyErr_Occurred()) SWIG_fail;
2421 {
2422 PyThreadState* __tstate = wxPyBeginAllowThreads();
2423 result = wxGetStockLabel(arg1);
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_Bell(PyObject *, PyObject *args, PyObject *kwargs) {
2442 PyObject *resultobj;
2443 char *kwnames[] = {
2444 NULL
2445 };
2446
2447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2448 {
2449 if (!wxPyCheckForApp()) SWIG_fail;
2450 PyThreadState* __tstate = wxPyBeginAllowThreads();
2451 wxBell();
2452
2453 wxPyEndAllowThreads(__tstate);
2454 if (PyErr_Occurred()) SWIG_fail;
2455 }
2456 Py_INCREF(Py_None); resultobj = Py_None;
2457 return resultobj;
2458 fail:
2459 return NULL;
2460 }
2461
2462
2463 static PyObject *_wrap_EndBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
2464 PyObject *resultobj;
2465 char *kwnames[] = {
2466 NULL
2467 };
2468
2469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2470 {
2471 if (!wxPyCheckForApp()) SWIG_fail;
2472 PyThreadState* __tstate = wxPyBeginAllowThreads();
2473 wxEndBusyCursor();
2474
2475 wxPyEndAllowThreads(__tstate);
2476 if (PyErr_Occurred()) SWIG_fail;
2477 }
2478 Py_INCREF(Py_None); resultobj = Py_None;
2479 return resultobj;
2480 fail:
2481 return NULL;
2482 }
2483
2484
2485 static PyObject *_wrap_GetElapsedTime(PyObject *, PyObject *args, PyObject *kwargs) {
2486 PyObject *resultobj;
2487 bool arg1 = (bool) true ;
2488 long result;
2489 PyObject * obj0 = 0 ;
2490 char *kwnames[] = {
2491 (char *) "resetTimer", NULL
2492 };
2493
2494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2495 if (obj0) {
2496 arg1 = (bool)SWIG_As_bool(obj0);
2497 if (PyErr_Occurred()) SWIG_fail;
2498 }
2499 {
2500 PyThreadState* __tstate = wxPyBeginAllowThreads();
2501 result = (long)wxGetElapsedTime(arg1);
2502
2503 wxPyEndAllowThreads(__tstate);
2504 if (PyErr_Occurred()) SWIG_fail;
2505 }
2506 resultobj = SWIG_From_long((long)result);
2507 return resultobj;
2508 fail:
2509 return NULL;
2510 }
2511
2512
2513 static PyObject *_wrap_GetMousePosition(PyObject *, PyObject *args, PyObject *kwargs) {
2514 PyObject *resultobj;
2515 int *arg1 = (int *) 0 ;
2516 int *arg2 = (int *) 0 ;
2517 int temp1 ;
2518 int res1 = 0 ;
2519 int temp2 ;
2520 int res2 = 0 ;
2521 char *kwnames[] = {
2522 NULL
2523 };
2524
2525 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2526 arg2 = &temp2; res2 = SWIG_NEWOBJ;
2527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2528 {
2529 if (!wxPyCheckForApp()) SWIG_fail;
2530 PyThreadState* __tstate = wxPyBeginAllowThreads();
2531 wxGetMousePosition(arg1,arg2);
2532
2533 wxPyEndAllowThreads(__tstate);
2534 if (PyErr_Occurred()) SWIG_fail;
2535 }
2536 Py_INCREF(Py_None); resultobj = Py_None;
2537 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2538 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2539 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2540 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
2541 return resultobj;
2542 fail:
2543 return NULL;
2544 }
2545
2546
2547 static PyObject *_wrap_IsBusy(PyObject *, PyObject *args, PyObject *kwargs) {
2548 PyObject *resultobj;
2549 bool result;
2550 char *kwnames[] = {
2551 NULL
2552 };
2553
2554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2555 {
2556 PyThreadState* __tstate = wxPyBeginAllowThreads();
2557 result = (bool)wxIsBusy();
2558
2559 wxPyEndAllowThreads(__tstate);
2560 if (PyErr_Occurred()) SWIG_fail;
2561 }
2562 {
2563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2564 }
2565 return resultobj;
2566 fail:
2567 return NULL;
2568 }
2569
2570
2571 static PyObject *_wrap_Now(PyObject *, PyObject *args, PyObject *kwargs) {
2572 PyObject *resultobj;
2573 wxString result;
2574 char *kwnames[] = {
2575 NULL
2576 };
2577
2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2579 {
2580 PyThreadState* __tstate = wxPyBeginAllowThreads();
2581 result = wxNow();
2582
2583 wxPyEndAllowThreads(__tstate);
2584 if (PyErr_Occurred()) SWIG_fail;
2585 }
2586 {
2587 #if wxUSE_UNICODE
2588 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2589 #else
2590 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2591 #endif
2592 }
2593 return resultobj;
2594 fail:
2595 return NULL;
2596 }
2597
2598
2599 static PyObject *_wrap_Shell(PyObject *, PyObject *args, PyObject *kwargs) {
2600 PyObject *resultobj;
2601 wxString const &arg1_defvalue = wxPyEmptyString ;
2602 wxString *arg1 = (wxString *) &arg1_defvalue ;
2603 bool result;
2604 bool temp1 = false ;
2605 PyObject * obj0 = 0 ;
2606 char *kwnames[] = {
2607 (char *) "command", NULL
2608 };
2609
2610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2611 if (obj0) {
2612 {
2613 arg1 = wxString_in_helper(obj0);
2614 if (arg1 == NULL) SWIG_fail;
2615 temp1 = true;
2616 }
2617 }
2618 {
2619 PyThreadState* __tstate = wxPyBeginAllowThreads();
2620 result = (bool)wxShell((wxString const &)*arg1);
2621
2622 wxPyEndAllowThreads(__tstate);
2623 if (PyErr_Occurred()) SWIG_fail;
2624 }
2625 {
2626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2627 }
2628 {
2629 if (temp1)
2630 delete arg1;
2631 }
2632 return resultobj;
2633 fail:
2634 {
2635 if (temp1)
2636 delete arg1;
2637 }
2638 return NULL;
2639 }
2640
2641
2642 static PyObject *_wrap_StartTimer(PyObject *, PyObject *args, PyObject *kwargs) {
2643 PyObject *resultobj;
2644 char *kwnames[] = {
2645 NULL
2646 };
2647
2648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2649 {
2650 PyThreadState* __tstate = wxPyBeginAllowThreads();
2651 wxStartTimer();
2652
2653 wxPyEndAllowThreads(__tstate);
2654 if (PyErr_Occurred()) SWIG_fail;
2655 }
2656 Py_INCREF(Py_None); resultobj = Py_None;
2657 return resultobj;
2658 fail:
2659 return NULL;
2660 }
2661
2662
2663 static PyObject *_wrap_GetOsVersion(PyObject *, PyObject *args, PyObject *kwargs) {
2664 PyObject *resultobj;
2665 int *arg1 = (int *) 0 ;
2666 int *arg2 = (int *) 0 ;
2667 int result;
2668 int temp1 ;
2669 int res1 = 0 ;
2670 int temp2 ;
2671 int res2 = 0 ;
2672 char *kwnames[] = {
2673 NULL
2674 };
2675
2676 arg1 = &temp1; res1 = SWIG_NEWOBJ;
2677 arg2 = &temp2; res2 = SWIG_NEWOBJ;
2678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2679 {
2680 PyThreadState* __tstate = wxPyBeginAllowThreads();
2681 result = (int)wxGetOsVersion(arg1,arg2);
2682
2683 wxPyEndAllowThreads(__tstate);
2684 if (PyErr_Occurred()) SWIG_fail;
2685 }
2686 resultobj = SWIG_From_int((int)result);
2687 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
2688 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
2689 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
2690 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
2691 return resultobj;
2692 fail:
2693 return NULL;
2694 }
2695
2696
2697 static PyObject *_wrap_GetOsDescription(PyObject *, PyObject *args, PyObject *kwargs) {
2698 PyObject *resultobj;
2699 wxString result;
2700 char *kwnames[] = {
2701 NULL
2702 };
2703
2704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2705 {
2706 PyThreadState* __tstate = wxPyBeginAllowThreads();
2707 result = wxGetOsDescription();
2708
2709 wxPyEndAllowThreads(__tstate);
2710 if (PyErr_Occurred()) SWIG_fail;
2711 }
2712 {
2713 #if wxUSE_UNICODE
2714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2715 #else
2716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2717 #endif
2718 }
2719 return resultobj;
2720 fail:
2721 return NULL;
2722 }
2723
2724
2725 static PyObject *_wrap_GetFreeMemory(PyObject *, PyObject *args, PyObject *kwargs) {
2726 PyObject *resultobj;
2727 long result;
2728 char *kwnames[] = {
2729 NULL
2730 };
2731
2732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2733 {
2734 PyThreadState* __tstate = wxPyBeginAllowThreads();
2735 result = (long)wxGetFreeMemory();
2736
2737 wxPyEndAllowThreads(__tstate);
2738 if (PyErr_Occurred()) SWIG_fail;
2739 }
2740 resultobj = SWIG_From_long((long)result);
2741 return resultobj;
2742 fail:
2743 return NULL;
2744 }
2745
2746
2747 static PyObject *_wrap_Shutdown(PyObject *, PyObject *args, PyObject *kwargs) {
2748 PyObject *resultobj;
2749 int arg1 ;
2750 bool result;
2751 PyObject * obj0 = 0 ;
2752 char *kwnames[] = {
2753 (char *) "wFlags", NULL
2754 };
2755
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2757 arg1 = (int)SWIG_As_int(obj0);
2758 if (PyErr_Occurred()) SWIG_fail;
2759 {
2760 if (!wxPyCheckForApp()) SWIG_fail;
2761 PyThreadState* __tstate = wxPyBeginAllowThreads();
2762 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2763
2764 wxPyEndAllowThreads(__tstate);
2765 if (PyErr_Occurred()) SWIG_fail;
2766 }
2767 {
2768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2769 }
2770 return resultobj;
2771 fail:
2772 return NULL;
2773 }
2774
2775
2776 static PyObject *_wrap_Sleep(PyObject *, PyObject *args, PyObject *kwargs) {
2777 PyObject *resultobj;
2778 int arg1 ;
2779 PyObject * obj0 = 0 ;
2780 char *kwnames[] = {
2781 (char *) "secs", NULL
2782 };
2783
2784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2785 arg1 = (int)SWIG_As_int(obj0);
2786 if (PyErr_Occurred()) SWIG_fail;
2787 {
2788 PyThreadState* __tstate = wxPyBeginAllowThreads();
2789 wxSleep(arg1);
2790
2791 wxPyEndAllowThreads(__tstate);
2792 if (PyErr_Occurred()) SWIG_fail;
2793 }
2794 Py_INCREF(Py_None); resultobj = Py_None;
2795 return resultobj;
2796 fail:
2797 return NULL;
2798 }
2799
2800
2801 static PyObject *_wrap_MilliSleep(PyObject *, PyObject *args, PyObject *kwargs) {
2802 PyObject *resultobj;
2803 unsigned long arg1 ;
2804 PyObject * obj0 = 0 ;
2805 char *kwnames[] = {
2806 (char *) "milliseconds", NULL
2807 };
2808
2809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
2810 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
2811 if (PyErr_Occurred()) SWIG_fail;
2812 {
2813 PyThreadState* __tstate = wxPyBeginAllowThreads();
2814 wxMilliSleep(arg1);
2815
2816 wxPyEndAllowThreads(__tstate);
2817 if (PyErr_Occurred()) SWIG_fail;
2818 }
2819 Py_INCREF(Py_None); resultobj = Py_None;
2820 return resultobj;
2821 fail:
2822 return NULL;
2823 }
2824
2825
2826 static PyObject *_wrap_MicroSleep(PyObject *, PyObject *args, PyObject *kwargs) {
2827 PyObject *resultobj;
2828 unsigned long arg1 ;
2829 PyObject * obj0 = 0 ;
2830 char *kwnames[] = {
2831 (char *) "microseconds", NULL
2832 };
2833
2834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
2835 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
2836 if (PyErr_Occurred()) SWIG_fail;
2837 {
2838 PyThreadState* __tstate = wxPyBeginAllowThreads();
2839 wxMicroSleep(arg1);
2840
2841 wxPyEndAllowThreads(__tstate);
2842 if (PyErr_Occurred()) SWIG_fail;
2843 }
2844 Py_INCREF(Py_None); resultobj = Py_None;
2845 return resultobj;
2846 fail:
2847 return NULL;
2848 }
2849
2850
2851 static PyObject *_wrap_EnableTopLevelWindows(PyObject *, PyObject *args, PyObject *kwargs) {
2852 PyObject *resultobj;
2853 bool arg1 ;
2854 PyObject * obj0 = 0 ;
2855 char *kwnames[] = {
2856 (char *) "enable", NULL
2857 };
2858
2859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2860 arg1 = (bool)SWIG_As_bool(obj0);
2861 if (PyErr_Occurred()) SWIG_fail;
2862 {
2863 PyThreadState* __tstate = wxPyBeginAllowThreads();
2864 wxEnableTopLevelWindows(arg1);
2865
2866 wxPyEndAllowThreads(__tstate);
2867 if (PyErr_Occurred()) SWIG_fail;
2868 }
2869 Py_INCREF(Py_None); resultobj = Py_None;
2870 return resultobj;
2871 fail:
2872 return NULL;
2873 }
2874
2875
2876 static PyObject *_wrap_StripMenuCodes(PyObject *, PyObject *args, PyObject *kwargs) {
2877 PyObject *resultobj;
2878 wxString *arg1 = 0 ;
2879 wxString result;
2880 bool temp1 = false ;
2881 PyObject * obj0 = 0 ;
2882 char *kwnames[] = {
2883 (char *) "in", NULL
2884 };
2885
2886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2887 {
2888 arg1 = wxString_in_helper(obj0);
2889 if (arg1 == NULL) SWIG_fail;
2890 temp1 = true;
2891 }
2892 {
2893 PyThreadState* __tstate = wxPyBeginAllowThreads();
2894 result = wxStripMenuCodes((wxString const &)*arg1);
2895
2896 wxPyEndAllowThreads(__tstate);
2897 if (PyErr_Occurred()) SWIG_fail;
2898 }
2899 {
2900 #if wxUSE_UNICODE
2901 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2902 #else
2903 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2904 #endif
2905 }
2906 {
2907 if (temp1)
2908 delete arg1;
2909 }
2910 return resultobj;
2911 fail:
2912 {
2913 if (temp1)
2914 delete arg1;
2915 }
2916 return NULL;
2917 }
2918
2919
2920 static PyObject *_wrap_GetEmailAddress(PyObject *, PyObject *args, PyObject *kwargs) {
2921 PyObject *resultobj;
2922 wxString result;
2923 char *kwnames[] = {
2924 NULL
2925 };
2926
2927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2928 {
2929 PyThreadState* __tstate = wxPyBeginAllowThreads();
2930 result = wxGetEmailAddress();
2931
2932 wxPyEndAllowThreads(__tstate);
2933 if (PyErr_Occurred()) SWIG_fail;
2934 }
2935 {
2936 #if wxUSE_UNICODE
2937 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2938 #else
2939 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2940 #endif
2941 }
2942 return resultobj;
2943 fail:
2944 return NULL;
2945 }
2946
2947
2948 static PyObject *_wrap_GetHostName(PyObject *, PyObject *args, PyObject *kwargs) {
2949 PyObject *resultobj;
2950 wxString result;
2951 char *kwnames[] = {
2952 NULL
2953 };
2954
2955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2956 {
2957 PyThreadState* __tstate = wxPyBeginAllowThreads();
2958 result = wxGetHostName();
2959
2960 wxPyEndAllowThreads(__tstate);
2961 if (PyErr_Occurred()) SWIG_fail;
2962 }
2963 {
2964 #if wxUSE_UNICODE
2965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2966 #else
2967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2968 #endif
2969 }
2970 return resultobj;
2971 fail:
2972 return NULL;
2973 }
2974
2975
2976 static PyObject *_wrap_GetFullHostName(PyObject *, PyObject *args, PyObject *kwargs) {
2977 PyObject *resultobj;
2978 wxString result;
2979 char *kwnames[] = {
2980 NULL
2981 };
2982
2983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 result = wxGetFullHostName();
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 {
2992 #if wxUSE_UNICODE
2993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2994 #else
2995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2996 #endif
2997 }
2998 return resultobj;
2999 fail:
3000 return NULL;
3001 }
3002
3003
3004 static PyObject *_wrap_GetUserId(PyObject *, PyObject *args, PyObject *kwargs) {
3005 PyObject *resultobj;
3006 wxString result;
3007 char *kwnames[] = {
3008 NULL
3009 };
3010
3011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
3012 {
3013 PyThreadState* __tstate = wxPyBeginAllowThreads();
3014 result = wxGetUserId();
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 return resultobj;
3027 fail:
3028 return NULL;
3029 }
3030
3031
3032 static PyObject *_wrap_GetUserName(PyObject *, PyObject *args, PyObject *kwargs) {
3033 PyObject *resultobj;
3034 wxString result;
3035 char *kwnames[] = {
3036 NULL
3037 };
3038
3039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
3040 {
3041 PyThreadState* __tstate = wxPyBeginAllowThreads();
3042 result = wxGetUserName();
3043
3044 wxPyEndAllowThreads(__tstate);
3045 if (PyErr_Occurred()) SWIG_fail;
3046 }
3047 {
3048 #if wxUSE_UNICODE
3049 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3050 #else
3051 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3052 #endif
3053 }
3054 return resultobj;
3055 fail:
3056 return NULL;
3057 }
3058
3059
3060 static PyObject *_wrap_GetHomeDir(PyObject *, PyObject *args, PyObject *kwargs) {
3061 PyObject *resultobj;
3062 wxString result;
3063 char *kwnames[] = {
3064 NULL
3065 };
3066
3067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
3068 {
3069 PyThreadState* __tstate = wxPyBeginAllowThreads();
3070 result = wxGetHomeDir();
3071
3072 wxPyEndAllowThreads(__tstate);
3073 if (PyErr_Occurred()) SWIG_fail;
3074 }
3075 {
3076 #if wxUSE_UNICODE
3077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3078 #else
3079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3080 #endif
3081 }
3082 return resultobj;
3083 fail:
3084 return NULL;
3085 }
3086
3087
3088 static PyObject *_wrap_GetUserHome(PyObject *, PyObject *args, PyObject *kwargs) {
3089 PyObject *resultobj;
3090 wxString const &arg1_defvalue = wxPyEmptyString ;
3091 wxString *arg1 = (wxString *) &arg1_defvalue ;
3092 wxString result;
3093 bool temp1 = false ;
3094 PyObject * obj0 = 0 ;
3095 char *kwnames[] = {
3096 (char *) "user", NULL
3097 };
3098
3099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
3100 if (obj0) {
3101 {
3102 arg1 = wxString_in_helper(obj0);
3103 if (arg1 == NULL) SWIG_fail;
3104 temp1 = true;
3105 }
3106 }
3107 {
3108 PyThreadState* __tstate = wxPyBeginAllowThreads();
3109 result = wxGetUserHome((wxString const &)*arg1);
3110
3111 wxPyEndAllowThreads(__tstate);
3112 if (PyErr_Occurred()) SWIG_fail;
3113 }
3114 {
3115 #if wxUSE_UNICODE
3116 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3117 #else
3118 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3119 #endif
3120 }
3121 {
3122 if (temp1)
3123 delete arg1;
3124 }
3125 return resultobj;
3126 fail:
3127 {
3128 if (temp1)
3129 delete arg1;
3130 }
3131 return NULL;
3132 }
3133
3134
3135 static PyObject *_wrap_GetProcessId(PyObject *, PyObject *args, PyObject *kwargs) {
3136 PyObject *resultobj;
3137 unsigned long result;
3138 char *kwnames[] = {
3139 NULL
3140 };
3141
3142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
3143 {
3144 PyThreadState* __tstate = wxPyBeginAllowThreads();
3145 result = (unsigned long)wxGetProcessId();
3146
3147 wxPyEndAllowThreads(__tstate);
3148 if (PyErr_Occurred()) SWIG_fail;
3149 }
3150 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
3151 return resultobj;
3152 fail:
3153 return NULL;
3154 }
3155
3156
3157 static PyObject *_wrap_Trap(PyObject *, PyObject *args, PyObject *kwargs) {
3158 PyObject *resultobj;
3159 char *kwnames[] = {
3160 NULL
3161 };
3162
3163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
3164 {
3165 PyThreadState* __tstate = wxPyBeginAllowThreads();
3166 wxTrap();
3167
3168 wxPyEndAllowThreads(__tstate);
3169 if (PyErr_Occurred()) SWIG_fail;
3170 }
3171 Py_INCREF(Py_None); resultobj = Py_None;
3172 return resultobj;
3173 fail:
3174 return NULL;
3175 }
3176
3177
3178 static PyObject *_wrap_FileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3179 PyObject *resultobj;
3180 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
3181 wxString *arg1 = (wxString *) &arg1_defvalue ;
3182 wxString const &arg2_defvalue = wxPyEmptyString ;
3183 wxString *arg2 = (wxString *) &arg2_defvalue ;
3184 wxString const &arg3_defvalue = wxPyEmptyString ;
3185 wxString *arg3 = (wxString *) &arg3_defvalue ;
3186 wxString const &arg4_defvalue = wxPyEmptyString ;
3187 wxString *arg4 = (wxString *) &arg4_defvalue ;
3188 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
3189 wxString *arg5 = (wxString *) &arg5_defvalue ;
3190 int arg6 = (int) 0 ;
3191 wxWindow *arg7 = (wxWindow *) NULL ;
3192 int arg8 = (int) -1 ;
3193 int arg9 = (int) -1 ;
3194 wxString result;
3195 bool temp1 = false ;
3196 bool temp2 = false ;
3197 bool temp3 = false ;
3198 bool temp4 = false ;
3199 bool temp5 = false ;
3200 PyObject * obj0 = 0 ;
3201 PyObject * obj1 = 0 ;
3202 PyObject * obj2 = 0 ;
3203 PyObject * obj3 = 0 ;
3204 PyObject * obj4 = 0 ;
3205 PyObject * obj5 = 0 ;
3206 PyObject * obj6 = 0 ;
3207 PyObject * obj7 = 0 ;
3208 PyObject * obj8 = 0 ;
3209 char *kwnames[] = {
3210 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
3211 };
3212
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3214 if (obj0) {
3215 {
3216 arg1 = wxString_in_helper(obj0);
3217 if (arg1 == NULL) SWIG_fail;
3218 temp1 = true;
3219 }
3220 }
3221 if (obj1) {
3222 {
3223 arg2 = wxString_in_helper(obj1);
3224 if (arg2 == NULL) SWIG_fail;
3225 temp2 = true;
3226 }
3227 }
3228 if (obj2) {
3229 {
3230 arg3 = wxString_in_helper(obj2);
3231 if (arg3 == NULL) SWIG_fail;
3232 temp3 = true;
3233 }
3234 }
3235 if (obj3) {
3236 {
3237 arg4 = wxString_in_helper(obj3);
3238 if (arg4 == NULL) SWIG_fail;
3239 temp4 = true;
3240 }
3241 }
3242 if (obj4) {
3243 {
3244 arg5 = wxString_in_helper(obj4);
3245 if (arg5 == NULL) SWIG_fail;
3246 temp5 = true;
3247 }
3248 }
3249 if (obj5) {
3250 arg6 = (int)SWIG_As_int(obj5);
3251 if (PyErr_Occurred()) SWIG_fail;
3252 }
3253 if (obj6) {
3254 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3256 }
3257 if (obj7) {
3258 arg8 = (int)SWIG_As_int(obj7);
3259 if (PyErr_Occurred()) SWIG_fail;
3260 }
3261 if (obj8) {
3262 arg9 = (int)SWIG_As_int(obj8);
3263 if (PyErr_Occurred()) SWIG_fail;
3264 }
3265 {
3266 if (!wxPyCheckForApp()) SWIG_fail;
3267 PyThreadState* __tstate = wxPyBeginAllowThreads();
3268 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
3269
3270 wxPyEndAllowThreads(__tstate);
3271 if (PyErr_Occurred()) SWIG_fail;
3272 }
3273 {
3274 #if wxUSE_UNICODE
3275 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3276 #else
3277 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3278 #endif
3279 }
3280 {
3281 if (temp1)
3282 delete arg1;
3283 }
3284 {
3285 if (temp2)
3286 delete arg2;
3287 }
3288 {
3289 if (temp3)
3290 delete arg3;
3291 }
3292 {
3293 if (temp4)
3294 delete arg4;
3295 }
3296 {
3297 if (temp5)
3298 delete arg5;
3299 }
3300 return resultobj;
3301 fail:
3302 {
3303 if (temp1)
3304 delete arg1;
3305 }
3306 {
3307 if (temp2)
3308 delete arg2;
3309 }
3310 {
3311 if (temp3)
3312 delete arg3;
3313 }
3314 {
3315 if (temp4)
3316 delete arg4;
3317 }
3318 {
3319 if (temp5)
3320 delete arg5;
3321 }
3322 return NULL;
3323 }
3324
3325
3326 static PyObject *_wrap_LoadFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3327 PyObject *resultobj;
3328 wxString *arg1 = 0 ;
3329 wxString *arg2 = 0 ;
3330 wxString const &arg3_defvalue = wxPyEmptyString ;
3331 wxString *arg3 = (wxString *) &arg3_defvalue ;
3332 wxWindow *arg4 = (wxWindow *) NULL ;
3333 wxString result;
3334 bool temp1 = false ;
3335 bool temp2 = false ;
3336 bool temp3 = false ;
3337 PyObject * obj0 = 0 ;
3338 PyObject * obj1 = 0 ;
3339 PyObject * obj2 = 0 ;
3340 PyObject * obj3 = 0 ;
3341 char *kwnames[] = {
3342 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3343 };
3344
3345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3346 {
3347 arg1 = wxString_in_helper(obj0);
3348 if (arg1 == NULL) SWIG_fail;
3349 temp1 = true;
3350 }
3351 {
3352 arg2 = wxString_in_helper(obj1);
3353 if (arg2 == NULL) SWIG_fail;
3354 temp2 = true;
3355 }
3356 if (obj2) {
3357 {
3358 arg3 = wxString_in_helper(obj2);
3359 if (arg3 == NULL) SWIG_fail;
3360 temp3 = true;
3361 }
3362 }
3363 if (obj3) {
3364 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3366 }
3367 {
3368 if (!wxPyCheckForApp()) SWIG_fail;
3369 PyThreadState* __tstate = wxPyBeginAllowThreads();
3370 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3371
3372 wxPyEndAllowThreads(__tstate);
3373 if (PyErr_Occurred()) SWIG_fail;
3374 }
3375 {
3376 #if wxUSE_UNICODE
3377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3378 #else
3379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3380 #endif
3381 }
3382 {
3383 if (temp1)
3384 delete arg1;
3385 }
3386 {
3387 if (temp2)
3388 delete arg2;
3389 }
3390 {
3391 if (temp3)
3392 delete arg3;
3393 }
3394 return resultobj;
3395 fail:
3396 {
3397 if (temp1)
3398 delete arg1;
3399 }
3400 {
3401 if (temp2)
3402 delete arg2;
3403 }
3404 {
3405 if (temp3)
3406 delete arg3;
3407 }
3408 return NULL;
3409 }
3410
3411
3412 static PyObject *_wrap_SaveFileSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3413 PyObject *resultobj;
3414 wxString *arg1 = 0 ;
3415 wxString *arg2 = 0 ;
3416 wxString const &arg3_defvalue = wxPyEmptyString ;
3417 wxString *arg3 = (wxString *) &arg3_defvalue ;
3418 wxWindow *arg4 = (wxWindow *) NULL ;
3419 wxString result;
3420 bool temp1 = false ;
3421 bool temp2 = false ;
3422 bool temp3 = false ;
3423 PyObject * obj0 = 0 ;
3424 PyObject * obj1 = 0 ;
3425 PyObject * obj2 = 0 ;
3426 PyObject * obj3 = 0 ;
3427 char *kwnames[] = {
3428 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3429 };
3430
3431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3432 {
3433 arg1 = wxString_in_helper(obj0);
3434 if (arg1 == NULL) SWIG_fail;
3435 temp1 = true;
3436 }
3437 {
3438 arg2 = wxString_in_helper(obj1);
3439 if (arg2 == NULL) SWIG_fail;
3440 temp2 = true;
3441 }
3442 if (obj2) {
3443 {
3444 arg3 = wxString_in_helper(obj2);
3445 if (arg3 == NULL) SWIG_fail;
3446 temp3 = true;
3447 }
3448 }
3449 if (obj3) {
3450 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3452 }
3453 {
3454 if (!wxPyCheckForApp()) SWIG_fail;
3455 PyThreadState* __tstate = wxPyBeginAllowThreads();
3456 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3457
3458 wxPyEndAllowThreads(__tstate);
3459 if (PyErr_Occurred()) SWIG_fail;
3460 }
3461 {
3462 #if wxUSE_UNICODE
3463 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3464 #else
3465 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3466 #endif
3467 }
3468 {
3469 if (temp1)
3470 delete arg1;
3471 }
3472 {
3473 if (temp2)
3474 delete arg2;
3475 }
3476 {
3477 if (temp3)
3478 delete arg3;
3479 }
3480 return resultobj;
3481 fail:
3482 {
3483 if (temp1)
3484 delete arg1;
3485 }
3486 {
3487 if (temp2)
3488 delete arg2;
3489 }
3490 {
3491 if (temp3)
3492 delete arg3;
3493 }
3494 return NULL;
3495 }
3496
3497
3498 static PyObject *_wrap_DirSelector(PyObject *, PyObject *args, PyObject *kwargs) {
3499 PyObject *resultobj;
3500 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3501 wxString *arg1 = (wxString *) &arg1_defvalue ;
3502 wxString const &arg2_defvalue = wxPyEmptyString ;
3503 wxString *arg2 = (wxString *) &arg2_defvalue ;
3504 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3505 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3506 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3507 wxWindow *arg5 = (wxWindow *) NULL ;
3508 wxString result;
3509 bool temp1 = false ;
3510 bool temp2 = false ;
3511 wxPoint temp4 ;
3512 PyObject * obj0 = 0 ;
3513 PyObject * obj1 = 0 ;
3514 PyObject * obj2 = 0 ;
3515 PyObject * obj3 = 0 ;
3516 PyObject * obj4 = 0 ;
3517 char *kwnames[] = {
3518 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3519 };
3520
3521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3522 if (obj0) {
3523 {
3524 arg1 = wxString_in_helper(obj0);
3525 if (arg1 == NULL) SWIG_fail;
3526 temp1 = true;
3527 }
3528 }
3529 if (obj1) {
3530 {
3531 arg2 = wxString_in_helper(obj1);
3532 if (arg2 == NULL) SWIG_fail;
3533 temp2 = true;
3534 }
3535 }
3536 if (obj2) {
3537 arg3 = (long)SWIG_As_long(obj2);
3538 if (PyErr_Occurred()) SWIG_fail;
3539 }
3540 if (obj3) {
3541 {
3542 arg4 = &temp4;
3543 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3544 }
3545 }
3546 if (obj4) {
3547 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3549 }
3550 {
3551 if (!wxPyCheckForApp()) SWIG_fail;
3552 PyThreadState* __tstate = wxPyBeginAllowThreads();
3553 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3554
3555 wxPyEndAllowThreads(__tstate);
3556 if (PyErr_Occurred()) SWIG_fail;
3557 }
3558 {
3559 #if wxUSE_UNICODE
3560 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3561 #else
3562 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3563 #endif
3564 }
3565 {
3566 if (temp1)
3567 delete arg1;
3568 }
3569 {
3570 if (temp2)
3571 delete arg2;
3572 }
3573 return resultobj;
3574 fail:
3575 {
3576 if (temp1)
3577 delete arg1;
3578 }
3579 {
3580 if (temp2)
3581 delete arg2;
3582 }
3583 return NULL;
3584 }
3585
3586
3587 static PyObject *_wrap_GetTextFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3588 PyObject *resultobj;
3589 wxString *arg1 = 0 ;
3590 wxString const &arg2_defvalue = wxPyEmptyString ;
3591 wxString *arg2 = (wxString *) &arg2_defvalue ;
3592 wxString const &arg3_defvalue = wxPyEmptyString ;
3593 wxString *arg3 = (wxString *) &arg3_defvalue ;
3594 wxWindow *arg4 = (wxWindow *) NULL ;
3595 int arg5 = (int) -1 ;
3596 int arg6 = (int) -1 ;
3597 bool arg7 = (bool) true ;
3598 wxString result;
3599 bool temp1 = false ;
3600 bool temp2 = false ;
3601 bool temp3 = false ;
3602 PyObject * obj0 = 0 ;
3603 PyObject * obj1 = 0 ;
3604 PyObject * obj2 = 0 ;
3605 PyObject * obj3 = 0 ;
3606 PyObject * obj4 = 0 ;
3607 PyObject * obj5 = 0 ;
3608 PyObject * obj6 = 0 ;
3609 char *kwnames[] = {
3610 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3611 };
3612
3613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3614 {
3615 arg1 = wxString_in_helper(obj0);
3616 if (arg1 == NULL) SWIG_fail;
3617 temp1 = true;
3618 }
3619 if (obj1) {
3620 {
3621 arg2 = wxString_in_helper(obj1);
3622 if (arg2 == NULL) SWIG_fail;
3623 temp2 = true;
3624 }
3625 }
3626 if (obj2) {
3627 {
3628 arg3 = wxString_in_helper(obj2);
3629 if (arg3 == NULL) SWIG_fail;
3630 temp3 = true;
3631 }
3632 }
3633 if (obj3) {
3634 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3636 }
3637 if (obj4) {
3638 arg5 = (int)SWIG_As_int(obj4);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 if (obj5) {
3642 arg6 = (int)SWIG_As_int(obj5);
3643 if (PyErr_Occurred()) SWIG_fail;
3644 }
3645 if (obj6) {
3646 arg7 = (bool)SWIG_As_bool(obj6);
3647 if (PyErr_Occurred()) SWIG_fail;
3648 }
3649 {
3650 if (!wxPyCheckForApp()) SWIG_fail;
3651 PyThreadState* __tstate = wxPyBeginAllowThreads();
3652 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3653
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) SWIG_fail;
3656 }
3657 {
3658 #if wxUSE_UNICODE
3659 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3660 #else
3661 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3662 #endif
3663 }
3664 {
3665 if (temp1)
3666 delete arg1;
3667 }
3668 {
3669 if (temp2)
3670 delete arg2;
3671 }
3672 {
3673 if (temp3)
3674 delete arg3;
3675 }
3676 return resultobj;
3677 fail:
3678 {
3679 if (temp1)
3680 delete arg1;
3681 }
3682 {
3683 if (temp2)
3684 delete arg2;
3685 }
3686 {
3687 if (temp3)
3688 delete arg3;
3689 }
3690 return NULL;
3691 }
3692
3693
3694 static PyObject *_wrap_GetPasswordFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
3695 PyObject *resultobj;
3696 wxString *arg1 = 0 ;
3697 wxString const &arg2_defvalue = wxPyEmptyString ;
3698 wxString *arg2 = (wxString *) &arg2_defvalue ;
3699 wxString const &arg3_defvalue = wxPyEmptyString ;
3700 wxString *arg3 = (wxString *) &arg3_defvalue ;
3701 wxWindow *arg4 = (wxWindow *) NULL ;
3702 wxString result;
3703 bool temp1 = false ;
3704 bool temp2 = false ;
3705 bool temp3 = false ;
3706 PyObject * obj0 = 0 ;
3707 PyObject * obj1 = 0 ;
3708 PyObject * obj2 = 0 ;
3709 PyObject * obj3 = 0 ;
3710 char *kwnames[] = {
3711 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3712 };
3713
3714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3715 {
3716 arg1 = wxString_in_helper(obj0);
3717 if (arg1 == NULL) SWIG_fail;
3718 temp1 = true;
3719 }
3720 if (obj1) {
3721 {
3722 arg2 = wxString_in_helper(obj1);
3723 if (arg2 == NULL) SWIG_fail;
3724 temp2 = true;
3725 }
3726 }
3727 if (obj2) {
3728 {
3729 arg3 = wxString_in_helper(obj2);
3730 if (arg3 == NULL) SWIG_fail;
3731 temp3 = true;
3732 }
3733 }
3734 if (obj3) {
3735 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3737 }
3738 {
3739 if (!wxPyCheckForApp()) SWIG_fail;
3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
3741 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3742
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 {
3747 #if wxUSE_UNICODE
3748 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3749 #else
3750 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3751 #endif
3752 }
3753 {
3754 if (temp1)
3755 delete arg1;
3756 }
3757 {
3758 if (temp2)
3759 delete arg2;
3760 }
3761 {
3762 if (temp3)
3763 delete arg3;
3764 }
3765 return resultobj;
3766 fail:
3767 {
3768 if (temp1)
3769 delete arg1;
3770 }
3771 {
3772 if (temp2)
3773 delete arg2;
3774 }
3775 {
3776 if (temp3)
3777 delete arg3;
3778 }
3779 return NULL;
3780 }
3781
3782
3783 static PyObject *_wrap_GetSingleChoice(PyObject *, PyObject *args, PyObject *kwargs) {
3784 PyObject *resultobj;
3785 wxString *arg1 = 0 ;
3786 wxString *arg2 = 0 ;
3787 int arg3 ;
3788 wxString *arg4 = (wxString *) 0 ;
3789 wxWindow *arg5 = (wxWindow *) NULL ;
3790 int arg6 = (int) -1 ;
3791 int arg7 = (int) -1 ;
3792 bool arg8 = (bool) true ;
3793 int arg9 = (int) 150 ;
3794 int arg10 = (int) 200 ;
3795 wxString result;
3796 bool temp1 = false ;
3797 bool temp2 = false ;
3798 PyObject * obj0 = 0 ;
3799 PyObject * obj1 = 0 ;
3800 PyObject * obj2 = 0 ;
3801 PyObject * obj3 = 0 ;
3802 PyObject * obj4 = 0 ;
3803 PyObject * obj5 = 0 ;
3804 PyObject * obj6 = 0 ;
3805 PyObject * obj7 = 0 ;
3806 PyObject * obj8 = 0 ;
3807 char *kwnames[] = {
3808 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3809 };
3810
3811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3812 {
3813 arg1 = wxString_in_helper(obj0);
3814 if (arg1 == NULL) SWIG_fail;
3815 temp1 = true;
3816 }
3817 {
3818 arg2 = wxString_in_helper(obj1);
3819 if (arg2 == NULL) SWIG_fail;
3820 temp2 = true;
3821 }
3822 {
3823 arg3 = PyList_Size(obj2);
3824 arg4 = wxString_LIST_helper(obj2);
3825 if (arg4 == NULL) SWIG_fail;
3826 }
3827 if (obj3) {
3828 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3830 }
3831 if (obj4) {
3832 arg6 = (int)SWIG_As_int(obj4);
3833 if (PyErr_Occurred()) SWIG_fail;
3834 }
3835 if (obj5) {
3836 arg7 = (int)SWIG_As_int(obj5);
3837 if (PyErr_Occurred()) SWIG_fail;
3838 }
3839 if (obj6) {
3840 arg8 = (bool)SWIG_As_bool(obj6);
3841 if (PyErr_Occurred()) SWIG_fail;
3842 }
3843 if (obj7) {
3844 arg9 = (int)SWIG_As_int(obj7);
3845 if (PyErr_Occurred()) SWIG_fail;
3846 }
3847 if (obj8) {
3848 arg10 = (int)SWIG_As_int(obj8);
3849 if (PyErr_Occurred()) SWIG_fail;
3850 }
3851 {
3852 if (!wxPyCheckForApp()) SWIG_fail;
3853 PyThreadState* __tstate = wxPyBeginAllowThreads();
3854 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3855
3856 wxPyEndAllowThreads(__tstate);
3857 if (PyErr_Occurred()) SWIG_fail;
3858 }
3859 {
3860 #if wxUSE_UNICODE
3861 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3862 #else
3863 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3864 #endif
3865 }
3866 {
3867 if (temp1)
3868 delete arg1;
3869 }
3870 {
3871 if (temp2)
3872 delete arg2;
3873 }
3874 {
3875 if (arg4) delete [] arg4;
3876 }
3877 return resultobj;
3878 fail:
3879 {
3880 if (temp1)
3881 delete arg1;
3882 }
3883 {
3884 if (temp2)
3885 delete arg2;
3886 }
3887 {
3888 if (arg4) delete [] arg4;
3889 }
3890 return NULL;
3891 }
3892
3893
3894 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *, PyObject *args, PyObject *kwargs) {
3895 PyObject *resultobj;
3896 wxString *arg1 = 0 ;
3897 wxString *arg2 = 0 ;
3898 int arg3 ;
3899 wxString *arg4 = (wxString *) 0 ;
3900 wxWindow *arg5 = (wxWindow *) NULL ;
3901 int arg6 = (int) -1 ;
3902 int arg7 = (int) -1 ;
3903 bool arg8 = (bool) true ;
3904 int arg9 = (int) 150 ;
3905 int arg10 = (int) 200 ;
3906 int result;
3907 bool temp1 = false ;
3908 bool temp2 = false ;
3909 PyObject * obj0 = 0 ;
3910 PyObject * obj1 = 0 ;
3911 PyObject * obj2 = 0 ;
3912 PyObject * obj3 = 0 ;
3913 PyObject * obj4 = 0 ;
3914 PyObject * obj5 = 0 ;
3915 PyObject * obj6 = 0 ;
3916 PyObject * obj7 = 0 ;
3917 PyObject * obj8 = 0 ;
3918 char *kwnames[] = {
3919 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3920 };
3921
3922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3923 {
3924 arg1 = wxString_in_helper(obj0);
3925 if (arg1 == NULL) SWIG_fail;
3926 temp1 = true;
3927 }
3928 {
3929 arg2 = wxString_in_helper(obj1);
3930 if (arg2 == NULL) SWIG_fail;
3931 temp2 = true;
3932 }
3933 {
3934 arg3 = PyList_Size(obj2);
3935 arg4 = wxString_LIST_helper(obj2);
3936 if (arg4 == NULL) SWIG_fail;
3937 }
3938 if (obj3) {
3939 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3941 }
3942 if (obj4) {
3943 arg6 = (int)SWIG_As_int(obj4);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 if (obj5) {
3947 arg7 = (int)SWIG_As_int(obj5);
3948 if (PyErr_Occurred()) SWIG_fail;
3949 }
3950 if (obj6) {
3951 arg8 = (bool)SWIG_As_bool(obj6);
3952 if (PyErr_Occurred()) SWIG_fail;
3953 }
3954 if (obj7) {
3955 arg9 = (int)SWIG_As_int(obj7);
3956 if (PyErr_Occurred()) SWIG_fail;
3957 }
3958 if (obj8) {
3959 arg10 = (int)SWIG_As_int(obj8);
3960 if (PyErr_Occurred()) SWIG_fail;
3961 }
3962 {
3963 if (!wxPyCheckForApp()) SWIG_fail;
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3966
3967 wxPyEndAllowThreads(__tstate);
3968 if (PyErr_Occurred()) SWIG_fail;
3969 }
3970 resultobj = SWIG_From_int((int)result);
3971 {
3972 if (temp1)
3973 delete arg1;
3974 }
3975 {
3976 if (temp2)
3977 delete arg2;
3978 }
3979 {
3980 if (arg4) delete [] arg4;
3981 }
3982 return resultobj;
3983 fail:
3984 {
3985 if (temp1)
3986 delete arg1;
3987 }
3988 {
3989 if (temp2)
3990 delete arg2;
3991 }
3992 {
3993 if (arg4) delete [] arg4;
3994 }
3995 return NULL;
3996 }
3997
3998
3999 static PyObject *_wrap_MessageBox(PyObject *, PyObject *args, PyObject *kwargs) {
4000 PyObject *resultobj;
4001 wxString *arg1 = 0 ;
4002 wxString const &arg2_defvalue = wxPyEmptyString ;
4003 wxString *arg2 = (wxString *) &arg2_defvalue ;
4004 int arg3 = (int) wxOK|wxCENTRE ;
4005 wxWindow *arg4 = (wxWindow *) NULL ;
4006 int arg5 = (int) -1 ;
4007 int arg6 = (int) -1 ;
4008 int result;
4009 bool temp1 = false ;
4010 bool temp2 = false ;
4011 PyObject * obj0 = 0 ;
4012 PyObject * obj1 = 0 ;
4013 PyObject * obj2 = 0 ;
4014 PyObject * obj3 = 0 ;
4015 PyObject * obj4 = 0 ;
4016 PyObject * obj5 = 0 ;
4017 char *kwnames[] = {
4018 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
4019 };
4020
4021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4022 {
4023 arg1 = wxString_in_helper(obj0);
4024 if (arg1 == NULL) SWIG_fail;
4025 temp1 = true;
4026 }
4027 if (obj1) {
4028 {
4029 arg2 = wxString_in_helper(obj1);
4030 if (arg2 == NULL) SWIG_fail;
4031 temp2 = true;
4032 }
4033 }
4034 if (obj2) {
4035 arg3 = (int)SWIG_As_int(obj2);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 if (obj3) {
4039 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
4040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4041 }
4042 if (obj4) {
4043 arg5 = (int)SWIG_As_int(obj4);
4044 if (PyErr_Occurred()) SWIG_fail;
4045 }
4046 if (obj5) {
4047 arg6 = (int)SWIG_As_int(obj5);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 {
4051 if (!wxPyCheckForApp()) SWIG_fail;
4052 PyThreadState* __tstate = wxPyBeginAllowThreads();
4053 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
4054
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 resultobj = SWIG_From_int((int)result);
4059 {
4060 if (temp1)
4061 delete arg1;
4062 }
4063 {
4064 if (temp2)
4065 delete arg2;
4066 }
4067 return resultobj;
4068 fail:
4069 {
4070 if (temp1)
4071 delete arg1;
4072 }
4073 {
4074 if (temp2)
4075 delete arg2;
4076 }
4077 return NULL;
4078 }
4079
4080
4081 static PyObject *_wrap_GetNumberFromUser(PyObject *, PyObject *args, PyObject *kwargs) {
4082 PyObject *resultobj;
4083 wxString *arg1 = 0 ;
4084 wxString *arg2 = 0 ;
4085 wxString *arg3 = 0 ;
4086 long arg4 ;
4087 long arg5 = (long) 0 ;
4088 long arg6 = (long) 100 ;
4089 wxWindow *arg7 = (wxWindow *) NULL ;
4090 wxPoint const &arg8_defvalue = wxDefaultPosition ;
4091 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
4092 long result;
4093 bool temp1 = false ;
4094 bool temp2 = false ;
4095 bool temp3 = false ;
4096 wxPoint temp8 ;
4097 PyObject * obj0 = 0 ;
4098 PyObject * obj1 = 0 ;
4099 PyObject * obj2 = 0 ;
4100 PyObject * obj3 = 0 ;
4101 PyObject * obj4 = 0 ;
4102 PyObject * obj5 = 0 ;
4103 PyObject * obj6 = 0 ;
4104 PyObject * obj7 = 0 ;
4105 char *kwnames[] = {
4106 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
4107 };
4108
4109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4110 {
4111 arg1 = wxString_in_helper(obj0);
4112 if (arg1 == NULL) SWIG_fail;
4113 temp1 = true;
4114 }
4115 {
4116 arg2 = wxString_in_helper(obj1);
4117 if (arg2 == NULL) SWIG_fail;
4118 temp2 = true;
4119 }
4120 {
4121 arg3 = wxString_in_helper(obj2);
4122 if (arg3 == NULL) SWIG_fail;
4123 temp3 = true;
4124 }
4125 arg4 = (long)SWIG_As_long(obj3);
4126 if (PyErr_Occurred()) SWIG_fail;
4127 if (obj4) {
4128 arg5 = (long)SWIG_As_long(obj4);
4129 if (PyErr_Occurred()) SWIG_fail;
4130 }
4131 if (obj5) {
4132 arg6 = (long)SWIG_As_long(obj5);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 }
4135 if (obj6) {
4136 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
4137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4138 }
4139 if (obj7) {
4140 {
4141 arg8 = &temp8;
4142 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
4143 }
4144 }
4145 {
4146 if (!wxPyCheckForApp()) SWIG_fail;
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
4149
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 resultobj = SWIG_From_long((long)result);
4154 {
4155 if (temp1)
4156 delete arg1;
4157 }
4158 {
4159 if (temp2)
4160 delete arg2;
4161 }
4162 {
4163 if (temp3)
4164 delete arg3;
4165 }
4166 return resultobj;
4167 fail:
4168 {
4169 if (temp1)
4170 delete arg1;
4171 }
4172 {
4173 if (temp2)
4174 delete arg2;
4175 }
4176 {
4177 if (temp3)
4178 delete arg3;
4179 }
4180 return NULL;
4181 }
4182
4183
4184 static PyObject *_wrap_ColourDisplay(PyObject *, PyObject *args, PyObject *kwargs) {
4185 PyObject *resultobj;
4186 bool result;
4187 char *kwnames[] = {
4188 NULL
4189 };
4190
4191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
4192 {
4193 if (!wxPyCheckForApp()) SWIG_fail;
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 result = (bool)wxColourDisplay();
4196
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 {
4201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4202 }
4203 return resultobj;
4204 fail:
4205 return NULL;
4206 }
4207
4208
4209 static PyObject *_wrap_DisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4210 PyObject *resultobj;
4211 int result;
4212 char *kwnames[] = {
4213 NULL
4214 };
4215
4216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
4217 {
4218 if (!wxPyCheckForApp()) SWIG_fail;
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 result = (int)wxDisplayDepth();
4221
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 resultobj = SWIG_From_int((int)result);
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 static PyObject *_wrap_GetDisplayDepth(PyObject *, PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj;
4234 int result;
4235 char *kwnames[] = {
4236 NULL
4237 };
4238
4239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
4240 {
4241 if (!wxPyCheckForApp()) SWIG_fail;
4242 PyThreadState* __tstate = wxPyBeginAllowThreads();
4243 result = (int)wxGetDisplayDepth();
4244
4245 wxPyEndAllowThreads(__tstate);
4246 if (PyErr_Occurred()) SWIG_fail;
4247 }
4248 resultobj = SWIG_From_int((int)result);
4249 return resultobj;
4250 fail:
4251 return NULL;
4252 }
4253
4254
4255 static PyObject *_wrap_DisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
4256 PyObject *resultobj;
4257 int *arg1 = (int *) 0 ;
4258 int *arg2 = (int *) 0 ;
4259 int temp1 ;
4260 int res1 = 0 ;
4261 int temp2 ;
4262 int res2 = 0 ;
4263 char *kwnames[] = {
4264 NULL
4265 };
4266
4267 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4268 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4270 {
4271 if (!wxPyCheckForApp()) SWIG_fail;
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 wxDisplaySize(arg1,arg2);
4274
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 Py_INCREF(Py_None); resultobj = Py_None;
4279 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4280 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4281 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4282 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4283 return resultobj;
4284 fail:
4285 return NULL;
4286 }
4287
4288
4289 static PyObject *_wrap_GetDisplaySize(PyObject *, PyObject *args, PyObject *kwargs) {
4290 PyObject *resultobj;
4291 wxSize result;
4292 char *kwnames[] = {
4293 NULL
4294 };
4295
4296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4297 {
4298 if (!wxPyCheckForApp()) SWIG_fail;
4299 PyThreadState* __tstate = wxPyBeginAllowThreads();
4300 result = wxGetDisplaySize();
4301
4302 wxPyEndAllowThreads(__tstate);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 {
4306 wxSize * resultptr;
4307 resultptr = new wxSize((wxSize &) result);
4308 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4309 }
4310 return resultobj;
4311 fail:
4312 return NULL;
4313 }
4314
4315
4316 static PyObject *_wrap_DisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
4317 PyObject *resultobj;
4318 int *arg1 = (int *) 0 ;
4319 int *arg2 = (int *) 0 ;
4320 int temp1 ;
4321 int res1 = 0 ;
4322 int temp2 ;
4323 int res2 = 0 ;
4324 char *kwnames[] = {
4325 NULL
4326 };
4327
4328 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4329 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4331 {
4332 if (!wxPyCheckForApp()) SWIG_fail;
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 wxDisplaySizeMM(arg1,arg2);
4335
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 Py_INCREF(Py_None); resultobj = Py_None;
4340 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4341 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4342 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4343 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4344 return resultobj;
4345 fail:
4346 return NULL;
4347 }
4348
4349
4350 static PyObject *_wrap_GetDisplaySizeMM(PyObject *, PyObject *args, PyObject *kwargs) {
4351 PyObject *resultobj;
4352 wxSize result;
4353 char *kwnames[] = {
4354 NULL
4355 };
4356
4357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4358 {
4359 if (!wxPyCheckForApp()) SWIG_fail;
4360 PyThreadState* __tstate = wxPyBeginAllowThreads();
4361 result = wxGetDisplaySizeMM();
4362
4363 wxPyEndAllowThreads(__tstate);
4364 if (PyErr_Occurred()) SWIG_fail;
4365 }
4366 {
4367 wxSize * resultptr;
4368 resultptr = new wxSize((wxSize &) result);
4369 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4370 }
4371 return resultobj;
4372 fail:
4373 return NULL;
4374 }
4375
4376
4377 static PyObject *_wrap_ClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
4378 PyObject *resultobj;
4379 int *arg1 = (int *) 0 ;
4380 int *arg2 = (int *) 0 ;
4381 int *arg3 = (int *) 0 ;
4382 int *arg4 = (int *) 0 ;
4383 int temp1 ;
4384 int res1 = 0 ;
4385 int temp2 ;
4386 int res2 = 0 ;
4387 int temp3 ;
4388 int res3 = 0 ;
4389 int temp4 ;
4390 int res4 = 0 ;
4391 char *kwnames[] = {
4392 NULL
4393 };
4394
4395 arg1 = &temp1; res1 = SWIG_NEWOBJ;
4396 arg2 = &temp2; res2 = SWIG_NEWOBJ;
4397 arg3 = &temp3; res3 = SWIG_NEWOBJ;
4398 arg4 = &temp4; res4 = SWIG_NEWOBJ;
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4400 {
4401 if (!wxPyCheckForApp()) SWIG_fail;
4402 PyThreadState* __tstate = wxPyBeginAllowThreads();
4403 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4404
4405 wxPyEndAllowThreads(__tstate);
4406 if (PyErr_Occurred()) SWIG_fail;
4407 }
4408 Py_INCREF(Py_None); resultobj = Py_None;
4409 resultobj = t_output_helper(resultobj, ((res1 == SWIG_NEWOBJ) ?
4410 SWIG_From_int((*arg1)) : SWIG_NewPointerObj((void*)(arg1), SWIGTYPE_p_int, 0)));
4411 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
4412 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
4413 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
4414 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
4415 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
4416 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
4417 return resultobj;
4418 fail:
4419 return NULL;
4420 }
4421
4422
4423 static PyObject *_wrap_GetClientDisplayRect(PyObject *, PyObject *args, PyObject *kwargs) {
4424 PyObject *resultobj;
4425 wxRect result;
4426 char *kwnames[] = {
4427 NULL
4428 };
4429
4430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4431 {
4432 if (!wxPyCheckForApp()) SWIG_fail;
4433 PyThreadState* __tstate = wxPyBeginAllowThreads();
4434 result = wxGetClientDisplayRect();
4435
4436 wxPyEndAllowThreads(__tstate);
4437 if (PyErr_Occurred()) SWIG_fail;
4438 }
4439 {
4440 wxRect * resultptr;
4441 resultptr = new wxRect((wxRect &) result);
4442 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4443 }
4444 return resultobj;
4445 fail:
4446 return NULL;
4447 }
4448
4449
4450 static PyObject *_wrap_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4451 PyObject *resultobj;
4452 wxCursor *arg1 = 0 ;
4453 PyObject * obj0 = 0 ;
4454 char *kwnames[] = {
4455 (char *) "cursor", NULL
4456 };
4457
4458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4460 SWIG_POINTER_EXCEPTION | 0)) == -1)
4461 SWIG_fail;
4462 if (arg1 == NULL) {
4463 PyErr_SetString(PyExc_TypeError,"null reference");
4464 SWIG_fail;
4465 }
4466 {
4467 if (!wxPyCheckForApp()) SWIG_fail;
4468 PyThreadState* __tstate = wxPyBeginAllowThreads();
4469 wxSetCursor(*arg1);
4470
4471 wxPyEndAllowThreads(__tstate);
4472 if (PyErr_Occurred()) SWIG_fail;
4473 }
4474 Py_INCREF(Py_None); resultobj = Py_None;
4475 return resultobj;
4476 fail:
4477 return NULL;
4478 }
4479
4480
4481 static PyObject *_wrap_BeginBusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
4482 PyObject *resultobj;
4483 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4484 PyObject * obj0 = 0 ;
4485 char *kwnames[] = {
4486 (char *) "cursor", NULL
4487 };
4488
4489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4490 if (obj0) {
4491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4493 }
4494 {
4495 if (!wxPyCheckForApp()) SWIG_fail;
4496 PyThreadState* __tstate = wxPyBeginAllowThreads();
4497 wxBeginBusyCursor(arg1);
4498
4499 wxPyEndAllowThreads(__tstate);
4500 if (PyErr_Occurred()) SWIG_fail;
4501 }
4502 Py_INCREF(Py_None); resultobj = Py_None;
4503 return resultobj;
4504 fail:
4505 return NULL;
4506 }
4507
4508
4509 static PyObject *_wrap_GetActiveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4510 PyObject *resultobj;
4511 wxWindow *result;
4512 char *kwnames[] = {
4513 NULL
4514 };
4515
4516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4517 {
4518 if (!wxPyCheckForApp()) SWIG_fail;
4519 PyThreadState* __tstate = wxPyBeginAllowThreads();
4520 result = (wxWindow *)wxGetActiveWindow();
4521
4522 wxPyEndAllowThreads(__tstate);
4523 if (PyErr_Occurred()) SWIG_fail;
4524 }
4525 {
4526 resultobj = wxPyMake_wxObject(result, 0);
4527 }
4528 return resultobj;
4529 fail:
4530 return NULL;
4531 }
4532
4533
4534 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4535 PyObject *resultobj;
4536 wxPoint *arg1 = 0 ;
4537 wxWindow *result;
4538 wxPoint temp1 ;
4539 PyObject * obj0 = 0 ;
4540 char *kwnames[] = {
4541 (char *) "pt", NULL
4542 };
4543
4544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4545 {
4546 arg1 = &temp1;
4547 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4548 }
4549 {
4550 if (!wxPyCheckForApp()) SWIG_fail;
4551 PyThreadState* __tstate = wxPyBeginAllowThreads();
4552 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4553
4554 wxPyEndAllowThreads(__tstate);
4555 if (PyErr_Occurred()) SWIG_fail;
4556 }
4557 {
4558 resultobj = wxPyMake_wxObject(result, 0);
4559 }
4560 return resultobj;
4561 fail:
4562 return NULL;
4563 }
4564
4565
4566 static PyObject *_wrap_FindWindowAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
4567 PyObject *resultobj;
4568 wxPoint *arg1 = 0 ;
4569 wxWindow *result;
4570 wxPoint temp1 ;
4571 PyObject * obj0 = 0 ;
4572 char *kwnames[] = {
4573 (char *) "pt", NULL
4574 };
4575
4576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4577 {
4578 arg1 = &temp1;
4579 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4580 }
4581 {
4582 if (!wxPyCheckForApp()) SWIG_fail;
4583 PyThreadState* __tstate = wxPyBeginAllowThreads();
4584 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4585
4586 wxPyEndAllowThreads(__tstate);
4587 if (PyErr_Occurred()) SWIG_fail;
4588 }
4589 {
4590 resultobj = wxPyMake_wxObject(result, 0);
4591 }
4592 return resultobj;
4593 fail:
4594 return NULL;
4595 }
4596
4597
4598 static PyObject *_wrap_GetTopLevelParent(PyObject *, PyObject *args, PyObject *kwargs) {
4599 PyObject *resultobj;
4600 wxWindow *arg1 = (wxWindow *) 0 ;
4601 wxWindow *result;
4602 PyObject * obj0 = 0 ;
4603 char *kwnames[] = {
4604 (char *) "win", NULL
4605 };
4606
4607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4610 {
4611 if (!wxPyCheckForApp()) SWIG_fail;
4612 PyThreadState* __tstate = wxPyBeginAllowThreads();
4613 result = (wxWindow *)wxGetTopLevelParent(arg1);
4614
4615 wxPyEndAllowThreads(__tstate);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 }
4618 {
4619 resultobj = wxPyMake_wxObject(result, 0);
4620 }
4621 return resultobj;
4622 fail:
4623 return NULL;
4624 }
4625
4626
4627 static PyObject *_wrap_GetKeyState(PyObject *, PyObject *args, PyObject *kwargs) {
4628 PyObject *resultobj;
4629 int arg1 ;
4630 bool result;
4631 PyObject * obj0 = 0 ;
4632 char *kwnames[] = {
4633 (char *) "key", NULL
4634 };
4635
4636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4637 arg1 = (int)SWIG_As_int(obj0);
4638 if (PyErr_Occurred()) SWIG_fail;
4639 {
4640 if (!wxPyCheckForApp()) SWIG_fail;
4641 PyThreadState* __tstate = wxPyBeginAllowThreads();
4642 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4643
4644 wxPyEndAllowThreads(__tstate);
4645 if (PyErr_Occurred()) SWIG_fail;
4646 }
4647 {
4648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4649 }
4650 return resultobj;
4651 fail:
4652 return NULL;
4653 }
4654
4655
4656 static PyObject *_wrap_WakeUpMainThread(PyObject *, PyObject *args, PyObject *kwargs) {
4657 PyObject *resultobj;
4658 char *kwnames[] = {
4659 NULL
4660 };
4661
4662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4663 {
4664 if (!wxPyCheckForApp()) SWIG_fail;
4665 PyThreadState* __tstate = wxPyBeginAllowThreads();
4666 wxWakeUpMainThread();
4667
4668 wxPyEndAllowThreads(__tstate);
4669 if (PyErr_Occurred()) SWIG_fail;
4670 }
4671 Py_INCREF(Py_None); resultobj = Py_None;
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 static PyObject *_wrap_MutexGuiEnter(PyObject *, PyObject *args, PyObject *kwargs) {
4679 PyObject *resultobj;
4680 char *kwnames[] = {
4681 NULL
4682 };
4683
4684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4685 {
4686 if (!wxPyCheckForApp()) SWIG_fail;
4687 PyThreadState* __tstate = wxPyBeginAllowThreads();
4688 wxMutexGuiEnter();
4689
4690 wxPyEndAllowThreads(__tstate);
4691 if (PyErr_Occurred()) SWIG_fail;
4692 }
4693 Py_INCREF(Py_None); resultobj = Py_None;
4694 return resultobj;
4695 fail:
4696 return NULL;
4697 }
4698
4699
4700 static PyObject *_wrap_MutexGuiLeave(PyObject *, PyObject *args, PyObject *kwargs) {
4701 PyObject *resultobj;
4702 char *kwnames[] = {
4703 NULL
4704 };
4705
4706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4707 {
4708 if (!wxPyCheckForApp()) SWIG_fail;
4709 PyThreadState* __tstate = wxPyBeginAllowThreads();
4710 wxMutexGuiLeave();
4711
4712 wxPyEndAllowThreads(__tstate);
4713 if (PyErr_Occurred()) SWIG_fail;
4714 }
4715 Py_INCREF(Py_None); resultobj = Py_None;
4716 return resultobj;
4717 fail:
4718 return NULL;
4719 }
4720
4721
4722 static PyObject *_wrap_new_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4723 PyObject *resultobj;
4724 wxMutexGuiLocker *result;
4725 char *kwnames[] = {
4726 NULL
4727 };
4728
4729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4730 {
4731 if (!wxPyCheckForApp()) SWIG_fail;
4732 PyThreadState* __tstate = wxPyBeginAllowThreads();
4733 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4734
4735 wxPyEndAllowThreads(__tstate);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 }
4738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4739 return resultobj;
4740 fail:
4741 return NULL;
4742 }
4743
4744
4745 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *, PyObject *args, PyObject *kwargs) {
4746 PyObject *resultobj;
4747 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4748 PyObject * obj0 = 0 ;
4749 char *kwnames[] = {
4750 (char *) "self", NULL
4751 };
4752
4753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4756 {
4757 PyThreadState* __tstate = wxPyBeginAllowThreads();
4758 delete arg1;
4759
4760 wxPyEndAllowThreads(__tstate);
4761 if (PyErr_Occurred()) SWIG_fail;
4762 }
4763 Py_INCREF(Py_None); resultobj = Py_None;
4764 return resultobj;
4765 fail:
4766 return NULL;
4767 }
4768
4769
4770 static PyObject * MutexGuiLocker_swigregister(PyObject *, PyObject *args) {
4771 PyObject *obj;
4772 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4773 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4774 Py_INCREF(obj);
4775 return Py_BuildValue((char *)"");
4776 }
4777 static PyObject *_wrap_Thread_IsMain(PyObject *, PyObject *args, PyObject *kwargs) {
4778 PyObject *resultobj;
4779 bool result;
4780 char *kwnames[] = {
4781 NULL
4782 };
4783
4784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4785 {
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 result = (bool)wxThread_IsMain();
4788
4789 wxPyEndAllowThreads(__tstate);
4790 if (PyErr_Occurred()) SWIG_fail;
4791 }
4792 {
4793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4794 }
4795 return resultobj;
4796 fail:
4797 return NULL;
4798 }
4799
4800
4801 static PyObject *_wrap_new_ToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
4802 PyObject *resultobj;
4803 wxString *arg1 = 0 ;
4804 wxToolTip *result;
4805 bool temp1 = false ;
4806 PyObject * obj0 = 0 ;
4807 char *kwnames[] = {
4808 (char *) "tip", NULL
4809 };
4810
4811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4812 {
4813 arg1 = wxString_in_helper(obj0);
4814 if (arg1 == NULL) SWIG_fail;
4815 temp1 = true;
4816 }
4817 {
4818 if (!wxPyCheckForApp()) SWIG_fail;
4819 PyThreadState* __tstate = wxPyBeginAllowThreads();
4820 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4821
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 {
4826 resultobj = wxPyMake_wxObject(result, 1);
4827 }
4828 {
4829 if (temp1)
4830 delete arg1;
4831 }
4832 return resultobj;
4833 fail:
4834 {
4835 if (temp1)
4836 delete arg1;
4837 }
4838 return NULL;
4839 }
4840
4841
4842 static PyObject *_wrap_ToolTip_SetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4843 PyObject *resultobj;
4844 wxToolTip *arg1 = (wxToolTip *) 0 ;
4845 wxString *arg2 = 0 ;
4846 bool temp2 = false ;
4847 PyObject * obj0 = 0 ;
4848 PyObject * obj1 = 0 ;
4849 char *kwnames[] = {
4850 (char *) "self",(char *) "tip", NULL
4851 };
4852
4853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4856 {
4857 arg2 = wxString_in_helper(obj1);
4858 if (arg2 == NULL) SWIG_fail;
4859 temp2 = true;
4860 }
4861 {
4862 PyThreadState* __tstate = wxPyBeginAllowThreads();
4863 (arg1)->SetTip((wxString const &)*arg2);
4864
4865 wxPyEndAllowThreads(__tstate);
4866 if (PyErr_Occurred()) SWIG_fail;
4867 }
4868 Py_INCREF(Py_None); resultobj = Py_None;
4869 {
4870 if (temp2)
4871 delete arg2;
4872 }
4873 return resultobj;
4874 fail:
4875 {
4876 if (temp2)
4877 delete arg2;
4878 }
4879 return NULL;
4880 }
4881
4882
4883 static PyObject *_wrap_ToolTip_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
4884 PyObject *resultobj;
4885 wxToolTip *arg1 = (wxToolTip *) 0 ;
4886 wxString result;
4887 PyObject * obj0 = 0 ;
4888 char *kwnames[] = {
4889 (char *) "self", NULL
4890 };
4891
4892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4895 {
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 result = (arg1)->GetTip();
4898
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 {
4903 #if wxUSE_UNICODE
4904 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4905 #else
4906 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4907 #endif
4908 }
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 static PyObject *_wrap_ToolTip_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
4916 PyObject *resultobj;
4917 wxToolTip *arg1 = (wxToolTip *) 0 ;
4918 wxWindow *result;
4919 PyObject * obj0 = 0 ;
4920 char *kwnames[] = {
4921 (char *) "self", NULL
4922 };
4923
4924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4927 {
4928 PyThreadState* __tstate = wxPyBeginAllowThreads();
4929 result = (wxWindow *)(arg1)->GetWindow();
4930
4931 wxPyEndAllowThreads(__tstate);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 }
4934 {
4935 resultobj = wxPyMake_wxObject(result, 0);
4936 }
4937 return resultobj;
4938 fail:
4939 return NULL;
4940 }
4941
4942
4943 static PyObject *_wrap_ToolTip_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
4944 PyObject *resultobj;
4945 bool arg1 ;
4946 PyObject * obj0 = 0 ;
4947 char *kwnames[] = {
4948 (char *) "flag", NULL
4949 };
4950
4951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4952 arg1 = (bool)SWIG_As_bool(obj0);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 {
4955 PyThreadState* __tstate = wxPyBeginAllowThreads();
4956 wxToolTip::Enable(arg1);
4957
4958 wxPyEndAllowThreads(__tstate);
4959 if (PyErr_Occurred()) SWIG_fail;
4960 }
4961 Py_INCREF(Py_None); resultobj = Py_None;
4962 return resultobj;
4963 fail:
4964 return NULL;
4965 }
4966
4967
4968 static PyObject *_wrap_ToolTip_SetDelay(PyObject *, PyObject *args, PyObject *kwargs) {
4969 PyObject *resultobj;
4970 long arg1 ;
4971 PyObject * obj0 = 0 ;
4972 char *kwnames[] = {
4973 (char *) "milliseconds", NULL
4974 };
4975
4976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4977 arg1 = (long)SWIG_As_long(obj0);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 {
4980 PyThreadState* __tstate = wxPyBeginAllowThreads();
4981 wxToolTip::SetDelay(arg1);
4982
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 Py_INCREF(Py_None); resultobj = Py_None;
4987 return resultobj;
4988 fail:
4989 return NULL;
4990 }
4991
4992
4993 static PyObject * ToolTip_swigregister(PyObject *, PyObject *args) {
4994 PyObject *obj;
4995 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4996 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4997 Py_INCREF(obj);
4998 return Py_BuildValue((char *)"");
4999 }
5000 static PyObject *_wrap_new_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
5001 PyObject *resultobj;
5002 wxWindow *arg1 = (wxWindow *) 0 ;
5003 wxSize *arg2 = 0 ;
5004 wxCaret *result;
5005 wxSize temp2 ;
5006 PyObject * obj0 = 0 ;
5007 PyObject * obj1 = 0 ;
5008 char *kwnames[] = {
5009 (char *) "window",(char *) "size", NULL
5010 };
5011
5012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
5013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5015 {
5016 arg2 = &temp2;
5017 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5018 }
5019 {
5020 if (!wxPyCheckForApp()) SWIG_fail;
5021 PyThreadState* __tstate = wxPyBeginAllowThreads();
5022 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
5023
5024 wxPyEndAllowThreads(__tstate);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 }
5027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
5028 return resultobj;
5029 fail:
5030 return NULL;
5031 }
5032
5033
5034 static PyObject *_wrap_delete_Caret(PyObject *, PyObject *args, PyObject *kwargs) {
5035 PyObject *resultobj;
5036 wxCaret *arg1 = (wxCaret *) 0 ;
5037 PyObject * obj0 = 0 ;
5038 char *kwnames[] = {
5039 (char *) "self", NULL
5040 };
5041
5042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
5043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5045 {
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 delete arg1;
5048
5049 wxPyEndAllowThreads(__tstate);
5050 if (PyErr_Occurred()) SWIG_fail;
5051 }
5052 Py_INCREF(Py_None); resultobj = Py_None;
5053 return resultobj;
5054 fail:
5055 return NULL;
5056 }
5057
5058
5059 static PyObject *_wrap_Caret_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
5060 PyObject *resultobj;
5061 wxCaret *arg1 = (wxCaret *) 0 ;
5062 bool result;
5063 PyObject * obj0 = 0 ;
5064 char *kwnames[] = {
5065 (char *) "self", NULL
5066 };
5067
5068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
5069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5071 {
5072 PyThreadState* __tstate = wxPyBeginAllowThreads();
5073 result = (bool)(arg1)->IsOk();
5074
5075 wxPyEndAllowThreads(__tstate);
5076 if (PyErr_Occurred()) SWIG_fail;
5077 }
5078 {
5079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5080 }
5081 return resultobj;
5082 fail:
5083 return NULL;
5084 }
5085
5086
5087 static PyObject *_wrap_Caret_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
5088 PyObject *resultobj;
5089 wxCaret *arg1 = (wxCaret *) 0 ;
5090 bool result;
5091 PyObject * obj0 = 0 ;
5092 char *kwnames[] = {
5093 (char *) "self", NULL
5094 };
5095
5096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
5097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5099 {
5100 PyThreadState* __tstate = wxPyBeginAllowThreads();
5101 result = (bool)(arg1)->IsVisible();
5102
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 {
5107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5108 }
5109 return resultobj;
5110 fail:
5111 return NULL;
5112 }
5113
5114
5115 static PyObject *_wrap_Caret_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
5116 PyObject *resultobj;
5117 wxCaret *arg1 = (wxCaret *) 0 ;
5118 wxPoint result;
5119 PyObject * obj0 = 0 ;
5120 char *kwnames[] = {
5121 (char *) "self", NULL
5122 };
5123
5124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
5125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5127 {
5128 PyThreadState* __tstate = wxPyBeginAllowThreads();
5129 result = (arg1)->GetPosition();
5130
5131 wxPyEndAllowThreads(__tstate);
5132 if (PyErr_Occurred()) SWIG_fail;
5133 }
5134 {
5135 wxPoint * resultptr;
5136 resultptr = new wxPoint((wxPoint &) result);
5137 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
5138 }
5139 return resultobj;
5140 fail:
5141 return NULL;
5142 }
5143
5144
5145 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
5146 PyObject *resultobj;
5147 wxCaret *arg1 = (wxCaret *) 0 ;
5148 int *arg2 = (int *) 0 ;
5149 int *arg3 = (int *) 0 ;
5150 int temp2 ;
5151 int res2 = 0 ;
5152 int temp3 ;
5153 int res3 = 0 ;
5154 PyObject * obj0 = 0 ;
5155 char *kwnames[] = {
5156 (char *) "self", NULL
5157 };
5158
5159 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5160 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
5162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5164 {
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 (arg1)->GetPosition(arg2,arg3);
5167
5168 wxPyEndAllowThreads(__tstate);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
5171 Py_INCREF(Py_None); resultobj = Py_None;
5172 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5173 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5174 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5175 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5176 return resultobj;
5177 fail:
5178 return NULL;
5179 }
5180
5181
5182 static PyObject *_wrap_Caret_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5183 PyObject *resultobj;
5184 wxCaret *arg1 = (wxCaret *) 0 ;
5185 wxSize result;
5186 PyObject * obj0 = 0 ;
5187 char *kwnames[] = {
5188 (char *) "self", NULL
5189 };
5190
5191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
5192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5194 {
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 result = (arg1)->GetSize();
5197
5198 wxPyEndAllowThreads(__tstate);
5199 if (PyErr_Occurred()) SWIG_fail;
5200 }
5201 {
5202 wxSize * resultptr;
5203 resultptr = new wxSize((wxSize &) result);
5204 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
5205 }
5206 return resultobj;
5207 fail:
5208 return NULL;
5209 }
5210
5211
5212 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
5213 PyObject *resultobj;
5214 wxCaret *arg1 = (wxCaret *) 0 ;
5215 int *arg2 = (int *) 0 ;
5216 int *arg3 = (int *) 0 ;
5217 int temp2 ;
5218 int res2 = 0 ;
5219 int temp3 ;
5220 int res3 = 0 ;
5221 PyObject * obj0 = 0 ;
5222 char *kwnames[] = {
5223 (char *) "self", NULL
5224 };
5225
5226 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5227 arg3 = &temp3; res3 = SWIG_NEWOBJ;
5228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
5229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5231 {
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 (arg1)->GetSize(arg2,arg3);
5234
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 Py_INCREF(Py_None); resultobj = Py_None;
5239 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5240 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5241 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5242 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
5243 return resultobj;
5244 fail:
5245 return NULL;
5246 }
5247
5248
5249 static PyObject *_wrap_Caret_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
5250 PyObject *resultobj;
5251 wxCaret *arg1 = (wxCaret *) 0 ;
5252 wxWindow *result;
5253 PyObject * obj0 = 0 ;
5254 char *kwnames[] = {
5255 (char *) "self", NULL
5256 };
5257
5258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5261 {
5262 PyThreadState* __tstate = wxPyBeginAllowThreads();
5263 result = (wxWindow *)(arg1)->GetWindow();
5264
5265 wxPyEndAllowThreads(__tstate);
5266 if (PyErr_Occurred()) SWIG_fail;
5267 }
5268 {
5269 resultobj = wxPyMake_wxObject(result, 0);
5270 }
5271 return resultobj;
5272 fail:
5273 return NULL;
5274 }
5275
5276
5277 static PyObject *_wrap_Caret_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
5278 PyObject *resultobj;
5279 wxCaret *arg1 = (wxCaret *) 0 ;
5280 int arg2 ;
5281 int arg3 ;
5282 PyObject * obj0 = 0 ;
5283 PyObject * obj1 = 0 ;
5284 PyObject * obj2 = 0 ;
5285 char *kwnames[] = {
5286 (char *) "self",(char *) "x",(char *) "y", NULL
5287 };
5288
5289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5292 arg2 = (int)SWIG_As_int(obj1);
5293 if (PyErr_Occurred()) SWIG_fail;
5294 arg3 = (int)SWIG_As_int(obj2);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 {
5297 PyThreadState* __tstate = wxPyBeginAllowThreads();
5298 (arg1)->Move(arg2,arg3);
5299
5300 wxPyEndAllowThreads(__tstate);
5301 if (PyErr_Occurred()) SWIG_fail;
5302 }
5303 Py_INCREF(Py_None); resultobj = Py_None;
5304 return resultobj;
5305 fail:
5306 return NULL;
5307 }
5308
5309
5310 static PyObject *_wrap_Caret_Move(PyObject *, PyObject *args, PyObject *kwargs) {
5311 PyObject *resultobj;
5312 wxCaret *arg1 = (wxCaret *) 0 ;
5313 wxPoint *arg2 = 0 ;
5314 wxPoint temp2 ;
5315 PyObject * obj0 = 0 ;
5316 PyObject * obj1 = 0 ;
5317 char *kwnames[] = {
5318 (char *) "self",(char *) "pt", NULL
5319 };
5320
5321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5324 {
5325 arg2 = &temp2;
5326 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5327 }
5328 {
5329 PyThreadState* __tstate = wxPyBeginAllowThreads();
5330 (arg1)->Move((wxPoint const &)*arg2);
5331
5332 wxPyEndAllowThreads(__tstate);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 }
5335 Py_INCREF(Py_None); resultobj = Py_None;
5336 return resultobj;
5337 fail:
5338 return NULL;
5339 }
5340
5341
5342 static PyObject *_wrap_Caret_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
5343 PyObject *resultobj;
5344 wxCaret *arg1 = (wxCaret *) 0 ;
5345 int arg2 ;
5346 int arg3 ;
5347 PyObject * obj0 = 0 ;
5348 PyObject * obj1 = 0 ;
5349 PyObject * obj2 = 0 ;
5350 char *kwnames[] = {
5351 (char *) "self",(char *) "width",(char *) "height", NULL
5352 };
5353
5354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5357 arg2 = (int)SWIG_As_int(obj1);
5358 if (PyErr_Occurred()) SWIG_fail;
5359 arg3 = (int)SWIG_As_int(obj2);
5360 if (PyErr_Occurred()) SWIG_fail;
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 (arg1)->SetSize(arg2,arg3);
5364
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 Py_INCREF(Py_None); resultobj = Py_None;
5369 return resultobj;
5370 fail:
5371 return NULL;
5372 }
5373
5374
5375 static PyObject *_wrap_Caret_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
5376 PyObject *resultobj;
5377 wxCaret *arg1 = (wxCaret *) 0 ;
5378 wxSize *arg2 = 0 ;
5379 wxSize temp2 ;
5380 PyObject * obj0 = 0 ;
5381 PyObject * obj1 = 0 ;
5382 char *kwnames[] = {
5383 (char *) "self",(char *) "size", NULL
5384 };
5385
5386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5389 {
5390 arg2 = &temp2;
5391 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5392 }
5393 {
5394 PyThreadState* __tstate = wxPyBeginAllowThreads();
5395 (arg1)->SetSize((wxSize const &)*arg2);
5396
5397 wxPyEndAllowThreads(__tstate);
5398 if (PyErr_Occurred()) SWIG_fail;
5399 }
5400 Py_INCREF(Py_None); resultobj = Py_None;
5401 return resultobj;
5402 fail:
5403 return NULL;
5404 }
5405
5406
5407 static PyObject *_wrap_Caret_Show(PyObject *, PyObject *args, PyObject *kwargs) {
5408 PyObject *resultobj;
5409 wxCaret *arg1 = (wxCaret *) 0 ;
5410 int arg2 = (int) true ;
5411 PyObject * obj0 = 0 ;
5412 PyObject * obj1 = 0 ;
5413 char *kwnames[] = {
5414 (char *) "self",(char *) "show", NULL
5415 };
5416
5417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5420 if (obj1) {
5421 arg2 = (int)SWIG_As_int(obj1);
5422 if (PyErr_Occurred()) SWIG_fail;
5423 }
5424 {
5425 PyThreadState* __tstate = wxPyBeginAllowThreads();
5426 (arg1)->Show(arg2);
5427
5428 wxPyEndAllowThreads(__tstate);
5429 if (PyErr_Occurred()) SWIG_fail;
5430 }
5431 Py_INCREF(Py_None); resultobj = Py_None;
5432 return resultobj;
5433 fail:
5434 return NULL;
5435 }
5436
5437
5438 static PyObject *_wrap_Caret_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
5439 PyObject *resultobj;
5440 wxCaret *arg1 = (wxCaret *) 0 ;
5441 PyObject * obj0 = 0 ;
5442 char *kwnames[] = {
5443 (char *) "self", NULL
5444 };
5445
5446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5449 {
5450 PyThreadState* __tstate = wxPyBeginAllowThreads();
5451 (arg1)->Hide();
5452
5453 wxPyEndAllowThreads(__tstate);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 }
5456 Py_INCREF(Py_None); resultobj = Py_None;
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 static PyObject * Caret_swigregister(PyObject *, PyObject *args) {
5464 PyObject *obj;
5465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5466 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5467 Py_INCREF(obj);
5468 return Py_BuildValue((char *)"");
5469 }
5470 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
5471 PyObject *resultobj;
5472 int result;
5473 char *kwnames[] = {
5474 NULL
5475 };
5476
5477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5478 {
5479 PyThreadState* __tstate = wxPyBeginAllowThreads();
5480 result = (int)wxCaret_GetBlinkTime();
5481
5482 wxPyEndAllowThreads(__tstate);
5483 if (PyErr_Occurred()) SWIG_fail;
5484 }
5485 resultobj = SWIG_From_int((int)result);
5486 return resultobj;
5487 fail:
5488 return NULL;
5489 }
5490
5491
5492 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *, PyObject *args, PyObject *kwargs) {
5493 PyObject *resultobj;
5494 int arg1 ;
5495 PyObject * obj0 = 0 ;
5496 char *kwnames[] = {
5497 (char *) "milliseconds", NULL
5498 };
5499
5500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5501 arg1 = (int)SWIG_As_int(obj0);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 {
5504 PyThreadState* __tstate = wxPyBeginAllowThreads();
5505 wxCaret_SetBlinkTime(arg1);
5506
5507 wxPyEndAllowThreads(__tstate);
5508 if (PyErr_Occurred()) SWIG_fail;
5509 }
5510 Py_INCREF(Py_None); resultobj = Py_None;
5511 return resultobj;
5512 fail:
5513 return NULL;
5514 }
5515
5516
5517 static PyObject *_wrap_new_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5518 PyObject *resultobj;
5519 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5520 wxBusyCursor *result;
5521 PyObject * obj0 = 0 ;
5522 char *kwnames[] = {
5523 (char *) "cursor", NULL
5524 };
5525
5526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5527 if (obj0) {
5528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5530 }
5531 {
5532 if (!wxPyCheckForApp()) SWIG_fail;
5533 PyThreadState* __tstate = wxPyBeginAllowThreads();
5534 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5535
5536 wxPyEndAllowThreads(__tstate);
5537 if (PyErr_Occurred()) SWIG_fail;
5538 }
5539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5540 return resultobj;
5541 fail:
5542 return NULL;
5543 }
5544
5545
5546 static PyObject *_wrap_delete_BusyCursor(PyObject *, PyObject *args, PyObject *kwargs) {
5547 PyObject *resultobj;
5548 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5549 PyObject * obj0 = 0 ;
5550 char *kwnames[] = {
5551 (char *) "self", NULL
5552 };
5553
5554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 delete arg1;
5560
5561 wxPyEndAllowThreads(__tstate);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 }
5564 Py_INCREF(Py_None); resultobj = Py_None;
5565 return resultobj;
5566 fail:
5567 return NULL;
5568 }
5569
5570
5571 static PyObject * BusyCursor_swigregister(PyObject *, PyObject *args) {
5572 PyObject *obj;
5573 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5574 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5575 Py_INCREF(obj);
5576 return Py_BuildValue((char *)"");
5577 }
5578 static PyObject *_wrap_new_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5579 PyObject *resultobj;
5580 wxWindow *arg1 = (wxWindow *) NULL ;
5581 wxWindowDisabler *result;
5582 PyObject * obj0 = 0 ;
5583 char *kwnames[] = {
5584 (char *) "winToSkip", NULL
5585 };
5586
5587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5588 if (obj0) {
5589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5591 }
5592 {
5593 if (!wxPyCheckForApp()) SWIG_fail;
5594 PyThreadState* __tstate = wxPyBeginAllowThreads();
5595 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5596
5597 wxPyEndAllowThreads(__tstate);
5598 if (PyErr_Occurred()) SWIG_fail;
5599 }
5600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5601 return resultobj;
5602 fail:
5603 return NULL;
5604 }
5605
5606
5607 static PyObject *_wrap_delete_WindowDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
5608 PyObject *resultobj;
5609 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5610 PyObject * obj0 = 0 ;
5611 char *kwnames[] = {
5612 (char *) "self", NULL
5613 };
5614
5615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5618 {
5619 PyThreadState* __tstate = wxPyBeginAllowThreads();
5620 delete arg1;
5621
5622 wxPyEndAllowThreads(__tstate);
5623 if (PyErr_Occurred()) SWIG_fail;
5624 }
5625 Py_INCREF(Py_None); resultobj = Py_None;
5626 return resultobj;
5627 fail:
5628 return NULL;
5629 }
5630
5631
5632 static PyObject * WindowDisabler_swigregister(PyObject *, PyObject *args) {
5633 PyObject *obj;
5634 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5635 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5636 Py_INCREF(obj);
5637 return Py_BuildValue((char *)"");
5638 }
5639 static PyObject *_wrap_new_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5640 PyObject *resultobj;
5641 wxString *arg1 = 0 ;
5642 wxBusyInfo *result;
5643 bool temp1 = false ;
5644 PyObject * obj0 = 0 ;
5645 char *kwnames[] = {
5646 (char *) "message", NULL
5647 };
5648
5649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5650 {
5651 arg1 = wxString_in_helper(obj0);
5652 if (arg1 == NULL) SWIG_fail;
5653 temp1 = true;
5654 }
5655 {
5656 if (!wxPyCheckForApp()) SWIG_fail;
5657 PyThreadState* __tstate = wxPyBeginAllowThreads();
5658 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5659
5660 wxPyEndAllowThreads(__tstate);
5661 if (PyErr_Occurred()) SWIG_fail;
5662 }
5663 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5664 {
5665 if (temp1)
5666 delete arg1;
5667 }
5668 return resultobj;
5669 fail:
5670 {
5671 if (temp1)
5672 delete arg1;
5673 }
5674 return NULL;
5675 }
5676
5677
5678 static PyObject *_wrap_delete_BusyInfo(PyObject *, PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj;
5680 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5681 PyObject * obj0 = 0 ;
5682 char *kwnames[] = {
5683 (char *) "self", NULL
5684 };
5685
5686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5689 {
5690 PyThreadState* __tstate = wxPyBeginAllowThreads();
5691 delete arg1;
5692
5693 wxPyEndAllowThreads(__tstate);
5694 if (PyErr_Occurred()) SWIG_fail;
5695 }
5696 Py_INCREF(Py_None); resultobj = Py_None;
5697 return resultobj;
5698 fail:
5699 return NULL;
5700 }
5701
5702
5703 static PyObject * BusyInfo_swigregister(PyObject *, PyObject *args) {
5704 PyObject *obj;
5705 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5706 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5707 Py_INCREF(obj);
5708 return Py_BuildValue((char *)"");
5709 }
5710 static PyObject *_wrap_new_StopWatch(PyObject *, PyObject *args, PyObject *kwargs) {
5711 PyObject *resultobj;
5712 wxStopWatch *result;
5713 char *kwnames[] = {
5714 NULL
5715 };
5716
5717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5718 {
5719 PyThreadState* __tstate = wxPyBeginAllowThreads();
5720 result = (wxStopWatch *)new wxStopWatch();
5721
5722 wxPyEndAllowThreads(__tstate);
5723 if (PyErr_Occurred()) SWIG_fail;
5724 }
5725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5726 return resultobj;
5727 fail:
5728 return NULL;
5729 }
5730
5731
5732 static PyObject *_wrap_StopWatch_Start(PyObject *, PyObject *args, PyObject *kwargs) {
5733 PyObject *resultobj;
5734 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5735 long arg2 = (long) 0 ;
5736 PyObject * obj0 = 0 ;
5737 PyObject * obj1 = 0 ;
5738 char *kwnames[] = {
5739 (char *) "self",(char *) "t0", NULL
5740 };
5741
5742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5745 if (obj1) {
5746 arg2 = (long)SWIG_As_long(obj1);
5747 if (PyErr_Occurred()) SWIG_fail;
5748 }
5749 {
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
5751 (arg1)->Start(arg2);
5752
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
5756 Py_INCREF(Py_None); resultobj = Py_None;
5757 return resultobj;
5758 fail:
5759 return NULL;
5760 }
5761
5762
5763 static PyObject *_wrap_StopWatch_Pause(PyObject *, PyObject *args, PyObject *kwargs) {
5764 PyObject *resultobj;
5765 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5766 PyObject * obj0 = 0 ;
5767 char *kwnames[] = {
5768 (char *) "self", NULL
5769 };
5770
5771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5774 {
5775 PyThreadState* __tstate = wxPyBeginAllowThreads();
5776 (arg1)->Pause();
5777
5778 wxPyEndAllowThreads(__tstate);
5779 if (PyErr_Occurred()) SWIG_fail;
5780 }
5781 Py_INCREF(Py_None); resultobj = Py_None;
5782 return resultobj;
5783 fail:
5784 return NULL;
5785 }
5786
5787
5788 static PyObject *_wrap_StopWatch_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
5789 PyObject *resultobj;
5790 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5791 PyObject * obj0 = 0 ;
5792 char *kwnames[] = {
5793 (char *) "self", NULL
5794 };
5795
5796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5799 {
5800 PyThreadState* __tstate = wxPyBeginAllowThreads();
5801 (arg1)->Resume();
5802
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 Py_INCREF(Py_None); resultobj = Py_None;
5807 return resultobj;
5808 fail:
5809 return NULL;
5810 }
5811
5812
5813 static PyObject *_wrap_StopWatch_Time(PyObject *, PyObject *args, PyObject *kwargs) {
5814 PyObject *resultobj;
5815 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5816 long result;
5817 PyObject * obj0 = 0 ;
5818 char *kwnames[] = {
5819 (char *) "self", NULL
5820 };
5821
5822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 result = (long)((wxStopWatch const *)arg1)->Time();
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 resultobj = SWIG_From_long((long)result);
5833 return resultobj;
5834 fail:
5835 return NULL;
5836 }
5837
5838
5839 static PyObject * StopWatch_swigregister(PyObject *, PyObject *args) {
5840 PyObject *obj;
5841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5842 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5843 Py_INCREF(obj);
5844 return Py_BuildValue((char *)"");
5845 }
5846 static PyObject *_wrap_new_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5847 PyObject *resultobj;
5848 int arg1 = (int) 9 ;
5849 int arg2 = (int) wxID_FILE1 ;
5850 wxFileHistory *result;
5851 PyObject * obj0 = 0 ;
5852 PyObject * obj1 = 0 ;
5853 char *kwnames[] = {
5854 (char *) "maxFiles",(char *) "idBase", NULL
5855 };
5856
5857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
5858 if (obj0) {
5859 arg1 = (int)SWIG_As_int(obj0);
5860 if (PyErr_Occurred()) SWIG_fail;
5861 }
5862 if (obj1) {
5863 arg2 = (int)SWIG_As_int(obj1);
5864 if (PyErr_Occurred()) SWIG_fail;
5865 }
5866 {
5867 PyThreadState* __tstate = wxPyBeginAllowThreads();
5868 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
5869
5870 wxPyEndAllowThreads(__tstate);
5871 if (PyErr_Occurred()) SWIG_fail;
5872 }
5873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5874 return resultobj;
5875 fail:
5876 return NULL;
5877 }
5878
5879
5880 static PyObject *_wrap_delete_FileHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5881 PyObject *resultobj;
5882 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5883 PyObject * obj0 = 0 ;
5884 char *kwnames[] = {
5885 (char *) "self", NULL
5886 };
5887
5888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5891 {
5892 PyThreadState* __tstate = wxPyBeginAllowThreads();
5893 delete arg1;
5894
5895 wxPyEndAllowThreads(__tstate);
5896 if (PyErr_Occurred()) SWIG_fail;
5897 }
5898 Py_INCREF(Py_None); resultobj = Py_None;
5899 return resultobj;
5900 fail:
5901 return NULL;
5902 }
5903
5904
5905 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5906 PyObject *resultobj;
5907 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5908 wxString *arg2 = 0 ;
5909 bool temp2 = false ;
5910 PyObject * obj0 = 0 ;
5911 PyObject * obj1 = 0 ;
5912 char *kwnames[] = {
5913 (char *) "self",(char *) "file", NULL
5914 };
5915
5916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5919 {
5920 arg2 = wxString_in_helper(obj1);
5921 if (arg2 == NULL) SWIG_fail;
5922 temp2 = true;
5923 }
5924 {
5925 PyThreadState* __tstate = wxPyBeginAllowThreads();
5926 (arg1)->AddFileToHistory((wxString const &)*arg2);
5927
5928 wxPyEndAllowThreads(__tstate);
5929 if (PyErr_Occurred()) SWIG_fail;
5930 }
5931 Py_INCREF(Py_None); resultobj = Py_None;
5932 {
5933 if (temp2)
5934 delete arg2;
5935 }
5936 return resultobj;
5937 fail:
5938 {
5939 if (temp2)
5940 delete arg2;
5941 }
5942 return NULL;
5943 }
5944
5945
5946 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *, PyObject *args, PyObject *kwargs) {
5947 PyObject *resultobj;
5948 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5949 int arg2 ;
5950 PyObject * obj0 = 0 ;
5951 PyObject * obj1 = 0 ;
5952 char *kwnames[] = {
5953 (char *) "self",(char *) "i", NULL
5954 };
5955
5956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5959 arg2 = (int)SWIG_As_int(obj1);
5960 if (PyErr_Occurred()) SWIG_fail;
5961 {
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 (arg1)->RemoveFileFromHistory(arg2);
5964
5965 wxPyEndAllowThreads(__tstate);
5966 if (PyErr_Occurred()) SWIG_fail;
5967 }
5968 Py_INCREF(Py_None); resultobj = Py_None;
5969 return resultobj;
5970 fail:
5971 return NULL;
5972 }
5973
5974
5975 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *, PyObject *args, PyObject *kwargs) {
5976 PyObject *resultobj;
5977 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5978 int result;
5979 PyObject * obj0 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5987 {
5988 PyThreadState* __tstate = wxPyBeginAllowThreads();
5989 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5990
5991 wxPyEndAllowThreads(__tstate);
5992 if (PyErr_Occurred()) SWIG_fail;
5993 }
5994 resultobj = SWIG_From_int((int)result);
5995 return resultobj;
5996 fail:
5997 return NULL;
5998 }
5999
6000
6001 static PyObject *_wrap_FileHistory_UseMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6002 PyObject *resultobj;
6003 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6004 wxMenu *arg2 = (wxMenu *) 0 ;
6005 PyObject * obj0 = 0 ;
6006 PyObject * obj1 = 0 ;
6007 char *kwnames[] = {
6008 (char *) "self",(char *) "menu", NULL
6009 };
6010
6011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
6012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6014 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6016 {
6017 PyThreadState* __tstate = wxPyBeginAllowThreads();
6018 (arg1)->UseMenu(arg2);
6019
6020 wxPyEndAllowThreads(__tstate);
6021 if (PyErr_Occurred()) SWIG_fail;
6022 }
6023 Py_INCREF(Py_None); resultobj = Py_None;
6024 return resultobj;
6025 fail:
6026 return NULL;
6027 }
6028
6029
6030 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6031 PyObject *resultobj;
6032 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6033 wxMenu *arg2 = (wxMenu *) 0 ;
6034 PyObject * obj0 = 0 ;
6035 PyObject * obj1 = 0 ;
6036 char *kwnames[] = {
6037 (char *) "self",(char *) "menu", NULL
6038 };
6039
6040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
6041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6043 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 (arg1)->RemoveMenu(arg2);
6048
6049 wxPyEndAllowThreads(__tstate);
6050 if (PyErr_Occurred()) SWIG_fail;
6051 }
6052 Py_INCREF(Py_None); resultobj = Py_None;
6053 return resultobj;
6054 fail:
6055 return NULL;
6056 }
6057
6058
6059 static PyObject *_wrap_FileHistory_Load(PyObject *, PyObject *args, PyObject *kwargs) {
6060 PyObject *resultobj;
6061 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6062 wxConfigBase *arg2 = 0 ;
6063 PyObject * obj0 = 0 ;
6064 PyObject * obj1 = 0 ;
6065 char *kwnames[] = {
6066 (char *) "self",(char *) "config", NULL
6067 };
6068
6069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
6070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6072 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6073 SWIG_POINTER_EXCEPTION | 0)) == -1)
6074 SWIG_fail;
6075 if (arg2 == NULL) {
6076 PyErr_SetString(PyExc_TypeError,"null reference");
6077 SWIG_fail;
6078 }
6079 {
6080 PyThreadState* __tstate = wxPyBeginAllowThreads();
6081 (arg1)->Load(*arg2);
6082
6083 wxPyEndAllowThreads(__tstate);
6084 if (PyErr_Occurred()) SWIG_fail;
6085 }
6086 Py_INCREF(Py_None); resultobj = Py_None;
6087 return resultobj;
6088 fail:
6089 return NULL;
6090 }
6091
6092
6093 static PyObject *_wrap_FileHistory_Save(PyObject *, PyObject *args, PyObject *kwargs) {
6094 PyObject *resultobj;
6095 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6096 wxConfigBase *arg2 = 0 ;
6097 PyObject * obj0 = 0 ;
6098 PyObject * obj1 = 0 ;
6099 char *kwnames[] = {
6100 (char *) "self",(char *) "config", NULL
6101 };
6102
6103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
6104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6106 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
6107 SWIG_POINTER_EXCEPTION | 0)) == -1)
6108 SWIG_fail;
6109 if (arg2 == NULL) {
6110 PyErr_SetString(PyExc_TypeError,"null reference");
6111 SWIG_fail;
6112 }
6113 {
6114 PyThreadState* __tstate = wxPyBeginAllowThreads();
6115 (arg1)->Save(*arg2);
6116
6117 wxPyEndAllowThreads(__tstate);
6118 if (PyErr_Occurred()) SWIG_fail;
6119 }
6120 Py_INCREF(Py_None); resultobj = Py_None;
6121 return resultobj;
6122 fail:
6123 return NULL;
6124 }
6125
6126
6127 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6128 PyObject *resultobj;
6129 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6130 PyObject * obj0 = 0 ;
6131 char *kwnames[] = {
6132 (char *) "self", NULL
6133 };
6134
6135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
6136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6138 {
6139 PyThreadState* __tstate = wxPyBeginAllowThreads();
6140 (arg1)->AddFilesToMenu();
6141
6142 wxPyEndAllowThreads(__tstate);
6143 if (PyErr_Occurred()) SWIG_fail;
6144 }
6145 Py_INCREF(Py_None); resultobj = Py_None;
6146 return resultobj;
6147 fail:
6148 return NULL;
6149 }
6150
6151
6152 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *, PyObject *args, PyObject *kwargs) {
6153 PyObject *resultobj;
6154 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6155 wxMenu *arg2 = (wxMenu *) 0 ;
6156 PyObject * obj0 = 0 ;
6157 PyObject * obj1 = 0 ;
6158 char *kwnames[] = {
6159 (char *) "self",(char *) "menu", NULL
6160 };
6161
6162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
6163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6165 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
6166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6167 {
6168 PyThreadState* __tstate = wxPyBeginAllowThreads();
6169 (arg1)->AddFilesToMenu(arg2);
6170
6171 wxPyEndAllowThreads(__tstate);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 }
6174 Py_INCREF(Py_None); resultobj = Py_None;
6175 return resultobj;
6176 fail:
6177 return NULL;
6178 }
6179
6180
6181 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *, PyObject *args, PyObject *kwargs) {
6182 PyObject *resultobj;
6183 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6184 int arg2 ;
6185 wxString result;
6186 PyObject * obj0 = 0 ;
6187 PyObject * obj1 = 0 ;
6188 char *kwnames[] = {
6189 (char *) "self",(char *) "i", NULL
6190 };
6191
6192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
6193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6195 arg2 = (int)SWIG_As_int(obj1);
6196 if (PyErr_Occurred()) SWIG_fail;
6197 {
6198 PyThreadState* __tstate = wxPyBeginAllowThreads();
6199 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
6200
6201 wxPyEndAllowThreads(__tstate);
6202 if (PyErr_Occurred()) SWIG_fail;
6203 }
6204 {
6205 #if wxUSE_UNICODE
6206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6207 #else
6208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6209 #endif
6210 }
6211 return resultobj;
6212 fail:
6213 return NULL;
6214 }
6215
6216
6217 static PyObject *_wrap_FileHistory_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
6218 PyObject *resultobj;
6219 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
6220 int result;
6221 PyObject * obj0 = 0 ;
6222 char *kwnames[] = {
6223 (char *) "self", NULL
6224 };
6225
6226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
6227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
6228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6229 {
6230 PyThreadState* __tstate = wxPyBeginAllowThreads();
6231 result = (int)((wxFileHistory const *)arg1)->GetCount();
6232
6233 wxPyEndAllowThreads(__tstate);
6234 if (PyErr_Occurred()) SWIG_fail;
6235 }
6236 resultobj = SWIG_From_int((int)result);
6237 return resultobj;
6238 fail:
6239 return NULL;
6240 }
6241
6242
6243 static PyObject * FileHistory_swigregister(PyObject *, PyObject *args) {
6244 PyObject *obj;
6245 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6246 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
6247 Py_INCREF(obj);
6248 return Py_BuildValue((char *)"");
6249 }
6250 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6251 PyObject *resultobj;
6252 wxString *arg1 = 0 ;
6253 wxString const &arg2_defvalue = wxPyEmptyString ;
6254 wxString *arg2 = (wxString *) &arg2_defvalue ;
6255 wxSingleInstanceChecker *result;
6256 bool temp1 = false ;
6257 bool temp2 = false ;
6258 PyObject * obj0 = 0 ;
6259 PyObject * obj1 = 0 ;
6260 char *kwnames[] = {
6261 (char *) "name",(char *) "path", NULL
6262 };
6263
6264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6265 {
6266 arg1 = wxString_in_helper(obj0);
6267 if (arg1 == NULL) SWIG_fail;
6268 temp1 = true;
6269 }
6270 if (obj1) {
6271 {
6272 arg2 = wxString_in_helper(obj1);
6273 if (arg2 == NULL) SWIG_fail;
6274 temp2 = true;
6275 }
6276 }
6277 {
6278 PyThreadState* __tstate = wxPyBeginAllowThreads();
6279 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6280
6281 wxPyEndAllowThreads(__tstate);
6282 if (PyErr_Occurred()) SWIG_fail;
6283 }
6284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6285 {
6286 if (temp1)
6287 delete arg1;
6288 }
6289 {
6290 if (temp2)
6291 delete arg2;
6292 }
6293 return resultobj;
6294 fail:
6295 {
6296 if (temp1)
6297 delete arg1;
6298 }
6299 {
6300 if (temp2)
6301 delete arg2;
6302 }
6303 return NULL;
6304 }
6305
6306
6307 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6308 PyObject *resultobj;
6309 wxSingleInstanceChecker *result;
6310 char *kwnames[] = {
6311 NULL
6312 };
6313
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6315 {
6316 PyThreadState* __tstate = wxPyBeginAllowThreads();
6317 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6318
6319 wxPyEndAllowThreads(__tstate);
6320 if (PyErr_Occurred()) SWIG_fail;
6321 }
6322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6323 return resultobj;
6324 fail:
6325 return NULL;
6326 }
6327
6328
6329 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *, PyObject *args, PyObject *kwargs) {
6330 PyObject *resultobj;
6331 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6332 PyObject * obj0 = 0 ;
6333 char *kwnames[] = {
6334 (char *) "self", NULL
6335 };
6336
6337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 delete arg1;
6343
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 Py_INCREF(Py_None); resultobj = Py_None;
6348 return resultobj;
6349 fail:
6350 return NULL;
6351 }
6352
6353
6354 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj;
6356 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6357 wxString *arg2 = 0 ;
6358 wxString const &arg3_defvalue = wxPyEmptyString ;
6359 wxString *arg3 = (wxString *) &arg3_defvalue ;
6360 bool result;
6361 bool temp2 = false ;
6362 bool temp3 = false ;
6363 PyObject * obj0 = 0 ;
6364 PyObject * obj1 = 0 ;
6365 PyObject * obj2 = 0 ;
6366 char *kwnames[] = {
6367 (char *) "self",(char *) "name",(char *) "path", NULL
6368 };
6369
6370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6373 {
6374 arg2 = wxString_in_helper(obj1);
6375 if (arg2 == NULL) SWIG_fail;
6376 temp2 = true;
6377 }
6378 if (obj2) {
6379 {
6380 arg3 = wxString_in_helper(obj2);
6381 if (arg3 == NULL) SWIG_fail;
6382 temp3 = true;
6383 }
6384 }
6385 {
6386 PyThreadState* __tstate = wxPyBeginAllowThreads();
6387 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6388
6389 wxPyEndAllowThreads(__tstate);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 {
6393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6394 }
6395 {
6396 if (temp2)
6397 delete arg2;
6398 }
6399 {
6400 if (temp3)
6401 delete arg3;
6402 }
6403 return resultobj;
6404 fail:
6405 {
6406 if (temp2)
6407 delete arg2;
6408 }
6409 {
6410 if (temp3)
6411 delete arg3;
6412 }
6413 return NULL;
6414 }
6415
6416
6417 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *, PyObject *args, PyObject *kwargs) {
6418 PyObject *resultobj;
6419 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6420 bool result;
6421 PyObject * obj0 = 0 ;
6422 char *kwnames[] = {
6423 (char *) "self", NULL
6424 };
6425
6426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6429 {
6430 PyThreadState* __tstate = wxPyBeginAllowThreads();
6431 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6432
6433 wxPyEndAllowThreads(__tstate);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 {
6437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6438 }
6439 return resultobj;
6440 fail:
6441 return NULL;
6442 }
6443
6444
6445 static PyObject * SingleInstanceChecker_swigregister(PyObject *, PyObject *args) {
6446 PyObject *obj;
6447 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6448 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6449 Py_INCREF(obj);
6450 return Py_BuildValue((char *)"");
6451 }
6452 static PyObject *_wrap_DrawWindowOnDC(PyObject *, PyObject *args, PyObject *kwargs) {
6453 PyObject *resultobj;
6454 wxWindow *arg1 = (wxWindow *) 0 ;
6455 wxDC *arg2 = 0 ;
6456 int arg3 ;
6457 PyObject * obj0 = 0 ;
6458 PyObject * obj1 = 0 ;
6459 PyObject * obj2 = 0 ;
6460 char *kwnames[] = {
6461 (char *) "window",(char *) "dc",(char *) "method", NULL
6462 };
6463
6464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6467 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6468 SWIG_POINTER_EXCEPTION | 0)) == -1)
6469 SWIG_fail;
6470 if (arg2 == NULL) {
6471 PyErr_SetString(PyExc_TypeError,"null reference");
6472 SWIG_fail;
6473 }
6474 arg3 = (int)SWIG_As_int(obj2);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 {
6477 PyThreadState* __tstate = wxPyBeginAllowThreads();
6478 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6479
6480 wxPyEndAllowThreads(__tstate);
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 Py_INCREF(Py_None); resultobj = Py_None;
6484 return resultobj;
6485 fail:
6486 return NULL;
6487 }
6488
6489
6490 static PyObject *_wrap_delete_TipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6491 PyObject *resultobj;
6492 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6493 PyObject * obj0 = 0 ;
6494 char *kwnames[] = {
6495 (char *) "self", NULL
6496 };
6497
6498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6501 {
6502 PyThreadState* __tstate = wxPyBeginAllowThreads();
6503 delete arg1;
6504
6505 wxPyEndAllowThreads(__tstate);
6506 if (PyErr_Occurred()) SWIG_fail;
6507 }
6508 Py_INCREF(Py_None); resultobj = Py_None;
6509 return resultobj;
6510 fail:
6511 return NULL;
6512 }
6513
6514
6515 static PyObject *_wrap_TipProvider_GetTip(PyObject *, PyObject *args, PyObject *kwargs) {
6516 PyObject *resultobj;
6517 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6518 wxString result;
6519 PyObject * obj0 = 0 ;
6520 char *kwnames[] = {
6521 (char *) "self", NULL
6522 };
6523
6524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6527 {
6528 PyThreadState* __tstate = wxPyBeginAllowThreads();
6529 result = (arg1)->GetTip();
6530
6531 wxPyEndAllowThreads(__tstate);
6532 if (PyErr_Occurred()) SWIG_fail;
6533 }
6534 {
6535 #if wxUSE_UNICODE
6536 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6537 #else
6538 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6539 #endif
6540 }
6541 return resultobj;
6542 fail:
6543 return NULL;
6544 }
6545
6546
6547 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *, PyObject *args, PyObject *kwargs) {
6548 PyObject *resultobj;
6549 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6550 size_t result;
6551 PyObject * obj0 = 0 ;
6552 char *kwnames[] = {
6553 (char *) "self", NULL
6554 };
6555
6556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6559 {
6560 PyThreadState* __tstate = wxPyBeginAllowThreads();
6561 result = (size_t)(arg1)->GetCurrentTip();
6562
6563 wxPyEndAllowThreads(__tstate);
6564 if (PyErr_Occurred()) SWIG_fail;
6565 }
6566 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
6567 return resultobj;
6568 fail:
6569 return NULL;
6570 }
6571
6572
6573 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *, PyObject *args, PyObject *kwargs) {
6574 PyObject *resultobj;
6575 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6576 wxString *arg2 = 0 ;
6577 wxString result;
6578 bool temp2 = false ;
6579 PyObject * obj0 = 0 ;
6580 PyObject * obj1 = 0 ;
6581 char *kwnames[] = {
6582 (char *) "self",(char *) "tip", NULL
6583 };
6584
6585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6588 {
6589 arg2 = wxString_in_helper(obj1);
6590 if (arg2 == NULL) SWIG_fail;
6591 temp2 = true;
6592 }
6593 {
6594 PyThreadState* __tstate = wxPyBeginAllowThreads();
6595 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6596
6597 wxPyEndAllowThreads(__tstate);
6598 if (PyErr_Occurred()) SWIG_fail;
6599 }
6600 {
6601 #if wxUSE_UNICODE
6602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6603 #else
6604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6605 #endif
6606 }
6607 {
6608 if (temp2)
6609 delete arg2;
6610 }
6611 return resultobj;
6612 fail:
6613 {
6614 if (temp2)
6615 delete arg2;
6616 }
6617 return NULL;
6618 }
6619
6620
6621 static PyObject * TipProvider_swigregister(PyObject *, PyObject *args) {
6622 PyObject *obj;
6623 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6624 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6625 Py_INCREF(obj);
6626 return Py_BuildValue((char *)"");
6627 }
6628 static PyObject *_wrap_new_PyTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6629 PyObject *resultobj;
6630 size_t arg1 ;
6631 wxPyTipProvider *result;
6632 PyObject * obj0 = 0 ;
6633 char *kwnames[] = {
6634 (char *) "currentTip", NULL
6635 };
6636
6637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6638 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
6639 if (PyErr_Occurred()) SWIG_fail;
6640 {
6641 PyThreadState* __tstate = wxPyBeginAllowThreads();
6642 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6643
6644 wxPyEndAllowThreads(__tstate);
6645 if (PyErr_Occurred()) SWIG_fail;
6646 }
6647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6648 return resultobj;
6649 fail:
6650 return NULL;
6651 }
6652
6653
6654 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6655 PyObject *resultobj;
6656 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6657 PyObject *arg2 = (PyObject *) 0 ;
6658 PyObject *arg3 = (PyObject *) 0 ;
6659 PyObject * obj0 = 0 ;
6660 PyObject * obj1 = 0 ;
6661 PyObject * obj2 = 0 ;
6662 char *kwnames[] = {
6663 (char *) "self",(char *) "self",(char *) "_class", NULL
6664 };
6665
6666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6669 arg2 = obj1;
6670 arg3 = obj2;
6671 {
6672 PyThreadState* __tstate = wxPyBeginAllowThreads();
6673 (arg1)->_setCallbackInfo(arg2,arg3);
6674
6675 wxPyEndAllowThreads(__tstate);
6676 if (PyErr_Occurred()) SWIG_fail;
6677 }
6678 Py_INCREF(Py_None); resultobj = Py_None;
6679 return resultobj;
6680 fail:
6681 return NULL;
6682 }
6683
6684
6685 static PyObject * PyTipProvider_swigregister(PyObject *, PyObject *args) {
6686 PyObject *obj;
6687 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6688 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6689 Py_INCREF(obj);
6690 return Py_BuildValue((char *)"");
6691 }
6692 static PyObject *_wrap_ShowTip(PyObject *, PyObject *args, PyObject *kwargs) {
6693 PyObject *resultobj;
6694 wxWindow *arg1 = (wxWindow *) 0 ;
6695 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6696 bool arg3 = (bool) true ;
6697 bool result;
6698 PyObject * obj0 = 0 ;
6699 PyObject * obj1 = 0 ;
6700 PyObject * obj2 = 0 ;
6701 char *kwnames[] = {
6702 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6703 };
6704
6705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6710 if (obj2) {
6711 arg3 = (bool)SWIG_As_bool(obj2);
6712 if (PyErr_Occurred()) SWIG_fail;
6713 }
6714 {
6715 if (!wxPyCheckForApp()) SWIG_fail;
6716 PyThreadState* __tstate = wxPyBeginAllowThreads();
6717 result = (bool)wxShowTip(arg1,arg2,arg3);
6718
6719 wxPyEndAllowThreads(__tstate);
6720 if (PyErr_Occurred()) SWIG_fail;
6721 }
6722 {
6723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6724 }
6725 return resultobj;
6726 fail:
6727 return NULL;
6728 }
6729
6730
6731 static PyObject *_wrap_CreateFileTipProvider(PyObject *, PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj;
6733 wxString *arg1 = 0 ;
6734 size_t arg2 ;
6735 wxTipProvider *result;
6736 bool temp1 = false ;
6737 PyObject * obj0 = 0 ;
6738 PyObject * obj1 = 0 ;
6739 char *kwnames[] = {
6740 (char *) "filename",(char *) "currentTip", NULL
6741 };
6742
6743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6744 {
6745 arg1 = wxString_in_helper(obj0);
6746 if (arg1 == NULL) SWIG_fail;
6747 temp1 = true;
6748 }
6749 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
6750 if (PyErr_Occurred()) SWIG_fail;
6751 {
6752 if (!wxPyCheckForApp()) SWIG_fail;
6753 PyThreadState* __tstate = wxPyBeginAllowThreads();
6754 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6755
6756 wxPyEndAllowThreads(__tstate);
6757 if (PyErr_Occurred()) SWIG_fail;
6758 }
6759 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6760 {
6761 if (temp1)
6762 delete arg1;
6763 }
6764 return resultobj;
6765 fail:
6766 {
6767 if (temp1)
6768 delete arg1;
6769 }
6770 return NULL;
6771 }
6772
6773
6774 static PyObject *_wrap_new_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6775 PyObject *resultobj;
6776 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6777 int arg2 = (int) -1 ;
6778 wxPyTimer *result;
6779 PyObject * obj0 = 0 ;
6780 PyObject * obj1 = 0 ;
6781 char *kwnames[] = {
6782 (char *) "owner",(char *) "id", NULL
6783 };
6784
6785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6786 if (obj0) {
6787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6789 }
6790 if (obj1) {
6791 arg2 = (int)SWIG_As_int(obj1);
6792 if (PyErr_Occurred()) SWIG_fail;
6793 }
6794 {
6795 if (!wxPyCheckForApp()) SWIG_fail;
6796 PyThreadState* __tstate = wxPyBeginAllowThreads();
6797 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6798
6799 wxPyEndAllowThreads(__tstate);
6800 if (PyErr_Occurred()) SWIG_fail;
6801 }
6802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6803 return resultobj;
6804 fail:
6805 return NULL;
6806 }
6807
6808
6809 static PyObject *_wrap_delete_Timer(PyObject *, PyObject *args, PyObject *kwargs) {
6810 PyObject *resultobj;
6811 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6812 PyObject * obj0 = 0 ;
6813 char *kwnames[] = {
6814 (char *) "self", NULL
6815 };
6816
6817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6820 {
6821 PyThreadState* __tstate = wxPyBeginAllowThreads();
6822 delete arg1;
6823
6824 wxPyEndAllowThreads(__tstate);
6825 if (PyErr_Occurred()) SWIG_fail;
6826 }
6827 Py_INCREF(Py_None); resultobj = Py_None;
6828 return resultobj;
6829 fail:
6830 return NULL;
6831 }
6832
6833
6834 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
6835 PyObject *resultobj;
6836 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6837 PyObject *arg2 = (PyObject *) 0 ;
6838 PyObject *arg3 = (PyObject *) 0 ;
6839 int arg4 = (int) 1 ;
6840 PyObject * obj0 = 0 ;
6841 PyObject * obj1 = 0 ;
6842 PyObject * obj2 = 0 ;
6843 PyObject * obj3 = 0 ;
6844 char *kwnames[] = {
6845 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6846 };
6847
6848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6851 arg2 = obj1;
6852 arg3 = obj2;
6853 if (obj3) {
6854 arg4 = (int)SWIG_As_int(obj3);
6855 if (PyErr_Occurred()) SWIG_fail;
6856 }
6857 {
6858 PyThreadState* __tstate = wxPyBeginAllowThreads();
6859 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6860
6861 wxPyEndAllowThreads(__tstate);
6862 if (PyErr_Occurred()) SWIG_fail;
6863 }
6864 Py_INCREF(Py_None); resultobj = Py_None;
6865 return resultobj;
6866 fail:
6867 return NULL;
6868 }
6869
6870
6871 static PyObject *_wrap_Timer_SetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
6872 PyObject *resultobj;
6873 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6874 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6875 int arg3 = (int) -1 ;
6876 PyObject * obj0 = 0 ;
6877 PyObject * obj1 = 0 ;
6878 PyObject * obj2 = 0 ;
6879 char *kwnames[] = {
6880 (char *) "self",(char *) "owner",(char *) "id", NULL
6881 };
6882
6883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6886 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6888 if (obj2) {
6889 arg3 = (int)SWIG_As_int(obj2);
6890 if (PyErr_Occurred()) SWIG_fail;
6891 }
6892 {
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 (arg1)->SetOwner(arg2,arg3);
6895
6896 wxPyEndAllowThreads(__tstate);
6897 if (PyErr_Occurred()) SWIG_fail;
6898 }
6899 Py_INCREF(Py_None); resultobj = Py_None;
6900 return resultobj;
6901 fail:
6902 return NULL;
6903 }
6904
6905
6906 static PyObject *_wrap_Timer_GetOwner(PyObject *, PyObject *args, PyObject *kwargs) {
6907 PyObject *resultobj;
6908 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6909 wxEvtHandler *result;
6910 PyObject * obj0 = 0 ;
6911 char *kwnames[] = {
6912 (char *) "self", NULL
6913 };
6914
6915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6918 {
6919 PyThreadState* __tstate = wxPyBeginAllowThreads();
6920 result = (wxEvtHandler *)(arg1)->GetOwner();
6921
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 {
6926 resultobj = wxPyMake_wxObject(result, 0);
6927 }
6928 return resultobj;
6929 fail:
6930 return NULL;
6931 }
6932
6933
6934 static PyObject *_wrap_Timer_Start(PyObject *, PyObject *args, PyObject *kwargs) {
6935 PyObject *resultobj;
6936 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6937 int arg2 = (int) -1 ;
6938 bool arg3 = (bool) false ;
6939 bool result;
6940 PyObject * obj0 = 0 ;
6941 PyObject * obj1 = 0 ;
6942 PyObject * obj2 = 0 ;
6943 char *kwnames[] = {
6944 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6945 };
6946
6947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6950 if (obj1) {
6951 arg2 = (int)SWIG_As_int(obj1);
6952 if (PyErr_Occurred()) SWIG_fail;
6953 }
6954 if (obj2) {
6955 arg3 = (bool)SWIG_As_bool(obj2);
6956 if (PyErr_Occurred()) SWIG_fail;
6957 }
6958 {
6959 PyThreadState* __tstate = wxPyBeginAllowThreads();
6960 result = (bool)(arg1)->Start(arg2,arg3);
6961
6962 wxPyEndAllowThreads(__tstate);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 }
6965 {
6966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6967 }
6968 return resultobj;
6969 fail:
6970 return NULL;
6971 }
6972
6973
6974 static PyObject *_wrap_Timer_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
6975 PyObject *resultobj;
6976 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6977 PyObject * obj0 = 0 ;
6978 char *kwnames[] = {
6979 (char *) "self", NULL
6980 };
6981
6982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6985 {
6986 PyThreadState* __tstate = wxPyBeginAllowThreads();
6987 (arg1)->Stop();
6988
6989 wxPyEndAllowThreads(__tstate);
6990 if (PyErr_Occurred()) SWIG_fail;
6991 }
6992 Py_INCREF(Py_None); resultobj = Py_None;
6993 return resultobj;
6994 fail:
6995 return NULL;
6996 }
6997
6998
6999 static PyObject *_wrap_Timer_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) {
7000 PyObject *resultobj;
7001 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7002 bool result;
7003 PyObject * obj0 = 0 ;
7004 char *kwnames[] = {
7005 (char *) "self", NULL
7006 };
7007
7008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
7009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7011 {
7012 PyThreadState* __tstate = wxPyBeginAllowThreads();
7013 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
7014
7015 wxPyEndAllowThreads(__tstate);
7016 if (PyErr_Occurred()) SWIG_fail;
7017 }
7018 {
7019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7020 }
7021 return resultobj;
7022 fail:
7023 return NULL;
7024 }
7025
7026
7027 static PyObject *_wrap_Timer_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
7028 PyObject *resultobj;
7029 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7030 int result;
7031 PyObject * obj0 = 0 ;
7032 char *kwnames[] = {
7033 (char *) "self", NULL
7034 };
7035
7036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
7037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7039 {
7040 PyThreadState* __tstate = wxPyBeginAllowThreads();
7041 result = (int)((wxPyTimer const *)arg1)->GetInterval();
7042
7043 wxPyEndAllowThreads(__tstate);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 resultobj = SWIG_From_int((int)result);
7047 return resultobj;
7048 fail:
7049 return NULL;
7050 }
7051
7052
7053 static PyObject *_wrap_Timer_IsOneShot(PyObject *, PyObject *args, PyObject *kwargs) {
7054 PyObject *resultobj;
7055 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7056 bool result;
7057 PyObject * obj0 = 0 ;
7058 char *kwnames[] = {
7059 (char *) "self", NULL
7060 };
7061
7062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
7063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7065 {
7066 PyThreadState* __tstate = wxPyBeginAllowThreads();
7067 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
7068
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 {
7073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7074 }
7075 return resultobj;
7076 fail:
7077 return NULL;
7078 }
7079
7080
7081 static PyObject *_wrap_Timer_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj;
7083 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
7084 int result;
7085 PyObject * obj0 = 0 ;
7086 char *kwnames[] = {
7087 (char *) "self", NULL
7088 };
7089
7090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
7091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
7092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7093 {
7094 PyThreadState* __tstate = wxPyBeginAllowThreads();
7095 result = (int)((wxPyTimer const *)arg1)->GetId();
7096
7097 wxPyEndAllowThreads(__tstate);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 resultobj = SWIG_From_int((int)result);
7101 return resultobj;
7102 fail:
7103 return NULL;
7104 }
7105
7106
7107 static PyObject * Timer_swigregister(PyObject *, PyObject *args) {
7108 PyObject *obj;
7109 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7110 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
7111 Py_INCREF(obj);
7112 return Py_BuildValue((char *)"");
7113 }
7114 static PyObject *_wrap_new_TimerEvent(PyObject *, PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj;
7116 int arg1 = (int) 0 ;
7117 int arg2 = (int) 0 ;
7118 wxTimerEvent *result;
7119 PyObject * obj0 = 0 ;
7120 PyObject * obj1 = 0 ;
7121 char *kwnames[] = {
7122 (char *) "timerid",(char *) "interval", NULL
7123 };
7124
7125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
7126 if (obj0) {
7127 arg1 = (int)SWIG_As_int(obj0);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 if (obj1) {
7131 arg2 = (int)SWIG_As_int(obj1);
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
7137
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
7142 return resultobj;
7143 fail:
7144 return NULL;
7145 }
7146
7147
7148 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *, PyObject *args, PyObject *kwargs) {
7149 PyObject *resultobj;
7150 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
7151 int result;
7152 PyObject * obj0 = 0 ;
7153 char *kwnames[] = {
7154 (char *) "self", NULL
7155 };
7156
7157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
7158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
7159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7160 {
7161 PyThreadState* __tstate = wxPyBeginAllowThreads();
7162 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
7163
7164 wxPyEndAllowThreads(__tstate);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 }
7167 resultobj = SWIG_From_int((int)result);
7168 return resultobj;
7169 fail:
7170 return NULL;
7171 }
7172
7173
7174 static PyObject * TimerEvent_swigregister(PyObject *, PyObject *args) {
7175 PyObject *obj;
7176 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7177 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
7178 Py_INCREF(obj);
7179 return Py_BuildValue((char *)"");
7180 }
7181 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *, PyObject *args) {
7182 PyObject *resultobj;
7183 wxTimer *arg1 = 0 ;
7184 wxTimerRunner *result;
7185 PyObject * obj0 = 0 ;
7186
7187 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
7188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7189 SWIG_POINTER_EXCEPTION | 0)) == -1)
7190 SWIG_fail;
7191 if (arg1 == NULL) {
7192 PyErr_SetString(PyExc_TypeError,"null reference");
7193 SWIG_fail;
7194 }
7195 {
7196 if (!wxPyCheckForApp()) SWIG_fail;
7197 PyThreadState* __tstate = wxPyBeginAllowThreads();
7198 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
7199
7200 wxPyEndAllowThreads(__tstate);
7201 if (PyErr_Occurred()) SWIG_fail;
7202 }
7203 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7204 return resultobj;
7205 fail:
7206 return NULL;
7207 }
7208
7209
7210 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *, PyObject *args) {
7211 PyObject *resultobj;
7212 wxTimer *arg1 = 0 ;
7213 int arg2 ;
7214 bool arg3 = (bool) false ;
7215 wxTimerRunner *result;
7216 PyObject * obj0 = 0 ;
7217 PyObject * obj1 = 0 ;
7218 PyObject * obj2 = 0 ;
7219
7220 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
7221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
7222 SWIG_POINTER_EXCEPTION | 0)) == -1)
7223 SWIG_fail;
7224 if (arg1 == NULL) {
7225 PyErr_SetString(PyExc_TypeError,"null reference");
7226 SWIG_fail;
7227 }
7228 arg2 = (int)SWIG_As_int(obj1);
7229 if (PyErr_Occurred()) SWIG_fail;
7230 if (obj2) {
7231 arg3 = (bool)SWIG_As_bool(obj2);
7232 if (PyErr_Occurred()) SWIG_fail;
7233 }
7234 {
7235 if (!wxPyCheckForApp()) SWIG_fail;
7236 PyThreadState* __tstate = wxPyBeginAllowThreads();
7237 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
7238
7239 wxPyEndAllowThreads(__tstate);
7240 if (PyErr_Occurred()) SWIG_fail;
7241 }
7242 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
7243 return resultobj;
7244 fail:
7245 return NULL;
7246 }
7247
7248
7249 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
7250 int argc;
7251 PyObject *argv[4];
7252 int ii;
7253
7254 argc = PyObject_Length(args);
7255 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7256 argv[ii] = PyTuple_GetItem(args,ii);
7257 }
7258 if (argc == 1) {
7259 int _v;
7260 {
7261 void *ptr;
7262 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7263 _v = 0;
7264 PyErr_Clear();
7265 } else {
7266 _v = 1;
7267 }
7268 }
7269 if (_v) {
7270 return _wrap_new_TimerRunner__SWIG_0(self,args);
7271 }
7272 }
7273 if ((argc >= 2) && (argc <= 3)) {
7274 int _v;
7275 {
7276 void *ptr;
7277 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7278 _v = 0;
7279 PyErr_Clear();
7280 } else {
7281 _v = 1;
7282 }
7283 }
7284 if (_v) {
7285 _v = SWIG_Check_int(argv[1]);
7286 if (_v) {
7287 if (argc <= 2) {
7288 return _wrap_new_TimerRunner__SWIG_1(self,args);
7289 }
7290 _v = SWIG_Check_bool(argv[2]);
7291 if (_v) {
7292 return _wrap_new_TimerRunner__SWIG_1(self,args);
7293 }
7294 }
7295 }
7296 }
7297
7298 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7299 return NULL;
7300 }
7301
7302
7303 static PyObject *_wrap_delete_TimerRunner(PyObject *, PyObject *args, PyObject *kwargs) {
7304 PyObject *resultobj;
7305 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7306 PyObject * obj0 = 0 ;
7307 char *kwnames[] = {
7308 (char *) "self", NULL
7309 };
7310
7311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7314 {
7315 PyThreadState* __tstate = wxPyBeginAllowThreads();
7316 delete arg1;
7317
7318 wxPyEndAllowThreads(__tstate);
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 Py_INCREF(Py_None); resultobj = Py_None;
7322 return resultobj;
7323 fail:
7324 return NULL;
7325 }
7326
7327
7328 static PyObject *_wrap_TimerRunner_Start(PyObject *, PyObject *args, PyObject *kwargs) {
7329 PyObject *resultobj;
7330 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7331 int arg2 ;
7332 bool arg3 = (bool) false ;
7333 PyObject * obj0 = 0 ;
7334 PyObject * obj1 = 0 ;
7335 PyObject * obj2 = 0 ;
7336 char *kwnames[] = {
7337 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7338 };
7339
7340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7343 arg2 = (int)SWIG_As_int(obj1);
7344 if (PyErr_Occurred()) SWIG_fail;
7345 if (obj2) {
7346 arg3 = (bool)SWIG_As_bool(obj2);
7347 if (PyErr_Occurred()) SWIG_fail;
7348 }
7349 {
7350 PyThreadState* __tstate = wxPyBeginAllowThreads();
7351 (arg1)->Start(arg2,arg3);
7352
7353 wxPyEndAllowThreads(__tstate);
7354 if (PyErr_Occurred()) SWIG_fail;
7355 }
7356 Py_INCREF(Py_None); resultobj = Py_None;
7357 return resultobj;
7358 fail:
7359 return NULL;
7360 }
7361
7362
7363 static PyObject * TimerRunner_swigregister(PyObject *, PyObject *args) {
7364 PyObject *obj;
7365 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7366 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7367 Py_INCREF(obj);
7368 return Py_BuildValue((char *)"");
7369 }
7370 static PyObject *_wrap_new_Log(PyObject *, PyObject *args, PyObject *kwargs) {
7371 PyObject *resultobj;
7372 wxLog *result;
7373 char *kwnames[] = {
7374 NULL
7375 };
7376
7377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7378 {
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 result = (wxLog *)new wxLog();
7381
7382 wxPyEndAllowThreads(__tstate);
7383 if (PyErr_Occurred()) SWIG_fail;
7384 }
7385 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7386 return resultobj;
7387 fail:
7388 return NULL;
7389 }
7390
7391
7392 static PyObject *_wrap_Log_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
7393 PyObject *resultobj;
7394 bool result;
7395 char *kwnames[] = {
7396 NULL
7397 };
7398
7399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7400 {
7401 PyThreadState* __tstate = wxPyBeginAllowThreads();
7402 result = (bool)wxLog::IsEnabled();
7403
7404 wxPyEndAllowThreads(__tstate);
7405 if (PyErr_Occurred()) SWIG_fail;
7406 }
7407 {
7408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7409 }
7410 return resultobj;
7411 fail:
7412 return NULL;
7413 }
7414
7415
7416 static PyObject *_wrap_Log_EnableLogging(PyObject *, PyObject *args, PyObject *kwargs) {
7417 PyObject *resultobj;
7418 bool arg1 = (bool) true ;
7419 bool result;
7420 PyObject * obj0 = 0 ;
7421 char *kwnames[] = {
7422 (char *) "doIt", NULL
7423 };
7424
7425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7426 if (obj0) {
7427 arg1 = (bool)SWIG_As_bool(obj0);
7428 if (PyErr_Occurred()) SWIG_fail;
7429 }
7430 {
7431 PyThreadState* __tstate = wxPyBeginAllowThreads();
7432 result = (bool)wxLog::EnableLogging(arg1);
7433
7434 wxPyEndAllowThreads(__tstate);
7435 if (PyErr_Occurred()) SWIG_fail;
7436 }
7437 {
7438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7439 }
7440 return resultobj;
7441 fail:
7442 return NULL;
7443 }
7444
7445
7446 static PyObject *_wrap_Log_OnLog(PyObject *, PyObject *args, PyObject *kwargs) {
7447 PyObject *resultobj;
7448 wxLogLevel arg1 ;
7449 wxChar *arg2 = (wxChar *) 0 ;
7450 time_t arg3 ;
7451 PyObject * obj0 = 0 ;
7452 PyObject * obj1 = 0 ;
7453 PyObject * obj2 = 0 ;
7454 char *kwnames[] = {
7455 (char *) "level",(char *) "szString",(char *) "t", NULL
7456 };
7457
7458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7459 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
7460 if (PyErr_Occurred()) SWIG_fail;
7461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7463 arg3 = (time_t)SWIG_As_unsigned_SS_int(obj2);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 {
7466 PyThreadState* __tstate = wxPyBeginAllowThreads();
7467 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7468
7469 wxPyEndAllowThreads(__tstate);
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 Py_INCREF(Py_None); resultobj = Py_None;
7473 return resultobj;
7474 fail:
7475 return NULL;
7476 }
7477
7478
7479 static PyObject *_wrap_Log_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
7480 PyObject *resultobj;
7481 wxLog *arg1 = (wxLog *) 0 ;
7482 PyObject * obj0 = 0 ;
7483 char *kwnames[] = {
7484 (char *) "self", NULL
7485 };
7486
7487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7490 {
7491 PyThreadState* __tstate = wxPyBeginAllowThreads();
7492 (arg1)->Flush();
7493
7494 wxPyEndAllowThreads(__tstate);
7495 if (PyErr_Occurred()) SWIG_fail;
7496 }
7497 Py_INCREF(Py_None); resultobj = Py_None;
7498 return resultobj;
7499 fail:
7500 return NULL;
7501 }
7502
7503
7504 static PyObject *_wrap_Log_FlushActive(PyObject *, PyObject *args, PyObject *kwargs) {
7505 PyObject *resultobj;
7506 char *kwnames[] = {
7507 NULL
7508 };
7509
7510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7511 {
7512 PyThreadState* __tstate = wxPyBeginAllowThreads();
7513 wxLog::FlushActive();
7514
7515 wxPyEndAllowThreads(__tstate);
7516 if (PyErr_Occurred()) SWIG_fail;
7517 }
7518 Py_INCREF(Py_None); resultobj = Py_None;
7519 return resultobj;
7520 fail:
7521 return NULL;
7522 }
7523
7524
7525 static PyObject *_wrap_Log_GetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
7526 PyObject *resultobj;
7527 wxLog *result;
7528 char *kwnames[] = {
7529 NULL
7530 };
7531
7532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7533 {
7534 PyThreadState* __tstate = wxPyBeginAllowThreads();
7535 result = (wxLog *)wxLog::GetActiveTarget();
7536
7537 wxPyEndAllowThreads(__tstate);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7541 return resultobj;
7542 fail:
7543 return NULL;
7544 }
7545
7546
7547 static PyObject *_wrap_Log_SetActiveTarget(PyObject *, PyObject *args, PyObject *kwargs) {
7548 PyObject *resultobj;
7549 wxLog *arg1 = (wxLog *) 0 ;
7550 wxLog *result;
7551 PyObject * obj0 = 0 ;
7552 char *kwnames[] = {
7553 (char *) "pLogger", NULL
7554 };
7555
7556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7559 {
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7562
7563 wxPyEndAllowThreads(__tstate);
7564 if (PyErr_Occurred()) SWIG_fail;
7565 }
7566 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7567 return resultobj;
7568 fail:
7569 return NULL;
7570 }
7571
7572
7573 static PyObject *_wrap_Log_Suspend(PyObject *, PyObject *args, PyObject *kwargs) {
7574 PyObject *resultobj;
7575 char *kwnames[] = {
7576 NULL
7577 };
7578
7579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7580 {
7581 PyThreadState* __tstate = wxPyBeginAllowThreads();
7582 wxLog::Suspend();
7583
7584 wxPyEndAllowThreads(__tstate);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 Py_INCREF(Py_None); resultobj = Py_None;
7588 return resultobj;
7589 fail:
7590 return NULL;
7591 }
7592
7593
7594 static PyObject *_wrap_Log_Resume(PyObject *, PyObject *args, PyObject *kwargs) {
7595 PyObject *resultobj;
7596 char *kwnames[] = {
7597 NULL
7598 };
7599
7600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7601 {
7602 PyThreadState* __tstate = wxPyBeginAllowThreads();
7603 wxLog::Resume();
7604
7605 wxPyEndAllowThreads(__tstate);
7606 if (PyErr_Occurred()) SWIG_fail;
7607 }
7608 Py_INCREF(Py_None); resultobj = Py_None;
7609 return resultobj;
7610 fail:
7611 return NULL;
7612 }
7613
7614
7615 static PyObject *_wrap_Log_SetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7616 PyObject *resultobj;
7617 bool arg1 = (bool) true ;
7618 PyObject * obj0 = 0 ;
7619 char *kwnames[] = {
7620 (char *) "bVerbose", NULL
7621 };
7622
7623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7624 if (obj0) {
7625 arg1 = (bool)SWIG_As_bool(obj0);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 {
7629 PyThreadState* __tstate = wxPyBeginAllowThreads();
7630 wxLog::SetVerbose(arg1);
7631
7632 wxPyEndAllowThreads(__tstate);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 Py_INCREF(Py_None); resultobj = Py_None;
7636 return resultobj;
7637 fail:
7638 return NULL;
7639 }
7640
7641
7642 static PyObject *_wrap_Log_SetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj;
7644 wxLogLevel arg1 ;
7645 PyObject * obj0 = 0 ;
7646 char *kwnames[] = {
7647 (char *) "logLevel", NULL
7648 };
7649
7650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7651 arg1 = (wxLogLevel)SWIG_As_unsigned_SS_long(obj0);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 {
7654 PyThreadState* __tstate = wxPyBeginAllowThreads();
7655 wxLog::SetLogLevel(arg1);
7656
7657 wxPyEndAllowThreads(__tstate);
7658 if (PyErr_Occurred()) SWIG_fail;
7659 }
7660 Py_INCREF(Py_None); resultobj = Py_None;
7661 return resultobj;
7662 fail:
7663 return NULL;
7664 }
7665
7666
7667 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
7668 PyObject *resultobj;
7669 char *kwnames[] = {
7670 NULL
7671 };
7672
7673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7674 {
7675 PyThreadState* __tstate = wxPyBeginAllowThreads();
7676 wxLog::DontCreateOnDemand();
7677
7678 wxPyEndAllowThreads(__tstate);
7679 if (PyErr_Occurred()) SWIG_fail;
7680 }
7681 Py_INCREF(Py_None); resultobj = Py_None;
7682 return resultobj;
7683 fail:
7684 return NULL;
7685 }
7686
7687
7688 static PyObject *_wrap_Log_SetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7689 PyObject *resultobj;
7690 wxTraceMask arg1 ;
7691 PyObject * obj0 = 0 ;
7692 char *kwnames[] = {
7693 (char *) "ulMask", NULL
7694 };
7695
7696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7697 arg1 = (wxTraceMask)SWIG_As_unsigned_SS_long(obj0);
7698 if (PyErr_Occurred()) SWIG_fail;
7699 {
7700 PyThreadState* __tstate = wxPyBeginAllowThreads();
7701 wxLog::SetTraceMask(arg1);
7702
7703 wxPyEndAllowThreads(__tstate);
7704 if (PyErr_Occurred()) SWIG_fail;
7705 }
7706 Py_INCREF(Py_None); resultobj = Py_None;
7707 return resultobj;
7708 fail:
7709 return NULL;
7710 }
7711
7712
7713 static PyObject *_wrap_Log_AddTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7714 PyObject *resultobj;
7715 wxString *arg1 = 0 ;
7716 bool temp1 = false ;
7717 PyObject * obj0 = 0 ;
7718 char *kwnames[] = {
7719 (char *) "str", NULL
7720 };
7721
7722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7723 {
7724 arg1 = wxString_in_helper(obj0);
7725 if (arg1 == NULL) SWIG_fail;
7726 temp1 = true;
7727 }
7728 {
7729 PyThreadState* __tstate = wxPyBeginAllowThreads();
7730 wxLog::AddTraceMask((wxString const &)*arg1);
7731
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 Py_INCREF(Py_None); resultobj = Py_None;
7736 {
7737 if (temp1)
7738 delete arg1;
7739 }
7740 return resultobj;
7741 fail:
7742 {
7743 if (temp1)
7744 delete arg1;
7745 }
7746 return NULL;
7747 }
7748
7749
7750 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7751 PyObject *resultobj;
7752 wxString *arg1 = 0 ;
7753 bool temp1 = false ;
7754 PyObject * obj0 = 0 ;
7755 char *kwnames[] = {
7756 (char *) "str", NULL
7757 };
7758
7759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7760 {
7761 arg1 = wxString_in_helper(obj0);
7762 if (arg1 == NULL) SWIG_fail;
7763 temp1 = true;
7764 }
7765 {
7766 PyThreadState* __tstate = wxPyBeginAllowThreads();
7767 wxLog::RemoveTraceMask((wxString const &)*arg1);
7768
7769 wxPyEndAllowThreads(__tstate);
7770 if (PyErr_Occurred()) SWIG_fail;
7771 }
7772 Py_INCREF(Py_None); resultobj = Py_None;
7773 {
7774 if (temp1)
7775 delete arg1;
7776 }
7777 return resultobj;
7778 fail:
7779 {
7780 if (temp1)
7781 delete arg1;
7782 }
7783 return NULL;
7784 }
7785
7786
7787 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7788 PyObject *resultobj;
7789 char *kwnames[] = {
7790 NULL
7791 };
7792
7793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7794 {
7795 PyThreadState* __tstate = wxPyBeginAllowThreads();
7796 wxLog::ClearTraceMasks();
7797
7798 wxPyEndAllowThreads(__tstate);
7799 if (PyErr_Occurred()) SWIG_fail;
7800 }
7801 Py_INCREF(Py_None); resultobj = Py_None;
7802 return resultobj;
7803 fail:
7804 return NULL;
7805 }
7806
7807
7808 static PyObject *_wrap_Log_GetTraceMasks(PyObject *, PyObject *args, PyObject *kwargs) {
7809 PyObject *resultobj;
7810 wxArrayString *result;
7811 char *kwnames[] = {
7812 NULL
7813 };
7814
7815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7816 {
7817 PyThreadState* __tstate = wxPyBeginAllowThreads();
7818 {
7819 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7820 result = (wxArrayString *) &_result_ref;
7821 }
7822
7823 wxPyEndAllowThreads(__tstate);
7824 if (PyErr_Occurred()) SWIG_fail;
7825 }
7826 {
7827 resultobj = wxArrayString2PyList_helper(*result);
7828 }
7829 return resultobj;
7830 fail:
7831 return NULL;
7832 }
7833
7834
7835 static PyObject *_wrap_Log_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7836 PyObject *resultobj;
7837 wxChar *arg1 = (wxChar *) 0 ;
7838 PyObject * obj0 = 0 ;
7839 char *kwnames[] = {
7840 (char *) "ts", NULL
7841 };
7842
7843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7846 {
7847 PyThreadState* __tstate = wxPyBeginAllowThreads();
7848 wxLog::SetTimestamp((wxChar const *)arg1);
7849
7850 wxPyEndAllowThreads(__tstate);
7851 if (PyErr_Occurred()) SWIG_fail;
7852 }
7853 Py_INCREF(Py_None); resultobj = Py_None;
7854 return resultobj;
7855 fail:
7856 return NULL;
7857 }
7858
7859
7860 static PyObject *_wrap_Log_GetVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
7861 PyObject *resultobj;
7862 bool result;
7863 char *kwnames[] = {
7864 NULL
7865 };
7866
7867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7868 {
7869 PyThreadState* __tstate = wxPyBeginAllowThreads();
7870 result = (bool)wxLog::GetVerbose();
7871
7872 wxPyEndAllowThreads(__tstate);
7873 if (PyErr_Occurred()) SWIG_fail;
7874 }
7875 {
7876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7877 }
7878 return resultobj;
7879 fail:
7880 return NULL;
7881 }
7882
7883
7884 static PyObject *_wrap_Log_GetTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7885 PyObject *resultobj;
7886 wxTraceMask result;
7887 char *kwnames[] = {
7888 NULL
7889 };
7890
7891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7892 {
7893 PyThreadState* __tstate = wxPyBeginAllowThreads();
7894 result = (wxTraceMask)wxLog::GetTraceMask();
7895
7896 wxPyEndAllowThreads(__tstate);
7897 if (PyErr_Occurred()) SWIG_fail;
7898 }
7899 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7900 return resultobj;
7901 fail:
7902 return NULL;
7903 }
7904
7905
7906 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *, PyObject *args, PyObject *kwargs) {
7907 PyObject *resultobj;
7908 wxChar *arg1 = (wxChar *) 0 ;
7909 bool result;
7910 PyObject * obj0 = 0 ;
7911 char *kwnames[] = {
7912 (char *) "mask", NULL
7913 };
7914
7915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7918 {
7919 PyThreadState* __tstate = wxPyBeginAllowThreads();
7920 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7921
7922 wxPyEndAllowThreads(__tstate);
7923 if (PyErr_Occurred()) SWIG_fail;
7924 }
7925 {
7926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7927 }
7928 return resultobj;
7929 fail:
7930 return NULL;
7931 }
7932
7933
7934 static PyObject *_wrap_Log_GetLogLevel(PyObject *, PyObject *args, PyObject *kwargs) {
7935 PyObject *resultobj;
7936 wxLogLevel result;
7937 char *kwnames[] = {
7938 NULL
7939 };
7940
7941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7942 {
7943 PyThreadState* __tstate = wxPyBeginAllowThreads();
7944 result = (wxLogLevel)wxLog::GetLogLevel();
7945
7946 wxPyEndAllowThreads(__tstate);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
7950 return resultobj;
7951 fail:
7952 return NULL;
7953 }
7954
7955
7956 static PyObject *_wrap_Log_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
7957 PyObject *resultobj;
7958 wxChar *result;
7959 char *kwnames[] = {
7960 NULL
7961 };
7962
7963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7964 {
7965 PyThreadState* __tstate = wxPyBeginAllowThreads();
7966 result = (wxChar *)wxLog::GetTimestamp();
7967
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7972 return resultobj;
7973 fail:
7974 return NULL;
7975 }
7976
7977
7978 static PyObject *_wrap_Log_TimeStamp(PyObject *, PyObject *args, PyObject *kwargs) {
7979 PyObject *resultobj;
7980 wxString result;
7981 char *kwnames[] = {
7982 NULL
7983 };
7984
7985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7986 {
7987 PyThreadState* __tstate = wxPyBeginAllowThreads();
7988 result = Log_TimeStamp();
7989
7990 wxPyEndAllowThreads(__tstate);
7991 if (PyErr_Occurred()) SWIG_fail;
7992 }
7993 {
7994 #if wxUSE_UNICODE
7995 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7996 #else
7997 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7998 #endif
7999 }
8000 return resultobj;
8001 fail:
8002 return NULL;
8003 }
8004
8005
8006 static PyObject *_wrap_Log_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
8007 PyObject *resultobj;
8008 wxLog *arg1 = (wxLog *) 0 ;
8009 PyObject * obj0 = 0 ;
8010 char *kwnames[] = {
8011 (char *) "self", NULL
8012 };
8013
8014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
8015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8017 {
8018 PyThreadState* __tstate = wxPyBeginAllowThreads();
8019 wxLog_Destroy(arg1);
8020
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 Py_INCREF(Py_None); resultobj = Py_None;
8025 return resultobj;
8026 fail:
8027 return NULL;
8028 }
8029
8030
8031 static PyObject * Log_swigregister(PyObject *, PyObject *args) {
8032 PyObject *obj;
8033 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8034 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
8035 Py_INCREF(obj);
8036 return Py_BuildValue((char *)"");
8037 }
8038 static PyObject *_wrap_new_LogStderr(PyObject *, PyObject *args, PyObject *kwargs) {
8039 PyObject *resultobj;
8040 wxLogStderr *result;
8041 char *kwnames[] = {
8042 NULL
8043 };
8044
8045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
8046 {
8047 PyThreadState* __tstate = wxPyBeginAllowThreads();
8048 result = (wxLogStderr *)new wxLogStderr();
8049
8050 wxPyEndAllowThreads(__tstate);
8051 if (PyErr_Occurred()) SWIG_fail;
8052 }
8053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
8054 return resultobj;
8055 fail:
8056 return NULL;
8057 }
8058
8059
8060 static PyObject * LogStderr_swigregister(PyObject *, PyObject *args) {
8061 PyObject *obj;
8062 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8063 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
8064 Py_INCREF(obj);
8065 return Py_BuildValue((char *)"");
8066 }
8067 static PyObject *_wrap_new_LogTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8068 PyObject *resultobj;
8069 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8070 wxLogTextCtrl *result;
8071 PyObject * obj0 = 0 ;
8072 char *kwnames[] = {
8073 (char *) "pTextCtrl", NULL
8074 };
8075
8076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
8077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8079 {
8080 PyThreadState* __tstate = wxPyBeginAllowThreads();
8081 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
8082
8083 wxPyEndAllowThreads(__tstate);
8084 if (PyErr_Occurred()) SWIG_fail;
8085 }
8086 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
8087 return resultobj;
8088 fail:
8089 return NULL;
8090 }
8091
8092
8093 static PyObject * LogTextCtrl_swigregister(PyObject *, PyObject *args) {
8094 PyObject *obj;
8095 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8096 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
8097 Py_INCREF(obj);
8098 return Py_BuildValue((char *)"");
8099 }
8100 static PyObject *_wrap_new_LogGui(PyObject *, PyObject *args, PyObject *kwargs) {
8101 PyObject *resultobj;
8102 wxLogGui *result;
8103 char *kwnames[] = {
8104 NULL
8105 };
8106
8107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
8108 {
8109 PyThreadState* __tstate = wxPyBeginAllowThreads();
8110 result = (wxLogGui *)new wxLogGui();
8111
8112 wxPyEndAllowThreads(__tstate);
8113 if (PyErr_Occurred()) SWIG_fail;
8114 }
8115 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
8116 return resultobj;
8117 fail:
8118 return NULL;
8119 }
8120
8121
8122 static PyObject * LogGui_swigregister(PyObject *, PyObject *args) {
8123 PyObject *obj;
8124 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8125 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
8126 Py_INCREF(obj);
8127 return Py_BuildValue((char *)"");
8128 }
8129 static PyObject *_wrap_new_LogWindow(PyObject *, PyObject *args, PyObject *kwargs) {
8130 PyObject *resultobj;
8131 wxFrame *arg1 = (wxFrame *) 0 ;
8132 wxString *arg2 = 0 ;
8133 bool arg3 = (bool) true ;
8134 bool arg4 = (bool) true ;
8135 wxLogWindow *result;
8136 bool temp2 = false ;
8137 PyObject * obj0 = 0 ;
8138 PyObject * obj1 = 0 ;
8139 PyObject * obj2 = 0 ;
8140 PyObject * obj3 = 0 ;
8141 char *kwnames[] = {
8142 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
8143 };
8144
8145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8148 {
8149 arg2 = wxString_in_helper(obj1);
8150 if (arg2 == NULL) SWIG_fail;
8151 temp2 = true;
8152 }
8153 if (obj2) {
8154 arg3 = (bool)SWIG_As_bool(obj2);
8155 if (PyErr_Occurred()) SWIG_fail;
8156 }
8157 if (obj3) {
8158 arg4 = (bool)SWIG_As_bool(obj3);
8159 if (PyErr_Occurred()) SWIG_fail;
8160 }
8161 {
8162 PyThreadState* __tstate = wxPyBeginAllowThreads();
8163 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
8164
8165 wxPyEndAllowThreads(__tstate);
8166 if (PyErr_Occurred()) SWIG_fail;
8167 }
8168 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
8169 {
8170 if (temp2)
8171 delete arg2;
8172 }
8173 return resultobj;
8174 fail:
8175 {
8176 if (temp2)
8177 delete arg2;
8178 }
8179 return NULL;
8180 }
8181
8182
8183 static PyObject *_wrap_LogWindow_Show(PyObject *, PyObject *args, PyObject *kwargs) {
8184 PyObject *resultobj;
8185 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8186 bool arg2 = (bool) true ;
8187 PyObject * obj0 = 0 ;
8188 PyObject * obj1 = 0 ;
8189 char *kwnames[] = {
8190 (char *) "self",(char *) "bShow", NULL
8191 };
8192
8193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
8194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8196 if (obj1) {
8197 arg2 = (bool)SWIG_As_bool(obj1);
8198 if (PyErr_Occurred()) SWIG_fail;
8199 }
8200 {
8201 PyThreadState* __tstate = wxPyBeginAllowThreads();
8202 (arg1)->Show(arg2);
8203
8204 wxPyEndAllowThreads(__tstate);
8205 if (PyErr_Occurred()) SWIG_fail;
8206 }
8207 Py_INCREF(Py_None); resultobj = Py_None;
8208 return resultobj;
8209 fail:
8210 return NULL;
8211 }
8212
8213
8214 static PyObject *_wrap_LogWindow_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
8215 PyObject *resultobj;
8216 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8217 wxFrame *result;
8218 PyObject * obj0 = 0 ;
8219 char *kwnames[] = {
8220 (char *) "self", NULL
8221 };
8222
8223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
8224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8226 {
8227 PyThreadState* __tstate = wxPyBeginAllowThreads();
8228 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
8229
8230 wxPyEndAllowThreads(__tstate);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 }
8233 {
8234 resultobj = wxPyMake_wxObject(result, 0);
8235 }
8236 return resultobj;
8237 fail:
8238 return NULL;
8239 }
8240
8241
8242 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
8243 PyObject *resultobj;
8244 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8245 wxLog *result;
8246 PyObject * obj0 = 0 ;
8247 char *kwnames[] = {
8248 (char *) "self", NULL
8249 };
8250
8251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
8252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8254 {
8255 PyThreadState* __tstate = wxPyBeginAllowThreads();
8256 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8257
8258 wxPyEndAllowThreads(__tstate);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8262 return resultobj;
8263 fail:
8264 return NULL;
8265 }
8266
8267
8268 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8269 PyObject *resultobj;
8270 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8271 bool result;
8272 PyObject * obj0 = 0 ;
8273 char *kwnames[] = {
8274 (char *) "self", NULL
8275 };
8276
8277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8280 {
8281 PyThreadState* __tstate = wxPyBeginAllowThreads();
8282 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8283
8284 wxPyEndAllowThreads(__tstate);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 {
8288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8289 }
8290 return resultobj;
8291 fail:
8292 return NULL;
8293 }
8294
8295
8296 static PyObject *_wrap_LogWindow_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8297 PyObject *resultobj;
8298 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8299 bool arg2 ;
8300 PyObject * obj0 = 0 ;
8301 PyObject * obj1 = 0 ;
8302 char *kwnames[] = {
8303 (char *) "self",(char *) "bDoPass", NULL
8304 };
8305
8306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8309 arg2 = (bool)SWIG_As_bool(obj1);
8310 if (PyErr_Occurred()) SWIG_fail;
8311 {
8312 PyThreadState* __tstate = wxPyBeginAllowThreads();
8313 (arg1)->PassMessages(arg2);
8314
8315 wxPyEndAllowThreads(__tstate);
8316 if (PyErr_Occurred()) SWIG_fail;
8317 }
8318 Py_INCREF(Py_None); resultobj = Py_None;
8319 return resultobj;
8320 fail:
8321 return NULL;
8322 }
8323
8324
8325 static PyObject * LogWindow_swigregister(PyObject *, PyObject *args) {
8326 PyObject *obj;
8327 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8328 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8329 Py_INCREF(obj);
8330 return Py_BuildValue((char *)"");
8331 }
8332 static PyObject *_wrap_new_LogChain(PyObject *, PyObject *args, PyObject *kwargs) {
8333 PyObject *resultobj;
8334 wxLog *arg1 = (wxLog *) 0 ;
8335 wxLogChain *result;
8336 PyObject * obj0 = 0 ;
8337 char *kwnames[] = {
8338 (char *) "logger", NULL
8339 };
8340
8341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8344 {
8345 PyThreadState* __tstate = wxPyBeginAllowThreads();
8346 result = (wxLogChain *)new wxLogChain(arg1);
8347
8348 wxPyEndAllowThreads(__tstate);
8349 if (PyErr_Occurred()) SWIG_fail;
8350 }
8351 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8352 return resultobj;
8353 fail:
8354 return NULL;
8355 }
8356
8357
8358 static PyObject *_wrap_LogChain_SetLog(PyObject *, PyObject *args, PyObject *kwargs) {
8359 PyObject *resultobj;
8360 wxLogChain *arg1 = (wxLogChain *) 0 ;
8361 wxLog *arg2 = (wxLog *) 0 ;
8362 PyObject * obj0 = 0 ;
8363 PyObject * obj1 = 0 ;
8364 char *kwnames[] = {
8365 (char *) "self",(char *) "logger", NULL
8366 };
8367
8368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8371 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8373 {
8374 PyThreadState* __tstate = wxPyBeginAllowThreads();
8375 (arg1)->SetLog(arg2);
8376
8377 wxPyEndAllowThreads(__tstate);
8378 if (PyErr_Occurred()) SWIG_fail;
8379 }
8380 Py_INCREF(Py_None); resultobj = Py_None;
8381 return resultobj;
8382 fail:
8383 return NULL;
8384 }
8385
8386
8387 static PyObject *_wrap_LogChain_PassMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8388 PyObject *resultobj;
8389 wxLogChain *arg1 = (wxLogChain *) 0 ;
8390 bool arg2 ;
8391 PyObject * obj0 = 0 ;
8392 PyObject * obj1 = 0 ;
8393 char *kwnames[] = {
8394 (char *) "self",(char *) "bDoPass", NULL
8395 };
8396
8397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8400 arg2 = (bool)SWIG_As_bool(obj1);
8401 if (PyErr_Occurred()) SWIG_fail;
8402 {
8403 PyThreadState* __tstate = wxPyBeginAllowThreads();
8404 (arg1)->PassMessages(arg2);
8405
8406 wxPyEndAllowThreads(__tstate);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 }
8409 Py_INCREF(Py_None); resultobj = Py_None;
8410 return resultobj;
8411 fail:
8412 return NULL;
8413 }
8414
8415
8416 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *, PyObject *args, PyObject *kwargs) {
8417 PyObject *resultobj;
8418 wxLogChain *arg1 = (wxLogChain *) 0 ;
8419 bool result;
8420 PyObject * obj0 = 0 ;
8421 char *kwnames[] = {
8422 (char *) "self", NULL
8423 };
8424
8425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8428 {
8429 PyThreadState* __tstate = wxPyBeginAllowThreads();
8430 result = (bool)(arg1)->IsPassingMessages();
8431
8432 wxPyEndAllowThreads(__tstate);
8433 if (PyErr_Occurred()) SWIG_fail;
8434 }
8435 {
8436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8437 }
8438 return resultobj;
8439 fail:
8440 return NULL;
8441 }
8442
8443
8444 static PyObject *_wrap_LogChain_GetOldLog(PyObject *, PyObject *args, PyObject *kwargs) {
8445 PyObject *resultobj;
8446 wxLogChain *arg1 = (wxLogChain *) 0 ;
8447 wxLog *result;
8448 PyObject * obj0 = 0 ;
8449 char *kwnames[] = {
8450 (char *) "self", NULL
8451 };
8452
8453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8456 {
8457 PyThreadState* __tstate = wxPyBeginAllowThreads();
8458 result = (wxLog *)(arg1)->GetOldLog();
8459
8460 wxPyEndAllowThreads(__tstate);
8461 if (PyErr_Occurred()) SWIG_fail;
8462 }
8463 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8464 return resultobj;
8465 fail:
8466 return NULL;
8467 }
8468
8469
8470 static PyObject * LogChain_swigregister(PyObject *, PyObject *args) {
8471 PyObject *obj;
8472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8473 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8474 Py_INCREF(obj);
8475 return Py_BuildValue((char *)"");
8476 }
8477 static PyObject *_wrap_SysErrorCode(PyObject *, PyObject *args, PyObject *kwargs) {
8478 PyObject *resultobj;
8479 unsigned long result;
8480 char *kwnames[] = {
8481 NULL
8482 };
8483
8484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8485 {
8486 PyThreadState* __tstate = wxPyBeginAllowThreads();
8487 result = (unsigned long)wxSysErrorCode();
8488
8489 wxPyEndAllowThreads(__tstate);
8490 if (PyErr_Occurred()) SWIG_fail;
8491 }
8492 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
8493 return resultobj;
8494 fail:
8495 return NULL;
8496 }
8497
8498
8499 static PyObject *_wrap_SysErrorMsg(PyObject *, PyObject *args, PyObject *kwargs) {
8500 PyObject *resultobj;
8501 unsigned long arg1 = (unsigned long) 0 ;
8502 wxString result;
8503 PyObject * obj0 = 0 ;
8504 char *kwnames[] = {
8505 (char *) "nErrCode", NULL
8506 };
8507
8508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8509 if (obj0) {
8510 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 }
8513 {
8514 PyThreadState* __tstate = wxPyBeginAllowThreads();
8515 result = wxSysErrorMsg(arg1);
8516
8517 wxPyEndAllowThreads(__tstate);
8518 if (PyErr_Occurred()) SWIG_fail;
8519 }
8520 {
8521 #if wxUSE_UNICODE
8522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8523 #else
8524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8525 #endif
8526 }
8527 return resultobj;
8528 fail:
8529 return NULL;
8530 }
8531
8532
8533 static PyObject *_wrap_LogFatalError(PyObject *, PyObject *args, PyObject *kwargs) {
8534 PyObject *resultobj;
8535 wxString *arg1 = 0 ;
8536 bool temp1 = false ;
8537 PyObject * obj0 = 0 ;
8538 char *kwnames[] = {
8539 (char *) "msg", NULL
8540 };
8541
8542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8543 {
8544 arg1 = wxString_in_helper(obj0);
8545 if (arg1 == NULL) SWIG_fail;
8546 temp1 = true;
8547 }
8548 {
8549 PyThreadState* __tstate = wxPyBeginAllowThreads();
8550 wxLogFatalError((wxString const &)*arg1);
8551
8552 wxPyEndAllowThreads(__tstate);
8553 if (PyErr_Occurred()) SWIG_fail;
8554 }
8555 Py_INCREF(Py_None); resultobj = Py_None;
8556 {
8557 if (temp1)
8558 delete arg1;
8559 }
8560 return resultobj;
8561 fail:
8562 {
8563 if (temp1)
8564 delete arg1;
8565 }
8566 return NULL;
8567 }
8568
8569
8570 static PyObject *_wrap_LogError(PyObject *, PyObject *args, PyObject *kwargs) {
8571 PyObject *resultobj;
8572 wxString *arg1 = 0 ;
8573 bool temp1 = false ;
8574 PyObject * obj0 = 0 ;
8575 char *kwnames[] = {
8576 (char *) "msg", NULL
8577 };
8578
8579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8580 {
8581 arg1 = wxString_in_helper(obj0);
8582 if (arg1 == NULL) SWIG_fail;
8583 temp1 = true;
8584 }
8585 {
8586 PyThreadState* __tstate = wxPyBeginAllowThreads();
8587 wxLogError((wxString const &)*arg1);
8588
8589 wxPyEndAllowThreads(__tstate);
8590 if (PyErr_Occurred()) SWIG_fail;
8591 }
8592 Py_INCREF(Py_None); resultobj = Py_None;
8593 {
8594 if (temp1)
8595 delete arg1;
8596 }
8597 return resultobj;
8598 fail:
8599 {
8600 if (temp1)
8601 delete arg1;
8602 }
8603 return NULL;
8604 }
8605
8606
8607 static PyObject *_wrap_LogWarning(PyObject *, PyObject *args, PyObject *kwargs) {
8608 PyObject *resultobj;
8609 wxString *arg1 = 0 ;
8610 bool temp1 = false ;
8611 PyObject * obj0 = 0 ;
8612 char *kwnames[] = {
8613 (char *) "msg", NULL
8614 };
8615
8616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8617 {
8618 arg1 = wxString_in_helper(obj0);
8619 if (arg1 == NULL) SWIG_fail;
8620 temp1 = true;
8621 }
8622 {
8623 PyThreadState* __tstate = wxPyBeginAllowThreads();
8624 wxLogWarning((wxString const &)*arg1);
8625
8626 wxPyEndAllowThreads(__tstate);
8627 if (PyErr_Occurred()) SWIG_fail;
8628 }
8629 Py_INCREF(Py_None); resultobj = Py_None;
8630 {
8631 if (temp1)
8632 delete arg1;
8633 }
8634 return resultobj;
8635 fail:
8636 {
8637 if (temp1)
8638 delete arg1;
8639 }
8640 return NULL;
8641 }
8642
8643
8644 static PyObject *_wrap_LogMessage(PyObject *, PyObject *args, PyObject *kwargs) {
8645 PyObject *resultobj;
8646 wxString *arg1 = 0 ;
8647 bool temp1 = false ;
8648 PyObject * obj0 = 0 ;
8649 char *kwnames[] = {
8650 (char *) "msg", NULL
8651 };
8652
8653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8654 {
8655 arg1 = wxString_in_helper(obj0);
8656 if (arg1 == NULL) SWIG_fail;
8657 temp1 = true;
8658 }
8659 {
8660 PyThreadState* __tstate = wxPyBeginAllowThreads();
8661 wxLogMessage((wxString const &)*arg1);
8662
8663 wxPyEndAllowThreads(__tstate);
8664 if (PyErr_Occurred()) SWIG_fail;
8665 }
8666 Py_INCREF(Py_None); resultobj = Py_None;
8667 {
8668 if (temp1)
8669 delete arg1;
8670 }
8671 return resultobj;
8672 fail:
8673 {
8674 if (temp1)
8675 delete arg1;
8676 }
8677 return NULL;
8678 }
8679
8680
8681 static PyObject *_wrap_LogInfo(PyObject *, PyObject *args, PyObject *kwargs) {
8682 PyObject *resultobj;
8683 wxString *arg1 = 0 ;
8684 bool temp1 = false ;
8685 PyObject * obj0 = 0 ;
8686 char *kwnames[] = {
8687 (char *) "msg", NULL
8688 };
8689
8690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8691 {
8692 arg1 = wxString_in_helper(obj0);
8693 if (arg1 == NULL) SWIG_fail;
8694 temp1 = true;
8695 }
8696 {
8697 PyThreadState* __tstate = wxPyBeginAllowThreads();
8698 wxLogInfo((wxString const &)*arg1);
8699
8700 wxPyEndAllowThreads(__tstate);
8701 if (PyErr_Occurred()) SWIG_fail;
8702 }
8703 Py_INCREF(Py_None); resultobj = Py_None;
8704 {
8705 if (temp1)
8706 delete arg1;
8707 }
8708 return resultobj;
8709 fail:
8710 {
8711 if (temp1)
8712 delete arg1;
8713 }
8714 return NULL;
8715 }
8716
8717
8718 static PyObject *_wrap_LogDebug(PyObject *, PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj;
8720 wxString *arg1 = 0 ;
8721 bool temp1 = false ;
8722 PyObject * obj0 = 0 ;
8723 char *kwnames[] = {
8724 (char *) "msg", NULL
8725 };
8726
8727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8728 {
8729 arg1 = wxString_in_helper(obj0);
8730 if (arg1 == NULL) SWIG_fail;
8731 temp1 = true;
8732 }
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
8735 wxLogDebug((wxString const &)*arg1);
8736
8737 wxPyEndAllowThreads(__tstate);
8738 if (PyErr_Occurred()) SWIG_fail;
8739 }
8740 Py_INCREF(Py_None); resultobj = Py_None;
8741 {
8742 if (temp1)
8743 delete arg1;
8744 }
8745 return resultobj;
8746 fail:
8747 {
8748 if (temp1)
8749 delete arg1;
8750 }
8751 return NULL;
8752 }
8753
8754
8755 static PyObject *_wrap_LogVerbose(PyObject *, PyObject *args, PyObject *kwargs) {
8756 PyObject *resultobj;
8757 wxString *arg1 = 0 ;
8758 bool temp1 = false ;
8759 PyObject * obj0 = 0 ;
8760 char *kwnames[] = {
8761 (char *) "msg", NULL
8762 };
8763
8764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8765 {
8766 arg1 = wxString_in_helper(obj0);
8767 if (arg1 == NULL) SWIG_fail;
8768 temp1 = true;
8769 }
8770 {
8771 PyThreadState* __tstate = wxPyBeginAllowThreads();
8772 wxLogVerbose((wxString const &)*arg1);
8773
8774 wxPyEndAllowThreads(__tstate);
8775 if (PyErr_Occurred()) SWIG_fail;
8776 }
8777 Py_INCREF(Py_None); resultobj = Py_None;
8778 {
8779 if (temp1)
8780 delete arg1;
8781 }
8782 return resultobj;
8783 fail:
8784 {
8785 if (temp1)
8786 delete arg1;
8787 }
8788 return NULL;
8789 }
8790
8791
8792 static PyObject *_wrap_LogStatus(PyObject *, PyObject *args, PyObject *kwargs) {
8793 PyObject *resultobj;
8794 wxString *arg1 = 0 ;
8795 bool temp1 = false ;
8796 PyObject * obj0 = 0 ;
8797 char *kwnames[] = {
8798 (char *) "msg", NULL
8799 };
8800
8801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8802 {
8803 arg1 = wxString_in_helper(obj0);
8804 if (arg1 == NULL) SWIG_fail;
8805 temp1 = true;
8806 }
8807 {
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 wxLogStatus((wxString const &)*arg1);
8810
8811 wxPyEndAllowThreads(__tstate);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 Py_INCREF(Py_None); resultobj = Py_None;
8815 {
8816 if (temp1)
8817 delete arg1;
8818 }
8819 return resultobj;
8820 fail:
8821 {
8822 if (temp1)
8823 delete arg1;
8824 }
8825 return NULL;
8826 }
8827
8828
8829 static PyObject *_wrap_LogStatusFrame(PyObject *, PyObject *args, PyObject *kwargs) {
8830 PyObject *resultobj;
8831 wxFrame *arg1 = (wxFrame *) 0 ;
8832 wxString *arg2 = 0 ;
8833 bool temp2 = false ;
8834 PyObject * obj0 = 0 ;
8835 PyObject * obj1 = 0 ;
8836 char *kwnames[] = {
8837 (char *) "pFrame",(char *) "msg", NULL
8838 };
8839
8840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8843 {
8844 arg2 = wxString_in_helper(obj1);
8845 if (arg2 == NULL) SWIG_fail;
8846 temp2 = true;
8847 }
8848 {
8849 PyThreadState* __tstate = wxPyBeginAllowThreads();
8850 wxLogStatus(arg1,(wxString const &)*arg2);
8851
8852 wxPyEndAllowThreads(__tstate);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
8855 Py_INCREF(Py_None); resultobj = Py_None;
8856 {
8857 if (temp2)
8858 delete arg2;
8859 }
8860 return resultobj;
8861 fail:
8862 {
8863 if (temp2)
8864 delete arg2;
8865 }
8866 return NULL;
8867 }
8868
8869
8870 static PyObject *_wrap_LogSysError(PyObject *, PyObject *args, PyObject *kwargs) {
8871 PyObject *resultobj;
8872 wxString *arg1 = 0 ;
8873 bool temp1 = false ;
8874 PyObject * obj0 = 0 ;
8875 char *kwnames[] = {
8876 (char *) "msg", NULL
8877 };
8878
8879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8880 {
8881 arg1 = wxString_in_helper(obj0);
8882 if (arg1 == NULL) SWIG_fail;
8883 temp1 = true;
8884 }
8885 {
8886 PyThreadState* __tstate = wxPyBeginAllowThreads();
8887 wxLogSysError((wxString const &)*arg1);
8888
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) SWIG_fail;
8891 }
8892 Py_INCREF(Py_None); resultobj = Py_None;
8893 {
8894 if (temp1)
8895 delete arg1;
8896 }
8897 return resultobj;
8898 fail:
8899 {
8900 if (temp1)
8901 delete arg1;
8902 }
8903 return NULL;
8904 }
8905
8906
8907 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *, PyObject *args) {
8908 PyObject *resultobj;
8909 unsigned long arg1 ;
8910 wxString *arg2 = 0 ;
8911 bool temp2 = false ;
8912 PyObject * obj0 = 0 ;
8913 PyObject * obj1 = 0 ;
8914
8915 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8916 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
8917 if (PyErr_Occurred()) SWIG_fail;
8918 {
8919 arg2 = wxString_in_helper(obj1);
8920 if (arg2 == NULL) SWIG_fail;
8921 temp2 = true;
8922 }
8923 {
8924 PyThreadState* __tstate = wxPyBeginAllowThreads();
8925 wxLogTrace(arg1,(wxString const &)*arg2);
8926
8927 wxPyEndAllowThreads(__tstate);
8928 if (PyErr_Occurred()) SWIG_fail;
8929 }
8930 Py_INCREF(Py_None); resultobj = Py_None;
8931 {
8932 if (temp2)
8933 delete arg2;
8934 }
8935 return resultobj;
8936 fail:
8937 {
8938 if (temp2)
8939 delete arg2;
8940 }
8941 return NULL;
8942 }
8943
8944
8945 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *, PyObject *args) {
8946 PyObject *resultobj;
8947 wxString *arg1 = 0 ;
8948 wxString *arg2 = 0 ;
8949 bool temp1 = false ;
8950 bool temp2 = false ;
8951 PyObject * obj0 = 0 ;
8952 PyObject * obj1 = 0 ;
8953
8954 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8955 {
8956 arg1 = wxString_in_helper(obj0);
8957 if (arg1 == NULL) SWIG_fail;
8958 temp1 = true;
8959 }
8960 {
8961 arg2 = wxString_in_helper(obj1);
8962 if (arg2 == NULL) SWIG_fail;
8963 temp2 = true;
8964 }
8965 {
8966 PyThreadState* __tstate = wxPyBeginAllowThreads();
8967 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8968
8969 wxPyEndAllowThreads(__tstate);
8970 if (PyErr_Occurred()) SWIG_fail;
8971 }
8972 Py_INCREF(Py_None); resultobj = Py_None;
8973 {
8974 if (temp1)
8975 delete arg1;
8976 }
8977 {
8978 if (temp2)
8979 delete arg2;
8980 }
8981 return resultobj;
8982 fail:
8983 {
8984 if (temp1)
8985 delete arg1;
8986 }
8987 {
8988 if (temp2)
8989 delete arg2;
8990 }
8991 return NULL;
8992 }
8993
8994
8995 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8996 int argc;
8997 PyObject *argv[3];
8998 int ii;
8999
9000 argc = PyObject_Length(args);
9001 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
9002 argv[ii] = PyTuple_GetItem(args,ii);
9003 }
9004 if (argc == 2) {
9005 int _v;
9006 {
9007 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9008 }
9009 if (_v) {
9010 {
9011 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9012 }
9013 if (_v) {
9014 return _wrap_LogTrace__SWIG_1(self,args);
9015 }
9016 }
9017 }
9018 if (argc == 2) {
9019 int _v;
9020 _v = SWIG_Check_unsigned_SS_long(argv[0]);
9021 if (_v) {
9022 {
9023 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9024 }
9025 if (_v) {
9026 return _wrap_LogTrace__SWIG_0(self,args);
9027 }
9028 }
9029 }
9030
9031 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
9032 return NULL;
9033 }
9034
9035
9036 static PyObject *_wrap_LogGeneric(PyObject *, PyObject *args, PyObject *kwargs) {
9037 PyObject *resultobj;
9038 unsigned long arg1 ;
9039 wxString *arg2 = 0 ;
9040 bool temp2 = false ;
9041 PyObject * obj0 = 0 ;
9042 PyObject * obj1 = 0 ;
9043 char *kwnames[] = {
9044 (char *) "level",(char *) "msg", NULL
9045 };
9046
9047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
9048 arg1 = (unsigned long)SWIG_As_unsigned_SS_long(obj0);
9049 if (PyErr_Occurred()) SWIG_fail;
9050 {
9051 arg2 = wxString_in_helper(obj1);
9052 if (arg2 == NULL) SWIG_fail;
9053 temp2 = true;
9054 }
9055 {
9056 PyThreadState* __tstate = wxPyBeginAllowThreads();
9057 wxLogGeneric(arg1,(wxString const &)*arg2);
9058
9059 wxPyEndAllowThreads(__tstate);
9060 if (PyErr_Occurred()) SWIG_fail;
9061 }
9062 Py_INCREF(Py_None); resultobj = Py_None;
9063 {
9064 if (temp2)
9065 delete arg2;
9066 }
9067 return resultobj;
9068 fail:
9069 {
9070 if (temp2)
9071 delete arg2;
9072 }
9073 return NULL;
9074 }
9075
9076
9077 static PyObject *_wrap_SafeShowMessage(PyObject *, PyObject *args, PyObject *kwargs) {
9078 PyObject *resultobj;
9079 wxString *arg1 = 0 ;
9080 wxString *arg2 = 0 ;
9081 bool temp1 = false ;
9082 bool temp2 = false ;
9083 PyObject * obj0 = 0 ;
9084 PyObject * obj1 = 0 ;
9085 char *kwnames[] = {
9086 (char *) "title",(char *) "text", NULL
9087 };
9088
9089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
9090 {
9091 arg1 = wxString_in_helper(obj0);
9092 if (arg1 == NULL) SWIG_fail;
9093 temp1 = true;
9094 }
9095 {
9096 arg2 = wxString_in_helper(obj1);
9097 if (arg2 == NULL) SWIG_fail;
9098 temp2 = true;
9099 }
9100 {
9101 PyThreadState* __tstate = wxPyBeginAllowThreads();
9102 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
9103
9104 wxPyEndAllowThreads(__tstate);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 Py_INCREF(Py_None); resultobj = Py_None;
9108 {
9109 if (temp1)
9110 delete arg1;
9111 }
9112 {
9113 if (temp2)
9114 delete arg2;
9115 }
9116 return resultobj;
9117 fail:
9118 {
9119 if (temp1)
9120 delete arg1;
9121 }
9122 {
9123 if (temp2)
9124 delete arg2;
9125 }
9126 return NULL;
9127 }
9128
9129
9130 static PyObject *_wrap_new_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
9131 PyObject *resultobj;
9132 wxLogNull *result;
9133 char *kwnames[] = {
9134 NULL
9135 };
9136
9137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
9138 {
9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
9140 result = (wxLogNull *)new wxLogNull();
9141
9142 wxPyEndAllowThreads(__tstate);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
9146 return resultobj;
9147 fail:
9148 return NULL;
9149 }
9150
9151
9152 static PyObject *_wrap_delete_LogNull(PyObject *, PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj;
9154 wxLogNull *arg1 = (wxLogNull *) 0 ;
9155 PyObject * obj0 = 0 ;
9156 char *kwnames[] = {
9157 (char *) "self", NULL
9158 };
9159
9160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
9161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
9162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9163 {
9164 PyThreadState* __tstate = wxPyBeginAllowThreads();
9165 delete arg1;
9166
9167 wxPyEndAllowThreads(__tstate);
9168 if (PyErr_Occurred()) SWIG_fail;
9169 }
9170 Py_INCREF(Py_None); resultobj = Py_None;
9171 return resultobj;
9172 fail:
9173 return NULL;
9174 }
9175
9176
9177 static PyObject * LogNull_swigregister(PyObject *, PyObject *args) {
9178 PyObject *obj;
9179 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9180 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
9181 Py_INCREF(obj);
9182 return Py_BuildValue((char *)"");
9183 }
9184 static PyObject *_wrap_new_PyLog(PyObject *, PyObject *args, PyObject *kwargs) {
9185 PyObject *resultobj;
9186 wxPyLog *result;
9187 char *kwnames[] = {
9188 NULL
9189 };
9190
9191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
9192 {
9193 PyThreadState* __tstate = wxPyBeginAllowThreads();
9194 result = (wxPyLog *)new wxPyLog();
9195
9196 wxPyEndAllowThreads(__tstate);
9197 if (PyErr_Occurred()) SWIG_fail;
9198 }
9199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
9200 return resultobj;
9201 fail:
9202 return NULL;
9203 }
9204
9205
9206 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9207 PyObject *resultobj;
9208 wxPyLog *arg1 = (wxPyLog *) 0 ;
9209 PyObject *arg2 = (PyObject *) 0 ;
9210 PyObject *arg3 = (PyObject *) 0 ;
9211 PyObject * obj0 = 0 ;
9212 PyObject * obj1 = 0 ;
9213 PyObject * obj2 = 0 ;
9214 char *kwnames[] = {
9215 (char *) "self",(char *) "self",(char *) "_class", NULL
9216 };
9217
9218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
9220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9221 arg2 = obj1;
9222 arg3 = obj2;
9223 {
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 (arg1)->_setCallbackInfo(arg2,arg3);
9226
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) SWIG_fail;
9229 }
9230 Py_INCREF(Py_None); resultobj = Py_None;
9231 return resultobj;
9232 fail:
9233 return NULL;
9234 }
9235
9236
9237 static PyObject * PyLog_swigregister(PyObject *, PyObject *args) {
9238 PyObject *obj;
9239 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9240 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
9241 Py_INCREF(obj);
9242 return Py_BuildValue((char *)"");
9243 }
9244 static PyObject *_wrap_Process_Kill(PyObject *, PyObject *args, PyObject *kwargs) {
9245 PyObject *resultobj;
9246 int arg1 ;
9247 int arg2 = (int) wxSIGTERM ;
9248 int result;
9249 PyObject * obj0 = 0 ;
9250 PyObject * obj1 = 0 ;
9251 char *kwnames[] = {
9252 (char *) "pid",(char *) "sig", NULL
9253 };
9254
9255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
9256 arg1 = (int)SWIG_As_int(obj0);
9257 if (PyErr_Occurred()) SWIG_fail;
9258 if (obj1) {
9259 arg2 = (int)SWIG_As_int(obj1);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 }
9262 {
9263 PyThreadState* __tstate = wxPyBeginAllowThreads();
9264 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9265
9266 wxPyEndAllowThreads(__tstate);
9267 if (PyErr_Occurred()) SWIG_fail;
9268 }
9269 resultobj = SWIG_From_int((int)result);
9270 return resultobj;
9271 fail:
9272 return NULL;
9273 }
9274
9275
9276 static PyObject *_wrap_Process_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
9277 PyObject *resultobj;
9278 int arg1 ;
9279 bool result;
9280 PyObject * obj0 = 0 ;
9281 char *kwnames[] = {
9282 (char *) "pid", NULL
9283 };
9284
9285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
9286 arg1 = (int)SWIG_As_int(obj0);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 {
9289 PyThreadState* __tstate = wxPyBeginAllowThreads();
9290 result = (bool)wxPyProcess::Exists(arg1);
9291
9292 wxPyEndAllowThreads(__tstate);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 }
9295 {
9296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9297 }
9298 return resultobj;
9299 fail:
9300 return NULL;
9301 }
9302
9303
9304 static PyObject *_wrap_Process_Open(PyObject *, PyObject *args, PyObject *kwargs) {
9305 PyObject *resultobj;
9306 wxString *arg1 = 0 ;
9307 int arg2 = (int) wxEXEC_ASYNC ;
9308 wxPyProcess *result;
9309 bool temp1 = false ;
9310 PyObject * obj0 = 0 ;
9311 PyObject * obj1 = 0 ;
9312 char *kwnames[] = {
9313 (char *) "cmd",(char *) "flags", NULL
9314 };
9315
9316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9317 {
9318 arg1 = wxString_in_helper(obj0);
9319 if (arg1 == NULL) SWIG_fail;
9320 temp1 = true;
9321 }
9322 if (obj1) {
9323 arg2 = (int)SWIG_As_int(obj1);
9324 if (PyErr_Occurred()) SWIG_fail;
9325 }
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9329
9330 wxPyEndAllowThreads(__tstate);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 }
9333 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9334 {
9335 if (temp1)
9336 delete arg1;
9337 }
9338 return resultobj;
9339 fail:
9340 {
9341 if (temp1)
9342 delete arg1;
9343 }
9344 return NULL;
9345 }
9346
9347
9348 static PyObject *_wrap_new_Process(PyObject *, PyObject *args, PyObject *kwargs) {
9349 PyObject *resultobj;
9350 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9351 int arg2 = (int) -1 ;
9352 wxPyProcess *result;
9353 PyObject * obj0 = 0 ;
9354 PyObject * obj1 = 0 ;
9355 char *kwnames[] = {
9356 (char *) "parent",(char *) "id", NULL
9357 };
9358
9359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9360 if (obj0) {
9361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9363 }
9364 if (obj1) {
9365 arg2 = (int)SWIG_As_int(obj1);
9366 if (PyErr_Occurred()) SWIG_fail;
9367 }
9368 {
9369 PyThreadState* __tstate = wxPyBeginAllowThreads();
9370 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9371
9372 wxPyEndAllowThreads(__tstate);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9376 return resultobj;
9377 fail:
9378 return NULL;
9379 }
9380
9381
9382 static PyObject *_wrap_Process__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
9383 PyObject *resultobj;
9384 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9385 PyObject *arg2 = (PyObject *) 0 ;
9386 PyObject *arg3 = (PyObject *) 0 ;
9387 PyObject * obj0 = 0 ;
9388 PyObject * obj1 = 0 ;
9389 PyObject * obj2 = 0 ;
9390 char *kwnames[] = {
9391 (char *) "self",(char *) "self",(char *) "_class", NULL
9392 };
9393
9394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9397 arg2 = obj1;
9398 arg3 = obj2;
9399 {
9400 PyThreadState* __tstate = wxPyBeginAllowThreads();
9401 (arg1)->_setCallbackInfo(arg2,arg3);
9402
9403 wxPyEndAllowThreads(__tstate);
9404 if (PyErr_Occurred()) SWIG_fail;
9405 }
9406 Py_INCREF(Py_None); resultobj = Py_None;
9407 return resultobj;
9408 fail:
9409 return NULL;
9410 }
9411
9412
9413 static PyObject *_wrap_Process_base_OnTerminate(PyObject *, PyObject *args, PyObject *kwargs) {
9414 PyObject *resultobj;
9415 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9416 int arg2 ;
9417 int arg3 ;
9418 PyObject * obj0 = 0 ;
9419 PyObject * obj1 = 0 ;
9420 PyObject * obj2 = 0 ;
9421 char *kwnames[] = {
9422 (char *) "self",(char *) "pid",(char *) "status", NULL
9423 };
9424
9425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9428 arg2 = (int)SWIG_As_int(obj1);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 arg3 = (int)SWIG_As_int(obj2);
9431 if (PyErr_Occurred()) SWIG_fail;
9432 {
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 (arg1)->base_OnTerminate(arg2,arg3);
9435
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 Py_INCREF(Py_None); resultobj = Py_None;
9440 return resultobj;
9441 fail:
9442 return NULL;
9443 }
9444
9445
9446 static PyObject *_wrap_Process_Redirect(PyObject *, PyObject *args, PyObject *kwargs) {
9447 PyObject *resultobj;
9448 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9449 PyObject * obj0 = 0 ;
9450 char *kwnames[] = {
9451 (char *) "self", NULL
9452 };
9453
9454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 (arg1)->Redirect();
9460
9461 wxPyEndAllowThreads(__tstate);
9462 if (PyErr_Occurred()) SWIG_fail;
9463 }
9464 Py_INCREF(Py_None); resultobj = Py_None;
9465 return resultobj;
9466 fail:
9467 return NULL;
9468 }
9469
9470
9471 static PyObject *_wrap_Process_IsRedirected(PyObject *, PyObject *args, PyObject *kwargs) {
9472 PyObject *resultobj;
9473 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9474 bool result;
9475 PyObject * obj0 = 0 ;
9476 char *kwnames[] = {
9477 (char *) "self", NULL
9478 };
9479
9480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9483 {
9484 PyThreadState* __tstate = wxPyBeginAllowThreads();
9485 result = (bool)(arg1)->IsRedirected();
9486
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 {
9491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9492 }
9493 return resultobj;
9494 fail:
9495 return NULL;
9496 }
9497
9498
9499 static PyObject *_wrap_Process_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
9500 PyObject *resultobj;
9501 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9502 PyObject * obj0 = 0 ;
9503 char *kwnames[] = {
9504 (char *) "self", NULL
9505 };
9506
9507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9510 {
9511 PyThreadState* __tstate = wxPyBeginAllowThreads();
9512 (arg1)->Detach();
9513
9514 wxPyEndAllowThreads(__tstate);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 }
9517 Py_INCREF(Py_None); resultobj = Py_None;
9518 return resultobj;
9519 fail:
9520 return NULL;
9521 }
9522
9523
9524 static PyObject *_wrap_Process_GetInputStream(PyObject *, PyObject *args, PyObject *kwargs) {
9525 PyObject *resultobj;
9526 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9527 wxInputStream *result;
9528 PyObject * obj0 = 0 ;
9529 char *kwnames[] = {
9530 (char *) "self", NULL
9531 };
9532
9533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9536 {
9537 PyThreadState* __tstate = wxPyBeginAllowThreads();
9538 result = (wxInputStream *)(arg1)->GetInputStream();
9539
9540 wxPyEndAllowThreads(__tstate);
9541 if (PyErr_Occurred()) SWIG_fail;
9542 }
9543 {
9544 wxPyInputStream * _ptr = NULL;
9545
9546 if (result) {
9547 _ptr = new wxPyInputStream(result);
9548 }
9549 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true);
9550 }
9551 return resultobj;
9552 fail:
9553 return NULL;
9554 }
9555
9556
9557 static PyObject *_wrap_Process_GetErrorStream(PyObject *, PyObject *args, PyObject *kwargs) {
9558 PyObject *resultobj;
9559 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9560 wxInputStream *result;
9561 PyObject * obj0 = 0 ;
9562 char *kwnames[] = {
9563 (char *) "self", NULL
9564 };
9565
9566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9569 {
9570 PyThreadState* __tstate = wxPyBeginAllowThreads();
9571 result = (wxInputStream *)(arg1)->GetErrorStream();
9572
9573 wxPyEndAllowThreads(__tstate);
9574 if (PyErr_Occurred()) SWIG_fail;
9575 }
9576 {
9577 wxPyInputStream * _ptr = NULL;
9578
9579 if (result) {
9580 _ptr = new wxPyInputStream(result);
9581 }
9582 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true);
9583 }
9584 return resultobj;
9585 fail:
9586 return NULL;
9587 }
9588
9589
9590 static PyObject *_wrap_Process_GetOutputStream(PyObject *, PyObject *args, PyObject *kwargs) {
9591 PyObject *resultobj;
9592 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9593 wxOutputStream *result;
9594 PyObject * obj0 = 0 ;
9595 char *kwnames[] = {
9596 (char *) "self", NULL
9597 };
9598
9599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9602 {
9603 PyThreadState* __tstate = wxPyBeginAllowThreads();
9604 result = (wxOutputStream *)(arg1)->GetOutputStream();
9605
9606 wxPyEndAllowThreads(__tstate);
9607 if (PyErr_Occurred()) SWIG_fail;
9608 }
9609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9610 return resultobj;
9611 fail:
9612 return NULL;
9613 }
9614
9615
9616 static PyObject *_wrap_Process_CloseOutput(PyObject *, PyObject *args, PyObject *kwargs) {
9617 PyObject *resultobj;
9618 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9619 PyObject * obj0 = 0 ;
9620 char *kwnames[] = {
9621 (char *) "self", NULL
9622 };
9623
9624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9627 {
9628 PyThreadState* __tstate = wxPyBeginAllowThreads();
9629 (arg1)->CloseOutput();
9630
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 Py_INCREF(Py_None); resultobj = Py_None;
9635 return resultobj;
9636 fail:
9637 return NULL;
9638 }
9639
9640
9641 static PyObject *_wrap_Process_IsInputOpened(PyObject *, PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj;
9643 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9644 bool result;
9645 PyObject * obj0 = 0 ;
9646 char *kwnames[] = {
9647 (char *) "self", NULL
9648 };
9649
9650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9653 {
9654 PyThreadState* __tstate = wxPyBeginAllowThreads();
9655 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9656
9657 wxPyEndAllowThreads(__tstate);
9658 if (PyErr_Occurred()) SWIG_fail;
9659 }
9660 {
9661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9662 }
9663 return resultobj;
9664 fail:
9665 return NULL;
9666 }
9667
9668
9669 static PyObject *_wrap_Process_IsInputAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9670 PyObject *resultobj;
9671 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9672 bool result;
9673 PyObject * obj0 = 0 ;
9674 char *kwnames[] = {
9675 (char *) "self", NULL
9676 };
9677
9678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9681 {
9682 PyThreadState* __tstate = wxPyBeginAllowThreads();
9683 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9684
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 {
9689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9690 }
9691 return resultobj;
9692 fail:
9693 return NULL;
9694 }
9695
9696
9697 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *, PyObject *args, PyObject *kwargs) {
9698 PyObject *resultobj;
9699 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9700 bool result;
9701 PyObject * obj0 = 0 ;
9702 char *kwnames[] = {
9703 (char *) "self", NULL
9704 };
9705
9706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9712
9713 wxPyEndAllowThreads(__tstate);
9714 if (PyErr_Occurred()) SWIG_fail;
9715 }
9716 {
9717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9718 }
9719 return resultobj;
9720 fail:
9721 return NULL;
9722 }
9723
9724
9725 static PyObject * Process_swigregister(PyObject *, PyObject *args) {
9726 PyObject *obj;
9727 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9728 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9729 Py_INCREF(obj);
9730 return Py_BuildValue((char *)"");
9731 }
9732 static PyObject *_wrap_new_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj;
9734 int arg1 = (int) 0 ;
9735 int arg2 = (int) 0 ;
9736 int arg3 = (int) 0 ;
9737 wxProcessEvent *result;
9738 PyObject * obj0 = 0 ;
9739 PyObject * obj1 = 0 ;
9740 PyObject * obj2 = 0 ;
9741 char *kwnames[] = {
9742 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9743 };
9744
9745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9746 if (obj0) {
9747 arg1 = (int)SWIG_As_int(obj0);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 if (obj1) {
9751 arg2 = (int)SWIG_As_int(obj1);
9752 if (PyErr_Occurred()) SWIG_fail;
9753 }
9754 if (obj2) {
9755 arg3 = (int)SWIG_As_int(obj2);
9756 if (PyErr_Occurred()) SWIG_fail;
9757 }
9758 {
9759 PyThreadState* __tstate = wxPyBeginAllowThreads();
9760 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9761
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9766 return resultobj;
9767 fail:
9768 return NULL;
9769 }
9770
9771
9772 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *, PyObject *args, PyObject *kwargs) {
9773 PyObject *resultobj;
9774 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9775 int result;
9776 PyObject * obj0 = 0 ;
9777 char *kwnames[] = {
9778 (char *) "self", NULL
9779 };
9780
9781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (int)(arg1)->GetPid();
9787
9788 wxPyEndAllowThreads(__tstate);
9789 if (PyErr_Occurred()) SWIG_fail;
9790 }
9791 resultobj = SWIG_From_int((int)result);
9792 return resultobj;
9793 fail:
9794 return NULL;
9795 }
9796
9797
9798 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *, PyObject *args, PyObject *kwargs) {
9799 PyObject *resultobj;
9800 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9801 int result;
9802 PyObject * obj0 = 0 ;
9803 char *kwnames[] = {
9804 (char *) "self", NULL
9805 };
9806
9807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9810 {
9811 PyThreadState* __tstate = wxPyBeginAllowThreads();
9812 result = (int)(arg1)->GetExitCode();
9813
9814 wxPyEndAllowThreads(__tstate);
9815 if (PyErr_Occurred()) SWIG_fail;
9816 }
9817 resultobj = SWIG_From_int((int)result);
9818 return resultobj;
9819 fail:
9820 return NULL;
9821 }
9822
9823
9824 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *, PyObject *args, PyObject *kwargs) {
9825 PyObject *resultobj;
9826 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9827 int arg2 ;
9828 PyObject * obj0 = 0 ;
9829 PyObject * obj1 = 0 ;
9830 char *kwnames[] = {
9831 (char *) "self",(char *) "m_pid", NULL
9832 };
9833
9834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9837 arg2 = (int)SWIG_As_int(obj1);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 if (arg1) (arg1)->m_pid = arg2;
9840
9841 Py_INCREF(Py_None); resultobj = Py_None;
9842 return resultobj;
9843 fail:
9844 return NULL;
9845 }
9846
9847
9848 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *, PyObject *args, PyObject *kwargs) {
9849 PyObject *resultobj;
9850 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9851 int result;
9852 PyObject * obj0 = 0 ;
9853 char *kwnames[] = {
9854 (char *) "self", NULL
9855 };
9856
9857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9860 result = (int) ((arg1)->m_pid);
9861
9862 resultobj = SWIG_From_int((int)result);
9863 return resultobj;
9864 fail:
9865 return NULL;
9866 }
9867
9868
9869 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *, PyObject *args, PyObject *kwargs) {
9870 PyObject *resultobj;
9871 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9872 int arg2 ;
9873 PyObject * obj0 = 0 ;
9874 PyObject * obj1 = 0 ;
9875 char *kwnames[] = {
9876 (char *) "self",(char *) "m_exitcode", NULL
9877 };
9878
9879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9882 arg2 = (int)SWIG_As_int(obj1);
9883 if (PyErr_Occurred()) SWIG_fail;
9884 if (arg1) (arg1)->m_exitcode = arg2;
9885
9886 Py_INCREF(Py_None); resultobj = Py_None;
9887 return resultobj;
9888 fail:
9889 return NULL;
9890 }
9891
9892
9893 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *, PyObject *args, PyObject *kwargs) {
9894 PyObject *resultobj;
9895 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9896 int result;
9897 PyObject * obj0 = 0 ;
9898 char *kwnames[] = {
9899 (char *) "self", NULL
9900 };
9901
9902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9905 result = (int) ((arg1)->m_exitcode);
9906
9907 resultobj = SWIG_From_int((int)result);
9908 return resultobj;
9909 fail:
9910 return NULL;
9911 }
9912
9913
9914 static PyObject * ProcessEvent_swigregister(PyObject *, PyObject *args) {
9915 PyObject *obj;
9916 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9917 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9918 Py_INCREF(obj);
9919 return Py_BuildValue((char *)"");
9920 }
9921 static PyObject *_wrap_Execute(PyObject *, PyObject *args, PyObject *kwargs) {
9922 PyObject *resultobj;
9923 wxString *arg1 = 0 ;
9924 int arg2 = (int) wxEXEC_ASYNC ;
9925 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9926 long result;
9927 bool temp1 = false ;
9928 PyObject * obj0 = 0 ;
9929 PyObject * obj1 = 0 ;
9930 PyObject * obj2 = 0 ;
9931 char *kwnames[] = {
9932 (char *) "command",(char *) "flags",(char *) "process", NULL
9933 };
9934
9935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9936 {
9937 arg1 = wxString_in_helper(obj0);
9938 if (arg1 == NULL) SWIG_fail;
9939 temp1 = true;
9940 }
9941 if (obj1) {
9942 arg2 = (int)SWIG_As_int(obj1);
9943 if (PyErr_Occurred()) SWIG_fail;
9944 }
9945 if (obj2) {
9946 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9948 }
9949 {
9950 if (!wxPyCheckForApp()) SWIG_fail;
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9953
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 resultobj = SWIG_From_long((long)result);
9958 {
9959 if (temp1)
9960 delete arg1;
9961 }
9962 return resultobj;
9963 fail:
9964 {
9965 if (temp1)
9966 delete arg1;
9967 }
9968 return NULL;
9969 }
9970
9971
9972 static PyObject *_wrap_new_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
9973 PyObject *resultobj;
9974 int arg1 = (int) wxJOYSTICK1 ;
9975 wxJoystick *result;
9976 PyObject * obj0 = 0 ;
9977 char *kwnames[] = {
9978 (char *) "joystick", NULL
9979 };
9980
9981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9982 if (obj0) {
9983 arg1 = (int)SWIG_As_int(obj0);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 {
9987 if (!wxPyCheckForApp()) SWIG_fail;
9988 PyThreadState* __tstate = wxPyBeginAllowThreads();
9989 result = (wxJoystick *)new wxJoystick(arg1);
9990
9991 wxPyEndAllowThreads(__tstate);
9992 if (PyErr_Occurred()) SWIG_fail;
9993 }
9994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9995 return resultobj;
9996 fail:
9997 return NULL;
9998 }
9999
10000
10001 static PyObject *_wrap_delete_Joystick(PyObject *, PyObject *args, PyObject *kwargs) {
10002 PyObject *resultobj;
10003 wxJoystick *arg1 = (wxJoystick *) 0 ;
10004 PyObject * obj0 = 0 ;
10005 char *kwnames[] = {
10006 (char *) "self", NULL
10007 };
10008
10009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
10010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10012 {
10013 PyThreadState* __tstate = wxPyBeginAllowThreads();
10014 delete arg1;
10015
10016 wxPyEndAllowThreads(__tstate);
10017 if (PyErr_Occurred()) SWIG_fail;
10018 }
10019 Py_INCREF(Py_None); resultobj = Py_None;
10020 return resultobj;
10021 fail:
10022 return NULL;
10023 }
10024
10025
10026 static PyObject *_wrap_Joystick_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10027 PyObject *resultobj;
10028 wxJoystick *arg1 = (wxJoystick *) 0 ;
10029 wxPoint result;
10030 PyObject * obj0 = 0 ;
10031 char *kwnames[] = {
10032 (char *) "self", NULL
10033 };
10034
10035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
10036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10038 {
10039 PyThreadState* __tstate = wxPyBeginAllowThreads();
10040 result = (arg1)->GetPosition();
10041
10042 wxPyEndAllowThreads(__tstate);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 }
10045 {
10046 wxPoint * resultptr;
10047 resultptr = new wxPoint((wxPoint &) result);
10048 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
10049 }
10050 return resultobj;
10051 fail:
10052 return NULL;
10053 }
10054
10055
10056 static PyObject *_wrap_Joystick_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10057 PyObject *resultobj;
10058 wxJoystick *arg1 = (wxJoystick *) 0 ;
10059 int result;
10060 PyObject * obj0 = 0 ;
10061 char *kwnames[] = {
10062 (char *) "self", NULL
10063 };
10064
10065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
10066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10068 {
10069 PyThreadState* __tstate = wxPyBeginAllowThreads();
10070 result = (int)(arg1)->GetZPosition();
10071
10072 wxPyEndAllowThreads(__tstate);
10073 if (PyErr_Occurred()) SWIG_fail;
10074 }
10075 resultobj = SWIG_From_int((int)result);
10076 return resultobj;
10077 fail:
10078 return NULL;
10079 }
10080
10081
10082 static PyObject *_wrap_Joystick_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj;
10084 wxJoystick *arg1 = (wxJoystick *) 0 ;
10085 int result;
10086 PyObject * obj0 = 0 ;
10087 char *kwnames[] = {
10088 (char *) "self", NULL
10089 };
10090
10091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
10092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10094 {
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 result = (int)(arg1)->GetButtonState();
10097
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
10101 resultobj = SWIG_From_int((int)result);
10102 return resultobj;
10103 fail:
10104 return NULL;
10105 }
10106
10107
10108 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj;
10110 wxJoystick *arg1 = (wxJoystick *) 0 ;
10111 int result;
10112 PyObject * obj0 = 0 ;
10113 char *kwnames[] = {
10114 (char *) "self", NULL
10115 };
10116
10117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
10118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10120 {
10121 PyThreadState* __tstate = wxPyBeginAllowThreads();
10122 result = (int)(arg1)->GetPOVPosition();
10123
10124 wxPyEndAllowThreads(__tstate);
10125 if (PyErr_Occurred()) SWIG_fail;
10126 }
10127 resultobj = SWIG_From_int((int)result);
10128 return resultobj;
10129 fail:
10130 return NULL;
10131 }
10132
10133
10134 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10135 PyObject *resultobj;
10136 wxJoystick *arg1 = (wxJoystick *) 0 ;
10137 int result;
10138 PyObject * obj0 = 0 ;
10139 char *kwnames[] = {
10140 (char *) "self", NULL
10141 };
10142
10143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
10144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10146 {
10147 PyThreadState* __tstate = wxPyBeginAllowThreads();
10148 result = (int)(arg1)->GetPOVCTSPosition();
10149
10150 wxPyEndAllowThreads(__tstate);
10151 if (PyErr_Occurred()) SWIG_fail;
10152 }
10153 resultobj = SWIG_From_int((int)result);
10154 return resultobj;
10155 fail:
10156 return NULL;
10157 }
10158
10159
10160 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10161 PyObject *resultobj;
10162 wxJoystick *arg1 = (wxJoystick *) 0 ;
10163 int result;
10164 PyObject * obj0 = 0 ;
10165 char *kwnames[] = {
10166 (char *) "self", NULL
10167 };
10168
10169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
10170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10172 {
10173 PyThreadState* __tstate = wxPyBeginAllowThreads();
10174 result = (int)(arg1)->GetRudderPosition();
10175
10176 wxPyEndAllowThreads(__tstate);
10177 if (PyErr_Occurred()) SWIG_fail;
10178 }
10179 resultobj = SWIG_From_int((int)result);
10180 return resultobj;
10181 fail:
10182 return NULL;
10183 }
10184
10185
10186 static PyObject *_wrap_Joystick_GetUPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10187 PyObject *resultobj;
10188 wxJoystick *arg1 = (wxJoystick *) 0 ;
10189 int result;
10190 PyObject * obj0 = 0 ;
10191 char *kwnames[] = {
10192 (char *) "self", NULL
10193 };
10194
10195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
10196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10198 {
10199 PyThreadState* __tstate = wxPyBeginAllowThreads();
10200 result = (int)(arg1)->GetUPosition();
10201
10202 wxPyEndAllowThreads(__tstate);
10203 if (PyErr_Occurred()) SWIG_fail;
10204 }
10205 resultobj = SWIG_From_int((int)result);
10206 return resultobj;
10207 fail:
10208 return NULL;
10209 }
10210
10211
10212 static PyObject *_wrap_Joystick_GetVPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10213 PyObject *resultobj;
10214 wxJoystick *arg1 = (wxJoystick *) 0 ;
10215 int result;
10216 PyObject * obj0 = 0 ;
10217 char *kwnames[] = {
10218 (char *) "self", NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
10222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 result = (int)(arg1)->GetVPosition();
10227
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_From_int((int)result);
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj;
10240 wxJoystick *arg1 = (wxJoystick *) 0 ;
10241 int result;
10242 PyObject * obj0 = 0 ;
10243 char *kwnames[] = {
10244 (char *) "self", NULL
10245 };
10246
10247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
10248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10250 {
10251 PyThreadState* __tstate = wxPyBeginAllowThreads();
10252 result = (int)(arg1)->GetMovementThreshold();
10253
10254 wxPyEndAllowThreads(__tstate);
10255 if (PyErr_Occurred()) SWIG_fail;
10256 }
10257 resultobj = SWIG_From_int((int)result);
10258 return resultobj;
10259 fail:
10260 return NULL;
10261 }
10262
10263
10264 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *, PyObject *args, PyObject *kwargs) {
10265 PyObject *resultobj;
10266 wxJoystick *arg1 = (wxJoystick *) 0 ;
10267 int arg2 ;
10268 PyObject * obj0 = 0 ;
10269 PyObject * obj1 = 0 ;
10270 char *kwnames[] = {
10271 (char *) "self",(char *) "threshold", NULL
10272 };
10273
10274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10277 arg2 = (int)SWIG_As_int(obj1);
10278 if (PyErr_Occurred()) SWIG_fail;
10279 {
10280 PyThreadState* __tstate = wxPyBeginAllowThreads();
10281 (arg1)->SetMovementThreshold(arg2);
10282
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 Py_INCREF(Py_None); resultobj = Py_None;
10287 return resultobj;
10288 fail:
10289 return NULL;
10290 }
10291
10292
10293 static PyObject *_wrap_Joystick_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
10294 PyObject *resultobj;
10295 wxJoystick *arg1 = (wxJoystick *) 0 ;
10296 bool result;
10297 PyObject * obj0 = 0 ;
10298 char *kwnames[] = {
10299 (char *) "self", NULL
10300 };
10301
10302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10305 {
10306 PyThreadState* __tstate = wxPyBeginAllowThreads();
10307 result = (bool)(arg1)->IsOk();
10308
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 {
10313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10314 }
10315 return resultobj;
10316 fail:
10317 return NULL;
10318 }
10319
10320
10321 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *, PyObject *args, PyObject *kwargs) {
10322 PyObject *resultobj;
10323 wxJoystick *arg1 = (wxJoystick *) 0 ;
10324 int result;
10325 PyObject * obj0 = 0 ;
10326 char *kwnames[] = {
10327 (char *) "self", NULL
10328 };
10329
10330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10333 {
10334 PyThreadState* __tstate = wxPyBeginAllowThreads();
10335 result = (int)(arg1)->GetNumberJoysticks();
10336
10337 wxPyEndAllowThreads(__tstate);
10338 if (PyErr_Occurred()) SWIG_fail;
10339 }
10340 resultobj = SWIG_From_int((int)result);
10341 return resultobj;
10342 fail:
10343 return NULL;
10344 }
10345
10346
10347 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *, PyObject *args, PyObject *kwargs) {
10348 PyObject *resultobj;
10349 wxJoystick *arg1 = (wxJoystick *) 0 ;
10350 int result;
10351 PyObject * obj0 = 0 ;
10352 char *kwnames[] = {
10353 (char *) "self", NULL
10354 };
10355
10356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10359 {
10360 PyThreadState* __tstate = wxPyBeginAllowThreads();
10361 result = (int)(arg1)->GetManufacturerId();
10362
10363 wxPyEndAllowThreads(__tstate);
10364 if (PyErr_Occurred()) SWIG_fail;
10365 }
10366 resultobj = SWIG_From_int((int)result);
10367 return resultobj;
10368 fail:
10369 return NULL;
10370 }
10371
10372
10373 static PyObject *_wrap_Joystick_GetProductId(PyObject *, PyObject *args, PyObject *kwargs) {
10374 PyObject *resultobj;
10375 wxJoystick *arg1 = (wxJoystick *) 0 ;
10376 int result;
10377 PyObject * obj0 = 0 ;
10378 char *kwnames[] = {
10379 (char *) "self", NULL
10380 };
10381
10382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10385 {
10386 PyThreadState* __tstate = wxPyBeginAllowThreads();
10387 result = (int)(arg1)->GetProductId();
10388
10389 wxPyEndAllowThreads(__tstate);
10390 if (PyErr_Occurred()) SWIG_fail;
10391 }
10392 resultobj = SWIG_From_int((int)result);
10393 return resultobj;
10394 fail:
10395 return NULL;
10396 }
10397
10398
10399 static PyObject *_wrap_Joystick_GetProductName(PyObject *, PyObject *args, PyObject *kwargs) {
10400 PyObject *resultobj;
10401 wxJoystick *arg1 = (wxJoystick *) 0 ;
10402 wxString result;
10403 PyObject * obj0 = 0 ;
10404 char *kwnames[] = {
10405 (char *) "self", NULL
10406 };
10407
10408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10411 {
10412 PyThreadState* __tstate = wxPyBeginAllowThreads();
10413 result = (arg1)->GetProductName();
10414
10415 wxPyEndAllowThreads(__tstate);
10416 if (PyErr_Occurred()) SWIG_fail;
10417 }
10418 {
10419 #if wxUSE_UNICODE
10420 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10421 #else
10422 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10423 #endif
10424 }
10425 return resultobj;
10426 fail:
10427 return NULL;
10428 }
10429
10430
10431 static PyObject *_wrap_Joystick_GetXMin(PyObject *, PyObject *args, PyObject *kwargs) {
10432 PyObject *resultobj;
10433 wxJoystick *arg1 = (wxJoystick *) 0 ;
10434 int result;
10435 PyObject * obj0 = 0 ;
10436 char *kwnames[] = {
10437 (char *) "self", NULL
10438 };
10439
10440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10443 {
10444 PyThreadState* __tstate = wxPyBeginAllowThreads();
10445 result = (int)(arg1)->GetXMin();
10446
10447 wxPyEndAllowThreads(__tstate);
10448 if (PyErr_Occurred()) SWIG_fail;
10449 }
10450 resultobj = SWIG_From_int((int)result);
10451 return resultobj;
10452 fail:
10453 return NULL;
10454 }
10455
10456
10457 static PyObject *_wrap_Joystick_GetYMin(PyObject *, PyObject *args, PyObject *kwargs) {
10458 PyObject *resultobj;
10459 wxJoystick *arg1 = (wxJoystick *) 0 ;
10460 int result;
10461 PyObject * obj0 = 0 ;
10462 char *kwnames[] = {
10463 (char *) "self", NULL
10464 };
10465
10466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10469 {
10470 PyThreadState* __tstate = wxPyBeginAllowThreads();
10471 result = (int)(arg1)->GetYMin();
10472
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_From_int((int)result);
10477 return resultobj;
10478 fail:
10479 return NULL;
10480 }
10481
10482
10483 static PyObject *_wrap_Joystick_GetZMin(PyObject *, PyObject *args, PyObject *kwargs) {
10484 PyObject *resultobj;
10485 wxJoystick *arg1 = (wxJoystick *) 0 ;
10486 int result;
10487 PyObject * obj0 = 0 ;
10488 char *kwnames[] = {
10489 (char *) "self", NULL
10490 };
10491
10492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10495 {
10496 PyThreadState* __tstate = wxPyBeginAllowThreads();
10497 result = (int)(arg1)->GetZMin();
10498
10499 wxPyEndAllowThreads(__tstate);
10500 if (PyErr_Occurred()) SWIG_fail;
10501 }
10502 resultobj = SWIG_From_int((int)result);
10503 return resultobj;
10504 fail:
10505 return NULL;
10506 }
10507
10508
10509 static PyObject *_wrap_Joystick_GetXMax(PyObject *, PyObject *args, PyObject *kwargs) {
10510 PyObject *resultobj;
10511 wxJoystick *arg1 = (wxJoystick *) 0 ;
10512 int result;
10513 PyObject * obj0 = 0 ;
10514 char *kwnames[] = {
10515 (char *) "self", NULL
10516 };
10517
10518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10521 {
10522 PyThreadState* __tstate = wxPyBeginAllowThreads();
10523 result = (int)(arg1)->GetXMax();
10524
10525 wxPyEndAllowThreads(__tstate);
10526 if (PyErr_Occurred()) SWIG_fail;
10527 }
10528 resultobj = SWIG_From_int((int)result);
10529 return resultobj;
10530 fail:
10531 return NULL;
10532 }
10533
10534
10535 static PyObject *_wrap_Joystick_GetYMax(PyObject *, PyObject *args, PyObject *kwargs) {
10536 PyObject *resultobj;
10537 wxJoystick *arg1 = (wxJoystick *) 0 ;
10538 int result;
10539 PyObject * obj0 = 0 ;
10540 char *kwnames[] = {
10541 (char *) "self", NULL
10542 };
10543
10544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10547 {
10548 PyThreadState* __tstate = wxPyBeginAllowThreads();
10549 result = (int)(arg1)->GetYMax();
10550
10551 wxPyEndAllowThreads(__tstate);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 resultobj = SWIG_From_int((int)result);
10555 return resultobj;
10556 fail:
10557 return NULL;
10558 }
10559
10560
10561 static PyObject *_wrap_Joystick_GetZMax(PyObject *, PyObject *args, PyObject *kwargs) {
10562 PyObject *resultobj;
10563 wxJoystick *arg1 = (wxJoystick *) 0 ;
10564 int result;
10565 PyObject * obj0 = 0 ;
10566 char *kwnames[] = {
10567 (char *) "self", NULL
10568 };
10569
10570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10573 {
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 result = (int)(arg1)->GetZMax();
10576
10577 wxPyEndAllowThreads(__tstate);
10578 if (PyErr_Occurred()) SWIG_fail;
10579 }
10580 resultobj = SWIG_From_int((int)result);
10581 return resultobj;
10582 fail:
10583 return NULL;
10584 }
10585
10586
10587 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *, PyObject *args, PyObject *kwargs) {
10588 PyObject *resultobj;
10589 wxJoystick *arg1 = (wxJoystick *) 0 ;
10590 int result;
10591 PyObject * obj0 = 0 ;
10592 char *kwnames[] = {
10593 (char *) "self", NULL
10594 };
10595
10596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10599 {
10600 PyThreadState* __tstate = wxPyBeginAllowThreads();
10601 result = (int)(arg1)->GetNumberButtons();
10602
10603 wxPyEndAllowThreads(__tstate);
10604 if (PyErr_Occurred()) SWIG_fail;
10605 }
10606 resultobj = SWIG_From_int((int)result);
10607 return resultobj;
10608 fail:
10609 return NULL;
10610 }
10611
10612
10613 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10614 PyObject *resultobj;
10615 wxJoystick *arg1 = (wxJoystick *) 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:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10625 {
10626 PyThreadState* __tstate = wxPyBeginAllowThreads();
10627 result = (int)(arg1)->GetNumberAxes();
10628
10629 wxPyEndAllowThreads(__tstate);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 }
10632 resultobj = SWIG_From_int((int)result);
10633 return resultobj;
10634 fail:
10635 return NULL;
10636 }
10637
10638
10639 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *, PyObject *args, PyObject *kwargs) {
10640 PyObject *resultobj;
10641 wxJoystick *arg1 = (wxJoystick *) 0 ;
10642 int result;
10643 PyObject * obj0 = 0 ;
10644 char *kwnames[] = {
10645 (char *) "self", NULL
10646 };
10647
10648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10651 {
10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
10653 result = (int)(arg1)->GetMaxButtons();
10654
10655 wxPyEndAllowThreads(__tstate);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 resultobj = SWIG_From_int((int)result);
10659 return resultobj;
10660 fail:
10661 return NULL;
10662 }
10663
10664
10665 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *, PyObject *args, PyObject *kwargs) {
10666 PyObject *resultobj;
10667 wxJoystick *arg1 = (wxJoystick *) 0 ;
10668 int result;
10669 PyObject * obj0 = 0 ;
10670 char *kwnames[] = {
10671 (char *) "self", NULL
10672 };
10673
10674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10677 {
10678 PyThreadState* __tstate = wxPyBeginAllowThreads();
10679 result = (int)(arg1)->GetMaxAxes();
10680
10681 wxPyEndAllowThreads(__tstate);
10682 if (PyErr_Occurred()) SWIG_fail;
10683 }
10684 resultobj = SWIG_From_int((int)result);
10685 return resultobj;
10686 fail:
10687 return NULL;
10688 }
10689
10690
10691 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *, PyObject *args, PyObject *kwargs) {
10692 PyObject *resultobj;
10693 wxJoystick *arg1 = (wxJoystick *) 0 ;
10694 int result;
10695 PyObject * obj0 = 0 ;
10696 char *kwnames[] = {
10697 (char *) "self", NULL
10698 };
10699
10700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10703 {
10704 PyThreadState* __tstate = wxPyBeginAllowThreads();
10705 result = (int)(arg1)->GetPollingMin();
10706
10707 wxPyEndAllowThreads(__tstate);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 }
10710 resultobj = SWIG_From_int((int)result);
10711 return resultobj;
10712 fail:
10713 return NULL;
10714 }
10715
10716
10717 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *, PyObject *args, PyObject *kwargs) {
10718 PyObject *resultobj;
10719 wxJoystick *arg1 = (wxJoystick *) 0 ;
10720 int result;
10721 PyObject * obj0 = 0 ;
10722 char *kwnames[] = {
10723 (char *) "self", NULL
10724 };
10725
10726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10729 {
10730 PyThreadState* __tstate = wxPyBeginAllowThreads();
10731 result = (int)(arg1)->GetPollingMax();
10732
10733 wxPyEndAllowThreads(__tstate);
10734 if (PyErr_Occurred()) SWIG_fail;
10735 }
10736 resultobj = SWIG_From_int((int)result);
10737 return resultobj;
10738 fail:
10739 return NULL;
10740 }
10741
10742
10743 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *, PyObject *args, PyObject *kwargs) {
10744 PyObject *resultobj;
10745 wxJoystick *arg1 = (wxJoystick *) 0 ;
10746 int result;
10747 PyObject * obj0 = 0 ;
10748 char *kwnames[] = {
10749 (char *) "self", NULL
10750 };
10751
10752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10755 {
10756 PyThreadState* __tstate = wxPyBeginAllowThreads();
10757 result = (int)(arg1)->GetRudderMin();
10758
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 resultobj = SWIG_From_int((int)result);
10763 return resultobj;
10764 fail:
10765 return NULL;
10766 }
10767
10768
10769 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *, PyObject *args, PyObject *kwargs) {
10770 PyObject *resultobj;
10771 wxJoystick *arg1 = (wxJoystick *) 0 ;
10772 int result;
10773 PyObject * obj0 = 0 ;
10774 char *kwnames[] = {
10775 (char *) "self", NULL
10776 };
10777
10778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10781 {
10782 PyThreadState* __tstate = wxPyBeginAllowThreads();
10783 result = (int)(arg1)->GetRudderMax();
10784
10785 wxPyEndAllowThreads(__tstate);
10786 if (PyErr_Occurred()) SWIG_fail;
10787 }
10788 resultobj = SWIG_From_int((int)result);
10789 return resultobj;
10790 fail:
10791 return NULL;
10792 }
10793
10794
10795 static PyObject *_wrap_Joystick_GetUMin(PyObject *, PyObject *args, PyObject *kwargs) {
10796 PyObject *resultobj;
10797 wxJoystick *arg1 = (wxJoystick *) 0 ;
10798 int result;
10799 PyObject * obj0 = 0 ;
10800 char *kwnames[] = {
10801 (char *) "self", NULL
10802 };
10803
10804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10807 {
10808 PyThreadState* __tstate = wxPyBeginAllowThreads();
10809 result = (int)(arg1)->GetUMin();
10810
10811 wxPyEndAllowThreads(__tstate);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 }
10814 resultobj = SWIG_From_int((int)result);
10815 return resultobj;
10816 fail:
10817 return NULL;
10818 }
10819
10820
10821 static PyObject *_wrap_Joystick_GetUMax(PyObject *, PyObject *args, PyObject *kwargs) {
10822 PyObject *resultobj;
10823 wxJoystick *arg1 = (wxJoystick *) 0 ;
10824 int result;
10825 PyObject * obj0 = 0 ;
10826 char *kwnames[] = {
10827 (char *) "self", NULL
10828 };
10829
10830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10833 {
10834 PyThreadState* __tstate = wxPyBeginAllowThreads();
10835 result = (int)(arg1)->GetUMax();
10836
10837 wxPyEndAllowThreads(__tstate);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 }
10840 resultobj = SWIG_From_int((int)result);
10841 return resultobj;
10842 fail:
10843 return NULL;
10844 }
10845
10846
10847 static PyObject *_wrap_Joystick_GetVMin(PyObject *, PyObject *args, PyObject *kwargs) {
10848 PyObject *resultobj;
10849 wxJoystick *arg1 = (wxJoystick *) 0 ;
10850 int result;
10851 PyObject * obj0 = 0 ;
10852 char *kwnames[] = {
10853 (char *) "self", NULL
10854 };
10855
10856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10859 {
10860 PyThreadState* __tstate = wxPyBeginAllowThreads();
10861 result = (int)(arg1)->GetVMin();
10862
10863 wxPyEndAllowThreads(__tstate);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 }
10866 resultobj = SWIG_From_int((int)result);
10867 return resultobj;
10868 fail:
10869 return NULL;
10870 }
10871
10872
10873 static PyObject *_wrap_Joystick_GetVMax(PyObject *, PyObject *args, PyObject *kwargs) {
10874 PyObject *resultobj;
10875 wxJoystick *arg1 = (wxJoystick *) 0 ;
10876 int result;
10877 PyObject * obj0 = 0 ;
10878 char *kwnames[] = {
10879 (char *) "self", NULL
10880 };
10881
10882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10885 {
10886 PyThreadState* __tstate = wxPyBeginAllowThreads();
10887 result = (int)(arg1)->GetVMax();
10888
10889 wxPyEndAllowThreads(__tstate);
10890 if (PyErr_Occurred()) SWIG_fail;
10891 }
10892 resultobj = SWIG_From_int((int)result);
10893 return resultobj;
10894 fail:
10895 return NULL;
10896 }
10897
10898
10899 static PyObject *_wrap_Joystick_HasRudder(PyObject *, PyObject *args, PyObject *kwargs) {
10900 PyObject *resultobj;
10901 wxJoystick *arg1 = (wxJoystick *) 0 ;
10902 bool result;
10903 PyObject * obj0 = 0 ;
10904 char *kwnames[] = {
10905 (char *) "self", NULL
10906 };
10907
10908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10911 {
10912 PyThreadState* __tstate = wxPyBeginAllowThreads();
10913 result = (bool)(arg1)->HasRudder();
10914
10915 wxPyEndAllowThreads(__tstate);
10916 if (PyErr_Occurred()) SWIG_fail;
10917 }
10918 {
10919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10920 }
10921 return resultobj;
10922 fail:
10923 return NULL;
10924 }
10925
10926
10927 static PyObject *_wrap_Joystick_HasZ(PyObject *, PyObject *args, PyObject *kwargs) {
10928 PyObject *resultobj;
10929 wxJoystick *arg1 = (wxJoystick *) 0 ;
10930 bool result;
10931 PyObject * obj0 = 0 ;
10932 char *kwnames[] = {
10933 (char *) "self", NULL
10934 };
10935
10936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10939 {
10940 PyThreadState* __tstate = wxPyBeginAllowThreads();
10941 result = (bool)(arg1)->HasZ();
10942
10943 wxPyEndAllowThreads(__tstate);
10944 if (PyErr_Occurred()) SWIG_fail;
10945 }
10946 {
10947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10948 }
10949 return resultobj;
10950 fail:
10951 return NULL;
10952 }
10953
10954
10955 static PyObject *_wrap_Joystick_HasU(PyObject *, PyObject *args, PyObject *kwargs) {
10956 PyObject *resultobj;
10957 wxJoystick *arg1 = (wxJoystick *) 0 ;
10958 bool result;
10959 PyObject * obj0 = 0 ;
10960 char *kwnames[] = {
10961 (char *) "self", NULL
10962 };
10963
10964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10967 {
10968 PyThreadState* __tstate = wxPyBeginAllowThreads();
10969 result = (bool)(arg1)->HasU();
10970
10971 wxPyEndAllowThreads(__tstate);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 {
10975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10976 }
10977 return resultobj;
10978 fail:
10979 return NULL;
10980 }
10981
10982
10983 static PyObject *_wrap_Joystick_HasV(PyObject *, PyObject *args, PyObject *kwargs) {
10984 PyObject *resultobj;
10985 wxJoystick *arg1 = (wxJoystick *) 0 ;
10986 bool result;
10987 PyObject * obj0 = 0 ;
10988 char *kwnames[] = {
10989 (char *) "self", NULL
10990 };
10991
10992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10995 {
10996 PyThreadState* __tstate = wxPyBeginAllowThreads();
10997 result = (bool)(arg1)->HasV();
10998
10999 wxPyEndAllowThreads(__tstate);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 {
11003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11004 }
11005 return resultobj;
11006 fail:
11007 return NULL;
11008 }
11009
11010
11011 static PyObject *_wrap_Joystick_HasPOV(PyObject *, PyObject *args, PyObject *kwargs) {
11012 PyObject *resultobj;
11013 wxJoystick *arg1 = (wxJoystick *) 0 ;
11014 bool result;
11015 PyObject * obj0 = 0 ;
11016 char *kwnames[] = {
11017 (char *) "self", NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
11021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 result = (bool)(arg1)->HasPOV();
11026
11027 wxPyEndAllowThreads(__tstate);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 {
11031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11032 }
11033 return resultobj;
11034 fail:
11035 return NULL;
11036 }
11037
11038
11039 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *, PyObject *args, PyObject *kwargs) {
11040 PyObject *resultobj;
11041 wxJoystick *arg1 = (wxJoystick *) 0 ;
11042 bool result;
11043 PyObject * obj0 = 0 ;
11044 char *kwnames[] = {
11045 (char *) "self", NULL
11046 };
11047
11048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
11049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 result = (bool)(arg1)->HasPOV4Dir();
11054
11055 wxPyEndAllowThreads(__tstate);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 {
11059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11060 }
11061 return resultobj;
11062 fail:
11063 return NULL;
11064 }
11065
11066
11067 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *, PyObject *args, PyObject *kwargs) {
11068 PyObject *resultobj;
11069 wxJoystick *arg1 = (wxJoystick *) 0 ;
11070 bool result;
11071 PyObject * obj0 = 0 ;
11072 char *kwnames[] = {
11073 (char *) "self", NULL
11074 };
11075
11076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
11077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11079 {
11080 PyThreadState* __tstate = wxPyBeginAllowThreads();
11081 result = (bool)(arg1)->HasPOVCTS();
11082
11083 wxPyEndAllowThreads(__tstate);
11084 if (PyErr_Occurred()) SWIG_fail;
11085 }
11086 {
11087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11088 }
11089 return resultobj;
11090 fail:
11091 return NULL;
11092 }
11093
11094
11095 static PyObject *_wrap_Joystick_SetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
11096 PyObject *resultobj;
11097 wxJoystick *arg1 = (wxJoystick *) 0 ;
11098 wxWindow *arg2 = (wxWindow *) 0 ;
11099 int arg3 = (int) 0 ;
11100 bool result;
11101 PyObject * obj0 = 0 ;
11102 PyObject * obj1 = 0 ;
11103 PyObject * obj2 = 0 ;
11104 char *kwnames[] = {
11105 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
11106 };
11107
11108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
11109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11111 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11113 if (obj2) {
11114 arg3 = (int)SWIG_As_int(obj2);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 {
11118 PyThreadState* __tstate = wxPyBeginAllowThreads();
11119 result = (bool)(arg1)->SetCapture(arg2,arg3);
11120
11121 wxPyEndAllowThreads(__tstate);
11122 if (PyErr_Occurred()) SWIG_fail;
11123 }
11124 {
11125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11126 }
11127 return resultobj;
11128 fail:
11129 return NULL;
11130 }
11131
11132
11133 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *, PyObject *args, PyObject *kwargs) {
11134 PyObject *resultobj;
11135 wxJoystick *arg1 = (wxJoystick *) 0 ;
11136 bool result;
11137 PyObject * obj0 = 0 ;
11138 char *kwnames[] = {
11139 (char *) "self", NULL
11140 };
11141
11142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
11143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
11144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11145 {
11146 PyThreadState* __tstate = wxPyBeginAllowThreads();
11147 result = (bool)(arg1)->ReleaseCapture();
11148
11149 wxPyEndAllowThreads(__tstate);
11150 if (PyErr_Occurred()) SWIG_fail;
11151 }
11152 {
11153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11154 }
11155 return resultobj;
11156 fail:
11157 return NULL;
11158 }
11159
11160
11161 static PyObject * Joystick_swigregister(PyObject *, PyObject *args) {
11162 PyObject *obj;
11163 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11164 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
11165 Py_INCREF(obj);
11166 return Py_BuildValue((char *)"");
11167 }
11168 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) {
11169 PyObject *resultobj;
11170 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11171 wxPoint *arg2 = (wxPoint *) 0 ;
11172 PyObject * obj0 = 0 ;
11173 PyObject * obj1 = 0 ;
11174 char *kwnames[] = {
11175 (char *) "self",(char *) "m_pos", NULL
11176 };
11177
11178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
11179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11181 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
11182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11183 if (arg1) (arg1)->m_pos = *arg2;
11184
11185 Py_INCREF(Py_None); resultobj = Py_None;
11186 return resultobj;
11187 fail:
11188 return NULL;
11189 }
11190
11191
11192 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) {
11193 PyObject *resultobj;
11194 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11195 wxPoint *result;
11196 PyObject * obj0 = 0 ;
11197 char *kwnames[] = {
11198 (char *) "self", NULL
11199 };
11200
11201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
11202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11204 result = (wxPoint *)& ((arg1)->m_pos);
11205
11206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
11207 return resultobj;
11208 fail:
11209 return NULL;
11210 }
11211
11212
11213 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *, PyObject *args, PyObject *kwargs) {
11214 PyObject *resultobj;
11215 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11216 int arg2 ;
11217 PyObject * obj0 = 0 ;
11218 PyObject * obj1 = 0 ;
11219 char *kwnames[] = {
11220 (char *) "self",(char *) "m_zPosition", NULL
11221 };
11222
11223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
11224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11226 arg2 = (int)SWIG_As_int(obj1);
11227 if (PyErr_Occurred()) SWIG_fail;
11228 if (arg1) (arg1)->m_zPosition = arg2;
11229
11230 Py_INCREF(Py_None); resultobj = Py_None;
11231 return resultobj;
11232 fail:
11233 return NULL;
11234 }
11235
11236
11237 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *, PyObject *args, PyObject *kwargs) {
11238 PyObject *resultobj;
11239 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11240 int result;
11241 PyObject * obj0 = 0 ;
11242 char *kwnames[] = {
11243 (char *) "self", NULL
11244 };
11245
11246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
11247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11249 result = (int) ((arg1)->m_zPosition);
11250
11251 resultobj = SWIG_From_int((int)result);
11252 return resultobj;
11253 fail:
11254 return NULL;
11255 }
11256
11257
11258 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *, PyObject *args, PyObject *kwargs) {
11259 PyObject *resultobj;
11260 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11261 int arg2 ;
11262 PyObject * obj0 = 0 ;
11263 PyObject * obj1 = 0 ;
11264 char *kwnames[] = {
11265 (char *) "self",(char *) "m_buttonChange", NULL
11266 };
11267
11268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11271 arg2 = (int)SWIG_As_int(obj1);
11272 if (PyErr_Occurred()) SWIG_fail;
11273 if (arg1) (arg1)->m_buttonChange = arg2;
11274
11275 Py_INCREF(Py_None); resultobj = Py_None;
11276 return resultobj;
11277 fail:
11278 return NULL;
11279 }
11280
11281
11282 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *, PyObject *args, PyObject *kwargs) {
11283 PyObject *resultobj;
11284 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11285 int result;
11286 PyObject * obj0 = 0 ;
11287 char *kwnames[] = {
11288 (char *) "self", NULL
11289 };
11290
11291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11294 result = (int) ((arg1)->m_buttonChange);
11295
11296 resultobj = SWIG_From_int((int)result);
11297 return resultobj;
11298 fail:
11299 return NULL;
11300 }
11301
11302
11303 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *, PyObject *args, PyObject *kwargs) {
11304 PyObject *resultobj;
11305 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11306 int arg2 ;
11307 PyObject * obj0 = 0 ;
11308 PyObject * obj1 = 0 ;
11309 char *kwnames[] = {
11310 (char *) "self",(char *) "m_buttonState", NULL
11311 };
11312
11313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11316 arg2 = (int)SWIG_As_int(obj1);
11317 if (PyErr_Occurred()) SWIG_fail;
11318 if (arg1) (arg1)->m_buttonState = arg2;
11319
11320 Py_INCREF(Py_None); resultobj = Py_None;
11321 return resultobj;
11322 fail:
11323 return NULL;
11324 }
11325
11326
11327 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *, PyObject *args, PyObject *kwargs) {
11328 PyObject *resultobj;
11329 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11330 int result;
11331 PyObject * obj0 = 0 ;
11332 char *kwnames[] = {
11333 (char *) "self", NULL
11334 };
11335
11336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11339 result = (int) ((arg1)->m_buttonState);
11340
11341 resultobj = SWIG_From_int((int)result);
11342 return resultobj;
11343 fail:
11344 return NULL;
11345 }
11346
11347
11348 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *, PyObject *args, PyObject *kwargs) {
11349 PyObject *resultobj;
11350 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11351 int arg2 ;
11352 PyObject * obj0 = 0 ;
11353 PyObject * obj1 = 0 ;
11354 char *kwnames[] = {
11355 (char *) "self",(char *) "m_joyStick", NULL
11356 };
11357
11358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11361 arg2 = (int)SWIG_As_int(obj1);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 if (arg1) (arg1)->m_joyStick = arg2;
11364
11365 Py_INCREF(Py_None); resultobj = Py_None;
11366 return resultobj;
11367 fail:
11368 return NULL;
11369 }
11370
11371
11372 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *, PyObject *args, PyObject *kwargs) {
11373 PyObject *resultobj;
11374 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11375 int result;
11376 PyObject * obj0 = 0 ;
11377 char *kwnames[] = {
11378 (char *) "self", NULL
11379 };
11380
11381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11384 result = (int) ((arg1)->m_joyStick);
11385
11386 resultobj = SWIG_From_int((int)result);
11387 return resultobj;
11388 fail:
11389 return NULL;
11390 }
11391
11392
11393 static PyObject *_wrap_new_JoystickEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11394 PyObject *resultobj;
11395 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11396 int arg2 = (int) 0 ;
11397 int arg3 = (int) wxJOYSTICK1 ;
11398 int arg4 = (int) 0 ;
11399 wxJoystickEvent *result;
11400 PyObject * obj0 = 0 ;
11401 PyObject * obj1 = 0 ;
11402 PyObject * obj2 = 0 ;
11403 PyObject * obj3 = 0 ;
11404 char *kwnames[] = {
11405 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11406 };
11407
11408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11409 if (obj0) {
11410 arg1 = (wxEventType)SWIG_As_int(obj0);
11411 if (PyErr_Occurred()) SWIG_fail;
11412 }
11413 if (obj1) {
11414 arg2 = (int)SWIG_As_int(obj1);
11415 if (PyErr_Occurred()) SWIG_fail;
11416 }
11417 if (obj2) {
11418 arg3 = (int)SWIG_As_int(obj2);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 if (obj3) {
11422 arg4 = (int)SWIG_As_int(obj3);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 {
11426 PyThreadState* __tstate = wxPyBeginAllowThreads();
11427 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11428
11429 wxPyEndAllowThreads(__tstate);
11430 if (PyErr_Occurred()) SWIG_fail;
11431 }
11432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11433 return resultobj;
11434 fail:
11435 return NULL;
11436 }
11437
11438
11439 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11440 PyObject *resultobj;
11441 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11442 wxPoint result;
11443 PyObject * obj0 = 0 ;
11444 char *kwnames[] = {
11445 (char *) "self", NULL
11446 };
11447
11448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11451 {
11452 PyThreadState* __tstate = wxPyBeginAllowThreads();
11453 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11454
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 {
11459 wxPoint * resultptr;
11460 resultptr = new wxPoint((wxPoint &) result);
11461 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11462 }
11463 return resultobj;
11464 fail:
11465 return NULL;
11466 }
11467
11468
11469 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11470 PyObject *resultobj;
11471 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11472 int result;
11473 PyObject * obj0 = 0 ;
11474 char *kwnames[] = {
11475 (char *) "self", NULL
11476 };
11477
11478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11481 {
11482 PyThreadState* __tstate = wxPyBeginAllowThreads();
11483 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11484
11485 wxPyEndAllowThreads(__tstate);
11486 if (PyErr_Occurred()) SWIG_fail;
11487 }
11488 resultobj = SWIG_From_int((int)result);
11489 return resultobj;
11490 fail:
11491 return NULL;
11492 }
11493
11494
11495 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
11496 PyObject *resultobj;
11497 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11498 int result;
11499 PyObject * obj0 = 0 ;
11500 char *kwnames[] = {
11501 (char *) "self", NULL
11502 };
11503
11504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11507 {
11508 PyThreadState* __tstate = wxPyBeginAllowThreads();
11509 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11510
11511 wxPyEndAllowThreads(__tstate);
11512 if (PyErr_Occurred()) SWIG_fail;
11513 }
11514 resultobj = SWIG_From_int((int)result);
11515 return resultobj;
11516 fail:
11517 return NULL;
11518 }
11519
11520
11521 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
11522 PyObject *resultobj;
11523 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11524 int result;
11525 PyObject * obj0 = 0 ;
11526 char *kwnames[] = {
11527 (char *) "self", NULL
11528 };
11529
11530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11533 {
11534 PyThreadState* __tstate = wxPyBeginAllowThreads();
11535 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11536
11537 wxPyEndAllowThreads(__tstate);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 }
11540 resultobj = SWIG_From_int((int)result);
11541 return resultobj;
11542 fail:
11543 return NULL;
11544 }
11545
11546
11547 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
11548 PyObject *resultobj;
11549 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11550 int result;
11551 PyObject * obj0 = 0 ;
11552 char *kwnames[] = {
11553 (char *) "self", NULL
11554 };
11555
11556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11559 {
11560 PyThreadState* __tstate = wxPyBeginAllowThreads();
11561 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11562
11563 wxPyEndAllowThreads(__tstate);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 }
11566 resultobj = SWIG_From_int((int)result);
11567 return resultobj;
11568 fail:
11569 return NULL;
11570 }
11571
11572
11573 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *, PyObject *args, PyObject *kwargs) {
11574 PyObject *resultobj;
11575 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11576 int arg2 ;
11577 PyObject * obj0 = 0 ;
11578 PyObject * obj1 = 0 ;
11579 char *kwnames[] = {
11580 (char *) "self",(char *) "stick", NULL
11581 };
11582
11583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11586 arg2 = (int)SWIG_As_int(obj1);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 {
11589 PyThreadState* __tstate = wxPyBeginAllowThreads();
11590 (arg1)->SetJoystick(arg2);
11591
11592 wxPyEndAllowThreads(__tstate);
11593 if (PyErr_Occurred()) SWIG_fail;
11594 }
11595 Py_INCREF(Py_None); resultobj = Py_None;
11596 return resultobj;
11597 fail:
11598 return NULL;
11599 }
11600
11601
11602 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *, PyObject *args, PyObject *kwargs) {
11603 PyObject *resultobj;
11604 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11605 int arg2 ;
11606 PyObject * obj0 = 0 ;
11607 PyObject * obj1 = 0 ;
11608 char *kwnames[] = {
11609 (char *) "self",(char *) "state", NULL
11610 };
11611
11612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11615 arg2 = (int)SWIG_As_int(obj1);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 {
11618 PyThreadState* __tstate = wxPyBeginAllowThreads();
11619 (arg1)->SetButtonState(arg2);
11620
11621 wxPyEndAllowThreads(__tstate);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 }
11624 Py_INCREF(Py_None); resultobj = Py_None;
11625 return resultobj;
11626 fail:
11627 return NULL;
11628 }
11629
11630
11631 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *, PyObject *args, PyObject *kwargs) {
11632 PyObject *resultobj;
11633 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11634 int arg2 ;
11635 PyObject * obj0 = 0 ;
11636 PyObject * obj1 = 0 ;
11637 char *kwnames[] = {
11638 (char *) "self",(char *) "change", NULL
11639 };
11640
11641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11644 arg2 = (int)SWIG_As_int(obj1);
11645 if (PyErr_Occurred()) SWIG_fail;
11646 {
11647 PyThreadState* __tstate = wxPyBeginAllowThreads();
11648 (arg1)->SetButtonChange(arg2);
11649
11650 wxPyEndAllowThreads(__tstate);
11651 if (PyErr_Occurred()) SWIG_fail;
11652 }
11653 Py_INCREF(Py_None); resultobj = Py_None;
11654 return resultobj;
11655 fail:
11656 return NULL;
11657 }
11658
11659
11660 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11661 PyObject *resultobj;
11662 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11663 wxPoint *arg2 = 0 ;
11664 wxPoint temp2 ;
11665 PyObject * obj0 = 0 ;
11666 PyObject * obj1 = 0 ;
11667 char *kwnames[] = {
11668 (char *) "self",(char *) "pos", NULL
11669 };
11670
11671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11674 {
11675 arg2 = &temp2;
11676 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11677 }
11678 {
11679 PyThreadState* __tstate = wxPyBeginAllowThreads();
11680 (arg1)->SetPosition((wxPoint const &)*arg2);
11681
11682 wxPyEndAllowThreads(__tstate);
11683 if (PyErr_Occurred()) SWIG_fail;
11684 }
11685 Py_INCREF(Py_None); resultobj = Py_None;
11686 return resultobj;
11687 fail:
11688 return NULL;
11689 }
11690
11691
11692 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11693 PyObject *resultobj;
11694 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11695 int arg2 ;
11696 PyObject * obj0 = 0 ;
11697 PyObject * obj1 = 0 ;
11698 char *kwnames[] = {
11699 (char *) "self",(char *) "zPos", NULL
11700 };
11701
11702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11705 arg2 = (int)SWIG_As_int(obj1);
11706 if (PyErr_Occurred()) SWIG_fail;
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
11709 (arg1)->SetZPosition(arg2);
11710
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 Py_INCREF(Py_None); resultobj = Py_None;
11715 return resultobj;
11716 fail:
11717 return NULL;
11718 }
11719
11720
11721 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj;
11723 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11724 bool result;
11725 PyObject * obj0 = 0 ;
11726 char *kwnames[] = {
11727 (char *) "self", NULL
11728 };
11729
11730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11733 {
11734 PyThreadState* __tstate = wxPyBeginAllowThreads();
11735 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11736
11737 wxPyEndAllowThreads(__tstate);
11738 if (PyErr_Occurred()) SWIG_fail;
11739 }
11740 {
11741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11742 }
11743 return resultobj;
11744 fail:
11745 return NULL;
11746 }
11747
11748
11749 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *, PyObject *args, PyObject *kwargs) {
11750 PyObject *resultobj;
11751 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11752 bool result;
11753 PyObject * obj0 = 0 ;
11754 char *kwnames[] = {
11755 (char *) "self", NULL
11756 };
11757
11758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11761 {
11762 PyThreadState* __tstate = wxPyBeginAllowThreads();
11763 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11764
11765 wxPyEndAllowThreads(__tstate);
11766 if (PyErr_Occurred()) SWIG_fail;
11767 }
11768 {
11769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11770 }
11771 return resultobj;
11772 fail:
11773 return NULL;
11774 }
11775
11776
11777 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *, PyObject *args, PyObject *kwargs) {
11778 PyObject *resultobj;
11779 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11780 bool result;
11781 PyObject * obj0 = 0 ;
11782 char *kwnames[] = {
11783 (char *) "self", NULL
11784 };
11785
11786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11789 {
11790 PyThreadState* __tstate = wxPyBeginAllowThreads();
11791 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11792
11793 wxPyEndAllowThreads(__tstate);
11794 if (PyErr_Occurred()) SWIG_fail;
11795 }
11796 {
11797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11798 }
11799 return resultobj;
11800 fail:
11801 return NULL;
11802 }
11803
11804
11805 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
11806 PyObject *resultobj;
11807 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11808 int arg2 = (int) wxJOY_BUTTON_ANY ;
11809 bool result;
11810 PyObject * obj0 = 0 ;
11811 PyObject * obj1 = 0 ;
11812 char *kwnames[] = {
11813 (char *) "self",(char *) "but", NULL
11814 };
11815
11816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11819 if (obj1) {
11820 arg2 = (int)SWIG_As_int(obj1);
11821 if (PyErr_Occurred()) SWIG_fail;
11822 }
11823 {
11824 PyThreadState* __tstate = wxPyBeginAllowThreads();
11825 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11826
11827 wxPyEndAllowThreads(__tstate);
11828 if (PyErr_Occurred()) SWIG_fail;
11829 }
11830 {
11831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11832 }
11833 return resultobj;
11834 fail:
11835 return NULL;
11836 }
11837
11838
11839 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
11840 PyObject *resultobj;
11841 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11842 int arg2 = (int) wxJOY_BUTTON_ANY ;
11843 bool result;
11844 PyObject * obj0 = 0 ;
11845 PyObject * obj1 = 0 ;
11846 char *kwnames[] = {
11847 (char *) "self",(char *) "but", NULL
11848 };
11849
11850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11853 if (obj1) {
11854 arg2 = (int)SWIG_As_int(obj1);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 {
11858 PyThreadState* __tstate = wxPyBeginAllowThreads();
11859 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11860
11861 wxPyEndAllowThreads(__tstate);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 {
11865 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11866 }
11867 return resultobj;
11868 fail:
11869 return NULL;
11870 }
11871
11872
11873 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
11874 PyObject *resultobj;
11875 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11876 int arg2 = (int) wxJOY_BUTTON_ANY ;
11877 bool result;
11878 PyObject * obj0 = 0 ;
11879 PyObject * obj1 = 0 ;
11880 char *kwnames[] = {
11881 (char *) "self",(char *) "but", NULL
11882 };
11883
11884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11887 if (obj1) {
11888 arg2 = (int)SWIG_As_int(obj1);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 }
11891 {
11892 PyThreadState* __tstate = wxPyBeginAllowThreads();
11893 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11894
11895 wxPyEndAllowThreads(__tstate);
11896 if (PyErr_Occurred()) SWIG_fail;
11897 }
11898 {
11899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11900 }
11901 return resultobj;
11902 fail:
11903 return NULL;
11904 }
11905
11906
11907 static PyObject * JoystickEvent_swigregister(PyObject *, PyObject *args) {
11908 PyObject *obj;
11909 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11910 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11911 Py_INCREF(obj);
11912 return Py_BuildValue((char *)"");
11913 }
11914 static PyObject *_wrap_new_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
11915 PyObject *resultobj;
11916 wxString const &arg1_defvalue = wxPyEmptyString ;
11917 wxString *arg1 = (wxString *) &arg1_defvalue ;
11918 wxSound *result;
11919 bool temp1 = false ;
11920 PyObject * obj0 = 0 ;
11921 char *kwnames[] = {
11922 (char *) "fileName", NULL
11923 };
11924
11925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11926 if (obj0) {
11927 {
11928 arg1 = wxString_in_helper(obj0);
11929 if (arg1 == NULL) SWIG_fail;
11930 temp1 = true;
11931 }
11932 }
11933 {
11934 if (!wxPyCheckForApp()) SWIG_fail;
11935 PyThreadState* __tstate = wxPyBeginAllowThreads();
11936 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11937
11938 wxPyEndAllowThreads(__tstate);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11942 {
11943 if (temp1)
11944 delete arg1;
11945 }
11946 return resultobj;
11947 fail:
11948 {
11949 if (temp1)
11950 delete arg1;
11951 }
11952 return NULL;
11953 }
11954
11955
11956 static PyObject *_wrap_new_SoundFromData(PyObject *, PyObject *args, PyObject *kwargs) {
11957 PyObject *resultobj;
11958 PyObject *arg1 = (PyObject *) 0 ;
11959 wxSound *result;
11960 PyObject * obj0 = 0 ;
11961 char *kwnames[] = {
11962 (char *) "data", NULL
11963 };
11964
11965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11966 arg1 = obj0;
11967 {
11968 if (!wxPyCheckForApp()) SWIG_fail;
11969 PyThreadState* __tstate = wxPyBeginAllowThreads();
11970 result = (wxSound *)new_wxSound(arg1);
11971
11972 wxPyEndAllowThreads(__tstate);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 }
11975 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11976 return resultobj;
11977 fail:
11978 return NULL;
11979 }
11980
11981
11982 static PyObject *_wrap_delete_Sound(PyObject *, PyObject *args, PyObject *kwargs) {
11983 PyObject *resultobj;
11984 wxSound *arg1 = (wxSound *) 0 ;
11985 PyObject * obj0 = 0 ;
11986 char *kwnames[] = {
11987 (char *) "self", NULL
11988 };
11989
11990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11993 {
11994 PyThreadState* __tstate = wxPyBeginAllowThreads();
11995 delete arg1;
11996
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 }
12000 Py_INCREF(Py_None); resultobj = Py_None;
12001 return resultobj;
12002 fail:
12003 return NULL;
12004 }
12005
12006
12007 static PyObject *_wrap_Sound_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12008 PyObject *resultobj;
12009 wxSound *arg1 = (wxSound *) 0 ;
12010 wxString *arg2 = 0 ;
12011 bool result;
12012 bool temp2 = false ;
12013 PyObject * obj0 = 0 ;
12014 PyObject * obj1 = 0 ;
12015 char *kwnames[] = {
12016 (char *) "self",(char *) "fileName", NULL
12017 };
12018
12019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
12020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12022 {
12023 arg2 = wxString_in_helper(obj1);
12024 if (arg2 == NULL) SWIG_fail;
12025 temp2 = true;
12026 }
12027 {
12028 PyThreadState* __tstate = wxPyBeginAllowThreads();
12029 result = (bool)(arg1)->Create((wxString const &)*arg2);
12030
12031 wxPyEndAllowThreads(__tstate);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 }
12034 {
12035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12036 }
12037 {
12038 if (temp2)
12039 delete arg2;
12040 }
12041 return resultobj;
12042 fail:
12043 {
12044 if (temp2)
12045 delete arg2;
12046 }
12047 return NULL;
12048 }
12049
12050
12051 static PyObject *_wrap_Sound_CreateFromData(PyObject *, PyObject *args, PyObject *kwargs) {
12052 PyObject *resultobj;
12053 wxSound *arg1 = (wxSound *) 0 ;
12054 PyObject *arg2 = (PyObject *) 0 ;
12055 bool result;
12056 PyObject * obj0 = 0 ;
12057 PyObject * obj1 = 0 ;
12058 char *kwnames[] = {
12059 (char *) "self",(char *) "data", NULL
12060 };
12061
12062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
12063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12065 arg2 = obj1;
12066 {
12067 PyThreadState* __tstate = wxPyBeginAllowThreads();
12068 result = (bool)wxSound_CreateFromData(arg1,arg2);
12069
12070 wxPyEndAllowThreads(__tstate);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 {
12074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12075 }
12076 return resultobj;
12077 fail:
12078 return NULL;
12079 }
12080
12081
12082 static PyObject *_wrap_Sound_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
12083 PyObject *resultobj;
12084 wxSound *arg1 = (wxSound *) 0 ;
12085 bool result;
12086 PyObject * obj0 = 0 ;
12087 char *kwnames[] = {
12088 (char *) "self", NULL
12089 };
12090
12091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
12092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12094 {
12095 PyThreadState* __tstate = wxPyBeginAllowThreads();
12096 result = (bool)(arg1)->IsOk();
12097
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 {
12102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12103 }
12104 return resultobj;
12105 fail:
12106 return NULL;
12107 }
12108
12109
12110 static PyObject *_wrap_Sound_Play(PyObject *, PyObject *args, PyObject *kwargs) {
12111 PyObject *resultobj;
12112 wxSound *arg1 = (wxSound *) 0 ;
12113 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12114 bool result;
12115 PyObject * obj0 = 0 ;
12116 PyObject * obj1 = 0 ;
12117 char *kwnames[] = {
12118 (char *) "self",(char *) "flags", NULL
12119 };
12120
12121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
12122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
12123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12124 if (obj1) {
12125 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
12126 if (PyErr_Occurred()) SWIG_fail;
12127 }
12128 {
12129 if (!wxPyCheckForApp()) SWIG_fail;
12130 PyThreadState* __tstate = wxPyBeginAllowThreads();
12131 result = (bool)((wxSound const *)arg1)->Play(arg2);
12132
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 {
12137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12138 }
12139 return resultobj;
12140 fail:
12141 return NULL;
12142 }
12143
12144
12145 static PyObject *_wrap_Sound_PlaySound(PyObject *, PyObject *args, PyObject *kwargs) {
12146 PyObject *resultobj;
12147 wxString *arg1 = 0 ;
12148 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
12149 bool result;
12150 bool temp1 = false ;
12151 PyObject * obj0 = 0 ;
12152 PyObject * obj1 = 0 ;
12153 char *kwnames[] = {
12154 (char *) "filename",(char *) "flags", NULL
12155 };
12156
12157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
12158 {
12159 arg1 = wxString_in_helper(obj0);
12160 if (arg1 == NULL) SWIG_fail;
12161 temp1 = true;
12162 }
12163 if (obj1) {
12164 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
12165 if (PyErr_Occurred()) SWIG_fail;
12166 }
12167 {
12168 if (!wxPyCheckForApp()) SWIG_fail;
12169 PyThreadState* __tstate = wxPyBeginAllowThreads();
12170 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
12171
12172 wxPyEndAllowThreads(__tstate);
12173 if (PyErr_Occurred()) SWIG_fail;
12174 }
12175 {
12176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12177 }
12178 {
12179 if (temp1)
12180 delete arg1;
12181 }
12182 return resultobj;
12183 fail:
12184 {
12185 if (temp1)
12186 delete arg1;
12187 }
12188 return NULL;
12189 }
12190
12191
12192 static PyObject *_wrap_Sound_Stop(PyObject *, PyObject *args, PyObject *kwargs) {
12193 PyObject *resultobj;
12194 char *kwnames[] = {
12195 NULL
12196 };
12197
12198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
12199 {
12200 if (!wxPyCheckForApp()) SWIG_fail;
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 wxSound::Stop();
12203
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 Py_INCREF(Py_None); resultobj = Py_None;
12208 return resultobj;
12209 fail:
12210 return NULL;
12211 }
12212
12213
12214 static PyObject * Sound_swigregister(PyObject *, PyObject *args) {
12215 PyObject *obj;
12216 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12217 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
12218 Py_INCREF(obj);
12219 return Py_BuildValue((char *)"");
12220 }
12221 static PyObject *_wrap_new_FileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12222 PyObject *resultobj;
12223 wxString *arg1 = 0 ;
12224 wxString *arg2 = 0 ;
12225 wxString *arg3 = 0 ;
12226 wxString *arg4 = 0 ;
12227 wxFileTypeInfo *result;
12228 bool temp1 = false ;
12229 bool temp2 = false ;
12230 bool temp3 = false ;
12231 bool temp4 = false ;
12232 PyObject * obj0 = 0 ;
12233 PyObject * obj1 = 0 ;
12234 PyObject * obj2 = 0 ;
12235 PyObject * obj3 = 0 ;
12236 char *kwnames[] = {
12237 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
12238 };
12239
12240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12241 {
12242 arg1 = wxString_in_helper(obj0);
12243 if (arg1 == NULL) SWIG_fail;
12244 temp1 = true;
12245 }
12246 {
12247 arg2 = wxString_in_helper(obj1);
12248 if (arg2 == NULL) SWIG_fail;
12249 temp2 = true;
12250 }
12251 {
12252 arg3 = wxString_in_helper(obj2);
12253 if (arg3 == NULL) SWIG_fail;
12254 temp3 = true;
12255 }
12256 {
12257 arg4 = wxString_in_helper(obj3);
12258 if (arg4 == NULL) SWIG_fail;
12259 temp4 = true;
12260 }
12261 {
12262 PyThreadState* __tstate = wxPyBeginAllowThreads();
12263 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12264
12265 wxPyEndAllowThreads(__tstate);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 }
12268 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12269 {
12270 if (temp1)
12271 delete arg1;
12272 }
12273 {
12274 if (temp2)
12275 delete arg2;
12276 }
12277 {
12278 if (temp3)
12279 delete arg3;
12280 }
12281 {
12282 if (temp4)
12283 delete arg4;
12284 }
12285 return resultobj;
12286 fail:
12287 {
12288 if (temp1)
12289 delete arg1;
12290 }
12291 {
12292 if (temp2)
12293 delete arg2;
12294 }
12295 {
12296 if (temp3)
12297 delete arg3;
12298 }
12299 {
12300 if (temp4)
12301 delete arg4;
12302 }
12303 return NULL;
12304 }
12305
12306
12307 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *, PyObject *args, PyObject *kwargs) {
12308 PyObject *resultobj;
12309 wxArrayString *arg1 = 0 ;
12310 wxFileTypeInfo *result;
12311 bool temp1 = false ;
12312 PyObject * obj0 = 0 ;
12313 char *kwnames[] = {
12314 (char *) "sArray", NULL
12315 };
12316
12317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12318 {
12319 if (! PySequence_Check(obj0)) {
12320 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12321 SWIG_fail;
12322 }
12323 arg1 = new wxArrayString;
12324 temp1 = true;
12325 int i, len=PySequence_Length(obj0);
12326 for (i=0; i<len; i++) {
12327 PyObject* item = PySequence_GetItem(obj0, i);
12328 #if wxUSE_UNICODE
12329 PyObject* str = PyObject_Unicode(item);
12330 #else
12331 PyObject* str = PyObject_Str(item);
12332 #endif
12333 if (PyErr_Occurred()) SWIG_fail;
12334 arg1->Add(Py2wxString(str));
12335 Py_DECREF(item);
12336 Py_DECREF(str);
12337 }
12338 }
12339 {
12340 PyThreadState* __tstate = wxPyBeginAllowThreads();
12341 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12342
12343 wxPyEndAllowThreads(__tstate);
12344 if (PyErr_Occurred()) SWIG_fail;
12345 }
12346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12347 {
12348 if (temp1) delete arg1;
12349 }
12350 return resultobj;
12351 fail:
12352 {
12353 if (temp1) delete arg1;
12354 }
12355 return NULL;
12356 }
12357
12358
12359 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12360 PyObject *resultobj;
12361 wxFileTypeInfo *result;
12362 char *kwnames[] = {
12363 NULL
12364 };
12365
12366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12367 {
12368 PyThreadState* __tstate = wxPyBeginAllowThreads();
12369 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12370
12371 wxPyEndAllowThreads(__tstate);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 }
12374 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12375 return resultobj;
12376 fail:
12377 return NULL;
12378 }
12379
12380
12381 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
12382 PyObject *resultobj;
12383 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12384 bool result;
12385 PyObject * obj0 = 0 ;
12386 char *kwnames[] = {
12387 (char *) "self", NULL
12388 };
12389
12390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12396
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 {
12401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12402 }
12403 return resultobj;
12404 fail:
12405 return NULL;
12406 }
12407
12408
12409 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12410 PyObject *resultobj;
12411 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12412 wxString *arg2 = 0 ;
12413 int arg3 = (int) 0 ;
12414 bool temp2 = false ;
12415 PyObject * obj0 = 0 ;
12416 PyObject * obj1 = 0 ;
12417 PyObject * obj2 = 0 ;
12418 char *kwnames[] = {
12419 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12420 };
12421
12422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12425 {
12426 arg2 = wxString_in_helper(obj1);
12427 if (arg2 == NULL) SWIG_fail;
12428 temp2 = true;
12429 }
12430 if (obj2) {
12431 arg3 = (int)SWIG_As_int(obj2);
12432 if (PyErr_Occurred()) SWIG_fail;
12433 }
12434 {
12435 PyThreadState* __tstate = wxPyBeginAllowThreads();
12436 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12437
12438 wxPyEndAllowThreads(__tstate);
12439 if (PyErr_Occurred()) SWIG_fail;
12440 }
12441 Py_INCREF(Py_None); resultobj = Py_None;
12442 {
12443 if (temp2)
12444 delete arg2;
12445 }
12446 return resultobj;
12447 fail:
12448 {
12449 if (temp2)
12450 delete arg2;
12451 }
12452 return NULL;
12453 }
12454
12455
12456 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12457 PyObject *resultobj;
12458 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12459 wxString *arg2 = 0 ;
12460 bool temp2 = false ;
12461 PyObject * obj0 = 0 ;
12462 PyObject * obj1 = 0 ;
12463 char *kwnames[] = {
12464 (char *) "self",(char *) "shortDesc", NULL
12465 };
12466
12467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
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 {
12476 PyThreadState* __tstate = wxPyBeginAllowThreads();
12477 (arg1)->SetShortDesc((wxString const &)*arg2);
12478
12479 wxPyEndAllowThreads(__tstate);
12480 if (PyErr_Occurred()) SWIG_fail;
12481 }
12482 Py_INCREF(Py_None); resultobj = Py_None;
12483 {
12484 if (temp2)
12485 delete arg2;
12486 }
12487 return resultobj;
12488 fail:
12489 {
12490 if (temp2)
12491 delete arg2;
12492 }
12493 return NULL;
12494 }
12495
12496
12497 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12498 PyObject *resultobj;
12499 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12500 wxString *result;
12501 PyObject * obj0 = 0 ;
12502 char *kwnames[] = {
12503 (char *) "self", NULL
12504 };
12505
12506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12509 {
12510 PyThreadState* __tstate = wxPyBeginAllowThreads();
12511 {
12512 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12513 result = (wxString *) &_result_ref;
12514 }
12515
12516 wxPyEndAllowThreads(__tstate);
12517 if (PyErr_Occurred()) SWIG_fail;
12518 }
12519 {
12520 #if wxUSE_UNICODE
12521 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12522 #else
12523 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12524 #endif
12525 }
12526 return resultobj;
12527 fail:
12528 return NULL;
12529 }
12530
12531
12532 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12533 PyObject *resultobj;
12534 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12535 wxString *result;
12536 PyObject * obj0 = 0 ;
12537 char *kwnames[] = {
12538 (char *) "self", NULL
12539 };
12540
12541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12544 {
12545 PyThreadState* __tstate = wxPyBeginAllowThreads();
12546 {
12547 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12548 result = (wxString *) &_result_ref;
12549 }
12550
12551 wxPyEndAllowThreads(__tstate);
12552 if (PyErr_Occurred()) SWIG_fail;
12553 }
12554 {
12555 #if wxUSE_UNICODE
12556 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12557 #else
12558 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12559 #endif
12560 }
12561 return resultobj;
12562 fail:
12563 return NULL;
12564 }
12565
12566
12567 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
12568 PyObject *resultobj;
12569 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12570 wxString *result;
12571 PyObject * obj0 = 0 ;
12572 char *kwnames[] = {
12573 (char *) "self", NULL
12574 };
12575
12576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12579 {
12580 PyThreadState* __tstate = wxPyBeginAllowThreads();
12581 {
12582 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12583 result = (wxString *) &_result_ref;
12584 }
12585
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 {
12590 #if wxUSE_UNICODE
12591 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12592 #else
12593 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12594 #endif
12595 }
12596 return resultobj;
12597 fail:
12598 return NULL;
12599 }
12600
12601
12602 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *, PyObject *args, PyObject *kwargs) {
12603 PyObject *resultobj;
12604 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12605 wxString *result;
12606 PyObject * obj0 = 0 ;
12607 char *kwnames[] = {
12608 (char *) "self", NULL
12609 };
12610
12611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12614 {
12615 PyThreadState* __tstate = wxPyBeginAllowThreads();
12616 {
12617 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12618 result = (wxString *) &_result_ref;
12619 }
12620
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 {
12625 #if wxUSE_UNICODE
12626 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12627 #else
12628 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12629 #endif
12630 }
12631 return resultobj;
12632 fail:
12633 return NULL;
12634 }
12635
12636
12637 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12638 PyObject *resultobj;
12639 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12640 wxString *result;
12641 PyObject * obj0 = 0 ;
12642 char *kwnames[] = {
12643 (char *) "self", NULL
12644 };
12645
12646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 {
12652 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12653 result = (wxString *) &_result_ref;
12654 }
12655
12656 wxPyEndAllowThreads(__tstate);
12657 if (PyErr_Occurred()) SWIG_fail;
12658 }
12659 {
12660 #if wxUSE_UNICODE
12661 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12662 #else
12663 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12664 #endif
12665 }
12666 return resultobj;
12667 fail:
12668 return NULL;
12669 }
12670
12671
12672 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj;
12674 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12675 wxArrayString *result;
12676 PyObject * obj0 = 0 ;
12677 char *kwnames[] = {
12678 (char *) "self", NULL
12679 };
12680
12681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 {
12687 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12688 result = (wxArrayString *) &_result_ref;
12689 }
12690
12691 wxPyEndAllowThreads(__tstate);
12692 if (PyErr_Occurred()) SWIG_fail;
12693 }
12694 {
12695 resultobj = wxArrayString2PyList_helper(*result);
12696 }
12697 return resultobj;
12698 fail:
12699 return NULL;
12700 }
12701
12702
12703 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *, PyObject *args, PyObject *kwargs) {
12704 PyObject *resultobj;
12705 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12706 int result;
12707 PyObject * obj0 = 0 ;
12708 char *kwnames[] = {
12709 (char *) "self", NULL
12710 };
12711
12712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12715 {
12716 PyThreadState* __tstate = wxPyBeginAllowThreads();
12717 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12718
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 resultobj = SWIG_From_int((int)result);
12723 return resultobj;
12724 fail:
12725 return NULL;
12726 }
12727
12728
12729 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *, PyObject *args, PyObject *kwargs) {
12730 PyObject *resultobj;
12731 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12732 wxString *result;
12733 PyObject * obj0 = 0 ;
12734 char *kwnames[] = {
12735 (char *) "self", NULL
12736 };
12737
12738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12741 {
12742 PyThreadState* __tstate = wxPyBeginAllowThreads();
12743 {
12744 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12745 result = (wxString *) &_result_ref;
12746 }
12747
12748 wxPyEndAllowThreads(__tstate);
12749 if (PyErr_Occurred()) SWIG_fail;
12750 }
12751 {
12752 #if wxUSE_UNICODE
12753 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12754 #else
12755 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12756 #endif
12757 }
12758 return resultobj;
12759 fail:
12760 return NULL;
12761 }
12762
12763
12764 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *, PyObject *args, PyObject *kwargs) {
12765 PyObject *resultobj;
12766 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12767 int result;
12768 PyObject * obj0 = 0 ;
12769 char *kwnames[] = {
12770 (char *) "self", NULL
12771 };
12772
12773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12776 {
12777 PyThreadState* __tstate = wxPyBeginAllowThreads();
12778 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12779
12780 wxPyEndAllowThreads(__tstate);
12781 if (PyErr_Occurred()) SWIG_fail;
12782 }
12783 resultobj = SWIG_From_int((int)result);
12784 return resultobj;
12785 fail:
12786 return NULL;
12787 }
12788
12789
12790 static PyObject * FileTypeInfo_swigregister(PyObject *, PyObject *args) {
12791 PyObject *obj;
12792 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12793 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12794 Py_INCREF(obj);
12795 return Py_BuildValue((char *)"");
12796 }
12797 static PyObject *_wrap_new_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12798 PyObject *resultobj;
12799 wxFileTypeInfo *arg1 = 0 ;
12800 wxFileType *result;
12801 PyObject * obj0 = 0 ;
12802 char *kwnames[] = {
12803 (char *) "ftInfo", NULL
12804 };
12805
12806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12808 SWIG_POINTER_EXCEPTION | 0)) == -1)
12809 SWIG_fail;
12810 if (arg1 == NULL) {
12811 PyErr_SetString(PyExc_TypeError,"null reference");
12812 SWIG_fail;
12813 }
12814 {
12815 PyThreadState* __tstate = wxPyBeginAllowThreads();
12816 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12817
12818 wxPyEndAllowThreads(__tstate);
12819 if (PyErr_Occurred()) SWIG_fail;
12820 }
12821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12822 return resultobj;
12823 fail:
12824 return NULL;
12825 }
12826
12827
12828 static PyObject *_wrap_delete_FileType(PyObject *, PyObject *args, PyObject *kwargs) {
12829 PyObject *resultobj;
12830 wxFileType *arg1 = (wxFileType *) 0 ;
12831 PyObject * obj0 = 0 ;
12832 char *kwnames[] = {
12833 (char *) "self", NULL
12834 };
12835
12836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 delete arg1;
12842
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 Py_INCREF(Py_None); resultobj = Py_None;
12847 return resultobj;
12848 fail:
12849 return NULL;
12850 }
12851
12852
12853 static PyObject *_wrap_FileType_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
12854 PyObject *resultobj;
12855 wxFileType *arg1 = (wxFileType *) 0 ;
12856 PyObject *result;
12857 PyObject * obj0 = 0 ;
12858 char *kwnames[] = {
12859 (char *) "self", NULL
12860 };
12861
12862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12865 {
12866 PyThreadState* __tstate = wxPyBeginAllowThreads();
12867 result = (PyObject *)wxFileType_GetMimeType(arg1);
12868
12869 wxPyEndAllowThreads(__tstate);
12870 if (PyErr_Occurred()) SWIG_fail;
12871 }
12872 resultobj = result;
12873 return resultobj;
12874 fail:
12875 return NULL;
12876 }
12877
12878
12879 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
12880 PyObject *resultobj;
12881 wxFileType *arg1 = (wxFileType *) 0 ;
12882 PyObject *result;
12883 PyObject * obj0 = 0 ;
12884 char *kwnames[] = {
12885 (char *) "self", NULL
12886 };
12887
12888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12891 {
12892 PyThreadState* __tstate = wxPyBeginAllowThreads();
12893 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12894
12895 wxPyEndAllowThreads(__tstate);
12896 if (PyErr_Occurred()) SWIG_fail;
12897 }
12898 resultobj = result;
12899 return resultobj;
12900 fail:
12901 return NULL;
12902 }
12903
12904
12905 static PyObject *_wrap_FileType_GetExtensions(PyObject *, PyObject *args, PyObject *kwargs) {
12906 PyObject *resultobj;
12907 wxFileType *arg1 = (wxFileType *) 0 ;
12908 PyObject *result;
12909 PyObject * obj0 = 0 ;
12910 char *kwnames[] = {
12911 (char *) "self", NULL
12912 };
12913
12914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12917 {
12918 PyThreadState* __tstate = wxPyBeginAllowThreads();
12919 result = (PyObject *)wxFileType_GetExtensions(arg1);
12920
12921 wxPyEndAllowThreads(__tstate);
12922 if (PyErr_Occurred()) SWIG_fail;
12923 }
12924 resultobj = result;
12925 return resultobj;
12926 fail:
12927 return NULL;
12928 }
12929
12930
12931 static PyObject *_wrap_FileType_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
12932 PyObject *resultobj;
12933 wxFileType *arg1 = (wxFileType *) 0 ;
12934 wxIcon *result;
12935 PyObject * obj0 = 0 ;
12936 char *kwnames[] = {
12937 (char *) "self", NULL
12938 };
12939
12940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12943 {
12944 PyThreadState* __tstate = wxPyBeginAllowThreads();
12945 result = (wxIcon *)wxFileType_GetIcon(arg1);
12946
12947 wxPyEndAllowThreads(__tstate);
12948 if (PyErr_Occurred()) SWIG_fail;
12949 }
12950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12951 return resultobj;
12952 fail:
12953 return NULL;
12954 }
12955
12956
12957 static PyObject *_wrap_FileType_GetIconInfo(PyObject *, PyObject *args, PyObject *kwargs) {
12958 PyObject *resultobj;
12959 wxFileType *arg1 = (wxFileType *) 0 ;
12960 PyObject *result;
12961 PyObject * obj0 = 0 ;
12962 char *kwnames[] = {
12963 (char *) "self", NULL
12964 };
12965
12966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12972
12973 wxPyEndAllowThreads(__tstate);
12974 if (PyErr_Occurred()) SWIG_fail;
12975 }
12976 resultobj = result;
12977 return resultobj;
12978 fail:
12979 return NULL;
12980 }
12981
12982
12983 static PyObject *_wrap_FileType_GetDescription(PyObject *, PyObject *args, PyObject *kwargs) {
12984 PyObject *resultobj;
12985 wxFileType *arg1 = (wxFileType *) 0 ;
12986 PyObject *result;
12987 PyObject * obj0 = 0 ;
12988 char *kwnames[] = {
12989 (char *) "self", NULL
12990 };
12991
12992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12995 {
12996 PyThreadState* __tstate = wxPyBeginAllowThreads();
12997 result = (PyObject *)wxFileType_GetDescription(arg1);
12998
12999 wxPyEndAllowThreads(__tstate);
13000 if (PyErr_Occurred()) SWIG_fail;
13001 }
13002 resultobj = result;
13003 return resultobj;
13004 fail:
13005 return NULL;
13006 }
13007
13008
13009 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13010 PyObject *resultobj;
13011 wxFileType *arg1 = (wxFileType *) 0 ;
13012 wxString *arg2 = 0 ;
13013 wxString const &arg3_defvalue = wxPyEmptyString ;
13014 wxString *arg3 = (wxString *) &arg3_defvalue ;
13015 PyObject *result;
13016 bool temp2 = false ;
13017 bool temp3 = false ;
13018 PyObject * obj0 = 0 ;
13019 PyObject * obj1 = 0 ;
13020 PyObject * obj2 = 0 ;
13021 char *kwnames[] = {
13022 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13023 };
13024
13025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13028 {
13029 arg2 = wxString_in_helper(obj1);
13030 if (arg2 == NULL) SWIG_fail;
13031 temp2 = true;
13032 }
13033 if (obj2) {
13034 {
13035 arg3 = wxString_in_helper(obj2);
13036 if (arg3 == NULL) SWIG_fail;
13037 temp3 = true;
13038 }
13039 }
13040 {
13041 PyThreadState* __tstate = wxPyBeginAllowThreads();
13042 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13043
13044 wxPyEndAllowThreads(__tstate);
13045 if (PyErr_Occurred()) SWIG_fail;
13046 }
13047 resultobj = result;
13048 {
13049 if (temp2)
13050 delete arg2;
13051 }
13052 {
13053 if (temp3)
13054 delete arg3;
13055 }
13056 return resultobj;
13057 fail:
13058 {
13059 if (temp2)
13060 delete arg2;
13061 }
13062 {
13063 if (temp3)
13064 delete arg3;
13065 }
13066 return NULL;
13067 }
13068
13069
13070 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13071 PyObject *resultobj;
13072 wxFileType *arg1 = (wxFileType *) 0 ;
13073 wxString *arg2 = 0 ;
13074 wxString const &arg3_defvalue = wxPyEmptyString ;
13075 wxString *arg3 = (wxString *) &arg3_defvalue ;
13076 PyObject *result;
13077 bool temp2 = false ;
13078 bool temp3 = false ;
13079 PyObject * obj0 = 0 ;
13080 PyObject * obj1 = 0 ;
13081 PyObject * obj2 = 0 ;
13082 char *kwnames[] = {
13083 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13084 };
13085
13086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13089 {
13090 arg2 = wxString_in_helper(obj1);
13091 if (arg2 == NULL) SWIG_fail;
13092 temp2 = true;
13093 }
13094 if (obj2) {
13095 {
13096 arg3 = wxString_in_helper(obj2);
13097 if (arg3 == NULL) SWIG_fail;
13098 temp3 = true;
13099 }
13100 }
13101 {
13102 PyThreadState* __tstate = wxPyBeginAllowThreads();
13103 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13104
13105 wxPyEndAllowThreads(__tstate);
13106 if (PyErr_Occurred()) SWIG_fail;
13107 }
13108 resultobj = result;
13109 {
13110 if (temp2)
13111 delete arg2;
13112 }
13113 {
13114 if (temp3)
13115 delete arg3;
13116 }
13117 return resultobj;
13118 fail:
13119 {
13120 if (temp2)
13121 delete arg2;
13122 }
13123 {
13124 if (temp3)
13125 delete arg3;
13126 }
13127 return NULL;
13128 }
13129
13130
13131 static PyObject *_wrap_FileType_GetAllCommands(PyObject *, PyObject *args, PyObject *kwargs) {
13132 PyObject *resultobj;
13133 wxFileType *arg1 = (wxFileType *) 0 ;
13134 wxString *arg2 = 0 ;
13135 wxString const &arg3_defvalue = wxPyEmptyString ;
13136 wxString *arg3 = (wxString *) &arg3_defvalue ;
13137 PyObject *result;
13138 bool temp2 = false ;
13139 bool temp3 = false ;
13140 PyObject * obj0 = 0 ;
13141 PyObject * obj1 = 0 ;
13142 PyObject * obj2 = 0 ;
13143 char *kwnames[] = {
13144 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
13145 };
13146
13147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
13148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13150 {
13151 arg2 = wxString_in_helper(obj1);
13152 if (arg2 == NULL) SWIG_fail;
13153 temp2 = true;
13154 }
13155 if (obj2) {
13156 {
13157 arg3 = wxString_in_helper(obj2);
13158 if (arg3 == NULL) SWIG_fail;
13159 temp3 = true;
13160 }
13161 }
13162 {
13163 PyThreadState* __tstate = wxPyBeginAllowThreads();
13164 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13165
13166 wxPyEndAllowThreads(__tstate);
13167 if (PyErr_Occurred()) SWIG_fail;
13168 }
13169 resultobj = result;
13170 {
13171 if (temp2)
13172 delete arg2;
13173 }
13174 {
13175 if (temp3)
13176 delete arg3;
13177 }
13178 return resultobj;
13179 fail:
13180 {
13181 if (temp2)
13182 delete arg2;
13183 }
13184 {
13185 if (temp3)
13186 delete arg3;
13187 }
13188 return NULL;
13189 }
13190
13191
13192 static PyObject *_wrap_FileType_SetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13193 PyObject *resultobj;
13194 wxFileType *arg1 = (wxFileType *) 0 ;
13195 wxString *arg2 = 0 ;
13196 wxString *arg3 = 0 ;
13197 bool arg4 = (bool) true ;
13198 bool result;
13199 bool temp2 = false ;
13200 bool temp3 = false ;
13201 PyObject * obj0 = 0 ;
13202 PyObject * obj1 = 0 ;
13203 PyObject * obj2 = 0 ;
13204 PyObject * obj3 = 0 ;
13205 char *kwnames[] = {
13206 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
13207 };
13208
13209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13212 {
13213 arg2 = wxString_in_helper(obj1);
13214 if (arg2 == NULL) SWIG_fail;
13215 temp2 = true;
13216 }
13217 {
13218 arg3 = wxString_in_helper(obj2);
13219 if (arg3 == NULL) SWIG_fail;
13220 temp3 = true;
13221 }
13222 if (obj3) {
13223 arg4 = (bool)SWIG_As_bool(obj3);
13224 if (PyErr_Occurred()) SWIG_fail;
13225 }
13226 {
13227 PyThreadState* __tstate = wxPyBeginAllowThreads();
13228 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
13229
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 {
13234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13235 }
13236 {
13237 if (temp2)
13238 delete arg2;
13239 }
13240 {
13241 if (temp3)
13242 delete arg3;
13243 }
13244 return resultobj;
13245 fail:
13246 {
13247 if (temp2)
13248 delete arg2;
13249 }
13250 {
13251 if (temp3)
13252 delete arg3;
13253 }
13254 return NULL;
13255 }
13256
13257
13258 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *, PyObject *args, PyObject *kwargs) {
13259 PyObject *resultobj;
13260 wxFileType *arg1 = (wxFileType *) 0 ;
13261 wxString const &arg2_defvalue = wxPyEmptyString ;
13262 wxString *arg2 = (wxString *) &arg2_defvalue ;
13263 int arg3 = (int) 0 ;
13264 bool result;
13265 bool temp2 = false ;
13266 PyObject * obj0 = 0 ;
13267 PyObject * obj1 = 0 ;
13268 PyObject * obj2 = 0 ;
13269 char *kwnames[] = {
13270 (char *) "self",(char *) "cmd",(char *) "index", NULL
13271 };
13272
13273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13276 if (obj1) {
13277 {
13278 arg2 = wxString_in_helper(obj1);
13279 if (arg2 == NULL) SWIG_fail;
13280 temp2 = true;
13281 }
13282 }
13283 if (obj2) {
13284 arg3 = (int)SWIG_As_int(obj2);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 {
13288 PyThreadState* __tstate = wxPyBeginAllowThreads();
13289 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13290
13291 wxPyEndAllowThreads(__tstate);
13292 if (PyErr_Occurred()) SWIG_fail;
13293 }
13294 {
13295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13296 }
13297 {
13298 if (temp2)
13299 delete arg2;
13300 }
13301 return resultobj;
13302 fail:
13303 {
13304 if (temp2)
13305 delete arg2;
13306 }
13307 return NULL;
13308 }
13309
13310
13311 static PyObject *_wrap_FileType_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
13312 PyObject *resultobj;
13313 wxFileType *arg1 = (wxFileType *) 0 ;
13314 bool result;
13315 PyObject * obj0 = 0 ;
13316 char *kwnames[] = {
13317 (char *) "self", NULL
13318 };
13319
13320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 result = (bool)(arg1)->Unassociate();
13326
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 {
13331 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13332 }
13333 return resultobj;
13334 fail:
13335 return NULL;
13336 }
13337
13338
13339 static PyObject *_wrap_FileType_ExpandCommand(PyObject *, PyObject *args, PyObject *kwargs) {
13340 PyObject *resultobj;
13341 wxString *arg1 = 0 ;
13342 wxString *arg2 = 0 ;
13343 wxString const &arg3_defvalue = wxPyEmptyString ;
13344 wxString *arg3 = (wxString *) &arg3_defvalue ;
13345 wxString result;
13346 bool temp1 = false ;
13347 bool temp2 = false ;
13348 bool temp3 = false ;
13349 PyObject * obj0 = 0 ;
13350 PyObject * obj1 = 0 ;
13351 PyObject * obj2 = 0 ;
13352 char *kwnames[] = {
13353 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13354 };
13355
13356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13357 {
13358 arg1 = wxString_in_helper(obj0);
13359 if (arg1 == NULL) SWIG_fail;
13360 temp1 = true;
13361 }
13362 {
13363 arg2 = wxString_in_helper(obj1);
13364 if (arg2 == NULL) SWIG_fail;
13365 temp2 = true;
13366 }
13367 if (obj2) {
13368 {
13369 arg3 = wxString_in_helper(obj2);
13370 if (arg3 == NULL) SWIG_fail;
13371 temp3 = true;
13372 }
13373 }
13374 {
13375 PyThreadState* __tstate = wxPyBeginAllowThreads();
13376 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13377
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 {
13382 #if wxUSE_UNICODE
13383 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13384 #else
13385 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13386 #endif
13387 }
13388 {
13389 if (temp1)
13390 delete arg1;
13391 }
13392 {
13393 if (temp2)
13394 delete arg2;
13395 }
13396 {
13397 if (temp3)
13398 delete arg3;
13399 }
13400 return resultobj;
13401 fail:
13402 {
13403 if (temp1)
13404 delete arg1;
13405 }
13406 {
13407 if (temp2)
13408 delete arg2;
13409 }
13410 {
13411 if (temp3)
13412 delete arg3;
13413 }
13414 return NULL;
13415 }
13416
13417
13418 static PyObject * FileType_swigregister(PyObject *, PyObject *args) {
13419 PyObject *obj;
13420 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13421 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13422 Py_INCREF(obj);
13423 return Py_BuildValue((char *)"");
13424 }
13425 static int _wrap_TheMimeTypesManager_set(PyObject *) {
13426 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13427 return 1;
13428 }
13429
13430
13431 static PyObject *_wrap_TheMimeTypesManager_get() {
13432 PyObject *pyobj;
13433
13434 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13435 return pyobj;
13436 }
13437
13438
13439 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *, PyObject *args, PyObject *kwargs) {
13440 PyObject *resultobj;
13441 wxString *arg1 = 0 ;
13442 wxString *arg2 = 0 ;
13443 bool result;
13444 bool temp1 = false ;
13445 bool temp2 = false ;
13446 PyObject * obj0 = 0 ;
13447 PyObject * obj1 = 0 ;
13448 char *kwnames[] = {
13449 (char *) "mimeType",(char *) "wildcard", NULL
13450 };
13451
13452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13453 {
13454 arg1 = wxString_in_helper(obj0);
13455 if (arg1 == NULL) SWIG_fail;
13456 temp1 = true;
13457 }
13458 {
13459 arg2 = wxString_in_helper(obj1);
13460 if (arg2 == NULL) SWIG_fail;
13461 temp2 = true;
13462 }
13463 {
13464 PyThreadState* __tstate = wxPyBeginAllowThreads();
13465 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13466
13467 wxPyEndAllowThreads(__tstate);
13468 if (PyErr_Occurred()) SWIG_fail;
13469 }
13470 {
13471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13472 }
13473 {
13474 if (temp1)
13475 delete arg1;
13476 }
13477 {
13478 if (temp2)
13479 delete arg2;
13480 }
13481 return resultobj;
13482 fail:
13483 {
13484 if (temp1)
13485 delete arg1;
13486 }
13487 {
13488 if (temp2)
13489 delete arg2;
13490 }
13491 return NULL;
13492 }
13493
13494
13495 static PyObject *_wrap_new_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
13496 PyObject *resultobj;
13497 wxMimeTypesManager *result;
13498 char *kwnames[] = {
13499 NULL
13500 };
13501
13502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13503 {
13504 PyThreadState* __tstate = wxPyBeginAllowThreads();
13505 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13506
13507 wxPyEndAllowThreads(__tstate);
13508 if (PyErr_Occurred()) SWIG_fail;
13509 }
13510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13511 return resultobj;
13512 fail:
13513 return NULL;
13514 }
13515
13516
13517 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *, PyObject *args, PyObject *kwargs) {
13518 PyObject *resultobj;
13519 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13520 int arg2 = (int) wxMAILCAP_ALL ;
13521 wxString const &arg3_defvalue = wxPyEmptyString ;
13522 wxString *arg3 = (wxString *) &arg3_defvalue ;
13523 bool temp3 = false ;
13524 PyObject * obj0 = 0 ;
13525 PyObject * obj1 = 0 ;
13526 PyObject * obj2 = 0 ;
13527 char *kwnames[] = {
13528 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13529 };
13530
13531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13534 if (obj1) {
13535 arg2 = (int)SWIG_As_int(obj1);
13536 if (PyErr_Occurred()) SWIG_fail;
13537 }
13538 if (obj2) {
13539 {
13540 arg3 = wxString_in_helper(obj2);
13541 if (arg3 == NULL) SWIG_fail;
13542 temp3 = true;
13543 }
13544 }
13545 {
13546 PyThreadState* __tstate = wxPyBeginAllowThreads();
13547 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13548
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 Py_INCREF(Py_None); resultobj = Py_None;
13553 {
13554 if (temp3)
13555 delete arg3;
13556 }
13557 return resultobj;
13558 fail:
13559 {
13560 if (temp3)
13561 delete arg3;
13562 }
13563 return NULL;
13564 }
13565
13566
13567 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *, PyObject *args, PyObject *kwargs) {
13568 PyObject *resultobj;
13569 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13570 PyObject * obj0 = 0 ;
13571 char *kwnames[] = {
13572 (char *) "self", NULL
13573 };
13574
13575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 (arg1)->ClearData();
13581
13582 wxPyEndAllowThreads(__tstate);
13583 if (PyErr_Occurred()) SWIG_fail;
13584 }
13585 Py_INCREF(Py_None); resultobj = Py_None;
13586 return resultobj;
13587 fail:
13588 return NULL;
13589 }
13590
13591
13592 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *, PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj;
13594 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13595 wxString *arg2 = 0 ;
13596 wxFileType *result;
13597 bool temp2 = false ;
13598 PyObject * obj0 = 0 ;
13599 PyObject * obj1 = 0 ;
13600 char *kwnames[] = {
13601 (char *) "self",(char *) "ext", NULL
13602 };
13603
13604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13607 {
13608 arg2 = wxString_in_helper(obj1);
13609 if (arg2 == NULL) SWIG_fail;
13610 temp2 = true;
13611 }
13612 {
13613 PyThreadState* __tstate = wxPyBeginAllowThreads();
13614 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13615
13616 wxPyEndAllowThreads(__tstate);
13617 if (PyErr_Occurred()) SWIG_fail;
13618 }
13619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13620 {
13621 if (temp2)
13622 delete arg2;
13623 }
13624 return resultobj;
13625 fail:
13626 {
13627 if (temp2)
13628 delete arg2;
13629 }
13630 return NULL;
13631 }
13632
13633
13634 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
13635 PyObject *resultobj;
13636 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13637 wxString *arg2 = 0 ;
13638 wxFileType *result;
13639 bool temp2 = false ;
13640 PyObject * obj0 = 0 ;
13641 PyObject * obj1 = 0 ;
13642 char *kwnames[] = {
13643 (char *) "self",(char *) "mimeType", NULL
13644 };
13645
13646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13649 {
13650 arg2 = wxString_in_helper(obj1);
13651 if (arg2 == NULL) SWIG_fail;
13652 temp2 = true;
13653 }
13654 {
13655 PyThreadState* __tstate = wxPyBeginAllowThreads();
13656 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13657
13658 wxPyEndAllowThreads(__tstate);
13659 if (PyErr_Occurred()) SWIG_fail;
13660 }
13661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13662 {
13663 if (temp2)
13664 delete arg2;
13665 }
13666 return resultobj;
13667 fail:
13668 {
13669 if (temp2)
13670 delete arg2;
13671 }
13672 return NULL;
13673 }
13674
13675
13676 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *, PyObject *args, PyObject *kwargs) {
13677 PyObject *resultobj;
13678 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13679 wxString *arg2 = 0 ;
13680 bool arg3 = (bool) false ;
13681 bool result;
13682 bool temp2 = false ;
13683 PyObject * obj0 = 0 ;
13684 PyObject * obj1 = 0 ;
13685 PyObject * obj2 = 0 ;
13686 char *kwnames[] = {
13687 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13688 };
13689
13690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13693 {
13694 arg2 = wxString_in_helper(obj1);
13695 if (arg2 == NULL) SWIG_fail;
13696 temp2 = true;
13697 }
13698 if (obj2) {
13699 arg3 = (bool)SWIG_As_bool(obj2);
13700 if (PyErr_Occurred()) SWIG_fail;
13701 }
13702 {
13703 PyThreadState* __tstate = wxPyBeginAllowThreads();
13704 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13705
13706 wxPyEndAllowThreads(__tstate);
13707 if (PyErr_Occurred()) SWIG_fail;
13708 }
13709 {
13710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13711 }
13712 {
13713 if (temp2)
13714 delete arg2;
13715 }
13716 return resultobj;
13717 fail:
13718 {
13719 if (temp2)
13720 delete arg2;
13721 }
13722 return NULL;
13723 }
13724
13725
13726 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13727 PyObject *resultobj;
13728 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13729 wxString *arg2 = 0 ;
13730 bool result;
13731 bool temp2 = false ;
13732 PyObject * obj0 = 0 ;
13733 PyObject * obj1 = 0 ;
13734 char *kwnames[] = {
13735 (char *) "self",(char *) "filename", NULL
13736 };
13737
13738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13741 {
13742 arg2 = wxString_in_helper(obj1);
13743 if (arg2 == NULL) SWIG_fail;
13744 temp2 = true;
13745 }
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13749
13750 wxPyEndAllowThreads(__tstate);
13751 if (PyErr_Occurred()) SWIG_fail;
13752 }
13753 {
13754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13755 }
13756 {
13757 if (temp2)
13758 delete arg2;
13759 }
13760 return resultobj;
13761 fail:
13762 {
13763 if (temp2)
13764 delete arg2;
13765 }
13766 return NULL;
13767 }
13768
13769
13770 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *, PyObject *args, PyObject *kwargs) {
13771 PyObject *resultobj;
13772 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13773 PyObject *result;
13774 PyObject * obj0 = 0 ;
13775 char *kwnames[] = {
13776 (char *) "self", NULL
13777 };
13778
13779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13782 {
13783 PyThreadState* __tstate = wxPyBeginAllowThreads();
13784 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13785
13786 wxPyEndAllowThreads(__tstate);
13787 if (PyErr_Occurred()) SWIG_fail;
13788 }
13789 resultobj = result;
13790 return resultobj;
13791 fail:
13792 return NULL;
13793 }
13794
13795
13796 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *, PyObject *args, PyObject *kwargs) {
13797 PyObject *resultobj;
13798 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13799 wxFileTypeInfo *arg2 = 0 ;
13800 PyObject * obj0 = 0 ;
13801 PyObject * obj1 = 0 ;
13802 char *kwnames[] = {
13803 (char *) "self",(char *) "ft", NULL
13804 };
13805
13806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13809 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13810 SWIG_POINTER_EXCEPTION | 0)) == -1)
13811 SWIG_fail;
13812 if (arg2 == NULL) {
13813 PyErr_SetString(PyExc_TypeError,"null reference");
13814 SWIG_fail;
13815 }
13816 {
13817 PyThreadState* __tstate = wxPyBeginAllowThreads();
13818 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13819
13820 wxPyEndAllowThreads(__tstate);
13821 if (PyErr_Occurred()) SWIG_fail;
13822 }
13823 Py_INCREF(Py_None); resultobj = Py_None;
13824 return resultobj;
13825 fail:
13826 return NULL;
13827 }
13828
13829
13830 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *, PyObject *args, PyObject *kwargs) {
13831 PyObject *resultobj;
13832 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13833 wxFileTypeInfo *arg2 = 0 ;
13834 wxFileType *result;
13835 PyObject * obj0 = 0 ;
13836 PyObject * obj1 = 0 ;
13837 char *kwnames[] = {
13838 (char *) "self",(char *) "ftInfo", NULL
13839 };
13840
13841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13844 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13845 SWIG_POINTER_EXCEPTION | 0)) == -1)
13846 SWIG_fail;
13847 if (arg2 == NULL) {
13848 PyErr_SetString(PyExc_TypeError,"null reference");
13849 SWIG_fail;
13850 }
13851 {
13852 PyThreadState* __tstate = wxPyBeginAllowThreads();
13853 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13854
13855 wxPyEndAllowThreads(__tstate);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13859 return resultobj;
13860 fail:
13861 return NULL;
13862 }
13863
13864
13865 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *, PyObject *args, PyObject *kwargs) {
13866 PyObject *resultobj;
13867 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13868 wxFileType *arg2 = (wxFileType *) 0 ;
13869 bool result;
13870 PyObject * obj0 = 0 ;
13871 PyObject * obj1 = 0 ;
13872 char *kwnames[] = {
13873 (char *) "self",(char *) "ft", NULL
13874 };
13875
13876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13879 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13881 {
13882 PyThreadState* __tstate = wxPyBeginAllowThreads();
13883 result = (bool)(arg1)->Unassociate(arg2);
13884
13885 wxPyEndAllowThreads(__tstate);
13886 if (PyErr_Occurred()) SWIG_fail;
13887 }
13888 {
13889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13890 }
13891 return resultobj;
13892 fail:
13893 return NULL;
13894 }
13895
13896
13897 static PyObject *_wrap_delete_MimeTypesManager(PyObject *, PyObject *args, PyObject *kwargs) {
13898 PyObject *resultobj;
13899 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13900 PyObject * obj0 = 0 ;
13901 char *kwnames[] = {
13902 (char *) "self", NULL
13903 };
13904
13905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13908 {
13909 PyThreadState* __tstate = wxPyBeginAllowThreads();
13910 delete arg1;
13911
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 Py_INCREF(Py_None); resultobj = Py_None;
13916 return resultobj;
13917 fail:
13918 return NULL;
13919 }
13920
13921
13922 static PyObject * MimeTypesManager_swigregister(PyObject *, PyObject *args) {
13923 PyObject *obj;
13924 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13925 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13926 Py_INCREF(obj);
13927 return Py_BuildValue((char *)"");
13928 }
13929 static int _wrap_ART_TOOLBAR_set(PyObject *) {
13930 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13931 return 1;
13932 }
13933
13934
13935 static PyObject *_wrap_ART_TOOLBAR_get() {
13936 PyObject *pyobj;
13937
13938 {
13939 #if wxUSE_UNICODE
13940 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13941 #else
13942 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13943 #endif
13944 }
13945 return pyobj;
13946 }
13947
13948
13949 static int _wrap_ART_MENU_set(PyObject *) {
13950 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13951 return 1;
13952 }
13953
13954
13955 static PyObject *_wrap_ART_MENU_get() {
13956 PyObject *pyobj;
13957
13958 {
13959 #if wxUSE_UNICODE
13960 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13961 #else
13962 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13963 #endif
13964 }
13965 return pyobj;
13966 }
13967
13968
13969 static int _wrap_ART_FRAME_ICON_set(PyObject *) {
13970 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13971 return 1;
13972 }
13973
13974
13975 static PyObject *_wrap_ART_FRAME_ICON_get() {
13976 PyObject *pyobj;
13977
13978 {
13979 #if wxUSE_UNICODE
13980 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13981 #else
13982 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13983 #endif
13984 }
13985 return pyobj;
13986 }
13987
13988
13989 static int _wrap_ART_CMN_DIALOG_set(PyObject *) {
13990 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13991 return 1;
13992 }
13993
13994
13995 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13996 PyObject *pyobj;
13997
13998 {
13999 #if wxUSE_UNICODE
14000 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
14001 #else
14002 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
14003 #endif
14004 }
14005 return pyobj;
14006 }
14007
14008
14009 static int _wrap_ART_HELP_BROWSER_set(PyObject *) {
14010 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
14011 return 1;
14012 }
14013
14014
14015 static PyObject *_wrap_ART_HELP_BROWSER_get() {
14016 PyObject *pyobj;
14017
14018 {
14019 #if wxUSE_UNICODE
14020 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
14021 #else
14022 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
14023 #endif
14024 }
14025 return pyobj;
14026 }
14027
14028
14029 static int _wrap_ART_MESSAGE_BOX_set(PyObject *) {
14030 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
14031 return 1;
14032 }
14033
14034
14035 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
14036 PyObject *pyobj;
14037
14038 {
14039 #if wxUSE_UNICODE
14040 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14041 #else
14042 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
14043 #endif
14044 }
14045 return pyobj;
14046 }
14047
14048
14049 static int _wrap_ART_BUTTON_set(PyObject *) {
14050 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
14051 return 1;
14052 }
14053
14054
14055 static PyObject *_wrap_ART_BUTTON_get() {
14056 PyObject *pyobj;
14057
14058 {
14059 #if wxUSE_UNICODE
14060 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14061 #else
14062 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
14063 #endif
14064 }
14065 return pyobj;
14066 }
14067
14068
14069 static int _wrap_ART_OTHER_set(PyObject *) {
14070 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
14071 return 1;
14072 }
14073
14074
14075 static PyObject *_wrap_ART_OTHER_get() {
14076 PyObject *pyobj;
14077
14078 {
14079 #if wxUSE_UNICODE
14080 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14081 #else
14082 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
14083 #endif
14084 }
14085 return pyobj;
14086 }
14087
14088
14089 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *) {
14090 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
14091 return 1;
14092 }
14093
14094
14095 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
14096 PyObject *pyobj;
14097
14098 {
14099 #if wxUSE_UNICODE
14100 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14101 #else
14102 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
14103 #endif
14104 }
14105 return pyobj;
14106 }
14107
14108
14109 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *) {
14110 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
14111 return 1;
14112 }
14113
14114
14115 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
14116 PyObject *pyobj;
14117
14118 {
14119 #if wxUSE_UNICODE
14120 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14121 #else
14122 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
14123 #endif
14124 }
14125 return pyobj;
14126 }
14127
14128
14129 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *) {
14130 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
14131 return 1;
14132 }
14133
14134
14135 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
14136 PyObject *pyobj;
14137
14138 {
14139 #if wxUSE_UNICODE
14140 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14141 #else
14142 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
14143 #endif
14144 }
14145 return pyobj;
14146 }
14147
14148
14149 static int _wrap_ART_HELP_SETTINGS_set(PyObject *) {
14150 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
14151 return 1;
14152 }
14153
14154
14155 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
14156 PyObject *pyobj;
14157
14158 {
14159 #if wxUSE_UNICODE
14160 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14161 #else
14162 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
14163 #endif
14164 }
14165 return pyobj;
14166 }
14167
14168
14169 static int _wrap_ART_HELP_BOOK_set(PyObject *) {
14170 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
14171 return 1;
14172 }
14173
14174
14175 static PyObject *_wrap_ART_HELP_BOOK_get() {
14176 PyObject *pyobj;
14177
14178 {
14179 #if wxUSE_UNICODE
14180 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14181 #else
14182 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
14183 #endif
14184 }
14185 return pyobj;
14186 }
14187
14188
14189 static int _wrap_ART_HELP_FOLDER_set(PyObject *) {
14190 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
14191 return 1;
14192 }
14193
14194
14195 static PyObject *_wrap_ART_HELP_FOLDER_get() {
14196 PyObject *pyobj;
14197
14198 {
14199 #if wxUSE_UNICODE
14200 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14201 #else
14202 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
14203 #endif
14204 }
14205 return pyobj;
14206 }
14207
14208
14209 static int _wrap_ART_HELP_PAGE_set(PyObject *) {
14210 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
14211 return 1;
14212 }
14213
14214
14215 static PyObject *_wrap_ART_HELP_PAGE_get() {
14216 PyObject *pyobj;
14217
14218 {
14219 #if wxUSE_UNICODE
14220 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14221 #else
14222 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
14223 #endif
14224 }
14225 return pyobj;
14226 }
14227
14228
14229 static int _wrap_ART_GO_BACK_set(PyObject *) {
14230 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
14231 return 1;
14232 }
14233
14234
14235 static PyObject *_wrap_ART_GO_BACK_get() {
14236 PyObject *pyobj;
14237
14238 {
14239 #if wxUSE_UNICODE
14240 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14241 #else
14242 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
14243 #endif
14244 }
14245 return pyobj;
14246 }
14247
14248
14249 static int _wrap_ART_GO_FORWARD_set(PyObject *) {
14250 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
14251 return 1;
14252 }
14253
14254
14255 static PyObject *_wrap_ART_GO_FORWARD_get() {
14256 PyObject *pyobj;
14257
14258 {
14259 #if wxUSE_UNICODE
14260 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14261 #else
14262 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14263 #endif
14264 }
14265 return pyobj;
14266 }
14267
14268
14269 static int _wrap_ART_GO_UP_set(PyObject *) {
14270 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14271 return 1;
14272 }
14273
14274
14275 static PyObject *_wrap_ART_GO_UP_get() {
14276 PyObject *pyobj;
14277
14278 {
14279 #if wxUSE_UNICODE
14280 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14281 #else
14282 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14283 #endif
14284 }
14285 return pyobj;
14286 }
14287
14288
14289 static int _wrap_ART_GO_DOWN_set(PyObject *) {
14290 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14291 return 1;
14292 }
14293
14294
14295 static PyObject *_wrap_ART_GO_DOWN_get() {
14296 PyObject *pyobj;
14297
14298 {
14299 #if wxUSE_UNICODE
14300 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14301 #else
14302 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14303 #endif
14304 }
14305 return pyobj;
14306 }
14307
14308
14309 static int _wrap_ART_GO_TO_PARENT_set(PyObject *) {
14310 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14311 return 1;
14312 }
14313
14314
14315 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14316 PyObject *pyobj;
14317
14318 {
14319 #if wxUSE_UNICODE
14320 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14321 #else
14322 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14323 #endif
14324 }
14325 return pyobj;
14326 }
14327
14328
14329 static int _wrap_ART_GO_HOME_set(PyObject *) {
14330 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14331 return 1;
14332 }
14333
14334
14335 static PyObject *_wrap_ART_GO_HOME_get() {
14336 PyObject *pyobj;
14337
14338 {
14339 #if wxUSE_UNICODE
14340 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14341 #else
14342 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14343 #endif
14344 }
14345 return pyobj;
14346 }
14347
14348
14349 static int _wrap_ART_FILE_OPEN_set(PyObject *) {
14350 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14351 return 1;
14352 }
14353
14354
14355 static PyObject *_wrap_ART_FILE_OPEN_get() {
14356 PyObject *pyobj;
14357
14358 {
14359 #if wxUSE_UNICODE
14360 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14361 #else
14362 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14363 #endif
14364 }
14365 return pyobj;
14366 }
14367
14368
14369 static int _wrap_ART_PRINT_set(PyObject *) {
14370 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14371 return 1;
14372 }
14373
14374
14375 static PyObject *_wrap_ART_PRINT_get() {
14376 PyObject *pyobj;
14377
14378 {
14379 #if wxUSE_UNICODE
14380 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14381 #else
14382 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14383 #endif
14384 }
14385 return pyobj;
14386 }
14387
14388
14389 static int _wrap_ART_HELP_set(PyObject *) {
14390 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14391 return 1;
14392 }
14393
14394
14395 static PyObject *_wrap_ART_HELP_get() {
14396 PyObject *pyobj;
14397
14398 {
14399 #if wxUSE_UNICODE
14400 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14401 #else
14402 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14403 #endif
14404 }
14405 return pyobj;
14406 }
14407
14408
14409 static int _wrap_ART_TIP_set(PyObject *) {
14410 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14411 return 1;
14412 }
14413
14414
14415 static PyObject *_wrap_ART_TIP_get() {
14416 PyObject *pyobj;
14417
14418 {
14419 #if wxUSE_UNICODE
14420 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14421 #else
14422 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14423 #endif
14424 }
14425 return pyobj;
14426 }
14427
14428
14429 static int _wrap_ART_REPORT_VIEW_set(PyObject *) {
14430 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14431 return 1;
14432 }
14433
14434
14435 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14436 PyObject *pyobj;
14437
14438 {
14439 #if wxUSE_UNICODE
14440 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14441 #else
14442 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14443 #endif
14444 }
14445 return pyobj;
14446 }
14447
14448
14449 static int _wrap_ART_LIST_VIEW_set(PyObject *) {
14450 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14451 return 1;
14452 }
14453
14454
14455 static PyObject *_wrap_ART_LIST_VIEW_get() {
14456 PyObject *pyobj;
14457
14458 {
14459 #if wxUSE_UNICODE
14460 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14461 #else
14462 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14463 #endif
14464 }
14465 return pyobj;
14466 }
14467
14468
14469 static int _wrap_ART_NEW_DIR_set(PyObject *) {
14470 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14471 return 1;
14472 }
14473
14474
14475 static PyObject *_wrap_ART_NEW_DIR_get() {
14476 PyObject *pyobj;
14477
14478 {
14479 #if wxUSE_UNICODE
14480 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14481 #else
14482 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14483 #endif
14484 }
14485 return pyobj;
14486 }
14487
14488
14489 static int _wrap_ART_FOLDER_set(PyObject *) {
14490 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14491 return 1;
14492 }
14493
14494
14495 static PyObject *_wrap_ART_FOLDER_get() {
14496 PyObject *pyobj;
14497
14498 {
14499 #if wxUSE_UNICODE
14500 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14501 #else
14502 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14503 #endif
14504 }
14505 return pyobj;
14506 }
14507
14508
14509 static int _wrap_ART_GO_DIR_UP_set(PyObject *) {
14510 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14511 return 1;
14512 }
14513
14514
14515 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14516 PyObject *pyobj;
14517
14518 {
14519 #if wxUSE_UNICODE
14520 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14521 #else
14522 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14523 #endif
14524 }
14525 return pyobj;
14526 }
14527
14528
14529 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *) {
14530 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14531 return 1;
14532 }
14533
14534
14535 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14536 PyObject *pyobj;
14537
14538 {
14539 #if wxUSE_UNICODE
14540 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14541 #else
14542 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14543 #endif
14544 }
14545 return pyobj;
14546 }
14547
14548
14549 static int _wrap_ART_NORMAL_FILE_set(PyObject *) {
14550 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14551 return 1;
14552 }
14553
14554
14555 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14556 PyObject *pyobj;
14557
14558 {
14559 #if wxUSE_UNICODE
14560 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14561 #else
14562 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14563 #endif
14564 }
14565 return pyobj;
14566 }
14567
14568
14569 static int _wrap_ART_TICK_MARK_set(PyObject *) {
14570 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14571 return 1;
14572 }
14573
14574
14575 static PyObject *_wrap_ART_TICK_MARK_get() {
14576 PyObject *pyobj;
14577
14578 {
14579 #if wxUSE_UNICODE
14580 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14581 #else
14582 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14583 #endif
14584 }
14585 return pyobj;
14586 }
14587
14588
14589 static int _wrap_ART_CROSS_MARK_set(PyObject *) {
14590 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14591 return 1;
14592 }
14593
14594
14595 static PyObject *_wrap_ART_CROSS_MARK_get() {
14596 PyObject *pyobj;
14597
14598 {
14599 #if wxUSE_UNICODE
14600 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14601 #else
14602 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14603 #endif
14604 }
14605 return pyobj;
14606 }
14607
14608
14609 static int _wrap_ART_ERROR_set(PyObject *) {
14610 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14611 return 1;
14612 }
14613
14614
14615 static PyObject *_wrap_ART_ERROR_get() {
14616 PyObject *pyobj;
14617
14618 {
14619 #if wxUSE_UNICODE
14620 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14621 #else
14622 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14623 #endif
14624 }
14625 return pyobj;
14626 }
14627
14628
14629 static int _wrap_ART_QUESTION_set(PyObject *) {
14630 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14631 return 1;
14632 }
14633
14634
14635 static PyObject *_wrap_ART_QUESTION_get() {
14636 PyObject *pyobj;
14637
14638 {
14639 #if wxUSE_UNICODE
14640 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14641 #else
14642 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14643 #endif
14644 }
14645 return pyobj;
14646 }
14647
14648
14649 static int _wrap_ART_WARNING_set(PyObject *) {
14650 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14651 return 1;
14652 }
14653
14654
14655 static PyObject *_wrap_ART_WARNING_get() {
14656 PyObject *pyobj;
14657
14658 {
14659 #if wxUSE_UNICODE
14660 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14661 #else
14662 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14663 #endif
14664 }
14665 return pyobj;
14666 }
14667
14668
14669 static int _wrap_ART_INFORMATION_set(PyObject *) {
14670 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14671 return 1;
14672 }
14673
14674
14675 static PyObject *_wrap_ART_INFORMATION_get() {
14676 PyObject *pyobj;
14677
14678 {
14679 #if wxUSE_UNICODE
14680 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14681 #else
14682 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14683 #endif
14684 }
14685 return pyobj;
14686 }
14687
14688
14689 static int _wrap_ART_MISSING_IMAGE_set(PyObject *) {
14690 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14691 return 1;
14692 }
14693
14694
14695 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14696 PyObject *pyobj;
14697
14698 {
14699 #if wxUSE_UNICODE
14700 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14701 #else
14702 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14703 #endif
14704 }
14705 return pyobj;
14706 }
14707
14708
14709 static PyObject *_wrap_new_ArtProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14710 PyObject *resultobj;
14711 wxPyArtProvider *result;
14712 char *kwnames[] = {
14713 NULL
14714 };
14715
14716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14717 {
14718 if (!wxPyCheckForApp()) SWIG_fail;
14719 PyThreadState* __tstate = wxPyBeginAllowThreads();
14720 result = (wxPyArtProvider *)new wxPyArtProvider();
14721
14722 wxPyEndAllowThreads(__tstate);
14723 if (PyErr_Occurred()) SWIG_fail;
14724 }
14725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14726 return resultobj;
14727 fail:
14728 return NULL;
14729 }
14730
14731
14732 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
14733 PyObject *resultobj;
14734 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14735 PyObject *arg2 = (PyObject *) 0 ;
14736 PyObject *arg3 = (PyObject *) 0 ;
14737 PyObject * obj0 = 0 ;
14738 PyObject * obj1 = 0 ;
14739 PyObject * obj2 = 0 ;
14740 char *kwnames[] = {
14741 (char *) "self",(char *) "self",(char *) "_class", NULL
14742 };
14743
14744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14747 arg2 = obj1;
14748 arg3 = obj2;
14749 {
14750 PyThreadState* __tstate = wxPyBeginAllowThreads();
14751 (arg1)->_setCallbackInfo(arg2,arg3);
14752
14753 wxPyEndAllowThreads(__tstate);
14754 if (PyErr_Occurred()) SWIG_fail;
14755 }
14756 Py_INCREF(Py_None); resultobj = Py_None;
14757 return resultobj;
14758 fail:
14759 return NULL;
14760 }
14761
14762
14763 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14764 PyObject *resultobj;
14765 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14766 PyObject * obj0 = 0 ;
14767 char *kwnames[] = {
14768 (char *) "provider", NULL
14769 };
14770
14771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 wxPyArtProvider::PushProvider(arg1);
14777
14778 wxPyEndAllowThreads(__tstate);
14779 if (PyErr_Occurred()) SWIG_fail;
14780 }
14781 Py_INCREF(Py_None); resultobj = Py_None;
14782 return resultobj;
14783 fail:
14784 return NULL;
14785 }
14786
14787
14788 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14789 PyObject *resultobj;
14790 bool result;
14791 char *kwnames[] = {
14792 NULL
14793 };
14794
14795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14796 {
14797 PyThreadState* __tstate = wxPyBeginAllowThreads();
14798 result = (bool)wxPyArtProvider::PopProvider();
14799
14800 wxPyEndAllowThreads(__tstate);
14801 if (PyErr_Occurred()) SWIG_fail;
14802 }
14803 {
14804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14805 }
14806 return resultobj;
14807 fail:
14808 return NULL;
14809 }
14810
14811
14812 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *, PyObject *args, PyObject *kwargs) {
14813 PyObject *resultobj;
14814 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14815 bool result;
14816 PyObject * obj0 = 0 ;
14817 char *kwnames[] = {
14818 (char *) "provider", NULL
14819 };
14820
14821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14824 {
14825 PyThreadState* __tstate = wxPyBeginAllowThreads();
14826 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14827
14828 wxPyEndAllowThreads(__tstate);
14829 if (PyErr_Occurred()) SWIG_fail;
14830 }
14831 {
14832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14833 }
14834 return resultobj;
14835 fail:
14836 return NULL;
14837 }
14838
14839
14840 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
14841 PyObject *resultobj;
14842 wxString *arg1 = 0 ;
14843 wxString const &arg2_defvalue = wxPyART_OTHER ;
14844 wxString *arg2 = (wxString *) &arg2_defvalue ;
14845 wxSize const &arg3_defvalue = wxDefaultSize ;
14846 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14847 wxBitmap result;
14848 bool temp1 = false ;
14849 bool temp2 = false ;
14850 wxSize temp3 ;
14851 PyObject * obj0 = 0 ;
14852 PyObject * obj1 = 0 ;
14853 PyObject * obj2 = 0 ;
14854 char *kwnames[] = {
14855 (char *) "id",(char *) "client",(char *) "size", NULL
14856 };
14857
14858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14859 {
14860 arg1 = wxString_in_helper(obj0);
14861 if (arg1 == NULL) SWIG_fail;
14862 temp1 = true;
14863 }
14864 if (obj1) {
14865 {
14866 arg2 = wxString_in_helper(obj1);
14867 if (arg2 == NULL) SWIG_fail;
14868 temp2 = true;
14869 }
14870 }
14871 if (obj2) {
14872 {
14873 arg3 = &temp3;
14874 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14875 }
14876 }
14877 {
14878 if (!wxPyCheckForApp()) SWIG_fail;
14879 PyThreadState* __tstate = wxPyBeginAllowThreads();
14880 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14881
14882 wxPyEndAllowThreads(__tstate);
14883 if (PyErr_Occurred()) SWIG_fail;
14884 }
14885 {
14886 wxBitmap * resultptr;
14887 resultptr = new wxBitmap((wxBitmap &) result);
14888 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14889 }
14890 {
14891 if (temp1)
14892 delete arg1;
14893 }
14894 {
14895 if (temp2)
14896 delete arg2;
14897 }
14898 return resultobj;
14899 fail:
14900 {
14901 if (temp1)
14902 delete arg1;
14903 }
14904 {
14905 if (temp2)
14906 delete arg2;
14907 }
14908 return NULL;
14909 }
14910
14911
14912 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
14913 PyObject *resultobj;
14914 wxString *arg1 = 0 ;
14915 wxString const &arg2_defvalue = wxPyART_OTHER ;
14916 wxString *arg2 = (wxString *) &arg2_defvalue ;
14917 wxSize const &arg3_defvalue = wxDefaultSize ;
14918 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14919 wxIcon result;
14920 bool temp1 = false ;
14921 bool temp2 = false ;
14922 wxSize temp3 ;
14923 PyObject * obj0 = 0 ;
14924 PyObject * obj1 = 0 ;
14925 PyObject * obj2 = 0 ;
14926 char *kwnames[] = {
14927 (char *) "id",(char *) "client",(char *) "size", NULL
14928 };
14929
14930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14931 {
14932 arg1 = wxString_in_helper(obj0);
14933 if (arg1 == NULL) SWIG_fail;
14934 temp1 = true;
14935 }
14936 if (obj1) {
14937 {
14938 arg2 = wxString_in_helper(obj1);
14939 if (arg2 == NULL) SWIG_fail;
14940 temp2 = true;
14941 }
14942 }
14943 if (obj2) {
14944 {
14945 arg3 = &temp3;
14946 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14947 }
14948 }
14949 {
14950 if (!wxPyCheckForApp()) SWIG_fail;
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14953
14954 wxPyEndAllowThreads(__tstate);
14955 if (PyErr_Occurred()) SWIG_fail;
14956 }
14957 {
14958 wxIcon * resultptr;
14959 resultptr = new wxIcon((wxIcon &) result);
14960 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14961 }
14962 {
14963 if (temp1)
14964 delete arg1;
14965 }
14966 {
14967 if (temp2)
14968 delete arg2;
14969 }
14970 return resultobj;
14971 fail:
14972 {
14973 if (temp1)
14974 delete arg1;
14975 }
14976 {
14977 if (temp2)
14978 delete arg2;
14979 }
14980 return NULL;
14981 }
14982
14983
14984 static PyObject *_wrap_ArtProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
14985 PyObject *resultobj;
14986 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14987 PyObject * obj0 = 0 ;
14988 char *kwnames[] = {
14989 (char *) "self", NULL
14990 };
14991
14992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14995 {
14996 PyThreadState* __tstate = wxPyBeginAllowThreads();
14997 wxPyArtProvider_Destroy(arg1);
14998
14999 wxPyEndAllowThreads(__tstate);
15000 if (PyErr_Occurred()) SWIG_fail;
15001 }
15002 Py_INCREF(Py_None); resultobj = Py_None;
15003 return resultobj;
15004 fail:
15005 return NULL;
15006 }
15007
15008
15009 static PyObject * ArtProvider_swigregister(PyObject *, PyObject *args) {
15010 PyObject *obj;
15011 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15012 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
15013 Py_INCREF(obj);
15014 return Py_BuildValue((char *)"");
15015 }
15016 static PyObject *_wrap_delete_ConfigBase(PyObject *, PyObject *args, PyObject *kwargs) {
15017 PyObject *resultobj;
15018 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15019 PyObject * obj0 = 0 ;
15020 char *kwnames[] = {
15021 (char *) "self", NULL
15022 };
15023
15024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
15025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15027 {
15028 PyThreadState* __tstate = wxPyBeginAllowThreads();
15029 delete arg1;
15030
15031 wxPyEndAllowThreads(__tstate);
15032 if (PyErr_Occurred()) SWIG_fail;
15033 }
15034 Py_INCREF(Py_None); resultobj = Py_None;
15035 return resultobj;
15036 fail:
15037 return NULL;
15038 }
15039
15040
15041 static PyObject *_wrap_ConfigBase_Set(PyObject *, PyObject *args, PyObject *kwargs) {
15042 PyObject *resultobj;
15043 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15044 wxConfigBase *result;
15045 PyObject * obj0 = 0 ;
15046 char *kwnames[] = {
15047 (char *) "config", NULL
15048 };
15049
15050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
15051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15053 {
15054 PyThreadState* __tstate = wxPyBeginAllowThreads();
15055 result = (wxConfigBase *)wxConfigBase::Set(arg1);
15056
15057 wxPyEndAllowThreads(__tstate);
15058 if (PyErr_Occurred()) SWIG_fail;
15059 }
15060 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15061 return resultobj;
15062 fail:
15063 return NULL;
15064 }
15065
15066
15067 static PyObject *_wrap_ConfigBase_Get(PyObject *, PyObject *args, PyObject *kwargs) {
15068 PyObject *resultobj;
15069 bool arg1 = (bool) true ;
15070 wxConfigBase *result;
15071 PyObject * obj0 = 0 ;
15072 char *kwnames[] = {
15073 (char *) "createOnDemand", NULL
15074 };
15075
15076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
15077 if (obj0) {
15078 arg1 = (bool)SWIG_As_bool(obj0);
15079 if (PyErr_Occurred()) SWIG_fail;
15080 }
15081 {
15082 PyThreadState* __tstate = wxPyBeginAllowThreads();
15083 result = (wxConfigBase *)wxConfigBase::Get(arg1);
15084
15085 wxPyEndAllowThreads(__tstate);
15086 if (PyErr_Occurred()) SWIG_fail;
15087 }
15088 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15089 return resultobj;
15090 fail:
15091 return NULL;
15092 }
15093
15094
15095 static PyObject *_wrap_ConfigBase_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15096 PyObject *resultobj;
15097 wxConfigBase *result;
15098 char *kwnames[] = {
15099 NULL
15100 };
15101
15102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
15103 {
15104 PyThreadState* __tstate = wxPyBeginAllowThreads();
15105 result = (wxConfigBase *)wxConfigBase::Create();
15106
15107 wxPyEndAllowThreads(__tstate);
15108 if (PyErr_Occurred()) SWIG_fail;
15109 }
15110 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
15111 return resultobj;
15112 fail:
15113 return NULL;
15114 }
15115
15116
15117 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *, PyObject *args, PyObject *kwargs) {
15118 PyObject *resultobj;
15119 char *kwnames[] = {
15120 NULL
15121 };
15122
15123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
15124 {
15125 PyThreadState* __tstate = wxPyBeginAllowThreads();
15126 wxConfigBase::DontCreateOnDemand();
15127
15128 wxPyEndAllowThreads(__tstate);
15129 if (PyErr_Occurred()) SWIG_fail;
15130 }
15131 Py_INCREF(Py_None); resultobj = Py_None;
15132 return resultobj;
15133 fail:
15134 return NULL;
15135 }
15136
15137
15138 static PyObject *_wrap_ConfigBase_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
15139 PyObject *resultobj;
15140 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15141 wxString *arg2 = 0 ;
15142 bool temp2 = false ;
15143 PyObject * obj0 = 0 ;
15144 PyObject * obj1 = 0 ;
15145 char *kwnames[] = {
15146 (char *) "self",(char *) "path", NULL
15147 };
15148
15149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
15150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15152 {
15153 arg2 = wxString_in_helper(obj1);
15154 if (arg2 == NULL) SWIG_fail;
15155 temp2 = true;
15156 }
15157 {
15158 PyThreadState* __tstate = wxPyBeginAllowThreads();
15159 (arg1)->SetPath((wxString const &)*arg2);
15160
15161 wxPyEndAllowThreads(__tstate);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
15164 Py_INCREF(Py_None); resultobj = Py_None;
15165 {
15166 if (temp2)
15167 delete arg2;
15168 }
15169 return resultobj;
15170 fail:
15171 {
15172 if (temp2)
15173 delete arg2;
15174 }
15175 return NULL;
15176 }
15177
15178
15179 static PyObject *_wrap_ConfigBase_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
15180 PyObject *resultobj;
15181 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15182 wxString *result;
15183 PyObject * obj0 = 0 ;
15184 char *kwnames[] = {
15185 (char *) "self", NULL
15186 };
15187
15188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
15189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 {
15194 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
15195 result = (wxString *) &_result_ref;
15196 }
15197
15198 wxPyEndAllowThreads(__tstate);
15199 if (PyErr_Occurred()) SWIG_fail;
15200 }
15201 {
15202 #if wxUSE_UNICODE
15203 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15204 #else
15205 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15206 #endif
15207 }
15208 return resultobj;
15209 fail:
15210 return NULL;
15211 }
15212
15213
15214 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15215 PyObject *resultobj;
15216 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15217 PyObject *result;
15218 PyObject * obj0 = 0 ;
15219 char *kwnames[] = {
15220 (char *) "self", NULL
15221 };
15222
15223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
15224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15226 {
15227 PyThreadState* __tstate = wxPyBeginAllowThreads();
15228 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
15229
15230 wxPyEndAllowThreads(__tstate);
15231 if (PyErr_Occurred()) SWIG_fail;
15232 }
15233 resultobj = result;
15234 return resultobj;
15235 fail:
15236 return NULL;
15237 }
15238
15239
15240 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15241 PyObject *resultobj;
15242 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15243 long arg2 ;
15244 PyObject *result;
15245 PyObject * obj0 = 0 ;
15246 PyObject * obj1 = 0 ;
15247 char *kwnames[] = {
15248 (char *) "self",(char *) "index", NULL
15249 };
15250
15251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
15252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15254 arg2 = (long)SWIG_As_long(obj1);
15255 if (PyErr_Occurred()) SWIG_fail;
15256 {
15257 PyThreadState* __tstate = wxPyBeginAllowThreads();
15258 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15259
15260 wxPyEndAllowThreads(__tstate);
15261 if (PyErr_Occurred()) SWIG_fail;
15262 }
15263 resultobj = result;
15264 return resultobj;
15265 fail:
15266 return NULL;
15267 }
15268
15269
15270 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15271 PyObject *resultobj;
15272 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15273 PyObject *result;
15274 PyObject * obj0 = 0 ;
15275 char *kwnames[] = {
15276 (char *) "self", NULL
15277 };
15278
15279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15282 {
15283 PyThreadState* __tstate = wxPyBeginAllowThreads();
15284 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15285
15286 wxPyEndAllowThreads(__tstate);
15287 if (PyErr_Occurred()) SWIG_fail;
15288 }
15289 resultobj = result;
15290 return resultobj;
15291 fail:
15292 return NULL;
15293 }
15294
15295
15296 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15297 PyObject *resultobj;
15298 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15299 long arg2 ;
15300 PyObject *result;
15301 PyObject * obj0 = 0 ;
15302 PyObject * obj1 = 0 ;
15303 char *kwnames[] = {
15304 (char *) "self",(char *) "index", NULL
15305 };
15306
15307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15310 arg2 = (long)SWIG_As_long(obj1);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 {
15313 PyThreadState* __tstate = wxPyBeginAllowThreads();
15314 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15315
15316 wxPyEndAllowThreads(__tstate);
15317 if (PyErr_Occurred()) SWIG_fail;
15318 }
15319 resultobj = result;
15320 return resultobj;
15321 fail:
15322 return NULL;
15323 }
15324
15325
15326 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *, PyObject *args, PyObject *kwargs) {
15327 PyObject *resultobj;
15328 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15329 bool arg2 = (bool) false ;
15330 size_t result;
15331 PyObject * obj0 = 0 ;
15332 PyObject * obj1 = 0 ;
15333 char *kwnames[] = {
15334 (char *) "self",(char *) "recursive", NULL
15335 };
15336
15337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15340 if (obj1) {
15341 arg2 = (bool)SWIG_As_bool(obj1);
15342 if (PyErr_Occurred()) SWIG_fail;
15343 }
15344 {
15345 PyThreadState* __tstate = wxPyBeginAllowThreads();
15346 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15347
15348 wxPyEndAllowThreads(__tstate);
15349 if (PyErr_Occurred()) SWIG_fail;
15350 }
15351 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
15352 return resultobj;
15353 fail:
15354 return NULL;
15355 }
15356
15357
15358 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *, PyObject *args, PyObject *kwargs) {
15359 PyObject *resultobj;
15360 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15361 bool arg2 = (bool) false ;
15362 size_t result;
15363 PyObject * obj0 = 0 ;
15364 PyObject * obj1 = 0 ;
15365 char *kwnames[] = {
15366 (char *) "self",(char *) "recursive", NULL
15367 };
15368
15369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15372 if (obj1) {
15373 arg2 = (bool)SWIG_As_bool(obj1);
15374 if (PyErr_Occurred()) SWIG_fail;
15375 }
15376 {
15377 PyThreadState* __tstate = wxPyBeginAllowThreads();
15378 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15379
15380 wxPyEndAllowThreads(__tstate);
15381 if (PyErr_Occurred()) SWIG_fail;
15382 }
15383 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
15384 return resultobj;
15385 fail:
15386 return NULL;
15387 }
15388
15389
15390 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *, PyObject *args, PyObject *kwargs) {
15391 PyObject *resultobj;
15392 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15393 wxString *arg2 = 0 ;
15394 bool result;
15395 bool temp2 = false ;
15396 PyObject * obj0 = 0 ;
15397 PyObject * obj1 = 0 ;
15398 char *kwnames[] = {
15399 (char *) "self",(char *) "name", NULL
15400 };
15401
15402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15405 {
15406 arg2 = wxString_in_helper(obj1);
15407 if (arg2 == NULL) SWIG_fail;
15408 temp2 = true;
15409 }
15410 {
15411 PyThreadState* __tstate = wxPyBeginAllowThreads();
15412 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15413
15414 wxPyEndAllowThreads(__tstate);
15415 if (PyErr_Occurred()) SWIG_fail;
15416 }
15417 {
15418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15419 }
15420 {
15421 if (temp2)
15422 delete arg2;
15423 }
15424 return resultobj;
15425 fail:
15426 {
15427 if (temp2)
15428 delete arg2;
15429 }
15430 return NULL;
15431 }
15432
15433
15434 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *, PyObject *args, PyObject *kwargs) {
15435 PyObject *resultobj;
15436 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15437 wxString *arg2 = 0 ;
15438 bool result;
15439 bool temp2 = false ;
15440 PyObject * obj0 = 0 ;
15441 PyObject * obj1 = 0 ;
15442 char *kwnames[] = {
15443 (char *) "self",(char *) "name", NULL
15444 };
15445
15446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15449 {
15450 arg2 = wxString_in_helper(obj1);
15451 if (arg2 == NULL) SWIG_fail;
15452 temp2 = true;
15453 }
15454 {
15455 PyThreadState* __tstate = wxPyBeginAllowThreads();
15456 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15457
15458 wxPyEndAllowThreads(__tstate);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 {
15462 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15463 }
15464 {
15465 if (temp2)
15466 delete arg2;
15467 }
15468 return resultobj;
15469 fail:
15470 {
15471 if (temp2)
15472 delete arg2;
15473 }
15474 return NULL;
15475 }
15476
15477
15478 static PyObject *_wrap_ConfigBase_Exists(PyObject *, PyObject *args, PyObject *kwargs) {
15479 PyObject *resultobj;
15480 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15481 wxString *arg2 = 0 ;
15482 bool result;
15483 bool temp2 = false ;
15484 PyObject * obj0 = 0 ;
15485 PyObject * obj1 = 0 ;
15486 char *kwnames[] = {
15487 (char *) "self",(char *) "name", NULL
15488 };
15489
15490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15493 {
15494 arg2 = wxString_in_helper(obj1);
15495 if (arg2 == NULL) SWIG_fail;
15496 temp2 = true;
15497 }
15498 {
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15501
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 {
15506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15507 }
15508 {
15509 if (temp2)
15510 delete arg2;
15511 }
15512 return resultobj;
15513 fail:
15514 {
15515 if (temp2)
15516 delete arg2;
15517 }
15518 return NULL;
15519 }
15520
15521
15522 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *, PyObject *args, PyObject *kwargs) {
15523 PyObject *resultobj;
15524 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15525 wxString *arg2 = 0 ;
15526 int result;
15527 bool temp2 = false ;
15528 PyObject * obj0 = 0 ;
15529 PyObject * obj1 = 0 ;
15530 char *kwnames[] = {
15531 (char *) "self",(char *) "name", NULL
15532 };
15533
15534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15537 {
15538 arg2 = wxString_in_helper(obj1);
15539 if (arg2 == NULL) SWIG_fail;
15540 temp2 = true;
15541 }
15542 {
15543 PyThreadState* __tstate = wxPyBeginAllowThreads();
15544 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15545
15546 wxPyEndAllowThreads(__tstate);
15547 if (PyErr_Occurred()) SWIG_fail;
15548 }
15549 resultobj = SWIG_From_int((int)result);
15550 {
15551 if (temp2)
15552 delete arg2;
15553 }
15554 return resultobj;
15555 fail:
15556 {
15557 if (temp2)
15558 delete arg2;
15559 }
15560 return NULL;
15561 }
15562
15563
15564 static PyObject *_wrap_ConfigBase_Read(PyObject *, PyObject *args, PyObject *kwargs) {
15565 PyObject *resultobj;
15566 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15567 wxString *arg2 = 0 ;
15568 wxString const &arg3_defvalue = wxPyEmptyString ;
15569 wxString *arg3 = (wxString *) &arg3_defvalue ;
15570 wxString result;
15571 bool temp2 = false ;
15572 bool temp3 = false ;
15573 PyObject * obj0 = 0 ;
15574 PyObject * obj1 = 0 ;
15575 PyObject * obj2 = 0 ;
15576 char *kwnames[] = {
15577 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15578 };
15579
15580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15583 {
15584 arg2 = wxString_in_helper(obj1);
15585 if (arg2 == NULL) SWIG_fail;
15586 temp2 = true;
15587 }
15588 if (obj2) {
15589 {
15590 arg3 = wxString_in_helper(obj2);
15591 if (arg3 == NULL) SWIG_fail;
15592 temp3 = true;
15593 }
15594 }
15595 {
15596 PyThreadState* __tstate = wxPyBeginAllowThreads();
15597 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15598
15599 wxPyEndAllowThreads(__tstate);
15600 if (PyErr_Occurred()) SWIG_fail;
15601 }
15602 {
15603 #if wxUSE_UNICODE
15604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15605 #else
15606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15607 #endif
15608 }
15609 {
15610 if (temp2)
15611 delete arg2;
15612 }
15613 {
15614 if (temp3)
15615 delete arg3;
15616 }
15617 return resultobj;
15618 fail:
15619 {
15620 if (temp2)
15621 delete arg2;
15622 }
15623 {
15624 if (temp3)
15625 delete arg3;
15626 }
15627 return NULL;
15628 }
15629
15630
15631 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *, PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj;
15633 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15634 wxString *arg2 = 0 ;
15635 long arg3 = (long) 0 ;
15636 long result;
15637 bool temp2 = false ;
15638 PyObject * obj0 = 0 ;
15639 PyObject * obj1 = 0 ;
15640 PyObject * obj2 = 0 ;
15641 char *kwnames[] = {
15642 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15643 };
15644
15645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15648 {
15649 arg2 = wxString_in_helper(obj1);
15650 if (arg2 == NULL) SWIG_fail;
15651 temp2 = true;
15652 }
15653 if (obj2) {
15654 arg3 = (long)SWIG_As_long(obj2);
15655 if (PyErr_Occurred()) SWIG_fail;
15656 }
15657 {
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15660
15661 wxPyEndAllowThreads(__tstate);
15662 if (PyErr_Occurred()) SWIG_fail;
15663 }
15664 resultobj = SWIG_From_long((long)result);
15665 {
15666 if (temp2)
15667 delete arg2;
15668 }
15669 return resultobj;
15670 fail:
15671 {
15672 if (temp2)
15673 delete arg2;
15674 }
15675 return NULL;
15676 }
15677
15678
15679 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15680 PyObject *resultobj;
15681 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15682 wxString *arg2 = 0 ;
15683 double arg3 = (double) 0.0 ;
15684 double result;
15685 bool temp2 = false ;
15686 PyObject * obj0 = 0 ;
15687 PyObject * obj1 = 0 ;
15688 PyObject * obj2 = 0 ;
15689 char *kwnames[] = {
15690 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15691 };
15692
15693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15696 {
15697 arg2 = wxString_in_helper(obj1);
15698 if (arg2 == NULL) SWIG_fail;
15699 temp2 = true;
15700 }
15701 if (obj2) {
15702 arg3 = (double)SWIG_As_double(obj2);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 {
15706 PyThreadState* __tstate = wxPyBeginAllowThreads();
15707 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15708
15709 wxPyEndAllowThreads(__tstate);
15710 if (PyErr_Occurred()) SWIG_fail;
15711 }
15712 resultobj = SWIG_From_double((double)result);
15713 {
15714 if (temp2)
15715 delete arg2;
15716 }
15717 return resultobj;
15718 fail:
15719 {
15720 if (temp2)
15721 delete arg2;
15722 }
15723 return NULL;
15724 }
15725
15726
15727 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *, PyObject *args, PyObject *kwargs) {
15728 PyObject *resultobj;
15729 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15730 wxString *arg2 = 0 ;
15731 bool arg3 = (bool) false ;
15732 bool result;
15733 bool temp2 = false ;
15734 PyObject * obj0 = 0 ;
15735 PyObject * obj1 = 0 ;
15736 PyObject * obj2 = 0 ;
15737 char *kwnames[] = {
15738 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15739 };
15740
15741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15744 {
15745 arg2 = wxString_in_helper(obj1);
15746 if (arg2 == NULL) SWIG_fail;
15747 temp2 = true;
15748 }
15749 if (obj2) {
15750 arg3 = (bool)SWIG_As_bool(obj2);
15751 if (PyErr_Occurred()) SWIG_fail;
15752 }
15753 {
15754 PyThreadState* __tstate = wxPyBeginAllowThreads();
15755 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15756
15757 wxPyEndAllowThreads(__tstate);
15758 if (PyErr_Occurred()) SWIG_fail;
15759 }
15760 {
15761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15762 }
15763 {
15764 if (temp2)
15765 delete arg2;
15766 }
15767 return resultobj;
15768 fail:
15769 {
15770 if (temp2)
15771 delete arg2;
15772 }
15773 return NULL;
15774 }
15775
15776
15777 static PyObject *_wrap_ConfigBase_Write(PyObject *, PyObject *args, PyObject *kwargs) {
15778 PyObject *resultobj;
15779 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15780 wxString *arg2 = 0 ;
15781 wxString *arg3 = 0 ;
15782 bool result;
15783 bool temp2 = false ;
15784 bool temp3 = false ;
15785 PyObject * obj0 = 0 ;
15786 PyObject * obj1 = 0 ;
15787 PyObject * obj2 = 0 ;
15788 char *kwnames[] = {
15789 (char *) "self",(char *) "key",(char *) "value", NULL
15790 };
15791
15792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15795 {
15796 arg2 = wxString_in_helper(obj1);
15797 if (arg2 == NULL) SWIG_fail;
15798 temp2 = true;
15799 }
15800 {
15801 arg3 = wxString_in_helper(obj2);
15802 if (arg3 == NULL) SWIG_fail;
15803 temp3 = true;
15804 }
15805 {
15806 PyThreadState* __tstate = wxPyBeginAllowThreads();
15807 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15808
15809 wxPyEndAllowThreads(__tstate);
15810 if (PyErr_Occurred()) SWIG_fail;
15811 }
15812 {
15813 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15814 }
15815 {
15816 if (temp2)
15817 delete arg2;
15818 }
15819 {
15820 if (temp3)
15821 delete arg3;
15822 }
15823 return resultobj;
15824 fail:
15825 {
15826 if (temp2)
15827 delete arg2;
15828 }
15829 {
15830 if (temp3)
15831 delete arg3;
15832 }
15833 return NULL;
15834 }
15835
15836
15837 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *, PyObject *args, PyObject *kwargs) {
15838 PyObject *resultobj;
15839 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15840 wxString *arg2 = 0 ;
15841 long arg3 ;
15842 bool result;
15843 bool temp2 = false ;
15844 PyObject * obj0 = 0 ;
15845 PyObject * obj1 = 0 ;
15846 PyObject * obj2 = 0 ;
15847 char *kwnames[] = {
15848 (char *) "self",(char *) "key",(char *) "value", NULL
15849 };
15850
15851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15854 {
15855 arg2 = wxString_in_helper(obj1);
15856 if (arg2 == NULL) SWIG_fail;
15857 temp2 = true;
15858 }
15859 arg3 = (long)SWIG_As_long(obj2);
15860 if (PyErr_Occurred()) SWIG_fail;
15861 {
15862 PyThreadState* __tstate = wxPyBeginAllowThreads();
15863 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15864
15865 wxPyEndAllowThreads(__tstate);
15866 if (PyErr_Occurred()) SWIG_fail;
15867 }
15868 {
15869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15870 }
15871 {
15872 if (temp2)
15873 delete arg2;
15874 }
15875 return resultobj;
15876 fail:
15877 {
15878 if (temp2)
15879 delete arg2;
15880 }
15881 return NULL;
15882 }
15883
15884
15885 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *, PyObject *args, PyObject *kwargs) {
15886 PyObject *resultobj;
15887 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15888 wxString *arg2 = 0 ;
15889 double arg3 ;
15890 bool result;
15891 bool temp2 = false ;
15892 PyObject * obj0 = 0 ;
15893 PyObject * obj1 = 0 ;
15894 PyObject * obj2 = 0 ;
15895 char *kwnames[] = {
15896 (char *) "self",(char *) "key",(char *) "value", NULL
15897 };
15898
15899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15902 {
15903 arg2 = wxString_in_helper(obj1);
15904 if (arg2 == NULL) SWIG_fail;
15905 temp2 = true;
15906 }
15907 arg3 = (double)SWIG_As_double(obj2);
15908 if (PyErr_Occurred()) SWIG_fail;
15909 {
15910 PyThreadState* __tstate = wxPyBeginAllowThreads();
15911 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15912
15913 wxPyEndAllowThreads(__tstate);
15914 if (PyErr_Occurred()) SWIG_fail;
15915 }
15916 {
15917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15918 }
15919 {
15920 if (temp2)
15921 delete arg2;
15922 }
15923 return resultobj;
15924 fail:
15925 {
15926 if (temp2)
15927 delete arg2;
15928 }
15929 return NULL;
15930 }
15931
15932
15933 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *, PyObject *args, PyObject *kwargs) {
15934 PyObject *resultobj;
15935 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15936 wxString *arg2 = 0 ;
15937 bool arg3 ;
15938 bool result;
15939 bool temp2 = false ;
15940 PyObject * obj0 = 0 ;
15941 PyObject * obj1 = 0 ;
15942 PyObject * obj2 = 0 ;
15943 char *kwnames[] = {
15944 (char *) "self",(char *) "key",(char *) "value", NULL
15945 };
15946
15947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15950 {
15951 arg2 = wxString_in_helper(obj1);
15952 if (arg2 == NULL) SWIG_fail;
15953 temp2 = true;
15954 }
15955 arg3 = (bool)SWIG_As_bool(obj2);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 {
15958 PyThreadState* __tstate = wxPyBeginAllowThreads();
15959 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15960
15961 wxPyEndAllowThreads(__tstate);
15962 if (PyErr_Occurred()) SWIG_fail;
15963 }
15964 {
15965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15966 }
15967 {
15968 if (temp2)
15969 delete arg2;
15970 }
15971 return resultobj;
15972 fail:
15973 {
15974 if (temp2)
15975 delete arg2;
15976 }
15977 return NULL;
15978 }
15979
15980
15981 static PyObject *_wrap_ConfigBase_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
15982 PyObject *resultobj;
15983 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15984 bool arg2 = (bool) false ;
15985 bool result;
15986 PyObject * obj0 = 0 ;
15987 PyObject * obj1 = 0 ;
15988 char *kwnames[] = {
15989 (char *) "self",(char *) "currentOnly", NULL
15990 };
15991
15992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15995 if (obj1) {
15996 arg2 = (bool)SWIG_As_bool(obj1);
15997 if (PyErr_Occurred()) SWIG_fail;
15998 }
15999 {
16000 PyThreadState* __tstate = wxPyBeginAllowThreads();
16001 result = (bool)(arg1)->Flush(arg2);
16002
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 {
16007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16008 }
16009 return resultobj;
16010 fail:
16011 return NULL;
16012 }
16013
16014
16015 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *, PyObject *args, PyObject *kwargs) {
16016 PyObject *resultobj;
16017 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16018 wxString *arg2 = 0 ;
16019 wxString *arg3 = 0 ;
16020 bool result;
16021 bool temp2 = false ;
16022 bool temp3 = false ;
16023 PyObject * obj0 = 0 ;
16024 PyObject * obj1 = 0 ;
16025 PyObject * obj2 = 0 ;
16026 char *kwnames[] = {
16027 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16028 };
16029
16030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16033 {
16034 arg2 = wxString_in_helper(obj1);
16035 if (arg2 == NULL) SWIG_fail;
16036 temp2 = true;
16037 }
16038 {
16039 arg3 = wxString_in_helper(obj2);
16040 if (arg3 == NULL) SWIG_fail;
16041 temp3 = true;
16042 }
16043 {
16044 PyThreadState* __tstate = wxPyBeginAllowThreads();
16045 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
16046
16047 wxPyEndAllowThreads(__tstate);
16048 if (PyErr_Occurred()) SWIG_fail;
16049 }
16050 {
16051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16052 }
16053 {
16054 if (temp2)
16055 delete arg2;
16056 }
16057 {
16058 if (temp3)
16059 delete arg3;
16060 }
16061 return resultobj;
16062 fail:
16063 {
16064 if (temp2)
16065 delete arg2;
16066 }
16067 {
16068 if (temp3)
16069 delete arg3;
16070 }
16071 return NULL;
16072 }
16073
16074
16075 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *, PyObject *args, PyObject *kwargs) {
16076 PyObject *resultobj;
16077 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16078 wxString *arg2 = 0 ;
16079 wxString *arg3 = 0 ;
16080 bool result;
16081 bool temp2 = false ;
16082 bool temp3 = false ;
16083 PyObject * obj0 = 0 ;
16084 PyObject * obj1 = 0 ;
16085 PyObject * obj2 = 0 ;
16086 char *kwnames[] = {
16087 (char *) "self",(char *) "oldName",(char *) "newName", NULL
16088 };
16089
16090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
16091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16093 {
16094 arg2 = wxString_in_helper(obj1);
16095 if (arg2 == NULL) SWIG_fail;
16096 temp2 = true;
16097 }
16098 {
16099 arg3 = wxString_in_helper(obj2);
16100 if (arg3 == NULL) SWIG_fail;
16101 temp3 = true;
16102 }
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
16105 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
16106
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 {
16111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16112 }
16113 {
16114 if (temp2)
16115 delete arg2;
16116 }
16117 {
16118 if (temp3)
16119 delete arg3;
16120 }
16121 return resultobj;
16122 fail:
16123 {
16124 if (temp2)
16125 delete arg2;
16126 }
16127 {
16128 if (temp3)
16129 delete arg3;
16130 }
16131 return NULL;
16132 }
16133
16134
16135 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *, PyObject *args, PyObject *kwargs) {
16136 PyObject *resultobj;
16137 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16138 wxString *arg2 = 0 ;
16139 bool arg3 = (bool) true ;
16140 bool result;
16141 bool temp2 = false ;
16142 PyObject * obj0 = 0 ;
16143 PyObject * obj1 = 0 ;
16144 PyObject * obj2 = 0 ;
16145 char *kwnames[] = {
16146 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
16147 };
16148
16149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
16150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16152 {
16153 arg2 = wxString_in_helper(obj1);
16154 if (arg2 == NULL) SWIG_fail;
16155 temp2 = true;
16156 }
16157 if (obj2) {
16158 arg3 = (bool)SWIG_As_bool(obj2);
16159 if (PyErr_Occurred()) SWIG_fail;
16160 }
16161 {
16162 PyThreadState* __tstate = wxPyBeginAllowThreads();
16163 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
16164
16165 wxPyEndAllowThreads(__tstate);
16166 if (PyErr_Occurred()) SWIG_fail;
16167 }
16168 {
16169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16170 }
16171 {
16172 if (temp2)
16173 delete arg2;
16174 }
16175 return resultobj;
16176 fail:
16177 {
16178 if (temp2)
16179 delete arg2;
16180 }
16181 return NULL;
16182 }
16183
16184
16185 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *, PyObject *args, PyObject *kwargs) {
16186 PyObject *resultobj;
16187 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16188 wxString *arg2 = 0 ;
16189 bool result;
16190 bool temp2 = false ;
16191 PyObject * obj0 = 0 ;
16192 PyObject * obj1 = 0 ;
16193 char *kwnames[] = {
16194 (char *) "self",(char *) "key", NULL
16195 };
16196
16197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
16198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16200 {
16201 arg2 = wxString_in_helper(obj1);
16202 if (arg2 == NULL) SWIG_fail;
16203 temp2 = true;
16204 }
16205 {
16206 PyThreadState* __tstate = wxPyBeginAllowThreads();
16207 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
16208
16209 wxPyEndAllowThreads(__tstate);
16210 if (PyErr_Occurred()) SWIG_fail;
16211 }
16212 {
16213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16214 }
16215 {
16216 if (temp2)
16217 delete arg2;
16218 }
16219 return resultobj;
16220 fail:
16221 {
16222 if (temp2)
16223 delete arg2;
16224 }
16225 return NULL;
16226 }
16227
16228
16229 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *, PyObject *args, PyObject *kwargs) {
16230 PyObject *resultobj;
16231 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16232 bool result;
16233 PyObject * obj0 = 0 ;
16234 char *kwnames[] = {
16235 (char *) "self", NULL
16236 };
16237
16238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
16239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16241 {
16242 PyThreadState* __tstate = wxPyBeginAllowThreads();
16243 result = (bool)(arg1)->DeleteAll();
16244
16245 wxPyEndAllowThreads(__tstate);
16246 if (PyErr_Occurred()) SWIG_fail;
16247 }
16248 {
16249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16250 }
16251 return resultobj;
16252 fail:
16253 return NULL;
16254 }
16255
16256
16257 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16258 PyObject *resultobj;
16259 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16260 bool arg2 = (bool) true ;
16261 PyObject * obj0 = 0 ;
16262 PyObject * obj1 = 0 ;
16263 char *kwnames[] = {
16264 (char *) "self",(char *) "doIt", NULL
16265 };
16266
16267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16270 if (obj1) {
16271 arg2 = (bool)SWIG_As_bool(obj1);
16272 if (PyErr_Occurred()) SWIG_fail;
16273 }
16274 {
16275 PyThreadState* __tstate = wxPyBeginAllowThreads();
16276 (arg1)->SetExpandEnvVars(arg2);
16277
16278 wxPyEndAllowThreads(__tstate);
16279 if (PyErr_Occurred()) SWIG_fail;
16280 }
16281 Py_INCREF(Py_None); resultobj = Py_None;
16282 return resultobj;
16283 fail:
16284 return NULL;
16285 }
16286
16287
16288 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16289 PyObject *resultobj;
16290 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16291 bool result;
16292 PyObject * obj0 = 0 ;
16293 char *kwnames[] = {
16294 (char *) "self", NULL
16295 };
16296
16297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16303
16304 wxPyEndAllowThreads(__tstate);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 {
16308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16309 }
16310 return resultobj;
16311 fail:
16312 return NULL;
16313 }
16314
16315
16316 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
16317 PyObject *resultobj;
16318 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16319 bool arg2 = (bool) true ;
16320 PyObject * obj0 = 0 ;
16321 PyObject * obj1 = 0 ;
16322 char *kwnames[] = {
16323 (char *) "self",(char *) "doIt", NULL
16324 };
16325
16326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16329 if (obj1) {
16330 arg2 = (bool)SWIG_As_bool(obj1);
16331 if (PyErr_Occurred()) SWIG_fail;
16332 }
16333 {
16334 PyThreadState* __tstate = wxPyBeginAllowThreads();
16335 (arg1)->SetRecordDefaults(arg2);
16336
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 Py_INCREF(Py_None); resultobj = Py_None;
16341 return resultobj;
16342 fail:
16343 return NULL;
16344 }
16345
16346
16347 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
16348 PyObject *resultobj;
16349 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16350 bool result;
16351 PyObject * obj0 = 0 ;
16352 char *kwnames[] = {
16353 (char *) "self", NULL
16354 };
16355
16356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16359 {
16360 PyThreadState* __tstate = wxPyBeginAllowThreads();
16361 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16362
16363 wxPyEndAllowThreads(__tstate);
16364 if (PyErr_Occurred()) SWIG_fail;
16365 }
16366 {
16367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16368 }
16369 return resultobj;
16370 fail:
16371 return NULL;
16372 }
16373
16374
16375 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
16376 PyObject *resultobj;
16377 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16378 wxString *arg2 = 0 ;
16379 wxString result;
16380 bool temp2 = false ;
16381 PyObject * obj0 = 0 ;
16382 PyObject * obj1 = 0 ;
16383 char *kwnames[] = {
16384 (char *) "self",(char *) "str", NULL
16385 };
16386
16387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16390 {
16391 arg2 = wxString_in_helper(obj1);
16392 if (arg2 == NULL) SWIG_fail;
16393 temp2 = true;
16394 }
16395 {
16396 PyThreadState* __tstate = wxPyBeginAllowThreads();
16397 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16398
16399 wxPyEndAllowThreads(__tstate);
16400 if (PyErr_Occurred()) SWIG_fail;
16401 }
16402 {
16403 #if wxUSE_UNICODE
16404 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16405 #else
16406 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16407 #endif
16408 }
16409 {
16410 if (temp2)
16411 delete arg2;
16412 }
16413 return resultobj;
16414 fail:
16415 {
16416 if (temp2)
16417 delete arg2;
16418 }
16419 return NULL;
16420 }
16421
16422
16423 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
16424 PyObject *resultobj;
16425 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16426 wxString result;
16427 PyObject * obj0 = 0 ;
16428 char *kwnames[] = {
16429 (char *) "self", NULL
16430 };
16431
16432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16435 {
16436 PyThreadState* __tstate = wxPyBeginAllowThreads();
16437 result = ((wxConfigBase const *)arg1)->GetAppName();
16438
16439 wxPyEndAllowThreads(__tstate);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 }
16442 {
16443 #if wxUSE_UNICODE
16444 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16445 #else
16446 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16447 #endif
16448 }
16449 return resultobj;
16450 fail:
16451 return NULL;
16452 }
16453
16454
16455 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
16456 PyObject *resultobj;
16457 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16458 wxString result;
16459 PyObject * obj0 = 0 ;
16460 char *kwnames[] = {
16461 (char *) "self", NULL
16462 };
16463
16464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 result = ((wxConfigBase const *)arg1)->GetVendorName();
16470
16471 wxPyEndAllowThreads(__tstate);
16472 if (PyErr_Occurred()) SWIG_fail;
16473 }
16474 {
16475 #if wxUSE_UNICODE
16476 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16477 #else
16478 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16479 #endif
16480 }
16481 return resultobj;
16482 fail:
16483 return NULL;
16484 }
16485
16486
16487 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
16488 PyObject *resultobj;
16489 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16490 wxString *arg2 = 0 ;
16491 bool temp2 = false ;
16492 PyObject * obj0 = 0 ;
16493 PyObject * obj1 = 0 ;
16494 char *kwnames[] = {
16495 (char *) "self",(char *) "appName", NULL
16496 };
16497
16498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16501 {
16502 arg2 = wxString_in_helper(obj1);
16503 if (arg2 == NULL) SWIG_fail;
16504 temp2 = true;
16505 }
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 (arg1)->SetAppName((wxString const &)*arg2);
16509
16510 wxPyEndAllowThreads(__tstate);
16511 if (PyErr_Occurred()) SWIG_fail;
16512 }
16513 Py_INCREF(Py_None); resultobj = Py_None;
16514 {
16515 if (temp2)
16516 delete arg2;
16517 }
16518 return resultobj;
16519 fail:
16520 {
16521 if (temp2)
16522 delete arg2;
16523 }
16524 return NULL;
16525 }
16526
16527
16528 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
16529 PyObject *resultobj;
16530 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16531 wxString *arg2 = 0 ;
16532 bool temp2 = false ;
16533 PyObject * obj0 = 0 ;
16534 PyObject * obj1 = 0 ;
16535 char *kwnames[] = {
16536 (char *) "self",(char *) "vendorName", NULL
16537 };
16538
16539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16542 {
16543 arg2 = wxString_in_helper(obj1);
16544 if (arg2 == NULL) SWIG_fail;
16545 temp2 = true;
16546 }
16547 {
16548 PyThreadState* __tstate = wxPyBeginAllowThreads();
16549 (arg1)->SetVendorName((wxString const &)*arg2);
16550
16551 wxPyEndAllowThreads(__tstate);
16552 if (PyErr_Occurred()) SWIG_fail;
16553 }
16554 Py_INCREF(Py_None); resultobj = Py_None;
16555 {
16556 if (temp2)
16557 delete arg2;
16558 }
16559 return resultobj;
16560 fail:
16561 {
16562 if (temp2)
16563 delete arg2;
16564 }
16565 return NULL;
16566 }
16567
16568
16569 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16570 PyObject *resultobj;
16571 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16572 long arg2 ;
16573 PyObject * obj0 = 0 ;
16574 PyObject * obj1 = 0 ;
16575 char *kwnames[] = {
16576 (char *) "self",(char *) "style", NULL
16577 };
16578
16579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16582 arg2 = (long)SWIG_As_long(obj1);
16583 if (PyErr_Occurred()) SWIG_fail;
16584 {
16585 PyThreadState* __tstate = wxPyBeginAllowThreads();
16586 (arg1)->SetStyle(arg2);
16587
16588 wxPyEndAllowThreads(__tstate);
16589 if (PyErr_Occurred()) SWIG_fail;
16590 }
16591 Py_INCREF(Py_None); resultobj = Py_None;
16592 return resultobj;
16593 fail:
16594 return NULL;
16595 }
16596
16597
16598 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16599 PyObject *resultobj;
16600 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16601 long result;
16602 PyObject * obj0 = 0 ;
16603 char *kwnames[] = {
16604 (char *) "self", NULL
16605 };
16606
16607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16610 {
16611 PyThreadState* __tstate = wxPyBeginAllowThreads();
16612 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16613
16614 wxPyEndAllowThreads(__tstate);
16615 if (PyErr_Occurred()) SWIG_fail;
16616 }
16617 resultobj = SWIG_From_long((long)result);
16618 return resultobj;
16619 fail:
16620 return NULL;
16621 }
16622
16623
16624 static PyObject * ConfigBase_swigregister(PyObject *, PyObject *args) {
16625 PyObject *obj;
16626 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16627 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16628 Py_INCREF(obj);
16629 return Py_BuildValue((char *)"");
16630 }
16631 static PyObject *_wrap_new_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16632 PyObject *resultobj;
16633 wxString const &arg1_defvalue = wxPyEmptyString ;
16634 wxString *arg1 = (wxString *) &arg1_defvalue ;
16635 wxString const &arg2_defvalue = wxPyEmptyString ;
16636 wxString *arg2 = (wxString *) &arg2_defvalue ;
16637 wxString const &arg3_defvalue = wxPyEmptyString ;
16638 wxString *arg3 = (wxString *) &arg3_defvalue ;
16639 wxString const &arg4_defvalue = wxPyEmptyString ;
16640 wxString *arg4 = (wxString *) &arg4_defvalue ;
16641 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16642 wxConfig *result;
16643 bool temp1 = false ;
16644 bool temp2 = false ;
16645 bool temp3 = false ;
16646 bool temp4 = false ;
16647 PyObject * obj0 = 0 ;
16648 PyObject * obj1 = 0 ;
16649 PyObject * obj2 = 0 ;
16650 PyObject * obj3 = 0 ;
16651 PyObject * obj4 = 0 ;
16652 char *kwnames[] = {
16653 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16654 };
16655
16656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16657 if (obj0) {
16658 {
16659 arg1 = wxString_in_helper(obj0);
16660 if (arg1 == NULL) SWIG_fail;
16661 temp1 = true;
16662 }
16663 }
16664 if (obj1) {
16665 {
16666 arg2 = wxString_in_helper(obj1);
16667 if (arg2 == NULL) SWIG_fail;
16668 temp2 = true;
16669 }
16670 }
16671 if (obj2) {
16672 {
16673 arg3 = wxString_in_helper(obj2);
16674 if (arg3 == NULL) SWIG_fail;
16675 temp3 = true;
16676 }
16677 }
16678 if (obj3) {
16679 {
16680 arg4 = wxString_in_helper(obj3);
16681 if (arg4 == NULL) SWIG_fail;
16682 temp4 = true;
16683 }
16684 }
16685 if (obj4) {
16686 arg5 = (long)SWIG_As_long(obj4);
16687 if (PyErr_Occurred()) SWIG_fail;
16688 }
16689 {
16690 PyThreadState* __tstate = wxPyBeginAllowThreads();
16691 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16692
16693 wxPyEndAllowThreads(__tstate);
16694 if (PyErr_Occurred()) SWIG_fail;
16695 }
16696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16697 {
16698 if (temp1)
16699 delete arg1;
16700 }
16701 {
16702 if (temp2)
16703 delete arg2;
16704 }
16705 {
16706 if (temp3)
16707 delete arg3;
16708 }
16709 {
16710 if (temp4)
16711 delete arg4;
16712 }
16713 return resultobj;
16714 fail:
16715 {
16716 if (temp1)
16717 delete arg1;
16718 }
16719 {
16720 if (temp2)
16721 delete arg2;
16722 }
16723 {
16724 if (temp3)
16725 delete arg3;
16726 }
16727 {
16728 if (temp4)
16729 delete arg4;
16730 }
16731 return NULL;
16732 }
16733
16734
16735 static PyObject *_wrap_delete_Config(PyObject *, PyObject *args, PyObject *kwargs) {
16736 PyObject *resultobj;
16737 wxConfig *arg1 = (wxConfig *) 0 ;
16738 PyObject * obj0 = 0 ;
16739 char *kwnames[] = {
16740 (char *) "self", NULL
16741 };
16742
16743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16746 {
16747 PyThreadState* __tstate = wxPyBeginAllowThreads();
16748 delete arg1;
16749
16750 wxPyEndAllowThreads(__tstate);
16751 if (PyErr_Occurred()) SWIG_fail;
16752 }
16753 Py_INCREF(Py_None); resultobj = Py_None;
16754 return resultobj;
16755 fail:
16756 return NULL;
16757 }
16758
16759
16760 static PyObject * Config_swigregister(PyObject *, PyObject *args) {
16761 PyObject *obj;
16762 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16763 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16764 Py_INCREF(obj);
16765 return Py_BuildValue((char *)"");
16766 }
16767 static PyObject *_wrap_new_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16768 PyObject *resultobj;
16769 wxString const &arg1_defvalue = wxPyEmptyString ;
16770 wxString *arg1 = (wxString *) &arg1_defvalue ;
16771 wxString const &arg2_defvalue = wxPyEmptyString ;
16772 wxString *arg2 = (wxString *) &arg2_defvalue ;
16773 wxString const &arg3_defvalue = wxPyEmptyString ;
16774 wxString *arg3 = (wxString *) &arg3_defvalue ;
16775 wxString const &arg4_defvalue = wxPyEmptyString ;
16776 wxString *arg4 = (wxString *) &arg4_defvalue ;
16777 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16778 wxFileConfig *result;
16779 bool temp1 = false ;
16780 bool temp2 = false ;
16781 bool temp3 = false ;
16782 bool temp4 = false ;
16783 PyObject * obj0 = 0 ;
16784 PyObject * obj1 = 0 ;
16785 PyObject * obj2 = 0 ;
16786 PyObject * obj3 = 0 ;
16787 PyObject * obj4 = 0 ;
16788 char *kwnames[] = {
16789 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16790 };
16791
16792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16793 if (obj0) {
16794 {
16795 arg1 = wxString_in_helper(obj0);
16796 if (arg1 == NULL) SWIG_fail;
16797 temp1 = true;
16798 }
16799 }
16800 if (obj1) {
16801 {
16802 arg2 = wxString_in_helper(obj1);
16803 if (arg2 == NULL) SWIG_fail;
16804 temp2 = true;
16805 }
16806 }
16807 if (obj2) {
16808 {
16809 arg3 = wxString_in_helper(obj2);
16810 if (arg3 == NULL) SWIG_fail;
16811 temp3 = true;
16812 }
16813 }
16814 if (obj3) {
16815 {
16816 arg4 = wxString_in_helper(obj3);
16817 if (arg4 == NULL) SWIG_fail;
16818 temp4 = true;
16819 }
16820 }
16821 if (obj4) {
16822 arg5 = (long)SWIG_As_long(obj4);
16823 if (PyErr_Occurred()) SWIG_fail;
16824 }
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16828
16829 wxPyEndAllowThreads(__tstate);
16830 if (PyErr_Occurred()) SWIG_fail;
16831 }
16832 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16833 {
16834 if (temp1)
16835 delete arg1;
16836 }
16837 {
16838 if (temp2)
16839 delete arg2;
16840 }
16841 {
16842 if (temp3)
16843 delete arg3;
16844 }
16845 {
16846 if (temp4)
16847 delete arg4;
16848 }
16849 return resultobj;
16850 fail:
16851 {
16852 if (temp1)
16853 delete arg1;
16854 }
16855 {
16856 if (temp2)
16857 delete arg2;
16858 }
16859 {
16860 if (temp3)
16861 delete arg3;
16862 }
16863 {
16864 if (temp4)
16865 delete arg4;
16866 }
16867 return NULL;
16868 }
16869
16870
16871 static PyObject *_wrap_delete_FileConfig(PyObject *, PyObject *args, PyObject *kwargs) {
16872 PyObject *resultobj;
16873 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16874 PyObject * obj0 = 0 ;
16875 char *kwnames[] = {
16876 (char *) "self", NULL
16877 };
16878
16879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16882 {
16883 PyThreadState* __tstate = wxPyBeginAllowThreads();
16884 delete arg1;
16885
16886 wxPyEndAllowThreads(__tstate);
16887 if (PyErr_Occurred()) SWIG_fail;
16888 }
16889 Py_INCREF(Py_None); resultobj = Py_None;
16890 return resultobj;
16891 fail:
16892 return NULL;
16893 }
16894
16895
16896 static PyObject * FileConfig_swigregister(PyObject *, PyObject *args) {
16897 PyObject *obj;
16898 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16899 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16900 Py_INCREF(obj);
16901 return Py_BuildValue((char *)"");
16902 }
16903 static PyObject *_wrap_new_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
16904 PyObject *resultobj;
16905 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16906 wxString *arg2 = 0 ;
16907 wxConfigPathChanger *result;
16908 bool temp2 = false ;
16909 PyObject * obj0 = 0 ;
16910 PyObject * obj1 = 0 ;
16911 char *kwnames[] = {
16912 (char *) "config",(char *) "entry", NULL
16913 };
16914
16915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16918 {
16919 arg2 = wxString_in_helper(obj1);
16920 if (arg2 == NULL) SWIG_fail;
16921 temp2 = true;
16922 }
16923 {
16924 PyThreadState* __tstate = wxPyBeginAllowThreads();
16925 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16926
16927 wxPyEndAllowThreads(__tstate);
16928 if (PyErr_Occurred()) SWIG_fail;
16929 }
16930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16931 {
16932 if (temp2)
16933 delete arg2;
16934 }
16935 return resultobj;
16936 fail:
16937 {
16938 if (temp2)
16939 delete arg2;
16940 }
16941 return NULL;
16942 }
16943
16944
16945 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *, PyObject *args, PyObject *kwargs) {
16946 PyObject *resultobj;
16947 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16948 PyObject * obj0 = 0 ;
16949 char *kwnames[] = {
16950 (char *) "self", NULL
16951 };
16952
16953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
16958 delete arg1;
16959
16960 wxPyEndAllowThreads(__tstate);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
16963 Py_INCREF(Py_None); resultobj = Py_None;
16964 return resultobj;
16965 fail:
16966 return NULL;
16967 }
16968
16969
16970 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *, PyObject *args, PyObject *kwargs) {
16971 PyObject *resultobj;
16972 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16973 wxString *result;
16974 PyObject * obj0 = 0 ;
16975 char *kwnames[] = {
16976 (char *) "self", NULL
16977 };
16978
16979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16982 {
16983 PyThreadState* __tstate = wxPyBeginAllowThreads();
16984 {
16985 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16986 result = (wxString *) &_result_ref;
16987 }
16988
16989 wxPyEndAllowThreads(__tstate);
16990 if (PyErr_Occurred()) SWIG_fail;
16991 }
16992 {
16993 #if wxUSE_UNICODE
16994 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16995 #else
16996 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16997 #endif
16998 }
16999 return resultobj;
17000 fail:
17001 return NULL;
17002 }
17003
17004
17005 static PyObject * ConfigPathChanger_swigregister(PyObject *, PyObject *args) {
17006 PyObject *obj;
17007 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17008 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
17009 Py_INCREF(obj);
17010 return Py_BuildValue((char *)"");
17011 }
17012 static PyObject *_wrap_ExpandEnvVars(PyObject *, PyObject *args, PyObject *kwargs) {
17013 PyObject *resultobj;
17014 wxString *arg1 = 0 ;
17015 wxString result;
17016 bool temp1 = false ;
17017 PyObject * obj0 = 0 ;
17018 char *kwnames[] = {
17019 (char *) "sz", NULL
17020 };
17021
17022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
17023 {
17024 arg1 = wxString_in_helper(obj0);
17025 if (arg1 == NULL) SWIG_fail;
17026 temp1 = true;
17027 }
17028 {
17029 PyThreadState* __tstate = wxPyBeginAllowThreads();
17030 result = wxExpandEnvVars((wxString const &)*arg1);
17031
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 {
17036 #if wxUSE_UNICODE
17037 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17038 #else
17039 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17040 #endif
17041 }
17042 {
17043 if (temp1)
17044 delete arg1;
17045 }
17046 return resultobj;
17047 fail:
17048 {
17049 if (temp1)
17050 delete arg1;
17051 }
17052 return NULL;
17053 }
17054
17055
17056 static int _wrap_DateFormatStr_set(PyObject *) {
17057 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
17058 return 1;
17059 }
17060
17061
17062 static PyObject *_wrap_DateFormatStr_get() {
17063 PyObject *pyobj;
17064
17065 {
17066 #if wxUSE_UNICODE
17067 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17068 #else
17069 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
17070 #endif
17071 }
17072 return pyobj;
17073 }
17074
17075
17076 static int _wrap_TimeSpanFormatStr_set(PyObject *) {
17077 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
17078 return 1;
17079 }
17080
17081
17082 static PyObject *_wrap_TimeSpanFormatStr_get() {
17083 PyObject *pyobj;
17084
17085 {
17086 #if wxUSE_UNICODE
17087 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17088 #else
17089 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
17090 #endif
17091 }
17092 return pyobj;
17093 }
17094
17095
17096 static PyObject *_wrap_DateTime_SetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17097 PyObject *resultobj;
17098 int arg1 ;
17099 PyObject * obj0 = 0 ;
17100 char *kwnames[] = {
17101 (char *) "country", NULL
17102 };
17103
17104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
17105 arg1 = (int)SWIG_As_int(obj0);
17106 if (PyErr_Occurred()) SWIG_fail;
17107 {
17108 PyThreadState* __tstate = wxPyBeginAllowThreads();
17109 wxDateTime::SetCountry((wxDateTime::Country )arg1);
17110
17111 wxPyEndAllowThreads(__tstate);
17112 if (PyErr_Occurred()) SWIG_fail;
17113 }
17114 Py_INCREF(Py_None); resultobj = Py_None;
17115 return resultobj;
17116 fail:
17117 return NULL;
17118 }
17119
17120
17121 static PyObject *_wrap_DateTime_GetCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17122 PyObject *resultobj;
17123 int result;
17124 char *kwnames[] = {
17125 NULL
17126 };
17127
17128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
17129 {
17130 PyThreadState* __tstate = wxPyBeginAllowThreads();
17131 result = (int)wxDateTime::GetCountry();
17132
17133 wxPyEndAllowThreads(__tstate);
17134 if (PyErr_Occurred()) SWIG_fail;
17135 }
17136 resultobj = SWIG_From_int((int)result);
17137 return resultobj;
17138 fail:
17139 return NULL;
17140 }
17141
17142
17143 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *, PyObject *args, PyObject *kwargs) {
17144 PyObject *resultobj;
17145 int arg1 = (int) wxDateTime::Country_Default ;
17146 bool result;
17147 PyObject * obj0 = 0 ;
17148 char *kwnames[] = {
17149 (char *) "country", NULL
17150 };
17151
17152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
17153 if (obj0) {
17154 arg1 = (int)SWIG_As_int(obj0);
17155 if (PyErr_Occurred()) SWIG_fail;
17156 }
17157 {
17158 PyThreadState* __tstate = wxPyBeginAllowThreads();
17159 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
17160
17161 wxPyEndAllowThreads(__tstate);
17162 if (PyErr_Occurred()) SWIG_fail;
17163 }
17164 {
17165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17166 }
17167 return resultobj;
17168 fail:
17169 return NULL;
17170 }
17171
17172
17173 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *, PyObject *args, PyObject *kwargs) {
17174 PyObject *resultobj;
17175 int arg1 = (int) wxDateTime::Gregorian ;
17176 int result;
17177 PyObject * obj0 = 0 ;
17178 char *kwnames[] = {
17179 (char *) "cal", NULL
17180 };
17181
17182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
17183 if (obj0) {
17184 arg1 = (int)SWIG_As_int(obj0);
17185 if (PyErr_Occurred()) SWIG_fail;
17186 }
17187 {
17188 PyThreadState* __tstate = wxPyBeginAllowThreads();
17189 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
17190
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 resultobj = SWIG_From_int((int)result);
17195 return resultobj;
17196 fail:
17197 return NULL;
17198 }
17199
17200
17201 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *, PyObject *args, PyObject *kwargs) {
17202 PyObject *resultobj;
17203 int arg1 ;
17204 int result;
17205 PyObject * obj0 = 0 ;
17206 char *kwnames[] = {
17207 (char *) "year", NULL
17208 };
17209
17210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
17211 arg1 = (int)SWIG_As_int(obj0);
17212 if (PyErr_Occurred()) SWIG_fail;
17213 {
17214 PyThreadState* __tstate = wxPyBeginAllowThreads();
17215 result = (int)wxDateTime::ConvertYearToBC(arg1);
17216
17217 wxPyEndAllowThreads(__tstate);
17218 if (PyErr_Occurred()) SWIG_fail;
17219 }
17220 resultobj = SWIG_From_int((int)result);
17221 return resultobj;
17222 fail:
17223 return NULL;
17224 }
17225
17226
17227 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *, PyObject *args, PyObject *kwargs) {
17228 PyObject *resultobj;
17229 int arg1 = (int) wxDateTime::Gregorian ;
17230 int result;
17231 PyObject * obj0 = 0 ;
17232 char *kwnames[] = {
17233 (char *) "cal", NULL
17234 };
17235
17236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
17237 if (obj0) {
17238 arg1 = (int)SWIG_As_int(obj0);
17239 if (PyErr_Occurred()) SWIG_fail;
17240 }
17241 {
17242 PyThreadState* __tstate = wxPyBeginAllowThreads();
17243 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
17244
17245 wxPyEndAllowThreads(__tstate);
17246 if (PyErr_Occurred()) SWIG_fail;
17247 }
17248 resultobj = SWIG_From_int((int)result);
17249 return resultobj;
17250 fail:
17251 return NULL;
17252 }
17253
17254
17255 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *, PyObject *args, PyObject *kwargs) {
17256 PyObject *resultobj;
17257 int arg1 = (int) wxDateTime::Inv_Year ;
17258 int arg2 = (int) wxDateTime::Gregorian ;
17259 bool result;
17260 PyObject * obj0 = 0 ;
17261 PyObject * obj1 = 0 ;
17262 char *kwnames[] = {
17263 (char *) "year",(char *) "cal", NULL
17264 };
17265
17266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17267 if (obj0) {
17268 arg1 = (int)SWIG_As_int(obj0);
17269 if (PyErr_Occurred()) SWIG_fail;
17270 }
17271 if (obj1) {
17272 arg2 = (int)SWIG_As_int(obj1);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 }
17275 {
17276 PyThreadState* __tstate = wxPyBeginAllowThreads();
17277 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17278
17279 wxPyEndAllowThreads(__tstate);
17280 if (PyErr_Occurred()) SWIG_fail;
17281 }
17282 {
17283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17284 }
17285 return resultobj;
17286 fail:
17287 return NULL;
17288 }
17289
17290
17291 static PyObject *_wrap_DateTime_GetCentury(PyObject *, PyObject *args, PyObject *kwargs) {
17292 PyObject *resultobj;
17293 int arg1 = (int) wxDateTime::Inv_Year ;
17294 int result;
17295 PyObject * obj0 = 0 ;
17296 char *kwnames[] = {
17297 (char *) "year", NULL
17298 };
17299
17300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17301 if (obj0) {
17302 arg1 = (int)SWIG_As_int(obj0);
17303 if (PyErr_Occurred()) SWIG_fail;
17304 }
17305 {
17306 PyThreadState* __tstate = wxPyBeginAllowThreads();
17307 result = (int)wxDateTime::GetCentury(arg1);
17308
17309 wxPyEndAllowThreads(__tstate);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
17312 resultobj = SWIG_From_int((int)result);
17313 return resultobj;
17314 fail:
17315 return NULL;
17316 }
17317
17318
17319 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *, PyObject *args, PyObject *kwargs) {
17320 PyObject *resultobj;
17321 int arg1 ;
17322 int arg2 = (int) wxDateTime::Gregorian ;
17323 int result;
17324 PyObject * obj0 = 0 ;
17325 PyObject * obj1 = 0 ;
17326 char *kwnames[] = {
17327 (char *) "year",(char *) "cal", NULL
17328 };
17329
17330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17331 arg1 = (int)SWIG_As_int(obj0);
17332 if (PyErr_Occurred()) SWIG_fail;
17333 if (obj1) {
17334 arg2 = (int)SWIG_As_int(obj1);
17335 if (PyErr_Occurred()) SWIG_fail;
17336 }
17337 {
17338 PyThreadState* __tstate = wxPyBeginAllowThreads();
17339 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17340
17341 wxPyEndAllowThreads(__tstate);
17342 if (PyErr_Occurred()) SWIG_fail;
17343 }
17344 resultobj = SWIG_From_int((int)result);
17345 return resultobj;
17346 fail:
17347 return NULL;
17348 }
17349
17350
17351 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *, PyObject *args, PyObject *kwargs) {
17352 PyObject *resultobj;
17353 int arg1 ;
17354 int arg2 = (int) wxDateTime::Inv_Year ;
17355 int arg3 = (int) wxDateTime::Gregorian ;
17356 int result;
17357 PyObject * obj0 = 0 ;
17358 PyObject * obj1 = 0 ;
17359 PyObject * obj2 = 0 ;
17360 char *kwnames[] = {
17361 (char *) "month",(char *) "year",(char *) "cal", NULL
17362 };
17363
17364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17365 arg1 = (int)SWIG_As_int(obj0);
17366 if (PyErr_Occurred()) SWIG_fail;
17367 if (obj1) {
17368 arg2 = (int)SWIG_As_int(obj1);
17369 if (PyErr_Occurred()) SWIG_fail;
17370 }
17371 if (obj2) {
17372 arg3 = (int)SWIG_As_int(obj2);
17373 if (PyErr_Occurred()) SWIG_fail;
17374 }
17375 {
17376 PyThreadState* __tstate = wxPyBeginAllowThreads();
17377 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17378
17379 wxPyEndAllowThreads(__tstate);
17380 if (PyErr_Occurred()) SWIG_fail;
17381 }
17382 resultobj = SWIG_From_int((int)result);
17383 return resultobj;
17384 fail:
17385 return NULL;
17386 }
17387
17388
17389 static PyObject *_wrap_DateTime_GetMonthName(PyObject *, PyObject *args, PyObject *kwargs) {
17390 PyObject *resultobj;
17391 int arg1 ;
17392 int arg2 = (int) wxDateTime::Name_Full ;
17393 wxString result;
17394 PyObject * obj0 = 0 ;
17395 PyObject * obj1 = 0 ;
17396 char *kwnames[] = {
17397 (char *) "month",(char *) "flags", NULL
17398 };
17399
17400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17401 arg1 = (int)SWIG_As_int(obj0);
17402 if (PyErr_Occurred()) SWIG_fail;
17403 if (obj1) {
17404 arg2 = (int)SWIG_As_int(obj1);
17405 if (PyErr_Occurred()) SWIG_fail;
17406 }
17407 {
17408 PyThreadState* __tstate = wxPyBeginAllowThreads();
17409 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17410
17411 wxPyEndAllowThreads(__tstate);
17412 if (PyErr_Occurred()) SWIG_fail;
17413 }
17414 {
17415 #if wxUSE_UNICODE
17416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17417 #else
17418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17419 #endif
17420 }
17421 return resultobj;
17422 fail:
17423 return NULL;
17424 }
17425
17426
17427 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *, PyObject *args, PyObject *kwargs) {
17428 PyObject *resultobj;
17429 int arg1 ;
17430 int arg2 = (int) wxDateTime::Name_Full ;
17431 wxString result;
17432 PyObject * obj0 = 0 ;
17433 PyObject * obj1 = 0 ;
17434 char *kwnames[] = {
17435 (char *) "weekday",(char *) "flags", NULL
17436 };
17437
17438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17439 arg1 = (int)SWIG_As_int(obj0);
17440 if (PyErr_Occurred()) SWIG_fail;
17441 if (obj1) {
17442 arg2 = (int)SWIG_As_int(obj1);
17443 if (PyErr_Occurred()) SWIG_fail;
17444 }
17445 {
17446 PyThreadState* __tstate = wxPyBeginAllowThreads();
17447 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17448
17449 wxPyEndAllowThreads(__tstate);
17450 if (PyErr_Occurred()) SWIG_fail;
17451 }
17452 {
17453 #if wxUSE_UNICODE
17454 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17455 #else
17456 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17457 #endif
17458 }
17459 return resultobj;
17460 fail:
17461 return NULL;
17462 }
17463
17464
17465 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *, PyObject *args, PyObject *kwargs) {
17466 PyObject *resultobj;
17467 wxString *arg1 = (wxString *) 0 ;
17468 wxString *arg2 = (wxString *) 0 ;
17469 bool temp1 = false ;
17470 bool temp2 = false ;
17471 PyObject * obj0 = 0 ;
17472 PyObject * obj1 = 0 ;
17473 char *kwnames[] = {
17474 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17475 };
17476
17477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17478 {
17479 arg1 = wxString_in_helper(obj0);
17480 if (arg1 == NULL) SWIG_fail;
17481 temp1 = true;
17482 }
17483 {
17484 arg2 = wxString_in_helper(obj1);
17485 if (arg2 == NULL) SWIG_fail;
17486 temp2 = true;
17487 }
17488 {
17489 PyThreadState* __tstate = wxPyBeginAllowThreads();
17490 wxDateTime::GetAmPmStrings(arg1,arg2);
17491
17492 wxPyEndAllowThreads(__tstate);
17493 if (PyErr_Occurred()) SWIG_fail;
17494 }
17495 Py_INCREF(Py_None); resultobj = Py_None;
17496 {
17497 if (temp1)
17498 delete arg1;
17499 }
17500 {
17501 if (temp2)
17502 delete arg2;
17503 }
17504 return resultobj;
17505 fail:
17506 {
17507 if (temp1)
17508 delete arg1;
17509 }
17510 {
17511 if (temp2)
17512 delete arg2;
17513 }
17514 return NULL;
17515 }
17516
17517
17518 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *, PyObject *args, PyObject *kwargs) {
17519 PyObject *resultobj;
17520 int arg1 = (int) wxDateTime::Inv_Year ;
17521 int arg2 = (int) wxDateTime::Country_Default ;
17522 bool result;
17523 PyObject * obj0 = 0 ;
17524 PyObject * obj1 = 0 ;
17525 char *kwnames[] = {
17526 (char *) "year",(char *) "country", NULL
17527 };
17528
17529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17530 if (obj0) {
17531 arg1 = (int)SWIG_As_int(obj0);
17532 if (PyErr_Occurred()) SWIG_fail;
17533 }
17534 if (obj1) {
17535 arg2 = (int)SWIG_As_int(obj1);
17536 if (PyErr_Occurred()) SWIG_fail;
17537 }
17538 {
17539 PyThreadState* __tstate = wxPyBeginAllowThreads();
17540 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17541
17542 wxPyEndAllowThreads(__tstate);
17543 if (PyErr_Occurred()) SWIG_fail;
17544 }
17545 {
17546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17547 }
17548 return resultobj;
17549 fail:
17550 return NULL;
17551 }
17552
17553
17554 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *, PyObject *args, PyObject *kwargs) {
17555 PyObject *resultobj;
17556 int arg1 = (int) wxDateTime::Inv_Year ;
17557 int arg2 = (int) wxDateTime::Country_Default ;
17558 wxDateTime result;
17559 PyObject * obj0 = 0 ;
17560 PyObject * obj1 = 0 ;
17561 char *kwnames[] = {
17562 (char *) "year",(char *) "country", NULL
17563 };
17564
17565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17566 if (obj0) {
17567 arg1 = (int)SWIG_As_int(obj0);
17568 if (PyErr_Occurred()) SWIG_fail;
17569 }
17570 if (obj1) {
17571 arg2 = (int)SWIG_As_int(obj1);
17572 if (PyErr_Occurred()) SWIG_fail;
17573 }
17574 {
17575 PyThreadState* __tstate = wxPyBeginAllowThreads();
17576 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17577
17578 wxPyEndAllowThreads(__tstate);
17579 if (PyErr_Occurred()) SWIG_fail;
17580 }
17581 {
17582 wxDateTime * resultptr;
17583 resultptr = new wxDateTime((wxDateTime &) result);
17584 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17585 }
17586 return resultobj;
17587 fail:
17588 return NULL;
17589 }
17590
17591
17592 static PyObject *_wrap_DateTime_GetEndDST(PyObject *, PyObject *args, PyObject *kwargs) {
17593 PyObject *resultobj;
17594 int arg1 = (int) wxDateTime::Inv_Year ;
17595 int arg2 = (int) wxDateTime::Country_Default ;
17596 wxDateTime result;
17597 PyObject * obj0 = 0 ;
17598 PyObject * obj1 = 0 ;
17599 char *kwnames[] = {
17600 (char *) "year",(char *) "country", NULL
17601 };
17602
17603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17604 if (obj0) {
17605 arg1 = (int)SWIG_As_int(obj0);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 }
17608 if (obj1) {
17609 arg2 = (int)SWIG_As_int(obj1);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 {
17613 PyThreadState* __tstate = wxPyBeginAllowThreads();
17614 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17615
17616 wxPyEndAllowThreads(__tstate);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 }
17619 {
17620 wxDateTime * resultptr;
17621 resultptr = new wxDateTime((wxDateTime &) result);
17622 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17623 }
17624 return resultobj;
17625 fail:
17626 return NULL;
17627 }
17628
17629
17630 static PyObject *_wrap_DateTime_Now(PyObject *, PyObject *args, PyObject *kwargs) {
17631 PyObject *resultobj;
17632 wxDateTime result;
17633 char *kwnames[] = {
17634 NULL
17635 };
17636
17637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17638 {
17639 PyThreadState* __tstate = wxPyBeginAllowThreads();
17640 result = wxDateTime::Now();
17641
17642 wxPyEndAllowThreads(__tstate);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 }
17645 {
17646 wxDateTime * resultptr;
17647 resultptr = new wxDateTime((wxDateTime &) result);
17648 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17649 }
17650 return resultobj;
17651 fail:
17652 return NULL;
17653 }
17654
17655
17656 static PyObject *_wrap_DateTime_UNow(PyObject *, PyObject *args, PyObject *kwargs) {
17657 PyObject *resultobj;
17658 wxDateTime result;
17659 char *kwnames[] = {
17660 NULL
17661 };
17662
17663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 result = wxDateTime::UNow();
17667
17668 wxPyEndAllowThreads(__tstate);
17669 if (PyErr_Occurred()) SWIG_fail;
17670 }
17671 {
17672 wxDateTime * resultptr;
17673 resultptr = new wxDateTime((wxDateTime &) result);
17674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17675 }
17676 return resultobj;
17677 fail:
17678 return NULL;
17679 }
17680
17681
17682 static PyObject *_wrap_DateTime_Today(PyObject *, PyObject *args, PyObject *kwargs) {
17683 PyObject *resultobj;
17684 wxDateTime result;
17685 char *kwnames[] = {
17686 NULL
17687 };
17688
17689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17690 {
17691 PyThreadState* __tstate = wxPyBeginAllowThreads();
17692 result = wxDateTime::Today();
17693
17694 wxPyEndAllowThreads(__tstate);
17695 if (PyErr_Occurred()) SWIG_fail;
17696 }
17697 {
17698 wxDateTime * resultptr;
17699 resultptr = new wxDateTime((wxDateTime &) result);
17700 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17701 }
17702 return resultobj;
17703 fail:
17704 return NULL;
17705 }
17706
17707
17708 static PyObject *_wrap_new_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17709 PyObject *resultobj;
17710 wxDateTime *result;
17711 char *kwnames[] = {
17712 NULL
17713 };
17714
17715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17716 {
17717 PyThreadState* __tstate = wxPyBeginAllowThreads();
17718 result = (wxDateTime *)new wxDateTime();
17719
17720 wxPyEndAllowThreads(__tstate);
17721 if (PyErr_Occurred()) SWIG_fail;
17722 }
17723 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17724 return resultobj;
17725 fail:
17726 return NULL;
17727 }
17728
17729
17730 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17731 PyObject *resultobj;
17732 time_t arg1 ;
17733 wxDateTime *result;
17734 PyObject * obj0 = 0 ;
17735 char *kwnames[] = {
17736 (char *) "timet", NULL
17737 };
17738
17739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17740 arg1 = (time_t)SWIG_As_unsigned_SS_int(obj0);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 {
17743 PyThreadState* __tstate = wxPyBeginAllowThreads();
17744 result = (wxDateTime *)new wxDateTime(arg1);
17745
17746 wxPyEndAllowThreads(__tstate);
17747 if (PyErr_Occurred()) SWIG_fail;
17748 }
17749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17750 return resultobj;
17751 fail:
17752 return NULL;
17753 }
17754
17755
17756 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17757 PyObject *resultobj;
17758 double arg1 ;
17759 wxDateTime *result;
17760 PyObject * obj0 = 0 ;
17761 char *kwnames[] = {
17762 (char *) "jdn", NULL
17763 };
17764
17765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17766 arg1 = (double)SWIG_As_double(obj0);
17767 if (PyErr_Occurred()) SWIG_fail;
17768 {
17769 PyThreadState* __tstate = wxPyBeginAllowThreads();
17770 result = (wxDateTime *)new wxDateTime(arg1);
17771
17772 wxPyEndAllowThreads(__tstate);
17773 if (PyErr_Occurred()) SWIG_fail;
17774 }
17775 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17776 return resultobj;
17777 fail:
17778 return NULL;
17779 }
17780
17781
17782 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *, PyObject *args, PyObject *kwargs) {
17783 PyObject *resultobj;
17784 int arg1 ;
17785 int arg2 = (int) 0 ;
17786 int arg3 = (int) 0 ;
17787 int arg4 = (int) 0 ;
17788 wxDateTime *result;
17789 PyObject * obj0 = 0 ;
17790 PyObject * obj1 = 0 ;
17791 PyObject * obj2 = 0 ;
17792 PyObject * obj3 = 0 ;
17793 char *kwnames[] = {
17794 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17795 };
17796
17797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17798 arg1 = (int)SWIG_As_int(obj0);
17799 if (PyErr_Occurred()) SWIG_fail;
17800 if (obj1) {
17801 arg2 = (int)SWIG_As_int(obj1);
17802 if (PyErr_Occurred()) SWIG_fail;
17803 }
17804 if (obj2) {
17805 arg3 = (int)SWIG_As_int(obj2);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 if (obj3) {
17809 arg4 = (int)SWIG_As_int(obj3);
17810 if (PyErr_Occurred()) SWIG_fail;
17811 }
17812 {
17813 PyThreadState* __tstate = wxPyBeginAllowThreads();
17814 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17815
17816 wxPyEndAllowThreads(__tstate);
17817 if (PyErr_Occurred()) SWIG_fail;
17818 }
17819 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17820 return resultobj;
17821 fail:
17822 return NULL;
17823 }
17824
17825
17826 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *, PyObject *args, PyObject *kwargs) {
17827 PyObject *resultobj;
17828 int arg1 ;
17829 int arg2 = (int) wxDateTime::Inv_Month ;
17830 int arg3 = (int) wxDateTime::Inv_Year ;
17831 int arg4 = (int) 0 ;
17832 int arg5 = (int) 0 ;
17833 int arg6 = (int) 0 ;
17834 int arg7 = (int) 0 ;
17835 wxDateTime *result;
17836 PyObject * obj0 = 0 ;
17837 PyObject * obj1 = 0 ;
17838 PyObject * obj2 = 0 ;
17839 PyObject * obj3 = 0 ;
17840 PyObject * obj4 = 0 ;
17841 PyObject * obj5 = 0 ;
17842 PyObject * obj6 = 0 ;
17843 char *kwnames[] = {
17844 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17845 };
17846
17847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17848 arg1 = (int)SWIG_As_int(obj0);
17849 if (PyErr_Occurred()) SWIG_fail;
17850 if (obj1) {
17851 arg2 = (int)SWIG_As_int(obj1);
17852 if (PyErr_Occurred()) SWIG_fail;
17853 }
17854 if (obj2) {
17855 arg3 = (int)SWIG_As_int(obj2);
17856 if (PyErr_Occurred()) SWIG_fail;
17857 }
17858 if (obj3) {
17859 arg4 = (int)SWIG_As_int(obj3);
17860 if (PyErr_Occurred()) SWIG_fail;
17861 }
17862 if (obj4) {
17863 arg5 = (int)SWIG_As_int(obj4);
17864 if (PyErr_Occurred()) SWIG_fail;
17865 }
17866 if (obj5) {
17867 arg6 = (int)SWIG_As_int(obj5);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 }
17870 if (obj6) {
17871 arg7 = (int)SWIG_As_int(obj6);
17872 if (PyErr_Occurred()) SWIG_fail;
17873 }
17874 {
17875 PyThreadState* __tstate = wxPyBeginAllowThreads();
17876 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17877
17878 wxPyEndAllowThreads(__tstate);
17879 if (PyErr_Occurred()) SWIG_fail;
17880 }
17881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17882 return resultobj;
17883 fail:
17884 return NULL;
17885 }
17886
17887
17888 static PyObject *_wrap_delete_DateTime(PyObject *, PyObject *args, PyObject *kwargs) {
17889 PyObject *resultobj;
17890 wxDateTime *arg1 = (wxDateTime *) 0 ;
17891 PyObject * obj0 = 0 ;
17892 char *kwnames[] = {
17893 (char *) "self", NULL
17894 };
17895
17896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17899 {
17900 PyThreadState* __tstate = wxPyBeginAllowThreads();
17901 delete arg1;
17902
17903 wxPyEndAllowThreads(__tstate);
17904 if (PyErr_Occurred()) SWIG_fail;
17905 }
17906 Py_INCREF(Py_None); resultobj = Py_None;
17907 return resultobj;
17908 fail:
17909 return NULL;
17910 }
17911
17912
17913 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
17914 PyObject *resultobj;
17915 wxDateTime *arg1 = (wxDateTime *) 0 ;
17916 wxDateTime *result;
17917 PyObject * obj0 = 0 ;
17918 char *kwnames[] = {
17919 (char *) "self", NULL
17920 };
17921
17922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17925 {
17926 PyThreadState* __tstate = wxPyBeginAllowThreads();
17927 {
17928 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17929 result = (wxDateTime *) &_result_ref;
17930 }
17931
17932 wxPyEndAllowThreads(__tstate);
17933 if (PyErr_Occurred()) SWIG_fail;
17934 }
17935 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17936 return resultobj;
17937 fail:
17938 return NULL;
17939 }
17940
17941
17942 static PyObject *_wrap_DateTime_SetTimeT(PyObject *, PyObject *args, PyObject *kwargs) {
17943 PyObject *resultobj;
17944 wxDateTime *arg1 = (wxDateTime *) 0 ;
17945 time_t arg2 ;
17946 wxDateTime *result;
17947 PyObject * obj0 = 0 ;
17948 PyObject * obj1 = 0 ;
17949 char *kwnames[] = {
17950 (char *) "self",(char *) "timet", NULL
17951 };
17952
17953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17956 arg2 = (time_t)SWIG_As_unsigned_SS_int(obj1);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 {
17959 PyThreadState* __tstate = wxPyBeginAllowThreads();
17960 {
17961 wxDateTime &_result_ref = (arg1)->Set(arg2);
17962 result = (wxDateTime *) &_result_ref;
17963 }
17964
17965 wxPyEndAllowThreads(__tstate);
17966 if (PyErr_Occurred()) SWIG_fail;
17967 }
17968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17969 return resultobj;
17970 fail:
17971 return NULL;
17972 }
17973
17974
17975 static PyObject *_wrap_DateTime_SetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
17976 PyObject *resultobj;
17977 wxDateTime *arg1 = (wxDateTime *) 0 ;
17978 double arg2 ;
17979 wxDateTime *result;
17980 PyObject * obj0 = 0 ;
17981 PyObject * obj1 = 0 ;
17982 char *kwnames[] = {
17983 (char *) "self",(char *) "jdn", NULL
17984 };
17985
17986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17989 arg2 = (double)SWIG_As_double(obj1);
17990 if (PyErr_Occurred()) SWIG_fail;
17991 {
17992 PyThreadState* __tstate = wxPyBeginAllowThreads();
17993 {
17994 wxDateTime &_result_ref = (arg1)->Set(arg2);
17995 result = (wxDateTime *) &_result_ref;
17996 }
17997
17998 wxPyEndAllowThreads(__tstate);
17999 if (PyErr_Occurred()) SWIG_fail;
18000 }
18001 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18002 return resultobj;
18003 fail:
18004 return NULL;
18005 }
18006
18007
18008 static PyObject *_wrap_DateTime_SetHMS(PyObject *, PyObject *args, PyObject *kwargs) {
18009 PyObject *resultobj;
18010 wxDateTime *arg1 = (wxDateTime *) 0 ;
18011 int arg2 ;
18012 int arg3 = (int) 0 ;
18013 int arg4 = (int) 0 ;
18014 int arg5 = (int) 0 ;
18015 wxDateTime *result;
18016 PyObject * obj0 = 0 ;
18017 PyObject * obj1 = 0 ;
18018 PyObject * obj2 = 0 ;
18019 PyObject * obj3 = 0 ;
18020 PyObject * obj4 = 0 ;
18021 char *kwnames[] = {
18022 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18023 };
18024
18025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18028 arg2 = (int)SWIG_As_int(obj1);
18029 if (PyErr_Occurred()) SWIG_fail;
18030 if (obj2) {
18031 arg3 = (int)SWIG_As_int(obj2);
18032 if (PyErr_Occurred()) SWIG_fail;
18033 }
18034 if (obj3) {
18035 arg4 = (int)SWIG_As_int(obj3);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 if (obj4) {
18039 arg5 = (int)SWIG_As_int(obj4);
18040 if (PyErr_Occurred()) SWIG_fail;
18041 }
18042 {
18043 PyThreadState* __tstate = wxPyBeginAllowThreads();
18044 {
18045 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
18046 result = (wxDateTime *) &_result_ref;
18047 }
18048
18049 wxPyEndAllowThreads(__tstate);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 }
18052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18053 return resultobj;
18054 fail:
18055 return NULL;
18056 }
18057
18058
18059 static PyObject *_wrap_DateTime_Set(PyObject *, PyObject *args, PyObject *kwargs) {
18060 PyObject *resultobj;
18061 wxDateTime *arg1 = (wxDateTime *) 0 ;
18062 int arg2 ;
18063 int arg3 = (int) wxDateTime::Inv_Month ;
18064 int arg4 = (int) wxDateTime::Inv_Year ;
18065 int arg5 = (int) 0 ;
18066 int arg6 = (int) 0 ;
18067 int arg7 = (int) 0 ;
18068 int arg8 = (int) 0 ;
18069 wxDateTime *result;
18070 PyObject * obj0 = 0 ;
18071 PyObject * obj1 = 0 ;
18072 PyObject * obj2 = 0 ;
18073 PyObject * obj3 = 0 ;
18074 PyObject * obj4 = 0 ;
18075 PyObject * obj5 = 0 ;
18076 PyObject * obj6 = 0 ;
18077 PyObject * obj7 = 0 ;
18078 char *kwnames[] = {
18079 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
18080 };
18081
18082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18085 arg2 = (int)SWIG_As_int(obj1);
18086 if (PyErr_Occurred()) SWIG_fail;
18087 if (obj2) {
18088 arg3 = (int)SWIG_As_int(obj2);
18089 if (PyErr_Occurred()) SWIG_fail;
18090 }
18091 if (obj3) {
18092 arg4 = (int)SWIG_As_int(obj3);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 }
18095 if (obj4) {
18096 arg5 = (int)SWIG_As_int(obj4);
18097 if (PyErr_Occurred()) SWIG_fail;
18098 }
18099 if (obj5) {
18100 arg6 = (int)SWIG_As_int(obj5);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 }
18103 if (obj6) {
18104 arg7 = (int)SWIG_As_int(obj6);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 if (obj7) {
18108 arg8 = (int)SWIG_As_int(obj7);
18109 if (PyErr_Occurred()) SWIG_fail;
18110 }
18111 {
18112 PyThreadState* __tstate = wxPyBeginAllowThreads();
18113 {
18114 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
18115 result = (wxDateTime *) &_result_ref;
18116 }
18117
18118 wxPyEndAllowThreads(__tstate);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 }
18121 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18122 return resultobj;
18123 fail:
18124 return NULL;
18125 }
18126
18127
18128 static PyObject *_wrap_DateTime_ResetTime(PyObject *, PyObject *args, PyObject *kwargs) {
18129 PyObject *resultobj;
18130 wxDateTime *arg1 = (wxDateTime *) 0 ;
18131 wxDateTime *result;
18132 PyObject * obj0 = 0 ;
18133 char *kwnames[] = {
18134 (char *) "self", NULL
18135 };
18136
18137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
18138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18140 {
18141 PyThreadState* __tstate = wxPyBeginAllowThreads();
18142 {
18143 wxDateTime &_result_ref = (arg1)->ResetTime();
18144 result = (wxDateTime *) &_result_ref;
18145 }
18146
18147 wxPyEndAllowThreads(__tstate);
18148 if (PyErr_Occurred()) SWIG_fail;
18149 }
18150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18151 return resultobj;
18152 fail:
18153 return NULL;
18154 }
18155
18156
18157 static PyObject *_wrap_DateTime_SetYear(PyObject *, PyObject *args, PyObject *kwargs) {
18158 PyObject *resultobj;
18159 wxDateTime *arg1 = (wxDateTime *) 0 ;
18160 int arg2 ;
18161 wxDateTime *result;
18162 PyObject * obj0 = 0 ;
18163 PyObject * obj1 = 0 ;
18164 char *kwnames[] = {
18165 (char *) "self",(char *) "year", NULL
18166 };
18167
18168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
18169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18171 arg2 = (int)SWIG_As_int(obj1);
18172 if (PyErr_Occurred()) SWIG_fail;
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 {
18176 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
18177 result = (wxDateTime *) &_result_ref;
18178 }
18179
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18184 return resultobj;
18185 fail:
18186 return NULL;
18187 }
18188
18189
18190 static PyObject *_wrap_DateTime_SetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
18191 PyObject *resultobj;
18192 wxDateTime *arg1 = (wxDateTime *) 0 ;
18193 int arg2 ;
18194 wxDateTime *result;
18195 PyObject * obj0 = 0 ;
18196 PyObject * obj1 = 0 ;
18197 char *kwnames[] = {
18198 (char *) "self",(char *) "month", NULL
18199 };
18200
18201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
18202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18204 arg2 = (int)SWIG_As_int(obj1);
18205 if (PyErr_Occurred()) SWIG_fail;
18206 {
18207 PyThreadState* __tstate = wxPyBeginAllowThreads();
18208 {
18209 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
18210 result = (wxDateTime *) &_result_ref;
18211 }
18212
18213 wxPyEndAllowThreads(__tstate);
18214 if (PyErr_Occurred()) SWIG_fail;
18215 }
18216 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18217 return resultobj;
18218 fail:
18219 return NULL;
18220 }
18221
18222
18223 static PyObject *_wrap_DateTime_SetDay(PyObject *, PyObject *args, PyObject *kwargs) {
18224 PyObject *resultobj;
18225 wxDateTime *arg1 = (wxDateTime *) 0 ;
18226 int arg2 ;
18227 wxDateTime *result;
18228 PyObject * obj0 = 0 ;
18229 PyObject * obj1 = 0 ;
18230 char *kwnames[] = {
18231 (char *) "self",(char *) "day", NULL
18232 };
18233
18234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
18235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18237 arg2 = (int)SWIG_As_int(obj1);
18238 if (PyErr_Occurred()) SWIG_fail;
18239 {
18240 PyThreadState* __tstate = wxPyBeginAllowThreads();
18241 {
18242 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
18243 result = (wxDateTime *) &_result_ref;
18244 }
18245
18246 wxPyEndAllowThreads(__tstate);
18247 if (PyErr_Occurred()) SWIG_fail;
18248 }
18249 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18250 return resultobj;
18251 fail:
18252 return NULL;
18253 }
18254
18255
18256 static PyObject *_wrap_DateTime_SetHour(PyObject *, PyObject *args, PyObject *kwargs) {
18257 PyObject *resultobj;
18258 wxDateTime *arg1 = (wxDateTime *) 0 ;
18259 int arg2 ;
18260 wxDateTime *result;
18261 PyObject * obj0 = 0 ;
18262 PyObject * obj1 = 0 ;
18263 char *kwnames[] = {
18264 (char *) "self",(char *) "hour", NULL
18265 };
18266
18267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18270 arg2 = (int)SWIG_As_int(obj1);
18271 if (PyErr_Occurred()) SWIG_fail;
18272 {
18273 PyThreadState* __tstate = wxPyBeginAllowThreads();
18274 {
18275 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18276 result = (wxDateTime *) &_result_ref;
18277 }
18278
18279 wxPyEndAllowThreads(__tstate);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18283 return resultobj;
18284 fail:
18285 return NULL;
18286 }
18287
18288
18289 static PyObject *_wrap_DateTime_SetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
18290 PyObject *resultobj;
18291 wxDateTime *arg1 = (wxDateTime *) 0 ;
18292 int arg2 ;
18293 wxDateTime *result;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 char *kwnames[] = {
18297 (char *) "self",(char *) "minute", NULL
18298 };
18299
18300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18303 arg2 = (int)SWIG_As_int(obj1);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 {
18306 PyThreadState* __tstate = wxPyBeginAllowThreads();
18307 {
18308 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18309 result = (wxDateTime *) &_result_ref;
18310 }
18311
18312 wxPyEndAllowThreads(__tstate);
18313 if (PyErr_Occurred()) SWIG_fail;
18314 }
18315 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18316 return resultobj;
18317 fail:
18318 return NULL;
18319 }
18320
18321
18322 static PyObject *_wrap_DateTime_SetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
18323 PyObject *resultobj;
18324 wxDateTime *arg1 = (wxDateTime *) 0 ;
18325 int arg2 ;
18326 wxDateTime *result;
18327 PyObject * obj0 = 0 ;
18328 PyObject * obj1 = 0 ;
18329 char *kwnames[] = {
18330 (char *) "self",(char *) "second", NULL
18331 };
18332
18333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18336 arg2 = (int)SWIG_As_int(obj1);
18337 if (PyErr_Occurred()) SWIG_fail;
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 {
18341 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18342 result = (wxDateTime *) &_result_ref;
18343 }
18344
18345 wxPyEndAllowThreads(__tstate);
18346 if (PyErr_Occurred()) SWIG_fail;
18347 }
18348 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18349 return resultobj;
18350 fail:
18351 return NULL;
18352 }
18353
18354
18355 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
18356 PyObject *resultobj;
18357 wxDateTime *arg1 = (wxDateTime *) 0 ;
18358 int arg2 ;
18359 wxDateTime *result;
18360 PyObject * obj0 = 0 ;
18361 PyObject * obj1 = 0 ;
18362 char *kwnames[] = {
18363 (char *) "self",(char *) "millisecond", NULL
18364 };
18365
18366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18369 arg2 = (int)SWIG_As_int(obj1);
18370 if (PyErr_Occurred()) SWIG_fail;
18371 {
18372 PyThreadState* __tstate = wxPyBeginAllowThreads();
18373 {
18374 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18375 result = (wxDateTime *) &_result_ref;
18376 }
18377
18378 wxPyEndAllowThreads(__tstate);
18379 if (PyErr_Occurred()) SWIG_fail;
18380 }
18381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18382 return resultobj;
18383 fail:
18384 return NULL;
18385 }
18386
18387
18388 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18389 PyObject *resultobj;
18390 wxDateTime *arg1 = (wxDateTime *) 0 ;
18391 int arg2 ;
18392 int arg3 = (int) wxDateTime::Monday_First ;
18393 wxDateTime *result;
18394 PyObject * obj0 = 0 ;
18395 PyObject * obj1 = 0 ;
18396 PyObject * obj2 = 0 ;
18397 char *kwnames[] = {
18398 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18399 };
18400
18401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18404 arg2 = (int)SWIG_As_int(obj1);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 if (obj2) {
18407 arg3 = (int)SWIG_As_int(obj2);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 {
18411 PyThreadState* __tstate = wxPyBeginAllowThreads();
18412 {
18413 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18414 result = (wxDateTime *) &_result_ref;
18415 }
18416
18417 wxPyEndAllowThreads(__tstate);
18418 if (PyErr_Occurred()) SWIG_fail;
18419 }
18420 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18421 return resultobj;
18422 fail:
18423 return NULL;
18424 }
18425
18426
18427 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18428 PyObject *resultobj;
18429 wxDateTime *arg1 = (wxDateTime *) 0 ;
18430 int arg2 ;
18431 int arg3 = (int) wxDateTime::Monday_First ;
18432 wxDateTime result;
18433 PyObject * obj0 = 0 ;
18434 PyObject * obj1 = 0 ;
18435 PyObject * obj2 = 0 ;
18436 char *kwnames[] = {
18437 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18438 };
18439
18440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18443 arg2 = (int)SWIG_As_int(obj1);
18444 if (PyErr_Occurred()) SWIG_fail;
18445 if (obj2) {
18446 arg3 = (int)SWIG_As_int(obj2);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 {
18450 PyThreadState* __tstate = wxPyBeginAllowThreads();
18451 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18452
18453 wxPyEndAllowThreads(__tstate);
18454 if (PyErr_Occurred()) SWIG_fail;
18455 }
18456 {
18457 wxDateTime * resultptr;
18458 resultptr = new wxDateTime((wxDateTime &) result);
18459 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18460 }
18461 return resultobj;
18462 fail:
18463 return NULL;
18464 }
18465
18466
18467 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18468 PyObject *resultobj;
18469 wxDateTime *arg1 = (wxDateTime *) 0 ;
18470 int arg2 ;
18471 wxDateTime *result;
18472 PyObject * obj0 = 0 ;
18473 PyObject * obj1 = 0 ;
18474 char *kwnames[] = {
18475 (char *) "self",(char *) "weekday", NULL
18476 };
18477
18478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18481 arg2 = (int)SWIG_As_int(obj1);
18482 if (PyErr_Occurred()) SWIG_fail;
18483 {
18484 PyThreadState* __tstate = wxPyBeginAllowThreads();
18485 {
18486 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18487 result = (wxDateTime *) &_result_ref;
18488 }
18489
18490 wxPyEndAllowThreads(__tstate);
18491 if (PyErr_Occurred()) SWIG_fail;
18492 }
18493 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18494 return resultobj;
18495 fail:
18496 return NULL;
18497 }
18498
18499
18500 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18501 PyObject *resultobj;
18502 wxDateTime *arg1 = (wxDateTime *) 0 ;
18503 int arg2 ;
18504 wxDateTime result;
18505 PyObject * obj0 = 0 ;
18506 PyObject * obj1 = 0 ;
18507 char *kwnames[] = {
18508 (char *) "self",(char *) "weekday", NULL
18509 };
18510
18511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18514 arg2 = (int)SWIG_As_int(obj1);
18515 if (PyErr_Occurred()) SWIG_fail;
18516 {
18517 PyThreadState* __tstate = wxPyBeginAllowThreads();
18518 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18519
18520 wxPyEndAllowThreads(__tstate);
18521 if (PyErr_Occurred()) SWIG_fail;
18522 }
18523 {
18524 wxDateTime * resultptr;
18525 resultptr = new wxDateTime((wxDateTime &) result);
18526 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18527 }
18528 return resultobj;
18529 fail:
18530 return NULL;
18531 }
18532
18533
18534 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18535 PyObject *resultobj;
18536 wxDateTime *arg1 = (wxDateTime *) 0 ;
18537 int arg2 ;
18538 wxDateTime *result;
18539 PyObject * obj0 = 0 ;
18540 PyObject * obj1 = 0 ;
18541 char *kwnames[] = {
18542 (char *) "self",(char *) "weekday", NULL
18543 };
18544
18545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18548 arg2 = (int)SWIG_As_int(obj1);
18549 if (PyErr_Occurred()) SWIG_fail;
18550 {
18551 PyThreadState* __tstate = wxPyBeginAllowThreads();
18552 {
18553 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18554 result = (wxDateTime *) &_result_ref;
18555 }
18556
18557 wxPyEndAllowThreads(__tstate);
18558 if (PyErr_Occurred()) SWIG_fail;
18559 }
18560 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18561 return resultobj;
18562 fail:
18563 return NULL;
18564 }
18565
18566
18567 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18568 PyObject *resultobj;
18569 wxDateTime *arg1 = (wxDateTime *) 0 ;
18570 int arg2 ;
18571 wxDateTime result;
18572 PyObject * obj0 = 0 ;
18573 PyObject * obj1 = 0 ;
18574 char *kwnames[] = {
18575 (char *) "self",(char *) "weekday", NULL
18576 };
18577
18578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18581 arg2 = (int)SWIG_As_int(obj1);
18582 if (PyErr_Occurred()) SWIG_fail;
18583 {
18584 PyThreadState* __tstate = wxPyBeginAllowThreads();
18585 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )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_SetToWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18602 PyObject *resultobj;
18603 wxDateTime *arg1 = (wxDateTime *) 0 ;
18604 int arg2 ;
18605 int arg3 = (int) 1 ;
18606 int arg4 = (int) wxDateTime::Inv_Month ;
18607 int arg5 = (int) wxDateTime::Inv_Year ;
18608 bool result;
18609 PyObject * obj0 = 0 ;
18610 PyObject * obj1 = 0 ;
18611 PyObject * obj2 = 0 ;
18612 PyObject * obj3 = 0 ;
18613 PyObject * obj4 = 0 ;
18614 char *kwnames[] = {
18615 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18616 };
18617
18618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18621 arg2 = (int)SWIG_As_int(obj1);
18622 if (PyErr_Occurred()) SWIG_fail;
18623 if (obj2) {
18624 arg3 = (int)SWIG_As_int(obj2);
18625 if (PyErr_Occurred()) SWIG_fail;
18626 }
18627 if (obj3) {
18628 arg4 = (int)SWIG_As_int(obj3);
18629 if (PyErr_Occurred()) SWIG_fail;
18630 }
18631 if (obj4) {
18632 arg5 = (int)SWIG_As_int(obj4);
18633 if (PyErr_Occurred()) SWIG_fail;
18634 }
18635 {
18636 PyThreadState* __tstate = wxPyBeginAllowThreads();
18637 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18638
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 {
18643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18644 }
18645 return resultobj;
18646 fail:
18647 return NULL;
18648 }
18649
18650
18651 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18652 PyObject *resultobj;
18653 wxDateTime *arg1 = (wxDateTime *) 0 ;
18654 int arg2 ;
18655 int arg3 = (int) wxDateTime::Inv_Month ;
18656 int arg4 = (int) wxDateTime::Inv_Year ;
18657 bool result;
18658 PyObject * obj0 = 0 ;
18659 PyObject * obj1 = 0 ;
18660 PyObject * obj2 = 0 ;
18661 PyObject * obj3 = 0 ;
18662 char *kwnames[] = {
18663 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18664 };
18665
18666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18669 arg2 = (int)SWIG_As_int(obj1);
18670 if (PyErr_Occurred()) SWIG_fail;
18671 if (obj2) {
18672 arg3 = (int)SWIG_As_int(obj2);
18673 if (PyErr_Occurred()) SWIG_fail;
18674 }
18675 if (obj3) {
18676 arg4 = (int)SWIG_As_int(obj3);
18677 if (PyErr_Occurred()) SWIG_fail;
18678 }
18679 {
18680 PyThreadState* __tstate = wxPyBeginAllowThreads();
18681 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18682
18683 wxPyEndAllowThreads(__tstate);
18684 if (PyErr_Occurred()) SWIG_fail;
18685 }
18686 {
18687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18688 }
18689 return resultobj;
18690 fail:
18691 return NULL;
18692 }
18693
18694
18695 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
18696 PyObject *resultobj;
18697 wxDateTime *arg1 = (wxDateTime *) 0 ;
18698 int arg2 ;
18699 int arg3 = (int) wxDateTime::Inv_Month ;
18700 int arg4 = (int) wxDateTime::Inv_Year ;
18701 wxDateTime result;
18702 PyObject * obj0 = 0 ;
18703 PyObject * obj1 = 0 ;
18704 PyObject * obj2 = 0 ;
18705 PyObject * obj3 = 0 ;
18706 char *kwnames[] = {
18707 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18708 };
18709
18710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18713 arg2 = (int)SWIG_As_int(obj1);
18714 if (PyErr_Occurred()) SWIG_fail;
18715 if (obj2) {
18716 arg3 = (int)SWIG_As_int(obj2);
18717 if (PyErr_Occurred()) SWIG_fail;
18718 }
18719 if (obj3) {
18720 arg4 = (int)SWIG_As_int(obj3);
18721 if (PyErr_Occurred()) SWIG_fail;
18722 }
18723 {
18724 PyThreadState* __tstate = wxPyBeginAllowThreads();
18725 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18726
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 {
18731 wxDateTime * resultptr;
18732 resultptr = new wxDateTime((wxDateTime &) result);
18733 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18734 }
18735 return resultobj;
18736 fail:
18737 return NULL;
18738 }
18739
18740
18741 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18742 PyObject *resultobj;
18743 wxDateTime *arg1 = (wxDateTime *) 0 ;
18744 int arg2 ;
18745 int arg3 = (int) wxDateTime::Mon ;
18746 int arg4 = (int) wxDateTime::Monday_First ;
18747 bool result;
18748 PyObject * obj0 = 0 ;
18749 PyObject * obj1 = 0 ;
18750 PyObject * obj2 = 0 ;
18751 PyObject * obj3 = 0 ;
18752 char *kwnames[] = {
18753 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18754 };
18755
18756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18759 arg2 = (int)SWIG_As_int(obj1);
18760 if (PyErr_Occurred()) SWIG_fail;
18761 if (obj2) {
18762 arg3 = (int)SWIG_As_int(obj2);
18763 if (PyErr_Occurred()) SWIG_fail;
18764 }
18765 if (obj3) {
18766 arg4 = (int)SWIG_As_int(obj3);
18767 if (PyErr_Occurred()) SWIG_fail;
18768 }
18769 {
18770 PyThreadState* __tstate = wxPyBeginAllowThreads();
18771 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18772
18773 wxPyEndAllowThreads(__tstate);
18774 if (PyErr_Occurred()) SWIG_fail;
18775 }
18776 {
18777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18778 }
18779 return resultobj;
18780 fail:
18781 return NULL;
18782 }
18783
18784
18785 static PyObject *_wrap_DateTime_GetWeek(PyObject *, PyObject *args, PyObject *kwargs) {
18786 PyObject *resultobj;
18787 wxDateTime *arg1 = (wxDateTime *) 0 ;
18788 int arg2 ;
18789 int arg3 = (int) wxDateTime::Mon ;
18790 int arg4 = (int) wxDateTime::Monday_First ;
18791 wxDateTime result;
18792 PyObject * obj0 = 0 ;
18793 PyObject * obj1 = 0 ;
18794 PyObject * obj2 = 0 ;
18795 PyObject * obj3 = 0 ;
18796 char *kwnames[] = {
18797 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18798 };
18799
18800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18803 arg2 = (int)SWIG_As_int(obj1);
18804 if (PyErr_Occurred()) SWIG_fail;
18805 if (obj2) {
18806 arg3 = (int)SWIG_As_int(obj2);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 if (obj3) {
18810 arg4 = (int)SWIG_As_int(obj3);
18811 if (PyErr_Occurred()) SWIG_fail;
18812 }
18813 {
18814 PyThreadState* __tstate = wxPyBeginAllowThreads();
18815 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18816
18817 wxPyEndAllowThreads(__tstate);
18818 if (PyErr_Occurred()) SWIG_fail;
18819 }
18820 {
18821 wxDateTime * resultptr;
18822 resultptr = new wxDateTime((wxDateTime &) result);
18823 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18824 }
18825 return resultobj;
18826 fail:
18827 return NULL;
18828 }
18829
18830
18831 static PyObject *_wrap_DateTime_SetToWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj;
18833 int arg1 ;
18834 int arg2 ;
18835 int arg3 = (int) wxDateTime::Mon ;
18836 wxDateTime result;
18837 PyObject * obj0 = 0 ;
18838 PyObject * obj1 = 0 ;
18839 PyObject * obj2 = 0 ;
18840 char *kwnames[] = {
18841 (char *) "year",(char *) "numWeek",(char *) "weekday", NULL
18842 };
18843
18844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
18845 arg1 = (int)SWIG_As_int(obj0);
18846 if (PyErr_Occurred()) SWIG_fail;
18847 arg2 = (int)SWIG_As_int(obj1);
18848 if (PyErr_Occurred()) SWIG_fail;
18849 if (obj2) {
18850 arg3 = (int)SWIG_As_int(obj2);
18851 if (PyErr_Occurred()) SWIG_fail;
18852 }
18853 {
18854 PyThreadState* __tstate = wxPyBeginAllowThreads();
18855 result = wxDateTime::SetToWeekOfYear(arg1,arg2,(wxDateTime::WeekDay )arg3);
18856
18857 wxPyEndAllowThreads(__tstate);
18858 if (PyErr_Occurred()) SWIG_fail;
18859 }
18860 {
18861 wxDateTime * resultptr;
18862 resultptr = new wxDateTime((wxDateTime &) result);
18863 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18864 }
18865 return resultobj;
18866 fail:
18867 return NULL;
18868 }
18869
18870
18871 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
18872 PyObject *resultobj;
18873 wxDateTime *arg1 = (wxDateTime *) 0 ;
18874 int arg2 = (int) wxDateTime::Inv_Month ;
18875 int arg3 = (int) wxDateTime::Inv_Year ;
18876 wxDateTime *result;
18877 PyObject * obj0 = 0 ;
18878 PyObject * obj1 = 0 ;
18879 PyObject * obj2 = 0 ;
18880 char *kwnames[] = {
18881 (char *) "self",(char *) "month",(char *) "year", NULL
18882 };
18883
18884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18887 if (obj1) {
18888 arg2 = (int)SWIG_As_int(obj1);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 if (obj2) {
18892 arg3 = (int)SWIG_As_int(obj2);
18893 if (PyErr_Occurred()) SWIG_fail;
18894 }
18895 {
18896 PyThreadState* __tstate = wxPyBeginAllowThreads();
18897 {
18898 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18899 result = (wxDateTime *) &_result_ref;
18900 }
18901
18902 wxPyEndAllowThreads(__tstate);
18903 if (PyErr_Occurred()) SWIG_fail;
18904 }
18905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18906 return resultobj;
18907 fail:
18908 return NULL;
18909 }
18910
18911
18912 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *, PyObject *args, PyObject *kwargs) {
18913 PyObject *resultobj;
18914 wxDateTime *arg1 = (wxDateTime *) 0 ;
18915 int arg2 = (int) wxDateTime::Inv_Month ;
18916 int arg3 = (int) wxDateTime::Inv_Year ;
18917 wxDateTime result;
18918 PyObject * obj0 = 0 ;
18919 PyObject * obj1 = 0 ;
18920 PyObject * obj2 = 0 ;
18921 char *kwnames[] = {
18922 (char *) "self",(char *) "month",(char *) "year", NULL
18923 };
18924
18925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18928 if (obj1) {
18929 arg2 = (int)SWIG_As_int(obj1);
18930 if (PyErr_Occurred()) SWIG_fail;
18931 }
18932 if (obj2) {
18933 arg3 = (int)SWIG_As_int(obj2);
18934 if (PyErr_Occurred()) SWIG_fail;
18935 }
18936 {
18937 PyThreadState* __tstate = wxPyBeginAllowThreads();
18938 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18939
18940 wxPyEndAllowThreads(__tstate);
18941 if (PyErr_Occurred()) SWIG_fail;
18942 }
18943 {
18944 wxDateTime * resultptr;
18945 resultptr = new wxDateTime((wxDateTime &) result);
18946 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18947 }
18948 return resultobj;
18949 fail:
18950 return NULL;
18951 }
18952
18953
18954 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
18955 PyObject *resultobj;
18956 wxDateTime *arg1 = (wxDateTime *) 0 ;
18957 int arg2 ;
18958 wxDateTime *result;
18959 PyObject * obj0 = 0 ;
18960 PyObject * obj1 = 0 ;
18961 char *kwnames[] = {
18962 (char *) "self",(char *) "yday", NULL
18963 };
18964
18965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18968 arg2 = (int)SWIG_As_int(obj1);
18969 if (PyErr_Occurred()) SWIG_fail;
18970 {
18971 PyThreadState* __tstate = wxPyBeginAllowThreads();
18972 {
18973 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18974 result = (wxDateTime *) &_result_ref;
18975 }
18976
18977 wxPyEndAllowThreads(__tstate);
18978 if (PyErr_Occurred()) SWIG_fail;
18979 }
18980 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18981 return resultobj;
18982 fail:
18983 return NULL;
18984 }
18985
18986
18987 static PyObject *_wrap_DateTime_GetYearDay(PyObject *, PyObject *args, PyObject *kwargs) {
18988 PyObject *resultobj;
18989 wxDateTime *arg1 = (wxDateTime *) 0 ;
18990 int arg2 ;
18991 wxDateTime result;
18992 PyObject * obj0 = 0 ;
18993 PyObject * obj1 = 0 ;
18994 char *kwnames[] = {
18995 (char *) "self",(char *) "yday", NULL
18996 };
18997
18998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19001 arg2 = (int)SWIG_As_int(obj1);
19002 if (PyErr_Occurred()) SWIG_fail;
19003 {
19004 PyThreadState* __tstate = wxPyBeginAllowThreads();
19005 result = (arg1)->GetYearDay(arg2);
19006
19007 wxPyEndAllowThreads(__tstate);
19008 if (PyErr_Occurred()) SWIG_fail;
19009 }
19010 {
19011 wxDateTime * resultptr;
19012 resultptr = new wxDateTime((wxDateTime &) result);
19013 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19014 }
19015 return resultobj;
19016 fail:
19017 return NULL;
19018 }
19019
19020
19021 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
19022 PyObject *resultobj;
19023 wxDateTime *arg1 = (wxDateTime *) 0 ;
19024 double result;
19025 PyObject * obj0 = 0 ;
19026 char *kwnames[] = {
19027 (char *) "self", NULL
19028 };
19029
19030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
19031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19033 {
19034 PyThreadState* __tstate = wxPyBeginAllowThreads();
19035 result = (double)(arg1)->GetJulianDayNumber();
19036
19037 wxPyEndAllowThreads(__tstate);
19038 if (PyErr_Occurred()) SWIG_fail;
19039 }
19040 resultobj = SWIG_From_double((double)result);
19041 return resultobj;
19042 fail:
19043 return NULL;
19044 }
19045
19046
19047 static PyObject *_wrap_DateTime_GetJDN(PyObject *, PyObject *args, PyObject *kwargs) {
19048 PyObject *resultobj;
19049 wxDateTime *arg1 = (wxDateTime *) 0 ;
19050 double result;
19051 PyObject * obj0 = 0 ;
19052 char *kwnames[] = {
19053 (char *) "self", NULL
19054 };
19055
19056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
19057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19059 {
19060 PyThreadState* __tstate = wxPyBeginAllowThreads();
19061 result = (double)(arg1)->GetJDN();
19062
19063 wxPyEndAllowThreads(__tstate);
19064 if (PyErr_Occurred()) SWIG_fail;
19065 }
19066 resultobj = SWIG_From_double((double)result);
19067 return resultobj;
19068 fail:
19069 return NULL;
19070 }
19071
19072
19073 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *, PyObject *args, PyObject *kwargs) {
19074 PyObject *resultobj;
19075 wxDateTime *arg1 = (wxDateTime *) 0 ;
19076 double result;
19077 PyObject * obj0 = 0 ;
19078 char *kwnames[] = {
19079 (char *) "self", NULL
19080 };
19081
19082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
19083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19085 {
19086 PyThreadState* __tstate = wxPyBeginAllowThreads();
19087 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
19088
19089 wxPyEndAllowThreads(__tstate);
19090 if (PyErr_Occurred()) SWIG_fail;
19091 }
19092 resultobj = SWIG_From_double((double)result);
19093 return resultobj;
19094 fail:
19095 return NULL;
19096 }
19097
19098
19099 static PyObject *_wrap_DateTime_GetMJD(PyObject *, PyObject *args, PyObject *kwargs) {
19100 PyObject *resultobj;
19101 wxDateTime *arg1 = (wxDateTime *) 0 ;
19102 double result;
19103 PyObject * obj0 = 0 ;
19104 char *kwnames[] = {
19105 (char *) "self", NULL
19106 };
19107
19108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
19109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19111 {
19112 PyThreadState* __tstate = wxPyBeginAllowThreads();
19113 result = (double)(arg1)->GetMJD();
19114
19115 wxPyEndAllowThreads(__tstate);
19116 if (PyErr_Occurred()) SWIG_fail;
19117 }
19118 resultobj = SWIG_From_double((double)result);
19119 return resultobj;
19120 fail:
19121 return NULL;
19122 }
19123
19124
19125 static PyObject *_wrap_DateTime_GetRataDie(PyObject *, PyObject *args, PyObject *kwargs) {
19126 PyObject *resultobj;
19127 wxDateTime *arg1 = (wxDateTime *) 0 ;
19128 double result;
19129 PyObject * obj0 = 0 ;
19130 char *kwnames[] = {
19131 (char *) "self", NULL
19132 };
19133
19134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
19135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19137 {
19138 PyThreadState* __tstate = wxPyBeginAllowThreads();
19139 result = (double)(arg1)->GetRataDie();
19140
19141 wxPyEndAllowThreads(__tstate);
19142 if (PyErr_Occurred()) SWIG_fail;
19143 }
19144 resultobj = SWIG_From_double((double)result);
19145 return resultobj;
19146 fail:
19147 return NULL;
19148 }
19149
19150
19151 static PyObject *_wrap_DateTime_ToTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
19152 PyObject *resultobj;
19153 wxDateTime *arg1 = (wxDateTime *) 0 ;
19154 wxDateTime::TimeZone *arg2 = 0 ;
19155 bool arg3 = (bool) false ;
19156 wxDateTime result;
19157 bool temp2 = false ;
19158 PyObject * obj0 = 0 ;
19159 PyObject * obj1 = 0 ;
19160 PyObject * obj2 = 0 ;
19161 char *kwnames[] = {
19162 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19163 };
19164
19165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19168 {
19169 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19170 temp2 = true;
19171 }
19172 if (obj2) {
19173 arg3 = (bool)SWIG_As_bool(obj2);
19174 if (PyErr_Occurred()) SWIG_fail;
19175 }
19176 {
19177 PyThreadState* __tstate = wxPyBeginAllowThreads();
19178 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19179
19180 wxPyEndAllowThreads(__tstate);
19181 if (PyErr_Occurred()) SWIG_fail;
19182 }
19183 {
19184 wxDateTime * resultptr;
19185 resultptr = new wxDateTime((wxDateTime &) result);
19186 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19187 }
19188 {
19189 if (temp2) delete arg2;
19190 }
19191 return resultobj;
19192 fail:
19193 {
19194 if (temp2) delete arg2;
19195 }
19196 return NULL;
19197 }
19198
19199
19200 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *, PyObject *args, PyObject *kwargs) {
19201 PyObject *resultobj;
19202 wxDateTime *arg1 = (wxDateTime *) 0 ;
19203 wxDateTime::TimeZone *arg2 = 0 ;
19204 bool arg3 = (bool) false ;
19205 wxDateTime *result;
19206 bool temp2 = false ;
19207 PyObject * obj0 = 0 ;
19208 PyObject * obj1 = 0 ;
19209 PyObject * obj2 = 0 ;
19210 char *kwnames[] = {
19211 (char *) "self",(char *) "tz",(char *) "noDST", NULL
19212 };
19213
19214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
19215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19217 {
19218 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19219 temp2 = true;
19220 }
19221 if (obj2) {
19222 arg3 = (bool)SWIG_As_bool(obj2);
19223 if (PyErr_Occurred()) SWIG_fail;
19224 }
19225 {
19226 PyThreadState* __tstate = wxPyBeginAllowThreads();
19227 {
19228 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
19229 result = (wxDateTime *) &_result_ref;
19230 }
19231
19232 wxPyEndAllowThreads(__tstate);
19233 if (PyErr_Occurred()) SWIG_fail;
19234 }
19235 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19236 {
19237 if (temp2) delete arg2;
19238 }
19239 return resultobj;
19240 fail:
19241 {
19242 if (temp2) delete arg2;
19243 }
19244 return NULL;
19245 }
19246
19247
19248 static PyObject *_wrap_DateTime_ToGMT(PyObject *, PyObject *args, PyObject *kwargs) {
19249 PyObject *resultobj;
19250 wxDateTime *arg1 = (wxDateTime *) 0 ;
19251 bool arg2 = (bool) false ;
19252 wxDateTime result;
19253 PyObject * obj0 = 0 ;
19254 PyObject * obj1 = 0 ;
19255 char *kwnames[] = {
19256 (char *) "self",(char *) "noDST", NULL
19257 };
19258
19259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
19260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19262 if (obj1) {
19263 arg2 = (bool)SWIG_As_bool(obj1);
19264 if (PyErr_Occurred()) SWIG_fail;
19265 }
19266 {
19267 PyThreadState* __tstate = wxPyBeginAllowThreads();
19268 result = (arg1)->ToGMT(arg2);
19269
19270 wxPyEndAllowThreads(__tstate);
19271 if (PyErr_Occurred()) SWIG_fail;
19272 }
19273 {
19274 wxDateTime * resultptr;
19275 resultptr = new wxDateTime((wxDateTime &) result);
19276 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
19277 }
19278 return resultobj;
19279 fail:
19280 return NULL;
19281 }
19282
19283
19284 static PyObject *_wrap_DateTime_MakeGMT(PyObject *, PyObject *args, PyObject *kwargs) {
19285 PyObject *resultobj;
19286 wxDateTime *arg1 = (wxDateTime *) 0 ;
19287 bool arg2 = (bool) false ;
19288 wxDateTime *result;
19289 PyObject * obj0 = 0 ;
19290 PyObject * obj1 = 0 ;
19291 char *kwnames[] = {
19292 (char *) "self",(char *) "noDST", NULL
19293 };
19294
19295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19298 if (obj1) {
19299 arg2 = (bool)SWIG_As_bool(obj1);
19300 if (PyErr_Occurred()) SWIG_fail;
19301 }
19302 {
19303 PyThreadState* __tstate = wxPyBeginAllowThreads();
19304 {
19305 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19306 result = (wxDateTime *) &_result_ref;
19307 }
19308
19309 wxPyEndAllowThreads(__tstate);
19310 if (PyErr_Occurred()) SWIG_fail;
19311 }
19312 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19313 return resultobj;
19314 fail:
19315 return NULL;
19316 }
19317
19318
19319 static PyObject *_wrap_DateTime_IsDST(PyObject *, PyObject *args, PyObject *kwargs) {
19320 PyObject *resultobj;
19321 wxDateTime *arg1 = (wxDateTime *) 0 ;
19322 int arg2 = (int) wxDateTime::Country_Default ;
19323 int result;
19324 PyObject * obj0 = 0 ;
19325 PyObject * obj1 = 0 ;
19326 char *kwnames[] = {
19327 (char *) "self",(char *) "country", NULL
19328 };
19329
19330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19333 if (obj1) {
19334 arg2 = (int)SWIG_As_int(obj1);
19335 if (PyErr_Occurred()) SWIG_fail;
19336 }
19337 {
19338 PyThreadState* __tstate = wxPyBeginAllowThreads();
19339 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19340
19341 wxPyEndAllowThreads(__tstate);
19342 if (PyErr_Occurred()) SWIG_fail;
19343 }
19344 resultobj = SWIG_From_int((int)result);
19345 return resultobj;
19346 fail:
19347 return NULL;
19348 }
19349
19350
19351 static PyObject *_wrap_DateTime_IsValid(PyObject *, PyObject *args, PyObject *kwargs) {
19352 PyObject *resultobj;
19353 wxDateTime *arg1 = (wxDateTime *) 0 ;
19354 bool result;
19355 PyObject * obj0 = 0 ;
19356 char *kwnames[] = {
19357 (char *) "self", NULL
19358 };
19359
19360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19363 {
19364 PyThreadState* __tstate = wxPyBeginAllowThreads();
19365 result = (bool)((wxDateTime const *)arg1)->IsValid();
19366
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 {
19371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19372 }
19373 return resultobj;
19374 fail:
19375 return NULL;
19376 }
19377
19378
19379 static PyObject *_wrap_DateTime_GetTicks(PyObject *, PyObject *args, PyObject *kwargs) {
19380 PyObject *resultobj;
19381 wxDateTime *arg1 = (wxDateTime *) 0 ;
19382 time_t result;
19383 PyObject * obj0 = 0 ;
19384 char *kwnames[] = {
19385 (char *) "self", NULL
19386 };
19387
19388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19391 {
19392 PyThreadState* __tstate = wxPyBeginAllowThreads();
19393 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19394
19395 wxPyEndAllowThreads(__tstate);
19396 if (PyErr_Occurred()) SWIG_fail;
19397 }
19398 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
19399 return resultobj;
19400 fail:
19401 return NULL;
19402 }
19403
19404
19405 static PyObject *_wrap_DateTime_GetYear(PyObject *, PyObject *args, PyObject *kwargs) {
19406 PyObject *resultobj;
19407 wxDateTime *arg1 = (wxDateTime *) 0 ;
19408 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19409 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19410 int result;
19411 bool temp2 = false ;
19412 PyObject * obj0 = 0 ;
19413 PyObject * obj1 = 0 ;
19414 char *kwnames[] = {
19415 (char *) "self",(char *) "tz", NULL
19416 };
19417
19418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19421 if (obj1) {
19422 {
19423 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19424 temp2 = true;
19425 }
19426 }
19427 {
19428 PyThreadState* __tstate = wxPyBeginAllowThreads();
19429 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19430
19431 wxPyEndAllowThreads(__tstate);
19432 if (PyErr_Occurred()) SWIG_fail;
19433 }
19434 resultobj = SWIG_From_int((int)result);
19435 {
19436 if (temp2) delete arg2;
19437 }
19438 return resultobj;
19439 fail:
19440 {
19441 if (temp2) delete arg2;
19442 }
19443 return NULL;
19444 }
19445
19446
19447 static PyObject *_wrap_DateTime_GetMonth(PyObject *, PyObject *args, PyObject *kwargs) {
19448 PyObject *resultobj;
19449 wxDateTime *arg1 = (wxDateTime *) 0 ;
19450 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19451 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19452 int result;
19453 bool temp2 = false ;
19454 PyObject * obj0 = 0 ;
19455 PyObject * obj1 = 0 ;
19456 char *kwnames[] = {
19457 (char *) "self",(char *) "tz", NULL
19458 };
19459
19460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19463 if (obj1) {
19464 {
19465 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19466 temp2 = true;
19467 }
19468 }
19469 {
19470 PyThreadState* __tstate = wxPyBeginAllowThreads();
19471 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19472
19473 wxPyEndAllowThreads(__tstate);
19474 if (PyErr_Occurred()) SWIG_fail;
19475 }
19476 resultobj = SWIG_From_int((int)result);
19477 {
19478 if (temp2) delete arg2;
19479 }
19480 return resultobj;
19481 fail:
19482 {
19483 if (temp2) delete arg2;
19484 }
19485 return NULL;
19486 }
19487
19488
19489 static PyObject *_wrap_DateTime_GetDay(PyObject *, PyObject *args, PyObject *kwargs) {
19490 PyObject *resultobj;
19491 wxDateTime *arg1 = (wxDateTime *) 0 ;
19492 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19493 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19494 int result;
19495 bool temp2 = false ;
19496 PyObject * obj0 = 0 ;
19497 PyObject * obj1 = 0 ;
19498 char *kwnames[] = {
19499 (char *) "self",(char *) "tz", NULL
19500 };
19501
19502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19505 if (obj1) {
19506 {
19507 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19508 temp2 = true;
19509 }
19510 }
19511 {
19512 PyThreadState* __tstate = wxPyBeginAllowThreads();
19513 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19514
19515 wxPyEndAllowThreads(__tstate);
19516 if (PyErr_Occurred()) SWIG_fail;
19517 }
19518 resultobj = SWIG_From_int((int)result);
19519 {
19520 if (temp2) delete arg2;
19521 }
19522 return resultobj;
19523 fail:
19524 {
19525 if (temp2) delete arg2;
19526 }
19527 return NULL;
19528 }
19529
19530
19531 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *, PyObject *args, PyObject *kwargs) {
19532 PyObject *resultobj;
19533 wxDateTime *arg1 = (wxDateTime *) 0 ;
19534 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19535 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19536 int result;
19537 bool temp2 = false ;
19538 PyObject * obj0 = 0 ;
19539 PyObject * obj1 = 0 ;
19540 char *kwnames[] = {
19541 (char *) "self",(char *) "tz", NULL
19542 };
19543
19544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",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 (obj1) {
19548 {
19549 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19550 temp2 = true;
19551 }
19552 }
19553 {
19554 PyThreadState* __tstate = wxPyBeginAllowThreads();
19555 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19556
19557 wxPyEndAllowThreads(__tstate);
19558 if (PyErr_Occurred()) SWIG_fail;
19559 }
19560 resultobj = SWIG_From_int((int)result);
19561 {
19562 if (temp2) delete arg2;
19563 }
19564 return resultobj;
19565 fail:
19566 {
19567 if (temp2) delete arg2;
19568 }
19569 return NULL;
19570 }
19571
19572
19573 static PyObject *_wrap_DateTime_GetHour(PyObject *, PyObject *args, PyObject *kwargs) {
19574 PyObject *resultobj;
19575 wxDateTime *arg1 = (wxDateTime *) 0 ;
19576 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19577 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19578 int result;
19579 bool temp2 = false ;
19580 PyObject * obj0 = 0 ;
19581 PyObject * obj1 = 0 ;
19582 char *kwnames[] = {
19583 (char *) "self",(char *) "tz", NULL
19584 };
19585
19586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19589 if (obj1) {
19590 {
19591 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19592 temp2 = true;
19593 }
19594 }
19595 {
19596 PyThreadState* __tstate = wxPyBeginAllowThreads();
19597 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19598
19599 wxPyEndAllowThreads(__tstate);
19600 if (PyErr_Occurred()) SWIG_fail;
19601 }
19602 resultobj = SWIG_From_int((int)result);
19603 {
19604 if (temp2) delete arg2;
19605 }
19606 return resultobj;
19607 fail:
19608 {
19609 if (temp2) delete arg2;
19610 }
19611 return NULL;
19612 }
19613
19614
19615 static PyObject *_wrap_DateTime_GetMinute(PyObject *, PyObject *args, PyObject *kwargs) {
19616 PyObject *resultobj;
19617 wxDateTime *arg1 = (wxDateTime *) 0 ;
19618 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19619 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19620 int result;
19621 bool temp2 = false ;
19622 PyObject * obj0 = 0 ;
19623 PyObject * obj1 = 0 ;
19624 char *kwnames[] = {
19625 (char *) "self",(char *) "tz", NULL
19626 };
19627
19628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19631 if (obj1) {
19632 {
19633 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19634 temp2 = true;
19635 }
19636 }
19637 {
19638 PyThreadState* __tstate = wxPyBeginAllowThreads();
19639 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19640
19641 wxPyEndAllowThreads(__tstate);
19642 if (PyErr_Occurred()) SWIG_fail;
19643 }
19644 resultobj = SWIG_From_int((int)result);
19645 {
19646 if (temp2) delete arg2;
19647 }
19648 return resultobj;
19649 fail:
19650 {
19651 if (temp2) delete arg2;
19652 }
19653 return NULL;
19654 }
19655
19656
19657 static PyObject *_wrap_DateTime_GetSecond(PyObject *, PyObject *args, PyObject *kwargs) {
19658 PyObject *resultobj;
19659 wxDateTime *arg1 = (wxDateTime *) 0 ;
19660 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19661 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19662 int result;
19663 bool temp2 = false ;
19664 PyObject * obj0 = 0 ;
19665 PyObject * obj1 = 0 ;
19666 char *kwnames[] = {
19667 (char *) "self",(char *) "tz", NULL
19668 };
19669
19670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19673 if (obj1) {
19674 {
19675 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19676 temp2 = true;
19677 }
19678 }
19679 {
19680 PyThreadState* __tstate = wxPyBeginAllowThreads();
19681 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19682
19683 wxPyEndAllowThreads(__tstate);
19684 if (PyErr_Occurred()) SWIG_fail;
19685 }
19686 resultobj = SWIG_From_int((int)result);
19687 {
19688 if (temp2) delete arg2;
19689 }
19690 return resultobj;
19691 fail:
19692 {
19693 if (temp2) delete arg2;
19694 }
19695 return NULL;
19696 }
19697
19698
19699 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *, PyObject *args, PyObject *kwargs) {
19700 PyObject *resultobj;
19701 wxDateTime *arg1 = (wxDateTime *) 0 ;
19702 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19703 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19704 int result;
19705 bool temp2 = false ;
19706 PyObject * obj0 = 0 ;
19707 PyObject * obj1 = 0 ;
19708 char *kwnames[] = {
19709 (char *) "self",(char *) "tz", NULL
19710 };
19711
19712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19715 if (obj1) {
19716 {
19717 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19718 temp2 = true;
19719 }
19720 }
19721 {
19722 PyThreadState* __tstate = wxPyBeginAllowThreads();
19723 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19724
19725 wxPyEndAllowThreads(__tstate);
19726 if (PyErr_Occurred()) SWIG_fail;
19727 }
19728 resultobj = SWIG_From_int((int)result);
19729 {
19730 if (temp2) delete arg2;
19731 }
19732 return resultobj;
19733 fail:
19734 {
19735 if (temp2) delete arg2;
19736 }
19737 return NULL;
19738 }
19739
19740
19741 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19742 PyObject *resultobj;
19743 wxDateTime *arg1 = (wxDateTime *) 0 ;
19744 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19745 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19746 int result;
19747 bool temp2 = false ;
19748 PyObject * obj0 = 0 ;
19749 PyObject * obj1 = 0 ;
19750 char *kwnames[] = {
19751 (char *) "self",(char *) "tz", NULL
19752 };
19753
19754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19757 if (obj1) {
19758 {
19759 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19760 temp2 = true;
19761 }
19762 }
19763 {
19764 PyThreadState* __tstate = wxPyBeginAllowThreads();
19765 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19766
19767 wxPyEndAllowThreads(__tstate);
19768 if (PyErr_Occurred()) SWIG_fail;
19769 }
19770 resultobj = SWIG_From_int((int)result);
19771 {
19772 if (temp2) delete arg2;
19773 }
19774 return resultobj;
19775 fail:
19776 {
19777 if (temp2) delete arg2;
19778 }
19779 return NULL;
19780 }
19781
19782
19783 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *, PyObject *args, PyObject *kwargs) {
19784 PyObject *resultobj;
19785 wxDateTime *arg1 = (wxDateTime *) 0 ;
19786 int arg2 = (int) wxDateTime::Monday_First ;
19787 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19788 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19789 int result;
19790 bool temp3 = false ;
19791 PyObject * obj0 = 0 ;
19792 PyObject * obj1 = 0 ;
19793 PyObject * obj2 = 0 ;
19794 char *kwnames[] = {
19795 (char *) "self",(char *) "flags",(char *) "tz", NULL
19796 };
19797
19798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19801 if (obj1) {
19802 arg2 = (int)SWIG_As_int(obj1);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
19805 if (obj2) {
19806 {
19807 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19808 temp3 = true;
19809 }
19810 }
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19814
19815 wxPyEndAllowThreads(__tstate);
19816 if (PyErr_Occurred()) SWIG_fail;
19817 }
19818 resultobj = SWIG_From_int((int)result);
19819 {
19820 if (temp3) delete arg3;
19821 }
19822 return resultobj;
19823 fail:
19824 {
19825 if (temp3) delete arg3;
19826 }
19827 return NULL;
19828 }
19829
19830
19831 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *, PyObject *args, PyObject *kwargs) {
19832 PyObject *resultobj;
19833 wxDateTime *arg1 = (wxDateTime *) 0 ;
19834 int arg2 = (int) wxDateTime::Monday_First ;
19835 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19836 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19837 int result;
19838 bool temp3 = false ;
19839 PyObject * obj0 = 0 ;
19840 PyObject * obj1 = 0 ;
19841 PyObject * obj2 = 0 ;
19842 char *kwnames[] = {
19843 (char *) "self",(char *) "flags",(char *) "tz", NULL
19844 };
19845
19846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19849 if (obj1) {
19850 arg2 = (int)SWIG_As_int(obj1);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 if (obj2) {
19854 {
19855 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19856 temp3 = true;
19857 }
19858 }
19859 {
19860 PyThreadState* __tstate = wxPyBeginAllowThreads();
19861 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19862
19863 wxPyEndAllowThreads(__tstate);
19864 if (PyErr_Occurred()) SWIG_fail;
19865 }
19866 resultobj = SWIG_From_int((int)result);
19867 {
19868 if (temp3) delete arg3;
19869 }
19870 return resultobj;
19871 fail:
19872 {
19873 if (temp3) delete arg3;
19874 }
19875 return NULL;
19876 }
19877
19878
19879 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *, PyObject *args, PyObject *kwargs) {
19880 PyObject *resultobj;
19881 wxDateTime *arg1 = (wxDateTime *) 0 ;
19882 int arg2 = (int) wxDateTime::Country_Default ;
19883 bool result;
19884 PyObject * obj0 = 0 ;
19885 PyObject * obj1 = 0 ;
19886 char *kwnames[] = {
19887 (char *) "self",(char *) "country", NULL
19888 };
19889
19890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19893 if (obj1) {
19894 arg2 = (int)SWIG_As_int(obj1);
19895 if (PyErr_Occurred()) SWIG_fail;
19896 }
19897 {
19898 PyThreadState* __tstate = wxPyBeginAllowThreads();
19899 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19900
19901 wxPyEndAllowThreads(__tstate);
19902 if (PyErr_Occurred()) SWIG_fail;
19903 }
19904 {
19905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19906 }
19907 return resultobj;
19908 fail:
19909 return NULL;
19910 }
19911
19912
19913 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
19914 PyObject *resultobj;
19915 wxDateTime *arg1 = (wxDateTime *) 0 ;
19916 wxDateTime *arg2 = 0 ;
19917 bool result;
19918 PyObject * obj0 = 0 ;
19919 PyObject * obj1 = 0 ;
19920 char *kwnames[] = {
19921 (char *) "self",(char *) "datetime", NULL
19922 };
19923
19924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19927 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19928 SWIG_POINTER_EXCEPTION | 0)) == -1)
19929 SWIG_fail;
19930 if (arg2 == NULL) {
19931 PyErr_SetString(PyExc_TypeError,"null reference");
19932 SWIG_fail;
19933 }
19934 {
19935 PyThreadState* __tstate = wxPyBeginAllowThreads();
19936 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19937
19938 wxPyEndAllowThreads(__tstate);
19939 if (PyErr_Occurred()) SWIG_fail;
19940 }
19941 {
19942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19943 }
19944 return resultobj;
19945 fail:
19946 return NULL;
19947 }
19948
19949
19950 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *, PyObject *args, PyObject *kwargs) {
19951 PyObject *resultobj;
19952 wxDateTime *arg1 = (wxDateTime *) 0 ;
19953 wxDateTime *arg2 = 0 ;
19954 bool result;
19955 PyObject * obj0 = 0 ;
19956 PyObject * obj1 = 0 ;
19957 char *kwnames[] = {
19958 (char *) "self",(char *) "datetime", NULL
19959 };
19960
19961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19965 SWIG_POINTER_EXCEPTION | 0)) == -1)
19966 SWIG_fail;
19967 if (arg2 == NULL) {
19968 PyErr_SetString(PyExc_TypeError,"null reference");
19969 SWIG_fail;
19970 }
19971 {
19972 PyThreadState* __tstate = wxPyBeginAllowThreads();
19973 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19974
19975 wxPyEndAllowThreads(__tstate);
19976 if (PyErr_Occurred()) SWIG_fail;
19977 }
19978 {
19979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19980 }
19981 return resultobj;
19982 fail:
19983 return NULL;
19984 }
19985
19986
19987 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *, PyObject *args, PyObject *kwargs) {
19988 PyObject *resultobj;
19989 wxDateTime *arg1 = (wxDateTime *) 0 ;
19990 wxDateTime *arg2 = 0 ;
19991 bool result;
19992 PyObject * obj0 = 0 ;
19993 PyObject * obj1 = 0 ;
19994 char *kwnames[] = {
19995 (char *) "self",(char *) "datetime", NULL
19996 };
19997
19998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20002 SWIG_POINTER_EXCEPTION | 0)) == -1)
20003 SWIG_fail;
20004 if (arg2 == NULL) {
20005 PyErr_SetString(PyExc_TypeError,"null reference");
20006 SWIG_fail;
20007 }
20008 {
20009 PyThreadState* __tstate = wxPyBeginAllowThreads();
20010 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
20011
20012 wxPyEndAllowThreads(__tstate);
20013 if (PyErr_Occurred()) SWIG_fail;
20014 }
20015 {
20016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20017 }
20018 return resultobj;
20019 fail:
20020 return NULL;
20021 }
20022
20023
20024 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *, PyObject *args, PyObject *kwargs) {
20025 PyObject *resultobj;
20026 wxDateTime *arg1 = (wxDateTime *) 0 ;
20027 wxDateTime *arg2 = 0 ;
20028 wxDateTime *arg3 = 0 ;
20029 bool result;
20030 PyObject * obj0 = 0 ;
20031 PyObject * obj1 = 0 ;
20032 PyObject * obj2 = 0 ;
20033 char *kwnames[] = {
20034 (char *) "self",(char *) "t1",(char *) "t2", NULL
20035 };
20036
20037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
20038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20040 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20041 SWIG_POINTER_EXCEPTION | 0)) == -1)
20042 SWIG_fail;
20043 if (arg2 == NULL) {
20044 PyErr_SetString(PyExc_TypeError,"null reference");
20045 SWIG_fail;
20046 }
20047 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
20048 SWIG_POINTER_EXCEPTION | 0)) == -1)
20049 SWIG_fail;
20050 if (arg3 == NULL) {
20051 PyErr_SetString(PyExc_TypeError,"null reference");
20052 SWIG_fail;
20053 }
20054 {
20055 PyThreadState* __tstate = wxPyBeginAllowThreads();
20056 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20057
20058 wxPyEndAllowThreads(__tstate);
20059 if (PyErr_Occurred()) SWIG_fail;
20060 }
20061 {
20062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20063 }
20064 return resultobj;
20065 fail:
20066 return NULL;
20067 }
20068
20069
20070 static PyObject *_wrap_DateTime_IsBetween(PyObject *, PyObject *args, PyObject *kwargs) {
20071 PyObject *resultobj;
20072 wxDateTime *arg1 = (wxDateTime *) 0 ;
20073 wxDateTime *arg2 = 0 ;
20074 wxDateTime *arg3 = 0 ;
20075 bool result;
20076 PyObject * obj0 = 0 ;
20077 PyObject * obj1 = 0 ;
20078 PyObject * obj2 = 0 ;
20079 char *kwnames[] = {
20080 (char *) "self",(char *) "t1",(char *) "t2", NULL
20081 };
20082
20083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
20084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20086 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20087 SWIG_POINTER_EXCEPTION | 0)) == -1)
20088 SWIG_fail;
20089 if (arg2 == NULL) {
20090 PyErr_SetString(PyExc_TypeError,"null reference");
20091 SWIG_fail;
20092 }
20093 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
20094 SWIG_POINTER_EXCEPTION | 0)) == -1)
20095 SWIG_fail;
20096 if (arg3 == NULL) {
20097 PyErr_SetString(PyExc_TypeError,"null reference");
20098 SWIG_fail;
20099 }
20100 {
20101 PyThreadState* __tstate = wxPyBeginAllowThreads();
20102 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
20103
20104 wxPyEndAllowThreads(__tstate);
20105 if (PyErr_Occurred()) SWIG_fail;
20106 }
20107 {
20108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20109 }
20110 return resultobj;
20111 fail:
20112 return NULL;
20113 }
20114
20115
20116 static PyObject *_wrap_DateTime_IsSameDate(PyObject *, PyObject *args, PyObject *kwargs) {
20117 PyObject *resultobj;
20118 wxDateTime *arg1 = (wxDateTime *) 0 ;
20119 wxDateTime *arg2 = 0 ;
20120 bool result;
20121 PyObject * obj0 = 0 ;
20122 PyObject * obj1 = 0 ;
20123 char *kwnames[] = {
20124 (char *) "self",(char *) "dt", NULL
20125 };
20126
20127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
20128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20130 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20131 SWIG_POINTER_EXCEPTION | 0)) == -1)
20132 SWIG_fail;
20133 if (arg2 == NULL) {
20134 PyErr_SetString(PyExc_TypeError,"null reference");
20135 SWIG_fail;
20136 }
20137 {
20138 PyThreadState* __tstate = wxPyBeginAllowThreads();
20139 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
20140
20141 wxPyEndAllowThreads(__tstate);
20142 if (PyErr_Occurred()) SWIG_fail;
20143 }
20144 {
20145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20146 }
20147 return resultobj;
20148 fail:
20149 return NULL;
20150 }
20151
20152
20153 static PyObject *_wrap_DateTime_IsSameTime(PyObject *, PyObject *args, PyObject *kwargs) {
20154 PyObject *resultobj;
20155 wxDateTime *arg1 = (wxDateTime *) 0 ;
20156 wxDateTime *arg2 = 0 ;
20157 bool result;
20158 PyObject * obj0 = 0 ;
20159 PyObject * obj1 = 0 ;
20160 char *kwnames[] = {
20161 (char *) "self",(char *) "dt", NULL
20162 };
20163
20164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
20165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20167 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20168 SWIG_POINTER_EXCEPTION | 0)) == -1)
20169 SWIG_fail;
20170 if (arg2 == NULL) {
20171 PyErr_SetString(PyExc_TypeError,"null reference");
20172 SWIG_fail;
20173 }
20174 {
20175 PyThreadState* __tstate = wxPyBeginAllowThreads();
20176 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
20177
20178 wxPyEndAllowThreads(__tstate);
20179 if (PyErr_Occurred()) SWIG_fail;
20180 }
20181 {
20182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20183 }
20184 return resultobj;
20185 fail:
20186 return NULL;
20187 }
20188
20189
20190 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *, PyObject *args, PyObject *kwargs) {
20191 PyObject *resultobj;
20192 wxDateTime *arg1 = (wxDateTime *) 0 ;
20193 wxDateTime *arg2 = 0 ;
20194 wxTimeSpan *arg3 = 0 ;
20195 bool result;
20196 PyObject * obj0 = 0 ;
20197 PyObject * obj1 = 0 ;
20198 PyObject * obj2 = 0 ;
20199 char *kwnames[] = {
20200 (char *) "self",(char *) "dt",(char *) "ts", NULL
20201 };
20202
20203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
20204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20207 SWIG_POINTER_EXCEPTION | 0)) == -1)
20208 SWIG_fail;
20209 if (arg2 == NULL) {
20210 PyErr_SetString(PyExc_TypeError,"null reference");
20211 SWIG_fail;
20212 }
20213 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
20214 SWIG_POINTER_EXCEPTION | 0)) == -1)
20215 SWIG_fail;
20216 if (arg3 == NULL) {
20217 PyErr_SetString(PyExc_TypeError,"null reference");
20218 SWIG_fail;
20219 }
20220 {
20221 PyThreadState* __tstate = wxPyBeginAllowThreads();
20222 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
20223
20224 wxPyEndAllowThreads(__tstate);
20225 if (PyErr_Occurred()) SWIG_fail;
20226 }
20227 {
20228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20229 }
20230 return resultobj;
20231 fail:
20232 return NULL;
20233 }
20234
20235
20236 static PyObject *_wrap_DateTime_AddTS(PyObject *, PyObject *args, PyObject *kwargs) {
20237 PyObject *resultobj;
20238 wxDateTime *arg1 = (wxDateTime *) 0 ;
20239 wxTimeSpan *arg2 = 0 ;
20240 wxDateTime *result;
20241 PyObject * obj0 = 0 ;
20242 PyObject * obj1 = 0 ;
20243 char *kwnames[] = {
20244 (char *) "self",(char *) "diff", NULL
20245 };
20246
20247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
20248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20250 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20251 SWIG_POINTER_EXCEPTION | 0)) == -1)
20252 SWIG_fail;
20253 if (arg2 == NULL) {
20254 PyErr_SetString(PyExc_TypeError,"null reference");
20255 SWIG_fail;
20256 }
20257 {
20258 PyThreadState* __tstate = wxPyBeginAllowThreads();
20259 {
20260 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
20261 result = (wxDateTime *) &_result_ref;
20262 }
20263
20264 wxPyEndAllowThreads(__tstate);
20265 if (PyErr_Occurred()) SWIG_fail;
20266 }
20267 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20268 return resultobj;
20269 fail:
20270 return NULL;
20271 }
20272
20273
20274 static PyObject *_wrap_DateTime_AddDS(PyObject *, PyObject *args, PyObject *kwargs) {
20275 PyObject *resultobj;
20276 wxDateTime *arg1 = (wxDateTime *) 0 ;
20277 wxDateSpan *arg2 = 0 ;
20278 wxDateTime *result;
20279 PyObject * obj0 = 0 ;
20280 PyObject * obj1 = 0 ;
20281 char *kwnames[] = {
20282 (char *) "self",(char *) "diff", NULL
20283 };
20284
20285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
20286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20288 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20289 SWIG_POINTER_EXCEPTION | 0)) == -1)
20290 SWIG_fail;
20291 if (arg2 == NULL) {
20292 PyErr_SetString(PyExc_TypeError,"null reference");
20293 SWIG_fail;
20294 }
20295 {
20296 PyThreadState* __tstate = wxPyBeginAllowThreads();
20297 {
20298 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20299 result = (wxDateTime *) &_result_ref;
20300 }
20301
20302 wxPyEndAllowThreads(__tstate);
20303 if (PyErr_Occurred()) SWIG_fail;
20304 }
20305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20306 return resultobj;
20307 fail:
20308 return NULL;
20309 }
20310
20311
20312 static PyObject *_wrap_DateTime_SubtractTS(PyObject *, PyObject *args, PyObject *kwargs) {
20313 PyObject *resultobj;
20314 wxDateTime *arg1 = (wxDateTime *) 0 ;
20315 wxTimeSpan *arg2 = 0 ;
20316 wxDateTime *result;
20317 PyObject * obj0 = 0 ;
20318 PyObject * obj1 = 0 ;
20319 char *kwnames[] = {
20320 (char *) "self",(char *) "diff", NULL
20321 };
20322
20323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20326 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20327 SWIG_POINTER_EXCEPTION | 0)) == -1)
20328 SWIG_fail;
20329 if (arg2 == NULL) {
20330 PyErr_SetString(PyExc_TypeError,"null reference");
20331 SWIG_fail;
20332 }
20333 {
20334 PyThreadState* __tstate = wxPyBeginAllowThreads();
20335 {
20336 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20337 result = (wxDateTime *) &_result_ref;
20338 }
20339
20340 wxPyEndAllowThreads(__tstate);
20341 if (PyErr_Occurred()) SWIG_fail;
20342 }
20343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20344 return resultobj;
20345 fail:
20346 return NULL;
20347 }
20348
20349
20350 static PyObject *_wrap_DateTime_SubtractDS(PyObject *, PyObject *args, PyObject *kwargs) {
20351 PyObject *resultobj;
20352 wxDateTime *arg1 = (wxDateTime *) 0 ;
20353 wxDateSpan *arg2 = 0 ;
20354 wxDateTime *result;
20355 PyObject * obj0 = 0 ;
20356 PyObject * obj1 = 0 ;
20357 char *kwnames[] = {
20358 (char *) "self",(char *) "diff", NULL
20359 };
20360
20361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20365 SWIG_POINTER_EXCEPTION | 0)) == -1)
20366 SWIG_fail;
20367 if (arg2 == NULL) {
20368 PyErr_SetString(PyExc_TypeError,"null reference");
20369 SWIG_fail;
20370 }
20371 {
20372 PyThreadState* __tstate = wxPyBeginAllowThreads();
20373 {
20374 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20375 result = (wxDateTime *) &_result_ref;
20376 }
20377
20378 wxPyEndAllowThreads(__tstate);
20379 if (PyErr_Occurred()) SWIG_fail;
20380 }
20381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20382 return resultobj;
20383 fail:
20384 return NULL;
20385 }
20386
20387
20388 static PyObject *_wrap_DateTime_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
20389 PyObject *resultobj;
20390 wxDateTime *arg1 = (wxDateTime *) 0 ;
20391 wxDateTime *arg2 = 0 ;
20392 wxTimeSpan result;
20393 PyObject * obj0 = 0 ;
20394 PyObject * obj1 = 0 ;
20395 char *kwnames[] = {
20396 (char *) "self",(char *) "dt", NULL
20397 };
20398
20399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20403 SWIG_POINTER_EXCEPTION | 0)) == -1)
20404 SWIG_fail;
20405 if (arg2 == NULL) {
20406 PyErr_SetString(PyExc_TypeError,"null reference");
20407 SWIG_fail;
20408 }
20409 {
20410 PyThreadState* __tstate = wxPyBeginAllowThreads();
20411 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20412
20413 wxPyEndAllowThreads(__tstate);
20414 if (PyErr_Occurred()) SWIG_fail;
20415 }
20416 {
20417 wxTimeSpan * resultptr;
20418 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20419 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20420 }
20421 return resultobj;
20422 fail:
20423 return NULL;
20424 }
20425
20426
20427 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *, PyObject *args) {
20428 PyObject *resultobj;
20429 wxDateTime *arg1 = (wxDateTime *) 0 ;
20430 wxTimeSpan *arg2 = 0 ;
20431 wxDateTime *result;
20432 PyObject * obj0 = 0 ;
20433 PyObject * obj1 = 0 ;
20434
20435 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20437 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20438 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20439 SWIG_POINTER_EXCEPTION | 0)) == -1)
20440 SWIG_fail;
20441 if (arg2 == NULL) {
20442 PyErr_SetString(PyExc_TypeError,"null reference");
20443 SWIG_fail;
20444 }
20445 {
20446 PyThreadState* __tstate = wxPyBeginAllowThreads();
20447 {
20448 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20449 result = (wxDateTime *) &_result_ref;
20450 }
20451
20452 wxPyEndAllowThreads(__tstate);
20453 if (PyErr_Occurred()) SWIG_fail;
20454 }
20455 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20456 return resultobj;
20457 fail:
20458 return NULL;
20459 }
20460
20461
20462 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *, PyObject *args) {
20463 PyObject *resultobj;
20464 wxDateTime *arg1 = (wxDateTime *) 0 ;
20465 wxDateSpan *arg2 = 0 ;
20466 wxDateTime *result;
20467 PyObject * obj0 = 0 ;
20468 PyObject * obj1 = 0 ;
20469
20470 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20472 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20473 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20474 SWIG_POINTER_EXCEPTION | 0)) == -1)
20475 SWIG_fail;
20476 if (arg2 == NULL) {
20477 PyErr_SetString(PyExc_TypeError,"null reference");
20478 SWIG_fail;
20479 }
20480 {
20481 PyThreadState* __tstate = wxPyBeginAllowThreads();
20482 {
20483 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20484 result = (wxDateTime *) &_result_ref;
20485 }
20486
20487 wxPyEndAllowThreads(__tstate);
20488 if (PyErr_Occurred()) SWIG_fail;
20489 }
20490 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20491 return resultobj;
20492 fail:
20493 return NULL;
20494 }
20495
20496
20497 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20498 int argc;
20499 PyObject *argv[3];
20500 int ii;
20501
20502 argc = PyObject_Length(args);
20503 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20504 argv[ii] = PyTuple_GetItem(args,ii);
20505 }
20506 if (argc == 2) {
20507 int _v;
20508 {
20509 void *ptr;
20510 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20511 _v = 0;
20512 PyErr_Clear();
20513 } else {
20514 _v = 1;
20515 }
20516 }
20517 if (_v) {
20518 {
20519 void *ptr;
20520 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20521 _v = 0;
20522 PyErr_Clear();
20523 } else {
20524 _v = 1;
20525 }
20526 }
20527 if (_v) {
20528 return _wrap_DateTime___iadd____SWIG_0(self,args);
20529 }
20530 }
20531 }
20532 if (argc == 2) {
20533 int _v;
20534 {
20535 void *ptr;
20536 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20537 _v = 0;
20538 PyErr_Clear();
20539 } else {
20540 _v = 1;
20541 }
20542 }
20543 if (_v) {
20544 {
20545 void *ptr;
20546 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20547 _v = 0;
20548 PyErr_Clear();
20549 } else {
20550 _v = 1;
20551 }
20552 }
20553 if (_v) {
20554 return _wrap_DateTime___iadd____SWIG_1(self,args);
20555 }
20556 }
20557 }
20558
20559 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20560 return NULL;
20561 }
20562
20563
20564 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *, PyObject *args) {
20565 PyObject *resultobj;
20566 wxDateTime *arg1 = (wxDateTime *) 0 ;
20567 wxTimeSpan *arg2 = 0 ;
20568 wxDateTime *result;
20569 PyObject * obj0 = 0 ;
20570 PyObject * obj1 = 0 ;
20571
20572 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20574 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20575 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20576 SWIG_POINTER_EXCEPTION | 0)) == -1)
20577 SWIG_fail;
20578 if (arg2 == NULL) {
20579 PyErr_SetString(PyExc_TypeError,"null reference");
20580 SWIG_fail;
20581 }
20582 {
20583 PyThreadState* __tstate = wxPyBeginAllowThreads();
20584 {
20585 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20586 result = (wxDateTime *) &_result_ref;
20587 }
20588
20589 wxPyEndAllowThreads(__tstate);
20590 if (PyErr_Occurred()) SWIG_fail;
20591 }
20592 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20593 return resultobj;
20594 fail:
20595 return NULL;
20596 }
20597
20598
20599 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *, PyObject *args) {
20600 PyObject *resultobj;
20601 wxDateTime *arg1 = (wxDateTime *) 0 ;
20602 wxDateSpan *arg2 = 0 ;
20603 wxDateTime *result;
20604 PyObject * obj0 = 0 ;
20605 PyObject * obj1 = 0 ;
20606
20607 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20609 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
20610 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20611 SWIG_POINTER_EXCEPTION | 0)) == -1)
20612 SWIG_fail;
20613 if (arg2 == NULL) {
20614 PyErr_SetString(PyExc_TypeError,"null reference");
20615 SWIG_fail;
20616 }
20617 {
20618 PyThreadState* __tstate = wxPyBeginAllowThreads();
20619 {
20620 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20621 result = (wxDateTime *) &_result_ref;
20622 }
20623
20624 wxPyEndAllowThreads(__tstate);
20625 if (PyErr_Occurred()) SWIG_fail;
20626 }
20627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
20628 return resultobj;
20629 fail:
20630 return NULL;
20631 }
20632
20633
20634 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20635 int argc;
20636 PyObject *argv[3];
20637 int ii;
20638
20639 argc = PyObject_Length(args);
20640 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20641 argv[ii] = PyTuple_GetItem(args,ii);
20642 }
20643 if (argc == 2) {
20644 int _v;
20645 {
20646 void *ptr;
20647 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20648 _v = 0;
20649 PyErr_Clear();
20650 } else {
20651 _v = 1;
20652 }
20653 }
20654 if (_v) {
20655 {
20656 void *ptr;
20657 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20658 _v = 0;
20659 PyErr_Clear();
20660 } else {
20661 _v = 1;
20662 }
20663 }
20664 if (_v) {
20665 return _wrap_DateTime___isub____SWIG_0(self,args);
20666 }
20667 }
20668 }
20669 if (argc == 2) {
20670 int _v;
20671 {
20672 void *ptr;
20673 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20674 _v = 0;
20675 PyErr_Clear();
20676 } else {
20677 _v = 1;
20678 }
20679 }
20680 if (_v) {
20681 {
20682 void *ptr;
20683 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20684 _v = 0;
20685 PyErr_Clear();
20686 } else {
20687 _v = 1;
20688 }
20689 }
20690 if (_v) {
20691 return _wrap_DateTime___isub____SWIG_1(self,args);
20692 }
20693 }
20694 }
20695
20696 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20697 return NULL;
20698 }
20699
20700
20701 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *, PyObject *args) {
20702 PyObject *resultobj;
20703 wxDateTime *arg1 = (wxDateTime *) 0 ;
20704 wxTimeSpan *arg2 = 0 ;
20705 wxDateTime result;
20706 PyObject * obj0 = 0 ;
20707 PyObject * obj1 = 0 ;
20708
20709 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20712 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20713 SWIG_POINTER_EXCEPTION | 0)) == -1)
20714 SWIG_fail;
20715 if (arg2 == NULL) {
20716 PyErr_SetString(PyExc_TypeError,"null reference");
20717 SWIG_fail;
20718 }
20719 {
20720 PyThreadState* __tstate = wxPyBeginAllowThreads();
20721 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20722
20723 wxPyEndAllowThreads(__tstate);
20724 if (PyErr_Occurred()) SWIG_fail;
20725 }
20726 {
20727 wxDateTime * resultptr;
20728 resultptr = new wxDateTime((wxDateTime &) result);
20729 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20730 }
20731 return resultobj;
20732 fail:
20733 return NULL;
20734 }
20735
20736
20737 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *, PyObject *args) {
20738 PyObject *resultobj;
20739 wxDateTime *arg1 = (wxDateTime *) 0 ;
20740 wxDateSpan *arg2 = 0 ;
20741 wxDateTime result;
20742 PyObject * obj0 = 0 ;
20743 PyObject * obj1 = 0 ;
20744
20745 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20748 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20749 SWIG_POINTER_EXCEPTION | 0)) == -1)
20750 SWIG_fail;
20751 if (arg2 == NULL) {
20752 PyErr_SetString(PyExc_TypeError,"null reference");
20753 SWIG_fail;
20754 }
20755 {
20756 PyThreadState* __tstate = wxPyBeginAllowThreads();
20757 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20758
20759 wxPyEndAllowThreads(__tstate);
20760 if (PyErr_Occurred()) SWIG_fail;
20761 }
20762 {
20763 wxDateTime * resultptr;
20764 resultptr = new wxDateTime((wxDateTime &) result);
20765 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20766 }
20767 return resultobj;
20768 fail:
20769 return NULL;
20770 }
20771
20772
20773 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20774 int argc;
20775 PyObject *argv[3];
20776 int ii;
20777
20778 argc = PyObject_Length(args);
20779 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20780 argv[ii] = PyTuple_GetItem(args,ii);
20781 }
20782 if (argc == 2) {
20783 int _v;
20784 {
20785 void *ptr;
20786 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20787 _v = 0;
20788 PyErr_Clear();
20789 } else {
20790 _v = 1;
20791 }
20792 }
20793 if (_v) {
20794 {
20795 void *ptr;
20796 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20797 _v = 0;
20798 PyErr_Clear();
20799 } else {
20800 _v = 1;
20801 }
20802 }
20803 if (_v) {
20804 return _wrap_DateTime___add____SWIG_0(self,args);
20805 }
20806 }
20807 }
20808 if (argc == 2) {
20809 int _v;
20810 {
20811 void *ptr;
20812 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20813 _v = 0;
20814 PyErr_Clear();
20815 } else {
20816 _v = 1;
20817 }
20818 }
20819 if (_v) {
20820 {
20821 void *ptr;
20822 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20823 _v = 0;
20824 PyErr_Clear();
20825 } else {
20826 _v = 1;
20827 }
20828 }
20829 if (_v) {
20830 return _wrap_DateTime___add____SWIG_1(self,args);
20831 }
20832 }
20833 }
20834
20835 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20836 return NULL;
20837 }
20838
20839
20840 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *, PyObject *args) {
20841 PyObject *resultobj;
20842 wxDateTime *arg1 = (wxDateTime *) 0 ;
20843 wxDateTime *arg2 = 0 ;
20844 wxTimeSpan result;
20845 PyObject * obj0 = 0 ;
20846 PyObject * obj1 = 0 ;
20847
20848 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20851 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20852 SWIG_POINTER_EXCEPTION | 0)) == -1)
20853 SWIG_fail;
20854 if (arg2 == NULL) {
20855 PyErr_SetString(PyExc_TypeError,"null reference");
20856 SWIG_fail;
20857 }
20858 {
20859 PyThreadState* __tstate = wxPyBeginAllowThreads();
20860 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20861
20862 wxPyEndAllowThreads(__tstate);
20863 if (PyErr_Occurred()) SWIG_fail;
20864 }
20865 {
20866 wxTimeSpan * resultptr;
20867 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20868 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20869 }
20870 return resultobj;
20871 fail:
20872 return NULL;
20873 }
20874
20875
20876 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *, PyObject *args) {
20877 PyObject *resultobj;
20878 wxDateTime *arg1 = (wxDateTime *) 0 ;
20879 wxTimeSpan *arg2 = 0 ;
20880 wxDateTime result;
20881 PyObject * obj0 = 0 ;
20882 PyObject * obj1 = 0 ;
20883
20884 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20887 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20888 SWIG_POINTER_EXCEPTION | 0)) == -1)
20889 SWIG_fail;
20890 if (arg2 == NULL) {
20891 PyErr_SetString(PyExc_TypeError,"null reference");
20892 SWIG_fail;
20893 }
20894 {
20895 PyThreadState* __tstate = wxPyBeginAllowThreads();
20896 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20897
20898 wxPyEndAllowThreads(__tstate);
20899 if (PyErr_Occurred()) SWIG_fail;
20900 }
20901 {
20902 wxDateTime * resultptr;
20903 resultptr = new wxDateTime((wxDateTime &) result);
20904 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20905 }
20906 return resultobj;
20907 fail:
20908 return NULL;
20909 }
20910
20911
20912 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *, PyObject *args) {
20913 PyObject *resultobj;
20914 wxDateTime *arg1 = (wxDateTime *) 0 ;
20915 wxDateSpan *arg2 = 0 ;
20916 wxDateTime result;
20917 PyObject * obj0 = 0 ;
20918 PyObject * obj1 = 0 ;
20919
20920 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20923 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20924 SWIG_POINTER_EXCEPTION | 0)) == -1)
20925 SWIG_fail;
20926 if (arg2 == NULL) {
20927 PyErr_SetString(PyExc_TypeError,"null reference");
20928 SWIG_fail;
20929 }
20930 {
20931 PyThreadState* __tstate = wxPyBeginAllowThreads();
20932 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20933
20934 wxPyEndAllowThreads(__tstate);
20935 if (PyErr_Occurred()) SWIG_fail;
20936 }
20937 {
20938 wxDateTime * resultptr;
20939 resultptr = new wxDateTime((wxDateTime &) result);
20940 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20941 }
20942 return resultobj;
20943 fail:
20944 return NULL;
20945 }
20946
20947
20948 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20949 int argc;
20950 PyObject *argv[3];
20951 int ii;
20952
20953 argc = PyObject_Length(args);
20954 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20955 argv[ii] = PyTuple_GetItem(args,ii);
20956 }
20957 if (argc == 2) {
20958 int _v;
20959 {
20960 void *ptr;
20961 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20962 _v = 0;
20963 PyErr_Clear();
20964 } else {
20965 _v = 1;
20966 }
20967 }
20968 if (_v) {
20969 {
20970 void *ptr;
20971 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20972 _v = 0;
20973 PyErr_Clear();
20974 } else {
20975 _v = 1;
20976 }
20977 }
20978 if (_v) {
20979 return _wrap_DateTime___sub____SWIG_0(self,args);
20980 }
20981 }
20982 }
20983 if (argc == 2) {
20984 int _v;
20985 {
20986 void *ptr;
20987 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20988 _v = 0;
20989 PyErr_Clear();
20990 } else {
20991 _v = 1;
20992 }
20993 }
20994 if (_v) {
20995 {
20996 void *ptr;
20997 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20998 _v = 0;
20999 PyErr_Clear();
21000 } else {
21001 _v = 1;
21002 }
21003 }
21004 if (_v) {
21005 return _wrap_DateTime___sub____SWIG_1(self,args);
21006 }
21007 }
21008 }
21009 if (argc == 2) {
21010 int _v;
21011 {
21012 void *ptr;
21013 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
21014 _v = 0;
21015 PyErr_Clear();
21016 } else {
21017 _v = 1;
21018 }
21019 }
21020 if (_v) {
21021 {
21022 void *ptr;
21023 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
21024 _v = 0;
21025 PyErr_Clear();
21026 } else {
21027 _v = 1;
21028 }
21029 }
21030 if (_v) {
21031 return _wrap_DateTime___sub____SWIG_2(self,args);
21032 }
21033 }
21034 }
21035
21036 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
21037 return NULL;
21038 }
21039
21040
21041 static PyObject *_wrap_DateTime___lt__(PyObject *, PyObject *args) {
21042 PyObject *resultobj;
21043 wxDateTime *arg1 = (wxDateTime *) 0 ;
21044 wxDateTime *arg2 = (wxDateTime *) 0 ;
21045 bool result;
21046 PyObject * obj0 = 0 ;
21047 PyObject * obj1 = 0 ;
21048
21049 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
21050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21052 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21054 {
21055 PyThreadState* __tstate = wxPyBeginAllowThreads();
21056 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
21057
21058 wxPyEndAllowThreads(__tstate);
21059 if (PyErr_Occurred()) SWIG_fail;
21060 }
21061 {
21062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21063 }
21064 return resultobj;
21065 fail:
21066 return NULL;
21067 }
21068
21069
21070 static PyObject *_wrap_DateTime___le__(PyObject *, PyObject *args) {
21071 PyObject *resultobj;
21072 wxDateTime *arg1 = (wxDateTime *) 0 ;
21073 wxDateTime *arg2 = (wxDateTime *) 0 ;
21074 bool result;
21075 PyObject * obj0 = 0 ;
21076 PyObject * obj1 = 0 ;
21077
21078 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
21079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21083 {
21084 PyThreadState* __tstate = wxPyBeginAllowThreads();
21085 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
21086
21087 wxPyEndAllowThreads(__tstate);
21088 if (PyErr_Occurred()) SWIG_fail;
21089 }
21090 {
21091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21092 }
21093 return resultobj;
21094 fail:
21095 return NULL;
21096 }
21097
21098
21099 static PyObject *_wrap_DateTime___gt__(PyObject *, PyObject *args) {
21100 PyObject *resultobj;
21101 wxDateTime *arg1 = (wxDateTime *) 0 ;
21102 wxDateTime *arg2 = (wxDateTime *) 0 ;
21103 bool result;
21104 PyObject * obj0 = 0 ;
21105 PyObject * obj1 = 0 ;
21106
21107 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
21108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21110 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21112 {
21113 PyThreadState* __tstate = wxPyBeginAllowThreads();
21114 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
21115
21116 wxPyEndAllowThreads(__tstate);
21117 if (PyErr_Occurred()) SWIG_fail;
21118 }
21119 {
21120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21121 }
21122 return resultobj;
21123 fail:
21124 return NULL;
21125 }
21126
21127
21128 static PyObject *_wrap_DateTime___ge__(PyObject *, PyObject *args) {
21129 PyObject *resultobj;
21130 wxDateTime *arg1 = (wxDateTime *) 0 ;
21131 wxDateTime *arg2 = (wxDateTime *) 0 ;
21132 bool result;
21133 PyObject * obj0 = 0 ;
21134 PyObject * obj1 = 0 ;
21135
21136 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
21137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21139 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21141 {
21142 PyThreadState* __tstate = wxPyBeginAllowThreads();
21143 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
21144
21145 wxPyEndAllowThreads(__tstate);
21146 if (PyErr_Occurred()) SWIG_fail;
21147 }
21148 {
21149 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21150 }
21151 return resultobj;
21152 fail:
21153 return NULL;
21154 }
21155
21156
21157 static PyObject *_wrap_DateTime___eq__(PyObject *, PyObject *args) {
21158 PyObject *resultobj;
21159 wxDateTime *arg1 = (wxDateTime *) 0 ;
21160 wxDateTime *arg2 = (wxDateTime *) 0 ;
21161 bool result;
21162 PyObject * obj0 = 0 ;
21163 PyObject * obj1 = 0 ;
21164
21165 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
21166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21168 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21170 {
21171 PyThreadState* __tstate = wxPyBeginAllowThreads();
21172 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
21173
21174 wxPyEndAllowThreads(__tstate);
21175 if (PyErr_Occurred()) SWIG_fail;
21176 }
21177 {
21178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21179 }
21180 return resultobj;
21181 fail:
21182 return NULL;
21183 }
21184
21185
21186 static PyObject *_wrap_DateTime___ne__(PyObject *, PyObject *args) {
21187 PyObject *resultobj;
21188 wxDateTime *arg1 = (wxDateTime *) 0 ;
21189 wxDateTime *arg2 = (wxDateTime *) 0 ;
21190 bool result;
21191 PyObject * obj0 = 0 ;
21192 PyObject * obj1 = 0 ;
21193
21194 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
21195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21197 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
21198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21199 {
21200 PyThreadState* __tstate = wxPyBeginAllowThreads();
21201 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
21202
21203 wxPyEndAllowThreads(__tstate);
21204 if (PyErr_Occurred()) SWIG_fail;
21205 }
21206 {
21207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21208 }
21209 return resultobj;
21210 fail:
21211 return NULL;
21212 }
21213
21214
21215 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *, PyObject *args, PyObject *kwargs) {
21216 PyObject *resultobj;
21217 wxDateTime *arg1 = (wxDateTime *) 0 ;
21218 wxString *arg2 = 0 ;
21219 int result;
21220 bool temp2 = false ;
21221 PyObject * obj0 = 0 ;
21222 PyObject * obj1 = 0 ;
21223 char *kwnames[] = {
21224 (char *) "self",(char *) "date", NULL
21225 };
21226
21227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
21228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21230 {
21231 arg2 = wxString_in_helper(obj1);
21232 if (arg2 == NULL) SWIG_fail;
21233 temp2 = true;
21234 }
21235 {
21236 PyThreadState* __tstate = wxPyBeginAllowThreads();
21237 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
21238
21239 wxPyEndAllowThreads(__tstate);
21240 if (PyErr_Occurred()) SWIG_fail;
21241 }
21242 resultobj = SWIG_From_int((int)result);
21243 {
21244 if (temp2)
21245 delete arg2;
21246 }
21247 return resultobj;
21248 fail:
21249 {
21250 if (temp2)
21251 delete arg2;
21252 }
21253 return NULL;
21254 }
21255
21256
21257 static PyObject *_wrap_DateTime_ParseFormat(PyObject *, PyObject *args, PyObject *kwargs) {
21258 PyObject *resultobj;
21259 wxDateTime *arg1 = (wxDateTime *) 0 ;
21260 wxString *arg2 = 0 ;
21261 wxString const &arg3_defvalue = wxPyDateFormatStr ;
21262 wxString *arg3 = (wxString *) &arg3_defvalue ;
21263 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
21264 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
21265 int result;
21266 bool temp2 = false ;
21267 bool temp3 = false ;
21268 PyObject * obj0 = 0 ;
21269 PyObject * obj1 = 0 ;
21270 PyObject * obj2 = 0 ;
21271 PyObject * obj3 = 0 ;
21272 char *kwnames[] = {
21273 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
21274 };
21275
21276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21279 {
21280 arg2 = wxString_in_helper(obj1);
21281 if (arg2 == NULL) SWIG_fail;
21282 temp2 = true;
21283 }
21284 if (obj2) {
21285 {
21286 arg3 = wxString_in_helper(obj2);
21287 if (arg3 == NULL) SWIG_fail;
21288 temp3 = true;
21289 }
21290 }
21291 if (obj3) {
21292 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
21293 SWIG_POINTER_EXCEPTION | 0)) == -1)
21294 SWIG_fail;
21295 if (arg4 == NULL) {
21296 PyErr_SetString(PyExc_TypeError,"null reference");
21297 SWIG_fail;
21298 }
21299 }
21300 {
21301 PyThreadState* __tstate = wxPyBeginAllowThreads();
21302 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21303
21304 wxPyEndAllowThreads(__tstate);
21305 if (PyErr_Occurred()) SWIG_fail;
21306 }
21307 resultobj = SWIG_From_int((int)result);
21308 {
21309 if (temp2)
21310 delete arg2;
21311 }
21312 {
21313 if (temp3)
21314 delete arg3;
21315 }
21316 return resultobj;
21317 fail:
21318 {
21319 if (temp2)
21320 delete arg2;
21321 }
21322 {
21323 if (temp3)
21324 delete arg3;
21325 }
21326 return NULL;
21327 }
21328
21329
21330 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *, PyObject *args, PyObject *kwargs) {
21331 PyObject *resultobj;
21332 wxDateTime *arg1 = (wxDateTime *) 0 ;
21333 wxString *arg2 = 0 ;
21334 int result;
21335 bool temp2 = false ;
21336 PyObject * obj0 = 0 ;
21337 PyObject * obj1 = 0 ;
21338 char *kwnames[] = {
21339 (char *) "self",(char *) "datetime", NULL
21340 };
21341
21342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21345 {
21346 arg2 = wxString_in_helper(obj1);
21347 if (arg2 == NULL) SWIG_fail;
21348 temp2 = true;
21349 }
21350 {
21351 PyThreadState* __tstate = wxPyBeginAllowThreads();
21352 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21353
21354 wxPyEndAllowThreads(__tstate);
21355 if (PyErr_Occurred()) SWIG_fail;
21356 }
21357 resultobj = SWIG_From_int((int)result);
21358 {
21359 if (temp2)
21360 delete arg2;
21361 }
21362 return resultobj;
21363 fail:
21364 {
21365 if (temp2)
21366 delete arg2;
21367 }
21368 return NULL;
21369 }
21370
21371
21372 static PyObject *_wrap_DateTime_ParseDate(PyObject *, PyObject *args, PyObject *kwargs) {
21373 PyObject *resultobj;
21374 wxDateTime *arg1 = (wxDateTime *) 0 ;
21375 wxString *arg2 = 0 ;
21376 int result;
21377 bool temp2 = false ;
21378 PyObject * obj0 = 0 ;
21379 PyObject * obj1 = 0 ;
21380 char *kwnames[] = {
21381 (char *) "self",(char *) "date", NULL
21382 };
21383
21384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21387 {
21388 arg2 = wxString_in_helper(obj1);
21389 if (arg2 == NULL) SWIG_fail;
21390 temp2 = true;
21391 }
21392 {
21393 PyThreadState* __tstate = wxPyBeginAllowThreads();
21394 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21395
21396 wxPyEndAllowThreads(__tstate);
21397 if (PyErr_Occurred()) SWIG_fail;
21398 }
21399 resultobj = SWIG_From_int((int)result);
21400 {
21401 if (temp2)
21402 delete arg2;
21403 }
21404 return resultobj;
21405 fail:
21406 {
21407 if (temp2)
21408 delete arg2;
21409 }
21410 return NULL;
21411 }
21412
21413
21414 static PyObject *_wrap_DateTime_ParseTime(PyObject *, PyObject *args, PyObject *kwargs) {
21415 PyObject *resultobj;
21416 wxDateTime *arg1 = (wxDateTime *) 0 ;
21417 wxString *arg2 = 0 ;
21418 int result;
21419 bool temp2 = false ;
21420 PyObject * obj0 = 0 ;
21421 PyObject * obj1 = 0 ;
21422 char *kwnames[] = {
21423 (char *) "self",(char *) "time", NULL
21424 };
21425
21426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21429 {
21430 arg2 = wxString_in_helper(obj1);
21431 if (arg2 == NULL) SWIG_fail;
21432 temp2 = true;
21433 }
21434 {
21435 PyThreadState* __tstate = wxPyBeginAllowThreads();
21436 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21437
21438 wxPyEndAllowThreads(__tstate);
21439 if (PyErr_Occurred()) SWIG_fail;
21440 }
21441 resultobj = SWIG_From_int((int)result);
21442 {
21443 if (temp2)
21444 delete arg2;
21445 }
21446 return resultobj;
21447 fail:
21448 {
21449 if (temp2)
21450 delete arg2;
21451 }
21452 return NULL;
21453 }
21454
21455
21456 static PyObject *_wrap_DateTime_Format(PyObject *, PyObject *args, PyObject *kwargs) {
21457 PyObject *resultobj;
21458 wxDateTime *arg1 = (wxDateTime *) 0 ;
21459 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21460 wxString *arg2 = (wxString *) &arg2_defvalue ;
21461 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21462 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21463 wxString result;
21464 bool temp2 = false ;
21465 bool temp3 = false ;
21466 PyObject * obj0 = 0 ;
21467 PyObject * obj1 = 0 ;
21468 PyObject * obj2 = 0 ;
21469 char *kwnames[] = {
21470 (char *) "self",(char *) "format",(char *) "tz", NULL
21471 };
21472
21473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21476 if (obj1) {
21477 {
21478 arg2 = wxString_in_helper(obj1);
21479 if (arg2 == NULL) SWIG_fail;
21480 temp2 = true;
21481 }
21482 }
21483 if (obj2) {
21484 {
21485 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21486 temp3 = true;
21487 }
21488 }
21489 {
21490 PyThreadState* __tstate = wxPyBeginAllowThreads();
21491 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21492
21493 wxPyEndAllowThreads(__tstate);
21494 if (PyErr_Occurred()) SWIG_fail;
21495 }
21496 {
21497 #if wxUSE_UNICODE
21498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21499 #else
21500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21501 #endif
21502 }
21503 {
21504 if (temp2)
21505 delete arg2;
21506 }
21507 {
21508 if (temp3) delete arg3;
21509 }
21510 return resultobj;
21511 fail:
21512 {
21513 if (temp2)
21514 delete arg2;
21515 }
21516 {
21517 if (temp3) delete arg3;
21518 }
21519 return NULL;
21520 }
21521
21522
21523 static PyObject *_wrap_DateTime_FormatDate(PyObject *, PyObject *args, PyObject *kwargs) {
21524 PyObject *resultobj;
21525 wxDateTime *arg1 = (wxDateTime *) 0 ;
21526 wxString result;
21527 PyObject * obj0 = 0 ;
21528 char *kwnames[] = {
21529 (char *) "self", NULL
21530 };
21531
21532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21535 {
21536 PyThreadState* __tstate = wxPyBeginAllowThreads();
21537 result = ((wxDateTime const *)arg1)->FormatDate();
21538
21539 wxPyEndAllowThreads(__tstate);
21540 if (PyErr_Occurred()) SWIG_fail;
21541 }
21542 {
21543 #if wxUSE_UNICODE
21544 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21545 #else
21546 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21547 #endif
21548 }
21549 return resultobj;
21550 fail:
21551 return NULL;
21552 }
21553
21554
21555 static PyObject *_wrap_DateTime_FormatTime(PyObject *, PyObject *args, PyObject *kwargs) {
21556 PyObject *resultobj;
21557 wxDateTime *arg1 = (wxDateTime *) 0 ;
21558 wxString result;
21559 PyObject * obj0 = 0 ;
21560 char *kwnames[] = {
21561 (char *) "self", NULL
21562 };
21563
21564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21567 {
21568 PyThreadState* __tstate = wxPyBeginAllowThreads();
21569 result = ((wxDateTime const *)arg1)->FormatTime();
21570
21571 wxPyEndAllowThreads(__tstate);
21572 if (PyErr_Occurred()) SWIG_fail;
21573 }
21574 {
21575 #if wxUSE_UNICODE
21576 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21577 #else
21578 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21579 #endif
21580 }
21581 return resultobj;
21582 fail:
21583 return NULL;
21584 }
21585
21586
21587 static PyObject *_wrap_DateTime_FormatISODate(PyObject *, PyObject *args, PyObject *kwargs) {
21588 PyObject *resultobj;
21589 wxDateTime *arg1 = (wxDateTime *) 0 ;
21590 wxString result;
21591 PyObject * obj0 = 0 ;
21592 char *kwnames[] = {
21593 (char *) "self", NULL
21594 };
21595
21596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21599 {
21600 PyThreadState* __tstate = wxPyBeginAllowThreads();
21601 result = ((wxDateTime const *)arg1)->FormatISODate();
21602
21603 wxPyEndAllowThreads(__tstate);
21604 if (PyErr_Occurred()) SWIG_fail;
21605 }
21606 {
21607 #if wxUSE_UNICODE
21608 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21609 #else
21610 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21611 #endif
21612 }
21613 return resultobj;
21614 fail:
21615 return NULL;
21616 }
21617
21618
21619 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *, PyObject *args, PyObject *kwargs) {
21620 PyObject *resultobj;
21621 wxDateTime *arg1 = (wxDateTime *) 0 ;
21622 wxString result;
21623 PyObject * obj0 = 0 ;
21624 char *kwnames[] = {
21625 (char *) "self", NULL
21626 };
21627
21628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21631 {
21632 PyThreadState* __tstate = wxPyBeginAllowThreads();
21633 result = ((wxDateTime const *)arg1)->FormatISOTime();
21634
21635 wxPyEndAllowThreads(__tstate);
21636 if (PyErr_Occurred()) SWIG_fail;
21637 }
21638 {
21639 #if wxUSE_UNICODE
21640 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21641 #else
21642 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21643 #endif
21644 }
21645 return resultobj;
21646 fail:
21647 return NULL;
21648 }
21649
21650
21651 static PyObject * DateTime_swigregister(PyObject *, PyObject *args) {
21652 PyObject *obj;
21653 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21654 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21655 Py_INCREF(obj);
21656 return Py_BuildValue((char *)"");
21657 }
21658 static PyObject *_wrap_TimeSpan_Seconds(PyObject *, PyObject *args, PyObject *kwargs) {
21659 PyObject *resultobj;
21660 long arg1 ;
21661 wxTimeSpan result;
21662 PyObject * obj0 = 0 ;
21663 char *kwnames[] = {
21664 (char *) "sec", NULL
21665 };
21666
21667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21668 arg1 = (long)SWIG_As_long(obj0);
21669 if (PyErr_Occurred()) SWIG_fail;
21670 {
21671 PyThreadState* __tstate = wxPyBeginAllowThreads();
21672 result = wxTimeSpan::Seconds(arg1);
21673
21674 wxPyEndAllowThreads(__tstate);
21675 if (PyErr_Occurred()) SWIG_fail;
21676 }
21677 {
21678 wxTimeSpan * resultptr;
21679 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21680 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21681 }
21682 return resultobj;
21683 fail:
21684 return NULL;
21685 }
21686
21687
21688 static PyObject *_wrap_TimeSpan_Second(PyObject *, PyObject *args, PyObject *kwargs) {
21689 PyObject *resultobj;
21690 wxTimeSpan result;
21691 char *kwnames[] = {
21692 NULL
21693 };
21694
21695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21696 {
21697 PyThreadState* __tstate = wxPyBeginAllowThreads();
21698 result = wxTimeSpan::Second();
21699
21700 wxPyEndAllowThreads(__tstate);
21701 if (PyErr_Occurred()) SWIG_fail;
21702 }
21703 {
21704 wxTimeSpan * resultptr;
21705 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21706 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21707 }
21708 return resultobj;
21709 fail:
21710 return NULL;
21711 }
21712
21713
21714 static PyObject *_wrap_TimeSpan_Minutes(PyObject *, PyObject *args, PyObject *kwargs) {
21715 PyObject *resultobj;
21716 long arg1 ;
21717 wxTimeSpan result;
21718 PyObject * obj0 = 0 ;
21719 char *kwnames[] = {
21720 (char *) "min", NULL
21721 };
21722
21723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21724 arg1 = (long)SWIG_As_long(obj0);
21725 if (PyErr_Occurred()) SWIG_fail;
21726 {
21727 PyThreadState* __tstate = wxPyBeginAllowThreads();
21728 result = wxTimeSpan::Minutes(arg1);
21729
21730 wxPyEndAllowThreads(__tstate);
21731 if (PyErr_Occurred()) SWIG_fail;
21732 }
21733 {
21734 wxTimeSpan * resultptr;
21735 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21736 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21737 }
21738 return resultobj;
21739 fail:
21740 return NULL;
21741 }
21742
21743
21744 static PyObject *_wrap_TimeSpan_Minute(PyObject *, PyObject *args, PyObject *kwargs) {
21745 PyObject *resultobj;
21746 wxTimeSpan result;
21747 char *kwnames[] = {
21748 NULL
21749 };
21750
21751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21752 {
21753 PyThreadState* __tstate = wxPyBeginAllowThreads();
21754 result = wxTimeSpan::Minute();
21755
21756 wxPyEndAllowThreads(__tstate);
21757 if (PyErr_Occurred()) SWIG_fail;
21758 }
21759 {
21760 wxTimeSpan * resultptr;
21761 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21762 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21763 }
21764 return resultobj;
21765 fail:
21766 return NULL;
21767 }
21768
21769
21770 static PyObject *_wrap_TimeSpan_Hours(PyObject *, PyObject *args, PyObject *kwargs) {
21771 PyObject *resultobj;
21772 long arg1 ;
21773 wxTimeSpan result;
21774 PyObject * obj0 = 0 ;
21775 char *kwnames[] = {
21776 (char *) "hours", NULL
21777 };
21778
21779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21780 arg1 = (long)SWIG_As_long(obj0);
21781 if (PyErr_Occurred()) SWIG_fail;
21782 {
21783 PyThreadState* __tstate = wxPyBeginAllowThreads();
21784 result = wxTimeSpan::Hours(arg1);
21785
21786 wxPyEndAllowThreads(__tstate);
21787 if (PyErr_Occurred()) SWIG_fail;
21788 }
21789 {
21790 wxTimeSpan * resultptr;
21791 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21792 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21793 }
21794 return resultobj;
21795 fail:
21796 return NULL;
21797 }
21798
21799
21800 static PyObject *_wrap_TimeSpan_Hour(PyObject *, PyObject *args, PyObject *kwargs) {
21801 PyObject *resultobj;
21802 wxTimeSpan result;
21803 char *kwnames[] = {
21804 NULL
21805 };
21806
21807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21808 {
21809 PyThreadState* __tstate = wxPyBeginAllowThreads();
21810 result = wxTimeSpan::Hour();
21811
21812 wxPyEndAllowThreads(__tstate);
21813 if (PyErr_Occurred()) SWIG_fail;
21814 }
21815 {
21816 wxTimeSpan * resultptr;
21817 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21818 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21819 }
21820 return resultobj;
21821 fail:
21822 return NULL;
21823 }
21824
21825
21826 static PyObject *_wrap_TimeSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
21827 PyObject *resultobj;
21828 long arg1 ;
21829 wxTimeSpan result;
21830 PyObject * obj0 = 0 ;
21831 char *kwnames[] = {
21832 (char *) "days", NULL
21833 };
21834
21835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21836 arg1 = (long)SWIG_As_long(obj0);
21837 if (PyErr_Occurred()) SWIG_fail;
21838 {
21839 PyThreadState* __tstate = wxPyBeginAllowThreads();
21840 result = wxTimeSpan::Days(arg1);
21841
21842 wxPyEndAllowThreads(__tstate);
21843 if (PyErr_Occurred()) SWIG_fail;
21844 }
21845 {
21846 wxTimeSpan * resultptr;
21847 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21848 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21849 }
21850 return resultobj;
21851 fail:
21852 return NULL;
21853 }
21854
21855
21856 static PyObject *_wrap_TimeSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
21857 PyObject *resultobj;
21858 wxTimeSpan result;
21859 char *kwnames[] = {
21860 NULL
21861 };
21862
21863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21864 {
21865 PyThreadState* __tstate = wxPyBeginAllowThreads();
21866 result = wxTimeSpan::Day();
21867
21868 wxPyEndAllowThreads(__tstate);
21869 if (PyErr_Occurred()) SWIG_fail;
21870 }
21871 {
21872 wxTimeSpan * resultptr;
21873 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21874 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21875 }
21876 return resultobj;
21877 fail:
21878 return NULL;
21879 }
21880
21881
21882 static PyObject *_wrap_TimeSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
21883 PyObject *resultobj;
21884 long arg1 ;
21885 wxTimeSpan result;
21886 PyObject * obj0 = 0 ;
21887 char *kwnames[] = {
21888 (char *) "days", NULL
21889 };
21890
21891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21892 arg1 = (long)SWIG_As_long(obj0);
21893 if (PyErr_Occurred()) SWIG_fail;
21894 {
21895 PyThreadState* __tstate = wxPyBeginAllowThreads();
21896 result = wxTimeSpan::Weeks(arg1);
21897
21898 wxPyEndAllowThreads(__tstate);
21899 if (PyErr_Occurred()) SWIG_fail;
21900 }
21901 {
21902 wxTimeSpan * resultptr;
21903 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21904 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21905 }
21906 return resultobj;
21907 fail:
21908 return NULL;
21909 }
21910
21911
21912 static PyObject *_wrap_TimeSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
21913 PyObject *resultobj;
21914 wxTimeSpan result;
21915 char *kwnames[] = {
21916 NULL
21917 };
21918
21919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21920 {
21921 PyThreadState* __tstate = wxPyBeginAllowThreads();
21922 result = wxTimeSpan::Week();
21923
21924 wxPyEndAllowThreads(__tstate);
21925 if (PyErr_Occurred()) SWIG_fail;
21926 }
21927 {
21928 wxTimeSpan * resultptr;
21929 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21930 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21931 }
21932 return resultobj;
21933 fail:
21934 return NULL;
21935 }
21936
21937
21938 static PyObject *_wrap_new_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
21939 PyObject *resultobj;
21940 long arg1 = (long) 0 ;
21941 long arg2 = (long) 0 ;
21942 long arg3 = (long) 0 ;
21943 long arg4 = (long) 0 ;
21944 wxTimeSpan *result;
21945 PyObject * obj0 = 0 ;
21946 PyObject * obj1 = 0 ;
21947 PyObject * obj2 = 0 ;
21948 PyObject * obj3 = 0 ;
21949 char *kwnames[] = {
21950 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21951 };
21952
21953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21954 if (obj0) {
21955 arg1 = (long)SWIG_As_long(obj0);
21956 if (PyErr_Occurred()) SWIG_fail;
21957 }
21958 if (obj1) {
21959 arg2 = (long)SWIG_As_long(obj1);
21960 if (PyErr_Occurred()) SWIG_fail;
21961 }
21962 if (obj2) {
21963 arg3 = (long)SWIG_As_long(obj2);
21964 if (PyErr_Occurred()) SWIG_fail;
21965 }
21966 if (obj3) {
21967 arg4 = (long)SWIG_As_long(obj3);
21968 if (PyErr_Occurred()) SWIG_fail;
21969 }
21970 {
21971 PyThreadState* __tstate = wxPyBeginAllowThreads();
21972 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21973
21974 wxPyEndAllowThreads(__tstate);
21975 if (PyErr_Occurred()) SWIG_fail;
21976 }
21977 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21978 return resultobj;
21979 fail:
21980 return NULL;
21981 }
21982
21983
21984 static PyObject *_wrap_delete_TimeSpan(PyObject *, PyObject *args, PyObject *kwargs) {
21985 PyObject *resultobj;
21986 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21987 PyObject * obj0 = 0 ;
21988 char *kwnames[] = {
21989 (char *) "self", NULL
21990 };
21991
21992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21995 {
21996 PyThreadState* __tstate = wxPyBeginAllowThreads();
21997 delete arg1;
21998
21999 wxPyEndAllowThreads(__tstate);
22000 if (PyErr_Occurred()) SWIG_fail;
22001 }
22002 Py_INCREF(Py_None); resultobj = Py_None;
22003 return resultobj;
22004 fail:
22005 return NULL;
22006 }
22007
22008
22009 static PyObject *_wrap_TimeSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
22010 PyObject *resultobj;
22011 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22012 wxTimeSpan *arg2 = 0 ;
22013 wxTimeSpan *result;
22014 PyObject * obj0 = 0 ;
22015 PyObject * obj1 = 0 ;
22016 char *kwnames[] = {
22017 (char *) "self",(char *) "diff", NULL
22018 };
22019
22020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
22021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22023 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22024 SWIG_POINTER_EXCEPTION | 0)) == -1)
22025 SWIG_fail;
22026 if (arg2 == NULL) {
22027 PyErr_SetString(PyExc_TypeError,"null reference");
22028 SWIG_fail;
22029 }
22030 {
22031 PyThreadState* __tstate = wxPyBeginAllowThreads();
22032 {
22033 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
22034 result = (wxTimeSpan *) &_result_ref;
22035 }
22036
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22041 return resultobj;
22042 fail:
22043 return NULL;
22044 }
22045
22046
22047 static PyObject *_wrap_TimeSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
22048 PyObject *resultobj;
22049 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22050 wxTimeSpan *arg2 = 0 ;
22051 wxTimeSpan *result;
22052 PyObject * obj0 = 0 ;
22053 PyObject * obj1 = 0 ;
22054 char *kwnames[] = {
22055 (char *) "self",(char *) "diff", NULL
22056 };
22057
22058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
22059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22061 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22062 SWIG_POINTER_EXCEPTION | 0)) == -1)
22063 SWIG_fail;
22064 if (arg2 == NULL) {
22065 PyErr_SetString(PyExc_TypeError,"null reference");
22066 SWIG_fail;
22067 }
22068 {
22069 PyThreadState* __tstate = wxPyBeginAllowThreads();
22070 {
22071 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
22072 result = (wxTimeSpan *) &_result_ref;
22073 }
22074
22075 wxPyEndAllowThreads(__tstate);
22076 if (PyErr_Occurred()) SWIG_fail;
22077 }
22078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22079 return resultobj;
22080 fail:
22081 return NULL;
22082 }
22083
22084
22085 static PyObject *_wrap_TimeSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
22086 PyObject *resultobj;
22087 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22088 int arg2 ;
22089 wxTimeSpan *result;
22090 PyObject * obj0 = 0 ;
22091 PyObject * obj1 = 0 ;
22092 char *kwnames[] = {
22093 (char *) "self",(char *) "n", NULL
22094 };
22095
22096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
22097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22099 arg2 = (int)SWIG_As_int(obj1);
22100 if (PyErr_Occurred()) SWIG_fail;
22101 {
22102 PyThreadState* __tstate = wxPyBeginAllowThreads();
22103 {
22104 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
22105 result = (wxTimeSpan *) &_result_ref;
22106 }
22107
22108 wxPyEndAllowThreads(__tstate);
22109 if (PyErr_Occurred()) SWIG_fail;
22110 }
22111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22112 return resultobj;
22113 fail:
22114 return NULL;
22115 }
22116
22117
22118 static PyObject *_wrap_TimeSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
22119 PyObject *resultobj;
22120 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22121 wxTimeSpan *result;
22122 PyObject * obj0 = 0 ;
22123 char *kwnames[] = {
22124 (char *) "self", NULL
22125 };
22126
22127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
22128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22130 {
22131 PyThreadState* __tstate = wxPyBeginAllowThreads();
22132 {
22133 wxTimeSpan &_result_ref = (arg1)->Neg();
22134 result = (wxTimeSpan *) &_result_ref;
22135 }
22136
22137 wxPyEndAllowThreads(__tstate);
22138 if (PyErr_Occurred()) SWIG_fail;
22139 }
22140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22141 return resultobj;
22142 fail:
22143 return NULL;
22144 }
22145
22146
22147 static PyObject *_wrap_TimeSpan_Abs(PyObject *, PyObject *args, PyObject *kwargs) {
22148 PyObject *resultobj;
22149 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22150 wxTimeSpan result;
22151 PyObject * obj0 = 0 ;
22152 char *kwnames[] = {
22153 (char *) "self", NULL
22154 };
22155
22156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
22157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22159 {
22160 PyThreadState* __tstate = wxPyBeginAllowThreads();
22161 result = ((wxTimeSpan const *)arg1)->Abs();
22162
22163 wxPyEndAllowThreads(__tstate);
22164 if (PyErr_Occurred()) SWIG_fail;
22165 }
22166 {
22167 wxTimeSpan * resultptr;
22168 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22169 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22170 }
22171 return resultobj;
22172 fail:
22173 return NULL;
22174 }
22175
22176
22177 static PyObject *_wrap_TimeSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
22178 PyObject *resultobj;
22179 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22180 wxTimeSpan *arg2 = 0 ;
22181 wxTimeSpan *result;
22182 PyObject * obj0 = 0 ;
22183 PyObject * obj1 = 0 ;
22184 char *kwnames[] = {
22185 (char *) "self",(char *) "diff", NULL
22186 };
22187
22188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
22189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22190 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22191 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22192 SWIG_POINTER_EXCEPTION | 0)) == -1)
22193 SWIG_fail;
22194 if (arg2 == NULL) {
22195 PyErr_SetString(PyExc_TypeError,"null reference");
22196 SWIG_fail;
22197 }
22198 {
22199 PyThreadState* __tstate = wxPyBeginAllowThreads();
22200 {
22201 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
22202 result = (wxTimeSpan *) &_result_ref;
22203 }
22204
22205 wxPyEndAllowThreads(__tstate);
22206 if (PyErr_Occurred()) SWIG_fail;
22207 }
22208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22209 return resultobj;
22210 fail:
22211 return NULL;
22212 }
22213
22214
22215 static PyObject *_wrap_TimeSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
22216 PyObject *resultobj;
22217 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22218 wxTimeSpan *arg2 = 0 ;
22219 wxTimeSpan *result;
22220 PyObject * obj0 = 0 ;
22221 PyObject * obj1 = 0 ;
22222 char *kwnames[] = {
22223 (char *) "self",(char *) "diff", NULL
22224 };
22225
22226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
22227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22228 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22229 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22230 SWIG_POINTER_EXCEPTION | 0)) == -1)
22231 SWIG_fail;
22232 if (arg2 == NULL) {
22233 PyErr_SetString(PyExc_TypeError,"null reference");
22234 SWIG_fail;
22235 }
22236 {
22237 PyThreadState* __tstate = wxPyBeginAllowThreads();
22238 {
22239 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
22240 result = (wxTimeSpan *) &_result_ref;
22241 }
22242
22243 wxPyEndAllowThreads(__tstate);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22247 return resultobj;
22248 fail:
22249 return NULL;
22250 }
22251
22252
22253 static PyObject *_wrap_TimeSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
22254 PyObject *resultobj;
22255 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22256 int arg2 ;
22257 wxTimeSpan *result;
22258 PyObject * obj0 = 0 ;
22259 PyObject * obj1 = 0 ;
22260 char *kwnames[] = {
22261 (char *) "self",(char *) "n", NULL
22262 };
22263
22264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
22265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22266 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22267 arg2 = (int)SWIG_As_int(obj1);
22268 if (PyErr_Occurred()) SWIG_fail;
22269 {
22270 PyThreadState* __tstate = wxPyBeginAllowThreads();
22271 {
22272 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
22273 result = (wxTimeSpan *) &_result_ref;
22274 }
22275
22276 wxPyEndAllowThreads(__tstate);
22277 if (PyErr_Occurred()) SWIG_fail;
22278 }
22279 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
22280 return resultobj;
22281 fail:
22282 return NULL;
22283 }
22284
22285
22286 static PyObject *_wrap_TimeSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
22287 PyObject *resultobj;
22288 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22289 wxTimeSpan *result;
22290 PyObject * obj0 = 0 ;
22291 char *kwnames[] = {
22292 (char *) "self", NULL
22293 };
22294
22295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22298 {
22299 PyThreadState* __tstate = wxPyBeginAllowThreads();
22300 {
22301 wxTimeSpan &_result_ref = (arg1)->operator -();
22302 result = (wxTimeSpan *) &_result_ref;
22303 }
22304
22305 wxPyEndAllowThreads(__tstate);
22306 if (PyErr_Occurred()) SWIG_fail;
22307 }
22308 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22309 return resultobj;
22310 fail:
22311 return NULL;
22312 }
22313
22314
22315 static PyObject *_wrap_TimeSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
22316 PyObject *resultobj;
22317 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22318 wxTimeSpan *arg2 = 0 ;
22319 wxTimeSpan result;
22320 PyObject * obj0 = 0 ;
22321 PyObject * obj1 = 0 ;
22322 char *kwnames[] = {
22323 (char *) "self",(char *) "other", NULL
22324 };
22325
22326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22330 SWIG_POINTER_EXCEPTION | 0)) == -1)
22331 SWIG_fail;
22332 if (arg2 == NULL) {
22333 PyErr_SetString(PyExc_TypeError,"null reference");
22334 SWIG_fail;
22335 }
22336 {
22337 PyThreadState* __tstate = wxPyBeginAllowThreads();
22338 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22339
22340 wxPyEndAllowThreads(__tstate);
22341 if (PyErr_Occurred()) SWIG_fail;
22342 }
22343 {
22344 wxTimeSpan * resultptr;
22345 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22346 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22347 }
22348 return resultobj;
22349 fail:
22350 return NULL;
22351 }
22352
22353
22354 static PyObject *_wrap_TimeSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
22355 PyObject *resultobj;
22356 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22357 wxTimeSpan *arg2 = 0 ;
22358 wxTimeSpan result;
22359 PyObject * obj0 = 0 ;
22360 PyObject * obj1 = 0 ;
22361 char *kwnames[] = {
22362 (char *) "self",(char *) "other", NULL
22363 };
22364
22365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22368 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22369 SWIG_POINTER_EXCEPTION | 0)) == -1)
22370 SWIG_fail;
22371 if (arg2 == NULL) {
22372 PyErr_SetString(PyExc_TypeError,"null reference");
22373 SWIG_fail;
22374 }
22375 {
22376 PyThreadState* __tstate = wxPyBeginAllowThreads();
22377 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22378
22379 wxPyEndAllowThreads(__tstate);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 }
22382 {
22383 wxTimeSpan * resultptr;
22384 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22385 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22386 }
22387 return resultobj;
22388 fail:
22389 return NULL;
22390 }
22391
22392
22393 static PyObject *_wrap_TimeSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
22394 PyObject *resultobj;
22395 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22396 int arg2 ;
22397 wxTimeSpan result;
22398 PyObject * obj0 = 0 ;
22399 PyObject * obj1 = 0 ;
22400 char *kwnames[] = {
22401 (char *) "self",(char *) "n", NULL
22402 };
22403
22404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22407 arg2 = (int)SWIG_As_int(obj1);
22408 if (PyErr_Occurred()) SWIG_fail;
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 result = wxTimeSpan___mul__(arg1,arg2);
22412
22413 wxPyEndAllowThreads(__tstate);
22414 if (PyErr_Occurred()) SWIG_fail;
22415 }
22416 {
22417 wxTimeSpan * resultptr;
22418 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22419 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22420 }
22421 return resultobj;
22422 fail:
22423 return NULL;
22424 }
22425
22426
22427 static PyObject *_wrap_TimeSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
22428 PyObject *resultobj;
22429 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22430 int arg2 ;
22431 wxTimeSpan result;
22432 PyObject * obj0 = 0 ;
22433 PyObject * obj1 = 0 ;
22434 char *kwnames[] = {
22435 (char *) "self",(char *) "n", NULL
22436 };
22437
22438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22441 arg2 = (int)SWIG_As_int(obj1);
22442 if (PyErr_Occurred()) SWIG_fail;
22443 {
22444 PyThreadState* __tstate = wxPyBeginAllowThreads();
22445 result = wxTimeSpan___rmul__(arg1,arg2);
22446
22447 wxPyEndAllowThreads(__tstate);
22448 if (PyErr_Occurred()) SWIG_fail;
22449 }
22450 {
22451 wxTimeSpan * resultptr;
22452 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22453 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22454 }
22455 return resultobj;
22456 fail:
22457 return NULL;
22458 }
22459
22460
22461 static PyObject *_wrap_TimeSpan___lt__(PyObject *, PyObject *args, PyObject *kwargs) {
22462 PyObject *resultobj;
22463 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22464 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22465 bool result;
22466 PyObject * obj0 = 0 ;
22467 PyObject * obj1 = 0 ;
22468 char *kwnames[] = {
22469 (char *) "self",(char *) "other", NULL
22470 };
22471
22472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22475 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22477 {
22478 PyThreadState* __tstate = wxPyBeginAllowThreads();
22479 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22480
22481 wxPyEndAllowThreads(__tstate);
22482 if (PyErr_Occurred()) SWIG_fail;
22483 }
22484 {
22485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22486 }
22487 return resultobj;
22488 fail:
22489 return NULL;
22490 }
22491
22492
22493 static PyObject *_wrap_TimeSpan___le__(PyObject *, PyObject *args, PyObject *kwargs) {
22494 PyObject *resultobj;
22495 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22496 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22497 bool result;
22498 PyObject * obj0 = 0 ;
22499 PyObject * obj1 = 0 ;
22500 char *kwnames[] = {
22501 (char *) "self",(char *) "other", NULL
22502 };
22503
22504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22507 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22509 {
22510 PyThreadState* __tstate = wxPyBeginAllowThreads();
22511 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22512
22513 wxPyEndAllowThreads(__tstate);
22514 if (PyErr_Occurred()) SWIG_fail;
22515 }
22516 {
22517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22518 }
22519 return resultobj;
22520 fail:
22521 return NULL;
22522 }
22523
22524
22525 static PyObject *_wrap_TimeSpan___gt__(PyObject *, PyObject *args, PyObject *kwargs) {
22526 PyObject *resultobj;
22527 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22528 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22529 bool result;
22530 PyObject * obj0 = 0 ;
22531 PyObject * obj1 = 0 ;
22532 char *kwnames[] = {
22533 (char *) "self",(char *) "other", NULL
22534 };
22535
22536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22539 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22541 {
22542 PyThreadState* __tstate = wxPyBeginAllowThreads();
22543 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22544
22545 wxPyEndAllowThreads(__tstate);
22546 if (PyErr_Occurred()) SWIG_fail;
22547 }
22548 {
22549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22550 }
22551 return resultobj;
22552 fail:
22553 return NULL;
22554 }
22555
22556
22557 static PyObject *_wrap_TimeSpan___ge__(PyObject *, PyObject *args, PyObject *kwargs) {
22558 PyObject *resultobj;
22559 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22560 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22561 bool result;
22562 PyObject * obj0 = 0 ;
22563 PyObject * obj1 = 0 ;
22564 char *kwnames[] = {
22565 (char *) "self",(char *) "other", NULL
22566 };
22567
22568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22571 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22573 {
22574 PyThreadState* __tstate = wxPyBeginAllowThreads();
22575 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22576
22577 wxPyEndAllowThreads(__tstate);
22578 if (PyErr_Occurred()) SWIG_fail;
22579 }
22580 {
22581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22582 }
22583 return resultobj;
22584 fail:
22585 return NULL;
22586 }
22587
22588
22589 static PyObject *_wrap_TimeSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
22590 PyObject *resultobj;
22591 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22592 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22593 bool result;
22594 PyObject * obj0 = 0 ;
22595 PyObject * obj1 = 0 ;
22596 char *kwnames[] = {
22597 (char *) "self",(char *) "other", NULL
22598 };
22599
22600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22603 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22605 {
22606 PyThreadState* __tstate = wxPyBeginAllowThreads();
22607 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22608
22609 wxPyEndAllowThreads(__tstate);
22610 if (PyErr_Occurred()) SWIG_fail;
22611 }
22612 {
22613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22614 }
22615 return resultobj;
22616 fail:
22617 return NULL;
22618 }
22619
22620
22621 static PyObject *_wrap_TimeSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
22622 PyObject *resultobj;
22623 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22624 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22625 bool result;
22626 PyObject * obj0 = 0 ;
22627 PyObject * obj1 = 0 ;
22628 char *kwnames[] = {
22629 (char *) "self",(char *) "other", NULL
22630 };
22631
22632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22637 {
22638 PyThreadState* __tstate = wxPyBeginAllowThreads();
22639 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22640
22641 wxPyEndAllowThreads(__tstate);
22642 if (PyErr_Occurred()) SWIG_fail;
22643 }
22644 {
22645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22646 }
22647 return resultobj;
22648 fail:
22649 return NULL;
22650 }
22651
22652
22653 static PyObject *_wrap_TimeSpan_IsNull(PyObject *, PyObject *args, PyObject *kwargs) {
22654 PyObject *resultobj;
22655 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22656 bool result;
22657 PyObject * obj0 = 0 ;
22658 char *kwnames[] = {
22659 (char *) "self", NULL
22660 };
22661
22662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22665 {
22666 PyThreadState* __tstate = wxPyBeginAllowThreads();
22667 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22668
22669 wxPyEndAllowThreads(__tstate);
22670 if (PyErr_Occurred()) SWIG_fail;
22671 }
22672 {
22673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22674 }
22675 return resultobj;
22676 fail:
22677 return NULL;
22678 }
22679
22680
22681 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *, PyObject *args, PyObject *kwargs) {
22682 PyObject *resultobj;
22683 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22684 bool result;
22685 PyObject * obj0 = 0 ;
22686 char *kwnames[] = {
22687 (char *) "self", NULL
22688 };
22689
22690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22693 {
22694 PyThreadState* __tstate = wxPyBeginAllowThreads();
22695 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22696
22697 wxPyEndAllowThreads(__tstate);
22698 if (PyErr_Occurred()) SWIG_fail;
22699 }
22700 {
22701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22702 }
22703 return resultobj;
22704 fail:
22705 return NULL;
22706 }
22707
22708
22709 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *, PyObject *args, PyObject *kwargs) {
22710 PyObject *resultobj;
22711 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22712 bool result;
22713 PyObject * obj0 = 0 ;
22714 char *kwnames[] = {
22715 (char *) "self", NULL
22716 };
22717
22718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22721 {
22722 PyThreadState* __tstate = wxPyBeginAllowThreads();
22723 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22724
22725 wxPyEndAllowThreads(__tstate);
22726 if (PyErr_Occurred()) SWIG_fail;
22727 }
22728 {
22729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22730 }
22731 return resultobj;
22732 fail:
22733 return NULL;
22734 }
22735
22736
22737 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *, PyObject *args, PyObject *kwargs) {
22738 PyObject *resultobj;
22739 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22740 wxTimeSpan *arg2 = 0 ;
22741 bool result;
22742 PyObject * obj0 = 0 ;
22743 PyObject * obj1 = 0 ;
22744 char *kwnames[] = {
22745 (char *) "self",(char *) "ts", NULL
22746 };
22747
22748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22751 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22752 SWIG_POINTER_EXCEPTION | 0)) == -1)
22753 SWIG_fail;
22754 if (arg2 == NULL) {
22755 PyErr_SetString(PyExc_TypeError,"null reference");
22756 SWIG_fail;
22757 }
22758 {
22759 PyThreadState* __tstate = wxPyBeginAllowThreads();
22760 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22761
22762 wxPyEndAllowThreads(__tstate);
22763 if (PyErr_Occurred()) SWIG_fail;
22764 }
22765 {
22766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22767 }
22768 return resultobj;
22769 fail:
22770 return NULL;
22771 }
22772
22773
22774 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *, PyObject *args, PyObject *kwargs) {
22775 PyObject *resultobj;
22776 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22777 wxTimeSpan *arg2 = 0 ;
22778 bool result;
22779 PyObject * obj0 = 0 ;
22780 PyObject * obj1 = 0 ;
22781 char *kwnames[] = {
22782 (char *) "self",(char *) "ts", NULL
22783 };
22784
22785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22789 SWIG_POINTER_EXCEPTION | 0)) == -1)
22790 SWIG_fail;
22791 if (arg2 == NULL) {
22792 PyErr_SetString(PyExc_TypeError,"null reference");
22793 SWIG_fail;
22794 }
22795 {
22796 PyThreadState* __tstate = wxPyBeginAllowThreads();
22797 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22798
22799 wxPyEndAllowThreads(__tstate);
22800 if (PyErr_Occurred()) SWIG_fail;
22801 }
22802 {
22803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22804 }
22805 return resultobj;
22806 fail:
22807 return NULL;
22808 }
22809
22810
22811 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *, PyObject *args, PyObject *kwargs) {
22812 PyObject *resultobj;
22813 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22814 wxTimeSpan *arg2 = 0 ;
22815 bool result;
22816 PyObject * obj0 = 0 ;
22817 PyObject * obj1 = 0 ;
22818 char *kwnames[] = {
22819 (char *) "self",(char *) "t", NULL
22820 };
22821
22822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22825 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22826 SWIG_POINTER_EXCEPTION | 0)) == -1)
22827 SWIG_fail;
22828 if (arg2 == NULL) {
22829 PyErr_SetString(PyExc_TypeError,"null reference");
22830 SWIG_fail;
22831 }
22832 {
22833 PyThreadState* __tstate = wxPyBeginAllowThreads();
22834 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22835
22836 wxPyEndAllowThreads(__tstate);
22837 if (PyErr_Occurred()) SWIG_fail;
22838 }
22839 {
22840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22841 }
22842 return resultobj;
22843 fail:
22844 return NULL;
22845 }
22846
22847
22848 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
22849 PyObject *resultobj;
22850 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22851 int result;
22852 PyObject * obj0 = 0 ;
22853 char *kwnames[] = {
22854 (char *) "self", NULL
22855 };
22856
22857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22860 {
22861 PyThreadState* __tstate = wxPyBeginAllowThreads();
22862 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22863
22864 wxPyEndAllowThreads(__tstate);
22865 if (PyErr_Occurred()) SWIG_fail;
22866 }
22867 resultobj = SWIG_From_int((int)result);
22868 return resultobj;
22869 fail:
22870 return NULL;
22871 }
22872
22873
22874 static PyObject *_wrap_TimeSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
22875 PyObject *resultobj;
22876 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22877 int result;
22878 PyObject * obj0 = 0 ;
22879 char *kwnames[] = {
22880 (char *) "self", NULL
22881 };
22882
22883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22886 {
22887 PyThreadState* __tstate = wxPyBeginAllowThreads();
22888 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22889
22890 wxPyEndAllowThreads(__tstate);
22891 if (PyErr_Occurred()) SWIG_fail;
22892 }
22893 resultobj = SWIG_From_int((int)result);
22894 return resultobj;
22895 fail:
22896 return NULL;
22897 }
22898
22899
22900 static PyObject *_wrap_TimeSpan_GetHours(PyObject *, PyObject *args, PyObject *kwargs) {
22901 PyObject *resultobj;
22902 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22903 int result;
22904 PyObject * obj0 = 0 ;
22905 char *kwnames[] = {
22906 (char *) "self", NULL
22907 };
22908
22909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22912 {
22913 PyThreadState* __tstate = wxPyBeginAllowThreads();
22914 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22915
22916 wxPyEndAllowThreads(__tstate);
22917 if (PyErr_Occurred()) SWIG_fail;
22918 }
22919 resultobj = SWIG_From_int((int)result);
22920 return resultobj;
22921 fail:
22922 return NULL;
22923 }
22924
22925
22926 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *, PyObject *args, PyObject *kwargs) {
22927 PyObject *resultobj;
22928 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22929 int result;
22930 PyObject * obj0 = 0 ;
22931 char *kwnames[] = {
22932 (char *) "self", NULL
22933 };
22934
22935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22938 {
22939 PyThreadState* __tstate = wxPyBeginAllowThreads();
22940 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22941
22942 wxPyEndAllowThreads(__tstate);
22943 if (PyErr_Occurred()) SWIG_fail;
22944 }
22945 resultobj = SWIG_From_int((int)result);
22946 return resultobj;
22947 fail:
22948 return NULL;
22949 }
22950
22951
22952 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *, PyObject *args, PyObject *kwargs) {
22953 PyObject *resultobj;
22954 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22955 wxLongLong result;
22956 PyObject * obj0 = 0 ;
22957 char *kwnames[] = {
22958 (char *) "self", NULL
22959 };
22960
22961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22964 {
22965 PyThreadState* __tstate = wxPyBeginAllowThreads();
22966 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22967
22968 wxPyEndAllowThreads(__tstate);
22969 if (PyErr_Occurred()) SWIG_fail;
22970 }
22971 {
22972 PyObject *hi, *lo, *shifter, *shifted;
22973 hi = PyLong_FromLong( (&result)->GetHi() );
22974 lo = PyLong_FromLong( (&result)->GetLo() );
22975 shifter = PyLong_FromLong(32);
22976 shifted = PyNumber_Lshift(hi, shifter);
22977 resultobj = PyNumber_Or(shifted, lo);
22978 Py_DECREF(hi);
22979 Py_DECREF(lo);
22980 Py_DECREF(shifter);
22981 Py_DECREF(shifted);
22982 }
22983 return resultobj;
22984 fail:
22985 return NULL;
22986 }
22987
22988
22989 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *, PyObject *args, PyObject *kwargs) {
22990 PyObject *resultobj;
22991 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22992 wxLongLong result;
22993 PyObject * obj0 = 0 ;
22994 char *kwnames[] = {
22995 (char *) "self", NULL
22996 };
22997
22998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23001 {
23002 PyThreadState* __tstate = wxPyBeginAllowThreads();
23003 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
23004
23005 wxPyEndAllowThreads(__tstate);
23006 if (PyErr_Occurred()) SWIG_fail;
23007 }
23008 {
23009 PyObject *hi, *lo, *shifter, *shifted;
23010 hi = PyLong_FromLong( (&result)->GetHi() );
23011 lo = PyLong_FromLong( (&result)->GetLo() );
23012 shifter = PyLong_FromLong(32);
23013 shifted = PyNumber_Lshift(hi, shifter);
23014 resultobj = PyNumber_Or(shifted, lo);
23015 Py_DECREF(hi);
23016 Py_DECREF(lo);
23017 Py_DECREF(shifter);
23018 Py_DECREF(shifted);
23019 }
23020 return resultobj;
23021 fail:
23022 return NULL;
23023 }
23024
23025
23026 static PyObject *_wrap_TimeSpan_Format(PyObject *, PyObject *args, PyObject *kwargs) {
23027 PyObject *resultobj;
23028 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
23029 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
23030 wxString *arg2 = (wxString *) &arg2_defvalue ;
23031 wxString result;
23032 bool temp2 = false ;
23033 PyObject * obj0 = 0 ;
23034 PyObject * obj1 = 0 ;
23035 char *kwnames[] = {
23036 (char *) "self",(char *) "format", NULL
23037 };
23038
23039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
23040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
23041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23042 if (obj1) {
23043 {
23044 arg2 = wxString_in_helper(obj1);
23045 if (arg2 == NULL) SWIG_fail;
23046 temp2 = true;
23047 }
23048 }
23049 {
23050 PyThreadState* __tstate = wxPyBeginAllowThreads();
23051 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
23052
23053 wxPyEndAllowThreads(__tstate);
23054 if (PyErr_Occurred()) SWIG_fail;
23055 }
23056 {
23057 #if wxUSE_UNICODE
23058 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23059 #else
23060 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23061 #endif
23062 }
23063 {
23064 if (temp2)
23065 delete arg2;
23066 }
23067 return resultobj;
23068 fail:
23069 {
23070 if (temp2)
23071 delete arg2;
23072 }
23073 return NULL;
23074 }
23075
23076
23077 static PyObject * TimeSpan_swigregister(PyObject *, PyObject *args) {
23078 PyObject *obj;
23079 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23080 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
23081 Py_INCREF(obj);
23082 return Py_BuildValue((char *)"");
23083 }
23084 static PyObject *_wrap_new_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
23085 PyObject *resultobj;
23086 int arg1 = (int) 0 ;
23087 int arg2 = (int) 0 ;
23088 int arg3 = (int) 0 ;
23089 int arg4 = (int) 0 ;
23090 wxDateSpan *result;
23091 PyObject * obj0 = 0 ;
23092 PyObject * obj1 = 0 ;
23093 PyObject * obj2 = 0 ;
23094 PyObject * obj3 = 0 ;
23095 char *kwnames[] = {
23096 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
23097 };
23098
23099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23100 if (obj0) {
23101 arg1 = (int)SWIG_As_int(obj0);
23102 if (PyErr_Occurred()) SWIG_fail;
23103 }
23104 if (obj1) {
23105 arg2 = (int)SWIG_As_int(obj1);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 if (obj2) {
23109 arg3 = (int)SWIG_As_int(obj2);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 if (obj3) {
23113 arg4 = (int)SWIG_As_int(obj3);
23114 if (PyErr_Occurred()) SWIG_fail;
23115 }
23116 {
23117 PyThreadState* __tstate = wxPyBeginAllowThreads();
23118 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
23119
23120 wxPyEndAllowThreads(__tstate);
23121 if (PyErr_Occurred()) SWIG_fail;
23122 }
23123 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23124 return resultobj;
23125 fail:
23126 return NULL;
23127 }
23128
23129
23130 static PyObject *_wrap_delete_DateSpan(PyObject *, PyObject *args, PyObject *kwargs) {
23131 PyObject *resultobj;
23132 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23133 PyObject * obj0 = 0 ;
23134 char *kwnames[] = {
23135 (char *) "self", NULL
23136 };
23137
23138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
23139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23141 {
23142 PyThreadState* __tstate = wxPyBeginAllowThreads();
23143 delete arg1;
23144
23145 wxPyEndAllowThreads(__tstate);
23146 if (PyErr_Occurred()) SWIG_fail;
23147 }
23148 Py_INCREF(Py_None); resultobj = Py_None;
23149 return resultobj;
23150 fail:
23151 return NULL;
23152 }
23153
23154
23155 static PyObject *_wrap_DateSpan_Days(PyObject *, PyObject *args, PyObject *kwargs) {
23156 PyObject *resultobj;
23157 int arg1 ;
23158 wxDateSpan result;
23159 PyObject * obj0 = 0 ;
23160 char *kwnames[] = {
23161 (char *) "days", NULL
23162 };
23163
23164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
23165 arg1 = (int)SWIG_As_int(obj0);
23166 if (PyErr_Occurred()) SWIG_fail;
23167 {
23168 PyThreadState* __tstate = wxPyBeginAllowThreads();
23169 result = wxDateSpan::Days(arg1);
23170
23171 wxPyEndAllowThreads(__tstate);
23172 if (PyErr_Occurred()) SWIG_fail;
23173 }
23174 {
23175 wxDateSpan * resultptr;
23176 resultptr = new wxDateSpan((wxDateSpan &) result);
23177 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23178 }
23179 return resultobj;
23180 fail:
23181 return NULL;
23182 }
23183
23184
23185 static PyObject *_wrap_DateSpan_Day(PyObject *, PyObject *args, PyObject *kwargs) {
23186 PyObject *resultobj;
23187 wxDateSpan result;
23188 char *kwnames[] = {
23189 NULL
23190 };
23191
23192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
23193 {
23194 PyThreadState* __tstate = wxPyBeginAllowThreads();
23195 result = wxDateSpan::Day();
23196
23197 wxPyEndAllowThreads(__tstate);
23198 if (PyErr_Occurred()) SWIG_fail;
23199 }
23200 {
23201 wxDateSpan * resultptr;
23202 resultptr = new wxDateSpan((wxDateSpan &) result);
23203 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23204 }
23205 return resultobj;
23206 fail:
23207 return NULL;
23208 }
23209
23210
23211 static PyObject *_wrap_DateSpan_Weeks(PyObject *, PyObject *args, PyObject *kwargs) {
23212 PyObject *resultobj;
23213 int arg1 ;
23214 wxDateSpan result;
23215 PyObject * obj0 = 0 ;
23216 char *kwnames[] = {
23217 (char *) "weeks", NULL
23218 };
23219
23220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
23221 arg1 = (int)SWIG_As_int(obj0);
23222 if (PyErr_Occurred()) SWIG_fail;
23223 {
23224 PyThreadState* __tstate = wxPyBeginAllowThreads();
23225 result = wxDateSpan::Weeks(arg1);
23226
23227 wxPyEndAllowThreads(__tstate);
23228 if (PyErr_Occurred()) SWIG_fail;
23229 }
23230 {
23231 wxDateSpan * resultptr;
23232 resultptr = new wxDateSpan((wxDateSpan &) result);
23233 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23234 }
23235 return resultobj;
23236 fail:
23237 return NULL;
23238 }
23239
23240
23241 static PyObject *_wrap_DateSpan_Week(PyObject *, PyObject *args, PyObject *kwargs) {
23242 PyObject *resultobj;
23243 wxDateSpan result;
23244 char *kwnames[] = {
23245 NULL
23246 };
23247
23248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
23249 {
23250 PyThreadState* __tstate = wxPyBeginAllowThreads();
23251 result = wxDateSpan::Week();
23252
23253 wxPyEndAllowThreads(__tstate);
23254 if (PyErr_Occurred()) SWIG_fail;
23255 }
23256 {
23257 wxDateSpan * resultptr;
23258 resultptr = new wxDateSpan((wxDateSpan &) result);
23259 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23260 }
23261 return resultobj;
23262 fail:
23263 return NULL;
23264 }
23265
23266
23267 static PyObject *_wrap_DateSpan_Months(PyObject *, PyObject *args, PyObject *kwargs) {
23268 PyObject *resultobj;
23269 int arg1 ;
23270 wxDateSpan result;
23271 PyObject * obj0 = 0 ;
23272 char *kwnames[] = {
23273 (char *) "mon", NULL
23274 };
23275
23276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
23277 arg1 = (int)SWIG_As_int(obj0);
23278 if (PyErr_Occurred()) SWIG_fail;
23279 {
23280 PyThreadState* __tstate = wxPyBeginAllowThreads();
23281 result = wxDateSpan::Months(arg1);
23282
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 {
23287 wxDateSpan * resultptr;
23288 resultptr = new wxDateSpan((wxDateSpan &) result);
23289 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23290 }
23291 return resultobj;
23292 fail:
23293 return NULL;
23294 }
23295
23296
23297 static PyObject *_wrap_DateSpan_Month(PyObject *, PyObject *args, PyObject *kwargs) {
23298 PyObject *resultobj;
23299 wxDateSpan result;
23300 char *kwnames[] = {
23301 NULL
23302 };
23303
23304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23305 {
23306 PyThreadState* __tstate = wxPyBeginAllowThreads();
23307 result = wxDateSpan::Month();
23308
23309 wxPyEndAllowThreads(__tstate);
23310 if (PyErr_Occurred()) SWIG_fail;
23311 }
23312 {
23313 wxDateSpan * resultptr;
23314 resultptr = new wxDateSpan((wxDateSpan &) result);
23315 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23316 }
23317 return resultobj;
23318 fail:
23319 return NULL;
23320 }
23321
23322
23323 static PyObject *_wrap_DateSpan_Years(PyObject *, PyObject *args, PyObject *kwargs) {
23324 PyObject *resultobj;
23325 int arg1 ;
23326 wxDateSpan result;
23327 PyObject * obj0 = 0 ;
23328 char *kwnames[] = {
23329 (char *) "years", NULL
23330 };
23331
23332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
23333 arg1 = (int)SWIG_As_int(obj0);
23334 if (PyErr_Occurred()) SWIG_fail;
23335 {
23336 PyThreadState* __tstate = wxPyBeginAllowThreads();
23337 result = wxDateSpan::Years(arg1);
23338
23339 wxPyEndAllowThreads(__tstate);
23340 if (PyErr_Occurred()) SWIG_fail;
23341 }
23342 {
23343 wxDateSpan * resultptr;
23344 resultptr = new wxDateSpan((wxDateSpan &) result);
23345 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23346 }
23347 return resultobj;
23348 fail:
23349 return NULL;
23350 }
23351
23352
23353 static PyObject *_wrap_DateSpan_Year(PyObject *, PyObject *args, PyObject *kwargs) {
23354 PyObject *resultobj;
23355 wxDateSpan result;
23356 char *kwnames[] = {
23357 NULL
23358 };
23359
23360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23361 {
23362 PyThreadState* __tstate = wxPyBeginAllowThreads();
23363 result = wxDateSpan::Year();
23364
23365 wxPyEndAllowThreads(__tstate);
23366 if (PyErr_Occurred()) SWIG_fail;
23367 }
23368 {
23369 wxDateSpan * resultptr;
23370 resultptr = new wxDateSpan((wxDateSpan &) result);
23371 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23372 }
23373 return resultobj;
23374 fail:
23375 return NULL;
23376 }
23377
23378
23379 static PyObject *_wrap_DateSpan_SetYears(PyObject *, PyObject *args, PyObject *kwargs) {
23380 PyObject *resultobj;
23381 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23382 int arg2 ;
23383 wxDateSpan *result;
23384 PyObject * obj0 = 0 ;
23385 PyObject * obj1 = 0 ;
23386 char *kwnames[] = {
23387 (char *) "self",(char *) "n", NULL
23388 };
23389
23390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23393 arg2 = (int)SWIG_As_int(obj1);
23394 if (PyErr_Occurred()) SWIG_fail;
23395 {
23396 PyThreadState* __tstate = wxPyBeginAllowThreads();
23397 {
23398 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23399 result = (wxDateSpan *) &_result_ref;
23400 }
23401
23402 wxPyEndAllowThreads(__tstate);
23403 if (PyErr_Occurred()) SWIG_fail;
23404 }
23405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23406 return resultobj;
23407 fail:
23408 return NULL;
23409 }
23410
23411
23412 static PyObject *_wrap_DateSpan_SetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
23413 PyObject *resultobj;
23414 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23415 int arg2 ;
23416 wxDateSpan *result;
23417 PyObject * obj0 = 0 ;
23418 PyObject * obj1 = 0 ;
23419 char *kwnames[] = {
23420 (char *) "self",(char *) "n", NULL
23421 };
23422
23423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23426 arg2 = (int)SWIG_As_int(obj1);
23427 if (PyErr_Occurred()) SWIG_fail;
23428 {
23429 PyThreadState* __tstate = wxPyBeginAllowThreads();
23430 {
23431 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23432 result = (wxDateSpan *) &_result_ref;
23433 }
23434
23435 wxPyEndAllowThreads(__tstate);
23436 if (PyErr_Occurred()) SWIG_fail;
23437 }
23438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23439 return resultobj;
23440 fail:
23441 return NULL;
23442 }
23443
23444
23445 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
23446 PyObject *resultobj;
23447 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23448 int arg2 ;
23449 wxDateSpan *result;
23450 PyObject * obj0 = 0 ;
23451 PyObject * obj1 = 0 ;
23452 char *kwnames[] = {
23453 (char *) "self",(char *) "n", NULL
23454 };
23455
23456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23459 arg2 = (int)SWIG_As_int(obj1);
23460 if (PyErr_Occurred()) SWIG_fail;
23461 {
23462 PyThreadState* __tstate = wxPyBeginAllowThreads();
23463 {
23464 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23465 result = (wxDateSpan *) &_result_ref;
23466 }
23467
23468 wxPyEndAllowThreads(__tstate);
23469 if (PyErr_Occurred()) SWIG_fail;
23470 }
23471 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23472 return resultobj;
23473 fail:
23474 return NULL;
23475 }
23476
23477
23478 static PyObject *_wrap_DateSpan_SetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23479 PyObject *resultobj;
23480 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23481 int arg2 ;
23482 wxDateSpan *result;
23483 PyObject * obj0 = 0 ;
23484 PyObject * obj1 = 0 ;
23485 char *kwnames[] = {
23486 (char *) "self",(char *) "n", NULL
23487 };
23488
23489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23492 arg2 = (int)SWIG_As_int(obj1);
23493 if (PyErr_Occurred()) SWIG_fail;
23494 {
23495 PyThreadState* __tstate = wxPyBeginAllowThreads();
23496 {
23497 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23498 result = (wxDateSpan *) &_result_ref;
23499 }
23500
23501 wxPyEndAllowThreads(__tstate);
23502 if (PyErr_Occurred()) SWIG_fail;
23503 }
23504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23505 return resultobj;
23506 fail:
23507 return NULL;
23508 }
23509
23510
23511 static PyObject *_wrap_DateSpan_GetYears(PyObject *, PyObject *args, PyObject *kwargs) {
23512 PyObject *resultobj;
23513 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23514 int result;
23515 PyObject * obj0 = 0 ;
23516 char *kwnames[] = {
23517 (char *) "self", NULL
23518 };
23519
23520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23523 {
23524 PyThreadState* __tstate = wxPyBeginAllowThreads();
23525 result = (int)((wxDateSpan const *)arg1)->GetYears();
23526
23527 wxPyEndAllowThreads(__tstate);
23528 if (PyErr_Occurred()) SWIG_fail;
23529 }
23530 resultobj = SWIG_From_int((int)result);
23531 return resultobj;
23532 fail:
23533 return NULL;
23534 }
23535
23536
23537 static PyObject *_wrap_DateSpan_GetMonths(PyObject *, PyObject *args, PyObject *kwargs) {
23538 PyObject *resultobj;
23539 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23540 int result;
23541 PyObject * obj0 = 0 ;
23542 char *kwnames[] = {
23543 (char *) "self", NULL
23544 };
23545
23546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23549 {
23550 PyThreadState* __tstate = wxPyBeginAllowThreads();
23551 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23552
23553 wxPyEndAllowThreads(__tstate);
23554 if (PyErr_Occurred()) SWIG_fail;
23555 }
23556 resultobj = SWIG_From_int((int)result);
23557 return resultobj;
23558 fail:
23559 return NULL;
23560 }
23561
23562
23563 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *, PyObject *args, PyObject *kwargs) {
23564 PyObject *resultobj;
23565 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23566 int result;
23567 PyObject * obj0 = 0 ;
23568 char *kwnames[] = {
23569 (char *) "self", NULL
23570 };
23571
23572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23575 {
23576 PyThreadState* __tstate = wxPyBeginAllowThreads();
23577 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23578
23579 wxPyEndAllowThreads(__tstate);
23580 if (PyErr_Occurred()) SWIG_fail;
23581 }
23582 resultobj = SWIG_From_int((int)result);
23583 return resultobj;
23584 fail:
23585 return NULL;
23586 }
23587
23588
23589 static PyObject *_wrap_DateSpan_GetDays(PyObject *, PyObject *args, PyObject *kwargs) {
23590 PyObject *resultobj;
23591 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23592 int result;
23593 PyObject * obj0 = 0 ;
23594 char *kwnames[] = {
23595 (char *) "self", NULL
23596 };
23597
23598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23601 {
23602 PyThreadState* __tstate = wxPyBeginAllowThreads();
23603 result = (int)((wxDateSpan const *)arg1)->GetDays();
23604
23605 wxPyEndAllowThreads(__tstate);
23606 if (PyErr_Occurred()) SWIG_fail;
23607 }
23608 resultobj = SWIG_From_int((int)result);
23609 return resultobj;
23610 fail:
23611 return NULL;
23612 }
23613
23614
23615 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *, PyObject *args, PyObject *kwargs) {
23616 PyObject *resultobj;
23617 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23618 int result;
23619 PyObject * obj0 = 0 ;
23620 char *kwnames[] = {
23621 (char *) "self", NULL
23622 };
23623
23624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23627 {
23628 PyThreadState* __tstate = wxPyBeginAllowThreads();
23629 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23630
23631 wxPyEndAllowThreads(__tstate);
23632 if (PyErr_Occurred()) SWIG_fail;
23633 }
23634 resultobj = SWIG_From_int((int)result);
23635 return resultobj;
23636 fail:
23637 return NULL;
23638 }
23639
23640
23641 static PyObject *_wrap_DateSpan_Add(PyObject *, PyObject *args, PyObject *kwargs) {
23642 PyObject *resultobj;
23643 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23644 wxDateSpan *arg2 = 0 ;
23645 wxDateSpan *result;
23646 PyObject * obj0 = 0 ;
23647 PyObject * obj1 = 0 ;
23648 char *kwnames[] = {
23649 (char *) "self",(char *) "other", NULL
23650 };
23651
23652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23655 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23656 SWIG_POINTER_EXCEPTION | 0)) == -1)
23657 SWIG_fail;
23658 if (arg2 == NULL) {
23659 PyErr_SetString(PyExc_TypeError,"null reference");
23660 SWIG_fail;
23661 }
23662 {
23663 PyThreadState* __tstate = wxPyBeginAllowThreads();
23664 {
23665 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23666 result = (wxDateSpan *) &_result_ref;
23667 }
23668
23669 wxPyEndAllowThreads(__tstate);
23670 if (PyErr_Occurred()) SWIG_fail;
23671 }
23672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23673 return resultobj;
23674 fail:
23675 return NULL;
23676 }
23677
23678
23679 static PyObject *_wrap_DateSpan_Subtract(PyObject *, PyObject *args, PyObject *kwargs) {
23680 PyObject *resultobj;
23681 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23682 wxDateSpan *arg2 = 0 ;
23683 wxDateSpan *result;
23684 PyObject * obj0 = 0 ;
23685 PyObject * obj1 = 0 ;
23686 char *kwnames[] = {
23687 (char *) "self",(char *) "other", NULL
23688 };
23689
23690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23693 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23694 SWIG_POINTER_EXCEPTION | 0)) == -1)
23695 SWIG_fail;
23696 if (arg2 == NULL) {
23697 PyErr_SetString(PyExc_TypeError,"null reference");
23698 SWIG_fail;
23699 }
23700 {
23701 PyThreadState* __tstate = wxPyBeginAllowThreads();
23702 {
23703 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23704 result = (wxDateSpan *) &_result_ref;
23705 }
23706
23707 wxPyEndAllowThreads(__tstate);
23708 if (PyErr_Occurred()) SWIG_fail;
23709 }
23710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23711 return resultobj;
23712 fail:
23713 return NULL;
23714 }
23715
23716
23717 static PyObject *_wrap_DateSpan_Neg(PyObject *, PyObject *args, PyObject *kwargs) {
23718 PyObject *resultobj;
23719 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23720 wxDateSpan *result;
23721 PyObject * obj0 = 0 ;
23722 char *kwnames[] = {
23723 (char *) "self", NULL
23724 };
23725
23726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23729 {
23730 PyThreadState* __tstate = wxPyBeginAllowThreads();
23731 {
23732 wxDateSpan &_result_ref = (arg1)->Neg();
23733 result = (wxDateSpan *) &_result_ref;
23734 }
23735
23736 wxPyEndAllowThreads(__tstate);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23740 return resultobj;
23741 fail:
23742 return NULL;
23743 }
23744
23745
23746 static PyObject *_wrap_DateSpan_Multiply(PyObject *, PyObject *args, PyObject *kwargs) {
23747 PyObject *resultobj;
23748 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23749 int arg2 ;
23750 wxDateSpan *result;
23751 PyObject * obj0 = 0 ;
23752 PyObject * obj1 = 0 ;
23753 char *kwnames[] = {
23754 (char *) "self",(char *) "factor", NULL
23755 };
23756
23757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23760 arg2 = (int)SWIG_As_int(obj1);
23761 if (PyErr_Occurred()) SWIG_fail;
23762 {
23763 PyThreadState* __tstate = wxPyBeginAllowThreads();
23764 {
23765 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23766 result = (wxDateSpan *) &_result_ref;
23767 }
23768
23769 wxPyEndAllowThreads(__tstate);
23770 if (PyErr_Occurred()) SWIG_fail;
23771 }
23772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23773 return resultobj;
23774 fail:
23775 return NULL;
23776 }
23777
23778
23779 static PyObject *_wrap_DateSpan___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
23780 PyObject *resultobj;
23781 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23782 wxDateSpan *arg2 = 0 ;
23783 wxDateSpan *result;
23784 PyObject * obj0 = 0 ;
23785 PyObject * obj1 = 0 ;
23786 char *kwnames[] = {
23787 (char *) "self",(char *) "other", NULL
23788 };
23789
23790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23792 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23793 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23794 SWIG_POINTER_EXCEPTION | 0)) == -1)
23795 SWIG_fail;
23796 if (arg2 == NULL) {
23797 PyErr_SetString(PyExc_TypeError,"null reference");
23798 SWIG_fail;
23799 }
23800 {
23801 PyThreadState* __tstate = wxPyBeginAllowThreads();
23802 {
23803 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23804 result = (wxDateSpan *) &_result_ref;
23805 }
23806
23807 wxPyEndAllowThreads(__tstate);
23808 if (PyErr_Occurred()) SWIG_fail;
23809 }
23810 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23811 return resultobj;
23812 fail:
23813 return NULL;
23814 }
23815
23816
23817 static PyObject *_wrap_DateSpan___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
23818 PyObject *resultobj;
23819 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23820 wxDateSpan *arg2 = 0 ;
23821 wxDateSpan *result;
23822 PyObject * obj0 = 0 ;
23823 PyObject * obj1 = 0 ;
23824 char *kwnames[] = {
23825 (char *) "self",(char *) "other", NULL
23826 };
23827
23828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23830 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23831 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23832 SWIG_POINTER_EXCEPTION | 0)) == -1)
23833 SWIG_fail;
23834 if (arg2 == NULL) {
23835 PyErr_SetString(PyExc_TypeError,"null reference");
23836 SWIG_fail;
23837 }
23838 {
23839 PyThreadState* __tstate = wxPyBeginAllowThreads();
23840 {
23841 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23842 result = (wxDateSpan *) &_result_ref;
23843 }
23844
23845 wxPyEndAllowThreads(__tstate);
23846 if (PyErr_Occurred()) SWIG_fail;
23847 }
23848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23849 return resultobj;
23850 fail:
23851 return NULL;
23852 }
23853
23854
23855 static PyObject *_wrap_DateSpan___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
23856 PyObject *resultobj;
23857 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23858 wxDateSpan *result;
23859 PyObject * obj0 = 0 ;
23860 char *kwnames[] = {
23861 (char *) "self", NULL
23862 };
23863
23864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23867 {
23868 PyThreadState* __tstate = wxPyBeginAllowThreads();
23869 {
23870 wxDateSpan &_result_ref = (arg1)->operator -();
23871 result = (wxDateSpan *) &_result_ref;
23872 }
23873
23874 wxPyEndAllowThreads(__tstate);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 }
23877 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23878 return resultobj;
23879 fail:
23880 return NULL;
23881 }
23882
23883
23884 static PyObject *_wrap_DateSpan___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
23885 PyObject *resultobj;
23886 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23887 int arg2 ;
23888 wxDateSpan *result;
23889 PyObject * obj0 = 0 ;
23890 PyObject * obj1 = 0 ;
23891 char *kwnames[] = {
23892 (char *) "self",(char *) "factor", NULL
23893 };
23894
23895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23897 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23898 arg2 = (int)SWIG_As_int(obj1);
23899 if (PyErr_Occurred()) SWIG_fail;
23900 {
23901 PyThreadState* __tstate = wxPyBeginAllowThreads();
23902 {
23903 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23904 result = (wxDateSpan *) &_result_ref;
23905 }
23906
23907 wxPyEndAllowThreads(__tstate);
23908 if (PyErr_Occurred()) SWIG_fail;
23909 }
23910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
23911 return resultobj;
23912 fail:
23913 return NULL;
23914 }
23915
23916
23917 static PyObject *_wrap_DateSpan___add__(PyObject *, PyObject *args, PyObject *kwargs) {
23918 PyObject *resultobj;
23919 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23920 wxDateSpan *arg2 = 0 ;
23921 wxDateSpan result;
23922 PyObject * obj0 = 0 ;
23923 PyObject * obj1 = 0 ;
23924 char *kwnames[] = {
23925 (char *) "self",(char *) "other", NULL
23926 };
23927
23928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23931 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23932 SWIG_POINTER_EXCEPTION | 0)) == -1)
23933 SWIG_fail;
23934 if (arg2 == NULL) {
23935 PyErr_SetString(PyExc_TypeError,"null reference");
23936 SWIG_fail;
23937 }
23938 {
23939 PyThreadState* __tstate = wxPyBeginAllowThreads();
23940 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23941
23942 wxPyEndAllowThreads(__tstate);
23943 if (PyErr_Occurred()) SWIG_fail;
23944 }
23945 {
23946 wxDateSpan * resultptr;
23947 resultptr = new wxDateSpan((wxDateSpan &) result);
23948 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23949 }
23950 return resultobj;
23951 fail:
23952 return NULL;
23953 }
23954
23955
23956 static PyObject *_wrap_DateSpan___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
23957 PyObject *resultobj;
23958 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23959 wxDateSpan *arg2 = 0 ;
23960 wxDateSpan result;
23961 PyObject * obj0 = 0 ;
23962 PyObject * obj1 = 0 ;
23963 char *kwnames[] = {
23964 (char *) "self",(char *) "other", NULL
23965 };
23966
23967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23970 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23971 SWIG_POINTER_EXCEPTION | 0)) == -1)
23972 SWIG_fail;
23973 if (arg2 == NULL) {
23974 PyErr_SetString(PyExc_TypeError,"null reference");
23975 SWIG_fail;
23976 }
23977 {
23978 PyThreadState* __tstate = wxPyBeginAllowThreads();
23979 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23980
23981 wxPyEndAllowThreads(__tstate);
23982 if (PyErr_Occurred()) SWIG_fail;
23983 }
23984 {
23985 wxDateSpan * resultptr;
23986 resultptr = new wxDateSpan((wxDateSpan &) result);
23987 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23988 }
23989 return resultobj;
23990 fail:
23991 return NULL;
23992 }
23993
23994
23995 static PyObject *_wrap_DateSpan___mul__(PyObject *, PyObject *args, PyObject *kwargs) {
23996 PyObject *resultobj;
23997 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23998 int arg2 ;
23999 wxDateSpan result;
24000 PyObject * obj0 = 0 ;
24001 PyObject * obj1 = 0 ;
24002 char *kwnames[] = {
24003 (char *) "self",(char *) "n", NULL
24004 };
24005
24006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
24007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24009 arg2 = (int)SWIG_As_int(obj1);
24010 if (PyErr_Occurred()) SWIG_fail;
24011 {
24012 PyThreadState* __tstate = wxPyBeginAllowThreads();
24013 result = wxDateSpan___mul__(arg1,arg2);
24014
24015 wxPyEndAllowThreads(__tstate);
24016 if (PyErr_Occurred()) SWIG_fail;
24017 }
24018 {
24019 wxDateSpan * resultptr;
24020 resultptr = new wxDateSpan((wxDateSpan &) result);
24021 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24022 }
24023 return resultobj;
24024 fail:
24025 return NULL;
24026 }
24027
24028
24029 static PyObject *_wrap_DateSpan___rmul__(PyObject *, PyObject *args, PyObject *kwargs) {
24030 PyObject *resultobj;
24031 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24032 int arg2 ;
24033 wxDateSpan result;
24034 PyObject * obj0 = 0 ;
24035 PyObject * obj1 = 0 ;
24036 char *kwnames[] = {
24037 (char *) "self",(char *) "n", NULL
24038 };
24039
24040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
24041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24043 arg2 = (int)SWIG_As_int(obj1);
24044 if (PyErr_Occurred()) SWIG_fail;
24045 {
24046 PyThreadState* __tstate = wxPyBeginAllowThreads();
24047 result = wxDateSpan___rmul__(arg1,arg2);
24048
24049 wxPyEndAllowThreads(__tstate);
24050 if (PyErr_Occurred()) SWIG_fail;
24051 }
24052 {
24053 wxDateSpan * resultptr;
24054 resultptr = new wxDateSpan((wxDateSpan &) result);
24055 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
24056 }
24057 return resultobj;
24058 fail:
24059 return NULL;
24060 }
24061
24062
24063 static PyObject *_wrap_DateSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24064 PyObject *resultobj;
24065 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24066 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24067 bool result;
24068 PyObject * obj0 = 0 ;
24069 PyObject * obj1 = 0 ;
24070 char *kwnames[] = {
24071 (char *) "self",(char *) "other", NULL
24072 };
24073
24074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
24075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24077 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24079 {
24080 PyThreadState* __tstate = wxPyBeginAllowThreads();
24081 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
24082
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 {
24087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24088 }
24089 return resultobj;
24090 fail:
24091 return NULL;
24092 }
24093
24094
24095 static PyObject *_wrap_DateSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24096 PyObject *resultobj;
24097 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
24098 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
24099 bool result;
24100 PyObject * obj0 = 0 ;
24101 PyObject * obj1 = 0 ;
24102 char *kwnames[] = {
24103 (char *) "self",(char *) "other", NULL
24104 };
24105
24106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
24107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
24108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
24110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24111 {
24112 PyThreadState* __tstate = wxPyBeginAllowThreads();
24113 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
24114
24115 wxPyEndAllowThreads(__tstate);
24116 if (PyErr_Occurred()) SWIG_fail;
24117 }
24118 {
24119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24120 }
24121 return resultobj;
24122 fail:
24123 return NULL;
24124 }
24125
24126
24127 static PyObject * DateSpan_swigregister(PyObject *, PyObject *args) {
24128 PyObject *obj;
24129 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24130 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
24131 Py_INCREF(obj);
24132 return Py_BuildValue((char *)"");
24133 }
24134 static PyObject *_wrap_GetLocalTime(PyObject *, PyObject *args, PyObject *kwargs) {
24135 PyObject *resultobj;
24136 long result;
24137 char *kwnames[] = {
24138 NULL
24139 };
24140
24141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
24142 {
24143 PyThreadState* __tstate = wxPyBeginAllowThreads();
24144 result = (long)wxGetLocalTime();
24145
24146 wxPyEndAllowThreads(__tstate);
24147 if (PyErr_Occurred()) SWIG_fail;
24148 }
24149 resultobj = SWIG_From_long((long)result);
24150 return resultobj;
24151 fail:
24152 return NULL;
24153 }
24154
24155
24156 static PyObject *_wrap_GetUTCTime(PyObject *, PyObject *args, PyObject *kwargs) {
24157 PyObject *resultobj;
24158 long result;
24159 char *kwnames[] = {
24160 NULL
24161 };
24162
24163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
24164 {
24165 PyThreadState* __tstate = wxPyBeginAllowThreads();
24166 result = (long)wxGetUTCTime();
24167
24168 wxPyEndAllowThreads(__tstate);
24169 if (PyErr_Occurred()) SWIG_fail;
24170 }
24171 resultobj = SWIG_From_long((long)result);
24172 return resultobj;
24173 fail:
24174 return NULL;
24175 }
24176
24177
24178 static PyObject *_wrap_GetCurrentTime(PyObject *, PyObject *args, PyObject *kwargs) {
24179 PyObject *resultobj;
24180 long result;
24181 char *kwnames[] = {
24182 NULL
24183 };
24184
24185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
24186 {
24187 PyThreadState* __tstate = wxPyBeginAllowThreads();
24188 result = (long)wxGetCurrentTime();
24189
24190 wxPyEndAllowThreads(__tstate);
24191 if (PyErr_Occurred()) SWIG_fail;
24192 }
24193 resultobj = SWIG_From_long((long)result);
24194 return resultobj;
24195 fail:
24196 return NULL;
24197 }
24198
24199
24200 static PyObject *_wrap_GetLocalTimeMillis(PyObject *, PyObject *args, PyObject *kwargs) {
24201 PyObject *resultobj;
24202 wxLongLong result;
24203 char *kwnames[] = {
24204 NULL
24205 };
24206
24207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
24208 {
24209 PyThreadState* __tstate = wxPyBeginAllowThreads();
24210 result = wxGetLocalTimeMillis();
24211
24212 wxPyEndAllowThreads(__tstate);
24213 if (PyErr_Occurred()) SWIG_fail;
24214 }
24215 {
24216 PyObject *hi, *lo, *shifter, *shifted;
24217 hi = PyLong_FromLong( (&result)->GetHi() );
24218 lo = PyLong_FromLong( (&result)->GetLo() );
24219 shifter = PyLong_FromLong(32);
24220 shifted = PyNumber_Lshift(hi, shifter);
24221 resultobj = PyNumber_Or(shifted, lo);
24222 Py_DECREF(hi);
24223 Py_DECREF(lo);
24224 Py_DECREF(shifter);
24225 Py_DECREF(shifted);
24226 }
24227 return resultobj;
24228 fail:
24229 return NULL;
24230 }
24231
24232
24233 static int _wrap_DefaultDateTime_set(PyObject *) {
24234 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
24235 return 1;
24236 }
24237
24238
24239 static PyObject *_wrap_DefaultDateTime_get() {
24240 PyObject *pyobj;
24241
24242 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
24243 return pyobj;
24244 }
24245
24246
24247 static PyObject *_wrap_new_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24248 PyObject *resultobj;
24249 int arg1 ;
24250 wxDataFormat *result;
24251 PyObject * obj0 = 0 ;
24252 char *kwnames[] = {
24253 (char *) "type", NULL
24254 };
24255
24256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
24257 arg1 = (int)SWIG_As_int(obj0);
24258 if (PyErr_Occurred()) SWIG_fail;
24259 {
24260 PyThreadState* __tstate = wxPyBeginAllowThreads();
24261 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
24262
24263 wxPyEndAllowThreads(__tstate);
24264 if (PyErr_Occurred()) SWIG_fail;
24265 }
24266 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24267 return resultobj;
24268 fail:
24269 return NULL;
24270 }
24271
24272
24273 static PyObject *_wrap_new_CustomDataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24274 PyObject *resultobj;
24275 wxString *arg1 = 0 ;
24276 wxDataFormat *result;
24277 bool temp1 = false ;
24278 PyObject * obj0 = 0 ;
24279 char *kwnames[] = {
24280 (char *) "format", NULL
24281 };
24282
24283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
24284 {
24285 arg1 = wxString_in_helper(obj0);
24286 if (arg1 == NULL) SWIG_fail;
24287 temp1 = true;
24288 }
24289 {
24290 PyThreadState* __tstate = wxPyBeginAllowThreads();
24291 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
24292
24293 wxPyEndAllowThreads(__tstate);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24297 {
24298 if (temp1)
24299 delete arg1;
24300 }
24301 return resultobj;
24302 fail:
24303 {
24304 if (temp1)
24305 delete arg1;
24306 }
24307 return NULL;
24308 }
24309
24310
24311 static PyObject *_wrap_delete_DataFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24312 PyObject *resultobj;
24313 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24314 PyObject * obj0 = 0 ;
24315 char *kwnames[] = {
24316 (char *) "self", NULL
24317 };
24318
24319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24322 {
24323 PyThreadState* __tstate = wxPyBeginAllowThreads();
24324 delete arg1;
24325
24326 wxPyEndAllowThreads(__tstate);
24327 if (PyErr_Occurred()) SWIG_fail;
24328 }
24329 Py_INCREF(Py_None); resultobj = Py_None;
24330 return resultobj;
24331 fail:
24332 return NULL;
24333 }
24334
24335
24336 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *, PyObject *args) {
24337 PyObject *resultobj;
24338 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24339 int arg2 ;
24340 bool result;
24341 PyObject * obj0 = 0 ;
24342 PyObject * obj1 = 0 ;
24343
24344 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24347 arg2 = (int)SWIG_As_int(obj1);
24348 if (PyErr_Occurred()) SWIG_fail;
24349 {
24350 PyThreadState* __tstate = wxPyBeginAllowThreads();
24351 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24352
24353 wxPyEndAllowThreads(__tstate);
24354 if (PyErr_Occurred()) SWIG_fail;
24355 }
24356 {
24357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24358 }
24359 return resultobj;
24360 fail:
24361 return NULL;
24362 }
24363
24364
24365 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *, PyObject *args) {
24366 PyObject *resultobj;
24367 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24368 int arg2 ;
24369 bool result;
24370 PyObject * obj0 = 0 ;
24371 PyObject * obj1 = 0 ;
24372
24373 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24376 arg2 = (int)SWIG_As_int(obj1);
24377 if (PyErr_Occurred()) SWIG_fail;
24378 {
24379 PyThreadState* __tstate = wxPyBeginAllowThreads();
24380 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24381
24382 wxPyEndAllowThreads(__tstate);
24383 if (PyErr_Occurred()) SWIG_fail;
24384 }
24385 {
24386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24387 }
24388 return resultobj;
24389 fail:
24390 return NULL;
24391 }
24392
24393
24394 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *, PyObject *args) {
24395 PyObject *resultobj;
24396 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24397 wxDataFormat *arg2 = 0 ;
24398 bool result;
24399 PyObject * obj0 = 0 ;
24400 PyObject * obj1 = 0 ;
24401
24402 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24406 SWIG_POINTER_EXCEPTION | 0)) == -1)
24407 SWIG_fail;
24408 if (arg2 == NULL) {
24409 PyErr_SetString(PyExc_TypeError,"null reference");
24410 SWIG_fail;
24411 }
24412 {
24413 PyThreadState* __tstate = wxPyBeginAllowThreads();
24414 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24415
24416 wxPyEndAllowThreads(__tstate);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 {
24420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24421 }
24422 return resultobj;
24423 fail:
24424 return NULL;
24425 }
24426
24427
24428 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24429 int argc;
24430 PyObject *argv[3];
24431 int ii;
24432
24433 argc = PyObject_Length(args);
24434 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24435 argv[ii] = PyTuple_GetItem(args,ii);
24436 }
24437 if (argc == 2) {
24438 int _v;
24439 {
24440 void *ptr;
24441 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24442 _v = 0;
24443 PyErr_Clear();
24444 } else {
24445 _v = 1;
24446 }
24447 }
24448 if (_v) {
24449 {
24450 void *ptr;
24451 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24452 _v = 0;
24453 PyErr_Clear();
24454 } else {
24455 _v = 1;
24456 }
24457 }
24458 if (_v) {
24459 return _wrap_DataFormat___eq____SWIG_1(self,args);
24460 }
24461 }
24462 }
24463 if (argc == 2) {
24464 int _v;
24465 {
24466 void *ptr;
24467 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24468 _v = 0;
24469 PyErr_Clear();
24470 } else {
24471 _v = 1;
24472 }
24473 }
24474 if (_v) {
24475 _v = SWIG_Check_int(argv[1]);
24476 if (_v) {
24477 return _wrap_DataFormat___eq____SWIG_0(self,args);
24478 }
24479 }
24480 }
24481
24482 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24483 return NULL;
24484 }
24485
24486
24487 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *, PyObject *args) {
24488 PyObject *resultobj;
24489 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24490 wxDataFormat *arg2 = 0 ;
24491 bool result;
24492 PyObject * obj0 = 0 ;
24493 PyObject * obj1 = 0 ;
24494
24495 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24498 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24499 SWIG_POINTER_EXCEPTION | 0)) == -1)
24500 SWIG_fail;
24501 if (arg2 == NULL) {
24502 PyErr_SetString(PyExc_TypeError,"null reference");
24503 SWIG_fail;
24504 }
24505 {
24506 PyThreadState* __tstate = wxPyBeginAllowThreads();
24507 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24508
24509 wxPyEndAllowThreads(__tstate);
24510 if (PyErr_Occurred()) SWIG_fail;
24511 }
24512 {
24513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24514 }
24515 return resultobj;
24516 fail:
24517 return NULL;
24518 }
24519
24520
24521 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24522 int argc;
24523 PyObject *argv[3];
24524 int ii;
24525
24526 argc = PyObject_Length(args);
24527 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24528 argv[ii] = PyTuple_GetItem(args,ii);
24529 }
24530 if (argc == 2) {
24531 int _v;
24532 {
24533 void *ptr;
24534 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24535 _v = 0;
24536 PyErr_Clear();
24537 } else {
24538 _v = 1;
24539 }
24540 }
24541 if (_v) {
24542 {
24543 void *ptr;
24544 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24545 _v = 0;
24546 PyErr_Clear();
24547 } else {
24548 _v = 1;
24549 }
24550 }
24551 if (_v) {
24552 return _wrap_DataFormat___ne____SWIG_1(self,args);
24553 }
24554 }
24555 }
24556 if (argc == 2) {
24557 int _v;
24558 {
24559 void *ptr;
24560 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24561 _v = 0;
24562 PyErr_Clear();
24563 } else {
24564 _v = 1;
24565 }
24566 }
24567 if (_v) {
24568 _v = SWIG_Check_int(argv[1]);
24569 if (_v) {
24570 return _wrap_DataFormat___ne____SWIG_0(self,args);
24571 }
24572 }
24573 }
24574
24575 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24576 return NULL;
24577 }
24578
24579
24580 static PyObject *_wrap_DataFormat_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
24581 PyObject *resultobj;
24582 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24583 int arg2 ;
24584 PyObject * obj0 = 0 ;
24585 PyObject * obj1 = 0 ;
24586 char *kwnames[] = {
24587 (char *) "self",(char *) "format", NULL
24588 };
24589
24590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24593 arg2 = (int)SWIG_As_int(obj1);
24594 if (PyErr_Occurred()) SWIG_fail;
24595 {
24596 PyThreadState* __tstate = wxPyBeginAllowThreads();
24597 (arg1)->SetType((wxDataFormatId )arg2);
24598
24599 wxPyEndAllowThreads(__tstate);
24600 if (PyErr_Occurred()) SWIG_fail;
24601 }
24602 Py_INCREF(Py_None); resultobj = Py_None;
24603 return resultobj;
24604 fail:
24605 return NULL;
24606 }
24607
24608
24609 static PyObject *_wrap_DataFormat_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
24610 PyObject *resultobj;
24611 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24612 int result;
24613 PyObject * obj0 = 0 ;
24614 char *kwnames[] = {
24615 (char *) "self", NULL
24616 };
24617
24618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24621 {
24622 PyThreadState* __tstate = wxPyBeginAllowThreads();
24623 result = (int)((wxDataFormat const *)arg1)->GetType();
24624
24625 wxPyEndAllowThreads(__tstate);
24626 if (PyErr_Occurred()) SWIG_fail;
24627 }
24628 resultobj = SWIG_From_int((int)result);
24629 return resultobj;
24630 fail:
24631 return NULL;
24632 }
24633
24634
24635 static PyObject *_wrap_DataFormat_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24636 PyObject *resultobj;
24637 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24638 wxString result;
24639 PyObject * obj0 = 0 ;
24640 char *kwnames[] = {
24641 (char *) "self", NULL
24642 };
24643
24644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24647 {
24648 PyThreadState* __tstate = wxPyBeginAllowThreads();
24649 result = ((wxDataFormat const *)arg1)->GetId();
24650
24651 wxPyEndAllowThreads(__tstate);
24652 if (PyErr_Occurred()) SWIG_fail;
24653 }
24654 {
24655 #if wxUSE_UNICODE
24656 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24657 #else
24658 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24659 #endif
24660 }
24661 return resultobj;
24662 fail:
24663 return NULL;
24664 }
24665
24666
24667 static PyObject *_wrap_DataFormat_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24668 PyObject *resultobj;
24669 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24670 wxString *arg2 = 0 ;
24671 bool temp2 = false ;
24672 PyObject * obj0 = 0 ;
24673 PyObject * obj1 = 0 ;
24674 char *kwnames[] = {
24675 (char *) "self",(char *) "format", NULL
24676 };
24677
24678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24681 {
24682 arg2 = wxString_in_helper(obj1);
24683 if (arg2 == NULL) SWIG_fail;
24684 temp2 = true;
24685 }
24686 {
24687 PyThreadState* __tstate = wxPyBeginAllowThreads();
24688 (arg1)->SetId((wxString const &)*arg2);
24689
24690 wxPyEndAllowThreads(__tstate);
24691 if (PyErr_Occurred()) SWIG_fail;
24692 }
24693 Py_INCREF(Py_None); resultobj = Py_None;
24694 {
24695 if (temp2)
24696 delete arg2;
24697 }
24698 return resultobj;
24699 fail:
24700 {
24701 if (temp2)
24702 delete arg2;
24703 }
24704 return NULL;
24705 }
24706
24707
24708 static PyObject * DataFormat_swigregister(PyObject *, PyObject *args) {
24709 PyObject *obj;
24710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24711 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24712 Py_INCREF(obj);
24713 return Py_BuildValue((char *)"");
24714 }
24715 static int _wrap_FormatInvalid_set(PyObject *) {
24716 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24717 return 1;
24718 }
24719
24720
24721 static PyObject *_wrap_FormatInvalid_get() {
24722 PyObject *pyobj;
24723
24724 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24725 return pyobj;
24726 }
24727
24728
24729 static PyObject *_wrap_delete_DataObject(PyObject *, PyObject *args, PyObject *kwargs) {
24730 PyObject *resultobj;
24731 wxDataObject *arg1 = (wxDataObject *) 0 ;
24732 PyObject * obj0 = 0 ;
24733 char *kwnames[] = {
24734 (char *) "self", NULL
24735 };
24736
24737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24740 {
24741 PyThreadState* __tstate = wxPyBeginAllowThreads();
24742 delete arg1;
24743
24744 wxPyEndAllowThreads(__tstate);
24745 if (PyErr_Occurred()) SWIG_fail;
24746 }
24747 Py_INCREF(Py_None); resultobj = Py_None;
24748 return resultobj;
24749 fail:
24750 return NULL;
24751 }
24752
24753
24754 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *, PyObject *args, PyObject *kwargs) {
24755 PyObject *resultobj;
24756 wxDataObject *arg1 = (wxDataObject *) 0 ;
24757 int arg2 = (int) wxDataObject::Get ;
24758 SwigValueWrapper< wxDataFormat > result;
24759 PyObject * obj0 = 0 ;
24760 PyObject * obj1 = 0 ;
24761 char *kwnames[] = {
24762 (char *) "self",(char *) "dir", NULL
24763 };
24764
24765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24768 if (obj1) {
24769 arg2 = (int)SWIG_As_int(obj1);
24770 if (PyErr_Occurred()) SWIG_fail;
24771 }
24772 {
24773 PyThreadState* __tstate = wxPyBeginAllowThreads();
24774 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24775
24776 wxPyEndAllowThreads(__tstate);
24777 if (PyErr_Occurred()) SWIG_fail;
24778 }
24779 {
24780 wxDataFormat * resultptr;
24781 resultptr = new wxDataFormat((wxDataFormat &) result);
24782 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24783 }
24784 return resultobj;
24785 fail:
24786 return NULL;
24787 }
24788
24789
24790 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *, PyObject *args, PyObject *kwargs) {
24791 PyObject *resultobj;
24792 wxDataObject *arg1 = (wxDataObject *) 0 ;
24793 int arg2 = (int) wxDataObject::Get ;
24794 size_t result;
24795 PyObject * obj0 = 0 ;
24796 PyObject * obj1 = 0 ;
24797 char *kwnames[] = {
24798 (char *) "self",(char *) "dir", NULL
24799 };
24800
24801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24804 if (obj1) {
24805 arg2 = (int)SWIG_As_int(obj1);
24806 if (PyErr_Occurred()) SWIG_fail;
24807 }
24808 {
24809 PyThreadState* __tstate = wxPyBeginAllowThreads();
24810 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24811
24812 wxPyEndAllowThreads(__tstate);
24813 if (PyErr_Occurred()) SWIG_fail;
24814 }
24815 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
24816 return resultobj;
24817 fail:
24818 return NULL;
24819 }
24820
24821
24822 static PyObject *_wrap_DataObject_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
24823 PyObject *resultobj;
24824 wxDataObject *arg1 = (wxDataObject *) 0 ;
24825 wxDataFormat *arg2 = 0 ;
24826 int arg3 = (int) wxDataObject::Get ;
24827 bool result;
24828 PyObject * obj0 = 0 ;
24829 PyObject * obj1 = 0 ;
24830 PyObject * obj2 = 0 ;
24831 char *kwnames[] = {
24832 (char *) "self",(char *) "format",(char *) "dir", NULL
24833 };
24834
24835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24838 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24839 SWIG_POINTER_EXCEPTION | 0)) == -1)
24840 SWIG_fail;
24841 if (arg2 == NULL) {
24842 PyErr_SetString(PyExc_TypeError,"null reference");
24843 SWIG_fail;
24844 }
24845 if (obj2) {
24846 arg3 = (int)SWIG_As_int(obj2);
24847 if (PyErr_Occurred()) SWIG_fail;
24848 }
24849 {
24850 PyThreadState* __tstate = wxPyBeginAllowThreads();
24851 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24852
24853 wxPyEndAllowThreads(__tstate);
24854 if (PyErr_Occurred()) SWIG_fail;
24855 }
24856 {
24857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24858 }
24859 return resultobj;
24860 fail:
24861 return NULL;
24862 }
24863
24864
24865 static PyObject *_wrap_DataObject_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
24866 PyObject *resultobj;
24867 wxDataObject *arg1 = (wxDataObject *) 0 ;
24868 wxDataFormat *arg2 = 0 ;
24869 size_t result;
24870 PyObject * obj0 = 0 ;
24871 PyObject * obj1 = 0 ;
24872 char *kwnames[] = {
24873 (char *) "self",(char *) "format", NULL
24874 };
24875
24876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24879 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24880 SWIG_POINTER_EXCEPTION | 0)) == -1)
24881 SWIG_fail;
24882 if (arg2 == NULL) {
24883 PyErr_SetString(PyExc_TypeError,"null reference");
24884 SWIG_fail;
24885 }
24886 {
24887 PyThreadState* __tstate = wxPyBeginAllowThreads();
24888 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24889
24890 wxPyEndAllowThreads(__tstate);
24891 if (PyErr_Occurred()) SWIG_fail;
24892 }
24893 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
24894 return resultobj;
24895 fail:
24896 return NULL;
24897 }
24898
24899
24900 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *, PyObject *args, PyObject *kwargs) {
24901 PyObject *resultobj;
24902 wxDataObject *arg1 = (wxDataObject *) 0 ;
24903 int arg2 = (int) wxDataObject::Get ;
24904 PyObject *result;
24905 PyObject * obj0 = 0 ;
24906 PyObject * obj1 = 0 ;
24907 char *kwnames[] = {
24908 (char *) "self",(char *) "dir", NULL
24909 };
24910
24911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24914 if (obj1) {
24915 arg2 = (int)SWIG_As_int(obj1);
24916 if (PyErr_Occurred()) SWIG_fail;
24917 }
24918 {
24919 PyThreadState* __tstate = wxPyBeginAllowThreads();
24920 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24921
24922 wxPyEndAllowThreads(__tstate);
24923 if (PyErr_Occurred()) SWIG_fail;
24924 }
24925 resultobj = result;
24926 return resultobj;
24927 fail:
24928 return NULL;
24929 }
24930
24931
24932 static PyObject *_wrap_DataObject_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
24933 PyObject *resultobj;
24934 wxDataObject *arg1 = (wxDataObject *) 0 ;
24935 wxDataFormat *arg2 = 0 ;
24936 PyObject *result;
24937 PyObject * obj0 = 0 ;
24938 PyObject * obj1 = 0 ;
24939 char *kwnames[] = {
24940 (char *) "self",(char *) "format", NULL
24941 };
24942
24943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24946 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24947 SWIG_POINTER_EXCEPTION | 0)) == -1)
24948 SWIG_fail;
24949 if (arg2 == NULL) {
24950 PyErr_SetString(PyExc_TypeError,"null reference");
24951 SWIG_fail;
24952 }
24953 {
24954 PyThreadState* __tstate = wxPyBeginAllowThreads();
24955 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24956
24957 wxPyEndAllowThreads(__tstate);
24958 if (PyErr_Occurred()) SWIG_fail;
24959 }
24960 resultobj = result;
24961 return resultobj;
24962 fail:
24963 return NULL;
24964 }
24965
24966
24967 static PyObject *_wrap_DataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24968 PyObject *resultobj;
24969 wxDataObject *arg1 = (wxDataObject *) 0 ;
24970 wxDataFormat *arg2 = 0 ;
24971 PyObject *arg3 = (PyObject *) 0 ;
24972 bool result;
24973 PyObject * obj0 = 0 ;
24974 PyObject * obj1 = 0 ;
24975 PyObject * obj2 = 0 ;
24976 char *kwnames[] = {
24977 (char *) "self",(char *) "format",(char *) "data", NULL
24978 };
24979
24980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24983 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24984 SWIG_POINTER_EXCEPTION | 0)) == -1)
24985 SWIG_fail;
24986 if (arg2 == NULL) {
24987 PyErr_SetString(PyExc_TypeError,"null reference");
24988 SWIG_fail;
24989 }
24990 arg3 = obj2;
24991 {
24992 PyThreadState* __tstate = wxPyBeginAllowThreads();
24993 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24994
24995 wxPyEndAllowThreads(__tstate);
24996 if (PyErr_Occurred()) SWIG_fail;
24997 }
24998 {
24999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25000 }
25001 return resultobj;
25002 fail:
25003 return NULL;
25004 }
25005
25006
25007 static PyObject * DataObject_swigregister(PyObject *, PyObject *args) {
25008 PyObject *obj;
25009 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25010 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
25011 Py_INCREF(obj);
25012 return Py_BuildValue((char *)"");
25013 }
25014 static PyObject *_wrap_new_DataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
25015 PyObject *resultobj;
25016 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25017 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25018 wxDataObjectSimple *result;
25019 PyObject * obj0 = 0 ;
25020 char *kwnames[] = {
25021 (char *) "format", NULL
25022 };
25023
25024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
25025 if (obj0) {
25026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25027 SWIG_POINTER_EXCEPTION | 0)) == -1)
25028 SWIG_fail;
25029 if (arg1 == NULL) {
25030 PyErr_SetString(PyExc_TypeError,"null reference");
25031 SWIG_fail;
25032 }
25033 }
25034 {
25035 PyThreadState* __tstate = wxPyBeginAllowThreads();
25036 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
25037
25038 wxPyEndAllowThreads(__tstate);
25039 if (PyErr_Occurred()) SWIG_fail;
25040 }
25041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
25042 return resultobj;
25043 fail:
25044 return NULL;
25045 }
25046
25047
25048 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
25049 PyObject *resultobj;
25050 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25051 wxDataFormat *result;
25052 PyObject * obj0 = 0 ;
25053 char *kwnames[] = {
25054 (char *) "self", NULL
25055 };
25056
25057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
25058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25060 {
25061 PyThreadState* __tstate = wxPyBeginAllowThreads();
25062 {
25063 wxDataFormat const &_result_ref = (arg1)->GetFormat();
25064 result = (wxDataFormat *) &_result_ref;
25065 }
25066
25067 wxPyEndAllowThreads(__tstate);
25068 if (PyErr_Occurred()) SWIG_fail;
25069 }
25070 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
25071 return resultobj;
25072 fail:
25073 return NULL;
25074 }
25075
25076
25077 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *, PyObject *args, PyObject *kwargs) {
25078 PyObject *resultobj;
25079 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25080 wxDataFormat *arg2 = 0 ;
25081 PyObject * obj0 = 0 ;
25082 PyObject * obj1 = 0 ;
25083 char *kwnames[] = {
25084 (char *) "self",(char *) "format", NULL
25085 };
25086
25087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
25088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25090 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
25091 SWIG_POINTER_EXCEPTION | 0)) == -1)
25092 SWIG_fail;
25093 if (arg2 == NULL) {
25094 PyErr_SetString(PyExc_TypeError,"null reference");
25095 SWIG_fail;
25096 }
25097 {
25098 PyThreadState* __tstate = wxPyBeginAllowThreads();
25099 (arg1)->SetFormat((wxDataFormat const &)*arg2);
25100
25101 wxPyEndAllowThreads(__tstate);
25102 if (PyErr_Occurred()) SWIG_fail;
25103 }
25104 Py_INCREF(Py_None); resultobj = Py_None;
25105 return resultobj;
25106 fail:
25107 return NULL;
25108 }
25109
25110
25111 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *, PyObject *args, PyObject *kwargs) {
25112 PyObject *resultobj;
25113 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25114 size_t result;
25115 PyObject * obj0 = 0 ;
25116 char *kwnames[] = {
25117 (char *) "self", NULL
25118 };
25119
25120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
25121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25123 {
25124 PyThreadState* __tstate = wxPyBeginAllowThreads();
25125 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
25126
25127 wxPyEndAllowThreads(__tstate);
25128 if (PyErr_Occurred()) SWIG_fail;
25129 }
25130 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25131 return resultobj;
25132 fail:
25133 return NULL;
25134 }
25135
25136
25137 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *, PyObject *args, PyObject *kwargs) {
25138 PyObject *resultobj;
25139 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25140 PyObject *result;
25141 PyObject * obj0 = 0 ;
25142 char *kwnames[] = {
25143 (char *) "self", NULL
25144 };
25145
25146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
25147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25149 {
25150 PyThreadState* __tstate = wxPyBeginAllowThreads();
25151 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
25152
25153 wxPyEndAllowThreads(__tstate);
25154 if (PyErr_Occurred()) SWIG_fail;
25155 }
25156 resultobj = result;
25157 return resultobj;
25158 fail:
25159 return NULL;
25160 }
25161
25162
25163 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25164 PyObject *resultobj;
25165 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
25166 PyObject *arg2 = (PyObject *) 0 ;
25167 bool result;
25168 PyObject * obj0 = 0 ;
25169 PyObject * obj1 = 0 ;
25170 char *kwnames[] = {
25171 (char *) "self",(char *) "data", NULL
25172 };
25173
25174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
25175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
25176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25177 arg2 = obj1;
25178 {
25179 PyThreadState* __tstate = wxPyBeginAllowThreads();
25180 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
25181
25182 wxPyEndAllowThreads(__tstate);
25183 if (PyErr_Occurred()) SWIG_fail;
25184 }
25185 {
25186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25187 }
25188 return resultobj;
25189 fail:
25190 return NULL;
25191 }
25192
25193
25194 static PyObject * DataObjectSimple_swigregister(PyObject *, PyObject *args) {
25195 PyObject *obj;
25196 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25197 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
25198 Py_INCREF(obj);
25199 return Py_BuildValue((char *)"");
25200 }
25201 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *, PyObject *args, PyObject *kwargs) {
25202 PyObject *resultobj;
25203 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25204 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25205 wxPyDataObjectSimple *result;
25206 PyObject * obj0 = 0 ;
25207 char *kwnames[] = {
25208 (char *) "format", NULL
25209 };
25210
25211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
25212 if (obj0) {
25213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25214 SWIG_POINTER_EXCEPTION | 0)) == -1)
25215 SWIG_fail;
25216 if (arg1 == NULL) {
25217 PyErr_SetString(PyExc_TypeError,"null reference");
25218 SWIG_fail;
25219 }
25220 }
25221 {
25222 PyThreadState* __tstate = wxPyBeginAllowThreads();
25223 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
25224
25225 wxPyEndAllowThreads(__tstate);
25226 if (PyErr_Occurred()) SWIG_fail;
25227 }
25228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
25229 return resultobj;
25230 fail:
25231 return NULL;
25232 }
25233
25234
25235 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25236 PyObject *resultobj;
25237 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
25238 PyObject *arg2 = (PyObject *) 0 ;
25239 PyObject *arg3 = (PyObject *) 0 ;
25240 PyObject * obj0 = 0 ;
25241 PyObject * obj1 = 0 ;
25242 PyObject * obj2 = 0 ;
25243 char *kwnames[] = {
25244 (char *) "self",(char *) "self",(char *) "_class", NULL
25245 };
25246
25247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
25249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25250 arg2 = obj1;
25251 arg3 = obj2;
25252 {
25253 PyThreadState* __tstate = wxPyBeginAllowThreads();
25254 (arg1)->_setCallbackInfo(arg2,arg3);
25255
25256 wxPyEndAllowThreads(__tstate);
25257 if (PyErr_Occurred()) SWIG_fail;
25258 }
25259 Py_INCREF(Py_None); resultobj = Py_None;
25260 return resultobj;
25261 fail:
25262 return NULL;
25263 }
25264
25265
25266 static PyObject * PyDataObjectSimple_swigregister(PyObject *, PyObject *args) {
25267 PyObject *obj;
25268 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25269 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
25270 Py_INCREF(obj);
25271 return Py_BuildValue((char *)"");
25272 }
25273 static PyObject *_wrap_new_DataObjectComposite(PyObject *, PyObject *args, PyObject *kwargs) {
25274 PyObject *resultobj;
25275 wxDataObjectComposite *result;
25276 char *kwnames[] = {
25277 NULL
25278 };
25279
25280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
25281 {
25282 PyThreadState* __tstate = wxPyBeginAllowThreads();
25283 result = (wxDataObjectComposite *)new wxDataObjectComposite();
25284
25285 wxPyEndAllowThreads(__tstate);
25286 if (PyErr_Occurred()) SWIG_fail;
25287 }
25288 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
25289 return resultobj;
25290 fail:
25291 return NULL;
25292 }
25293
25294
25295 static PyObject *_wrap_DataObjectComposite_Add(PyObject *, PyObject *args, PyObject *kwargs) {
25296 PyObject *resultobj;
25297 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25298 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
25299 bool arg3 = (bool) false ;
25300 PyObject * obj0 = 0 ;
25301 PyObject * obj1 = 0 ;
25302 PyObject * obj2 = 0 ;
25303 char *kwnames[] = {
25304 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25305 };
25306
25307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25310 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25311 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25312 if (obj2) {
25313 arg3 = (bool)SWIG_As_bool(obj2);
25314 if (PyErr_Occurred()) SWIG_fail;
25315 }
25316 {
25317 PyThreadState* __tstate = wxPyBeginAllowThreads();
25318 (arg1)->Add(arg2,arg3);
25319
25320 wxPyEndAllowThreads(__tstate);
25321 if (PyErr_Occurred()) SWIG_fail;
25322 }
25323 Py_INCREF(Py_None); resultobj = Py_None;
25324 return resultobj;
25325 fail:
25326 return NULL;
25327 }
25328
25329
25330 static PyObject * DataObjectComposite_swigregister(PyObject *, PyObject *args) {
25331 PyObject *obj;
25332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25333 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25334 Py_INCREF(obj);
25335 return Py_BuildValue((char *)"");
25336 }
25337 static PyObject *_wrap_new_TextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25338 PyObject *resultobj;
25339 wxString const &arg1_defvalue = wxPyEmptyString ;
25340 wxString *arg1 = (wxString *) &arg1_defvalue ;
25341 wxTextDataObject *result;
25342 bool temp1 = false ;
25343 PyObject * obj0 = 0 ;
25344 char *kwnames[] = {
25345 (char *) "text", NULL
25346 };
25347
25348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25349 if (obj0) {
25350 {
25351 arg1 = wxString_in_helper(obj0);
25352 if (arg1 == NULL) SWIG_fail;
25353 temp1 = true;
25354 }
25355 }
25356 {
25357 PyThreadState* __tstate = wxPyBeginAllowThreads();
25358 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25359
25360 wxPyEndAllowThreads(__tstate);
25361 if (PyErr_Occurred()) SWIG_fail;
25362 }
25363 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25364 {
25365 if (temp1)
25366 delete arg1;
25367 }
25368 return resultobj;
25369 fail:
25370 {
25371 if (temp1)
25372 delete arg1;
25373 }
25374 return NULL;
25375 }
25376
25377
25378 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *, PyObject *args, PyObject *kwargs) {
25379 PyObject *resultobj;
25380 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25381 size_t result;
25382 PyObject * obj0 = 0 ;
25383 char *kwnames[] = {
25384 (char *) "self", NULL
25385 };
25386
25387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25390 {
25391 PyThreadState* __tstate = wxPyBeginAllowThreads();
25392 result = (size_t)(arg1)->GetTextLength();
25393
25394 wxPyEndAllowThreads(__tstate);
25395 if (PyErr_Occurred()) SWIG_fail;
25396 }
25397 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25398 return resultobj;
25399 fail:
25400 return NULL;
25401 }
25402
25403
25404 static PyObject *_wrap_TextDataObject_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
25405 PyObject *resultobj;
25406 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25407 wxString result;
25408 PyObject * obj0 = 0 ;
25409 char *kwnames[] = {
25410 (char *) "self", NULL
25411 };
25412
25413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25416 {
25417 PyThreadState* __tstate = wxPyBeginAllowThreads();
25418 result = (arg1)->GetText();
25419
25420 wxPyEndAllowThreads(__tstate);
25421 if (PyErr_Occurred()) SWIG_fail;
25422 }
25423 {
25424 #if wxUSE_UNICODE
25425 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25426 #else
25427 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25428 #endif
25429 }
25430 return resultobj;
25431 fail:
25432 return NULL;
25433 }
25434
25435
25436 static PyObject *_wrap_TextDataObject_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
25437 PyObject *resultobj;
25438 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25439 wxString *arg2 = 0 ;
25440 bool temp2 = false ;
25441 PyObject * obj0 = 0 ;
25442 PyObject * obj1 = 0 ;
25443 char *kwnames[] = {
25444 (char *) "self",(char *) "text", NULL
25445 };
25446
25447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25450 {
25451 arg2 = wxString_in_helper(obj1);
25452 if (arg2 == NULL) SWIG_fail;
25453 temp2 = true;
25454 }
25455 {
25456 PyThreadState* __tstate = wxPyBeginAllowThreads();
25457 (arg1)->SetText((wxString const &)*arg2);
25458
25459 wxPyEndAllowThreads(__tstate);
25460 if (PyErr_Occurred()) SWIG_fail;
25461 }
25462 Py_INCREF(Py_None); resultobj = Py_None;
25463 {
25464 if (temp2)
25465 delete arg2;
25466 }
25467 return resultobj;
25468 fail:
25469 {
25470 if (temp2)
25471 delete arg2;
25472 }
25473 return NULL;
25474 }
25475
25476
25477 static PyObject * TextDataObject_swigregister(PyObject *, PyObject *args) {
25478 PyObject *obj;
25479 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25480 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25481 Py_INCREF(obj);
25482 return Py_BuildValue((char *)"");
25483 }
25484 static PyObject *_wrap_new_PyTextDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25485 PyObject *resultobj;
25486 wxString const &arg1_defvalue = wxPyEmptyString ;
25487 wxString *arg1 = (wxString *) &arg1_defvalue ;
25488 wxPyTextDataObject *result;
25489 bool temp1 = false ;
25490 PyObject * obj0 = 0 ;
25491 char *kwnames[] = {
25492 (char *) "text", NULL
25493 };
25494
25495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25496 if (obj0) {
25497 {
25498 arg1 = wxString_in_helper(obj0);
25499 if (arg1 == NULL) SWIG_fail;
25500 temp1 = true;
25501 }
25502 }
25503 {
25504 PyThreadState* __tstate = wxPyBeginAllowThreads();
25505 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25506
25507 wxPyEndAllowThreads(__tstate);
25508 if (PyErr_Occurred()) SWIG_fail;
25509 }
25510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25511 {
25512 if (temp1)
25513 delete arg1;
25514 }
25515 return resultobj;
25516 fail:
25517 {
25518 if (temp1)
25519 delete arg1;
25520 }
25521 return NULL;
25522 }
25523
25524
25525 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25526 PyObject *resultobj;
25527 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25528 PyObject *arg2 = (PyObject *) 0 ;
25529 PyObject *arg3 = (PyObject *) 0 ;
25530 PyObject * obj0 = 0 ;
25531 PyObject * obj1 = 0 ;
25532 PyObject * obj2 = 0 ;
25533 char *kwnames[] = {
25534 (char *) "self",(char *) "self",(char *) "_class", NULL
25535 };
25536
25537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25540 arg2 = obj1;
25541 arg3 = obj2;
25542 {
25543 PyThreadState* __tstate = wxPyBeginAllowThreads();
25544 (arg1)->_setCallbackInfo(arg2,arg3);
25545
25546 wxPyEndAllowThreads(__tstate);
25547 if (PyErr_Occurred()) SWIG_fail;
25548 }
25549 Py_INCREF(Py_None); resultobj = Py_None;
25550 return resultobj;
25551 fail:
25552 return NULL;
25553 }
25554
25555
25556 static PyObject * PyTextDataObject_swigregister(PyObject *, PyObject *args) {
25557 PyObject *obj;
25558 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25559 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25560 Py_INCREF(obj);
25561 return Py_BuildValue((char *)"");
25562 }
25563 static PyObject *_wrap_new_BitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25564 PyObject *resultobj;
25565 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25566 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25567 wxBitmapDataObject *result;
25568 PyObject * obj0 = 0 ;
25569 char *kwnames[] = {
25570 (char *) "bitmap", NULL
25571 };
25572
25573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25574 if (obj0) {
25575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25576 SWIG_POINTER_EXCEPTION | 0)) == -1)
25577 SWIG_fail;
25578 if (arg1 == NULL) {
25579 PyErr_SetString(PyExc_TypeError,"null reference");
25580 SWIG_fail;
25581 }
25582 }
25583 {
25584 PyThreadState* __tstate = wxPyBeginAllowThreads();
25585 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25586
25587 wxPyEndAllowThreads(__tstate);
25588 if (PyErr_Occurred()) SWIG_fail;
25589 }
25590 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25591 return resultobj;
25592 fail:
25593 return NULL;
25594 }
25595
25596
25597 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
25598 PyObject *resultobj;
25599 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25600 wxBitmap result;
25601 PyObject * obj0 = 0 ;
25602 char *kwnames[] = {
25603 (char *) "self", NULL
25604 };
25605
25606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25609 {
25610 PyThreadState* __tstate = wxPyBeginAllowThreads();
25611 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25612
25613 wxPyEndAllowThreads(__tstate);
25614 if (PyErr_Occurred()) SWIG_fail;
25615 }
25616 {
25617 wxBitmap * resultptr;
25618 resultptr = new wxBitmap((wxBitmap &) result);
25619 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25620 }
25621 return resultobj;
25622 fail:
25623 return NULL;
25624 }
25625
25626
25627 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
25628 PyObject *resultobj;
25629 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25630 wxBitmap *arg2 = 0 ;
25631 PyObject * obj0 = 0 ;
25632 PyObject * obj1 = 0 ;
25633 char *kwnames[] = {
25634 (char *) "self",(char *) "bitmap", NULL
25635 };
25636
25637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25640 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25641 SWIG_POINTER_EXCEPTION | 0)) == -1)
25642 SWIG_fail;
25643 if (arg2 == NULL) {
25644 PyErr_SetString(PyExc_TypeError,"null reference");
25645 SWIG_fail;
25646 }
25647 {
25648 PyThreadState* __tstate = wxPyBeginAllowThreads();
25649 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25650
25651 wxPyEndAllowThreads(__tstate);
25652 if (PyErr_Occurred()) SWIG_fail;
25653 }
25654 Py_INCREF(Py_None); resultobj = Py_None;
25655 return resultobj;
25656 fail:
25657 return NULL;
25658 }
25659
25660
25661 static PyObject * BitmapDataObject_swigregister(PyObject *, PyObject *args) {
25662 PyObject *obj;
25663 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25664 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25665 Py_INCREF(obj);
25666 return Py_BuildValue((char *)"");
25667 }
25668 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25669 PyObject *resultobj;
25670 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25671 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25672 wxPyBitmapDataObject *result;
25673 PyObject * obj0 = 0 ;
25674 char *kwnames[] = {
25675 (char *) "bitmap", NULL
25676 };
25677
25678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25679 if (obj0) {
25680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25681 SWIG_POINTER_EXCEPTION | 0)) == -1)
25682 SWIG_fail;
25683 if (arg1 == NULL) {
25684 PyErr_SetString(PyExc_TypeError,"null reference");
25685 SWIG_fail;
25686 }
25687 }
25688 {
25689 PyThreadState* __tstate = wxPyBeginAllowThreads();
25690 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25691
25692 wxPyEndAllowThreads(__tstate);
25693 if (PyErr_Occurred()) SWIG_fail;
25694 }
25695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25696 return resultobj;
25697 fail:
25698 return NULL;
25699 }
25700
25701
25702 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25703 PyObject *resultobj;
25704 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25705 PyObject *arg2 = (PyObject *) 0 ;
25706 PyObject *arg3 = (PyObject *) 0 ;
25707 PyObject * obj0 = 0 ;
25708 PyObject * obj1 = 0 ;
25709 PyObject * obj2 = 0 ;
25710 char *kwnames[] = {
25711 (char *) "self",(char *) "self",(char *) "_class", NULL
25712 };
25713
25714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25717 arg2 = obj1;
25718 arg3 = obj2;
25719 {
25720 PyThreadState* __tstate = wxPyBeginAllowThreads();
25721 (arg1)->_setCallbackInfo(arg2,arg3);
25722
25723 wxPyEndAllowThreads(__tstate);
25724 if (PyErr_Occurred()) SWIG_fail;
25725 }
25726 Py_INCREF(Py_None); resultobj = Py_None;
25727 return resultobj;
25728 fail:
25729 return NULL;
25730 }
25731
25732
25733 static PyObject * PyBitmapDataObject_swigregister(PyObject *, PyObject *args) {
25734 PyObject *obj;
25735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25736 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25737 Py_INCREF(obj);
25738 return Py_BuildValue((char *)"");
25739 }
25740 static PyObject *_wrap_new_FileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25741 PyObject *resultobj;
25742 wxFileDataObject *result;
25743 char *kwnames[] = {
25744 NULL
25745 };
25746
25747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25748 {
25749 PyThreadState* __tstate = wxPyBeginAllowThreads();
25750 result = (wxFileDataObject *)new wxFileDataObject();
25751
25752 wxPyEndAllowThreads(__tstate);
25753 if (PyErr_Occurred()) SWIG_fail;
25754 }
25755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25756 return resultobj;
25757 fail:
25758 return NULL;
25759 }
25760
25761
25762 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *, PyObject *args, PyObject *kwargs) {
25763 PyObject *resultobj;
25764 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25765 wxArrayString *result;
25766 PyObject * obj0 = 0 ;
25767 char *kwnames[] = {
25768 (char *) "self", NULL
25769 };
25770
25771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25774 {
25775 PyThreadState* __tstate = wxPyBeginAllowThreads();
25776 {
25777 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25778 result = (wxArrayString *) &_result_ref;
25779 }
25780
25781 wxPyEndAllowThreads(__tstate);
25782 if (PyErr_Occurred()) SWIG_fail;
25783 }
25784 {
25785 resultobj = wxArrayString2PyList_helper(*result);
25786 }
25787 return resultobj;
25788 fail:
25789 return NULL;
25790 }
25791
25792
25793 static PyObject *_wrap_FileDataObject_AddFile(PyObject *, PyObject *args, PyObject *kwargs) {
25794 PyObject *resultobj;
25795 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25796 wxString *arg2 = 0 ;
25797 bool temp2 = false ;
25798 PyObject * obj0 = 0 ;
25799 PyObject * obj1 = 0 ;
25800 char *kwnames[] = {
25801 (char *) "self",(char *) "filename", NULL
25802 };
25803
25804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25807 {
25808 arg2 = wxString_in_helper(obj1);
25809 if (arg2 == NULL) SWIG_fail;
25810 temp2 = true;
25811 }
25812 {
25813 PyThreadState* __tstate = wxPyBeginAllowThreads();
25814 (arg1)->AddFile((wxString const &)*arg2);
25815
25816 wxPyEndAllowThreads(__tstate);
25817 if (PyErr_Occurred()) SWIG_fail;
25818 }
25819 Py_INCREF(Py_None); resultobj = Py_None;
25820 {
25821 if (temp2)
25822 delete arg2;
25823 }
25824 return resultobj;
25825 fail:
25826 {
25827 if (temp2)
25828 delete arg2;
25829 }
25830 return NULL;
25831 }
25832
25833
25834 static PyObject * FileDataObject_swigregister(PyObject *, PyObject *args) {
25835 PyObject *obj;
25836 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25837 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25838 Py_INCREF(obj);
25839 return Py_BuildValue((char *)"");
25840 }
25841 static PyObject *_wrap_new_CustomDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25842 PyObject *resultobj;
25843 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25844 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25845 wxCustomDataObject *result;
25846 PyObject * obj0 = 0 ;
25847 char *kwnames[] = {
25848 (char *) "format", NULL
25849 };
25850
25851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25852 if (obj0) {
25853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25854 SWIG_POINTER_EXCEPTION | 0)) == -1)
25855 SWIG_fail;
25856 if (arg1 == NULL) {
25857 PyErr_SetString(PyExc_TypeError,"null reference");
25858 SWIG_fail;
25859 }
25860 }
25861 {
25862 PyThreadState* __tstate = wxPyBeginAllowThreads();
25863 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25864
25865 wxPyEndAllowThreads(__tstate);
25866 if (PyErr_Occurred()) SWIG_fail;
25867 }
25868 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25869 return resultobj;
25870 fail:
25871 return NULL;
25872 }
25873
25874
25875 static PyObject *_wrap_CustomDataObject_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25876 PyObject *resultobj;
25877 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25878 PyObject *arg2 = (PyObject *) 0 ;
25879 bool result;
25880 PyObject * obj0 = 0 ;
25881 PyObject * obj1 = 0 ;
25882 char *kwnames[] = {
25883 (char *) "self",(char *) "data", NULL
25884 };
25885
25886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25889 arg2 = obj1;
25890 {
25891 PyThreadState* __tstate = wxPyBeginAllowThreads();
25892 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25893
25894 wxPyEndAllowThreads(__tstate);
25895 if (PyErr_Occurred()) SWIG_fail;
25896 }
25897 {
25898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25899 }
25900 return resultobj;
25901 fail:
25902 return NULL;
25903 }
25904
25905
25906 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
25907 PyObject *resultobj;
25908 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25909 size_t result;
25910 PyObject * obj0 = 0 ;
25911 char *kwnames[] = {
25912 (char *) "self", NULL
25913 };
25914
25915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25918 {
25919 PyThreadState* __tstate = wxPyBeginAllowThreads();
25920 result = (size_t)(arg1)->GetSize();
25921
25922 wxPyEndAllowThreads(__tstate);
25923 if (PyErr_Occurred()) SWIG_fail;
25924 }
25925 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25926 return resultobj;
25927 fail:
25928 return NULL;
25929 }
25930
25931
25932 static PyObject *_wrap_CustomDataObject_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
25933 PyObject *resultobj;
25934 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25935 PyObject *result;
25936 PyObject * obj0 = 0 ;
25937 char *kwnames[] = {
25938 (char *) "self", NULL
25939 };
25940
25941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25944 {
25945 PyThreadState* __tstate = wxPyBeginAllowThreads();
25946 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25947
25948 wxPyEndAllowThreads(__tstate);
25949 if (PyErr_Occurred()) SWIG_fail;
25950 }
25951 resultobj = result;
25952 return resultobj;
25953 fail:
25954 return NULL;
25955 }
25956
25957
25958 static PyObject * CustomDataObject_swigregister(PyObject *, PyObject *args) {
25959 PyObject *obj;
25960 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25961 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25962 Py_INCREF(obj);
25963 return Py_BuildValue((char *)"");
25964 }
25965 static PyObject *_wrap_new_URLDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
25966 PyObject *resultobj;
25967 wxURLDataObject *result;
25968 char *kwnames[] = {
25969 NULL
25970 };
25971
25972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25973 {
25974 PyThreadState* __tstate = wxPyBeginAllowThreads();
25975 result = (wxURLDataObject *)new wxURLDataObject();
25976
25977 wxPyEndAllowThreads(__tstate);
25978 if (PyErr_Occurred()) SWIG_fail;
25979 }
25980 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25981 return resultobj;
25982 fail:
25983 return NULL;
25984 }
25985
25986
25987 static PyObject *_wrap_URLDataObject_GetURL(PyObject *, PyObject *args, PyObject *kwargs) {
25988 PyObject *resultobj;
25989 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25990 wxString result;
25991 PyObject * obj0 = 0 ;
25992 char *kwnames[] = {
25993 (char *) "self", NULL
25994 };
25995
25996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25999 {
26000 PyThreadState* __tstate = wxPyBeginAllowThreads();
26001 result = (arg1)->GetURL();
26002
26003 wxPyEndAllowThreads(__tstate);
26004 if (PyErr_Occurred()) SWIG_fail;
26005 }
26006 {
26007 #if wxUSE_UNICODE
26008 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26009 #else
26010 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26011 #endif
26012 }
26013 return resultobj;
26014 fail:
26015 return NULL;
26016 }
26017
26018
26019 static PyObject *_wrap_URLDataObject_SetURL(PyObject *, PyObject *args, PyObject *kwargs) {
26020 PyObject *resultobj;
26021 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
26022 wxString *arg2 = 0 ;
26023 bool temp2 = false ;
26024 PyObject * obj0 = 0 ;
26025 PyObject * obj1 = 0 ;
26026 char *kwnames[] = {
26027 (char *) "self",(char *) "url", NULL
26028 };
26029
26030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
26031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
26032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26033 {
26034 arg2 = wxString_in_helper(obj1);
26035 if (arg2 == NULL) SWIG_fail;
26036 temp2 = true;
26037 }
26038 {
26039 PyThreadState* __tstate = wxPyBeginAllowThreads();
26040 (arg1)->SetURL((wxString const &)*arg2);
26041
26042 wxPyEndAllowThreads(__tstate);
26043 if (PyErr_Occurred()) SWIG_fail;
26044 }
26045 Py_INCREF(Py_None); resultobj = Py_None;
26046 {
26047 if (temp2)
26048 delete arg2;
26049 }
26050 return resultobj;
26051 fail:
26052 {
26053 if (temp2)
26054 delete arg2;
26055 }
26056 return NULL;
26057 }
26058
26059
26060 static PyObject * URLDataObject_swigregister(PyObject *, PyObject *args) {
26061 PyObject *obj;
26062 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26063 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
26064 Py_INCREF(obj);
26065 return Py_BuildValue((char *)"");
26066 }
26067 static PyObject *_wrap_new_MetafileDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26068 PyObject *resultobj;
26069 wxMetafileDataObject *result;
26070 char *kwnames[] = {
26071 NULL
26072 };
26073
26074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
26075 {
26076 PyThreadState* __tstate = wxPyBeginAllowThreads();
26077 result = (wxMetafileDataObject *)new wxMetafileDataObject();
26078
26079 wxPyEndAllowThreads(__tstate);
26080 if (PyErr_Occurred()) SWIG_fail;
26081 }
26082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
26083 return resultobj;
26084 fail:
26085 return NULL;
26086 }
26087
26088
26089 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
26090 PyObject *resultobj;
26091 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
26092 wxMetafile *arg2 = 0 ;
26093 PyObject * obj0 = 0 ;
26094 PyObject * obj1 = 0 ;
26095 char *kwnames[] = {
26096 (char *) "self",(char *) "metafile", NULL
26097 };
26098
26099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
26100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
26101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
26103 SWIG_POINTER_EXCEPTION | 0)) == -1)
26104 SWIG_fail;
26105 if (arg2 == NULL) {
26106 PyErr_SetString(PyExc_TypeError,"null reference");
26107 SWIG_fail;
26108 }
26109 {
26110 PyThreadState* __tstate = wxPyBeginAllowThreads();
26111 (arg1)->SetMetafile((wxMetafile const &)*arg2);
26112
26113 wxPyEndAllowThreads(__tstate);
26114 if (PyErr_Occurred()) SWIG_fail;
26115 }
26116 Py_INCREF(Py_None); resultobj = Py_None;
26117 return resultobj;
26118 fail:
26119 return NULL;
26120 }
26121
26122
26123 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *, PyObject *args, PyObject *kwargs) {
26124 PyObject *resultobj;
26125 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
26126 wxMetafile result;
26127 PyObject * obj0 = 0 ;
26128 char *kwnames[] = {
26129 (char *) "self", NULL
26130 };
26131
26132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
26133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
26134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26135 {
26136 PyThreadState* __tstate = wxPyBeginAllowThreads();
26137 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
26138
26139 wxPyEndAllowThreads(__tstate);
26140 if (PyErr_Occurred()) SWIG_fail;
26141 }
26142 {
26143 wxMetafile * resultptr;
26144 resultptr = new wxMetafile((wxMetafile &) result);
26145 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
26146 }
26147 return resultobj;
26148 fail:
26149 return NULL;
26150 }
26151
26152
26153 static PyObject * MetafileDataObject_swigregister(PyObject *, PyObject *args) {
26154 PyObject *obj;
26155 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26156 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
26157 Py_INCREF(obj);
26158 return Py_BuildValue((char *)"");
26159 }
26160 static PyObject *_wrap_IsDragResultOk(PyObject *, PyObject *args, PyObject *kwargs) {
26161 PyObject *resultobj;
26162 int arg1 ;
26163 bool result;
26164 PyObject * obj0 = 0 ;
26165 char *kwnames[] = {
26166 (char *) "res", NULL
26167 };
26168
26169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
26170 arg1 = (int)SWIG_As_int(obj0);
26171 if (PyErr_Occurred()) SWIG_fail;
26172 {
26173 PyThreadState* __tstate = wxPyBeginAllowThreads();
26174 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
26175
26176 wxPyEndAllowThreads(__tstate);
26177 if (PyErr_Occurred()) SWIG_fail;
26178 }
26179 {
26180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26181 }
26182 return resultobj;
26183 fail:
26184 return NULL;
26185 }
26186
26187
26188 static PyObject *_wrap_new_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
26189 PyObject *resultobj;
26190 wxWindow *arg1 = (wxWindow *) 0 ;
26191 wxCursor const &arg2_defvalue = wxNullCursor ;
26192 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
26193 wxCursor const &arg3_defvalue = wxNullCursor ;
26194 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
26195 wxCursor const &arg4_defvalue = wxNullCursor ;
26196 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
26197 wxPyDropSource *result;
26198 PyObject * obj0 = 0 ;
26199 PyObject * obj1 = 0 ;
26200 PyObject * obj2 = 0 ;
26201 PyObject * obj3 = 0 ;
26202 char *kwnames[] = {
26203 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
26204 };
26205
26206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26209 if (obj1) {
26210 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26211 SWIG_POINTER_EXCEPTION | 0)) == -1)
26212 SWIG_fail;
26213 if (arg2 == NULL) {
26214 PyErr_SetString(PyExc_TypeError,"null reference");
26215 SWIG_fail;
26216 }
26217 }
26218 if (obj2) {
26219 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26220 SWIG_POINTER_EXCEPTION | 0)) == -1)
26221 SWIG_fail;
26222 if (arg3 == NULL) {
26223 PyErr_SetString(PyExc_TypeError,"null reference");
26224 SWIG_fail;
26225 }
26226 }
26227 if (obj3) {
26228 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
26229 SWIG_POINTER_EXCEPTION | 0)) == -1)
26230 SWIG_fail;
26231 if (arg4 == NULL) {
26232 PyErr_SetString(PyExc_TypeError,"null reference");
26233 SWIG_fail;
26234 }
26235 }
26236 {
26237 PyThreadState* __tstate = wxPyBeginAllowThreads();
26238 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
26239
26240 wxPyEndAllowThreads(__tstate);
26241 if (PyErr_Occurred()) SWIG_fail;
26242 }
26243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
26244 return resultobj;
26245 fail:
26246 return NULL;
26247 }
26248
26249
26250 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26251 PyObject *resultobj;
26252 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26253 PyObject *arg2 = (PyObject *) 0 ;
26254 PyObject *arg3 = (PyObject *) 0 ;
26255 int arg4 ;
26256 PyObject * obj0 = 0 ;
26257 PyObject * obj1 = 0 ;
26258 PyObject * obj2 = 0 ;
26259 PyObject * obj3 = 0 ;
26260 char *kwnames[] = {
26261 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
26262 };
26263
26264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26267 arg2 = obj1;
26268 arg3 = obj2;
26269 arg4 = (int)SWIG_As_int(obj3);
26270 if (PyErr_Occurred()) SWIG_fail;
26271 {
26272 PyThreadState* __tstate = wxPyBeginAllowThreads();
26273 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
26274
26275 wxPyEndAllowThreads(__tstate);
26276 if (PyErr_Occurred()) SWIG_fail;
26277 }
26278 Py_INCREF(Py_None); resultobj = Py_None;
26279 return resultobj;
26280 fail:
26281 return NULL;
26282 }
26283
26284
26285 static PyObject *_wrap_delete_DropSource(PyObject *, PyObject *args, PyObject *kwargs) {
26286 PyObject *resultobj;
26287 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26288 PyObject * obj0 = 0 ;
26289 char *kwnames[] = {
26290 (char *) "self", NULL
26291 };
26292
26293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
26294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26296 {
26297 PyThreadState* __tstate = wxPyBeginAllowThreads();
26298 delete arg1;
26299
26300 wxPyEndAllowThreads(__tstate);
26301 if (PyErr_Occurred()) SWIG_fail;
26302 }
26303 Py_INCREF(Py_None); resultobj = Py_None;
26304 return resultobj;
26305 fail:
26306 return NULL;
26307 }
26308
26309
26310 static PyObject *_wrap_DropSource_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
26311 PyObject *resultobj;
26312 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26313 wxDataObject *arg2 = 0 ;
26314 PyObject * obj0 = 0 ;
26315 PyObject * obj1 = 0 ;
26316 char *kwnames[] = {
26317 (char *) "self",(char *) "data", NULL
26318 };
26319
26320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
26321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26323 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26324 SWIG_POINTER_EXCEPTION | 0)) == -1)
26325 SWIG_fail;
26326 if (arg2 == NULL) {
26327 PyErr_SetString(PyExc_TypeError,"null reference");
26328 SWIG_fail;
26329 }
26330 {
26331 PyThreadState* __tstate = wxPyBeginAllowThreads();
26332 (arg1)->SetData(*arg2);
26333
26334 wxPyEndAllowThreads(__tstate);
26335 if (PyErr_Occurred()) SWIG_fail;
26336 }
26337 Py_INCREF(Py_None); resultobj = Py_None;
26338 return resultobj;
26339 fail:
26340 return NULL;
26341 }
26342
26343
26344 static PyObject *_wrap_DropSource_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26345 PyObject *resultobj;
26346 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26347 wxDataObject *result;
26348 PyObject * obj0 = 0 ;
26349 char *kwnames[] = {
26350 (char *) "self", NULL
26351 };
26352
26353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26356 {
26357 PyThreadState* __tstate = wxPyBeginAllowThreads();
26358 result = (wxDataObject *)(arg1)->GetDataObject();
26359
26360 wxPyEndAllowThreads(__tstate);
26361 if (PyErr_Occurred()) SWIG_fail;
26362 }
26363 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26364 return resultobj;
26365 fail:
26366 return NULL;
26367 }
26368
26369
26370 static PyObject *_wrap_DropSource_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
26371 PyObject *resultobj;
26372 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26373 int arg2 ;
26374 wxCursor *arg3 = 0 ;
26375 PyObject * obj0 = 0 ;
26376 PyObject * obj1 = 0 ;
26377 PyObject * obj2 = 0 ;
26378 char *kwnames[] = {
26379 (char *) "self",(char *) "res",(char *) "cursor", NULL
26380 };
26381
26382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26385 arg2 = (int)SWIG_As_int(obj1);
26386 if (PyErr_Occurred()) SWIG_fail;
26387 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26388 SWIG_POINTER_EXCEPTION | 0)) == -1)
26389 SWIG_fail;
26390 if (arg3 == NULL) {
26391 PyErr_SetString(PyExc_TypeError,"null reference");
26392 SWIG_fail;
26393 }
26394 {
26395 PyThreadState* __tstate = wxPyBeginAllowThreads();
26396 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26397
26398 wxPyEndAllowThreads(__tstate);
26399 if (PyErr_Occurred()) SWIG_fail;
26400 }
26401 Py_INCREF(Py_None); resultobj = Py_None;
26402 return resultobj;
26403 fail:
26404 return NULL;
26405 }
26406
26407
26408 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26409 PyObject *resultobj;
26410 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26411 int arg2 = (int) wxDrag_CopyOnly ;
26412 int result;
26413 PyObject * obj0 = 0 ;
26414 PyObject * obj1 = 0 ;
26415 char *kwnames[] = {
26416 (char *) "self",(char *) "flags", NULL
26417 };
26418
26419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26422 if (obj1) {
26423 arg2 = (int)SWIG_As_int(obj1);
26424 if (PyErr_Occurred()) SWIG_fail;
26425 }
26426 {
26427 PyThreadState* __tstate = wxPyBeginAllowThreads();
26428 result = (int)(arg1)->DoDragDrop(arg2);
26429
26430 wxPyEndAllowThreads(__tstate);
26431 if (PyErr_Occurred()) SWIG_fail;
26432 }
26433 resultobj = SWIG_From_int((int)result);
26434 return resultobj;
26435 fail:
26436 return NULL;
26437 }
26438
26439
26440 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *, PyObject *args, PyObject *kwargs) {
26441 PyObject *resultobj;
26442 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26443 int arg2 ;
26444 bool result;
26445 PyObject * obj0 = 0 ;
26446 PyObject * obj1 = 0 ;
26447 char *kwnames[] = {
26448 (char *) "self",(char *) "effect", NULL
26449 };
26450
26451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26454 arg2 = (int)SWIG_As_int(obj1);
26455 if (PyErr_Occurred()) SWIG_fail;
26456 {
26457 PyThreadState* __tstate = wxPyBeginAllowThreads();
26458 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26459
26460 wxPyEndAllowThreads(__tstate);
26461 if (PyErr_Occurred()) SWIG_fail;
26462 }
26463 {
26464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26465 }
26466 return resultobj;
26467 fail:
26468 return NULL;
26469 }
26470
26471
26472 static PyObject * DropSource_swigregister(PyObject *, PyObject *args) {
26473 PyObject *obj;
26474 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26475 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26476 Py_INCREF(obj);
26477 return Py_BuildValue((char *)"");
26478 }
26479 static PyObject *_wrap_new_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26480 PyObject *resultobj;
26481 wxDataObject *arg1 = (wxDataObject *) NULL ;
26482 wxPyDropTarget *result;
26483 PyObject * obj0 = 0 ;
26484 char *kwnames[] = {
26485 (char *) "dataObject", NULL
26486 };
26487
26488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26489 if (obj0) {
26490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26491 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26492 }
26493 {
26494 PyThreadState* __tstate = wxPyBeginAllowThreads();
26495 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26496
26497 wxPyEndAllowThreads(__tstate);
26498 if (PyErr_Occurred()) SWIG_fail;
26499 }
26500 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26501 return resultobj;
26502 fail:
26503 return NULL;
26504 }
26505
26506
26507 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26508 PyObject *resultobj;
26509 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26510 PyObject *arg2 = (PyObject *) 0 ;
26511 PyObject *arg3 = (PyObject *) 0 ;
26512 PyObject * obj0 = 0 ;
26513 PyObject * obj1 = 0 ;
26514 PyObject * obj2 = 0 ;
26515 char *kwnames[] = {
26516 (char *) "self",(char *) "self",(char *) "_class", NULL
26517 };
26518
26519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26522 arg2 = obj1;
26523 arg3 = obj2;
26524 {
26525 PyThreadState* __tstate = wxPyBeginAllowThreads();
26526 (arg1)->_setCallbackInfo(arg2,arg3);
26527
26528 wxPyEndAllowThreads(__tstate);
26529 if (PyErr_Occurred()) SWIG_fail;
26530 }
26531 Py_INCREF(Py_None); resultobj = Py_None;
26532 return resultobj;
26533 fail:
26534 return NULL;
26535 }
26536
26537
26538 static PyObject *_wrap_delete_DropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26539 PyObject *resultobj;
26540 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26541 PyObject * obj0 = 0 ;
26542 char *kwnames[] = {
26543 (char *) "self", NULL
26544 };
26545
26546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26549 {
26550 PyThreadState* __tstate = wxPyBeginAllowThreads();
26551 delete arg1;
26552
26553 wxPyEndAllowThreads(__tstate);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 }
26556 Py_INCREF(Py_None); resultobj = Py_None;
26557 return resultobj;
26558 fail:
26559 return NULL;
26560 }
26561
26562
26563 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26564 PyObject *resultobj;
26565 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26566 wxDataObject *result;
26567 PyObject * obj0 = 0 ;
26568 char *kwnames[] = {
26569 (char *) "self", NULL
26570 };
26571
26572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26575 {
26576 PyThreadState* __tstate = wxPyBeginAllowThreads();
26577 result = (wxDataObject *)(arg1)->GetDataObject();
26578
26579 wxPyEndAllowThreads(__tstate);
26580 if (PyErr_Occurred()) SWIG_fail;
26581 }
26582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26583 return resultobj;
26584 fail:
26585 return NULL;
26586 }
26587
26588
26589 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *, PyObject *args, PyObject *kwargs) {
26590 PyObject *resultobj;
26591 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26592 wxDataObject *arg2 = (wxDataObject *) 0 ;
26593 PyObject * obj0 = 0 ;
26594 PyObject * obj1 = 0 ;
26595 char *kwnames[] = {
26596 (char *) "self",(char *) "dataObject", NULL
26597 };
26598
26599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26602 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26603 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26604 {
26605 PyThreadState* __tstate = wxPyBeginAllowThreads();
26606 (arg1)->SetDataObject(arg2);
26607
26608 wxPyEndAllowThreads(__tstate);
26609 if (PyErr_Occurred()) SWIG_fail;
26610 }
26611 Py_INCREF(Py_None); resultobj = Py_None;
26612 return resultobj;
26613 fail:
26614 return NULL;
26615 }
26616
26617
26618 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26619 PyObject *resultobj;
26620 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26621 int arg2 ;
26622 int arg3 ;
26623 int arg4 ;
26624 int result;
26625 PyObject * obj0 = 0 ;
26626 PyObject * obj1 = 0 ;
26627 PyObject * obj2 = 0 ;
26628 PyObject * obj3 = 0 ;
26629 char *kwnames[] = {
26630 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26631 };
26632
26633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26636 arg2 = (int)SWIG_As_int(obj1);
26637 if (PyErr_Occurred()) SWIG_fail;
26638 arg3 = (int)SWIG_As_int(obj2);
26639 if (PyErr_Occurred()) SWIG_fail;
26640 arg4 = (int)SWIG_As_int(obj3);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 {
26643 PyThreadState* __tstate = wxPyBeginAllowThreads();
26644 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26645
26646 wxPyEndAllowThreads(__tstate);
26647 if (PyErr_Occurred()) SWIG_fail;
26648 }
26649 resultobj = SWIG_From_int((int)result);
26650 return resultobj;
26651 fail:
26652 return NULL;
26653 }
26654
26655
26656 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26657 PyObject *resultobj;
26658 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26659 int arg2 ;
26660 int arg3 ;
26661 int arg4 ;
26662 int result;
26663 PyObject * obj0 = 0 ;
26664 PyObject * obj1 = 0 ;
26665 PyObject * obj2 = 0 ;
26666 PyObject * obj3 = 0 ;
26667 char *kwnames[] = {
26668 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26669 };
26670
26671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26674 arg2 = (int)SWIG_As_int(obj1);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 arg3 = (int)SWIG_As_int(obj2);
26677 if (PyErr_Occurred()) SWIG_fail;
26678 arg4 = (int)SWIG_As_int(obj3);
26679 if (PyErr_Occurred()) SWIG_fail;
26680 {
26681 PyThreadState* __tstate = wxPyBeginAllowThreads();
26682 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26683
26684 wxPyEndAllowThreads(__tstate);
26685 if (PyErr_Occurred()) SWIG_fail;
26686 }
26687 resultobj = SWIG_From_int((int)result);
26688 return resultobj;
26689 fail:
26690 return NULL;
26691 }
26692
26693
26694 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26695 PyObject *resultobj;
26696 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26697 PyObject * obj0 = 0 ;
26698 char *kwnames[] = {
26699 (char *) "self", NULL
26700 };
26701
26702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26705 {
26706 PyThreadState* __tstate = wxPyBeginAllowThreads();
26707 (arg1)->base_OnLeave();
26708
26709 wxPyEndAllowThreads(__tstate);
26710 if (PyErr_Occurred()) SWIG_fail;
26711 }
26712 Py_INCREF(Py_None); resultobj = Py_None;
26713 return resultobj;
26714 fail:
26715 return NULL;
26716 }
26717
26718
26719 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26720 PyObject *resultobj;
26721 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26722 int arg2 ;
26723 int arg3 ;
26724 bool result;
26725 PyObject * obj0 = 0 ;
26726 PyObject * obj1 = 0 ;
26727 PyObject * obj2 = 0 ;
26728 char *kwnames[] = {
26729 (char *) "self",(char *) "x",(char *) "y", NULL
26730 };
26731
26732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26735 arg2 = (int)SWIG_As_int(obj1);
26736 if (PyErr_Occurred()) SWIG_fail;
26737 arg3 = (int)SWIG_As_int(obj2);
26738 if (PyErr_Occurred()) SWIG_fail;
26739 {
26740 PyThreadState* __tstate = wxPyBeginAllowThreads();
26741 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26742
26743 wxPyEndAllowThreads(__tstate);
26744 if (PyErr_Occurred()) SWIG_fail;
26745 }
26746 {
26747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26748 }
26749 return resultobj;
26750 fail:
26751 return NULL;
26752 }
26753
26754
26755 static PyObject *_wrap_DropTarget_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
26756 PyObject *resultobj;
26757 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26758 bool result;
26759 PyObject * obj0 = 0 ;
26760 char *kwnames[] = {
26761 (char *) "self", NULL
26762 };
26763
26764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26767 {
26768 PyThreadState* __tstate = wxPyBeginAllowThreads();
26769 result = (bool)(arg1)->GetData();
26770
26771 wxPyEndAllowThreads(__tstate);
26772 if (PyErr_Occurred()) SWIG_fail;
26773 }
26774 {
26775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26776 }
26777 return resultobj;
26778 fail:
26779 return NULL;
26780 }
26781
26782
26783 static PyObject * DropTarget_swigregister(PyObject *, PyObject *args) {
26784 PyObject *obj;
26785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26786 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26787 Py_INCREF(obj);
26788 return Py_BuildValue((char *)"");
26789 }
26790 static PyObject *_wrap_new_TextDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
26791 PyObject *resultobj;
26792 wxPyTextDropTarget *result;
26793 char *kwnames[] = {
26794 NULL
26795 };
26796
26797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26798 {
26799 PyThreadState* __tstate = wxPyBeginAllowThreads();
26800 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26801
26802 wxPyEndAllowThreads(__tstate);
26803 if (PyErr_Occurred()) SWIG_fail;
26804 }
26805 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26806 return resultobj;
26807 fail:
26808 return NULL;
26809 }
26810
26811
26812 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
26813 PyObject *resultobj;
26814 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26815 PyObject *arg2 = (PyObject *) 0 ;
26816 PyObject *arg3 = (PyObject *) 0 ;
26817 PyObject * obj0 = 0 ;
26818 PyObject * obj1 = 0 ;
26819 PyObject * obj2 = 0 ;
26820 char *kwnames[] = {
26821 (char *) "self",(char *) "self",(char *) "_class", NULL
26822 };
26823
26824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26827 arg2 = obj1;
26828 arg3 = obj2;
26829 {
26830 PyThreadState* __tstate = wxPyBeginAllowThreads();
26831 (arg1)->_setCallbackInfo(arg2,arg3);
26832
26833 wxPyEndAllowThreads(__tstate);
26834 if (PyErr_Occurred()) SWIG_fail;
26835 }
26836 Py_INCREF(Py_None); resultobj = Py_None;
26837 return resultobj;
26838 fail:
26839 return NULL;
26840 }
26841
26842
26843 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
26844 PyObject *resultobj;
26845 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26846 int arg2 ;
26847 int arg3 ;
26848 int arg4 ;
26849 int result;
26850 PyObject * obj0 = 0 ;
26851 PyObject * obj1 = 0 ;
26852 PyObject * obj2 = 0 ;
26853 PyObject * obj3 = 0 ;
26854 char *kwnames[] = {
26855 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26856 };
26857
26858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26861 arg2 = (int)SWIG_As_int(obj1);
26862 if (PyErr_Occurred()) SWIG_fail;
26863 arg3 = (int)SWIG_As_int(obj2);
26864 if (PyErr_Occurred()) SWIG_fail;
26865 arg4 = (int)SWIG_As_int(obj3);
26866 if (PyErr_Occurred()) SWIG_fail;
26867 {
26868 PyThreadState* __tstate = wxPyBeginAllowThreads();
26869 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26870
26871 wxPyEndAllowThreads(__tstate);
26872 if (PyErr_Occurred()) SWIG_fail;
26873 }
26874 resultobj = SWIG_From_int((int)result);
26875 return resultobj;
26876 fail:
26877 return NULL;
26878 }
26879
26880
26881 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
26882 PyObject *resultobj;
26883 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26884 int arg2 ;
26885 int arg3 ;
26886 int arg4 ;
26887 int result;
26888 PyObject * obj0 = 0 ;
26889 PyObject * obj1 = 0 ;
26890 PyObject * obj2 = 0 ;
26891 PyObject * obj3 = 0 ;
26892 char *kwnames[] = {
26893 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26894 };
26895
26896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26899 arg2 = (int)SWIG_As_int(obj1);
26900 if (PyErr_Occurred()) SWIG_fail;
26901 arg3 = (int)SWIG_As_int(obj2);
26902 if (PyErr_Occurred()) SWIG_fail;
26903 arg4 = (int)SWIG_As_int(obj3);
26904 if (PyErr_Occurred()) SWIG_fail;
26905 {
26906 PyThreadState* __tstate = wxPyBeginAllowThreads();
26907 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26908
26909 wxPyEndAllowThreads(__tstate);
26910 if (PyErr_Occurred()) SWIG_fail;
26911 }
26912 resultobj = SWIG_From_int((int)result);
26913 return resultobj;
26914 fail:
26915 return NULL;
26916 }
26917
26918
26919 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
26920 PyObject *resultobj;
26921 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26922 PyObject * obj0 = 0 ;
26923 char *kwnames[] = {
26924 (char *) "self", NULL
26925 };
26926
26927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26930 {
26931 PyThreadState* __tstate = wxPyBeginAllowThreads();
26932 (arg1)->base_OnLeave();
26933
26934 wxPyEndAllowThreads(__tstate);
26935 if (PyErr_Occurred()) SWIG_fail;
26936 }
26937 Py_INCREF(Py_None); resultobj = Py_None;
26938 return resultobj;
26939 fail:
26940 return NULL;
26941 }
26942
26943
26944 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
26945 PyObject *resultobj;
26946 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26947 int arg2 ;
26948 int arg3 ;
26949 bool result;
26950 PyObject * obj0 = 0 ;
26951 PyObject * obj1 = 0 ;
26952 PyObject * obj2 = 0 ;
26953 char *kwnames[] = {
26954 (char *) "self",(char *) "x",(char *) "y", NULL
26955 };
26956
26957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26960 arg2 = (int)SWIG_As_int(obj1);
26961 if (PyErr_Occurred()) SWIG_fail;
26962 arg3 = (int)SWIG_As_int(obj2);
26963 if (PyErr_Occurred()) SWIG_fail;
26964 {
26965 PyThreadState* __tstate = wxPyBeginAllowThreads();
26966 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26967
26968 wxPyEndAllowThreads(__tstate);
26969 if (PyErr_Occurred()) SWIG_fail;
26970 }
26971 {
26972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26973 }
26974 return resultobj;
26975 fail:
26976 return NULL;
26977 }
26978
26979
26980 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
26981 PyObject *resultobj;
26982 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26983 int arg2 ;
26984 int arg3 ;
26985 int arg4 ;
26986 int result;
26987 PyObject * obj0 = 0 ;
26988 PyObject * obj1 = 0 ;
26989 PyObject * obj2 = 0 ;
26990 PyObject * obj3 = 0 ;
26991 char *kwnames[] = {
26992 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26993 };
26994
26995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26998 arg2 = (int)SWIG_As_int(obj1);
26999 if (PyErr_Occurred()) SWIG_fail;
27000 arg3 = (int)SWIG_As_int(obj2);
27001 if (PyErr_Occurred()) SWIG_fail;
27002 arg4 = (int)SWIG_As_int(obj3);
27003 if (PyErr_Occurred()) SWIG_fail;
27004 {
27005 PyThreadState* __tstate = wxPyBeginAllowThreads();
27006 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27007
27008 wxPyEndAllowThreads(__tstate);
27009 if (PyErr_Occurred()) SWIG_fail;
27010 }
27011 resultobj = SWIG_From_int((int)result);
27012 return resultobj;
27013 fail:
27014 return NULL;
27015 }
27016
27017
27018 static PyObject * TextDropTarget_swigregister(PyObject *, PyObject *args) {
27019 PyObject *obj;
27020 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27021 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
27022 Py_INCREF(obj);
27023 return Py_BuildValue((char *)"");
27024 }
27025 static PyObject *_wrap_new_FileDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
27026 PyObject *resultobj;
27027 wxPyFileDropTarget *result;
27028 char *kwnames[] = {
27029 NULL
27030 };
27031
27032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
27033 {
27034 PyThreadState* __tstate = wxPyBeginAllowThreads();
27035 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
27036
27037 wxPyEndAllowThreads(__tstate);
27038 if (PyErr_Occurred()) SWIG_fail;
27039 }
27040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
27041 return resultobj;
27042 fail:
27043 return NULL;
27044 }
27045
27046
27047 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
27048 PyObject *resultobj;
27049 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27050 PyObject *arg2 = (PyObject *) 0 ;
27051 PyObject *arg3 = (PyObject *) 0 ;
27052 PyObject * obj0 = 0 ;
27053 PyObject * obj1 = 0 ;
27054 PyObject * obj2 = 0 ;
27055 char *kwnames[] = {
27056 (char *) "self",(char *) "self",(char *) "_class", NULL
27057 };
27058
27059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
27060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27062 arg2 = obj1;
27063 arg3 = obj2;
27064 {
27065 PyThreadState* __tstate = wxPyBeginAllowThreads();
27066 (arg1)->_setCallbackInfo(arg2,arg3);
27067
27068 wxPyEndAllowThreads(__tstate);
27069 if (PyErr_Occurred()) SWIG_fail;
27070 }
27071 Py_INCREF(Py_None); resultobj = Py_None;
27072 return resultobj;
27073 fail:
27074 return NULL;
27075 }
27076
27077
27078 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *, PyObject *args, PyObject *kwargs) {
27079 PyObject *resultobj;
27080 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27081 int arg2 ;
27082 int arg3 ;
27083 int arg4 ;
27084 int result;
27085 PyObject * obj0 = 0 ;
27086 PyObject * obj1 = 0 ;
27087 PyObject * obj2 = 0 ;
27088 PyObject * obj3 = 0 ;
27089 char *kwnames[] = {
27090 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27091 };
27092
27093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27096 arg2 = (int)SWIG_As_int(obj1);
27097 if (PyErr_Occurred()) SWIG_fail;
27098 arg3 = (int)SWIG_As_int(obj2);
27099 if (PyErr_Occurred()) SWIG_fail;
27100 arg4 = (int)SWIG_As_int(obj3);
27101 if (PyErr_Occurred()) SWIG_fail;
27102 {
27103 PyThreadState* __tstate = wxPyBeginAllowThreads();
27104 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
27105
27106 wxPyEndAllowThreads(__tstate);
27107 if (PyErr_Occurred()) SWIG_fail;
27108 }
27109 resultobj = SWIG_From_int((int)result);
27110 return resultobj;
27111 fail:
27112 return NULL;
27113 }
27114
27115
27116 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *, PyObject *args, PyObject *kwargs) {
27117 PyObject *resultobj;
27118 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27119 int arg2 ;
27120 int arg3 ;
27121 int arg4 ;
27122 int result;
27123 PyObject * obj0 = 0 ;
27124 PyObject * obj1 = 0 ;
27125 PyObject * obj2 = 0 ;
27126 PyObject * obj3 = 0 ;
27127 char *kwnames[] = {
27128 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27129 };
27130
27131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27134 arg2 = (int)SWIG_As_int(obj1);
27135 if (PyErr_Occurred()) SWIG_fail;
27136 arg3 = (int)SWIG_As_int(obj2);
27137 if (PyErr_Occurred()) SWIG_fail;
27138 arg4 = (int)SWIG_As_int(obj3);
27139 if (PyErr_Occurred()) SWIG_fail;
27140 {
27141 PyThreadState* __tstate = wxPyBeginAllowThreads();
27142 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
27143
27144 wxPyEndAllowThreads(__tstate);
27145 if (PyErr_Occurred()) SWIG_fail;
27146 }
27147 resultobj = SWIG_From_int((int)result);
27148 return resultobj;
27149 fail:
27150 return NULL;
27151 }
27152
27153
27154 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *, PyObject *args, PyObject *kwargs) {
27155 PyObject *resultobj;
27156 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27157 PyObject * obj0 = 0 ;
27158 char *kwnames[] = {
27159 (char *) "self", NULL
27160 };
27161
27162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
27163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27165 {
27166 PyThreadState* __tstate = wxPyBeginAllowThreads();
27167 (arg1)->base_OnLeave();
27168
27169 wxPyEndAllowThreads(__tstate);
27170 if (PyErr_Occurred()) SWIG_fail;
27171 }
27172 Py_INCREF(Py_None); resultobj = Py_None;
27173 return resultobj;
27174 fail:
27175 return NULL;
27176 }
27177
27178
27179 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *, PyObject *args, PyObject *kwargs) {
27180 PyObject *resultobj;
27181 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27182 int arg2 ;
27183 int arg3 ;
27184 bool result;
27185 PyObject * obj0 = 0 ;
27186 PyObject * obj1 = 0 ;
27187 PyObject * obj2 = 0 ;
27188 char *kwnames[] = {
27189 (char *) "self",(char *) "x",(char *) "y", NULL
27190 };
27191
27192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
27193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27195 arg2 = (int)SWIG_As_int(obj1);
27196 if (PyErr_Occurred()) SWIG_fail;
27197 arg3 = (int)SWIG_As_int(obj2);
27198 if (PyErr_Occurred()) SWIG_fail;
27199 {
27200 PyThreadState* __tstate = wxPyBeginAllowThreads();
27201 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
27202
27203 wxPyEndAllowThreads(__tstate);
27204 if (PyErr_Occurred()) SWIG_fail;
27205 }
27206 {
27207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27208 }
27209 return resultobj;
27210 fail:
27211 return NULL;
27212 }
27213
27214
27215 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *, PyObject *args, PyObject *kwargs) {
27216 PyObject *resultobj;
27217 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
27218 int arg2 ;
27219 int arg3 ;
27220 int arg4 ;
27221 int result;
27222 PyObject * obj0 = 0 ;
27223 PyObject * obj1 = 0 ;
27224 PyObject * obj2 = 0 ;
27225 PyObject * obj3 = 0 ;
27226 char *kwnames[] = {
27227 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
27228 };
27229
27230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
27232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27233 arg2 = (int)SWIG_As_int(obj1);
27234 if (PyErr_Occurred()) SWIG_fail;
27235 arg3 = (int)SWIG_As_int(obj2);
27236 if (PyErr_Occurred()) SWIG_fail;
27237 arg4 = (int)SWIG_As_int(obj3);
27238 if (PyErr_Occurred()) SWIG_fail;
27239 {
27240 PyThreadState* __tstate = wxPyBeginAllowThreads();
27241 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
27242
27243 wxPyEndAllowThreads(__tstate);
27244 if (PyErr_Occurred()) SWIG_fail;
27245 }
27246 resultobj = SWIG_From_int((int)result);
27247 return resultobj;
27248 fail:
27249 return NULL;
27250 }
27251
27252
27253 static PyObject * FileDropTarget_swigregister(PyObject *, PyObject *args) {
27254 PyObject *obj;
27255 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27256 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
27257 Py_INCREF(obj);
27258 return Py_BuildValue((char *)"");
27259 }
27260 static PyObject *_wrap_new_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
27261 PyObject *resultobj;
27262 wxClipboard *result;
27263 char *kwnames[] = {
27264 NULL
27265 };
27266
27267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
27268 {
27269 PyThreadState* __tstate = wxPyBeginAllowThreads();
27270 result = (wxClipboard *)new wxClipboard();
27271
27272 wxPyEndAllowThreads(__tstate);
27273 if (PyErr_Occurred()) SWIG_fail;
27274 }
27275 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
27276 return resultobj;
27277 fail:
27278 return NULL;
27279 }
27280
27281
27282 static PyObject *_wrap_delete_Clipboard(PyObject *, PyObject *args, PyObject *kwargs) {
27283 PyObject *resultobj;
27284 wxClipboard *arg1 = (wxClipboard *) 0 ;
27285 PyObject * obj0 = 0 ;
27286 char *kwnames[] = {
27287 (char *) "self", NULL
27288 };
27289
27290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
27291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27293 {
27294 PyThreadState* __tstate = wxPyBeginAllowThreads();
27295 delete arg1;
27296
27297 wxPyEndAllowThreads(__tstate);
27298 if (PyErr_Occurred()) SWIG_fail;
27299 }
27300 Py_INCREF(Py_None); resultobj = Py_None;
27301 return resultobj;
27302 fail:
27303 return NULL;
27304 }
27305
27306
27307 static PyObject *_wrap_Clipboard_Open(PyObject *, PyObject *args, PyObject *kwargs) {
27308 PyObject *resultobj;
27309 wxClipboard *arg1 = (wxClipboard *) 0 ;
27310 bool result;
27311 PyObject * obj0 = 0 ;
27312 char *kwnames[] = {
27313 (char *) "self", NULL
27314 };
27315
27316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
27317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27319 {
27320 PyThreadState* __tstate = wxPyBeginAllowThreads();
27321 result = (bool)(arg1)->Open();
27322
27323 wxPyEndAllowThreads(__tstate);
27324 if (PyErr_Occurred()) SWIG_fail;
27325 }
27326 {
27327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27328 }
27329 return resultobj;
27330 fail:
27331 return NULL;
27332 }
27333
27334
27335 static PyObject *_wrap_Clipboard_Close(PyObject *, PyObject *args, PyObject *kwargs) {
27336 PyObject *resultobj;
27337 wxClipboard *arg1 = (wxClipboard *) 0 ;
27338 PyObject * obj0 = 0 ;
27339 char *kwnames[] = {
27340 (char *) "self", NULL
27341 };
27342
27343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27346 {
27347 PyThreadState* __tstate = wxPyBeginAllowThreads();
27348 (arg1)->Close();
27349
27350 wxPyEndAllowThreads(__tstate);
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 Py_INCREF(Py_None); resultobj = Py_None;
27354 return resultobj;
27355 fail:
27356 return NULL;
27357 }
27358
27359
27360 static PyObject *_wrap_Clipboard_IsOpened(PyObject *, PyObject *args, PyObject *kwargs) {
27361 PyObject *resultobj;
27362 wxClipboard *arg1 = (wxClipboard *) 0 ;
27363 bool result;
27364 PyObject * obj0 = 0 ;
27365 char *kwnames[] = {
27366 (char *) "self", NULL
27367 };
27368
27369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27372 {
27373 PyThreadState* __tstate = wxPyBeginAllowThreads();
27374 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27375
27376 wxPyEndAllowThreads(__tstate);
27377 if (PyErr_Occurred()) SWIG_fail;
27378 }
27379 {
27380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27381 }
27382 return resultobj;
27383 fail:
27384 return NULL;
27385 }
27386
27387
27388 static PyObject *_wrap_Clipboard_AddData(PyObject *, PyObject *args, PyObject *kwargs) {
27389 PyObject *resultobj;
27390 wxClipboard *arg1 = (wxClipboard *) 0 ;
27391 wxDataObject *arg2 = (wxDataObject *) 0 ;
27392 bool result;
27393 PyObject * obj0 = 0 ;
27394 PyObject * obj1 = 0 ;
27395 char *kwnames[] = {
27396 (char *) "self",(char *) "data", NULL
27397 };
27398
27399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27403 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27404 {
27405 PyThreadState* __tstate = wxPyBeginAllowThreads();
27406 result = (bool)(arg1)->AddData(arg2);
27407
27408 wxPyEndAllowThreads(__tstate);
27409 if (PyErr_Occurred()) SWIG_fail;
27410 }
27411 {
27412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27413 }
27414 return resultobj;
27415 fail:
27416 return NULL;
27417 }
27418
27419
27420 static PyObject *_wrap_Clipboard_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
27421 PyObject *resultobj;
27422 wxClipboard *arg1 = (wxClipboard *) 0 ;
27423 wxDataObject *arg2 = (wxDataObject *) 0 ;
27424 bool result;
27425 PyObject * obj0 = 0 ;
27426 PyObject * obj1 = 0 ;
27427 char *kwnames[] = {
27428 (char *) "self",(char *) "data", NULL
27429 };
27430
27431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27435 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27436 {
27437 PyThreadState* __tstate = wxPyBeginAllowThreads();
27438 result = (bool)(arg1)->SetData(arg2);
27439
27440 wxPyEndAllowThreads(__tstate);
27441 if (PyErr_Occurred()) SWIG_fail;
27442 }
27443 {
27444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27445 }
27446 return resultobj;
27447 fail:
27448 return NULL;
27449 }
27450
27451
27452 static PyObject *_wrap_Clipboard_IsSupported(PyObject *, PyObject *args, PyObject *kwargs) {
27453 PyObject *resultobj;
27454 wxClipboard *arg1 = (wxClipboard *) 0 ;
27455 wxDataFormat *arg2 = 0 ;
27456 bool result;
27457 PyObject * obj0 = 0 ;
27458 PyObject * obj1 = 0 ;
27459 char *kwnames[] = {
27460 (char *) "self",(char *) "format", NULL
27461 };
27462
27463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27467 SWIG_POINTER_EXCEPTION | 0)) == -1)
27468 SWIG_fail;
27469 if (arg2 == NULL) {
27470 PyErr_SetString(PyExc_TypeError,"null reference");
27471 SWIG_fail;
27472 }
27473 {
27474 PyThreadState* __tstate = wxPyBeginAllowThreads();
27475 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27476
27477 wxPyEndAllowThreads(__tstate);
27478 if (PyErr_Occurred()) SWIG_fail;
27479 }
27480 {
27481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27482 }
27483 return resultobj;
27484 fail:
27485 return NULL;
27486 }
27487
27488
27489 static PyObject *_wrap_Clipboard_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
27490 PyObject *resultobj;
27491 wxClipboard *arg1 = (wxClipboard *) 0 ;
27492 wxDataObject *arg2 = 0 ;
27493 bool result;
27494 PyObject * obj0 = 0 ;
27495 PyObject * obj1 = 0 ;
27496 char *kwnames[] = {
27497 (char *) "self",(char *) "data", NULL
27498 };
27499
27500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27503 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27504 SWIG_POINTER_EXCEPTION | 0)) == -1)
27505 SWIG_fail;
27506 if (arg2 == NULL) {
27507 PyErr_SetString(PyExc_TypeError,"null reference");
27508 SWIG_fail;
27509 }
27510 {
27511 PyThreadState* __tstate = wxPyBeginAllowThreads();
27512 result = (bool)(arg1)->GetData(*arg2);
27513
27514 wxPyEndAllowThreads(__tstate);
27515 if (PyErr_Occurred()) SWIG_fail;
27516 }
27517 {
27518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27519 }
27520 return resultobj;
27521 fail:
27522 return NULL;
27523 }
27524
27525
27526 static PyObject *_wrap_Clipboard_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
27527 PyObject *resultobj;
27528 wxClipboard *arg1 = (wxClipboard *) 0 ;
27529 PyObject * obj0 = 0 ;
27530 char *kwnames[] = {
27531 (char *) "self", NULL
27532 };
27533
27534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27537 {
27538 PyThreadState* __tstate = wxPyBeginAllowThreads();
27539 (arg1)->Clear();
27540
27541 wxPyEndAllowThreads(__tstate);
27542 if (PyErr_Occurred()) SWIG_fail;
27543 }
27544 Py_INCREF(Py_None); resultobj = Py_None;
27545 return resultobj;
27546 fail:
27547 return NULL;
27548 }
27549
27550
27551 static PyObject *_wrap_Clipboard_Flush(PyObject *, PyObject *args, PyObject *kwargs) {
27552 PyObject *resultobj;
27553 wxClipboard *arg1 = (wxClipboard *) 0 ;
27554 bool result;
27555 PyObject * obj0 = 0 ;
27556 char *kwnames[] = {
27557 (char *) "self", NULL
27558 };
27559
27560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27563 {
27564 PyThreadState* __tstate = wxPyBeginAllowThreads();
27565 result = (bool)(arg1)->Flush();
27566
27567 wxPyEndAllowThreads(__tstate);
27568 if (PyErr_Occurred()) SWIG_fail;
27569 }
27570 {
27571 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27572 }
27573 return resultobj;
27574 fail:
27575 return NULL;
27576 }
27577
27578
27579 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *, PyObject *args, PyObject *kwargs) {
27580 PyObject *resultobj;
27581 wxClipboard *arg1 = (wxClipboard *) 0 ;
27582 bool arg2 = (bool) true ;
27583 PyObject * obj0 = 0 ;
27584 PyObject * obj1 = 0 ;
27585 char *kwnames[] = {
27586 (char *) "self",(char *) "primary", NULL
27587 };
27588
27589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27592 if (obj1) {
27593 arg2 = (bool)SWIG_As_bool(obj1);
27594 if (PyErr_Occurred()) SWIG_fail;
27595 }
27596 {
27597 PyThreadState* __tstate = wxPyBeginAllowThreads();
27598 (arg1)->UsePrimarySelection(arg2);
27599
27600 wxPyEndAllowThreads(__tstate);
27601 if (PyErr_Occurred()) SWIG_fail;
27602 }
27603 Py_INCREF(Py_None); resultobj = Py_None;
27604 return resultobj;
27605 fail:
27606 return NULL;
27607 }
27608
27609
27610 static PyObject *_wrap_Clipboard_Get(PyObject *, PyObject *args, PyObject *kwargs) {
27611 PyObject *resultobj;
27612 wxClipboard *result;
27613 char *kwnames[] = {
27614 NULL
27615 };
27616
27617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27618 {
27619 PyThreadState* __tstate = wxPyBeginAllowThreads();
27620 result = (wxClipboard *)wxClipboard::Get();
27621
27622 wxPyEndAllowThreads(__tstate);
27623 if (PyErr_Occurred()) SWIG_fail;
27624 }
27625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27626 return resultobj;
27627 fail:
27628 return NULL;
27629 }
27630
27631
27632 static PyObject * Clipboard_swigregister(PyObject *, PyObject *args) {
27633 PyObject *obj;
27634 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27635 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27636 Py_INCREF(obj);
27637 return Py_BuildValue((char *)"");
27638 }
27639 static PyObject *_wrap_new_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
27640 PyObject *resultobj;
27641 wxClipboard *arg1 = (wxClipboard *) NULL ;
27642 wxClipboardLocker *result;
27643 PyObject * obj0 = 0 ;
27644 char *kwnames[] = {
27645 (char *) "clipboard", NULL
27646 };
27647
27648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27649 if (obj0) {
27650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27652 }
27653 {
27654 PyThreadState* __tstate = wxPyBeginAllowThreads();
27655 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27656
27657 wxPyEndAllowThreads(__tstate);
27658 if (PyErr_Occurred()) SWIG_fail;
27659 }
27660 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27661 return resultobj;
27662 fail:
27663 return NULL;
27664 }
27665
27666
27667 static PyObject *_wrap_delete_ClipboardLocker(PyObject *, PyObject *args, PyObject *kwargs) {
27668 PyObject *resultobj;
27669 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27670 PyObject * obj0 = 0 ;
27671 char *kwnames[] = {
27672 (char *) "self", NULL
27673 };
27674
27675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27678 {
27679 PyThreadState* __tstate = wxPyBeginAllowThreads();
27680 delete arg1;
27681
27682 wxPyEndAllowThreads(__tstate);
27683 if (PyErr_Occurred()) SWIG_fail;
27684 }
27685 Py_INCREF(Py_None); resultobj = Py_None;
27686 return resultobj;
27687 fail:
27688 return NULL;
27689 }
27690
27691
27692 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *, PyObject *args, PyObject *kwargs) {
27693 PyObject *resultobj;
27694 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27695 bool result;
27696 PyObject * obj0 = 0 ;
27697 char *kwnames[] = {
27698 (char *) "self", NULL
27699 };
27700
27701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27704 {
27705 PyThreadState* __tstate = wxPyBeginAllowThreads();
27706 result = (bool)wxClipboardLocker___nonzero__(arg1);
27707
27708 wxPyEndAllowThreads(__tstate);
27709 if (PyErr_Occurred()) SWIG_fail;
27710 }
27711 {
27712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27713 }
27714 return resultobj;
27715 fail:
27716 return NULL;
27717 }
27718
27719
27720 static PyObject * ClipboardLocker_swigregister(PyObject *, PyObject *args) {
27721 PyObject *obj;
27722 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27723 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27724 Py_INCREF(obj);
27725 return Py_BuildValue((char *)"");
27726 }
27727 static PyObject *_wrap_new_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
27728 PyObject *resultobj;
27729 int arg1 = (int) 0 ;
27730 int arg2 = (int) 0 ;
27731 int arg3 = (int) 0 ;
27732 int arg4 = (int) 0 ;
27733 wxVideoMode *result;
27734 PyObject * obj0 = 0 ;
27735 PyObject * obj1 = 0 ;
27736 PyObject * obj2 = 0 ;
27737 PyObject * obj3 = 0 ;
27738 char *kwnames[] = {
27739 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27740 };
27741
27742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27743 if (obj0) {
27744 arg1 = (int)SWIG_As_int(obj0);
27745 if (PyErr_Occurred()) SWIG_fail;
27746 }
27747 if (obj1) {
27748 arg2 = (int)SWIG_As_int(obj1);
27749 if (PyErr_Occurred()) SWIG_fail;
27750 }
27751 if (obj2) {
27752 arg3 = (int)SWIG_As_int(obj2);
27753 if (PyErr_Occurred()) SWIG_fail;
27754 }
27755 if (obj3) {
27756 arg4 = (int)SWIG_As_int(obj3);
27757 if (PyErr_Occurred()) SWIG_fail;
27758 }
27759 {
27760 PyThreadState* __tstate = wxPyBeginAllowThreads();
27761 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27762
27763 wxPyEndAllowThreads(__tstate);
27764 if (PyErr_Occurred()) SWIG_fail;
27765 }
27766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27767 return resultobj;
27768 fail:
27769 return NULL;
27770 }
27771
27772
27773 static PyObject *_wrap_delete_VideoMode(PyObject *, PyObject *args, PyObject *kwargs) {
27774 PyObject *resultobj;
27775 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27776 PyObject * obj0 = 0 ;
27777 char *kwnames[] = {
27778 (char *) "self", NULL
27779 };
27780
27781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27784 {
27785 PyThreadState* __tstate = wxPyBeginAllowThreads();
27786 delete arg1;
27787
27788 wxPyEndAllowThreads(__tstate);
27789 if (PyErr_Occurred()) SWIG_fail;
27790 }
27791 Py_INCREF(Py_None); resultobj = Py_None;
27792 return resultobj;
27793 fail:
27794 return NULL;
27795 }
27796
27797
27798 static PyObject *_wrap_VideoMode_Matches(PyObject *, PyObject *args, PyObject *kwargs) {
27799 PyObject *resultobj;
27800 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27801 wxVideoMode *arg2 = 0 ;
27802 bool result;
27803 PyObject * obj0 = 0 ;
27804 PyObject * obj1 = 0 ;
27805 char *kwnames[] = {
27806 (char *) "self",(char *) "other", NULL
27807 };
27808
27809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27812 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27813 SWIG_POINTER_EXCEPTION | 0)) == -1)
27814 SWIG_fail;
27815 if (arg2 == NULL) {
27816 PyErr_SetString(PyExc_TypeError,"null reference");
27817 SWIG_fail;
27818 }
27819 {
27820 PyThreadState* __tstate = wxPyBeginAllowThreads();
27821 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27822
27823 wxPyEndAllowThreads(__tstate);
27824 if (PyErr_Occurred()) SWIG_fail;
27825 }
27826 {
27827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27828 }
27829 return resultobj;
27830 fail:
27831 return NULL;
27832 }
27833
27834
27835 static PyObject *_wrap_VideoMode_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
27836 PyObject *resultobj;
27837 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27838 int result;
27839 PyObject * obj0 = 0 ;
27840 char *kwnames[] = {
27841 (char *) "self", NULL
27842 };
27843
27844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27847 {
27848 PyThreadState* __tstate = wxPyBeginAllowThreads();
27849 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27850
27851 wxPyEndAllowThreads(__tstate);
27852 if (PyErr_Occurred()) SWIG_fail;
27853 }
27854 resultobj = SWIG_From_int((int)result);
27855 return resultobj;
27856 fail:
27857 return NULL;
27858 }
27859
27860
27861 static PyObject *_wrap_VideoMode_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
27862 PyObject *resultobj;
27863 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27864 int result;
27865 PyObject * obj0 = 0 ;
27866 char *kwnames[] = {
27867 (char *) "self", NULL
27868 };
27869
27870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27873 {
27874 PyThreadState* __tstate = wxPyBeginAllowThreads();
27875 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27876
27877 wxPyEndAllowThreads(__tstate);
27878 if (PyErr_Occurred()) SWIG_fail;
27879 }
27880 resultobj = SWIG_From_int((int)result);
27881 return resultobj;
27882 fail:
27883 return NULL;
27884 }
27885
27886
27887 static PyObject *_wrap_VideoMode_GetDepth(PyObject *, PyObject *args, PyObject *kwargs) {
27888 PyObject *resultobj;
27889 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27890 int result;
27891 PyObject * obj0 = 0 ;
27892 char *kwnames[] = {
27893 (char *) "self", NULL
27894 };
27895
27896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27899 {
27900 PyThreadState* __tstate = wxPyBeginAllowThreads();
27901 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27902
27903 wxPyEndAllowThreads(__tstate);
27904 if (PyErr_Occurred()) SWIG_fail;
27905 }
27906 resultobj = SWIG_From_int((int)result);
27907 return resultobj;
27908 fail:
27909 return NULL;
27910 }
27911
27912
27913 static PyObject *_wrap_VideoMode_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
27914 PyObject *resultobj;
27915 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27916 bool result;
27917 PyObject * obj0 = 0 ;
27918 char *kwnames[] = {
27919 (char *) "self", NULL
27920 };
27921
27922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27925 {
27926 PyThreadState* __tstate = wxPyBeginAllowThreads();
27927 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27928
27929 wxPyEndAllowThreads(__tstate);
27930 if (PyErr_Occurred()) SWIG_fail;
27931 }
27932 {
27933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27934 }
27935 return resultobj;
27936 fail:
27937 return NULL;
27938 }
27939
27940
27941 static PyObject *_wrap_VideoMode___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
27942 PyObject *resultobj;
27943 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27944 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27945 bool result;
27946 PyObject * obj0 = 0 ;
27947 PyObject * obj1 = 0 ;
27948 char *kwnames[] = {
27949 (char *) "self",(char *) "other", NULL
27950 };
27951
27952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27955 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27957 {
27958 PyThreadState* __tstate = wxPyBeginAllowThreads();
27959 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27960
27961 wxPyEndAllowThreads(__tstate);
27962 if (PyErr_Occurred()) SWIG_fail;
27963 }
27964 {
27965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27966 }
27967 return resultobj;
27968 fail:
27969 return NULL;
27970 }
27971
27972
27973 static PyObject *_wrap_VideoMode___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
27974 PyObject *resultobj;
27975 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27976 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27977 bool result;
27978 PyObject * obj0 = 0 ;
27979 PyObject * obj1 = 0 ;
27980 char *kwnames[] = {
27981 (char *) "self",(char *) "other", NULL
27982 };
27983
27984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27987 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27989 {
27990 PyThreadState* __tstate = wxPyBeginAllowThreads();
27991 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27992
27993 wxPyEndAllowThreads(__tstate);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 {
27997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27998 }
27999 return resultobj;
28000 fail:
28001 return NULL;
28002 }
28003
28004
28005 static PyObject *_wrap_VideoMode_w_set(PyObject *, PyObject *args, PyObject *kwargs) {
28006 PyObject *resultobj;
28007 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28008 int arg2 ;
28009 PyObject * obj0 = 0 ;
28010 PyObject * obj1 = 0 ;
28011 char *kwnames[] = {
28012 (char *) "self",(char *) "w", NULL
28013 };
28014
28015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
28016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28018 arg2 = (int)SWIG_As_int(obj1);
28019 if (PyErr_Occurred()) SWIG_fail;
28020 if (arg1) (arg1)->w = arg2;
28021
28022 Py_INCREF(Py_None); resultobj = Py_None;
28023 return resultobj;
28024 fail:
28025 return NULL;
28026 }
28027
28028
28029 static PyObject *_wrap_VideoMode_w_get(PyObject *, PyObject *args, PyObject *kwargs) {
28030 PyObject *resultobj;
28031 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28032 int result;
28033 PyObject * obj0 = 0 ;
28034 char *kwnames[] = {
28035 (char *) "self", NULL
28036 };
28037
28038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
28039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28041 result = (int) ((arg1)->w);
28042
28043 resultobj = SWIG_From_int((int)result);
28044 return resultobj;
28045 fail:
28046 return NULL;
28047 }
28048
28049
28050 static PyObject *_wrap_VideoMode_h_set(PyObject *, PyObject *args, PyObject *kwargs) {
28051 PyObject *resultobj;
28052 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28053 int arg2 ;
28054 PyObject * obj0 = 0 ;
28055 PyObject * obj1 = 0 ;
28056 char *kwnames[] = {
28057 (char *) "self",(char *) "h", NULL
28058 };
28059
28060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
28061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28063 arg2 = (int)SWIG_As_int(obj1);
28064 if (PyErr_Occurred()) SWIG_fail;
28065 if (arg1) (arg1)->h = arg2;
28066
28067 Py_INCREF(Py_None); resultobj = Py_None;
28068 return resultobj;
28069 fail:
28070 return NULL;
28071 }
28072
28073
28074 static PyObject *_wrap_VideoMode_h_get(PyObject *, PyObject *args, PyObject *kwargs) {
28075 PyObject *resultobj;
28076 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28077 int result;
28078 PyObject * obj0 = 0 ;
28079 char *kwnames[] = {
28080 (char *) "self", NULL
28081 };
28082
28083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
28084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28086 result = (int) ((arg1)->h);
28087
28088 resultobj = SWIG_From_int((int)result);
28089 return resultobj;
28090 fail:
28091 return NULL;
28092 }
28093
28094
28095 static PyObject *_wrap_VideoMode_bpp_set(PyObject *, PyObject *args, PyObject *kwargs) {
28096 PyObject *resultobj;
28097 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28098 int arg2 ;
28099 PyObject * obj0 = 0 ;
28100 PyObject * obj1 = 0 ;
28101 char *kwnames[] = {
28102 (char *) "self",(char *) "bpp", NULL
28103 };
28104
28105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
28106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28108 arg2 = (int)SWIG_As_int(obj1);
28109 if (PyErr_Occurred()) SWIG_fail;
28110 if (arg1) (arg1)->bpp = arg2;
28111
28112 Py_INCREF(Py_None); resultobj = Py_None;
28113 return resultobj;
28114 fail:
28115 return NULL;
28116 }
28117
28118
28119 static PyObject *_wrap_VideoMode_bpp_get(PyObject *, PyObject *args, PyObject *kwargs) {
28120 PyObject *resultobj;
28121 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28122 int result;
28123 PyObject * obj0 = 0 ;
28124 char *kwnames[] = {
28125 (char *) "self", NULL
28126 };
28127
28128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
28129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28131 result = (int) ((arg1)->bpp);
28132
28133 resultobj = SWIG_From_int((int)result);
28134 return resultobj;
28135 fail:
28136 return NULL;
28137 }
28138
28139
28140 static PyObject *_wrap_VideoMode_refresh_set(PyObject *, PyObject *args, PyObject *kwargs) {
28141 PyObject *resultobj;
28142 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28143 int arg2 ;
28144 PyObject * obj0 = 0 ;
28145 PyObject * obj1 = 0 ;
28146 char *kwnames[] = {
28147 (char *) "self",(char *) "refresh", NULL
28148 };
28149
28150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
28151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28153 arg2 = (int)SWIG_As_int(obj1);
28154 if (PyErr_Occurred()) SWIG_fail;
28155 if (arg1) (arg1)->refresh = arg2;
28156
28157 Py_INCREF(Py_None); resultobj = Py_None;
28158 return resultobj;
28159 fail:
28160 return NULL;
28161 }
28162
28163
28164 static PyObject *_wrap_VideoMode_refresh_get(PyObject *, PyObject *args, PyObject *kwargs) {
28165 PyObject *resultobj;
28166 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
28167 int result;
28168 PyObject * obj0 = 0 ;
28169 char *kwnames[] = {
28170 (char *) "self", NULL
28171 };
28172
28173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
28174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
28175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28176 result = (int) ((arg1)->refresh);
28177
28178 resultobj = SWIG_From_int((int)result);
28179 return resultobj;
28180 fail:
28181 return NULL;
28182 }
28183
28184
28185 static PyObject * VideoMode_swigregister(PyObject *, PyObject *args) {
28186 PyObject *obj;
28187 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28188 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
28189 Py_INCREF(obj);
28190 return Py_BuildValue((char *)"");
28191 }
28192 static int _wrap_DefaultVideoMode_set(PyObject *) {
28193 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
28194 return 1;
28195 }
28196
28197
28198 static PyObject *_wrap_DefaultVideoMode_get() {
28199 PyObject *pyobj;
28200
28201 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
28202 return pyobj;
28203 }
28204
28205
28206 static PyObject *_wrap_new_Display(PyObject *, PyObject *args, PyObject *kwargs) {
28207 PyObject *resultobj;
28208 size_t arg1 = (size_t) 0 ;
28209 wxDisplay *result;
28210 PyObject * obj0 = 0 ;
28211 char *kwnames[] = {
28212 (char *) "index", NULL
28213 };
28214
28215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
28216 if (obj0) {
28217 arg1 = (size_t)SWIG_As_unsigned_SS_long(obj0);
28218 if (PyErr_Occurred()) SWIG_fail;
28219 }
28220 {
28221 PyThreadState* __tstate = wxPyBeginAllowThreads();
28222 result = (wxDisplay *)new wxDisplay(arg1);
28223
28224 wxPyEndAllowThreads(__tstate);
28225 if (PyErr_Occurred()) SWIG_fail;
28226 }
28227 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
28228 return resultobj;
28229 fail:
28230 return NULL;
28231 }
28232
28233
28234 static PyObject *_wrap_delete_Display(PyObject *, PyObject *args, PyObject *kwargs) {
28235 PyObject *resultobj;
28236 wxDisplay *arg1 = (wxDisplay *) 0 ;
28237 PyObject * obj0 = 0 ;
28238 char *kwnames[] = {
28239 (char *) "self", NULL
28240 };
28241
28242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
28243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28245 {
28246 PyThreadState* __tstate = wxPyBeginAllowThreads();
28247 delete arg1;
28248
28249 wxPyEndAllowThreads(__tstate);
28250 if (PyErr_Occurred()) SWIG_fail;
28251 }
28252 Py_INCREF(Py_None); resultobj = Py_None;
28253 return resultobj;
28254 fail:
28255 return NULL;
28256 }
28257
28258
28259 static PyObject *_wrap_Display_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
28260 PyObject *resultobj;
28261 size_t result;
28262 char *kwnames[] = {
28263 NULL
28264 };
28265
28266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
28267 {
28268 PyThreadState* __tstate = wxPyBeginAllowThreads();
28269 result = (size_t)wxDisplay::GetCount();
28270
28271 wxPyEndAllowThreads(__tstate);
28272 if (PyErr_Occurred()) SWIG_fail;
28273 }
28274 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
28275 return resultobj;
28276 fail:
28277 return NULL;
28278 }
28279
28280
28281 static PyObject *_wrap_Display_GetFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
28282 PyObject *resultobj;
28283 wxPoint *arg1 = 0 ;
28284 int result;
28285 wxPoint temp1 ;
28286 PyObject * obj0 = 0 ;
28287 char *kwnames[] = {
28288 (char *) "pt", NULL
28289 };
28290
28291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
28292 {
28293 arg1 = &temp1;
28294 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
28295 }
28296 {
28297 PyThreadState* __tstate = wxPyBeginAllowThreads();
28298 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
28299
28300 wxPyEndAllowThreads(__tstate);
28301 if (PyErr_Occurred()) SWIG_fail;
28302 }
28303 resultobj = SWIG_From_int((int)result);
28304 return resultobj;
28305 fail:
28306 return NULL;
28307 }
28308
28309
28310 static PyObject *_wrap_Display_GetFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
28311 PyObject *resultobj;
28312 wxWindow *arg1 = (wxWindow *) 0 ;
28313 int result;
28314 PyObject * obj0 = 0 ;
28315 char *kwnames[] = {
28316 (char *) "window", NULL
28317 };
28318
28319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
28320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28322 {
28323 PyThreadState* __tstate = wxPyBeginAllowThreads();
28324 result = (int)wxDisplay::GetFromWindow(arg1);
28325
28326 wxPyEndAllowThreads(__tstate);
28327 if (PyErr_Occurred()) SWIG_fail;
28328 }
28329 resultobj = SWIG_From_int((int)result);
28330 return resultobj;
28331 fail:
28332 return NULL;
28333 }
28334
28335
28336 static PyObject *_wrap_Display_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
28337 PyObject *resultobj;
28338 wxDisplay *arg1 = (wxDisplay *) 0 ;
28339 bool result;
28340 PyObject * obj0 = 0 ;
28341 char *kwnames[] = {
28342 (char *) "self", NULL
28343 };
28344
28345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28348 {
28349 PyThreadState* __tstate = wxPyBeginAllowThreads();
28350 result = (bool)((wxDisplay const *)arg1)->IsOk();
28351
28352 wxPyEndAllowThreads(__tstate);
28353 if (PyErr_Occurred()) SWIG_fail;
28354 }
28355 {
28356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28357 }
28358 return resultobj;
28359 fail:
28360 return NULL;
28361 }
28362
28363
28364 static PyObject *_wrap_Display_GetGeometry(PyObject *, PyObject *args, PyObject *kwargs) {
28365 PyObject *resultobj;
28366 wxDisplay *arg1 = (wxDisplay *) 0 ;
28367 wxRect result;
28368 PyObject * obj0 = 0 ;
28369 char *kwnames[] = {
28370 (char *) "self", NULL
28371 };
28372
28373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28376 {
28377 PyThreadState* __tstate = wxPyBeginAllowThreads();
28378 result = ((wxDisplay const *)arg1)->GetGeometry();
28379
28380 wxPyEndAllowThreads(__tstate);
28381 if (PyErr_Occurred()) SWIG_fail;
28382 }
28383 {
28384 wxRect * resultptr;
28385 resultptr = new wxRect((wxRect &) result);
28386 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28387 }
28388 return resultobj;
28389 fail:
28390 return NULL;
28391 }
28392
28393
28394 static PyObject *_wrap_Display_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
28395 PyObject *resultobj;
28396 wxDisplay *arg1 = (wxDisplay *) 0 ;
28397 wxString result;
28398 PyObject * obj0 = 0 ;
28399 char *kwnames[] = {
28400 (char *) "self", NULL
28401 };
28402
28403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28406 {
28407 PyThreadState* __tstate = wxPyBeginAllowThreads();
28408 result = ((wxDisplay const *)arg1)->GetName();
28409
28410 wxPyEndAllowThreads(__tstate);
28411 if (PyErr_Occurred()) SWIG_fail;
28412 }
28413 {
28414 #if wxUSE_UNICODE
28415 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28416 #else
28417 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28418 #endif
28419 }
28420 return resultobj;
28421 fail:
28422 return NULL;
28423 }
28424
28425
28426 static PyObject *_wrap_Display_IsPrimary(PyObject *, PyObject *args, PyObject *kwargs) {
28427 PyObject *resultobj;
28428 wxDisplay *arg1 = (wxDisplay *) 0 ;
28429 bool result;
28430 PyObject * obj0 = 0 ;
28431 char *kwnames[] = {
28432 (char *) "self", NULL
28433 };
28434
28435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28438 {
28439 PyThreadState* __tstate = wxPyBeginAllowThreads();
28440 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28441
28442 wxPyEndAllowThreads(__tstate);
28443 if (PyErr_Occurred()) SWIG_fail;
28444 }
28445 {
28446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28447 }
28448 return resultobj;
28449 fail:
28450 return NULL;
28451 }
28452
28453
28454 static PyObject *_wrap_Display_GetModes(PyObject *, PyObject *args, PyObject *kwargs) {
28455 PyObject *resultobj;
28456 wxDisplay *arg1 = (wxDisplay *) 0 ;
28457 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28458 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28459 PyObject *result;
28460 PyObject * obj0 = 0 ;
28461 PyObject * obj1 = 0 ;
28462 char *kwnames[] = {
28463 (char *) "self",(char *) "mode", NULL
28464 };
28465
28466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28469 if (obj1) {
28470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28471 SWIG_POINTER_EXCEPTION | 0)) == -1)
28472 SWIG_fail;
28473 if (arg2 == NULL) {
28474 PyErr_SetString(PyExc_TypeError,"null reference");
28475 SWIG_fail;
28476 }
28477 }
28478 {
28479 PyThreadState* __tstate = wxPyBeginAllowThreads();
28480 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28481
28482 wxPyEndAllowThreads(__tstate);
28483 if (PyErr_Occurred()) SWIG_fail;
28484 }
28485 resultobj = result;
28486 return resultobj;
28487 fail:
28488 return NULL;
28489 }
28490
28491
28492 static PyObject *_wrap_Display_GetCurrentMode(PyObject *, PyObject *args, PyObject *kwargs) {
28493 PyObject *resultobj;
28494 wxDisplay *arg1 = (wxDisplay *) 0 ;
28495 wxVideoMode result;
28496 PyObject * obj0 = 0 ;
28497 char *kwnames[] = {
28498 (char *) "self", NULL
28499 };
28500
28501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28504 {
28505 PyThreadState* __tstate = wxPyBeginAllowThreads();
28506 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28507
28508 wxPyEndAllowThreads(__tstate);
28509 if (PyErr_Occurred()) SWIG_fail;
28510 }
28511 {
28512 wxVideoMode * resultptr;
28513 resultptr = new wxVideoMode((wxVideoMode &) result);
28514 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28515 }
28516 return resultobj;
28517 fail:
28518 return NULL;
28519 }
28520
28521
28522 static PyObject *_wrap_Display_ChangeMode(PyObject *, PyObject *args, PyObject *kwargs) {
28523 PyObject *resultobj;
28524 wxDisplay *arg1 = (wxDisplay *) 0 ;
28525 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28526 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28527 bool result;
28528 PyObject * obj0 = 0 ;
28529 PyObject * obj1 = 0 ;
28530 char *kwnames[] = {
28531 (char *) "self",(char *) "mode", NULL
28532 };
28533
28534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28537 if (obj1) {
28538 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28539 SWIG_POINTER_EXCEPTION | 0)) == -1)
28540 SWIG_fail;
28541 if (arg2 == NULL) {
28542 PyErr_SetString(PyExc_TypeError,"null reference");
28543 SWIG_fail;
28544 }
28545 }
28546 {
28547 PyThreadState* __tstate = wxPyBeginAllowThreads();
28548 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28549
28550 wxPyEndAllowThreads(__tstate);
28551 if (PyErr_Occurred()) SWIG_fail;
28552 }
28553 {
28554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28555 }
28556 return resultobj;
28557 fail:
28558 return NULL;
28559 }
28560
28561
28562 static PyObject *_wrap_Display_ResetMode(PyObject *, PyObject *args, PyObject *kwargs) {
28563 PyObject *resultobj;
28564 wxDisplay *arg1 = (wxDisplay *) 0 ;
28565 PyObject * obj0 = 0 ;
28566 char *kwnames[] = {
28567 (char *) "self", NULL
28568 };
28569
28570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28573 {
28574 PyThreadState* __tstate = wxPyBeginAllowThreads();
28575 (arg1)->ResetMode();
28576
28577 wxPyEndAllowThreads(__tstate);
28578 if (PyErr_Occurred()) SWIG_fail;
28579 }
28580 Py_INCREF(Py_None); resultobj = Py_None;
28581 return resultobj;
28582 fail:
28583 return NULL;
28584 }
28585
28586
28587 static PyObject * Display_swigregister(PyObject *, PyObject *args) {
28588 PyObject *obj;
28589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28590 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28591 Py_INCREF(obj);
28592 return Py_BuildValue((char *)"");
28593 }
28594 static PyObject *_wrap_StandardPaths_Get(PyObject *, PyObject *args, PyObject *kwargs) {
28595 PyObject *resultobj;
28596 wxStandardPaths *result;
28597 char *kwnames[] = {
28598 NULL
28599 };
28600
28601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StandardPaths_Get",kwnames)) goto fail;
28602 {
28603 PyThreadState* __tstate = wxPyBeginAllowThreads();
28604 {
28605 wxStandardPaths &_result_ref = wxStandardPaths::Get();
28606 result = (wxStandardPaths *) &_result_ref;
28607 }
28608
28609 wxPyEndAllowThreads(__tstate);
28610 if (PyErr_Occurred()) SWIG_fail;
28611 }
28612 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStandardPaths, 0);
28613 return resultobj;
28614 fail:
28615 return NULL;
28616 }
28617
28618
28619 static PyObject *_wrap_StandardPaths_GetConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
28620 PyObject *resultobj;
28621 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28622 wxString result;
28623 PyObject * obj0 = 0 ;
28624 char *kwnames[] = {
28625 (char *) "self", NULL
28626 };
28627
28628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetConfigDir",kwnames,&obj0)) goto fail;
28629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28631 {
28632 PyThreadState* __tstate = wxPyBeginAllowThreads();
28633 result = ((wxStandardPaths const *)arg1)->GetConfigDir();
28634
28635 wxPyEndAllowThreads(__tstate);
28636 if (PyErr_Occurred()) SWIG_fail;
28637 }
28638 {
28639 #if wxUSE_UNICODE
28640 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28641 #else
28642 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28643 #endif
28644 }
28645 return resultobj;
28646 fail:
28647 return NULL;
28648 }
28649
28650
28651 static PyObject *_wrap_StandardPaths_GetUserConfigDir(PyObject *, PyObject *args, PyObject *kwargs) {
28652 PyObject *resultobj;
28653 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28654 wxString result;
28655 PyObject * obj0 = 0 ;
28656 char *kwnames[] = {
28657 (char *) "self", NULL
28658 };
28659
28660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserConfigDir",kwnames,&obj0)) goto fail;
28661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28663 {
28664 PyThreadState* __tstate = wxPyBeginAllowThreads();
28665 result = ((wxStandardPaths const *)arg1)->GetUserConfigDir();
28666
28667 wxPyEndAllowThreads(__tstate);
28668 if (PyErr_Occurred()) SWIG_fail;
28669 }
28670 {
28671 #if wxUSE_UNICODE
28672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28673 #else
28674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28675 #endif
28676 }
28677 return resultobj;
28678 fail:
28679 return NULL;
28680 }
28681
28682
28683 static PyObject *_wrap_StandardPaths_GetDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28684 PyObject *resultobj;
28685 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28686 wxString result;
28687 PyObject * obj0 = 0 ;
28688 char *kwnames[] = {
28689 (char *) "self", NULL
28690 };
28691
28692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetDataDir",kwnames,&obj0)) goto fail;
28693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28695 {
28696 PyThreadState* __tstate = wxPyBeginAllowThreads();
28697 result = ((wxStandardPaths const *)arg1)->GetDataDir();
28698
28699 wxPyEndAllowThreads(__tstate);
28700 if (PyErr_Occurred()) SWIG_fail;
28701 }
28702 {
28703 #if wxUSE_UNICODE
28704 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28705 #else
28706 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28707 #endif
28708 }
28709 return resultobj;
28710 fail:
28711 return NULL;
28712 }
28713
28714
28715 static PyObject *_wrap_StandardPaths_GetLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28716 PyObject *resultobj;
28717 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28718 wxString result;
28719 PyObject * obj0 = 0 ;
28720 char *kwnames[] = {
28721 (char *) "self", NULL
28722 };
28723
28724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetLocalDataDir",kwnames,&obj0)) goto fail;
28725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28727 {
28728 PyThreadState* __tstate = wxPyBeginAllowThreads();
28729 result = ((wxStandardPaths const *)arg1)->GetLocalDataDir();
28730
28731 wxPyEndAllowThreads(__tstate);
28732 if (PyErr_Occurred()) SWIG_fail;
28733 }
28734 {
28735 #if wxUSE_UNICODE
28736 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28737 #else
28738 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28739 #endif
28740 }
28741 return resultobj;
28742 fail:
28743 return NULL;
28744 }
28745
28746
28747 static PyObject *_wrap_StandardPaths_GetUserDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28748 PyObject *resultobj;
28749 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28750 wxString result;
28751 PyObject * obj0 = 0 ;
28752 char *kwnames[] = {
28753 (char *) "self", NULL
28754 };
28755
28756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserDataDir",kwnames,&obj0)) goto fail;
28757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28759 {
28760 PyThreadState* __tstate = wxPyBeginAllowThreads();
28761 result = ((wxStandardPaths const *)arg1)->GetUserDataDir();
28762
28763 wxPyEndAllowThreads(__tstate);
28764 if (PyErr_Occurred()) SWIG_fail;
28765 }
28766 {
28767 #if wxUSE_UNICODE
28768 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28769 #else
28770 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28771 #endif
28772 }
28773 return resultobj;
28774 fail:
28775 return NULL;
28776 }
28777
28778
28779 static PyObject *_wrap_StandardPaths_GetUserLocalDataDir(PyObject *, PyObject *args, PyObject *kwargs) {
28780 PyObject *resultobj;
28781 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28782 wxString result;
28783 PyObject * obj0 = 0 ;
28784 char *kwnames[] = {
28785 (char *) "self", NULL
28786 };
28787
28788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetUserLocalDataDir",kwnames,&obj0)) goto fail;
28789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28791 {
28792 PyThreadState* __tstate = wxPyBeginAllowThreads();
28793 result = ((wxStandardPaths const *)arg1)->GetUserLocalDataDir();
28794
28795 wxPyEndAllowThreads(__tstate);
28796 if (PyErr_Occurred()) SWIG_fail;
28797 }
28798 {
28799 #if wxUSE_UNICODE
28800 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28801 #else
28802 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28803 #endif
28804 }
28805 return resultobj;
28806 fail:
28807 return NULL;
28808 }
28809
28810
28811 static PyObject *_wrap_StandardPaths_GetPluginsDir(PyObject *, PyObject *args, PyObject *kwargs) {
28812 PyObject *resultobj;
28813 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28814 wxString result;
28815 PyObject * obj0 = 0 ;
28816 char *kwnames[] = {
28817 (char *) "self", NULL
28818 };
28819
28820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetPluginsDir",kwnames,&obj0)) goto fail;
28821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28823 {
28824 PyThreadState* __tstate = wxPyBeginAllowThreads();
28825 result = ((wxStandardPaths const *)arg1)->GetPluginsDir();
28826
28827 wxPyEndAllowThreads(__tstate);
28828 if (PyErr_Occurred()) SWIG_fail;
28829 }
28830 {
28831 #if wxUSE_UNICODE
28832 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28833 #else
28834 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28835 #endif
28836 }
28837 return resultobj;
28838 fail:
28839 return NULL;
28840 }
28841
28842
28843 static PyObject *_wrap_StandardPaths_SetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
28844 PyObject *resultobj;
28845 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28846 wxString *arg2 = 0 ;
28847 bool temp2 = false ;
28848 PyObject * obj0 = 0 ;
28849 PyObject * obj1 = 0 ;
28850 char *kwnames[] = {
28851 (char *) "self",(char *) "prefix", NULL
28852 };
28853
28854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StandardPaths_SetInstallPrefix",kwnames,&obj0,&obj1)) goto fail;
28855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28857 {
28858 arg2 = wxString_in_helper(obj1);
28859 if (arg2 == NULL) SWIG_fail;
28860 temp2 = true;
28861 }
28862 {
28863 PyThreadState* __tstate = wxPyBeginAllowThreads();
28864 wxStandardPaths_SetInstallPrefix(arg1,(wxString const &)*arg2);
28865
28866 wxPyEndAllowThreads(__tstate);
28867 if (PyErr_Occurred()) SWIG_fail;
28868 }
28869 Py_INCREF(Py_None); resultobj = Py_None;
28870 {
28871 if (temp2)
28872 delete arg2;
28873 }
28874 return resultobj;
28875 fail:
28876 {
28877 if (temp2)
28878 delete arg2;
28879 }
28880 return NULL;
28881 }
28882
28883
28884 static PyObject *_wrap_StandardPaths_GetInstallPrefix(PyObject *, PyObject *args, PyObject *kwargs) {
28885 PyObject *resultobj;
28886 wxStandardPaths *arg1 = (wxStandardPaths *) 0 ;
28887 wxString result;
28888 PyObject * obj0 = 0 ;
28889 char *kwnames[] = {
28890 (char *) "self", NULL
28891 };
28892
28893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StandardPaths_GetInstallPrefix",kwnames,&obj0)) goto fail;
28894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStandardPaths,
28895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28896 {
28897 PyThreadState* __tstate = wxPyBeginAllowThreads();
28898 result = wxStandardPaths_GetInstallPrefix(arg1);
28899
28900 wxPyEndAllowThreads(__tstate);
28901 if (PyErr_Occurred()) SWIG_fail;
28902 }
28903 {
28904 #if wxUSE_UNICODE
28905 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28906 #else
28907 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28908 #endif
28909 }
28910 return resultobj;
28911 fail:
28912 return NULL;
28913 }
28914
28915
28916 static PyObject * StandardPaths_swigregister(PyObject *, PyObject *args) {
28917 PyObject *obj;
28918 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28919 SWIG_TypeClientData(SWIGTYPE_p_wxStandardPaths, obj);
28920 Py_INCREF(obj);
28921 return Py_BuildValue((char *)"");
28922 }
28923 static PyMethodDef SwigMethods[] = {
28924 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS, NULL },
28925 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
28926 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS, NULL },
28927 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS, NULL },
28928 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
28929 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS, NULL },
28930 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS, NULL },
28931 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS, NULL },
28932 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS, NULL },
28933 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
28934 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS, NULL },
28935 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
28936 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS, NULL },
28937 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS, NULL },
28938 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS, NULL },
28939 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS, NULL },
28940 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS, NULL },
28941 { (char *)"IsStockID", (PyCFunction) _wrap_IsStockID, METH_VARARGS | METH_KEYWORDS, NULL },
28942 { (char *)"IsStockLabel", (PyCFunction) _wrap_IsStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
28943 { (char *)"GetStockLabel", (PyCFunction) _wrap_GetStockLabel, METH_VARARGS | METH_KEYWORDS, NULL },
28944 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS, NULL },
28945 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28946 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS, NULL },
28947 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS, NULL },
28948 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS, NULL },
28949 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS, NULL },
28950 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS, NULL },
28951 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS, NULL },
28952 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS, NULL },
28953 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS, NULL },
28954 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS, NULL },
28955 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS, NULL },
28956 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS, NULL },
28957 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS, NULL },
28958 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS, NULL },
28959 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS, NULL },
28960 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS, NULL },
28961 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS, NULL },
28962 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS, NULL },
28963 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS, NULL },
28964 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS, NULL },
28965 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS, NULL },
28966 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS, NULL },
28967 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS, NULL },
28968 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS, NULL },
28969 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS, NULL },
28970 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28971 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28972 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28973 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS, NULL },
28974 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28975 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28976 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS, NULL },
28977 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS, NULL },
28978 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS, NULL },
28979 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS, NULL },
28980 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS, NULL },
28981 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28982 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS, NULL },
28983 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
28984 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS, NULL },
28985 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
28986 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS, NULL },
28987 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
28988 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS, NULL },
28989 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28990 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
28991 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
28992 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28993 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
28994 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS, NULL },
28995 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS, NULL },
28996 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS, NULL },
28997 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS, NULL },
28998 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS, NULL },
28999 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29000 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29001 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS, NULL },
29002 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS, NULL },
29003 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
29004 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS, NULL },
29005 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
29006 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29007 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
29008 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS, NULL },
29009 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS, NULL },
29010 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
29011 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS, NULL },
29012 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29013 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
29014 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29015 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
29016 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29017 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
29018 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29019 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL },
29020 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS, NULL },
29021 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
29022 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29023 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS, NULL },
29024 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
29025 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS, NULL },
29026 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
29027 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS, NULL },
29028 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29029 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29030 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS, NULL },
29031 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
29032 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
29033 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS, NULL },
29034 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29035 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29036 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS, NULL },
29037 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS, NULL },
29038 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS, NULL },
29039 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS, NULL },
29040 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
29041 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS, NULL },
29042 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS, NULL },
29043 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29044 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29045 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29046 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS, NULL },
29047 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS, NULL },
29048 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29049 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29050 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS, NULL },
29051 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS, NULL },
29052 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29053 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS, NULL },
29054 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS, NULL },
29055 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
29056 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS, NULL },
29057 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
29058 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
29059 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS, NULL },
29060 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29061 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS, NULL },
29062 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS, NULL },
29063 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS, NULL },
29064 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29065 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS, NULL },
29066 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS, NULL },
29067 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS, NULL },
29068 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS, NULL },
29069 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29070 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29071 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS, NULL },
29072 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS, NULL },
29073 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29074 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
29075 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS, NULL },
29076 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29077 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
29078 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS, NULL },
29079 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS, NULL },
29080 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
29081 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL },
29082 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
29083 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS, NULL },
29084 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
29085 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS, NULL },
29086 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS, NULL },
29087 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS, NULL },
29088 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS, NULL },
29089 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS, NULL },
29090 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS, NULL },
29091 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS, NULL },
29092 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS, NULL },
29093 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS, NULL },
29094 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
29095 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS, NULL },
29096 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS, NULL },
29097 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29098 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS, NULL },
29099 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29100 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29101 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS, NULL },
29102 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS, NULL },
29103 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
29104 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
29105 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
29106 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29107 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29108 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29109 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
29110 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS, NULL },
29111 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
29112 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
29113 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29114 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS, NULL },
29115 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS, NULL },
29116 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
29117 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS, NULL },
29118 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
29119 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS, NULL },
29120 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS, NULL },
29121 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS, NULL },
29122 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
29123 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS, NULL },
29124 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS, NULL },
29125 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS, NULL },
29126 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29127 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS, NULL },
29128 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL },
29129 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
29130 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29131 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29132 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS, NULL },
29133 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS, NULL },
29134 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS, NULL },
29135 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29136 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS, NULL },
29137 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS, NULL },
29138 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS, NULL },
29139 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS, NULL },
29140 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS, NULL },
29141 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS, NULL },
29142 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS, NULL },
29143 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS, NULL },
29144 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS, NULL },
29145 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29146 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS, NULL },
29147 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS, NULL },
29148 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS, NULL },
29149 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS, NULL },
29150 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS, NULL },
29151 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS, NULL },
29152 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS, NULL },
29153 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS, NULL },
29154 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
29155 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS, NULL },
29156 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS, NULL },
29157 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS, NULL },
29158 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29159 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS, NULL },
29160 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS, NULL },
29161 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
29162 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS, NULL },
29163 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS, NULL },
29164 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29165 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS, NULL },
29166 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS, NULL },
29167 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS, NULL },
29168 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
29169 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS, NULL },
29170 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS, NULL },
29171 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS, NULL },
29172 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS, NULL },
29173 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS, NULL },
29174 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
29175 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS, NULL },
29176 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS, NULL },
29177 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL },
29178 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS, NULL },
29179 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS, NULL },
29180 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS, NULL },
29181 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS, NULL },
29182 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS, NULL },
29183 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS, NULL },
29184 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS, NULL },
29185 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS, NULL },
29186 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
29187 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS, NULL },
29188 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29189 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29190 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
29191 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29192 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29193 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29194 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29195 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29196 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
29197 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS, NULL },
29198 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29199 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS, NULL },
29200 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS, NULL },
29201 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS, NULL },
29202 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS, NULL },
29203 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS, NULL },
29204 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS, NULL },
29205 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS, NULL },
29206 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS, NULL },
29207 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS, NULL },
29208 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS, NULL },
29209 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS, NULL },
29210 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS, NULL },
29211 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS, NULL },
29212 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS, NULL },
29213 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS, NULL },
29214 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS, NULL },
29215 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS, NULL },
29216 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS, NULL },
29217 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS, NULL },
29218 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS, NULL },
29219 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS, NULL },
29220 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS, NULL },
29221 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS, NULL },
29222 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS, NULL },
29223 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS, NULL },
29224 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS, NULL },
29225 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS, NULL },
29226 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS, NULL },
29227 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS, NULL },
29228 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS, NULL },
29229 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS, NULL },
29230 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS, NULL },
29231 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL },
29232 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL },
29233 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS, NULL },
29234 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS, NULL },
29235 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS, NULL },
29236 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS, NULL },
29237 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS, NULL },
29238 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS, NULL },
29239 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS, NULL },
29240 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS, NULL },
29241 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS, NULL },
29242 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29243 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29244 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
29245 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
29246 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
29247 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS, NULL },
29248 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS, NULL },
29249 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS, NULL },
29250 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29251 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS, NULL },
29252 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
29253 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS, NULL },
29254 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS, NULL },
29255 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL },
29256 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL },
29257 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
29258 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS, NULL },
29259 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
29260 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS, NULL },
29261 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS, NULL },
29262 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29263 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS, NULL },
29264 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29265 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS, NULL },
29266 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS, NULL },
29267 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS, NULL },
29268 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS, NULL },
29269 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29270 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS, NULL },
29271 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29272 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
29273 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29274 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
29275 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
29276 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29277 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29278 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS, NULL },
29279 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
29280 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
29281 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS, NULL },
29282 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS, NULL },
29283 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS, NULL },
29284 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS, NULL },
29285 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
29286 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS, NULL },
29287 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
29288 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
29289 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS, NULL },
29290 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29291 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29292 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS, NULL },
29293 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29294 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29295 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS, NULL },
29296 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29297 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29298 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
29299 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS, NULL },
29300 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS, NULL },
29301 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS, NULL },
29302 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
29303 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS, NULL },
29304 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS, NULL },
29305 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS, NULL },
29306 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
29307 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS, NULL },
29308 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS, NULL },
29309 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS, NULL },
29310 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS, NULL },
29311 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS, NULL },
29312 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS, NULL },
29313 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS, NULL },
29314 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS, NULL },
29315 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29316 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29317 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29318 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29319 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS, NULL },
29320 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29321 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
29322 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
29323 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS, NULL },
29324 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS, NULL },
29325 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS, NULL },
29326 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29327 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS, NULL },
29328 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS, NULL },
29329 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
29330 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
29331 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29332 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29333 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29334 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29335 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS, NULL },
29336 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS, NULL },
29337 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29338 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29339 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS, NULL },
29340 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS, NULL },
29341 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS, NULL },
29342 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS, NULL },
29343 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS, NULL },
29344 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS, NULL },
29345 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS, NULL },
29346 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS, NULL },
29347 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS, NULL },
29348 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS, NULL },
29349 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29350 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29351 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29352 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS, NULL },
29353 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS, NULL },
29354 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS, NULL },
29355 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29356 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29357 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
29358 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
29359 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29360 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
29361 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
29362 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
29363 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
29364 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
29365 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
29366 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS, NULL },
29367 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS, NULL },
29368 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS, NULL },
29369 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS, NULL },
29370 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
29371 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS, NULL },
29372 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS, NULL },
29373 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
29374 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS, NULL },
29375 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS, NULL },
29376 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS, NULL },
29377 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS, NULL },
29378 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29379 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29380 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS, NULL },
29381 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS, NULL },
29382 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS, NULL },
29383 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29384 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS, NULL },
29385 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS, NULL },
29386 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS, NULL },
29387 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29388 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS, NULL },
29389 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS, NULL },
29390 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS, NULL },
29391 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS, NULL },
29392 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS, NULL },
29393 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS, NULL },
29394 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS, NULL },
29395 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS, NULL },
29396 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS, NULL },
29397 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29398 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
29399 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29400 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS, NULL },
29401 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS, NULL },
29402 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29403 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
29404 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS, NULL },
29405 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29406 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS, NULL },
29407 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS, NULL },
29408 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS, NULL },
29409 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS, NULL },
29410 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29411 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS, NULL },
29412 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS, NULL },
29413 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
29414 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29415 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29416 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29417 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29418 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29419 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29420 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29421 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29422 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29423 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29424 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29425 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29426 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS, NULL },
29427 { (char *)"DateTime_SetToWeekOfYear", (PyCFunction) _wrap_DateTime_SetToWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29428 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
29429 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS, NULL },
29430 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
29431 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS, NULL },
29432 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
29433 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS, NULL },
29434 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS, NULL },
29435 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS, NULL },
29436 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS, NULL },
29437 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
29438 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS, NULL },
29439 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS, NULL },
29440 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS, NULL },
29441 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS, NULL },
29442 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS, NULL },
29443 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS, NULL },
29444 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS, NULL },
29445 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29446 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS, NULL },
29447 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS, NULL },
29448 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS, NULL },
29449 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS, NULL },
29450 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS, NULL },
29451 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS, NULL },
29452 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29453 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS, NULL },
29454 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS, NULL },
29455 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS, NULL },
29456 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29457 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS, NULL },
29458 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29459 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29460 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS, NULL },
29461 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS, NULL },
29462 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS, NULL },
29463 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS, NULL },
29464 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS, NULL },
29465 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS, NULL },
29466 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS, NULL },
29467 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS, NULL },
29468 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29469 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS, NULL },
29470 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS, NULL },
29471 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS, NULL },
29472 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS, NULL },
29473 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS, NULL },
29474 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS, NULL },
29475 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS, NULL },
29476 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS, NULL },
29477 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS, NULL },
29478 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS, NULL },
29479 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS, NULL },
29480 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29481 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS, NULL },
29482 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS, NULL },
29483 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS, NULL },
29484 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29485 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS, NULL },
29486 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS, NULL },
29487 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS, NULL },
29488 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS, NULL },
29489 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS, NULL },
29490 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS, NULL },
29491 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS, NULL },
29492 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS, NULL },
29493 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS, NULL },
29494 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS, NULL },
29495 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS, NULL },
29496 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29497 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29498 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29499 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29500 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29501 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29502 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29503 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29504 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29505 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29506 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS, NULL },
29507 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29508 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29509 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29510 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29511 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29512 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29513 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29514 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29515 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS, NULL },
29516 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS, NULL },
29517 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS, NULL },
29518 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS, NULL },
29519 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29520 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29521 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS, NULL },
29522 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS, NULL },
29523 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS, NULL },
29524 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS, NULL },
29525 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS, NULL },
29526 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS, NULL },
29527 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29528 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29529 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS, NULL },
29530 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS, NULL },
29531 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS, NULL },
29532 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS, NULL },
29533 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS, NULL },
29534 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS, NULL },
29535 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29536 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS, NULL },
29537 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS, NULL },
29538 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS, NULL },
29539 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS, NULL },
29540 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS, NULL },
29541 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS, NULL },
29542 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS, NULL },
29543 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS, NULL },
29544 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS, NULL },
29545 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29546 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29547 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29548 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29549 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS, NULL },
29550 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS, NULL },
29551 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS, NULL },
29552 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS, NULL },
29553 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS, NULL },
29554 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29555 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS, NULL },
29556 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS, NULL },
29557 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS, NULL },
29558 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
29559 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
29560 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
29561 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
29562 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS, NULL },
29563 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
29564 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS, NULL },
29565 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS, NULL },
29566 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29567 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29568 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS, NULL },
29569 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS, NULL },
29570 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS, NULL },
29571 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS, NULL },
29572 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS, NULL },
29573 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29574 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29575 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29576 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS, NULL },
29577 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS, NULL },
29578 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS, NULL },
29579 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS, NULL },
29580 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
29581 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
29582 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS, NULL },
29583 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29584 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29585 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS, NULL },
29586 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29587 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29588 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS, NULL },
29589 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29590 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29591 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS, NULL },
29592 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29593 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29594 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS, NULL },
29595 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS, NULL },
29596 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS, NULL },
29597 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29598 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS, NULL },
29599 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS, NULL },
29600 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29601 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS, NULL },
29602 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS, NULL },
29603 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS, NULL },
29604 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS, NULL },
29605 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29606 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS, NULL },
29607 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
29608 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
29609 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS, NULL },
29610 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29611 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29612 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS, NULL },
29613 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29614 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29615 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
29616 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS, NULL },
29617 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29618 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29619 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS, NULL },
29620 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29621 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS, NULL },
29622 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS, NULL },
29623 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS, NULL },
29624 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29625 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29626 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
29627 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29628 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS, NULL },
29629 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29630 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29631 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS, NULL },
29632 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS, NULL },
29633 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29634 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
29635 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS, NULL },
29636 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS, NULL },
29637 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS, NULL },
29638 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29639 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29640 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS, NULL },
29641 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29642 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29643 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
29644 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29645 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS, NULL },
29646 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS, NULL },
29647 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29648 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29649 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29650 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29651 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS, NULL },
29652 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29653 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29654 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29655 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29656 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29657 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS, NULL },
29658 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29659 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29660 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29661 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29662 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29663 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29664 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29665 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS, NULL },
29666 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
29667 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
29668 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS, NULL },
29669 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS, NULL },
29670 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS, NULL },
29671 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS, NULL },
29672 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS, NULL },
29673 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS, NULL },
29674 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29675 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS, NULL },
29676 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS, NULL },
29677 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS, NULL },
29678 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS, NULL },
29679 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS, NULL },
29680 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
29681 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS, NULL },
29682 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
29683 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
29684 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS, NULL },
29685 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS, NULL },
29686 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29687 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS, NULL },
29688 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29689 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS, NULL },
29690 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS, NULL },
29691 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS, NULL },
29692 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29693 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS, NULL },
29694 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS, NULL },
29695 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
29696 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
29697 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL },
29698 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29699 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
29700 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
29701 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS, NULL },
29702 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS, NULL },
29703 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS, NULL },
29704 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS, NULL },
29705 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS, NULL },
29706 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS, NULL },
29707 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS, NULL },
29708 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS, NULL },
29709 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS, NULL },
29710 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29711 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS, NULL },
29712 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
29713 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS, NULL },
29714 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
29715 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
29716 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS, NULL },
29717 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
29718 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS, NULL },
29719 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS, NULL },
29720 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS, NULL },
29721 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS, NULL },
29722 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS, NULL },
29723 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS, NULL },
29724 { (char *)"StandardPaths_Get", (PyCFunction) _wrap_StandardPaths_Get, METH_VARARGS | METH_KEYWORDS, NULL },
29725 { (char *)"StandardPaths_GetConfigDir", (PyCFunction) _wrap_StandardPaths_GetConfigDir, METH_VARARGS | METH_KEYWORDS, NULL },
29726 { (char *)"StandardPaths_GetUserConfigDir", (PyCFunction) _wrap_StandardPaths_GetUserConfigDir, METH_VARARGS | METH_KEYWORDS, NULL },
29727 { (char *)"StandardPaths_GetDataDir", (PyCFunction) _wrap_StandardPaths_GetDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29728 { (char *)"StandardPaths_GetLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29729 { (char *)"StandardPaths_GetUserDataDir", (PyCFunction) _wrap_StandardPaths_GetUserDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29730 { (char *)"StandardPaths_GetUserLocalDataDir", (PyCFunction) _wrap_StandardPaths_GetUserLocalDataDir, METH_VARARGS | METH_KEYWORDS, NULL },
29731 { (char *)"StandardPaths_GetPluginsDir", (PyCFunction) _wrap_StandardPaths_GetPluginsDir, METH_VARARGS | METH_KEYWORDS, NULL },
29732 { (char *)"StandardPaths_SetInstallPrefix", (PyCFunction) _wrap_StandardPaths_SetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
29733 { (char *)"StandardPaths_GetInstallPrefix", (PyCFunction) _wrap_StandardPaths_GetInstallPrefix, METH_VARARGS | METH_KEYWORDS, NULL },
29734 { (char *)"StandardPaths_swigregister", StandardPaths_swigregister, METH_VARARGS, NULL },
29735 { NULL, NULL, 0, NULL }
29736 };
29737
29738
29739 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29740
29741 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29742 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29743 }
29744 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29745 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29746 }
29747 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29748 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29749 }
29750 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29751 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29752 }
29753 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29754 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29755 }
29756 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29757 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29758 }
29759 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29760 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29761 }
29762 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29763 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29764 }
29765 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29766 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29767 }
29768 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29769 return (void *)((wxEvent *) ((wxPyEvent *) x));
29770 }
29771 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29772 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29773 }
29774 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29775 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29776 }
29777 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29778 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29779 }
29780 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29781 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29782 }
29783 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29784 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29785 }
29786 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29787 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29788 }
29789 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29790 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29791 }
29792 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29793 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29794 }
29795 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29796 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29797 }
29798 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29799 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29800 }
29801 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29802 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29803 }
29804 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29805 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29806 }
29807 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29808 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29809 }
29810 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29811 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29812 }
29813 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29814 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29815 }
29816 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29817 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29818 }
29819 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29820 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29821 }
29822 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29823 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29824 }
29825 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29826 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29827 }
29828 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29829 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29830 }
29831 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29832 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29833 }
29834 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29835 return (void *)((wxEvent *) ((wxShowEvent *) x));
29836 }
29837 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29838 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29839 }
29840 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29841 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29842 }
29843 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29844 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29845 }
29846 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29847 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29848 }
29849 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29850 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29851 }
29852 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29853 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29854 }
29855 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29856 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29857 }
29858 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29859 return (void *)((wxConfigBase *) ((wxConfig *) x));
29860 }
29861 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29862 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29863 }
29864 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29865 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29866 }
29867 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29868 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29869 }
29870 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29871 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29872 }
29873 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29874 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29875 }
29876 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29877 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29878 }
29879 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29880 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29881 }
29882 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29883 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29884 }
29885 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29886 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29887 }
29888 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29889 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29890 }
29891 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29892 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29893 }
29894 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29895 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29896 }
29897 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29898 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29899 }
29900 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29901 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29902 }
29903 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29904 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29905 }
29906 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29907 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29908 }
29909 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29910 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29911 }
29912 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29913 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29914 }
29915 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29916 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29917 }
29918 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29919 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29920 }
29921 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29922 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29923 }
29924 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29925 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29926 }
29927 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29928 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29929 }
29930 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29931 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29932 }
29933 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29934 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29935 }
29936 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29937 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29938 }
29939 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29940 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29941 }
29942 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29943 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29944 }
29945 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29946 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29947 }
29948 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29949 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29950 }
29951 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29952 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29953 }
29954 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29955 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29956 }
29957 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29958 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29959 }
29960 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29961 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29962 }
29963 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29964 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29965 }
29966 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29967 return (void *)((wxObject *) ((wxSizerItem *) x));
29968 }
29969 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29970 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29971 }
29972 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29973 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29974 }
29975 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29976 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29977 }
29978 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29979 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29980 }
29981 static void *_p_wxSizerTo_p_wxObject(void *x) {
29982 return (void *)((wxObject *) ((wxSizer *) x));
29983 }
29984 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29985 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29986 }
29987 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29988 return (void *)((wxObject *) ((wxFileHistory *) x));
29989 }
29990 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29991 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29992 }
29993 static void *_p_wxEventTo_p_wxObject(void *x) {
29994 return (void *)((wxObject *) ((wxEvent *) x));
29995 }
29996 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29997 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29998 }
29999 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
30000 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
30001 }
30002 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
30003 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
30004 }
30005 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
30006 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
30007 }
30008 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
30009 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
30010 }
30011 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
30012 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
30013 }
30014 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
30015 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
30016 }
30017 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
30018 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
30019 }
30020 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
30021 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
30022 }
30023 static void *_p_wxControlTo_p_wxObject(void *x) {
30024 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
30025 }
30026 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
30027 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
30028 }
30029 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
30030 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
30031 }
30032 static void *_p_wxFSFileTo_p_wxObject(void *x) {
30033 return (void *)((wxObject *) ((wxFSFile *) x));
30034 }
30035 static void *_p_wxClipboardTo_p_wxObject(void *x) {
30036 return (void *)((wxObject *) ((wxClipboard *) x));
30037 }
30038 static void *_p_wxPySizerTo_p_wxObject(void *x) {
30039 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
30040 }
30041 static void *_p_wxPyEventTo_p_wxObject(void *x) {
30042 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
30043 }
30044 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
30045 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
30046 }
30047 static void *_p_wxShowEventTo_p_wxObject(void *x) {
30048 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
30049 }
30050 static void *_p_wxToolTipTo_p_wxObject(void *x) {
30051 return (void *)((wxObject *) ((wxToolTip *) x));
30052 }
30053 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
30054 return (void *)((wxObject *) ((wxMenuItem *) x));
30055 }
30056 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
30057 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
30058 }
30059 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
30060 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
30061 }
30062 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
30063 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
30064 }
30065 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
30066 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
30067 }
30068 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
30069 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
30070 }
30071 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
30072 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
30073 }
30074 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
30075 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
30076 }
30077 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
30078 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
30079 }
30080 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
30081 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
30082 }
30083 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
30084 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
30085 }
30086 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
30087 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
30088 }
30089 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
30090 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
30091 }
30092 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
30093 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
30094 }
30095 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
30096 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
30097 }
30098 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
30099 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
30100 }
30101 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
30102 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
30103 }
30104 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
30105 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
30106 }
30107 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
30108 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
30109 }
30110 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
30111 return (void *)((wxObject *) ((wxImageHandler *) x));
30112 }
30113 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
30114 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
30115 }
30116 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
30117 return (void *)((wxObject *) ((wxEvtHandler *) x));
30118 }
30119 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
30120 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
30121 }
30122 static void *_p_wxImageTo_p_wxObject(void *x) {
30123 return (void *)((wxObject *) ((wxImage *) x));
30124 }
30125 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
30126 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
30127 }
30128 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
30129 return (void *)((wxObject *) ((wxSystemOptions *) x));
30130 }
30131 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
30132 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
30133 }
30134 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
30135 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30136 }
30137 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
30138 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
30139 }
30140 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
30141 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
30142 }
30143 static void *_p_wxWindowTo_p_wxObject(void *x) {
30144 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
30145 }
30146 static void *_p_wxMenuTo_p_wxObject(void *x) {
30147 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
30148 }
30149 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
30150 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
30151 }
30152 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
30153 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
30154 }
30155 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
30156 return (void *)((wxObject *) ((wxFileSystem *) x));
30157 }
30158 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
30159 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
30160 }
30161 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
30162 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
30163 }
30164 static void *_p_wxPyAppTo_p_wxObject(void *x) {
30165 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
30166 }
30167 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
30168 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
30169 }
30170 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
30171 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
30172 }
30173 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
30174 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
30175 }
30176 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
30177 return (void *)((wxObject *) ((wxBusyInfo *) x));
30178 }
30179 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
30180 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
30181 }
30182 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
30183 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
30184 }
30185 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
30186 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
30187 }
30188 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
30189 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
30190 }
30191 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
30192 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
30193 }
30194 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
30195 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
30196 }
30197 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
30198 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30199 }
30200 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
30201 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
30202 }
30203 static void *_p_wxValidatorTo_p_wxObject(void *x) {
30204 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
30205 }
30206 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
30207 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
30208 }
30209 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
30210 return (void *)((wxLog *) ((wxLogStderr *) x));
30211 }
30212 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
30213 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
30214 }
30215 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
30216 return (void *)((wxLog *) ((wxLogWindow *) x));
30217 }
30218 static void *_p_wxLogChainTo_p_wxLog(void *x) {
30219 return (void *)((wxLog *) ((wxLogChain *) x));
30220 }
30221 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
30222 return (void *)((wxLog *) ((wxLogGui *) x));
30223 }
30224 static void *_p_wxPyLogTo_p_wxLog(void *x) {
30225 return (void *)((wxLog *) ((wxPyLog *) x));
30226 }
30227 static void *_p_wxControlTo_p_wxWindow(void *x) {
30228 return (void *)((wxWindow *) ((wxControl *) x));
30229 }
30230 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
30231 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
30232 }
30233 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
30234 return (void *)((wxWindow *) ((wxMenuBar *) x));
30235 }
30236 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
30237 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
30238 }
30239 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
30240 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
30241 }
30242 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}};
30243 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}};
30244 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}};
30245 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}};
30246 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}};
30247 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}};
30248 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}};
30249 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}};
30250 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}};
30251 static swig_type_info _swigt__p_wxDisplay[] = {{"_p_wxDisplay", 0, "wxDisplay *", 0, 0, 0, 0},{"_p_wxDisplay", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
30252 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}};
30253 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}};
30254 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}};
30255 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}};
30256 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}};
30257 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}};
30258 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}};
30259 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}};
30260 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}};
30261 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}};
30262 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}};
30263 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}};
30264 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}};
30265 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}};
30266 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}};
30267 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}};
30268 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}};
30269 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}};
30270 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}};
30271 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}};
30272 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}};
30273 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}};
30274 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}};
30275 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}};
30276 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}};
30277 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}};
30278 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}};
30279 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}};
30280 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}};
30281 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}};
30282 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}};
30283 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}};
30284 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}};
30285 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}};
30286 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}};
30287 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}};
30288 static swig_type_info _swigt__p_wxVideoMode[] = {{"_p_wxVideoMode", 0, "wxVideoMode *", 0, 0, 0, 0},{"_p_wxVideoMode", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
30289 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}};
30290 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}};
30291 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}};
30292 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}};
30293 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}};
30294 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}};
30295 static swig_type_info _swigt__p_wxStandardPaths[] = {{"_p_wxStandardPaths", 0, "wxStandardPaths *", 0, 0, 0, 0},{"_p_wxStandardPaths", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
30296 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}};
30297 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}};
30298 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}};
30299 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}};
30300 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}};
30301 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}};
30302 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}};
30303 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}};
30304 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}};
30305 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}};
30306 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}};
30307 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}};
30308 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}};
30309 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}};
30310 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}};
30311 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}};
30312 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}};
30313 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}};
30314 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}};
30315 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}};
30316 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}};
30317 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}};
30318 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}};
30319 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}};
30320 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}};
30321 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}};
30322 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}};
30323 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}};
30324 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}};
30325 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}};
30326 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}};
30327 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}};
30328 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}};
30329
30330 static swig_type_info *swig_types_initial[] = {
30331 _swigt__p_wxLogChain,
30332 _swigt__p_wxMutexGuiLocker,
30333 _swigt__p_wxMetafile,
30334 _swigt__p_wxFileHistory,
30335 _swigt__p_wxLog,
30336 _swigt__p_wxDateTime__TimeZone,
30337 _swigt__p_wxMenu,
30338 _swigt__p_wxEvent,
30339 _swigt__p_wxConfigBase,
30340 _swigt__p_wxDisplay,
30341 _swigt__p_wxFileType,
30342 _swigt__p_wxLogGui,
30343 _swigt__p_wxFont,
30344 _swigt__p_wxDataFormat,
30345 _swigt__p_wxTimerEvent,
30346 _swigt__p_wxCaret,
30347 _swigt__p_int,
30348 _swigt__p_wxSize,
30349 _swigt__p_wxClipboard,
30350 _swigt__p_wxStopWatch,
30351 _swigt__p_wxDC,
30352 _swigt__p_wxClipboardLocker,
30353 _swigt__p_wxIcon,
30354 _swigt__p_wxLogStderr,
30355 _swigt__p_wxLogTextCtrl,
30356 _swigt__p_wxTextCtrl,
30357 _swigt__p_wxBusyCursor,
30358 _swigt__p_wxPyBitmapDataObject,
30359 _swigt__p_wxPyTextDataObject,
30360 _swigt__p_wxBitmapDataObject,
30361 _swigt__p_wxTextDataObject,
30362 _swigt__p_wxDataObject,
30363 _swigt__p_wxFileDataObject,
30364 _swigt__p_wxCustomDataObject,
30365 _swigt__p_wxURLDataObject,
30366 _swigt__p_wxMetafileDataObject,
30367 _swigt__p_wxSound,
30368 _swigt__p_wxTimerRunner,
30369 _swigt__p_wxLogWindow,
30370 _swigt__p_wxTimeSpan,
30371 _swigt__p_wxArrayString,
30372 _swigt__p_wxWindowDisabler,
30373 _swigt__p_wxToolTip,
30374 _swigt__p_wxDataObjectComposite,
30375 _swigt__p_wxFileConfig,
30376 _swigt__p_wxSystemSettings,
30377 _swigt__p_wxVideoMode,
30378 _swigt__p_wxPyDataObjectSimple,
30379 _swigt__p_wxDataObjectSimple,
30380 _swigt__p_wxEvtHandler,
30381 _swigt__p_wxRect,
30382 _swigt__p_char,
30383 _swigt__p_wxSingleInstanceChecker,
30384 _swigt__p_wxStandardPaths,
30385 _swigt__p_wxFileTypeInfo,
30386 _swigt__p_wxFrame,
30387 _swigt__p_wxTimer,
30388 _swigt__p_wxMimeTypesManager,
30389 _swigt__p_wxPyArtProvider,
30390 _swigt__p_wxPyTipProvider,
30391 _swigt__p_wxTipProvider,
30392 _swigt__p_wxJoystick,
30393 _swigt__p_wxSystemOptions,
30394 _swigt__p_wxPoint,
30395 _swigt__p_wxJoystickEvent,
30396 _swigt__p_wxCursor,
30397 _swigt__p_wxObject,
30398 _swigt__p_wxOutputStream,
30399 _swigt__p_wxDateTime,
30400 _swigt__p_wxPyDropSource,
30401 _swigt__p_wxWindow,
30402 _swigt__p_wxString,
30403 _swigt__p_wxPyProcess,
30404 _swigt__p_wxBitmap,
30405 _swigt__p_wxConfig,
30406 _swigt__p_wxChar,
30407 _swigt__p_wxBusyInfo,
30408 _swigt__p_wxPyDropTarget,
30409 _swigt__p_wxPyTextDropTarget,
30410 _swigt__p_wxPyFileDropTarget,
30411 _swigt__p_wxProcessEvent,
30412 _swigt__p_wxPyLog,
30413 _swigt__p_wxLogNull,
30414 _swigt__p_wxColour,
30415 _swigt__p_wxConfigPathChanger,
30416 _swigt__p_wxPyTimer,
30417 _swigt__p_wxDateSpan,
30418 0
30419 };
30420
30421
30422 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
30423
30424 static swig_const_info swig_const_table[] = {
30425 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
30426 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
30427 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
30428 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
30429 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
30430 {0, 0, 0, 0.0, 0, 0}};
30431
30432 #ifdef __cplusplus
30433 }
30434 #endif
30435
30436 #ifdef __cplusplus
30437 extern "C"
30438 #endif
30439 SWIGEXPORT(void) SWIG_init(void) {
30440 static PyObject *SWIG_globals = 0;
30441 static int typeinit = 0;
30442 PyObject *m, *d;
30443 int i;
30444 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
30445 m = Py_InitModule((char *) SWIG_name, SwigMethods);
30446 d = PyModule_GetDict(m);
30447
30448 if (!typeinit) {
30449 for (i = 0; swig_types_initial[i]; i++) {
30450 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
30451 }
30452 typeinit = 1;
30453 }
30454 SWIG_InstallConstants(d,swig_const_table);
30455
30456 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_From_int((int)wxSYS_OEM_FIXED_FONT));
30457 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_From_int((int)wxSYS_ANSI_FIXED_FONT));
30458 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_From_int((int)wxSYS_ANSI_VAR_FONT));
30459 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FONT));
30460 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_From_int((int)wxSYS_DEVICE_DEFAULT_FONT));
30461 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_From_int((int)wxSYS_DEFAULT_PALETTE));
30462 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_From_int((int)wxSYS_SYSTEM_FIXED_FONT));
30463 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_From_int((int)wxSYS_DEFAULT_GUI_FONT));
30464 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_From_int((int)wxSYS_ICONTITLE_FONT));
30465 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_From_int((int)wxSYS_COLOUR_SCROLLBAR));
30466 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_From_int((int)wxSYS_COLOUR_BACKGROUND));
30467 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_From_int((int)wxSYS_COLOUR_DESKTOP));
30468 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_ACTIVECAPTION));
30469 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTION));
30470 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_From_int((int)wxSYS_COLOUR_MENU));
30471 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_From_int((int)wxSYS_COLOUR_WINDOW));
30472 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_From_int((int)wxSYS_COLOUR_WINDOWFRAME));
30473 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_From_int((int)wxSYS_COLOUR_MENUTEXT));
30474 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_From_int((int)wxSYS_COLOUR_WINDOWTEXT));
30475 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_CAPTIONTEXT));
30476 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_ACTIVEBORDER));
30477 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_From_int((int)wxSYS_COLOUR_INACTIVEBORDER));
30478 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_From_int((int)wxSYS_COLOUR_APPWORKSPACE));
30479 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHT));
30480 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_From_int((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
30481 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_From_int((int)wxSYS_COLOUR_BTNFACE));
30482 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_From_int((int)wxSYS_COLOUR_3DFACE));
30483 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_From_int((int)wxSYS_COLOUR_BTNSHADOW));
30484 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DSHADOW));
30485 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_From_int((int)wxSYS_COLOUR_GRAYTEXT));
30486 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_From_int((int)wxSYS_COLOUR_BTNTEXT));
30487 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_From_int((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
30488 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHIGHLIGHT));
30489 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_BTNHILIGHT));
30490 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHIGHLIGHT));
30491 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DHILIGHT));
30492 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_From_int((int)wxSYS_COLOUR_3DDKSHADOW));
30493 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_From_int((int)wxSYS_COLOUR_3DLIGHT));
30494 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_From_int((int)wxSYS_COLOUR_INFOTEXT));
30495 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_From_int((int)wxSYS_COLOUR_INFOBK));
30496 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_From_int((int)wxSYS_COLOUR_LISTBOX));
30497 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_From_int((int)wxSYS_COLOUR_HOTLIGHT));
30498 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
30499 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_From_int((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
30500 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_From_int((int)wxSYS_COLOUR_MENUHILIGHT));
30501 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_From_int((int)wxSYS_COLOUR_MENUBAR));
30502 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_From_int((int)wxSYS_COLOUR_MAX));
30503 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_From_int((int)wxSYS_MOUSE_BUTTONS));
30504 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_From_int((int)wxSYS_BORDER_X));
30505 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_From_int((int)wxSYS_BORDER_Y));
30506 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_From_int((int)wxSYS_CURSOR_X));
30507 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_From_int((int)wxSYS_CURSOR_Y));
30508 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_From_int((int)wxSYS_DCLICK_X));
30509 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_From_int((int)wxSYS_DCLICK_Y));
30510 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_From_int((int)wxSYS_DRAG_X));
30511 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_From_int((int)wxSYS_DRAG_Y));
30512 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_From_int((int)wxSYS_EDGE_X));
30513 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_From_int((int)wxSYS_EDGE_Y));
30514 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_X));
30515 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_HSCROLL_ARROW_Y));
30516 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_From_int((int)wxSYS_HTHUMB_X));
30517 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_From_int((int)wxSYS_ICON_X));
30518 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_From_int((int)wxSYS_ICON_Y));
30519 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_From_int((int)wxSYS_ICONSPACING_X));
30520 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_From_int((int)wxSYS_ICONSPACING_Y));
30521 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_From_int((int)wxSYS_WINDOWMIN_X));
30522 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_From_int((int)wxSYS_WINDOWMIN_Y));
30523 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_From_int((int)wxSYS_SCREEN_X));
30524 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_From_int((int)wxSYS_SCREEN_Y));
30525 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_From_int((int)wxSYS_FRAMESIZE_X));
30526 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_From_int((int)wxSYS_FRAMESIZE_Y));
30527 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_From_int((int)wxSYS_SMALLICON_X));
30528 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_From_int((int)wxSYS_SMALLICON_Y));
30529 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_From_int((int)wxSYS_HSCROLL_Y));
30530 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_From_int((int)wxSYS_VSCROLL_X));
30531 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_X));
30532 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_From_int((int)wxSYS_VSCROLL_ARROW_Y));
30533 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_From_int((int)wxSYS_VTHUMB_Y));
30534 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_From_int((int)wxSYS_CAPTION_Y));
30535 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_From_int((int)wxSYS_MENU_Y));
30536 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_From_int((int)wxSYS_NETWORK_PRESENT));
30537 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_From_int((int)wxSYS_PENWINDOWS_PRESENT));
30538 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_From_int((int)wxSYS_SHOW_SOUNDS));
30539 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_From_int((int)wxSYS_SWAP_BUTTONS));
30540 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_From_int((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
30541 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_From_int((int)wxSYS_CAN_ICONIZE_FRAME));
30542 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_From_int((int)wxSYS_SCREEN_NONE));
30543 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_From_int((int)wxSYS_SCREEN_TINY));
30544 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_From_int((int)wxSYS_SCREEN_PDA));
30545 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_From_int((int)wxSYS_SCREEN_SMALL));
30546 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_From_int((int)wxSYS_SCREEN_DESKTOP));
30547 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
30548 SWIG_addvarlink(SWIG_globals,(char*)"WINDOW_DEFAULT_VARIANT",_wrap_WINDOW_DEFAULT_VARIANT_get, _wrap_WINDOW_DEFAULT_VARIANT_set);
30549 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
30550 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
30551 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
30552 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_From_int((int)wxSHUTDOWN_POWEROFF));
30553 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_From_int((int)wxSHUTDOWN_REBOOT));
30554 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_From_int((int)wxTIMER_CONTINUOUS));
30555 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_From_int((int)wxTIMER_ONE_SHOT));
30556 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
30557
30558 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
30559
30560 PyDict_SetItemString(d,"LOG_FatalError", SWIG_From_int((int)wxLOG_FatalError));
30561 PyDict_SetItemString(d,"LOG_Error", SWIG_From_int((int)wxLOG_Error));
30562 PyDict_SetItemString(d,"LOG_Warning", SWIG_From_int((int)wxLOG_Warning));
30563 PyDict_SetItemString(d,"LOG_Message", SWIG_From_int((int)wxLOG_Message));
30564 PyDict_SetItemString(d,"LOG_Status", SWIG_From_int((int)wxLOG_Status));
30565 PyDict_SetItemString(d,"LOG_Info", SWIG_From_int((int)wxLOG_Info));
30566 PyDict_SetItemString(d,"LOG_Debug", SWIG_From_int((int)wxLOG_Debug));
30567 PyDict_SetItemString(d,"LOG_Trace", SWIG_From_int((int)wxLOG_Trace));
30568 PyDict_SetItemString(d,"LOG_Progress", SWIG_From_int((int)wxLOG_Progress));
30569 PyDict_SetItemString(d,"LOG_User", SWIG_From_int((int)wxLOG_User));
30570 PyDict_SetItemString(d,"LOG_Max", SWIG_From_int((int)wxLOG_Max));
30571 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
30572 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
30573 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
30574 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
30575 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
30576 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_From_int((int)0x0001));
30577 PyDict_SetItemString(d,"TraceMessages", SWIG_From_int((int)0x0002));
30578 PyDict_SetItemString(d,"TraceResAlloc", SWIG_From_int((int)0x0004));
30579 PyDict_SetItemString(d,"TraceRefCount", SWIG_From_int((int)0x0008));
30580 PyDict_SetItemString(d,"TraceOleCalls", SWIG_From_int((int)0x0100));
30581 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_From_int((int)wxPROCESS_DEFAULT));
30582 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_From_int((int)wxPROCESS_REDIRECT));
30583 PyDict_SetItemString(d,"KILL_OK", SWIG_From_int((int)wxKILL_OK));
30584 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_From_int((int)wxKILL_BAD_SIGNAL));
30585 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_From_int((int)wxKILL_ACCESS_DENIED));
30586 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_From_int((int)wxKILL_NO_PROCESS));
30587 PyDict_SetItemString(d,"KILL_ERROR", SWIG_From_int((int)wxKILL_ERROR));
30588 PyDict_SetItemString(d,"SIGNONE", SWIG_From_int((int)wxSIGNONE));
30589 PyDict_SetItemString(d,"SIGHUP", SWIG_From_int((int)wxSIGHUP));
30590 PyDict_SetItemString(d,"SIGINT", SWIG_From_int((int)wxSIGINT));
30591 PyDict_SetItemString(d,"SIGQUIT", SWIG_From_int((int)wxSIGQUIT));
30592 PyDict_SetItemString(d,"SIGILL", SWIG_From_int((int)wxSIGILL));
30593 PyDict_SetItemString(d,"SIGTRAP", SWIG_From_int((int)wxSIGTRAP));
30594 PyDict_SetItemString(d,"SIGABRT", SWIG_From_int((int)wxSIGABRT));
30595 PyDict_SetItemString(d,"SIGIOT", SWIG_From_int((int)wxSIGIOT));
30596 PyDict_SetItemString(d,"SIGEMT", SWIG_From_int((int)wxSIGEMT));
30597 PyDict_SetItemString(d,"SIGFPE", SWIG_From_int((int)wxSIGFPE));
30598 PyDict_SetItemString(d,"SIGKILL", SWIG_From_int((int)wxSIGKILL));
30599 PyDict_SetItemString(d,"SIGBUS", SWIG_From_int((int)wxSIGBUS));
30600 PyDict_SetItemString(d,"SIGSEGV", SWIG_From_int((int)wxSIGSEGV));
30601 PyDict_SetItemString(d,"SIGSYS", SWIG_From_int((int)wxSIGSYS));
30602 PyDict_SetItemString(d,"SIGPIPE", SWIG_From_int((int)wxSIGPIPE));
30603 PyDict_SetItemString(d,"SIGALRM", SWIG_From_int((int)wxSIGALRM));
30604 PyDict_SetItemString(d,"SIGTERM", SWIG_From_int((int)wxSIGTERM));
30605 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
30606 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_From_int((int)wxEXEC_ASYNC));
30607 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_From_int((int)wxEXEC_SYNC));
30608 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_From_int((int)wxEXEC_NOHIDE));
30609 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_From_int((int)wxEXEC_MAKE_GROUP_LEADER));
30610
30611 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
30612
30613 PyDict_SetItemString(d,"JOYSTICK1", SWIG_From_int((int)wxJOYSTICK1));
30614 PyDict_SetItemString(d,"JOYSTICK2", SWIG_From_int((int)wxJOYSTICK2));
30615 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_From_int((int)wxJOY_BUTTON_ANY));
30616 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_From_int((int)wxJOY_BUTTON1));
30617 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_From_int((int)wxJOY_BUTTON2));
30618 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_From_int((int)wxJOY_BUTTON3));
30619 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_From_int((int)wxJOY_BUTTON4));
30620 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
30621 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
30622 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
30623 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
30624 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_From_int((int)wxSOUND_SYNC));
30625 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_From_int((int)wxSOUND_ASYNC));
30626 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_From_int((int)wxSOUND_LOOP));
30627 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_From_int((int)wxMAILCAP_STANDARD));
30628 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_From_int((int)wxMAILCAP_NETSCAPE));
30629 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_From_int((int)wxMAILCAP_KDE));
30630 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_From_int((int)wxMAILCAP_GNOME));
30631 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_From_int((int)wxMAILCAP_ALL));
30632 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
30633 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
30634 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
30635 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
30636 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
30637 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
30638 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
30639 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
30640 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
30641 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
30642 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
30643 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
30644 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
30645 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
30646 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
30647 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
30648 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
30649 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
30650 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
30651 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
30652 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
30653 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
30654 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
30655 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
30656 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
30657 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
30658 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
30659 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
30660 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
30661 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
30662 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
30663 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
30664 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
30665 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
30666 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
30667 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
30668 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
30669 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
30670 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
30671 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
30672
30673 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30674
30675 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_From_int((int)wxCONFIG_USE_LOCAL_FILE));
30676 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_From_int((int)wxCONFIG_USE_GLOBAL_FILE));
30677 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_From_int((int)wxCONFIG_USE_RELATIVE_PATH));
30678 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_From_int((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30679 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_From_int((int)wxConfigBase::Type_Unknown));
30680 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_From_int((int)wxConfigBase::Type_String));
30681 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_From_int((int)wxConfigBase::Type_Boolean));
30682 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_From_int((int)wxConfigBase::Type_Integer));
30683 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_From_int((int)wxConfigBase::Type_Float));
30684 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30685 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
30686 PyDict_SetItemString(d,"DateTime_Local", SWIG_From_int((int)wxDateTime::Local));
30687 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_From_int((int)wxDateTime::GMT_12));
30688 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_From_int((int)wxDateTime::GMT_11));
30689 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_From_int((int)wxDateTime::GMT_10));
30690 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_From_int((int)wxDateTime::GMT_9));
30691 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_From_int((int)wxDateTime::GMT_8));
30692 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_From_int((int)wxDateTime::GMT_7));
30693 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_From_int((int)wxDateTime::GMT_6));
30694 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_From_int((int)wxDateTime::GMT_5));
30695 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_From_int((int)wxDateTime::GMT_4));
30696 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_From_int((int)wxDateTime::GMT_3));
30697 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_From_int((int)wxDateTime::GMT_2));
30698 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_From_int((int)wxDateTime::GMT_1));
30699 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_From_int((int)wxDateTime::GMT0));
30700 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_From_int((int)wxDateTime::GMT1));
30701 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_From_int((int)wxDateTime::GMT2));
30702 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_From_int((int)wxDateTime::GMT3));
30703 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_From_int((int)wxDateTime::GMT4));
30704 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_From_int((int)wxDateTime::GMT5));
30705 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_From_int((int)wxDateTime::GMT6));
30706 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_From_int((int)wxDateTime::GMT7));
30707 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_From_int((int)wxDateTime::GMT8));
30708 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_From_int((int)wxDateTime::GMT9));
30709 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_From_int((int)wxDateTime::GMT10));
30710 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_From_int((int)wxDateTime::GMT11));
30711 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_From_int((int)wxDateTime::GMT12));
30712 PyDict_SetItemString(d,"DateTime_WET", SWIG_From_int((int)wxDateTime::WET));
30713 PyDict_SetItemString(d,"DateTime_WEST", SWIG_From_int((int)wxDateTime::WEST));
30714 PyDict_SetItemString(d,"DateTime_CET", SWIG_From_int((int)wxDateTime::CET));
30715 PyDict_SetItemString(d,"DateTime_CEST", SWIG_From_int((int)wxDateTime::CEST));
30716 PyDict_SetItemString(d,"DateTime_EET", SWIG_From_int((int)wxDateTime::EET));
30717 PyDict_SetItemString(d,"DateTime_EEST", SWIG_From_int((int)wxDateTime::EEST));
30718 PyDict_SetItemString(d,"DateTime_MSK", SWIG_From_int((int)wxDateTime::MSK));
30719 PyDict_SetItemString(d,"DateTime_MSD", SWIG_From_int((int)wxDateTime::MSD));
30720 PyDict_SetItemString(d,"DateTime_AST", SWIG_From_int((int)wxDateTime::AST));
30721 PyDict_SetItemString(d,"DateTime_ADT", SWIG_From_int((int)wxDateTime::ADT));
30722 PyDict_SetItemString(d,"DateTime_EST", SWIG_From_int((int)wxDateTime::EST));
30723 PyDict_SetItemString(d,"DateTime_EDT", SWIG_From_int((int)wxDateTime::EDT));
30724 PyDict_SetItemString(d,"DateTime_CST", SWIG_From_int((int)wxDateTime::CST));
30725 PyDict_SetItemString(d,"DateTime_CDT", SWIG_From_int((int)wxDateTime::CDT));
30726 PyDict_SetItemString(d,"DateTime_MST", SWIG_From_int((int)wxDateTime::MST));
30727 PyDict_SetItemString(d,"DateTime_MDT", SWIG_From_int((int)wxDateTime::MDT));
30728 PyDict_SetItemString(d,"DateTime_PST", SWIG_From_int((int)wxDateTime::PST));
30729 PyDict_SetItemString(d,"DateTime_PDT", SWIG_From_int((int)wxDateTime::PDT));
30730 PyDict_SetItemString(d,"DateTime_HST", SWIG_From_int((int)wxDateTime::HST));
30731 PyDict_SetItemString(d,"DateTime_AKST", SWIG_From_int((int)wxDateTime::AKST));
30732 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_From_int((int)wxDateTime::AKDT));
30733 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_From_int((int)wxDateTime::A_WST));
30734 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_From_int((int)wxDateTime::A_CST));
30735 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_From_int((int)wxDateTime::A_EST));
30736 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_From_int((int)wxDateTime::A_ESST));
30737 PyDict_SetItemString(d,"DateTime_UTC", SWIG_From_int((int)wxDateTime::UTC));
30738 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_From_int((int)wxDateTime::Gregorian));
30739 PyDict_SetItemString(d,"DateTime_Julian", SWIG_From_int((int)wxDateTime::Julian));
30740 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_From_int((int)wxDateTime::Gr_Unknown));
30741 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_From_int((int)wxDateTime::Gr_Standard));
30742 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_From_int((int)wxDateTime::Gr_Alaska));
30743 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_From_int((int)wxDateTime::Gr_Albania));
30744 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_From_int((int)wxDateTime::Gr_Austria));
30745 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_From_int((int)wxDateTime::Gr_Austria_Brixen));
30746 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_From_int((int)wxDateTime::Gr_Austria_Salzburg));
30747 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_From_int((int)wxDateTime::Gr_Austria_Tyrol));
30748 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_From_int((int)wxDateTime::Gr_Austria_Carinthia));
30749 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_From_int((int)wxDateTime::Gr_Austria_Styria));
30750 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_From_int((int)wxDateTime::Gr_Belgium));
30751 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_From_int((int)wxDateTime::Gr_Bulgaria));
30752 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_1));
30753 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_2));
30754 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_From_int((int)wxDateTime::Gr_Bulgaria_3));
30755 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_From_int((int)wxDateTime::Gr_Canada));
30756 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_From_int((int)wxDateTime::Gr_China));
30757 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_From_int((int)wxDateTime::Gr_China_1));
30758 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_From_int((int)wxDateTime::Gr_China_2));
30759 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_From_int((int)wxDateTime::Gr_Czechoslovakia));
30760 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_From_int((int)wxDateTime::Gr_Denmark));
30761 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_From_int((int)wxDateTime::Gr_Egypt));
30762 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_From_int((int)wxDateTime::Gr_Estonia));
30763 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_From_int((int)wxDateTime::Gr_Finland));
30764 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_From_int((int)wxDateTime::Gr_France));
30765 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_From_int((int)wxDateTime::Gr_France_Alsace));
30766 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_From_int((int)wxDateTime::Gr_France_Lorraine));
30767 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_From_int((int)wxDateTime::Gr_France_Strasbourg));
30768 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_From_int((int)wxDateTime::Gr_Germany));
30769 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_From_int((int)wxDateTime::Gr_Germany_Catholic));
30770 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_From_int((int)wxDateTime::Gr_Germany_Prussia));
30771 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_From_int((int)wxDateTime::Gr_Germany_Protestant));
30772 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_From_int((int)wxDateTime::Gr_GreatBritain));
30773 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_From_int((int)wxDateTime::Gr_Greece));
30774 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_From_int((int)wxDateTime::Gr_Hungary));
30775 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_From_int((int)wxDateTime::Gr_Ireland));
30776 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_From_int((int)wxDateTime::Gr_Italy));
30777 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_From_int((int)wxDateTime::Gr_Japan));
30778 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_From_int((int)wxDateTime::Gr_Japan_1));
30779 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_From_int((int)wxDateTime::Gr_Japan_2));
30780 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_From_int((int)wxDateTime::Gr_Japan_3));
30781 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_From_int((int)wxDateTime::Gr_Latvia));
30782 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_From_int((int)wxDateTime::Gr_Lithuania));
30783 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_From_int((int)wxDateTime::Gr_Luxemburg));
30784 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_From_int((int)wxDateTime::Gr_Netherlands));
30785 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Groningen));
30786 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Gelderland));
30787 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Utrecht));
30788 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_From_int((int)wxDateTime::Gr_Netherlands_Friesland));
30789 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_From_int((int)wxDateTime::Gr_Norway));
30790 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_From_int((int)wxDateTime::Gr_Poland));
30791 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_From_int((int)wxDateTime::Gr_Portugal));
30792 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_From_int((int)wxDateTime::Gr_Romania));
30793 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_From_int((int)wxDateTime::Gr_Russia));
30794 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_From_int((int)wxDateTime::Gr_Scotland));
30795 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_From_int((int)wxDateTime::Gr_Spain));
30796 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_From_int((int)wxDateTime::Gr_Sweden));
30797 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_From_int((int)wxDateTime::Gr_Switzerland));
30798 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Catholic));
30799 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_From_int((int)wxDateTime::Gr_Switzerland_Protestant));
30800 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_From_int((int)wxDateTime::Gr_Turkey));
30801 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_From_int((int)wxDateTime::Gr_USA));
30802 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_From_int((int)wxDateTime::Gr_Wales));
30803 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_From_int((int)wxDateTime::Gr_Yugoslavia));
30804 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_From_int((int)wxDateTime::Country_Unknown));
30805 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_From_int((int)wxDateTime::Country_Default));
30806 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_From_int((int)wxDateTime::Country_WesternEurope_Start));
30807 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_From_int((int)wxDateTime::Country_EEC));
30808 PyDict_SetItemString(d,"DateTime_France", SWIG_From_int((int)wxDateTime::France));
30809 PyDict_SetItemString(d,"DateTime_Germany", SWIG_From_int((int)wxDateTime::Germany));
30810 PyDict_SetItemString(d,"DateTime_UK", SWIG_From_int((int)wxDateTime::UK));
30811 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_From_int((int)wxDateTime::Country_WesternEurope_End));
30812 PyDict_SetItemString(d,"DateTime_Russia", SWIG_From_int((int)wxDateTime::Russia));
30813 PyDict_SetItemString(d,"DateTime_USA", SWIG_From_int((int)wxDateTime::USA));
30814 PyDict_SetItemString(d,"DateTime_Jan", SWIG_From_int((int)wxDateTime::Jan));
30815 PyDict_SetItemString(d,"DateTime_Feb", SWIG_From_int((int)wxDateTime::Feb));
30816 PyDict_SetItemString(d,"DateTime_Mar", SWIG_From_int((int)wxDateTime::Mar));
30817 PyDict_SetItemString(d,"DateTime_Apr", SWIG_From_int((int)wxDateTime::Apr));
30818 PyDict_SetItemString(d,"DateTime_May", SWIG_From_int((int)wxDateTime::May));
30819 PyDict_SetItemString(d,"DateTime_Jun", SWIG_From_int((int)wxDateTime::Jun));
30820 PyDict_SetItemString(d,"DateTime_Jul", SWIG_From_int((int)wxDateTime::Jul));
30821 PyDict_SetItemString(d,"DateTime_Aug", SWIG_From_int((int)wxDateTime::Aug));
30822 PyDict_SetItemString(d,"DateTime_Sep", SWIG_From_int((int)wxDateTime::Sep));
30823 PyDict_SetItemString(d,"DateTime_Oct", SWIG_From_int((int)wxDateTime::Oct));
30824 PyDict_SetItemString(d,"DateTime_Nov", SWIG_From_int((int)wxDateTime::Nov));
30825 PyDict_SetItemString(d,"DateTime_Dec", SWIG_From_int((int)wxDateTime::Dec));
30826 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_From_int((int)wxDateTime::Inv_Month));
30827 PyDict_SetItemString(d,"DateTime_Sun", SWIG_From_int((int)wxDateTime::Sun));
30828 PyDict_SetItemString(d,"DateTime_Mon", SWIG_From_int((int)wxDateTime::Mon));
30829 PyDict_SetItemString(d,"DateTime_Tue", SWIG_From_int((int)wxDateTime::Tue));
30830 PyDict_SetItemString(d,"DateTime_Wed", SWIG_From_int((int)wxDateTime::Wed));
30831 PyDict_SetItemString(d,"DateTime_Thu", SWIG_From_int((int)wxDateTime::Thu));
30832 PyDict_SetItemString(d,"DateTime_Fri", SWIG_From_int((int)wxDateTime::Fri));
30833 PyDict_SetItemString(d,"DateTime_Sat", SWIG_From_int((int)wxDateTime::Sat));
30834 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_From_int((int)wxDateTime::Inv_WeekDay));
30835 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_From_int((int)wxDateTime::Inv_Year));
30836 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_From_int((int)wxDateTime::Name_Full));
30837 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_From_int((int)wxDateTime::Name_Abbr));
30838 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_From_int((int)wxDateTime::Default_First));
30839 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_From_int((int)wxDateTime::Monday_First));
30840 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_From_int((int)wxDateTime::Sunday_First));
30841 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30842 PyDict_SetItemString(d,"DF_INVALID", SWIG_From_int((int)wxDF_INVALID));
30843 PyDict_SetItemString(d,"DF_TEXT", SWIG_From_int((int)wxDF_TEXT));
30844 PyDict_SetItemString(d,"DF_BITMAP", SWIG_From_int((int)wxDF_BITMAP));
30845 PyDict_SetItemString(d,"DF_METAFILE", SWIG_From_int((int)wxDF_METAFILE));
30846 PyDict_SetItemString(d,"DF_SYLK", SWIG_From_int((int)wxDF_SYLK));
30847 PyDict_SetItemString(d,"DF_DIF", SWIG_From_int((int)wxDF_DIF));
30848 PyDict_SetItemString(d,"DF_TIFF", SWIG_From_int((int)wxDF_TIFF));
30849 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_From_int((int)wxDF_OEMTEXT));
30850 PyDict_SetItemString(d,"DF_DIB", SWIG_From_int((int)wxDF_DIB));
30851 PyDict_SetItemString(d,"DF_PALETTE", SWIG_From_int((int)wxDF_PALETTE));
30852 PyDict_SetItemString(d,"DF_PENDATA", SWIG_From_int((int)wxDF_PENDATA));
30853 PyDict_SetItemString(d,"DF_RIFF", SWIG_From_int((int)wxDF_RIFF));
30854 PyDict_SetItemString(d,"DF_WAVE", SWIG_From_int((int)wxDF_WAVE));
30855 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_From_int((int)wxDF_UNICODETEXT));
30856 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_From_int((int)wxDF_ENHMETAFILE));
30857 PyDict_SetItemString(d,"DF_FILENAME", SWIG_From_int((int)wxDF_FILENAME));
30858 PyDict_SetItemString(d,"DF_LOCALE", SWIG_From_int((int)wxDF_LOCALE));
30859 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_From_int((int)wxDF_PRIVATE));
30860 PyDict_SetItemString(d,"DF_HTML", SWIG_From_int((int)wxDF_HTML));
30861 PyDict_SetItemString(d,"DF_MAX", SWIG_From_int((int)wxDF_MAX));
30862 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30863 PyDict_SetItemString(d,"DataObject_Get", SWIG_From_int((int)wxDataObject::Get));
30864 PyDict_SetItemString(d,"DataObject_Set", SWIG_From_int((int)wxDataObject::Set));
30865 PyDict_SetItemString(d,"DataObject_Both", SWIG_From_int((int)wxDataObject::Both));
30866 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_From_int((int)wxDrag_CopyOnly));
30867 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_From_int((int)wxDrag_AllowMove));
30868 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_From_int((int)wxDrag_DefaultMove));
30869 PyDict_SetItemString(d,"DragError", SWIG_From_int((int)wxDragError));
30870 PyDict_SetItemString(d,"DragNone", SWIG_From_int((int)wxDragNone));
30871 PyDict_SetItemString(d,"DragCopy", SWIG_From_int((int)wxDragCopy));
30872 PyDict_SetItemString(d,"DragMove", SWIG_From_int((int)wxDragMove));
30873 PyDict_SetItemString(d,"DragLink", SWIG_From_int((int)wxDragLink));
30874 PyDict_SetItemString(d,"DragCancel", SWIG_From_int((int)wxDragCancel));
30875
30876 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30877 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30878 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30879 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30880
30881 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30882 }
30883